_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 |
|---|---|---|---|---|---|---|---|---|
37526f8c538da1cb64cf7c1b2ae427845820fb455f25e7402ac0aad25d3595ef | commercialhaskell/rio | ExtraSpec.hs | # LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
module RIO.Prelude.ExtraSpec (spec) where
import RIO
import RIO.Process
import Test.Hspec
import qualified Data.Map as Map
import qualified Data.Text as T
import qualified System.FilePath as FP
spec :: Spec
spec = do
describe "foldMapM" $ do
it "sanity" $ do... | null | https://raw.githubusercontent.com/commercialhaskell/rio/e7246376eb690cb48f7ebb03f3c96ce646f06e07/rio/test/RIO/Prelude/ExtraSpec.hs | haskell | # LANGUAGE OverloadedStrings #
| # LANGUAGE CPP #
module RIO.Prelude.ExtraSpec (spec) where
import RIO
import RIO.Process
import Test.Hspec
import qualified Data.Map as Map
import qualified Data.Text as T
import qualified System.FilePath as FP
spec :: Spec
spec = do
describe "foldMapM" $ do
it "sanity" $ do
let helper :: Applicative f ... |
85c8c3ac4a45fb35a0dd224193e71fa5d936d07aafaf369b507044f5bf7c994e | jeffshrager/biobike | af-initialize.lisp | ;; -*- mode: Lisp; Syntax: Common-Lisp; Package: bio; -*-
(in-package :bio)
;;; +=========================================================================+
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
;;; | |
;;; | Permission is hereb... | null | https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Organisms/af-initialize.lisp | lisp | -*- mode: Lisp; Syntax: Common-Lisp; Package: bio; -*-
+=========================================================================+
| |
| Permission is hereby granted, free of charge, to any person obtaining |
| a copy of this software and as... |
(in-package :bio)
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
| " Software " ) , to deal in the Software without restriction , including |
| distribute , sublicense , and/or sell copies of the Software , and to |
| permit persons to whom the Software is furnished to do so , subject to ... |
37361007886d7af2fe01db17287e803e7532dca727b4b7458cfa5b6f234de03e | facebook/flow | parsing_service_js.ml |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/flow/f7d50bb772462888b27b5dbf9acf7d079eb1ff5f/src/parsing/parsing_service_js.ml | ocaml | results of parse job, returned by parse and reparse
successfully parsed files
list of skipped files
list of files skipped due to an out of date hash
list of failed files
set of unchanged files
set of files that were not found on disk
package.json files parsed
set of modules that need to be committed
*... |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
4f70bfe9fce1b231f92c493cbe7f13f08e893bdbd976290f30981476c27b7c05 | afiniate/aws_async | awsa_sign.mli | open Core.Std
val hash: String.t -> String.t
(**
* Use a sha256 hash algorithm to provide a simple hash of the string. Return
* that hash as a hex encoded value
*)
val algo: String.t
(**
* The amazon centric algorithm name used for signing
*)
val sign: String.t -> String.t -> String.t
*
* provide a message dig... | null | https://raw.githubusercontent.com/afiniate/aws_async/44c27bf9f18f76e9e6405c2252098c4aa3d9a8bc/lib/auth/awsa_sign.mli | ocaml | *
* Use a sha256 hash algorithm to provide a simple hash of the string. Return
* that hash as a hex encoded value
*
* The amazon centric algorithm name used for signing
*
* Sign the string the same as in the `sign` function but hex encode
* the result
| open Core.Std
val hash: String.t -> String.t
val algo: String.t
val sign: String.t -> String.t -> String.t
*
* provide a message digest for the second argument using the key
* provided in the first
* provide a message digest for the second argument using the key
* provided in the first
*)
val sign_encode:... |
80a3ac5f7cd97cb4ab135d5e121104e2a87adfb4209f39164ad6262c79f08526 | kmi/irs | load.lisp | Mode : Lisp ; Package :
File created in WebOnto
(in-package "OCML")
(eval-when (eval load)
(ensure-ontology
organization-ontology
domain
"ocml:library;domains;organization-ontology;load.lisp" ))
(def-ontology medical-ontology :includes (organization-ontology)
:type :domain
... | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/medical-ontology/load.lisp | lisp | Package : |
File created in WebOnto
(in-package "OCML")
(eval-when (eval load)
(ensure-ontology
organization-ontology
domain
"ocml:library;domains;organization-ontology;load.lisp" ))
(def-ontology medical-ontology :includes (organization-ontology)
:type :domain
:author "enrico" :all... |
b686ae592cc0afbc8bcb5566bbdfeb065443a47d1ae388b2a396e0c3e903cbde | Eduap-com/WordMat | zhetd2.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $... | null | https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/lapack/lapack/zhetd2.lisp | lisp | Compiled by f2cl version:
Using Lisp CMU Common Lisp snapshot-2013-11 (20E Unicode)
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format single-float)) | ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ "
" f2cl6.l , v 1d5cbacbb9... |
2e7d6f02ee9fe78d106f9847b122dfb07cdf8a2be8ddd30c832cce637363d5e4 | facebook/pyre-check | cache.mli |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/4aafba53f387a772333fb397013dfdee91492482/source/interprocedural_analyses/taint/cache.mli | ocaml |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | |
aeb4c681996c4e9887609de9a729df842f8888cd7a0a596ffee112db7b880c1c | huangjs/cl | zs1s2.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ "
" f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ "
" f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ "
" f2cl6.l ,... | null | https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/numerical/slatec/zs1s2.lisp | lisp | Compiled by f2cl version:
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':simple-array)
(:array-slicing nil) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ "
" f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ "
" f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ "
" f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ "
" f2cl6.l , v 1.48 2008/08/24 00:56:27 rt... |
4c959afc2d58eda161a930eb1d73ca15a4f921812f5831a9396d1b1462a494ac | jaked/ocamljs | jsmain.ml |
* This file is part of ocamljs , OCaml to Javascript compiler
* Copyright ( C ) 2007 - 9 Skydeck , Inc
* Copyright ( C ) 2010
* Original file ( driver / main.ml in the Objective Caml source
* distribution ) is Copyright ( C ) INRIA .
*
* This program is free software released under the QPL .
*... | null | https://raw.githubusercontent.com/jaked/ocamljs/378080ff1c8033bb15ed2bd29bf1443e301d7af8/src/jscomp/jsmain.ml | ocaml | Error messages to standard error formatter |
* This file is part of ocamljs , OCaml to Javascript compiler
* Copyright ( C ) 2007 - 9 Skydeck , Inc
* Copyright ( C ) 2010
* Original file ( driver / main.ml in the Objective Caml source
* distribution ) is Copyright ( C ) INRIA .
*
* This program is free software released under the QPL .
*... |
77ac6da68682a6b12cab3394e513a9e6e44122da5181747bc0ba276dbe0d7196 | LeventErkok/sbv | Coins.hs | -----------------------------------------------------------------------------
-- |
-- Module : BenchSuite.Puzzles.Coins
Copyright : ( c )
-- License : BSD3
-- Maintainer:
-- Stability : experimental
--
Bench suite for Documentation . SBV.Examples . Puzzles . Coins
-----------------------... | null | https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/SBVBenchSuite/BenchSuite/Puzzles/Coins.hs | haskell | ---------------------------------------------------------------------------
|
Module : BenchSuite.Puzzles.Coins
License : BSD3
Maintainer:
Stability : experimental
---------------------------------------------------------------------------
# OPTIONS_GHC -Wall -Werror #
benchmark suite
normally we would ca... | Copyright : ( c )
Bench suite for Documentation . SBV.Examples . Puzzles . Coins
module BenchSuite.Puzzles.Coins(benchmarks) where
import Documentation.SBV.Examples.Puzzles.Coins
import Utils.SBVBenchFramework
import BenchSuite.Bench.Bench as S
benchmarks :: Runner
benchmarks = rGroup [ ... |
39eb997bc6905505ce6da956dcec4eb083b3bd726937bc732b01f0b97c426e8c | jlouis/turtle | turtle_app.erl | %%%-------------------------------------------------------------------
@doc Turtle application callback for managing the lifetime of the system .
%% @end
%%%-------------------------------------------------------------------
@private
-module('turtle_app').
-behaviour(application).
%% Application callbacks
-export... | null | https://raw.githubusercontent.com/jlouis/turtle/a403eb8941f8c7b4067e619424d048c5143d68e8/src/turtle_app.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
Application callbacks
====================================================================
API
====================================================================
------------... | @doc Turtle application callback for managing the lifetime of the system .
@private
-module('turtle_app').
-behaviour(application).
-export([start/2
,stop/1]).
start(_StartType, _StartArgs) ->
'turtle_sup':start_link().
stop(_State) ->
ok.
Internal functions
|
84d9da360b90e1b7dc983d235f0025a3961eb577a34b3a9fbb987af9f9b38443 | clojerl/clojerl | clojerl.Delay.erl | -module('clojerl.Delay').
-include("clojerl.hrl").
-include("clojerl_int.hrl").
-behaviour(gen_server).
-behavior('erlang.io.ICloseable').
-behavior('clojerl.IDeref').
-behavior('clojerl.IEquiv').
-behavior('clojerl.IHash').
-behavior('clojerl.IPending').
-behavior('clojerl.IStringable').
-export([ ?CONSTRUCTOR/1
... | null | https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/lang/clojerl.Delay.erl | erlang | gen_server callbacks
------------------------------------------------------------------------------
------------------------------------------------------------------------------
clojerl.ICloseable
clojerl.IDeref
clojerl.IEquiv
clojerl.IPending
clojerl.IStringable
-------------------------------------------------... | -module('clojerl.Delay').
-include("clojerl.hrl").
-include("clojerl_int.hrl").
-behaviour(gen_server).
-behavior('erlang.io.ICloseable').
-behavior('clojerl.IDeref').
-behavior('clojerl.IEquiv').
-behavior('clojerl.IHash').
-behavior('clojerl.IPending').
-behavior('clojerl.IStringable').
-export([ ?CONSTRUCTOR/1
... |
bcd96cfe6cbf2c94424ccee5acdc4f0a34f42656149ee94928025f9ae37f0e4a | lateio/kurremkarmerruk | kurremkarmerruk_recurse.erl | % ------------------------------------------------------------------------------
%
Copyright © 2018 - 2019 , < >
%
The ISC License
%
% Permission to use, copy, modify, and/or distribute this software for any
% purpose with or without fee is hereby granted, provided that the above
% copyright notice and this perm... | null | https://raw.githubusercontent.com/lateio/kurremkarmerruk/7743cb75e92ed6ffe0f147f96148299df47c9dcf/src/handlers/kurremkarmerruk_recurse/kurremkarmerruk_recurse.erl | erlang | ------------------------------------------------------------------------------
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
WITH REGARD TO THIS SO... | Copyright © 2018 - 2019 , < >
The ISC License
THE SOFTWARE IS PROVIDED “ AS IS ” AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(kurremkarmerruk_recurse).
-beha... |
7865f0b52a0816ee8ac3b24771e8c9ad0e0a3dcfd13c9bb2a4b40cbfd1bd2ada | NorfairKing/smos | Gen.hs | # OPTIONS_GHC -fno - warn - orphans #
module Smos.Cursor.FileBrowser.Gen where
import Cursor.DirForest.Gen ()
import Data.GenValidity
import Smos.Cursor.FileBrowser
import Smos.Data.Gen ()
import Smos.Undo.Gen ()
instance GenValid FileBrowserCursor where
genValid = genValidStructurallyWithoutExtraChecking
shrink... | null | https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos-cursor-gen/src/Smos/Cursor/FileBrowser/Gen.hs | haskell | # OPTIONS_GHC -fno - warn - orphans #
module Smos.Cursor.FileBrowser.Gen where
import Cursor.DirForest.Gen ()
import Data.GenValidity
import Smos.Cursor.FileBrowser
import Smos.Data.Gen ()
import Smos.Undo.Gen ()
instance GenValid FileBrowserCursor where
genValid = genValidStructurallyWithoutExtraChecking
shrink... | |
adce2360ee3ace8848e3a7bfd10219b50b46517ef2d7f3fbfb4c5eea06d49344 | screenshotbot/screenshotbot-oss | history.lisp | ;;;; Copyright 2018-Present Modern Interpreters Inc.
;;;;
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 /.
(pkg:define-package :screenshotbot/schema/history
(:use #:cl
#:./core
... | null | https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/e7faabc00d6c4257568d792bba38c62a1febad50/src/util/schema/history.lisp | lisp | Copyright 2018-Present Modern Interpreters Inc.
| 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 /.
(pkg:define-package :screenshotbot/schema/history
(:use #:cl
#:./core
#:alexandria))
(defschema :version 1)
(validate... |
d998e799e9aab55f40636283a042999fbb1c8c075a97752dc8efc82b83725a04 | roman/Haskell-Reactive-Extensions | Main.hs | module Main where
import qualified Control.Concurrent.Async as Async
import Control.Monad (void)
import Rx.Logger (defaultSettings, newLogger, setupLogTracer,
ttccFormat)
import Rx.Logger.Monad (trace, withLogger)
import Rx.Logger.Serializer (serialize... | null | https://raw.githubusercontent.com/roman/Haskell-Reactive-Extensions/0faddbb671be7f169eeadbe6163e8d0b2be229fb/rx-logger/example/Main.hs | haskell | module Main where
import qualified Control.Concurrent.Async as Async
import Control.Monad (void)
import Rx.Logger (defaultSettings, newLogger, setupLogTracer,
ttccFormat)
import Rx.Logger.Monad (trace, withLogger)
import Rx.Logger.Serializer (serialize... | |
ad83925a626dc359a082a5aa02dadf9f8ff7d2b6cbc53c961a321bc35f85b7f0 | racket/games | base.rkt | #lang racket/base
(require racket/class
racket/contract
"make-cards.rkt"
"classes.rkt"
"card-class.rkt")
(provide make-card
table<%>
card<%>
make-deck
(contract-out
[make-table
(->* {}
{string?
... | null | https://raw.githubusercontent.com/racket/games/e57376f067be51257ed12cdf3e4509a00ffd533d/cards/base.rkt | racket | #lang racket/base
(require racket/class
racket/contract
"make-cards.rkt"
"classes.rkt"
"card-class.rkt")
(provide make-card
table<%>
card<%>
make-deck
(contract-out
[make-table
(->* {}
{string?
... | |
5715f9a72f9c5c667984bf935bc41e4fa1cce9fa9e045a1f58538c6221b9b1d1 | ChrisPenner/proton | Utils.hs | module Data.Profunctor.Utils where
import Data.Profunctor
import Data.Profunctor.NonLinear
import Control.Category ((>>>), Category)
class Branch p where
branch :: p a b -> p b Bool -> p a (Either b b)
choose :: (Category p, Branch p, NonLinear p, Strong p) => p b Bool -> p a b -> p a (Either b b)
choose predicat... | null | https://raw.githubusercontent.com/ChrisPenner/proton/5e73abb67c8abe29e13b9b4a984ba75e5749e4f1/src/Data/Profunctor/Utils.hs | haskell | module Data.Profunctor.Utils where
import Data.Profunctor
import Data.Profunctor.NonLinear
import Control.Category ((>>>), Category)
class Branch p where
branch :: p a b -> p b Bool -> p a (Either b b)
choose :: (Category p, Branch p, NonLinear p, Strong p) => p b Bool -> p a b -> p a (Either b b)
choose predicat... | |
005b56530e84e9655b210be2e430bd6b1f618d07a73a1e6e0ec98e421b1ae629 | runtimeverification/haskell-backend | ErrorException.hs | # LANGUAGE NoStrict #
# LANGUAGE NoStrictData #
|
Copyright : ( c ) Runtime Verification , 2019 - 2021
License : BSD-3 - Clause
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
-}
module Kore.Log.ErrorException (
ErrorException,
errorException,
handleSomeExceptio... | null | https://raw.githubusercontent.com/runtimeverification/haskell-backend/de44aad602e76f45baaa4dabac2b8088f22c3415/kore/src/Kore/Log/ErrorException.hs | haskell | # LANGUAGE NoStrict #
# LANGUAGE NoStrictData #
|
Copyright : ( c ) Runtime Verification , 2019 - 2021
License : BSD-3 - Clause
Copyright : (c) Runtime Verification, 2019-2021
License : BSD-3-Clause
-}
module Kore.Log.ErrorException (
ErrorException,
errorException,
handleSomeExceptio... | |
a9926a81cfb58c3a66ba4ad0ccbb73cd7297ac605869f19848b8387816c38853 | manuel-serrano/hop | bglcpp.scm | ;*=====================================================================*/
* serrano / prgm / project / hop/2.5.x / scheme2js / runtime / bglcpp.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/scheme2js/runtime/bglcpp.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* runtime file. */
* -----------------------... | * serrano / prgm / project / hop/2.5.x / scheme2js / runtime / bglcpp.scm * /
* Author : * /
* Creation : We d Jul 31 13:25:35 2013 * /
* Last change : We d Aug 14 07:29:03 2013 ( serrano ) * /
* Co... |
85bdea48f37b043f93c2753eebf9ecac30da3403deb377ff45db4401df8b42c8 | serioga/webapp-clojure-2020 | local.cljc | (ns app.rum.mixin.local
"Similar to rum/local but but with function of state as initial value."
#?(:cljs (:require [rum.core :as rum])))
#?(:clj (set! *warn-on-reflection* true)
:cljs (set! *warn-on-infer* true))
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••... | null | https://raw.githubusercontent.com/serioga/webapp-clojure-2020/07b474cbdd0b84dbc01a58026f4a6d1e1ce2d141/src/app/rum/mixin/local.cljc | clojure | (ns app.rum.mixin.local
"Similar to rum/local but but with function of state as initial value."
#?(:cljs (:require [rum.core :as rum])))
#?(:clj (set! *warn-on-reflection* true)
:cljs (set! *warn-on-infer* true))
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••... | |
90bc4d820d35cbf24926f2be278e0bcb08f8f137d69e33d947c6b14a80ca732a | takikawa/racket-ppa | info.rkt | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("draw-lib" "snip-lib" "pict-lib" "wxme-lib" "base"))) (define build-deps (quote ("rackunit-lib" "gui-lib"))) (define pkg-desc "implementation (no documentation) part of \"pict-snip\"") (define pkg-authors (quote (robby))) ... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/pict-snip-lib/info.rkt | racket | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("draw-lib" "snip-lib" "pict-lib" "wxme-lib" "base"))) (define build-deps (quote ("rackunit-lib" "gui-lib"))) (define pkg-desc "implementation (no documentation) part of \"pict-snip\"") (define pkg-authors (quote (robby))) ... | |
9828e199514a1f03dfa72dfdc6b1ad7b33a2b64da5148c36bb0930c93bd20e42 | kazzmir/master-of-magic | IO.ml |
* IO - Abstract input / output
* 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.1 of the License , or ( at your ... | null | https://raw.githubusercontent.com/kazzmir/master-of-magic/830bfd1c549a5ac7370fa6a72bb06be5d3435fa0/lib/extlib-1.5/IO.ml | ocaml | --------------------------------------------------------------
API
--------------------------------------------------------------
Standard IO
--------------------------------------------------------------
BINARY APIs
--------------------------------------------------------------
-------------------------... |
* IO - Abstract input / output
* 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.1 of the License , or ( at your ... |
db8d66017236ae72a29f9a1df1db581118ed0ce4d3bd517833fbbe5bbf066715 | hannesm/jackline | xmpp_callbacks.ml | open StanzaError
open Xmpp_connection
module ID =
struct
type t = string
let compare = String.compare
end
module IDCallback = Map.Make(ID)
module XMPPClient = XMPP.Make (Lwt) (Xmlstream.XmlStream) (IDCallback)
open XMPPClient
let stanza_error_to_str se =
String.concat " "
[ string_of_error_type se.err_ty... | null | https://raw.githubusercontent.com/hannesm/jackline/459cbe77fefc94576b0a76b918e8dc026d912ebc/src/xmpp_callbacks.ml | ocaml | this is to initialise all subscription information to `None before fetching the roster --
this needs to be done, since a roster get will not return those not in your roster (and might have been modified by different client)
this raises and lets the async_exception hook handle things
XXX: report properly
thi... | open StanzaError
open Xmpp_connection
module ID =
struct
type t = string
let compare = String.compare
end
module IDCallback = Map.Make(ID)
module XMPPClient = XMPP.Make (Lwt) (Xmlstream.XmlStream) (IDCallback)
open XMPPClient
let stanza_error_to_str se =
String.concat " "
[ string_of_error_type se.err_ty... |
591f900e7a9b3b268ca1c759e15276809d951b2369cb605c7251d7267f5059a8 | pfdietz/ansi-test | logical-pathname-translations.lsp | ;-*- Mode: Lisp -*-
Author :
Created : We d Dec 31 09:46:08 2003
;;;; Contains: Tests of LOGICAL-PATHNAME-TRANSLATIONS
| null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/pathnames/logical-pathname-translations.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of LOGICAL-PATHNAME-TRANSLATIONS | Author :
Created : We d Dec 31 09:46:08 2003
|
8dca6e5eb9ac69b16cac27fd3243ba8d2bc02dde09f15c40f2fb0762b6ec8642 | LaPingvino/Climacs | groups.lisp | ;;; -*- Mode: Lisp; Package: CLIMACS-CORE -*-
( c ) copyright 2006 - 2007 by
( )
;;; This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation ; either
version 2 of the License ... | null | https://raw.githubusercontent.com/LaPingvino/Climacs/d5e45094b76dab0c716b2de7764a85e35e8bea4e/groups.lisp | lisp | -*- Mode: Lisp; Package: CLIMACS-CORE -*-
This library is free software; you can redistribute it and/or
either
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
License... |
( c ) copyright 2006 - 2007 by
( )
modify it under the terms of the GNU Library General Public
version 2 of the License , or ( at your option ) any later version .
Library General Public License for more details .
You should have received a copy of the GNU Library General Public
Free Softw... |
cf3aed6a047e7e7cba3d7ea7a0a04d60851831b147fe84a6b37a7ec45134c1d6 | argp/bap | batBool.ml |
* BatBool - Extended booleans
* Copyright ( C ) 2007 Bluestorm < bluestorm dot dylc on - the - server gmail dot com >
* 2008
*
* 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... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batBool.ml | ocaml | * The boolean negation.
Weird extrapolation
BISECT-IGNORE-BEGIN
BISECT-IGNORE-END
$T succ
succ true = true
succ false = true
$T pred
pred true = false
pred false = false
$T abs
abs true = true
abs false = false
$T sub
sub true true = false
sub true false = true
sub false true = false
sub fal... |
* BatBool - Extended booleans
* Copyright ( C ) 2007 Bluestorm < bluestorm dot dylc on - the - server gmail dot com >
* 2008
*
* 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... |
e12d658e478d05c731e577de8b023d60ec73d6d585b4f53db87366098c133df2 | uwplse/coq-plugin-lib | proputils.mli | (*
* Utilities for Prop logical types
*)
open Constr
(* --- Constants --- *)
val logical_or : types
val or_introl : types
val or_intror : types
val logical_and : types
val conj : types
(* --- Destruct applications of constants --- *)
* or_introl : forall A B : Prop , A - > A \/ B
* or_introl : forall ... | null | https://raw.githubusercontent.com/uwplse/coq-plugin-lib/b249fc1954e2f1bc0b776e2d06e8ec1fc4d48ad9/src/coq/constants/proputils.mli | ocaml |
* Utilities for Prop logical types
--- Constants ---
--- Destruct applications of constants --- |
open Constr
val logical_or : types
val or_introl : types
val or_intror : types
val logical_and : types
val conj : types
* or_introl : forall A B : Prop , A - > A \/ B
* or_introl : forall A B : Prop, A -> A \/ B
*)
type or_introl_args = {
a : types;
b : types;
ltrm : constr;
}
* or_i... |
9321a017811ad2700954ca5d7157cf0076afb43229b05f22fbd1f6b9d5b8a84e | borkdude/aoc2017 | day19.clj | (ns day19
(:require
[clojure.edn :as edn]
[clojure.string :as str]
[criterium.core :refer [quick-bench]]
[util :refer [resource-reducible
spy take-until]]))
(defn data
[]
(into []
(resource-reducible "day19.txt")))
(defn columns
[row]
(into []
(apply map str row)... | null | https://raw.githubusercontent.com/borkdude/aoc2017/0f5bce5e496d65d0e53a8983e71ea3462aa0569c/src/day19.clj | clojure | Scratch | (ns day19
(:require
[clojure.edn :as edn]
[clojure.string :as str]
[criterium.core :refer [quick-bench]]
[util :refer [resource-reducible
spy take-until]]))
(defn data
[]
(into []
(resource-reducible "day19.txt")))
(defn columns
[row]
(into []
(apply map str row)... |
8f8fa91d651fd72696541f4487deb03d3877a0d3530d5262c505e8f22a06b806 | the-dr-lazy/cascade | FieldErrorFormat.hs | |
Module : Cascade . Api . Data . Aeson . FieldErrorFormat
Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! !
Copyright : ( c ) 2020 - 2021 Cascade
License : MPL 2.0
Maintainer : < > ( the-dr-lazy.github.io )
Stability : Stable
Portability : POSIX
! ! ! INSERT MODULE LONG D... | null | https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/src/Cascade/Api/Data/Aeson/FieldErrorFormat.hs | haskell | |
Module : Cascade . Api . Data . Aeson . FieldErrorFormat
Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! !
Copyright : ( c ) 2020 - 2021 Cascade
License : MPL 2.0
Maintainer : < > ( the-dr-lazy.github.io )
Stability : Stable
Portability : POSIX
! ! ! INSERT MODULE LONG D... | |
478d434992a12d5642d3d5fceb3a4f258e764850656a52f41a8d70f79669cd11 | mirage/irmin | commit.ml |
* Copyright ( c ) 2018 - 2022 Tarides < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS... | null | https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/libirmin/commit.ml | ocaml |
* Copyright ( c ) 2018 - 2022 Tarides < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS... | |
0f8392efce64698cea41896352b46d4b5811d59844cf76349df446dbe4d8d251 | hercules-ci/legacy-old-hercules | Types.hs | {-# LANGUAGE DeriveGeneric #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE StrictData #
|
A module describing some newtypes and data types to handle infor... | null | https://raw.githubusercontent.com/hercules-ci/legacy-old-hercules/db10eb399a64355cdcbba0e18beb1514588772e9/backend/src/Hercules/OAuth/Types.hs | haskell | # LANGUAGE DeriveGeneric #
# LANGUAGE OverloadedStrings #
* newtypes
| The name of an authenticator, "google" or "github" for example
| The state the client can pass when authenticating, this will be returned
if the authentication is successful.
| This is the value which is actually sent to t... | # LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
# LANGUAGE StrictData #
|
A module describing some newtypes and data types to handle information used
during authentication .
Several of these types are just newtypes around... |
aeefc3c037fd1c4ad58a1872f37dd6bc4f29bd780c21f780ad220182b7024d7d | rvirding/luerl | hello_userdata_new.erl | %% File : hello_userdata_new.erl
Purpose : Brief demonstration of Luerl userdata access .
Use $ erlc hello_userdata_new.erl & & erl -pa .. / .. /ebin -s hello_userdata_new run -s init stop -noshell
-module(hello_userdata_new).
-export([run/0]).
run() ->
St0 = luerl_new:init(),
U42 = {userdata,42... | null | https://raw.githubusercontent.com/rvirding/luerl/5e61c1838d08430af67fb870995b05a41d64aeee/examples/hello/hello_userdata_new.erl | erlang | File : hello_userdata_new.erl
The original decoded data
This call wraps the actual data for us.
New decoded data | Purpose : Brief demonstration of Luerl userdata access .
Use $ erlc hello_userdata_new.erl & & erl -pa .. / .. /ebin -s hello_userdata_new run -s init stop -noshell
-module(hello_userdata_new).
-export([run/0]).
run() ->
St0 = luerl_new:init(),
{Uref,St1} = luerl_new:encode(U42, St0),
{ok,_,St2... |
76b5a6abb56349adcd977e77d8a5852067585c256e003417f9cab8618a20d6dd | well-typed/large-records | Tutorial3.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances ... | null | https://raw.githubusercontent.com/well-typed/large-records/fb983aa136c2602499c2421323bd52b6a54b7c9a/beam-large-records/test/Test/Record/Beam/Tutorial3.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DeriveAnyClass #
# LANGUAGE KindSignatures #
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
# LANGUAGE UndecidableInstances #
# OPTION... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ExistentialQuantification #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE StandaloneDeriving #
#... |
0229ad4c5d0f535cc4eb3fda74db082e1af901262f07b95f4177d1f558e499ad | morpheusgraphql/morpheus-graphql | Type.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# ... | null | https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/13d7eaf283df13b2860092f44c73a954a0f09683/morpheus-graphql-server/src/Data/Morpheus/Server/Deriving/Kinded/Type.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE GADTs #
# LANGUAGE RankNTypes # | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE PolyKinds #
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
# LANGUAGE NoImplicitPrelu... |
66e9b74100584624ff9ac571f2ae426ab70e55d2d49d865f92af2741ca34ddbc | bananu7/Hate | Graphics.hs | |
Module : Hate . Graphics
Description : Hate graphics
License : MIT
Maintainer :
Stability : experimental
Portability : To whatever has OpenGL in a reasonable version .
This module contains graphics
Module : Hate.Graphics
Description : Hate graphics
License : MIT
Maintainer ... | null | https://raw.githubusercontent.com/bananu7/Hate/4aa4ec0cf1e9bcb32d8cc807ab2ee092807c7ddb/src/Hate/Graphics.hs | haskell | |
Module : Hate . Graphics
Description : Hate graphics
License : MIT
Maintainer :
Stability : experimental
Portability : To whatever has OpenGL in a reasonable version .
This module contains graphics
Module : Hate.Graphics
Description : Hate graphics
License : MIT
Maintainer ... | |
473db6a008cb3ecb6ce028950c01307044ae0606cea8c407d095feecccfd6e10 | dbuenzli/uucp | uucp_name_base.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2014 The uucp programmers . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) ... | null | https://raw.githubusercontent.com/dbuenzli/uucp/09d2186c0828465dbe37ed976c8d8ab7a5e7eeed/src/uucp_name_base.ml | ocaml | ---------------------------------------------------------------------------
Copyright ( c ) 2014 The uucp programmers . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) ... | |
576d1ba58d506377108f4c089caae0def7736ea767d8954cb2a640facc8ce5fc | w3ntao/sicp-solution | 3-37.rkt | #lang racket
(require (combine-in (only-in "../ToolBox/ConstraintSystem/constraint.rkt"
adder
multiplier)
(only-in "../ToolBox/ConstraintSystem/connector.rkt"
make-connector
cons... | null | https://raw.githubusercontent.com/w3ntao/sicp-solution/00be3a7b4da50bb266f8a2db521a24e9f8c156be/chap-3/3-37.rkt | racket | #lang racket
(require (combine-in (only-in "../ToolBox/ConstraintSystem/constraint.rkt"
adder
multiplier)
(only-in "../ToolBox/ConstraintSystem/connector.rkt"
make-connector
cons... | |
4bc49d258ba327c8c24758db081c9a67193b4090e6ecfb40adf9153f4de5bf57 | grapesmoker/cl-sfml | render-texture.lisp | (in-package :sfml)
(defclass render-texture (texture render-window)
((depth-buffer :initarg :depth-buffer
:initform nil
:accessor render-texture-depth-buffer)))
(defcfun ("sfRenderTexture_create" sf-render-texture-create) :pointer
(width :unsigned-int)
(height :unsigned-int)
(depth-buffer sf-bool))
(de... | null | https://raw.githubusercontent.com/grapesmoker/cl-sfml/3e587b431bbdd23dde2d0031f979d859ac436bca/graphics/render-texture.lisp | lisp | (in-package :sfml)
(defclass render-texture (texture render-window)
((depth-buffer :initarg :depth-buffer
:initform nil
:accessor render-texture-depth-buffer)))
(defcfun ("sfRenderTexture_create" sf-render-texture-create) :pointer
(width :unsigned-int)
(height :unsigned-int)
(depth-buffer sf-bool))
(de... | |
2e85cd542b3f5e0c9197f27a1b63e662702e79b22cd5af7c328961e0af7d20e8 | dking1286/joyful_clojure | main.clj | (ns main
(:require [ring.adapter.jetty :refer [run-jetty]]
[environ.core :refer [env]]
[app :refer [app]])
(:gen-class))
(defn -main
[& args]
(run-jetty app {:port (Integer/valueOf (:port env))}))
| null | https://raw.githubusercontent.com/dking1286/joyful_clojure/fa4a17091eab2318b2901a17d0d1004539b6ba76/03_clojure_application_development/src/main.clj | clojure | (ns main
(:require [ring.adapter.jetty :refer [run-jetty]]
[environ.core :refer [env]]
[app :refer [app]])
(:gen-class))
(defn -main
[& args]
(run-jetty app {:port (Integer/valueOf (:port env))}))
| |
2eb4a5c56bedc538f31277b5c915bb4f2d17727cd14f3eeb2e7d78a454c0994f | pokepay/cl-fluent-logger | text.lisp | (defpackage #:cl-fluent-logger/logger/text
(:use #:cl
#:cl-fluent-logger/logger/base)
(:import-from #:local-time)
(:import-from #:bordeaux-threads)
(:import-from #:jonathan)
(:export #:text-logger
#:text-logger-stream))
(in-package #:cl-fluent-logger/logger/text)
(defclass text-logger (bas... | null | https://raw.githubusercontent.com/pokepay/cl-fluent-logger/688e4fbf8762b9fa7c4d2f72fb524a9f1c3236ac/logger/text.lisp | lisp | (defpackage #:cl-fluent-logger/logger/text
(:use #:cl
#:cl-fluent-logger/logger/base)
(:import-from #:local-time)
(:import-from #:bordeaux-threads)
(:import-from #:jonathan)
(:export #:text-logger
#:text-logger-stream))
(in-package #:cl-fluent-logger/logger/text)
(defclass text-logger (bas... | |
d247eb437a8745f3933c7c7ebb246e7a6ee7acbdce922f708f54d09c295282ad | ocaml-ppx/ppx | code_path.ml | open! Import
type t =
{ file_path : string
; main_module_name : string
; submodule_path : string Loc.t list
; value : string Loc.t option
; in_expr : bool
}
let top_level ~file_path =
let main_module_name =
file_path
|> Filename.basename
|> Filename.remove_extension
|> String.capitalize
... | null | https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/src/code_path.ml | ocaml | open! Import
type t =
{ file_path : string
; main_module_name : string
; submodule_path : string Loc.t list
; value : string Loc.t option
; in_expr : bool
}
let top_level ~file_path =
let main_module_name =
file_path
|> Filename.basename
|> Filename.remove_extension
|> String.capitalize
... | |
def2dee7f9d26f5af7deb75f9c3dd14fbcd257837b6c651b7735bd562c701322 | stan-dev/stanc3 | Pedantic_dist_warnings.ml | open Core_kernel
open Core_kernel.Poly
open Middle
open Mir_utils
(*********************
Types and utilities
********************)
(** Useful information about an expression. [Opaque] means we don't know anything. *)
type compiletime_val =
| Opaque
| Number of (float * string)
| Param of (string * Expr.Type... | null | https://raw.githubusercontent.com/stan-dev/stanc3/dcc107ae11db9f7f6a5a745ce7cde31e5bcad028/src/analysis_and_optimization/Pedantic_dist_warnings.ml | ocaml | ********************
Types and utilities
*******************
* Useful information about an expression. [Opaque] means we don't know anything.
* Info about a distribution occurrences that's useful for checking that
distribution properties are met
* Value constraint as a range. The bools are true if the bound is... | open Core_kernel
open Core_kernel.Poly
open Middle
open Mir_utils
type compiletime_val =
| Opaque
| Number of (float * string)
| Param of (string * Expr.Typed.t Transformation.t)
| Data of string
type dist_info =
{ name: string
; loc: Location_span.t
; args: (compiletime_val * Expr.Typed.Meta.t) List.t... |
1fa87a5308a63aedc391b58983ca19e1e9beecfa6b0dcd0eaa87a30f84d7a408 | yzh44yzh/practical_erlang | sup_1.erl | -module(sup_1).
-export([start_link/0, init/1]).
TODO
| null | https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/12_supervisor/exercise/sup_1.erl | erlang | -module(sup_1).
-export([start_link/0, init/1]).
TODO
| |
f841ff53f51405ea099b0e5f371555ed074dbd8280ba1ed1803f9fa98c60729c | nomeata/kaleidogen | Layout.hs | module Layout where
type Pos = (Double, Double)
type WindowSize = (Double, Double)
type PosAndScale = (Pos, Double)
noPas :: PosAndScale
noPas = ((0,0),0)
type Layout a = WindowSize -> a -> PosAndScale
translate :: (Double, Double) -> PosAndScale -> PosAndScale
translate (x', y') ((x,y),s) = ((x + x', y + y'), s)
... | null | https://raw.githubusercontent.com/nomeata/kaleidogen/3906d86052a1b895cc07acc1af0180054bc27f30/src/Layout.hs | haskell | A bit of a hack, piercing some abstractions… | module Layout where
type Pos = (Double, Double)
type WindowSize = (Double, Double)
type PosAndScale = (Pos, Double)
noPas :: PosAndScale
noPas = ((0,0),0)
type Layout a = WindowSize -> a -> PosAndScale
translate :: (Double, Double) -> PosAndScale -> PosAndScale
translate (x', y') ((x,y),s) = ((x + x', y + y'), s)
... |
8fdfdc14aa02572ae00d6aba57514c79073167b43947c22b304f27f554f331fd | janestreet/memtrace_viewer | substring_heavy_hitters.ml | open! Core
module CharHH = Memtrace_viewer_native.For_testing.Substring_heavy_hitters.Make (struct
include Char
let dummy = Char.max_value
end)
let process lines =
let heavy_hitters = CharHH.create ~tolerance:0.01 in
let (_ : string) =
List.fold lines ~init:"" ~f:(fun prev_line line ->
let co... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer/5dcbb50e1c9cb2364741c9886474895649acaff0/test/server/substring_heavy_hitters.ml | ocaml | open! Core
module CharHH = Memtrace_viewer_native.For_testing.Substring_heavy_hitters.Make (struct
include Char
let dummy = Char.max_value
end)
let process lines =
let heavy_hitters = CharHH.create ~tolerance:0.01 in
let (_ : string) =
List.fold lines ~init:"" ~f:(fun prev_line line ->
let co... | |
74714cfd44e0993f83da0bcd5a4c5bb6a96d3b5c324bc355c3c06b625fd012c6 | sgbj/MaximaSharp | mactex.lisp | -*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
(in-package :maxima)
;; TeX-printing
( c ) copyright 1987 ,
small corrections and additions : , 2001
additional additions : ( JM ) , September 2001
additional corrections : ( BLW ) , October 2001
Usage : tex(d8... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/mactex.lisp | lisp | Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ;
TeX-printing
/ foo.tex " ) ; ..
to append lines d8 and d10 to the tex file. If given only
Extract from permission letter to wfs:
Date: Sat, 2 Apr 88 18:06:16 PST
To:
Subject: about tex...
else who might be interested in it....
source languag... |
(in-package :maxima)
( c ) copyright 1987 ,
small corrections and additions : , 2001
additional additions : ( JM ) , September 2001
additional corrections : ( BLW ) , October 2001
one argument the result goes to standard output .
From : fateman%vangogh . Berkeley . EDU@ucbvax . Berkeley . EDU (... |
4ef3009127de97b7ff964b902437aa213c2eb360be7be35ba64d9b0df3041b27 | tolitius/yang | lang.clj | (ns yang.lang
(:require [clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.string :as s]
[clojure.set :as sets]
[clojure.pprint :as pp]
[clojure.pprint :as pp]
[clojure.walk :as walk])
(:import [java.util UUID]
[java.io ByteArra... | null | https://raw.githubusercontent.com/tolitius/yang/c00d37e502a2a37e6ee92f323734fb4955bc0882/src/yang/lang.clj | clojure | :foo/bar -> :bar
case insensitive
threads
reflection | (ns yang.lang
(:require [clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.string :as s]
[clojure.set :as sets]
[clojure.pprint :as pp]
[clojure.pprint :as pp]
[clojure.walk :as walk])
(:import [java.util UUID]
[java.io ByteArra... |
0d2d7bf2e6c915843579047046fd3bbe374b44134cdf61a7bea740f2296e57d1 | input-output-hk/cardano-ledger | TxAux.hs | {-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveFunctor #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
module Cardano.Chain.UTxO.TxAux (
TxAux,
ATxA... | null | https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/byron/ledger/impl/src/Cardano/Chain/UTxO/TxAux.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE OverloadedStrings #
| Transaction + auxiliary data
Used for debugging purposes only | # LANGUAGE DeriveFunctor #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
module Cardano.Chain.UTxO.TxAux (
TxAux,
ATxAux (..),
mkTxAux,
annotateTxAux,
taTx,
taWitness,
txaF,
)... |
a8e404d7ff4735aa1a6fc4400a5713160e0a87dab45e8a301ae750475e1d28b6 | nyu-acsys/drift | semanticDomain.ml | open AbstractDomain
open Syntax
open Util
open SensitiveDomain
open SenSemantics
(*
**********************************
** Abstract Data Flow Semantics **
**********************************
*)
let name_of_node lb = ("z" ^ lb)
let fresh_length = fresh_func "l"
let fresh_item = fresh_func "e"
let pre_def_func = ref [... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/src/domain/semanticDomain.ml | ocaml |
**********************************
** Abstract Data Flow Semantics **
**********************************
**********************************
** Abstract domain for Relation **
**********************************
{v:bool | at: [at^at' V at^af'], af: [af^at' V af^af']}
{v:int| a^at V a^af}
cons for ... | open AbstractDomain
open Syntax
open Util
open SensitiveDomain
open SenSemantics
let name_of_node lb = ("z" ^ lb)
let fresh_length = fresh_func "l"
let fresh_item = fresh_func "e"
let pre_def_func = ref []
module SemanticsDomain =
struct
let alpha_rename_R (a:relation_t) prevar var :relation_t = match a wit... |
6ed06aafc7a16546b247509669cc5ab5461011b6a86452f607b08e5791e6c53f | exercism/scheme | robot-name.scm | (define-module (robot)
#:export (build-robot
robot-name
reset-name)
#:autoload (srfi srfi-1) (iota))
| null | https://raw.githubusercontent.com/exercism/scheme/d1678ab6eb97dc8fee58269548d9c9d8d39c8367/exercises/practice/robot-name/robot-name.scm | scheme | (define-module (robot)
#:export (build-robot
robot-name
reset-name)
#:autoload (srfi srfi-1) (iota))
| |
65adce6a6614872459ba2e2d4a8c748fa7d5e4d8adc7e3f524acaddee934d125 | fsestini/zsyntax | Frontier.hs | # LANGUAGE DataKinds #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
{-# LANGUAGE GADTs #-}
module Zsyntax.Labelled.Rule.Frontier where
-- ( GoalNSequent(..)
-- , Rule
-- , initialSequentsAndRules
-- ) where
import Data.Maybe (mapMaybe)
import Data.Constraint (Dict... | null | https://raw.githubusercontent.com/fsestini/zsyntax/761a4e42b05cd77bfcd6160165562baf20ca4697/src/Zsyntax/Labelled/Rule/Frontier.hs | haskell | # LANGUAGE GADTs #
( GoalNSequent(..)
, Rule
, initialSequentsAndRules
) where
------------------------------------------------------------------------------
Goal and result sequents.
| Type of goal sequents.
A goal sequent is characterized by an unrestricted context of axioms, a
(non-empty) neutral context, a... | # LANGUAGE DataKinds #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Zsyntax.Labelled.Rule.Frontier where
import Data.Maybe (mapMaybe)
import Data.Constraint (Dict(..))
import Otter (unRule, Subsumable(..))
import Data.MultiSet (MultiSet)
import Data.Foldable (toLis... |
7e94d1886365c4e62ef0788611fcdaf035b0529cb332944580501cb58e58c660 | orx/ocaml-orx | direct_bindings.ml | module _ = Orx_gen.Color
module _ = Orx_gen.Display
module Anim = Orx_gen.Anim
module Sound = Orx_gen.Sound
module String_id = Orx_gen.String_id
module Structure = Orx_gen.Structure
module Structure_id = Orx_types.Structure_id
module Status = Orx_gen.Status
module Clock_modifier = Orx_types.Clock_modifier
module Clock_... | null | https://raw.githubusercontent.com/orx/ocaml-orx/0c0ef3992e97432714ae6b3fb69469ee0f56bc2c/src/lib/direct_bindings.ml | ocaml | module _ = Orx_gen.Color
module _ = Orx_gen.Display
module Anim = Orx_gen.Anim
module Sound = Orx_gen.Sound
module String_id = Orx_gen.String_id
module Structure = Orx_gen.Structure
module Structure_id = Orx_types.Structure_id
module Status = Orx_gen.Status
module Clock_modifier = Orx_types.Clock_modifier
module Clock_... | |
66c242b129fc168187adff21940ab038ece6ca4eb203968c1a1296fc1f62a2a0 | Agda-zh/PLFA-zh | Configuration.hs | module Buildfile.Configuration where
import Data.Text (Text)
import Shoggoth.Prelude ((</>))
githubOwner, githubRepo :: Text
githubOwner = "plfa"
githubRepo = "plfa.github.io"
outDir, tmpDir :: FilePath
outDir = "_site"
tmpDir = "_cache"
dataDir, authorDir, contributorDir, bibliographyFile, tableOfContentsFile :: F... | null | https://raw.githubusercontent.com/Agda-zh/PLFA-zh/7f959df5f43085eec5e8dcb8b6df46e342c3a8ea/tools/Buildfile/Configuration.hs | haskell | Fix Agda HTML output
Compile Markdown to HTML | module Buildfile.Configuration where
import Data.Text (Text)
import Shoggoth.Prelude ((</>))
githubOwner, githubRepo :: Text
githubOwner = "plfa"
githubRepo = "plfa.github.io"
outDir, tmpDir :: FilePath
outDir = "_site"
tmpDir = "_cache"
dataDir, authorDir, contributorDir, bibliographyFile, tableOfContentsFile :: F... |
88b1f2cc8295a1b6c43020906439a9900ec5d8b572f54fd46fdd9e10110541b3 | omcljs/om | core.cljs | (ns examples.animation.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(def app-state (atom {:count 0}))
(defn animation-view [app owner]
(reify
om/IWillMount
(will-mount [_]
(js/setInterval
(fn [] (om/transact... | null | https://raw.githubusercontent.com/omcljs/om/3a1fbe9c0e282646fc58550139b491ff9869f96d/examples/animation/src/core.cljs | clojure | (ns examples.animation.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(def app-state (atom {:count 0}))
(defn animation-view [app owner]
(reify
om/IWillMount
(will-mount [_]
(js/setInterval
(fn [] (om/transact... | |
3ecbf4da62b50768ae9afb0c0066410110d37627c2f8101c8b3d0392cc09ba91 | HaskellForCats/HaskellForCats | readingVonnegut.hs | module Main where
-- : set expandtab ts=4 ruler number spell
stdout and stdin , meaning standard output and standard input . Writing to and reading from files is very much like writing to the standard output and reading from the standard input .
import System.IO
main = do
contents <- readFile "2_B_R_0_2_B.txt... | null | https://raw.githubusercontent.com/HaskellForCats/HaskellForCats/2d7a15c0cdaa262c157bbf37af6e72067bc279bc/readingVonnegut.hs | haskell | : set expandtab ts=4 ruler number spell | module Main where
stdout and stdin , meaning standard output and standard input . Writing to and reading from files is very much like writing to the standard output and reading from the standard input .
import System.IO
main = do
contents <- readFile "2_B_R_0_2_B.txt"
putStr contents
|
07582b9468877cc0ad701bdb67e7b58c6d16d6cbaac76904816489c3cb6752a7 | lasp-lang/types | state_pair.erl | %%
Copyright ( c ) 2015 - 2016 . All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law ... | null | https://raw.githubusercontent.com/lasp-lang/types/e35b9b3a32b8f580daff1a7d1102813ad530835e/src/state_pair.erl | erlang |
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
----------------------------... | Copyright ( c ) 2015 - 2016 . All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
, , and
... |
eb3e3b5895e99d309f8b8693bbdae9034178d10be93be915c485c1dfc1e45b20 | paf31/dovetail | Ord.hs | # LANGUAGE BlockArguments #
# LANGUAGE ImportQualifiedPost #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE ViewPatterns #
module Dovetail.Core.Data.Ord where
import Data.Foldable (fold)
import Data.Text (Text)
import Data.Vector (Vecto... | null | https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/dovetail-core/src/Dovetail/Core/Data/Ord.hs | haskell | # LANGUAGE OverloadedStrings #
ordBooleanImpl :: Ordering -> Ordering -> Ordering -> Boolean -> Boolean -> Ordering
ordIntImpl :: Ordering -> Ordering -> Ordering -> Int -> Int -> Ordering
ordNumberImpl :: Ordering -> Ordering -> Ordering -> Double -> Double -> Ordering
ordStringImpl :: Ordering -> Ordering -> Or... | # LANGUAGE BlockArguments #
# LANGUAGE ImportQualifiedPost #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE ViewPatterns #
module Dovetail.Core.Data.Ord where
import Data.Foldable (fold)
import Data.Text (Text)
import Data.Vector (Vector)
import Data.Vector qualified as Ve... |
ea2cdb0fdf0e1e0712a3d97a297e32f2d3bd0e52f1ac6c6ed1a3a9c37bfaa99b | urbit/urbit-hob | Co.hs | module Main where
import qualified Co.Tests.Property as P
import qualified Co.Tests.Unit as U
import Test.Hspec
main :: IO ()
main =
hspec $ do
context "property tests" P.tests
context "unit tests" U.tests
| null | https://raw.githubusercontent.com/urbit/urbit-hob/3d4da34523ba8e5ea192744c861fead076c0f8e8/test/Co.hs | haskell | module Main where
import qualified Co.Tests.Property as P
import qualified Co.Tests.Unit as U
import Test.Hspec
main :: IO ()
main =
hspec $ do
context "property tests" P.tests
context "unit tests" U.tests
| |
a133624004e810bf4286d1406464c119d2e79ed5992377c23e05e8fc8dae52ad | coast-framework/coast | connection.clj | (ns coast.db.connection
(:require [coast.env :refer [env]]
[clojure.edn :as edn]
[clojure.java.io :as io])
(:import (com.zaxxer.hikari HikariConfig HikariDataSource)
(java.util Properties)))
(defn spec
([]
(let [m (->> (slurp (or (io/resource "db.edn") "db.edn"))
... | null | https://raw.githubusercontent.com/coast-framework/coast/f31c74c7a875207a717a407e52c6449a53da2c69/src/coast/db/connection.clj | clojure | (ns coast.db.connection
(:require [coast.env :refer [env]]
[clojure.edn :as edn]
[clojure.java.io :as io])
(:import (com.zaxxer.hikari HikariConfig HikariDataSource)
(java.util Properties)))
(defn spec
([]
(let [m (->> (slurp (or (io/resource "db.edn") "db.edn"))
... | |
9e879deee4d505a7a5cf31a41f1ff187fdadc0b28f703e9b89a9f91c53ac636a | symbiont-io/detsys-testkit | NamedPipeTest.hs | module StuntDouble.Transport.NamedPipeTest where
import Test.HUnit
import StuntDouble
------------------------------------------------------------------------
unit_transportNamedPipe :: Assertion
unit_transportNamedPipe = do
t <- namedPipeTransport "/tmp" (EventLoopName "transportNamedPipe")
let e = Envelope Re... | null | https://raw.githubusercontent.com/symbiont-io/detsys-testkit/29a3a0140730420e4c5cc8db23df6fdb03f9302c/src/runtime-prototype/test/StuntDouble/Transport/NamedPipeTest.hs | haskell | ---------------------------------------------------------------------- | module StuntDouble.Transport.NamedPipeTest where
import Test.HUnit
import StuntDouble
unit_transportNamedPipe :: Assertion
unit_transportNamedPipe = do
t <- namedPipeTransport "/tmp" (EventLoopName "transportNamedPipe")
let e = Envelope RequestKind (RemoteRef "from" 0) (InternalMessage "msg")
... |
63a8cd37062aebd465245aab8cd6a8b348b5bf2fb4661bd7e1bb59b4d70237a2 | tweag/asterius | mc03.hs | -- "Big tuple" stress test for monad comprehensions
{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp -XParallelListComp #-}
module Main where
main = putStrLn (show output)
where
output = [ x0 + x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 +
x10 + x11 + x12 + x13 + x14 + x15 + x16 + x17 + ... | null | https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/deSugar/mc03.hs | haskell | "Big tuple" stress test for monad comprehensions
# OPTIONS_GHC -XMonadComprehensions -XTransformListComp -XParallelListComp # |
module Main where
main = putStrLn (show output)
where
output = [ x0 + x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 +
x10 + x11 + x12 + x13 + x14 + x15 + x16 + x17 + x18 + x19 +
x20 + x21 + x22 + x23 + x24 + x25 + x26 + x27 + x28 + x29 +
x30 + x31 + x32 + x33 + x34 + x... |
ce0879cc19bd036b66976bb7b272141217edea733d41c00a7fbc552af0a098a2 | dustin/environ | lemp_handler.erl | %%
%%
%%
-module(lemp_handler).
-behavior(gen_event).
-export([init/1, handle_event/2, handle_call/2, handle_info/2, code_change/3,
terminate/2]).
Init
init([Pid|_Args]) ->
error_logger:info_msg("Starting event handler with: ~p", [Pid]),
{ok, Pid}.
% Handle a reading
handle_event({reading, Key, Name, V... | null | https://raw.githubusercontent.com/dustin/environ/a45e714752a38e0b67ebd7e8d0bf8fb0c74d7945/src/lemp_handler.erl | erlang |
Handle a reading
Send the stuff from the event |
-module(lemp_handler).
-behavior(gen_event).
-export([init/1, handle_event/2, handle_call/2, handle_info/2, code_change/3,
terminate/2]).
Init
init([Pid|_Args]) ->
error_logger:info_msg("Starting event handler with: ~p", [Pid]),
{ok, Pid}.
handle_event({reading, Key, Name, Val, Vals}, Pid) ->
Pid ! {r... |
ba9e6d5ef135728845b751c37ae3a31195dc83f68179c5cedeed073ecb5fb1e5 | exoscale/clojure-kubernetes-client | policy_v1beta1_id_range.clj | (ns clojure-kubernetes-client.specs.policy-v1beta1-id-range
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
)
(:import (java.io File)))
(declare policy-v1beta1-id-range-data policy-v1beta1-id-range)
(def policy-v1beta1-id-range-data
{
(ds/req :max) int?
(ds/req :... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/policy_v1beta1_id_range.clj | clojure | (ns clojure-kubernetes-client.specs.policy-v1beta1-id-range
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
)
(:import (java.io File)))
(declare policy-v1beta1-id-range-data policy-v1beta1-id-range)
(def policy-v1beta1-id-range-data
{
(ds/req :max) int?
(ds/req :... | |
625f4fff98e2ff8b9bb0678f9b909b64c78cc8fc7adea536e5f60330dcdad00c | clojure-interop/java-jdk | TreeModel.clj | (ns javax.swing.tree.TreeModel
"The model used by JTree.
JTree and its related classes make extensive use of
TreePaths for identifying nodes in the TreeModel.
If a TreeModel returns the same object, as compared by
equals, at two different indices under the same parent
than the resulting TreePath objects wi... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/tree/TreeModel.clj | clojure | the node representing | (ns javax.swing.tree.TreeModel
"The model used by JTree.
JTree and its related classes make extensive use of
TreePaths for identifying nodes in the TreeModel.
If a TreeModel returns the same object, as compared by
equals, at two different indices under the same parent
than the resulting TreePath objects wi... |
556cd3fc0c678b111a3214f68e074d904692d61a031af7d6ccbaabc4ae117a3e | OCamlPro/scilint | scilabFiveParser.ml | OCamlPro Scilab Toolbox - Resilient parser for Scilab 5 's syntax
* Copyright ( C ) 2013 - OCamlPro - Benjamin CANOU
*
* This file must be used under the terms of the CeCILL .
* This source file is licensed as described in the file COPYING , which
* you should have received as part of this dis... | null | https://raw.githubusercontent.com/OCamlPro/scilint/9d9ddd8e1630ddeae7f4f875bce62b2f65ec17d8/src/parser/scilab_five/scilabFiveParser.ml | ocaml | * A simple module to consume a stream character per character. Hides
an internal buffer for performance and the ability to put
characters back in the stream and modify it in place.
Ugly hack, because "..( .)*\n" are not taken into account after
a "//". This function has no other use case than eating
... | OCamlPro Scilab Toolbox - Resilient parser for Scilab 5 's syntax
* Copyright ( C ) 2013 - OCamlPro - Benjamin CANOU
*
* This file must be used under the terms of the CeCILL .
* This source file is licensed as described in the file COPYING , which
* you should have received as part of this dis... |
ef01fc53b3dddf9118fa01fdae0e8a214f87c2d02008921a9c1392e8f16c484b | sharplispers/cl-string-match | smoke.lisp | -*- package : CL - STRING - MATCH - TEST ; Syntax : Common - lisp ; Base : 10 -*-
;; Running tests from the command line:
;;
;; sbcl --eval '(ql:quickload "CL-STRING-MATCH-TEST")' --eval '(sm-test:run)' --quit
;; lx86cl --eval '(ql:quickload "CL-STRING-MATCH-TEST")' --eval '(sm-test:run)' --eval '(quit)'
echo ' (... | null | https://raw.githubusercontent.com/sharplispers/cl-string-match/aa660127ba230b8dda5bf45bb9ac6903cafb402d/t/smoke.lisp | lisp | Syntax : Common - lisp ; Base : 10 -*-
Running tests from the command line:
sbcl --eval '(ql:quickload "CL-STRING-MATCH-TEST")' --eval '(sm-test:run)' --quit
lx86cl --eval '(ql:quickload "CL-STRING-MATCH-TEST")' --eval '(sm-test:run)' --eval '(quit)'
ecl -eval '(ql:quickload "CL-STRING-MATCH-TEST")' -eval '(sm-te... |
echo ' ( ql : quickload : CL - STRING - MATCH - TEST ) ( sm - test : run ) ( quit ) ' | abcl
Or just run the smoke-all.sh shell script .
(in-package :cl-string-match-test)
(setq *print-failures* t)
(setq lisp-unit:*print-failures* t)
(defparameter *funcs*
'(sm:string-contains-brute
sm:string-contains... |
08a2a42bcf13a74513ba6f7432065c036a2c90bb812a0d26cbc353805777981c | darrenldl/oali | storage_unit.ml | open Proc_utils
type fs =
[ `Fat32
| `Ext4
]
module Luks_info = struct
type enc_params = {
iter_time_ms : int option;
key_size_bits : int option;
}
type luks_version =
[ `LuksV1
| `LuksV2
]
type t = {
enc_params : enc_params;
primary_key : string;
secondary_key : string... | null | https://raw.githubusercontent.com/darrenldl/oali/fa2a7e7171eb57c4bab5961a124ac165120e40cb/src/storage_unit.ml | ocaml | let print_msg msg = Printf.printf "storage unit: %s\n" msg
L1 set up and mount
L2 set up and mount
L3 set up and mount | open Proc_utils
type fs =
[ `Fat32
| `Ext4
]
module Luks_info = struct
type enc_params = {
iter_time_ms : int option;
key_size_bits : int option;
}
type luks_version =
[ `LuksV1
| `LuksV2
]
type t = {
enc_params : enc_params;
primary_key : string;
secondary_key : string... |
ceaefb4115d6dd7362002d793d51f1927e3d30a0342d3dfbf553321b851d4f43 | fourmolu/fourmolu | output-2-respectful.hs |
data Color = Red | Orange | Yellow | Green | Blue | Purple
data Foo = Foo
{ a :: Int
, b :: Double
}
type Foo2 = Foo
newtype Bar = Bar Int
| null | https://raw.githubusercontent.com/fourmolu/fourmolu/c47d1b68d7af393f1a1a32d0a77b85df0656f6d8/data/fourmolu/newlines-between-decls/output-2-respectful.hs | haskell |
data Color = Red | Orange | Yellow | Green | Blue | Purple
data Foo = Foo
{ a :: Int
, b :: Double
}
type Foo2 = Foo
newtype Bar = Bar Int
| |
1e78572147f0eec7afdc704e66d471eb442ce6b7e6f67e4703bb3909a31ec0cb | mejgun/haskell-tdlib | RecoverPassword.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.RecoverPassword where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
Recovers the 2 - step verification password using a recovery code sent to an email address that was previously set up
data RecoverPa... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/RecoverPassword.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
| New password hint; may be empty
| Recovery code to check |
module TD.Query.RecoverPassword where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
Recovers the 2 - step verification password using a recovery code sent to an email address that was previously set up
data RecoverPassword = RecoverPassword
new_hint :: Mayb... |
3661bdce7eaa44c85f9f178f87233b2b9ec9102ee07ae1dc9af673a6c7a607fb | satos---jp/mincaml_self_hosting | alpha.ml | open Knorm
open Genint
let genname () = Printf.sprintf "@a_%d" (genint ())
let rec alpha_conv ast env =
let conv_var (x,td) =
try
(List.assoc x env,td)
with
| Not_found -> (x,td)
in
let conv_list vs = List.map conv_var vs
in
try (
match ast with
| KConst _ -> ast
| KOp(op,vs) -> KOp(op,conv_list... | null | https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/src/compiler/alpha.ml | ocaml | open Knorm
open Genint
let genname () = Printf.sprintf "@a_%d" (genint ())
let rec alpha_conv ast env =
let conv_var (x,td) =
try
(List.assoc x env,td)
with
| Not_found -> (x,td)
in
let conv_list vs = List.map conv_var vs
in
try (
match ast with
| KConst _ -> ast
| KOp(op,vs) -> KOp(op,conv_list... | |
c7c8b120f7bc24b157c6a39704396636f2c82a0ee11cd054ab9ba91350972f38 | gas2serra/cldk | simple-buffered-window.lisp | (ql:quickload :cldk)
(ql:quickload :cldk-sdl2)
(ql:quickload :cldk-clx)
#|
(log:info (cldk:map-over-servers #'cldk:server-path))
(cldk:map-over-servers #'cldk:destroy-server)
(cldk:map-over-servers #'cldki::kill-server)
(log:info (bt:all-threads))
|#
(defun set-pixel (data x y red green blue alpha)
(setf (aref data... | null | https://raw.githubusercontent.com/gas2serra/cldk/63c8322aedac44249ff8f28cd4f5f59a48ab1441/examples/simple-buffered-window.lisp | lisp |
(log:info (cldk:map-over-servers #'cldk:server-path))
(cldk:map-over-servers #'cldk:destroy-server)
(cldk:map-over-servers #'cldki::kill-server)
(log:info (bt:all-threads))
copy
(cldk:flush-buffered-window w)
copy
(cldk:copy-image img 0 0 width height (cldk:buffered-window-image w) 0 0)
(cldk:flush-buffered-window ... | (ql:quickload :cldk)
(ql:quickload :cldk-sdl2)
(ql:quickload :cldk-clx)
(defun set-pixel (data x y red green blue alpha)
(setf (aref data y x)
(dpb red (byte 8 0)
(dpb green (byte 8 8)
(dpb blue (byte 8 16)
(dpb alpha (byte 8 24) 0))))))
(defun fill-buffer ... |
7320e16dd23b32b85486c0565d75003d915419a3533f6d5ea8e55b6e38a68653 | ArulselvanMadhavan/haskell-first-principles | wordnumber.hs | module WordNumber where
import Data.List (intersperse)
digitToWord :: Int -> String
digitToWord n =
case n of
0 -> "Zero"
1 -> "One"
2 -> "Two"
3 -> "Three"
4 -> "Four"
5 -> "Five"
6 -> "Six"
7 -> "Seven"
8 -> "Eight"
9 -> "Nine"
digits :: Int... | null | https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter8/src/wordnumber.hs | haskell | module WordNumber where
import Data.List (intersperse)
digitToWord :: Int -> String
digitToWord n =
case n of
0 -> "Zero"
1 -> "One"
2 -> "Two"
3 -> "Three"
4 -> "Four"
5 -> "Five"
6 -> "Six"
7 -> "Seven"
8 -> "Eight"
9 -> "Nine"
digits :: Int... | |
922aee86996062efb1504cfa9bbbb3a648661129dc53246a8e7bd291dc1566aa | ocramz/xeno | Bench.hs | {-# LANGUAGE BangPatterns #-}
{-# LANGUAGE QuasiQuotes #-}
import Control.Monad
import Data.Time.Clock
import System.IO.Posix.MMap
import System.Mem
import Xeno.DOM
import qualified Data.ByteString as BS
main :: IO ()
main = do
let prefix = "ex-data/"
files' = map (prefix ++)
921 Mb
190 Mb
1.6 Gb
... | null | https://raw.githubusercontent.com/ocramz/xeno/5a2607b6769f9e004a94348cabb4718e4c949747/app/Bench.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE QuasiQuotes #
It can be done with `vmtouch` utility for example (`vmtouch -vtL *`).
bs <- BS.readFile fn
let res = validate bs
putStrLn [qc| process result: {res}|]
| import Control.Monad
import Data.Time.Clock
import System.IO.Posix.MMap
import System.Mem
import Xeno.DOM
import qualified Data.ByteString as BS
main :: IO ()
main = do
let prefix = "ex-data/"
files' = map (prefix ++)
921 Mb
190 Mb
1.6 Gb
, { - 21 Gb - } " enwiki-20190901-pages-meta-history2... |
3402bc7d06ad3eeb79156d9eb95dd0bb2c0acaacc06b260c3efe343b64cf85f9 | herd/herdtools7 | handler.ml | (****************************************************************************)
(* the diy toolsuite *)
(* *)
, University College London , UK .
, INRIA Par... | null | https://raw.githubusercontent.com/herd/herdtools7/de608e9a67a4c91e442bb0f807c6641a4283b4be/litmus/handler.ml | ocaml | **************************************************************************
the diy toolsuite
en Automatique and ... | , University College London , UK .
, INRIA Paris - Rocquencourt , France .
Copyright 2022 - present Institut National de Recherche en Informatique et
This software is governed by the CeCILL - B license under French law and
modify and/ or redistribu... |
809ad57d320a14e77bcd67f2e22cd4f363134d40d7f165301da029a88848c973 | emaphis/HtDP2e-solutions | ex042.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex042) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ... | null | https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/1-Fixed-Size-Data/03-HtDP/ex042.rkt | racket | about the language level of this file in a form that our tools can easily process.
Car sample world
Modify the interpretation of the sample data definition so that a state
denotes the x-coordinate of the right-most edge of the car.
Definitions
single point of controlx
Graphical Constants
a car!
Data Definitio... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex042) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
HtDP 2e 3 How to Design Programs
3.6 Designing World Programs
... |
e7d0017a8684ebb3cafca5f9d592720db744f47309f391884758080bf5378e17 | bobzhang/ocaml-book | lexer_test.ml |
open Camlp4.PreCast
let lexer = Lexer.mk () Loc.ghost
let lexer_of_string str =
let streams = str
|> Stream.of_string
|> lexer in
try Stream.iter (fun (token,loc) ->
let fmt = Format.std_formatter in begin
if token <> EOI then begin
Token.print fmt token;
Loc.print fmt loc;
Format.print_... | null | https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/camlp4/code/lexer_test.ml | ocaml |
open Camlp4.PreCast
let lexer = Lexer.mk () Loc.ghost
let lexer_of_string str =
let streams = str
|> Stream.of_string
|> lexer in
try Stream.iter (fun (token,loc) ->
let fmt = Format.std_formatter in begin
if token <> EOI then begin
Token.print fmt token;
Loc.print fmt loc;
Format.print_... | |
407e5f0b38a74370d13cf05a0b867d69a27208835019bf214e9e1af43d2beb7c | arttuka/reagent-material-ui | roller_shades_two_tone.cljs | (ns reagent-mui.icons.roller-shades-two-tone
"Imports @mui/icons-material/RollerShadesTwoTone as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def roller-shades-... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/roller_shades_two_tone.cljs | clojure | (ns reagent-mui.icons.roller-shades-two-tone
"Imports @mui/icons-material/RollerShadesTwoTone as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def roller-shades-... | |
d7a67a60cec6af719c857e6a8a7a3231349fd18e87fea907726206560400e3ff | project-oak/hafnium-verification | ProcnameDispatcher.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/IR/ProcnameDispatcher.mli | ocaml | * To be used in 'list_constraint
Intermediate matcher types
* Combines matchers to create a dispatcher
Template arguments
* Eats a type
* Captures a type
* Captures an int
* Captures all template args
* Starts a path with a name
* Starts a path with a matching name that satisfies the given function
* Separa... |
* 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
... |
c4c29e2c118ae19557b279b4fc3925a0c2d5d7d69575827395a0d05cbf92a3ce | thheller/shadow | api.clj | (ns shadow.api)
(defmacro ns-ready
([]
`(shadow.api/ns-ready* ~(str *ns*) {}))
([opts]
`(shadow.api/ns-ready* ~(str *ns*) ~opts)))
| null | https://raw.githubusercontent.com/thheller/shadow/beab6586a9782ceb3e2a4bfa2935fb8756e13d2c/src/main/shadow/api.clj | clojure | (ns shadow.api)
(defmacro ns-ready
([]
`(shadow.api/ns-ready* ~(str *ns*) {}))
([opts]
`(shadow.api/ns-ready* ~(str *ns*) ~opts)))
| |
d38ad50c12ba22ed0326faa33b5034717fd9ccf8a25faf8ee0cdf64b889619ce | WhatsApp/erlt | built_in.erl | -file("dev/src/built_in.erlt", 1).
-module(built_in).
-eqwalizer_unchecked([]).
-export([use_format/0, use_lists/0]).
-spec use_format() -> atom().
use_format() ->
t_io:format("hello t_io~n"),
t_io:format("~p~p~n", {1, 2}).
-spec use_lists() -> [number()].
use_lists() ->
L = [1, 3, 2, 7, 5, 4, 0],
... | null | https://raw.githubusercontent.com/WhatsApp/erlt/616a4adc628ca8754112e659701e57f1cd7fecd1/tests/dev/ir-spec/built_in.erl | erlang | -file("dev/src/built_in.erlt", 1).
-module(built_in).
-eqwalizer_unchecked([]).
-export([use_format/0, use_lists/0]).
-spec use_format() -> atom().
use_format() ->
t_io:format("hello t_io~n"),
t_io:format("~p~p~n", {1, 2}).
-spec use_lists() -> [number()].
use_lists() ->
L = [1, 3, 2, 7, 5, 4, 0],
... | |
d27df5d35f1c9db7492ec8f8b85dd924fe2855af508d116add90745c45fc059f | nkly/toydb | Types.hs | # LANGUAGE DeriveDataTypeable , TemplateHaskell #
module Database.Toy.Internal.Metadata.Types where
import Control.Lens
import Data.Serialize
import Database.Toy.Internal.Prelude
import Database.Toy.Internal.Pager.Types (PageId)
import Database.Toy.Internal.Util.FixedSizeSerialize
import qualified Data.ByteString.Char... | null | https://raw.githubusercontent.com/nkly/toydb/c2fffdecc9b4c2fa1f841993976afe46611c5856/src/Database/Toy/Internal/Metadata/Types.hs | haskell | | Contains internal database related information.
See `doc/architecture.mkdn` file. | # LANGUAGE DeriveDataTypeable , TemplateHaskell #
module Database.Toy.Internal.Metadata.Types where
import Control.Lens
import Data.Serialize
import Database.Toy.Internal.Prelude
import Database.Toy.Internal.Pager.Types (PageId)
import Database.Toy.Internal.Util.FixedSizeSerialize
import qualified Data.ByteString.Char... |
f95a5491e0eb59fd7f6299f577ab722a42bd493d3a08167c4b38bed1141a37e7 | mcorbin/meuse | response.clj | (ns meuse.interceptor.response)
(def response
{:name ::response
:leave
(fn [ctx]
(:response ctx))})
| null | https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/interceptor/response.clj | clojure | (ns meuse.interceptor.response)
(def response
{:name ::response
:leave
(fn [ctx]
(:response ctx))})
| |
4286b1b551c03fa18fbb7d0e3306c6ce16e055b3ffefc5716bd9dc79b3893817 | ixmatus/prizm | Types.hs | # LANGUAGE ConstrainedClassMethods #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Prizm.Color.CIE.Types
Copyright : ( C ) 2017 Parnell Springmeyer
-- License : BSD3
M... | null | https://raw.githubusercontent.com/ixmatus/prizm/8baceff70b44a14bc67bac9efdd5270620567cec/src/Data/Prizm/Color/CIE/Types.hs | haskell | # LANGUAGE TypeFamilies #
---------------------------------------------------------------------------
|
Module : Data.Prizm.Color.CIE.Types
License : BSD3
Stability : stable
---------------------------------------------------------------------------
^ @X@ color point
^ @Y@ color point
^ ... | # LANGUAGE ConstrainedClassMethods #
# LANGUAGE FlexibleInstances #
Copyright : ( C ) 2017 Parnell Springmeyer
Maintainer : Parnell Springmeyer < >
module Data.Prizm.Color.CIE.Types where
import Data.Prizm.Types
| A color in the @CIE XYZ@ color space .
newtype XYZ = XYZ { unXYZ :: Col... |
0a371fa6e34a42e85403511a505c2a668f7ca137a6faaba34cab68b50c084657 | clojupyter/clojupyter | interrupt.clj | (ns clojupyter.kernel.handle-event.interrupt
(:require [clojupyter.kernel.cljsrv :as cljsrv]
[clojupyter.kernel.handle-event.ops :as ops :refer [definterceptor]]
[clojupyter.messages :as msgs]
[clojupyter.plan :as plan :refer [s*bind-state]]
[io.simplect.compose :refer ... | null | https://raw.githubusercontent.com/clojupyter/clojupyter/b54b30b5efa115937b7a85e708a7402bd9efa0ab/src/clojupyter/kernel/handle_event/interrupt.clj | clojure | (ns clojupyter.kernel.handle-event.interrupt
(:require [clojupyter.kernel.cljsrv :as cljsrv]
[clojupyter.kernel.handle-event.ops :as ops :refer [definterceptor]]
[clojupyter.messages :as msgs]
[clojupyter.plan :as plan :refer [s*bind-state]]
[io.simplect.compose :refer ... | |
daa36ea539d2afc22beff772962cb62e4c3b391968198eb2ff27b014024cdeb6 | janestreet/universe | wrappers.ml | open! Base
open! Msgpack
open Types
let nvim_buf_line_count ~buffer =
let buffer = Buffer.to_msgpack buffer in
{ name = "nvim_buf_line_count"; params = Array [ buffer ]; witness = Integer }
;;
let buffer_get_line ~buffer ~index =
let buffer = Buffer.to_msgpack buffer in
let index = Msgpack.Integer index in
... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/vcaml/nvim_internal/wrappers.ml | ocaml | open! Base
open! Msgpack
open Types
let nvim_buf_line_count ~buffer =
let buffer = Buffer.to_msgpack buffer in
{ name = "nvim_buf_line_count"; params = Array [ buffer ]; witness = Integer }
;;
let buffer_get_line ~buffer ~index =
let buffer = Buffer.to_msgpack buffer in
let index = Msgpack.Integer index in
... | |
8c11f662868d468405552e0a67c7261a449de784851c8d7be26e8203c1dd03a8 | selfsame/procadia2016 | data.clj | (ns human.data)
(def DB (atom
{:skin-tones
#{#unity/Color [0.3018461 0.1640916 0.04363091 1.0]
#unity/Color [0.735737 0.6741691 0.4030044 1.0]
#unity/Color [0.6863554 0.513454 0.2970535 1.0]
#unity/Color [0.4487059 0.3014611 0.04255995 1.0]
#unity/Color [0.5164777 0.2817353 0.0357536 1.0]
#u... | null | https://raw.githubusercontent.com/selfsame/procadia2016/31ecd59a776e1731b1a99cd9f6f2f511cde1d053/Assets/human/data.clj | clojure | (ns human.data)
(def DB (atom
{:skin-tones
#{#unity/Color [0.3018461 0.1640916 0.04363091 1.0]
#unity/Color [0.735737 0.6741691 0.4030044 1.0]
#unity/Color [0.6863554 0.513454 0.2970535 1.0]
#unity/Color [0.4487059 0.3014611 0.04255995 1.0]
#unity/Color [0.5164777 0.2817353 0.0357536 1.0]
#u... | |
949c82c7cfd907d1951ae8ed4d0303652d2542ba34af4cb9063a05131dee0a48 | rlepigre/ocaml-earley | earley_str.ml |
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Copyright
LAMA , UMR 5127 CNRS , Université Savoie Mont Blanc
This software contains a parser combinator library for the OCaml lang-
uage . It ... | null | https://raw.githubusercontent.com/rlepigre/ocaml-earley/66d7acb2b22edae0c2f7d64ef2a50fa70d1ed112/lib/earley_str.ml | ocaml |
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Copyright
LAMA , UMR 5127 CNRS , Université Savoie Mont Blanc
This software contains a parser combinator library for the OCaml lang-
uage . It ... | |
2da0369c1e2e26a138a78fc5f5f8d010cbda081119e1acac0419e704d04a8e02 | hiredman/clojurebot | utilities.clj | (ns hiredman.utilities
(:use (hiredman horizon))
(:import (java.net URL URLEncoder)
(java.io BufferedReader InputStreamReader OutputStreamWriter)
(java.text SimpleDateFormat ParsePosition)
(sun.misc BASE64Encoder)))
(defn get-url [x]
(with-open [a (-> (doto (-> x URL. .openConnec... | null | https://raw.githubusercontent.com/hiredman/clojurebot/1e8bde92f2dd45bb7928d4db17de8ec48557ead1/src/hiredman/utilities.clj | clojure | get-url)) | (ns hiredman.utilities
(:use (hiredman horizon))
(:import (java.net URL URLEncoder)
(java.io BufferedReader InputStreamReader OutputStreamWriter)
(java.text SimpleDateFormat ParsePosition)
(sun.misc BASE64Encoder)))
(defn get-url [x]
(with-open [a (-> (doto (-> x URL. .openConnec... |
8ef1214d2f811c33fb9dad05df449452f8120e4bd19b4e01d1a2ad23bebb63d3 | yogthos/compojure-template | project.clj | (defproject compojure-app/lein-template "0.4.9"
:description "Compojure project template for Leiningen"
:url "-template"
:eval-in-leiningen true
:license {:name "Eclipse Public License"
:url "-v10.html"}
)
| null | https://raw.githubusercontent.com/yogthos/compojure-template/2a4bdcb9cdda972b7966bf7e5a5f9b61a2bbda47/project.clj | clojure | (defproject compojure-app/lein-template "0.4.9"
:description "Compojure project template for Leiningen"
:url "-template"
:eval-in-leiningen true
:license {:name "Eclipse Public License"
:url "-v10.html"}
)
| |
b678929d546fb58c886fe694e6da592de6f4e251b7dc57070df202f56e5fd361 | kadena-io/chainweaver | VersionedStore.hs | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Frontend.VersionedStore
( module V1
, VersionedStorage(..)
, StorageVersion
, VersioningDecodeJsonError(..)
, VersioningUpgradeError(..)
, versionedStorage
, versionedFrontend
, storeProxy
) where
import Control.Monad.Except (Excep... | null | https://raw.githubusercontent.com/kadena-io/chainweaver/50a49d3c8013cca308672f0ee29252b7e8db26e6/frontend/src/Frontend/VersionedStore.hs | haskell | Should we do this, or should we just push on? The backup functionality really
depends on the storage being properly latest, but I think that our failthrough
-- This kinda means that we can't change the key representation ever.
But this will be hard to fix because the frontend doesn't know anything about this
... | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Frontend.VersionedStore
( module V1
, VersionedStorage(..)
, StorageVersion
, VersioningDecodeJsonError(..)
, VersioningUpgradeError(..)
, versionedStorage
, versionedFrontend
, storeProxy
) where
import Control.Monad.Except (Excep... |
1bcf815095f718ab0a025e1196efa1ef4691452d704da7e9e8678615a08184eb | TristanCacqueray/haskell-butler | WebSocket.hs | module Butler.Display.WebSocket (
WebSocketAPI,
OnWSConnect,
websocketServer,
splashHtml,
ChannelName (..),
Workspace (..),
) where
import Lucid
import Network.Socket
import Network.WebSockets qualified as WS
import Servant
import Servant.API.WebSocket
import Butler.Core
import Butler.Core.Sto... | null | https://raw.githubusercontent.com/TristanCacqueray/haskell-butler/a2967df555b041db7bf9740a3bef300f98db51cc/src/Butler/Display/WebSocket.hs | haskell | module Butler.Display.WebSocket (
WebSocketAPI,
OnWSConnect,
websocketServer,
splashHtml,
ChannelName (..),
Workspace (..),
) where
import Lucid
import Network.Socket
import Network.WebSockets qualified as WS
import Servant
import Servant.API.WebSocket
import Butler.Core
import Butler.Core.Sto... | |
da08549fc39dc5188640384a1bbf1639f1316078773e4e6fa0e4e8177221bd9d | arttuka/reagent-material-ui | woman_2_outlined.cljs | (ns reagent-mui.icons.woman-2-outlined
"Imports @mui/icons-material/Woman2Outlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def woman-2-outlined (create-... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/woman_2_outlined.cljs | clojure | (ns reagent-mui.icons.woman-2-outlined
"Imports @mui/icons-material/Woman2Outlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def woman-2-outlined (create-... | |
05b1a5111a79e5f049dac72fcc40ae20a99f70ab30bafc736a4a362afaf2b5fe | fterrier/pylos | board.cljs | (ns pylos.game.board
(:require [cljs.core.async :as async :refer [chan close! put! sub]]
[goog.string :as gstring]
[om-tools.core :refer-macros [defcomponent]]
[om-tools.dom :as dom :include-macros true]
[om.core :as om]
[pylos.board :refer [cell]]
... | null | https://raw.githubusercontent.com/fterrier/pylos/f9283cf58a32000ed271e768ab6151ac081ed37d/src/cljs/pylos/game/board.cljs | clojure | [pylos.game.util :refer [circle]]
[pylos.init :refer [visit-board]]
(visit-board board (fn [_ position] position)) | (ns pylos.game.board
(:require [cljs.core.async :as async :refer [chan close! put! sub]]
[goog.string :as gstring]
[om-tools.core :refer-macros [defcomponent]]
[om-tools.dom :as dom :include-macros true]
[om.core :as om]
[pylos.board :refer [cell]]
... |
dd2e37e185bd1fbc844a9bee3094c90e4182d633786ccfb836f0bce4111fd284 | ku-fpg/dotgen | DotTest.hs | module Main (main) where
import Text.Dot
-- data Animation = Start
src, box, diamond :: String -> Dot NodeId
src label = node $ [ ("shape","none"),("label",label) ]
box label = node $ [ ("shape","box"),("style","rounded"),("label",label) ]
diamond label = node $ [("shape","diamond"),("label",label),("fontsiz... | null | https://raw.githubusercontent.com/ku-fpg/dotgen/37d70838062ff6fdba8b85128d1eb6749cd50599/test/DotTest.hs | haskell | data Animation = Start
for hpc | module Main (main) where
import Text.Dot
src, box, diamond :: String -> Dot NodeId
src label = node $ [ ("shape","none"),("label",label) ]
box label = node $ [ ("shape","box"),("style","rounded"),("label",label) ]
diamond label = node $ [("shape","diamond"),("label",label),("fontsize","10")]
main :: IO ()
m... |
20d15dd74ae94ff0b1e5c2eb332a376dc8a6199d8618fccff4bad50f5896f2b1 | ezyang/compact | sample2.hs | # LANGUAGE TypeApplications #
import Data.Compact
import Data.Compact.Serialize
main = do
orig_c <- compact ("I want to serialize this", True)
writeCompact @(String, Bool) "somefile" orig_c
res <- unsafeReadCompact @(String, Bool) "somefile"
case res of
Left err -> fail err
Right c -> pr... | null | https://raw.githubusercontent.com/ezyang/compact/2ce0c0fd2e57e3385fb84ce47d1704720580c4e4/tests/sample2.hs | haskell | # LANGUAGE TypeApplications #
import Data.Compact
import Data.Compact.Serialize
main = do
orig_c <- compact ("I want to serialize this", True)
writeCompact @(String, Bool) "somefile" orig_c
res <- unsafeReadCompact @(String, Bool) "somefile"
case res of
Left err -> fail err
Right c -> pr... | |
bedfb10ac53cdfffd037246094d8ac366f6e15edc2b210538a3c28564bbe2bb8 | haas/harmtrace | Constants.hs | # OPTIONS_GHC -Wall #
--------------------------------------------------------------------------------
-- |
-- Module : Constants
Copyright : ( c ) 2010 - 2012 Universiteit Utrecht , 2012 University of Oxford
-- License : GPL3
--
Maintainer : ,
-- Stability : experimental
-- Portability : ... | null | https://raw.githubusercontent.com/haas/harmtrace/e250855a3bb6e5b28fe538c728f707cf82ca9fd3/src/Constants.hs | haskell | ------------------------------------------------------------------------------
|
Module : Constants
License : GPL3
Stability : experimental
Portability : non-portable
Summary: Several constants used everywhere
------------------------------------------------------------------------------
--------... | # OPTIONS_GHC -Wall #
Copyright : ( c ) 2010 - 2012 Universiteit Utrecht , 2012 University of Oxford
Maintainer : ,
module Constants ( vERSION, cutOffProbability, maxProbChordListLength
, maxSegmentSize, maxLProductSize, evaluationSampleRate
, displaySampleRate, output... |
794e84a565e05a40946b68d3b9101b0bd62dd4deb36d971dc6be52a989597958 | ghcjs/jsaddle | WKWebView.hs | module Language.Javascript.JSaddle.WKWebView
( jsaddleMain
, jsaddleMainHTMLWithBaseURL
, jsaddleMainFile
, WKWebView(..)
, run
, run'
, runWithAppConfig
, runHTMLWithBaseURL
, runFile
, mainBundleResourcePath
, ApplicationState (..)
, AppDelegateConfig (..)
, AppDele... | null | https://raw.githubusercontent.com/ghcjs/jsaddle/97273656e28790ab6e35c827f8086cf47bfbedca/jsaddle-wkwebview/src-ghc/Language/Javascript/JSaddle/WKWebView.hs | haskell | willFinishLaunchingWithOptions
didFinishLaunchingWithOptions
applicationDidBecomeActive
applicationWillResignActive
applicationWillEnterForeground
applicationWillTerminate
applicationSignificantTimeChange
applicationUniversalLink
applicationDidReceiveRemoteNotification
whether to run requestAuthorizationWithO... | module Language.Javascript.JSaddle.WKWebView
( jsaddleMain
, jsaddleMainHTMLWithBaseURL
, jsaddleMainFile
, WKWebView(..)
, run
, run'
, runWithAppConfig
, runHTMLWithBaseURL
, runFile
, mainBundleResourcePath
, ApplicationState (..)
, AppDelegateConfig (..)
, AppDele... |
a4a0d21d0a05b4da1d43df62bd71278700aade1a865afdebaf4ae2eaa9734418 | ml4tp/tcoq | proofBlockDelimiter.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/stm/proofBlockDelimiter.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
This file implements proof block de... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
val simple_goal : Evd.evar_m... |
87362c21e499135bc364476daf3dc445eb2870b0bb77da253dfd6edbf14878a1 | erlang/otp | global.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2022 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/erlang/otp/5094e517c9a112d1070bbd1aba621add0a79dc90/lib/kernel/src/global.erl | erlang |
%CopyrightBegin%
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 lan... | Copyright Ericsson AB 1996 - 2022 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(global).
-behaviour(gen_server).
Global provides global registration of process names . The names are
op... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.