_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
854c6131f065c398c2d0534e3b849fa30c769e0ee0a468a5815c1b4b1c51ae38
McCLIM/McCLIM
presentation-types.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) copyright 1998 - 2000 by < > ( c ) copyright 2001 - 2002 by < > ( c ) copy...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/40698c4923f46dbb17c2f29e750837572a1bfda3/Core/clim-core/presentations/presentation-types.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- Defining presentation types...
( c ) copyright 1998 - 2000 by < > ( c ) copyright 2001 - 2002 by < > ( c ) copyright 2020 by < > (in-package #:clim-internals) (defvar *presentation-type-table* (make-hash-table :test #'eq)) (defun find-presentation-type (name &optional (errorp t)) (or (gethash name *presentation-type-table*) ...
14bf888e53e7027ff8221eaddaad03ae587ff20027e3c852669e10d6fad7e42f
melange-re/melange
lam_pass_exits.mli
(************************************) (* *) (* OCaml *) (* *) , projet Cristal , INRIA Rocquencourt ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/core/lam_pass_exits.mli
ocaml
********************************** OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Adapted for Javascript backend : , ...
6454cd6efd4145e48e533184a84cb1068539a016766b8e7e4d7fae1ebfedcbdf
SamB/coq
tacmach.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/proofs/tacmach.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ Id$ open Util open Nam...
137e57f40c2a4dcb39163165125bf581f216d3d6a6859d25e1f94afcb71aab31
docker-in-aws/docker-in-aws
api_access.cljs
(ns swarmpit.component.api-access (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.panel :as panel] [swarmpit.component.message :as message] [swarmpit.url :refer [dispatch!]] ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/swarmpit/component/api_access.cljs
clojure
(ns swarmpit.component.api-access (:require [material.icon :as icon] [material.component :as comp] [material.component.form :as form] [material.component.panel :as panel] [swarmpit.component.message :as message] [swarmpit.url :refer [dispatch!]] ...
366bfcb97379b639b1cd071b49f20dfb74e367789ce34ee3bb5522982d2c8f2c
EasyCrypt/easycrypt
ecTransMatching.ml
(* -------------------------------------------------------------------- *) open EcUtils open EcParsetree open EcMatching open EcGenRegexp (* -------------------------------------------------------------------- *) let default_start_name = "$start" let default_end_name = "$end" let default_name = "$default" (*---------...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/f87695472e70c313ef2966e20979b1afcc2e543e/src/ecTransMatching.ml
ocaml
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- --------------------------------------...
open EcUtils open EcParsetree open EcMatching open EcGenRegexp let default_start_name = "$start" let default_end_name = "$end" let default_name = "$default" let any_stmt = Repeat (Any, (None, None), `Greedy) let any_block = (With_anchor, With_anchor), IM_Any let set_default_name pattern = Named (pattern, default_na...
20b33c37aeb287292d5d8b1f5f77c02ec27b47777cbfcb43bf7cd32bdf3a8f0f
mightybyte/hstyle
Alignment.hs
{-# LANGUAGE OverloadedStrings #-} module HStyle.Alignment where import Data.List (find, nub) import Data.Text (Text) import qualified Data.Text as T type Lines = [Text] type Alignment = [[(Int, Text)]] This is a really really long comment and I 'm not sure if this is a good idea cause it might not fit on one line...
null
https://raw.githubusercontent.com/mightybyte/hstyle/78e321ce9eac68f154f4d65288845a58d0d18857/src/HStyle/Alignment.hs
haskell
# LANGUAGE OverloadedStrings #
module HStyle.Alignment where import Data.List (find, nub) import Data.Text (Text) import qualified Data.Text as T type Lines = [Text] type Alignment = [[(Int, Text)]] This is a really really long comment and I 'm not sure if this is a good idea cause it might not fit on one line checkAlignmentHead :: Alignment ...
3e918919fac48be5d144b41c10f7886a65835e55c4b40bf1588263aefbdd7565
tolysz/ghcjs-stack
ArbitraryInstances.hs
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # module UnitTests.Distribution.Client.ArbitraryInstances ( adjustSize, shortListOf, shortListOf1, arbitraryFlag, ShortToken(..), arbitraryShortToken, NonMEmpty(..), NoShrink(..), ) where import Data.Char import Data.List #if !MIN_...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal/cabal-install/tests/UnitTests/Distribution/Client/ArbitraryInstances.hs
haskell
TODO: [code cleanup] need to replace parseHaskellString impl to stop deliberate [] try empty, otherwise don't shrink as it can loop
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # module UnitTests.Distribution.Client.ArbitraryInstances ( adjustSize, shortListOf, shortListOf1, arbitraryFlag, ShortToken(..), arbitraryShortToken, NonMEmpty(..), NoShrink(..), ) where import Data.Char import Data.List #if !MIN_...
1cb5c2bbb603d6aed38ae2759dbffb76d061336f178f120a4246e3d75941487b
soulomoon/arith
Main.hs
# LANGUAGE TypeApplications # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE UndecidableInstances # module Main where import Control.Monad.Error import Control.Monad.Reader import Control....
null
https://raw.githubusercontent.com/soulomoon/arith/a8f5a4acec68c6bf397e7f74a39cb186692c81ce/arith_tagless/app/Main.hs
haskell
# LANGUAGE TypeSynonymInstances # # LANGUAGE ConstraintKinds #
# LANGUAGE TypeApplications # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # module Main where import Control.Monad.Error import Control.Monad.Reader import Control.Monad.Except import Control.Monad.Identity data Symbol = Zero | NotZer...
1175d9c25fbf0424d45607dd1c9da6b69c0ea9b19ae7860f6cb72068c24f9585
eronalves/foodship-restaurant
component_fixture.clj
(ns foodship-restaurant.component-fixture (:require [com.stuartsierra.component :as component])) (def ^:dynamic component nil) (defn setup [fn-create deps] (fn [f] (binding [component (merge (fn-create) deps)] (f) (component/stop component)))) (defn setup-with-lifecycle [fn-create deps] (fn [f]...
null
https://raw.githubusercontent.com/eronalves/foodship-restaurant/6a30c48013a618c2cef34e7e29b200e5d45e8623/test/foodship_restaurant/component_fixture.clj
clojure
(ns foodship-restaurant.component-fixture (:require [com.stuartsierra.component :as component])) (def ^:dynamic component nil) (defn setup [fn-create deps] (fn [f] (binding [component (merge (fn-create) deps)] (f) (component/stop component)))) (defn setup-with-lifecycle [fn-create deps] (fn [f]...
b38a48495d48ef72746631758d635522308ccb79331f52ed7cd0b3ca8c2b01b1
jfeser/castor
dedup_tactics.ml
open Core open Castor open Ast open Abslayout module P = Pred.Infix module Config = struct module type S = sig include Ops.Config.S include Tactics_util.Config.S end end module Make (C : Config.S) = struct module O = Ops.Make (C) module Tactics_util = Tactics_util.Make (C) let to_dedup r = match r....
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/eopt/dedup_tactics.ml
ocaml
TODO: This transform isn't correct unless the right hand sides are non-overlapping.
open Core open Castor open Ast open Abslayout module P = Pred.Infix module Config = struct module type S = sig include Ops.Config.S include Tactics_util.Config.S end end module Make (C : Config.S) = struct module O = Ops.Make (C) module Tactics_util = Tactics_util.Make (C) let to_dedup r = match r....
56115f877f6db2270e5cc0d3c3532ae4f9ae2a41ab2922e16c03a8dbda5b0d3a
kupl/FixML
sub15.ml
type formula = TRUE |FALSE |NOT of formula |ANDALSO of formula*formula |ORELSE of formula*formula |IMPLY of formula*formula |LESS of expr*expr and expr= NUM of int |PLUS of expr*expr |MINUS of expr*expr let rec getexpr inpt = match inpt with | NUM(form) -> form | PLUS(form, lat) -> gete...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/formula/formula/submissions/sub15.ml
ocaml
type formula = TRUE |FALSE |NOT of formula |ANDALSO of formula*formula |ORELSE of formula*formula |IMPLY of formula*formula |LESS of expr*expr and expr= NUM of int |PLUS of expr*expr |MINUS of expr*expr let rec getexpr inpt = match inpt with | NUM(form) -> form | PLUS(form, lat) -> gete...
0236e0b0bd0ad04b0c912576225d2ebce5fe47fde424a79d1123e162c1f4d984
vseloved/cl-nlp
ch2-2.lisp
(defun plot-cfd (cfd &rest args &key conditions samples cumulative (order-by (constantly nil))) "Plot all or selected CONDITIONS and SAMPLES from CFD. CUMULATIVE counts may be used, as well as custom ordering with ORDER-BY" (cgn:with-gnuplot (t) (cgn:format-gnuplot "set grid") (cgn:forma...
null
https://raw.githubusercontent.com/vseloved/cl-nlp/f180b6c3c0b9a3614ae43f53a11bc500767307d0/nltk/ch2-2.lisp
lisp
(defun plot-cfd (cfd &rest args &key conditions samples cumulative (order-by (constantly nil))) "Plot all or selected CONDITIONS and SAMPLES from CFD. CUMULATIVE counts may be used, as well as custom ordering with ORDER-BY" (cgn:with-gnuplot (t) (cgn:format-gnuplot "set grid") (cgn:forma...
797762a2d3205083f73cdd40d22126fe79ee4b26962af1ddaee6ab0fb8fce57c
basho/riak_test
ensemble_basic.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2013 - 2014 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ensemble_basic.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 permissio...
Copyright ( c ) 2013 - 2014 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(ensemble_basic)....
b6cb5a0f5075372bf0adfddc12f6d685f045674d708c3adf3ba93e6fd84c6d5e
futurice/haskell-mega-repo
EnvConfig.hs
# LANGUAGE GADTs # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Futurice.EnvConfig ( Configure (..), getConfig, getConfig', envVar, optionalEnvVar, envVarWithDefault, ConfigParser, FromEnvVar (..), Fr...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/e301c08c8dfdcca048fe82fecce6bb2d02e9558a/env-config/src/Futurice/EnvConfig.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # * Helpers * re-exports | Get the configuration from environment variables. ^ envvar prefix | Explicit version of 'getConfig' ----------------------------------------------------------------------------- Aliases and classes -------------------------...
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # module Futurice.EnvConfig ( Configure (..), getConfig, getConfig', envVar, optionalEnvVar, envVarWithDefault, ConfigParser, FromEnvVar (..), FromEnvVarList (..), envConnectInfo, envConnectInfo', envAwsCred...
cc66e4680f86723e1ba8f0e546aa7d85dcbf00e860d6fb99dbcb4f6ea01f2c7a
hkoktay/the-little-schemer
run-tests.scm
#! /usr/local/bin/scheme --program (import (chezscheme)) ;; load-test: string? -> void ;; ;; We need this procedure because we have to reset the interaction environment ;; before loading another source file to prevent unexpected test results. The ;; reason is that we revise and thus redefine some procedures in later...
null
https://raw.githubusercontent.com/hkoktay/the-little-schemer/007e25153a4721a0cd6007c83cc8ce1305f6cf2a/run-tests.scm
scheme
load-test: string? -> void We need this procedure because we have to reset the interaction environment before loading another source file to prevent unexpected test results. The reason is that we revise and thus redefine some procedures in later chapters. load-and-test: listof-string? -> void
#! /usr/local/bin/scheme --program (import (chezscheme)) (define load-test (lambda (t) (begin (interaction-environment (copy-environment (scheme-environment) #t)) (load t)))) (define load-and-test (lambda (l) (for-each (lambda (f) (load-test f)) l))) (load-and-test '("chapter01.scm" "ch...
0cd368748171b08ef7a51a4fa10876221162c16b40b002586390c6ec09f0fedc
nackjicholson/haskellbook-solutions
penguins.hs
-- penguins.hs module Penguins where data WherePenguinsLive = Galapagos | Antartica | Australia | SouthAfrica | SouthAmerica deriving (Eq, Show) data Penguin = Peng WherePenguinsLive deriving (Eq, Show) isSouthAfrica :: WherePenguinsLive -> Bool isSouthAfrica SouthAfrica = True isSouthAfrica _ = Fals...
null
https://raw.githubusercontent.com/nackjicholson/haskellbook-solutions/c21bd87773734ba2ae1559553a6a4d10891c61c8/chapter7/penguins.hs
haskell
penguins.hs my own refactor antarticPenguin :: Penguin -> Bool antarticPenguin _ = False
module Penguins where data WherePenguinsLive = Galapagos | Antartica | Australia | SouthAfrica | SouthAmerica deriving (Eq, Show) data Penguin = Peng WherePenguinsLive deriving (Eq, Show) isSouthAfrica :: WherePenguinsLive -> Bool isSouthAfrica SouthAfrica = True isSouthAfrica _ = False gimmeWhereTh...
ca96d1cf5deb9ffeb791301d765de7c449ec139e760eccad97c2da14ddba4a3a
gahag/FSQL
TypeChecker.hs
FSQL : / Untyped.hs -- Untyped expression data types and functions - - Copyright ( C ) 2015 gahag - All rights reserved . - - This software may be modified and distributed under the terms - of the BSD license . See the LICENSE file for details . - - Copyright (C) 2015 gahag - All rights reser...
null
https://raw.githubusercontent.com/gahag/FSQL/5c68cb8af68e7e66876bc2b937b91ddb363b2db7/src/Expr/TypeChecker.hs
haskell
Untyped expression data types and functions ------------------------------------------------------------------------- Expected type Literal Expected type Actual type ------------------------------------------------------------------------------------- Literals ---------------------------------------------------...
- - Copyright ( C ) 2015 gahag - All rights reserved . - - This software may be modified and distributed under the terms - of the BSD license . See the LICENSE file for details . - - Copyright (C) 2015 gahag - All rights reserved. - - This software may be modified and distributed under the term...
38967a7cab21526d2b8143f3c8f73c8e1669ad347ddd04906598aef8e95373ee
philnguyen/soft-contract
module2.rkt
#lang racket ;; module2.rkt (require "module1.rkt") (define (add a b) (+ (id a) (id b))) (provide (contract-out [add (-> exact-integer? exact-integer? exact-integer?)]))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/issues/issue-84/module2.rkt
racket
module2.rkt
#lang racket (require "module1.rkt") (define (add a b) (+ (id a) (id b))) (provide (contract-out [add (-> exact-integer? exact-integer? exact-integer?)]))
9d47a6e7621994f7048c858b5f600209781c04d8aaf8dddef8eb2a91a814db68
simnalamburt/snucse.pl
sm5.ml
* SNU 4190.310 Programming Languages * SM5 Implementation * ( ) * SNU 4190.310 Programming Languages * SM5 Implementation * Jaeseung Choi () *) type loc = int * int type record = (string * loc) list type value = Z of int | B of bool | L of loc | Unit | R of record type cmd = | PUSH of obj | POP ...
null
https://raw.githubusercontent.com/simnalamburt/snucse.pl/a130f826c6f27224c88b0dd2e1588f35bccc9ebb/hw6-1/sm5.ml
ocaml
* SNU 4190.310 Programming Languages * SM5 Implementation * ( ) * SNU 4190.310 Programming Languages * SM5 Implementation * Jaeseung Choi () *) type loc = int * int type record = (string * loc) list type value = Z of int | B of bool | L of loc | Unit | R of record type cmd = | PUSH of obj | POP ...
a731aa291d969f886b9f58bb97ebea4d891f767af6fe62f0081d1988320f2a77
nikita-volkov/hasql-th
PrimitiveType.hs
module Hasql.TH.Extraction.PrimitiveType where import Hasql.TH.Prelude hiding (bit, fromList, sortBy) import PostgresqlSyntax.Ast data PrimitiveType = BoolPrimitiveType | Int2PrimitiveType | Int4PrimitiveType | Int8PrimitiveType | Float4PrimitiveType | Float8PrimitiveType | NumericPrimitiveType | Char...
null
https://raw.githubusercontent.com/nikita-volkov/hasql-th/48ea2e43c6796bd312a46acfb668a2573f8b293a/library/Hasql/TH/Extraction/PrimitiveType.hs
haskell
module Hasql.TH.Extraction.PrimitiveType where import Hasql.TH.Prelude hiding (bit, fromList, sortBy) import PostgresqlSyntax.Ast data PrimitiveType = BoolPrimitiveType | Int2PrimitiveType | Int4PrimitiveType | Int8PrimitiveType | Float4PrimitiveType | Float8PrimitiveType | NumericPrimitiveType | Char...
ca799c73d1ce975ad57eac32d71e13ce515a9e58dc0397d5f8d6304923f3428c
databrary/databrary
SQL.hs
# LANGUAGE TemplateHaskell , OverloadedStrings # module Model.Authorize.SQL ( authorizationRow , authorizeRow , selectAuthorizeParent , selectAuthorizeChild , updateAuthorize , insertAuthorize , deleteAuthorize , selectAuthorizeActivity , makeAuthorize ) where import qualified Language.Haskell.TH a...
null
https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Model/Authorize/SQL.hs
haskell
^ @'Party' -> 'Party' -> 'Authorization'@ ^ 'Identity' ^ 'Identity' ^ @'Authorize'@ ^ @'Authorize'@ ^ @'Authorize'@ ^ @'Authorize'@ ^ @'Authorize'@ ^@'Identity'@ ^ @('Timestamp', 'Party')@
# LANGUAGE TemplateHaskell , OverloadedStrings # module Model.Authorize.SQL ( authorizationRow , authorizeRow , selectAuthorizeParent , selectAuthorizeChild , updateAuthorize , insertAuthorize , deleteAuthorize , selectAuthorizeActivity , makeAuthorize ) where import qualified Language.Haskell.TH a...
2e3c80429b59cfaa0f721c0dccb5c6fac56c1bd402cd35293f0811bdf7307854
IUCompilerCourse/IU-Fall-2021
L_Int_height.rkt
#lang racket (struct Int (value)) (struct Prim (op arg*)) alternative to Prim : ;;(struct Add (left right)) ( struct ( value ) ) ;;(struct Read ()) (define E1 (Int 42)) (define E2 (Prim 'read '())) (define E3 (Prim '- (list E1))) (define E4 (Prim '+ (list E3 (Int 5)))) (define E5 (Prim '+ (list E2 (Prim '- (list E...
null
https://raw.githubusercontent.com/IUCompilerCourse/IU-Fall-2021/d241845aafebf61be475ec9852b30fda68a6db51/lectures/L_Int_height.rkt
racket
(struct Add (left right)) (struct Read ())
#lang racket (struct Int (value)) (struct Prim (op arg*)) alternative to Prim : ( struct ( value ) ) (define E1 (Int 42)) (define E2 (Prim 'read '())) (define E3 (Prim '- (list E1))) (define E4 (Prim '+ (list E3 (Int 5)))) (define E5 (Prim '+ (list E2 (Prim '- (list E2))))) (define (list-max ls) (foldl max 0 ls...
41fdf7015d829e5e845fc587f3bdc0e3d41b0e76590ba0fc22357aea4178fea5
ferd/tend
tend_code_server.erl
Functions stolen from code_server.erl in kernel app %%% code_server doesn't export jack shit so to get the support, %%% we need to lift the functions from there. -module(tend_code_server). -include_lib("kernel/include/file.hrl"). -export([add_lib_dir_paths/1, get_tend_lib_dirs/1]). add_lib_dir_paths(LibDir) -> D...
null
https://raw.githubusercontent.com/ferd/tend/1cecf0480ff41b97eff95e3732b02244c0619e83/src/tend_code_server.erl
erlang
code_server doesn't export jack shit so to get the support, we need to lift the functions from there. Only add paths trailing with ./ebin. Convert "X.Y.Z. ..." to [K, L, M| ...]
Functions stolen from code_server.erl in kernel app -module(tend_code_server). -include_lib("kernel/include/file.hrl"). -export([add_lib_dir_paths/1, get_tend_lib_dirs/1]). add_lib_dir_paths(LibDir) -> Dirs = get_tend_lib_dirs(LibDir) -- code:get_path(), code:add_pathsz(Dirs). get_tend_lib_dirs(Dir) -> ...
bc2ef580e26a139777c9ba64247facd0ed5cbfac4c222b5e3f9c12950d98def8
jaspervdj/b-tree
Array.hs
-- | Internal array type used by the B-tree types # LANGUAGE BangPatterns , CPP , MagicHash , , UnboxedTuples # module Data.BTree.Array ( -- * Types Array , MArray -- * Creating arrays , run , new , unsafeWrite , unsafeCopy -- * Inspecting arrays , unsafeIndex ...
null
https://raw.githubusercontent.com/jaspervdj/b-tree/0f1cc1ccf9538c399fe4f7979565ad132b81764a/src/Data/BTree/Array.hs
haskell
| Internal array type used by the B-tree types * Types * Creating arrays * Inspecting arrays * Debugging | Frozen array | Mutable array | Create and freeze an array | Create a new array of the specified size # INLINE new # | Freeze a mutable array | Write to a position in an array | Copy a range from an arr...
# LANGUAGE BangPatterns , CPP , MagicHash , , UnboxedTuples # module Data.BTree.Array Array , MArray , run , new , unsafeWrite , unsafeCopy , unsafeIndex , fromList , toList ) where import GHC.ST (ST (..), runST) import GHC.Exts data Array a = Array (Array# a) data M...
f8eb1c1b3076bfde6f6cd8afecbd8401d428290a1de3bf6fa13f0cc6db8a8ef6
logseq/mldoc
util.ml
let priority_to_string priority = "[#" ^ String.make 1 priority ^ "]"
null
https://raw.githubusercontent.com/logseq/mldoc/3194de74cb6b2338b56f642c4fd51a24176e2ef8/lib/util.ml
ocaml
let priority_to_string priority = "[#" ^ String.make 1 priority ^ "]"
5cf6b43c5a0cc9302591907fde7730c73e961349fbed5439eb46c3a66efc2409
SimulaVR/godot-haskell
SpringArm.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.SpringArm (Godot.Core.SpringArm.add_excluded_object,...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/SpringArm.hs
haskell
| Adds the @PhysicsBody@ object with the given @RID@ to the list of @PhysicsBody@ objects excluded from the collision check. | Adds the @PhysicsBody@ object with the given @RID@ to the list of @PhysicsBody@ objects excluded from the collision check. | Clears the list of @PhysicsBody@ objects excluded from the collis...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.SpringArm (Godot.Core.SpringArm.add_excluded_object,...
3ca93e44a69cd89c757cabbf0369d896c5ec544ea41744a8fb56c149273294c2
florence/cover
info.rkt
#lang info (define test-omit-paths (list "tests/error-file.rkt" "scribblings" "tests/basic/raise.rkt")) (define cover-omit-paths (list "tests/nested.rkt" "tests/bfs+module.rkt")) (define test-command-line-arguments '(("tests/arg.rkt" ("a"))))
null
https://raw.githubusercontent.com/florence/cover/bc17e4e22d47b1da91ddaa5eafefe28f4675e85c/cover-test/cover/info.rkt
racket
#lang info (define test-omit-paths (list "tests/error-file.rkt" "scribblings" "tests/basic/raise.rkt")) (define cover-omit-paths (list "tests/nested.rkt" "tests/bfs+module.rkt")) (define test-command-line-arguments '(("tests/arg.rkt" ("a"))))
d70a280544e8e00e4508614c091c510bb80a844be1a2bec3b4143b61fca95f03
janestreet/async
jobs_speed_test.ml
open Core open Async let num_jobs = 4096 let num_iters = 4096 let run_test () = Deferred.create (fun i -> let rec loop n = if n = 0 then Ivar.fill i () else Deferred.create (fun i -> let finished = ref num_jobs in let rec loop n = if n > 0 th...
null
https://raw.githubusercontent.com/janestreet/async/56d8d18f61e010fbb975ce3c6df2ab4cc86f6543/example/jobs_speed_test.ml
ocaml
open Core open Async let num_jobs = 4096 let num_iters = 4096 let run_test () = Deferred.create (fun i -> let rec loop n = if n = 0 then Ivar.fill i () else Deferred.create (fun i -> let finished = ref num_jobs in let rec loop n = if n > 0 th...
e00832be46ddf2e51234fee3ac85283dc7bd0d3def6e6a3c6a51e99b1af49d8d
dchelimsky/sicp-exercises
ex-1.7.scm
#lang scheme ; IN PROGRESS exercise 1.7 The good - enough ? test used in computing square roots will not be very effective for finding the square roots of very smallnumbers . Also , in real computers , arithmetic operations are almost always performed with limited precision . This makes our test inadequate for v...
null
https://raw.githubusercontent.com/dchelimsky/sicp-exercises/55c804e3775b87a490e05f8337fc59bc7ce07f28/chapter-1/ex-1.7.scm
scheme
IN PROGRESS Small numbers are a problem because the precision is to coarse. For example:
#lang scheme exercise 1.7 The good - enough ? test used in computing square roots will not be very effective for finding the square roots of very smallnumbers . Also , in real computers , arithmetic operations are almost always performed with limited precision . This makes our test inadequate for very large numb...
b00e6d81e5b91181a1e81ebc29b913e2d6098721e4a5ebb18eab6e771e9c0198
khibino/haskell-relational-record
Config.hs
-- | -- Module : Database.Relational.Internal.Config Copyright : 2017 - 2019 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- This module defines configuration datatype used in query products. module Database.Relational.Internal.Config ( Config, de...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-query/src/Database/Relational/Internal/Config.hs
haskell
| Module : Database.Relational.Internal.Config License : BSD3 Maintainer : Stability : experimental Portability : unknown This module defines configuration datatype used in query products. field labels of 'Config' type. To avoid haddock bug ( ), they are not listed in Config ( ... ). ...
Copyright : 2017 - 2019 module Database.Relational.Internal.Config ( Config, defaultConfig, productUnitSupport, chunksInsertSize, schemaNameMode, normalizedTableName, addQueryTableAliasAS, addModifyTableAliasAS, enableWarning, verboseAsCompilerWarning, disableOverloadedProjection, disab...
80ebb486d34df5cbaa3886fc01e12350be14f8410dcf21a5337406be0219d026
na4zagin3/satyrographos
command_lint__missing_opam.ml
open Core open Satyrographos_testlib let satysfi_package_doc_opam = "satysfi-package-doc.opam", TestLib.opam_file_for_test ~name:"satysfi-package-doc" ~version:"0.1" () let satyristes = "Satyristes", sprintf {|(version "0.0.2") (library (name "package") (version "0.1") (sources ()) (opam ...
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/9dbccf05138510c977a67c859bbbb48755470c7f/test/testcases/command_lint__missing_opam.ml
ocaml
open Core open Satyrographos_testlib let satysfi_package_doc_opam = "satysfi-package-doc.opam", TestLib.opam_file_for_test ~name:"satysfi-package-doc" ~version:"0.1" () let satyristes = "Satyristes", sprintf {|(version "0.0.2") (library (name "package") (version "0.1") (sources ()) (opam ...
8c82bdcf5552e485af371da84440aa41465fadc81b86dfdc8446048b8700459e
mfelleisen/7GUI
task-7.rkt
#! /usr/bin/env gracket #lang at-exp racket/gui ;; a simple spreadsheet (will not check for circularities) (require 7GUI/task-7-exp) (require 7GUI/task-7-view) (require 7GUI/canvas-double-click) ;; ----------------------------------------------------------------------------- (struct formula (formula dependents) #:tr...
null
https://raw.githubusercontent.com/mfelleisen/7GUI/e3631e78ab12306ad81b560443913afa4b156dec/task-7.rkt
racket
a simple spreadsheet (will not check for circularities) ----------------------------------------------------------------------------- [HashOF Ref* Formula] --------------------------------------------------------------------------------------------------- ----------------------------------------------------------...
#! /usr/bin/env gracket #lang at-exp racket/gui (require 7GUI/task-7-exp) (require 7GUI/task-7-view) (require 7GUI/canvas-double-click) (struct formula (formula dependents) #:transparent) { Formula = [ formula Exp * || Number || ( Setof Ref * ) ] } [ Hashof Ref * Integer ] (define-syntax-rule (iff select...
fa99c0878ceb7ae6f64d2262ac6349ffee92048e31781252a5a89cc569f97b07
fiddlerwoaroof/lisp-sandbox
simple-clone.lisp
#.(progn (ql:quickload :closer-mop) nil) (defpackage :fwoar.simple-clone (:use :cl ) (:export #:cloneable-class #:make-from)) (in-package :fwoar.simple-clone) (defclass cloneable-class (c2mop:standard-class) ((%parent :initform (make-hash-table :test 'eq :weakness :key) :reader parent))) ...
null
https://raw.githubusercontent.com/fiddlerwoaroof/lisp-sandbox/38ff817c95af35db042faf760b477675264220d2/simple-clone.lisp
lisp
#.(progn (ql:quickload :closer-mop) nil) (defpackage :fwoar.simple-clone (:use :cl ) (:export #:cloneable-class #:make-from)) (in-package :fwoar.simple-clone) (defclass cloneable-class (c2mop:standard-class) ((%parent :initform (make-hash-table :test 'eq :weakness :key) :reader parent))) ...
996b29f0695ffefb3546158f7d3ca4ea2e9172bc33a16299f7b4697534463ec6
cyppan/grape
comments.clj
(ns grape.fixtures.comments (:require [grape.store :as store] [schema.core :as s] [grape.hooks.core :refer [hooks]] [grape.schema :refer :all] [monger.core :as mg] [monger.collection :as mc] [grape.core :refer [read-item partial-update-resource]]...
null
https://raw.githubusercontent.com/cyppan/grape/62488a335542fc58fc9126b8d5ff7fccdd16f1d7/test/grape/fixtures/comments.clj
clojure
public-users is a view of the users collection read only and safe for public exposure If this is a reply to optimize fetching update the like counter on the corresponding comment
(ns grape.fixtures.comments (:require [grape.store :as store] [schema.core :as s] [grape.hooks.core :refer [hooks]] [grape.schema :refer :all] [monger.core :as mg] [monger.collection :as mc] [grape.core :refer [read-item partial-update-resource]]...
f140f512c034497e842b9317467e791a33dace7bbd5e3dd69433e3257f90a3ee
spechub/Hets
Sign.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : ./Fpl / Sign.hs Description : signatures for FPL Copyright : ( c ) , DFKI GmbH 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable signature extension for FPL to...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Fpl/Sign.hs
haskell
# LANGUAGE DeriveDataTypeable #
| Module : ./Fpl / Sign.hs Description : signatures for FPL Copyright : ( c ) , DFKI GmbH 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable signature extension for FPL to keep track of constructors Module...
3519f025c3748cd888da80fbbd055256018af68637936857d688927c341c6cac
odyssomay/clj-dm
exportindividualruledata.lsp
;;;-*-Mode: LISP; Package: DM -*- ;;;A tool for exporting the note effects of each individual rule - to be used in the real - time expressive sequencer in EyesWeb one loop through the music for each rule ;;;the rules and quantities are taken from the top rule dialog window 2002 - 10 - 14 / ;;;text file tabbed 2 li...
null
https://raw.githubusercontent.com/odyssomay/clj-dm/cf215aab652f8f463957b61fceccba1bca02f9e0/resources/dm/lib-core/exportindividualruledata.lsp
lisp
-*-Mode: LISP; Package: DM -*- A tool for exporting the note effects of each individual the rules and quantities are taken from the top rule dialog window text file tabbed following numbers specify binary which parameter is controlled by that column: rest of lines column (mandatory part) rest of column left to th...
rule - to be used in the real - time expressive sequencer in EyesWeb one loop through the music for each rule 2002 - 10 - 14 / 2 lines header : 1st header line specify number of columns 2nd header line first is subdivision ticks per quarter ( 480 ) 1 = tempo ( beats per min ) , 2 = legato ( 1 = legato , 0.5 = stac...
cb3eb93cbdec437a90d04daad42cae930e1b9671f76d88ca895f921b295b96a8
wireless-net/erlang-nommu
wxListBox.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxListBox.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2008 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxListBox). -include("wxe.hrl"). ...
5d5f0cff4c46f20262c96a9fe0dbf91bc9d7d8602826b9e7337e40399443fbd3
flosell/lambdacd
step_id.clj
(ns lambdacd.step-id "Utility functions to deal with the logic behind step ids: step-ids are a sequence of numbers that represent the structure of the pipeline. Examples: * `[1]` is the first step of the pipeline * `[2 1]` is the second child of the first step of the pipeline. For detailed examples on th...
null
https://raw.githubusercontent.com/flosell/lambdacd/e9ba3cebb2d5f0070a2e0e1e08fc85fc99ee7135/src/clj/lambdacd/step_id.clj
clojure
(ns lambdacd.step-id "Utility functions to deal with the logic behind step ids: step-ids are a sequence of numbers that represent the structure of the pipeline. Examples: * `[1]` is the first step of the pipeline * `[2 1]` is the second child of the first step of the pipeline. For detailed examples on th...
a84c4fe7cb4e3b1b3ce22b9e72ee7d17ad1b7d7b918e5ff83f8f8a801e45da18
input-output-hk/cardano-ledger
PlutusScriptExamples.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # module Test.Cardano.Ledger.Alonzo.PlutusScriptExamples ( ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/1e2ff13f02a989241f637fd9413f1852675b74f0/eras/alonzo/test-suite/test/Test/Cardano/Ledger/Alonzo/PlutusScriptExamples.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE RankNTypes # ============================================= Evaluate a script with sufficient budget to run it. =========================================
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - orphans # module Test.Cardano.Ledger.Alonzo.PlutusScriptExamples ( tests, ) where import Cardano.Ledger.Alonzo (Alonzo) import Cardano.Ledger.Alonzo....
594fe6443d03d967c0096f1f0a055d6f9ce257351f6aeb479428a3e6222a46eb
ericcervin/getting-started-with-sketching
pg016.rkt
#lang sketching (define (setup) (size 480 120) (smoothing 'smoothed)) (define (draw) (quad 158 55 199 14 392 66 351 107) (triangle 347 54 392 9 392 66) (triangle 158 55 290 91 290 112))
null
https://raw.githubusercontent.com/ericcervin/getting-started-with-sketching/f554c1222a5e713ab6293eec340e39e10f93d24f/pg016.rkt
racket
#lang sketching (define (setup) (size 480 120) (smoothing 'smoothed)) (define (draw) (quad 158 55 199 14 392 66 351 107) (triangle 347 54 392 9 392 66) (triangle 158 55 290 91 290 112))
dbe31a0cd55bce9dfc522fc4ed999d596833b6e1ca43c682f856d259a62da057
vaibhavsagar/experiments
Info.hs
----------------------------------------------------------------------------- -- | -- Module : Network.Hackage.CabalInstall.Info Copyright : ( c ) 2005 -- License : BSD-like -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- High level interface to a dry-run package...
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/packages/Cabal/Network/Hackage/CabalInstall/Info.hs
haskell
--------------------------------------------------------------------------- | Module : Network.Hackage.CabalInstall.Info License : BSD-like Maintainer : Stability : provisional Portability : portable High level interface to a dry-run package installation. -------------------------------------...
Copyright : ( c ) 2005 module Network.Hackage.CabalInstall.Info where import Network.Hackage.CabalInstall.Dependency (resolveDependencies, fulfillDependency) import Network.Hackage.CabalInstall.Fetch (isFetched, packageFile) import Network.Hackage.CabalInstall.Types (ConfigFlags(..), ResolvedPackage(..) ...
e939d4cec61a75868ac304c8fe4a43565bd810263298e57674d54a4d2309d5bb
cljfx/cljfx
tab_pane.clj
(ns cljfx.ext.tab-pane (:require [cljfx.lifecycle :as lifecycle] [cljfx.ext.selection-model :as ext.selection-model]) (:import [javafx.scene.control TabPane Tab])) (def with-selection-props "Extension lifecycle providing selection-related props to tab-pane component Supported keys: - `:desc` (re...
null
https://raw.githubusercontent.com/cljfx/cljfx/ec3c34e619b2408026b9f2e2ff8665bebf70bf56/src/cljfx/ext/tab_pane.clj
clojure
(ns cljfx.ext.tab-pane (:require [cljfx.lifecycle :as lifecycle] [cljfx.ext.selection-model :as ext.selection-model]) (:import [javafx.scene.control TabPane Tab])) (def with-selection-props "Extension lifecycle providing selection-related props to tab-pane component Supported keys: - `:desc` (re...
9efd99ca35bcb61e11eed8edee305fdf2d0aad26ab0bfc5a40e5c1910d368e90
tweag/pirouette
Prover.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Pirouette.Symbolic.Prover where import Control.Monad.Reader import Control.Monad.State import Control.Monad.Writer impor...
null
https://raw.githubusercontent.com/tweag/pirouette/35c88ead8bc0b2222d94b1349fe42cf3ea3b1fa5/src/Pirouette/Symbolic/Prover.hs
haskell
# LANGUAGE OverloadedStrings # | A problem represents a triple that should be checked. It should be the case that assuming 'problemAssume', the execution of 'problemBody' always leaves us in a have the right type, in particular they should take an and then as many arguments as 'problemBody' has. | Executes the p...
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Pirouette.Symbolic.Prover where import Control.Monad.Reader import Control.Monad.State import Control.Monad.Writer import qualified Data.Text as T import D...
960c20d9a632fe8725bb98a33b3093e96ccf2a5855cfb826ff653bf498b14a3c
johnwhitington/ocamli
exercise03.ml
let rdiv x y = y / x
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%209/exercise03.ml
ocaml
let rdiv x y = y / x
8eed7b5fe2c3ae92a8fd50b3442bdfbdef492137011a4b189e20c37a81e9c3db
naproche/naproche
Tag.hs
-- | Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) -- -- TODO: Add description. module SAD.Data.Tag where data Tag = Dig | DigMultiSubject | DigMultiPairwise | HeadTerm | InductionHypothesis | CaseHypothesis | EqualityChain | -- Tags to mark certain parts of map definitions GenericMark | Evalu...
null
https://raw.githubusercontent.com/naproche/naproche/6284a64b4b84eaa53dd0eb7ecb39737fb9135a0d/src/SAD/Data/Tag.hs
haskell
| TODO: Add description. Tags to mark certain parts of map definitions Tags to mark parts in map proof tasks | whether a Tag marks a part in a map proof task
Authors : ( 2001 - 2008 ) , ( 2017 - 2018 ) module SAD.Data.Tag where data Tag = Dig | DigMultiSubject | DigMultiPairwise | HeadTerm | InductionHypothesis | CaseHypothesis | EqualityChain | GenericMark | Evaluation | Condition | Defined | Domain | Replacement | DomainTask | ExistenceTask | U...
30f8ad4b7623192b25a98e82e5998cf9a4cc047a807c7f5d527a1bad6bf17e36
Octachron/codept
main.ml
module type s = sig module Alias = A1 end module E = struct end module type s' = s with module Alias.Sub = E
null
https://raw.githubusercontent.com/Octachron/codept/254c92e9b53212513de938a4c5f337afef537c33/tests/complex/aliases_and_with/main.ml
ocaml
module type s = sig module Alias = A1 end module E = struct end module type s' = s with module Alias.Sub = E
59a4a0f67e64047f02b582c44fdb4e858312108075abb03896de25f888e642eb
realworldocaml/book
test_closure_type_promotion.ml
* This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open OUnit2 let _testlib = Dl.(dlopen ~filename:"../clib/clib.so" ~flags:[RTLD_NOW]) * Using the ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ocaml-ctypes/tests/test-closure-type-promotion/test_closure_type_promotion.ml
ocaml
* This file is distributed under the terms of the MIT License . * See the file LICENSE for details . * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) open OUnit2 let _testlib = Dl.(dlopen ~filename:"../clib/clib.so" ~flags:[RTLD_NOW]) * Using the ...
3caeb68e5455017bb204369290f8d276438d0c50d062eee59a05eb1964e3582f
sealchain-project/sealchain
MPDB.hs
{-# LANGUAGE OverloadedStrings #-} module Sealchain.Mpt.MerklePatricia.MPDB ( KVPersister (..), MPDB(..), getKV', putKV' ) where import Universum import qualified Data.ByteString as B import Sealchain.Mpt.MerklePatricia.StateRoot | The interface represents KV persister class KVPersi...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/mpt/src/Sealchain/Mpt/MerklePatricia/MPDB.hs
haskell
# LANGUAGE OverloadedStrings # | This is the database reference type, contianing both the handle to the underlying database, as well as the stateRoot to the current tree holding the data. The MPDB acts a bit like a traditional database handle, although because it contains the stateRoot, many functions act by updat...
module Sealchain.Mpt.MerklePatricia.MPDB ( KVPersister (..), MPDB(..), getKV', putKV' ) where import Universum import qualified Data.ByteString as B import Sealchain.Mpt.MerklePatricia.StateRoot | The interface represents KV persister class KVPersister k where getKV :: MonadIO m...
368332858b38d417ac90811726f94eb522a06d7b95b8638944e6dba876bf7b90
avsm/platform
opamSHA.ml
(**************************************************************************) (* *) (* Copyright 2016 OCamlPro *) (* *) (* All righ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/core/opamSHA.ml
ocaml
************************************************************************ Copyright 2016 OCamlPro All rights reserved. This ...
GNU Lesser General Public License version 2.1 , with the special module type ConvSig = sig type t val bytes: int val toggle_big_endian: t -> t end module type BufSig = sig module Conv: ConvSig type t val unsafe_get: t -> int -> Conv.t val unsafe_set: t -> int -> Conv.t -> unit end module type...
bf82aca7f958cfb0166a12414c757a8b69570bed08b840a312f02f0fa6e906c7
haskell/cabal
Backpack.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE PatternGuards #-} {-# LANGUAGE RankNTypes #-} | This module defines the core data types for Backpack . F...
null
https://raw.githubusercontent.com/haskell/cabal/c21dbcd2a9d54962eb39f598dfce2d012ff7fd1c/Cabal-syntax/src/Distribution/Backpack.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # # LANGUAGE PatternGuards # # LANGUAGE RankNTypes # details, see: * OpenUnitId * DefUnitId * OpenModule * OpenModuleSubst * Conversions to 'UnitId' ---------------------------------------------------------...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # | This module defines the core data types for Backpack . For more < > module Distribution.Backpack ( OpenUnitId(..), openUnitIdFreeHoles, mkOpenUnitId, DefUnitId, unDefUnitId, mkDefUnitId, OpenModule...
240a5a151ba273e237b880e5b3546701c16396b6cd5afc92595048a7b74e4d80
g7s/unit
core.cljc
(ns unit.core (:refer-clojure :exclude [second]) (:require [clojure.set :refer [map-invert]]) #?(:clj (:require [clojure.math.numeric-tower :as math] [net.cgrand.macrovich :as macros]) :cljs (:require-macros [net.cgrand.macrovich :as macros] [unit.core :refer [defunit]]))...
null
https://raw.githubusercontent.com/g7s/unit/90a888438f8416200cad76016de600a99743a99a/src/unit/core.cljc
clojure
Registered Units Length Mass Temperature Power Frequency Speed Unregistered units Conversion
(ns unit.core (:refer-clojure :exclude [second]) (:require [clojure.set :refer [map-invert]]) #?(:clj (:require [clojure.math.numeric-tower :as math] [net.cgrand.macrovich :as macros]) :cljs (:require-macros [net.cgrand.macrovich :as macros] [unit.core :refer [defunit]]))...
f6fdcb1bb1c3d5703364d22dfa8e3cef1adcd5e06d118898c3c779acbcd57b1f
transient-haskell/transient-stack
Backtrack.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ExistentialQuantification # -- | Transient implements an event handling mechanism ("backtracking") which allows registration of one or more event handlers to be executed when an -- event occurs. This common underlying mechanism called is used to handle three dif...
null
https://raw.githubusercontent.com/transient-haskell/transient-stack/dde6f6613a946d57bb70879a5c0e7e5a73a91dbe/transient/src/Transient/Backtrack.hs
haskell
# LANGUAGE DeriveDataTypeable # | Transient implements an event handling mechanism ("backtracking") which event occurs. This common underlying mechanism called is used to handle * User initiated actions to run undo and retry actions on failures * Finalization actions to run at the end of a task * Exception h...
# LANGUAGE ExistentialQuantification # allows registration of one or more event handlers to be executed when an three different types of events : import Transient . Base ( keep , setState , getState ) import Control . Monad . IO.Class ( liftIO ) setState " hello " setState " world " > > ...
f9cf0d0df57155a939f2cc1d2a135ff34343f48bb2d6a0bdc6241bf1406fba88
soegaard/bracket
show.rkt
#lang racket (provide show show-enabled) (define show-enabled (make-parameter #f)) (define (show v) (when (show-enabled) (display v)))
null
https://raw.githubusercontent.com/soegaard/bracket/3d0ace16cf0dbcee4952fd729796e4362e27faa0/bracket/show.rkt
racket
#lang racket (provide show show-enabled) (define show-enabled (make-parameter #f)) (define (show v) (when (show-enabled) (display v)))
4aaa9a9ed0ae4e79c639f4c502e6f023f673a3dd0cf3f678703280b8cd578df1
kyleburton/large-data-and-clojure
stream_sampling.clj
(ns data-talk.stream-sampling (:require [clj-etl-utils.sequences :refer [random-sample-seq]] [schema.core :as s] [clojure.java.io :as io])) Given a large data set ( too large to fit in RAM ) , ;; we know the cardinality (number of entries) ;; and wish to take a random sampling. ;; (...
null
https://raw.githubusercontent.com/kyleburton/large-data-and-clojure/8f78d69197ad7bc18ccfc6679704599c414fbb44/src/data_talk/stream_sampling.clj
clojure
we know the cardinality (number of entries) and wish to take a random sampling.
(ns data-talk.stream-sampling (:require [clj-etl-utils.sequences :refer [random-sample-seq]] [schema.core :as s] [clojure.java.io :as io])) Given a large data set ( too large to fit in RAM ) , (defonce dict-file "/usr/share/dict/words") (defonce emails-file "data/emails.txt") (def n...
6f02d29f9e5e93653e9def276ed5921bdde768de56cdaeef4f528c63d39af0bb
pfdietz/ansi-test
dynamic-extent.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 21 09:10:52 2005 Contains : Tests of DYNAMIC - EXTENT (deftest dynamic-extent.1 (let () (declare (dynamic-extent))) nil) (deftest dynamic-extent.2 (let ((x 'a)) (declare (dynamic-extent x) (optimize speed (safety 0))) x) a) (deftest dy...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/eval-and-compile/dynamic-extent.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Sat May 21 09:10:52 2005 Contains : Tests of DYNAMIC - EXTENT (deftest dynamic-extent.1 (let () (declare (dynamic-extent))) nil) (deftest dynamic-extent.2 (let ((x 'a)) (declare (dynamic-extent x) (optimize speed (safety 0))) x) a) (deftest dynamic-extent.3 (let ((...
96fbe00a314486aaf9b2b6e4bae56696bf9f6a5ad706955ab2a637fab41200ec
racket/rackunit
nested-info-test.rkt
#lang racket/base (module+ test (require racket/function racket/port rackunit (submod rackunit/private/format for-test)) (define (info* . name+vs) (define vec (list->vector name+vs)) (define len (vector-length vec)) (for/list ([name-idx (in-range 0 len 2)] ...
null
https://raw.githubusercontent.com/racket/rackunit/f94364891f201f90c055adb1521e5f038ce75411/rackunit-test/tests/rackunit/nested-info-test.rkt
racket
#lang racket/base (module+ test (require racket/function racket/port rackunit (submod rackunit/private/format for-test)) (define (info* . name+vs) (define vec (list->vector name+vs)) (define len (vector-length vec)) (for/list ([name-idx (in-range 0 len 2)] ...
516ea5cb6380dfe1874b4de950f65b60f4ba7e0d1cc726a136a1afdf791fdb6d
basho/riak_kv
raw_link_walker.erl
%% ------------------------------------------------------------------- %% %% raw_link_walker: Backwards compatibility module for link traversal %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); ...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/raw_link_walker.erl
erlang
------------------------------------------------------------------- raw_link_walker: Backwards compatibility module for link traversal 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 imp...
Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -...
9479face4be809d0880aaf04d4d12dfbaab671ebb76622558364b1e8677e387a
dmitryvk/sbcl-win32-threads
arith.lisp
;;;; simple cases for generic arithmetic This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain ...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/assembly/x86/arith.lisp
lisp
simple cases for generic arithmetic more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. addition, subtraction, and multiplication this seems wrong esi-offset -- FIXME: What's it mean? both fix...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") (macrolet ((define-generic-arith-routine ((fun cost) &body body) `(define-assembly-routi...
d29fc36bcbd470827f746fe6c4dd14d37b2eec966aecb052c4d87ddf9b9ca68d
Disco-Dave/message-db
Spec.hs
# OPTIONS_GHC -Wno - missing - export - lists -F -pgmF hspec - discover -optF --module - name = Spec #
null
https://raw.githubusercontent.com/Disco-Dave/message-db/b272c1648587046657e778685518a79f27c9f793/message-db/test/Spec.hs
haskell
module - name = Spec #
47d14f22c456ceb3f8261c565551113d8b7bf5e776ced36aac1deafb6549dfc5
flyingmachine/datomic-junk
schema.clj
(ns com.flyingmachine.datomic-junk.schema (:require [datomic.api :as d] [clojure.java.io :as io])) Taken from day of datomic : ;; -of-datomic/blob/master/src/datomic/samples/schema.clj (defn has-attribute? "Does database have an attribute named attr-name?" [db attr-name] (-> (d/entity db attr-nam...
null
https://raw.githubusercontent.com/flyingmachine/datomic-junk/c5688686cd1a9f4b181e9ffc2478b913f578f347/src/com/flyingmachine/datomic_junk/schema.clj
clojure
-of-datomic/blob/master/src/datomic/samples/schema.clj
(ns com.flyingmachine.datomic-junk.schema (:require [datomic.api :as d] [clojure.java.io :as io])) Taken from day of datomic : (defn has-attribute? "Does database have an attribute named attr-name?" [db attr-name] (-> (d/entity db attr-name) :db.install/_attribute boolean)) (defn has...
875e28097ca53dbea179e0504a32cd815237dc4fab0c2b6b84f959b7ba3f9aed
tsloughter/kuberl
kuberl_apiregistration_v1_service_reference.erl
-module(kuberl_apiregistration_v1_service_reference). -export([encode/1]). -export_type([kuberl_apiregistration_v1_service_reference/0]). -type kuberl_apiregistration_v1_service_reference() :: #{ 'name' => binary(), 'namespace' => binary(), 'port' => integer() }. encode(#{ 'name' := Name, ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_apiregistration_v1_service_reference.erl
erlang
-module(kuberl_apiregistration_v1_service_reference). -export([encode/1]). -export_type([kuberl_apiregistration_v1_service_reference/0]). -type kuberl_apiregistration_v1_service_reference() :: #{ 'name' => binary(), 'namespace' => binary(), 'port' => integer() }. encode(#{ 'name' := Name, ...
4b84209ddf6c93a7205f7ea879ca5800ff0f4a9800a88ae831d681935136e769
Wikia/vignette
media_types.clj
(ns vignette.media-types (:require [slingshot.slingshot :refer [throw+]] [pantomime.mime :refer [mime-type-of]] [vignette.util.query-options :refer :all])) (declare original thumbnail thumb-map->path image-type) (def archive-dir "archive") (def webp-compatible-mim...
null
https://raw.githubusercontent.com/Wikia/vignette/4797aeffc0a01dcfe1e1f661b2d2649d44ddb1d0/src/vignette/media_types.clj
clojure
(ns vignette.media-types (:require [slingshot.slingshot :refer [throw+]] [pantomime.mime :refer [mime-type-of]] [vignette.util.query-options :refer :all])) (declare original thumbnail thumb-map->path image-type) (def archive-dir "archive") (def webp-compatible-mim...
821b5886cca0597bac0880f6573dbb6b329a8fc68fee50d104da53f76cb94f0e
shirok/Gauche
box.scm
edition (define-module scheme.box Gauche built - in
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/scheme/box.scm
scheme
edition (define-module scheme.box Gauche built - in
6ca8871631e0d46a1b8cf6471bd56971460d0f7980ab8d5d9a0f98dedbfd4770
cram2/cram
pareto.lisp
Regression test PARETO for GSLL , automatically generated ;; Copyright 2009 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundat...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/tests/pareto.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Regression test PARETO for GSLL , automatically generated Copyright 2009 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy o...
db5de830231f4b9fb7da7833bea54309659338f0e014b3bffe40d0b1f6ae904e
owickstrom/komposition
TimelineView.hs
# LANGUAGE DataKinds # {-# LANGUAGE ExplicitForAll #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedLabels #-} # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} | The main view of Komposition 's GTK interface ....
null
https://raw.githubusercontent.com/owickstrom/komposition/64893d50941b90f44d77fea0dc6d30c061464cf3/src/Komposition/UserInterface/GtkInterface/TimelineView.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE GADTs # # LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE OverloadedLists # | The main view of Komposition 's GTK interface . module Komposition.UserInterface.GtkInterface.TimelineView ( timelineView ) where import Komposition.Prelude ...
818c0b696bc873d8d3548598b1d7108125f823854d568e0f87fdc94ce7c04800
lexi-lambda/hackett
universe.rkt
#lang hackett (require (only-in racket/base all-from-out for-syntax module submod)) (module shared hackett (#%require/only-types hackett) (provide (data Key-Event) (data Mouse-Event)) (data Key-Event (KE:Char String) KE:Left KE:Right KE:Up KE:Down KE:Shift KE:Rshift KE:Control KE:R-Control KE:Escap...
null
https://raw.githubusercontent.com/lexi-lambda/hackett/e90ace9e4a056ec0a2a267f220cb29b756cbefce/hackett-demo/hackett/demo/pict/universe.rkt
racket
#lang hackett (require (only-in racket/base all-from-out for-syntax module submod)) (module shared hackett (#%require/only-types hackett) (provide (data Key-Event) (data Mouse-Event)) (data Key-Event (KE:Char String) KE:Left KE:Right KE:Up KE:Down KE:Shift KE:Rshift KE:Control KE:R-Control KE:Escap...
3215d9599a9bc30da8af68e21c6a53bd53863a3131173392309d5b63777759b6
fossas/fossa-cli
Telemetry.hs
module Control.Effect.Telemetry ( Telemetry (..), trackUsage, trackTimeSpent, trackConfig, trackRawLogMessage, setSink, trackResult, ) where import Control.Algebra (Has, send) import Control.Carrier.Telemetry.Types (CountableCliFeature, TelemetrySink) import Data.Aeson (ToJSON (toJSON), Value) import Dat...
null
https://raw.githubusercontent.com/fossas/fossa-cli/48c18fc2812db9ec5eb752c0d71e3503ef9315d3/src/Control/Effect/Telemetry.hs
haskell
module Control.Effect.Telemetry ( Telemetry (..), trackUsage, trackTimeSpent, trackConfig, trackRawLogMessage, setSink, trackResult, ) where import Control.Algebra (Has, send) import Control.Carrier.Telemetry.Types (CountableCliFeature, TelemetrySink) import Data.Aeson (ToJSON (toJSON), Value) import Dat...
7cf91daa18db7c50e1abc6f87d6ad2123c0daccb0781935f4399500aa5a138b3
tmfg/mmtis-national-access-point
transit_changes.cljs
(ns ote.style.transit-changes "Transit changes styling" (:require [stylefy.core :as stylefy] [ote.theme.colors :as colors] [ote.theme.screen-sizes :refer [width-xxs width-xs width-sm width-md width-l width-xl]])) (def transit-changes-legend-container {:background-color colors/gray300 :...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/08bb99cb3931fca648ece7e6bd884f9695b77a9a/ote/src/cljs/ote/style/transit_changes.cljs
clojure
(ns ote.style.transit-changes "Transit changes styling" (:require [stylefy.core :as stylefy] [ote.theme.colors :as colors] [ote.theme.screen-sizes :refer [width-xxs width-xs width-sm width-md width-l width-xl]])) (def transit-changes-legend-container {:background-color colors/gray300 :...
6ac7fc7e30dc33c2a21802c3342c50b59ea8d8a4751b3757609a33ed8269d4b9
Ericson2314/lighthouse
Ppr.hs
-- TH.Ppr contains a prettyprinter for the Template Haskell datatypes module Language.Haskell.TH.Ppr where -- All of the exports from this module should be " public " functions . The main module TH -- re-exports them all. import Text.PrettyPrint.HughesPJ (render) import Language.Haskell.TH.PprLib import...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/template-haskell/Language/Haskell/TH/Ppr.hs
haskell
TH.Ppr contains a prettyprinter for the All of the exports from this module should re-exports them all. Argument of a function application Argument of an infix operator Others ---------------------------- ---------------------------- ---------------------------- ---------------------------- Nesting in Cond is to...
Template Haskell datatypes module Language.Haskell.TH.Ppr where be " public " functions . The main module TH import Text.PrettyPrint.HughesPJ (render) import Language.Haskell.TH.PprLib import Language.Haskell.TH.Syntax import Data.Char ( toLower ) nestDepth :: Int nestDepth = 4 type Precedence = Int appPrec, ...
402ee23c5fb8b4d17ca29490d7cbc76718ebf0a72241b47b322e2eb51940ed71
gelisam/typelevel-rewrite-rules
Test.hs
# LANGUAGE AllowAmbiguousTypes , FlexibleContexts , ScopedTypeVariables , TypeApplications , TypeFamilies # # OPTIONS_GHC -fplugin TypeLevel . Rewrite -fplugin - opt = TypeLevel . Rewrite : InstanceConstraints . Laws . # -fplugin-opt=TypeLevel.Rewrite:InstanceConstraints.Laws.FLaw #-}...
null
https://raw.githubusercontent.com/gelisam/typelevel-rewrite-rules/9a693dacfedd7cccec753b687020fa40364756f9/test/should-compile/InstanceConstraints/Test.hs
haskell
# LANGUAGE AllowAmbiguousTypes , FlexibleContexts , ScopedTypeVariables , TypeApplications , TypeFamilies # # OPTIONS_GHC -fplugin TypeLevel . Rewrite -fplugin - opt = TypeLevel . Rewrite : InstanceConstraints . Laws . # -fplugin-opt=TypeLevel.Rewrite:InstanceConstraints.Laws.FLaw #-}...
21b595c9eee345047d83ebfc9de05637ec8c900fc43496d92a5175df585b4b9d
ThatGeoGuy/chicken-miniKanren
mini-kanren.scm
The MIT License ( MIT ) ;;; Copyright ( c ) 2014 , , and Modifications Copyright ( c ) 2016 ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a copy ;;; of this software and associated documentation files (the "Software"), to deal in the Software without restriction , inclu...
null
https://raw.githubusercontent.com/ThatGeoGuy/chicken-miniKanren/4371396a8cb5798cd4d8a6ea42ba2587b2a77ed9/mini-kanren.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice...
The MIT License ( MIT ) Copyright ( c ) 2014 , , and Modifications Copyright ( c ) 2016 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is copies or substantial portions of the Software . THE SOFTWA...
1970935d0bec28db4475e1b1ad7890a380e110a4ad4b11971afe57431b38782d
v-kolesnikov/sicp
1_16.clj
(ns sicp.chapter01.1-16 (:require [sicp.common :refer [square]])) (defn fast-expt [b n] (loop [a 1 b b n n] (cond (zero? n) a (even? n) (recur a (square b) (/ n 2)) :else (recur (* a b) b (dec n)))))
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/src/sicp/chapter01/1_16.clj
clojure
(ns sicp.chapter01.1-16 (:require [sicp.common :refer [square]])) (defn fast-expt [b n] (loop [a 1 b b n n] (cond (zero? n) a (even? n) (recur a (square b) (/ n 2)) :else (recur (* a b) b (dec n)))))
a4cf7b7022ebf59f533440ee0c579d504364c115371e98168457196d7862170a
mark-watson/haskell_tutorial_cookbook_examples
Main.hs
module Main where import System.Environment (getArgs) import Apis (processFilesToRdf, processFilesToNeo4j) main :: IO () main -- TBD: add command line argument processing = do args <- getArgs case args of [] -> error "must supply an input directory containing text and meta files" [_] -> error "in addi...
null
https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/0f46465b67d245fa3853b4e320d79b7d7234e061/knowledge_graph_creator_pure/app/Main.hs
haskell
TBD: add command line argument processing
module Main where import System.Environment (getArgs) import Apis (processFilesToRdf, processFilesToNeo4j) main :: IO () main = do args <- getArgs case args of [] -> error "must supply an input directory containing text and meta files" [_] -> error "in addition to an input directory, also specify a root ...
f93beb1fb8d811a16594e3845303f47993326d4f6f17d42bf671d08084a6b60d
metrics-clojure/metrics-clojure
ganglia.clj
(ns metrics.reporters.ganglia "Ganglia reporter interface" (:require [metrics.core :refer [default-registry]] [metrics.reporters :as mrep]) (:import java.util.concurrent.TimeUnit info.ganglia.gmetric4j.gmetric.GMetric [com.codahale.metrics MetricRegistry MetricFilter] ...
null
https://raw.githubusercontent.com/metrics-clojure/metrics-clojure/a1dbacc748a1f8165f0094e2229c84f228efe29b/metrics-clojure-ganglia/src/metrics/reporters/ganglia.clj
clojure
(ns metrics.reporters.ganglia "Ganglia reporter interface" (:require [metrics.core :refer [default-registry]] [metrics.reporters :as mrep]) (:import java.util.concurrent.TimeUnit info.ganglia.gmetric4j.gmetric.GMetric [com.codahale.metrics MetricRegistry MetricFilter] ...
acbcaf493d0ca36b91bfa26b4984e7f11c00842b3e4d0c85827db275302e5b0e
cojna/iota
MonoidAction.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Prop.MonoidAction (monoidActionSpec) where import Data.SegTree (MonoidAction (..)) import Test.Prelude monoidActionSpec :: forall f a. ( Arbitrary f , Monoid f , Show f , Arbitrary a , Monoid a , Show a , Eq a , MonoidAction...
null
https://raw.githubusercontent.com/cojna/iota/a64e8c5e4dd4f92e5ed3fcd0413be94ef1108f9e/test/Test/Prop/MonoidAction.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Prop.MonoidAction (monoidActionSpec) where import Data.SegTree (MonoidAction (..)) import Test.Prelude monoidActionSpec :: forall f a. ( Arbitrary f , Monoid f , Show f , Arbitrary a , Monoid a , Show a , Eq a , MonoidAction...
65ecfb94ec1997081c0200b8b3e98bbf764c2c75bcc6baeaa33a66c1d08631d6
planetfederal/signal
reducer.clj
Copyright 2016 - 2017 Boundless , ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distribute...
null
https://raw.githubusercontent.com/planetfederal/signal/e3eae56c753f0a56614ba8522278057ab2358c96/src/signal/specs/reducer.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2016 - 2017 Boundless , distributed under the License is distributed on an " AS IS " BASIS , (ns signal.specs.reducer (:require [clojure.spec.alpha :as s])) (s/def :identity/type #{"identity"}) (s/def :identity/reducer (s/keys :req-un [:identity/type])) (s/def ::reducers (s/coll-of (s/or :identity :i...
fec8e7c0ce01d72cdabde95c17d9b9c4e37a20f37261ded4be65d4d161c33fe6
marcoheisig/adventofcode
day-05.lisp
(defpackage :adventofcode-2018-day-5 (:use :cl)) (in-package :adventofcode-2018-day-5) (defun opposite-case-p (char-1 char-2) (and (char-equal char-1 char-2) (not (char= char-1 char-2)))) (defun reduce-string (string) (with-input-from-string (stream string) (let ((stack '())) (loop for char = ...
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2018/day-05/day-05.lisp
lisp
(defpackage :adventofcode-2018-day-5 (:use :cl)) (in-package :adventofcode-2018-day-5) (defun opposite-case-p (char-1 char-2) (and (char-equal char-1 char-2) (not (char= char-1 char-2)))) (defun reduce-string (string) (with-input-from-string (stream string) (let ((stack '())) (loop for char = ...
6326c700e8684e10ab43fd541f0abc02b9fd3ef5c4b30f2eba6decb39e6d5ff4
earl-ducaine/cl-garnet
demo-array.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : DEMO - ARRAY ; Base : 10 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; The Garnet User Interface Development Environment . ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; This code was ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/demos/demo-array.lisp
lisp
Syntax : Common - Lisp ; Package : DEMO - ARRAY ; Base : 10 -*- ; ; This code was written as part of the Garnet project at ;;; ; ; ; ; please contact to be put on the mailing list. ;;; change log squares needed too grab title bar
05 - 22 - 94 - Changed top of main window so its grabble 10 - 24 - 91 BAM made clicking change a single square , made lines between (in-package :DEMO-ARRAY) (declaim (special W A FEED-RECT MY-SQUARE)) (defvar the-array) (defvar *vp*) (defvar *square* 6) (defvar *square-size* (1- *square*)) (defvar *window-...
605b24d7db48f52c13e8afd1d859b32934960bb62b1d7d6525d84c5f15f710ab
mlin/PhyloCSF
Newick.mli
* Newick format trees The Newick format is a parenthesis notation widely used for sharing phylogenetic trees , which can be used to represent rooted and unrooted trees with multifurcating nodes . The recursive data structure here is good for import / export and manipulating the tree topology , but the array - based ...
null
https://raw.githubusercontent.com/mlin/PhyloCSF/6a26e7f7f40b43eac8b76cc1fe295a584d7d8b38/lib/CamlPaml/Newick.mli
ocaml
* optional branch length * tree data structure * compute the parenthesis representation of the tree (a semicolon is NOT appended) * number of nodes in the tree (including internal nodes) * number of leaves in the tree (nodes with no subtrees) * remove all branch lengths from the tree * [reorder cmp t] reorders le...
* Newick format trees The Newick format is a parenthesis notation widely used for sharing phylogenetic trees , which can be used to represent rooted and unrooted trees with multifurcating nodes . The recursive data structure here is good for import / export and manipulating the tree topology , but the array - based ...
c9db9b190325215e85239b5d99f153925d6eb0beadf5b8c1d0e3565d4ecc6e1e
raspasov/neversleep
env.clj
(ns neversleep-db.env (:require [environ.core :as environ])) (defonce env environ/env) (defn merge-with-env! [a-map] (alter-var-root #'env (fn [x] (merge x a-map)))) (defn data-dir [] (get-in env [:config :data-dir]))
null
https://raw.githubusercontent.com/raspasov/neversleep/7fd968f4ab20fa6ef71e1049e3eec289ea6691e4/src/neversleep_db/env.clj
clojure
(ns neversleep-db.env (:require [environ.core :as environ])) (defonce env environ/env) (defn merge-with-env! [a-map] (alter-var-root #'env (fn [x] (merge x a-map)))) (defn data-dir [] (get-in env [:config :data-dir]))
38fa63ce04056d822214e871d8fcbf825d007b5bf45b3d6c3234663f12a20e2b
rizo/snowflake-os
reload.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/alpha/reload.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ let fundecl f = (new Reload...
bf3ecc2e4c236fb551e7a8862fc6217787f4bfd5a89dec8c17e61c986837f450
ActaFi/cardano-staking-smart-contract
Feed.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE NumericUnderscores #-} # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Module : T...
null
https://raw.githubusercontent.com/ActaFi/cardano-staking-smart-contract/1548ba69b6cc6f2706668aee103e36c8c0bac19e/test/Tests/OnChain/Feed.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NumericUnderscores # # LANGUAGE ScopedTypeVariables #
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # | Module : Tests . . Feed Description : A test to simulate an attach on the on - chain code of feed . Copyright : P2P Solutions Ltd. License : GPL-3 Ma...
e92d24646227085e9e109908ccd5f7017faeb2fcf7e88a8e4bb68b81682b8d3e
jeromesimeon/Galax
prefix_context.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/streaming/prefix_context.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : prefix_context.mli , v 1.3 2007/02/01 22:08:54 simeon Exp $ Module : Prefix_context Description : This module implements the context necessary to turn a resolved SAX stream back into an unresolved one with the pro...
fa975c6b1540579d3c0c568268a96160e49af07aafb7ca91468c526c088338ec
rgeoghegan/ocaml-redis
test.ml
open OUnit;; let suite = "ocaml-redis" >::: [ Smoke_test.suite; ] let _ = run_test_tt_main suite
null
https://raw.githubusercontent.com/rgeoghegan/ocaml-redis/16b921c5cd3bc26103571f0fe0dfce6e796f06b4/tests/test.ml
ocaml
open OUnit;; let suite = "ocaml-redis" >::: [ Smoke_test.suite; ] let _ = run_test_tt_main suite
edd610b6ef47bb0ddb343939b6d12c49ea30c14fe55e79a77c582a4791829bb3
janestreet/ecaml
import.ml
open! Core include Ecaml include Expect_test_helpers_core
null
https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/ecaml_value/test/import.ml
ocaml
open! Core include Ecaml include Expect_test_helpers_core
a66ef5b4f3cee58ce079267b8fc494ac3732c9b650b083dcd9751e90ac32b587
tek/ribosome
CommandModsTest.hs
module Ribosome.Host.Test.CommandModsTest where import Conc (interpretAtomic) import Polysemy.Test (UnitTest, assertJust) import Ribosome.Host.Api.Data (nvimCommand, nvimGetVar, nvimSetVar) import Ribosome.Host.Data.CommandMods (CommandMods (CommandMods)) import Ribosome.Host.Data.Execution (Execution (Sync)) import ...
null
https://raw.githubusercontent.com/tek/ribosome/800642404ee8bf6e1d563ad3440d3e191e5be62d/packages/host/test/Ribosome/Host/Test/CommandModsTest.hs
haskell
module Ribosome.Host.Test.CommandModsTest where import Conc (interpretAtomic) import Polysemy.Test (UnitTest, assertJust) import Ribosome.Host.Api.Data (nvimCommand, nvimGetVar, nvimSetVar) import Ribosome.Host.Data.CommandMods (CommandMods (CommandMods)) import Ribosome.Host.Data.Execution (Execution (Sync)) import ...
c3394197e0a590bedac61b895e2b081de6a25540d1aa3fe4b464848532a622f6
fragnix/fragnix
ExportListWildcards.hs
module ExportListWildcards (Foo(..), Bar(..), N(..)) where data Foo = Foo1 | Foo2 Int | Foo3 { c :: Bool } class Bar a where x :: a -> Foo newtype N = N { unN :: Foo } a = a data Baz = Baz
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/quick/QualifiedAssociates/ExportListWildcards.hs
haskell
module ExportListWildcards (Foo(..), Bar(..), N(..)) where data Foo = Foo1 | Foo2 Int | Foo3 { c :: Bool } class Bar a where x :: a -> Foo newtype N = N { unN :: Foo } a = a data Baz = Baz
14be5c744ff134b665a15a9ce30044a443a86efa2dd192b1a7621c9bd3a0c89b
janestreet/universe
sexplib0.ml
module Sexp = Sexp module Sexp_conv = Sexp_conv module Sexp_conv_error = Sexp_conv_error module Sexpable = Sexpable module Private = struct module Lazy_group_id = Lazy_group_id module Raw_grammar = Raw_grammar end
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/sexplib0/src/sexplib0.ml
ocaml
module Sexp = Sexp module Sexp_conv = Sexp_conv module Sexp_conv_error = Sexp_conv_error module Sexpable = Sexpable module Private = struct module Lazy_group_id = Lazy_group_id module Raw_grammar = Raw_grammar end
12ef085793d93c10ab323da60be2de5c16a857e6cd6cedfd851f0143912e4979
spl/emgm
EMGM.hs
----------------------------------------------------------------------------- -- | -- Module : Generics.EMGM Copyright : ( c ) 2008 , 2009 Universiteit Utrecht -- License : BSD3 -- Maintainer : -- Stability : experimental -- Portability : non-portable -- EMGM is \"Extensible and Modular G...
null
https://raw.githubusercontent.com/spl/emgm/dc16c10137487d7eb97aa851a577be66b46070a2/src/Generics/EMGM.hs
haskell
--------------------------------------------------------------------------- | Module : Generics.EMGM License : BSD3 Stability : experimental Portability : non-portable This module exports the most commonly used types, classes, and functions. The documentation is organized by topic for convenien...
Copyright : ( c ) 2008 , 2009 Universiteit Utrecht Maintainer : EMGM is \"Extensible and Modular Generics for the Masses,\ " a library for datatype - generic programming in Haskell . # OPTIONS_GHC -Wall # module Generics.EMGM ( * * Datatype Representation Haskell datatype . Unit(..), (:+...
9facf05da7914e4440179af3dcbd38dd2cfc2d12b5c45dfa4e0a231e7feb38d4
picty/parsifal
tar7.ml
open Parsifal open BasePTypes open PTypes enum file_type (8, UnknownVal UnknownFileType) = | 0 -> NormalFile | 0x30 -> NormalFile | 0x31 -> HardLink | 0x32 -> SymbolicLink | 0x33 -> CharacterSpecial | 0x34 -> BlockSpecial | 0x35 -> Directory | 0x36 -> FIFO | 0x37 -> ContiguousFile type tar_numstri...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/tutorial/tar-steps/tar7.ml
ocaml
open Parsifal open BasePTypes open PTypes enum file_type (8, UnknownVal UnknownFileType) = | 0 -> NormalFile | 0x30 -> NormalFile | 0x31 -> HardLink | 0x32 -> SymbolicLink | 0x33 -> CharacterSpecial | 0x34 -> BlockSpecial | 0x35 -> Directory | 0x36 -> FIFO | 0x37 -> ContiguousFile type tar_numstri...
287385476e99ab6c4547efdd07654013ce4ca645d73d75c515785d4b817f288c
aisamanra/config-ini
Config.hs
# LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # -- | -- Module : Data.Ini.Config Copyright : ( c ) , 2017 -- License : BSD Maintainer : < > -- Stability : experimental -- The ' config library exports some simple monadic functions to ...
null
https://raw.githubusercontent.com/aisamanra/config-ini/35dd9a28d32fde6c78b778653359579d65386d79/src/Data/Ini/Config.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Data.Ini.Config License : BSD Stability : experimental and the individual key-value pairs contained within those chunks. and @LOCAL@, and each contains its own key-value pairs. Comments, which begin with @#@ or @;@, are ignored: > [NETWORK] > host = example.c...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # Copyright : ( c ) , 2017 Maintainer : < > The ' config library exports some simple monadic functions to make parsing INI - like configuration easier . INI files have a two - level structure : the top - level named chunks of co...
b3562093877b795735d9dd697df1b9aa9a2324d0291a18264d9442bb900f46df
typeable/dom-parser
FromDom.hs
module Text.XML.DOM.Parser.FromDom * FromDom(..) , proxyFromDom -- * Explicit methods for convenience , elementFromDom , textFromDom , stringFromDom , charFromDom , intFromDom , integerFromDom , doubleFromDom , fixedFromDom , boolFromDom , unitFromDom , voidFromDom , scientificFromD...
null
https://raw.githubusercontent.com/typeable/dom-parser/7d556ba528bfa216e99714f8a0d4d00f452803a9/src/Text/XML/DOM/Parser/FromDom.hs
haskell
* Explicit methods for convenience method 'fromDom' is convenient default to use with 'inElem' | Never parses successfully. It is just 'empty' f, false or 0 for False. Case is not significant, blank characters are striped.
module Text.XML.DOM.Parser.FromDom * FromDom(..) , proxyFromDom , elementFromDom , textFromDom , stringFromDom , charFromDom , intFromDom , integerFromDom , doubleFromDom , fixedFromDom , boolFromDom , unitFromDom , voidFromDom , scientificFromDom ) where import Control.Applicative i...
0c8d0583945f721b8581a7f9d989dafbcc0172d78059c27dd00dca24bb5bb81d
slipstream/SlipStreamServer
pagination_test.clj
(ns com.sixsq.slipstream.ssclj.resources.common.pagination-test (:require [clojure.test :refer :all] [com.sixsq.slipstream.ssclj.resources.common.pagination :refer :all])) (def one-to-ten (range 1 11)) (deftest outside-bounds (is (= [] (paginate 5 2 one-to-ten))) (is (= [] (paginate 20 30 one-to-ten))...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/common/pagination_test.clj
clojure
(ns com.sixsq.slipstream.ssclj.resources.common.pagination-test (:require [clojure.test :refer :all] [com.sixsq.slipstream.ssclj.resources.common.pagination :refer :all])) (def one-to-ten (range 1 11)) (deftest outside-bounds (is (= [] (paginate 5 2 one-to-ten))) (is (= [] (paginate 20 30 one-to-ten))...
ff36e3c02ff929122733c92850bcb238a7fa8b6b0608392fa45d06d3fa25a1f4
SanderSpies/ocaml-gist
raw_compat.ml
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/merlin_lite/src/ocaml/typer_4.04.2/raw_compat.ml
ocaml
For Fake, Browse, Completion, ... For Extend For Browse_misc For Completion
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
c2aedcc5630e47016db2225789e62d1751c26c60cec47845e593d0e11caf6a7f
janestreet/async_rpc_websocket
test_with_tcp_server.ml
open! Core open! Async open! Import open Test_server_utils let%expect_test "serve_with_tcp_server" = do_not_perform_global_logging (); let rpc_server, web_server = Rpc_websocket.Rpc.serve_with_tcp_server ~where_to_listen_for_tcp:Tcp.Where_to_listen.of_port_chosen_by_os ~where_to_listen:Tcp.Where_to...
null
https://raw.githubusercontent.com/janestreet/async_rpc_websocket/72226870fc364f39411e6c85b86205f35c5d5d84/src/test/test_with_tcp_server.ml
ocaml
open! Core open! Async open! Import open Test_server_utils let%expect_test "serve_with_tcp_server" = do_not_perform_global_logging (); let rpc_server, web_server = Rpc_websocket.Rpc.serve_with_tcp_server ~where_to_listen_for_tcp:Tcp.Where_to_listen.of_port_chosen_by_os ~where_to_listen:Tcp.Where_to...
c214bba4403fbb622b96a065a25d41a29f57f85db3b02700e36f555ef0e8ace6
cartazio/tlaps
system.ml
* Copyright ( C ) 2012 INRIA and Microsoft Corporation * Copyright (C) 2012 INRIA and Microsoft Corporation *) (** A few system-related functions *) Revision.f "$Rev: 34678 $";; Kill the process tree rooted at the given PID . This is done by parsing the output of " ps x " ( or " ps -l " ) . We...
null
https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/system.ml
ocaml
* A few system-related functions Use the wait system call to harvest the dead children processes. *************************************** ignore unknown input
* Copyright ( C ) 2012 INRIA and Microsoft Corporation * Copyright (C) 2012 INRIA and Microsoft Corporation *) Revision.f "$Rev: 34678 $";; Kill the process tree rooted at the given PID . This is done by parsing the output of " ps x " ( or " ps -l " ) . We do n't use process groups becaus...
bc7fda89b81c3828da8589d0a505abb6f14c2447272e081dd5f46e34dbc6b7f3
rd--/hosc
Binary.hs
-- | Optimised decode function for Osc packets. module Sound.Osc.Coding.Decode.Binary (get_packet ,decodeMessage ,decodeBundle ,decodePacket ,decodePacket_strict) where import Control.Applicative {- base -} import Control.Monad {- base -} import Data.Int {- base -} import Data.Word {- base -} impo...
null
https://raw.githubusercontent.com/rd--/hosc/7722a3613c1a2d6707fb12c1e0e4d0e1be5e73a0/Sound/Osc/Coding/Decode/Binary.hs
haskell
| Optimised decode function for Osc packets. base base base base binary data-binary-ieee754 bytestring bytestring bytestring hosc hosc hosc hosc hosc | Get binary data prefixed by byte count. | Get an Osc 'Message', fail if type descriptor is invalid. | Get a bundle. Fail if bundle heade...
module Sound.Osc.Coding.Decode.Binary (get_packet ,decodeMessage ,decodeBundle ,decodePacket ,decodePacket_strict) where | Get a 32 bit integer in big - endian byte order . getInt32be :: Binary.Get Int32 getInt32be = fmap word32_to_int32 Binary.getWord32be | Get a 64 bit integer in big - en...
c43aa5968c553bbc74d4c6714ec4db486539916954b7f5aeeea770a6653216ec
haskell/time
Format.hs
module Test.Format.Format ( testFormat, ) where import Data.Proxy import Data.Time import Test.Tasty import Test.Tasty.HUnit import Test.TestUtil -- as found in plus FgGklz -- f not supported -- P not always supported -- s time-zone dependent chars :: [Char] chars = "aAbBcCdDeFgGhHIjklmMnprRStTuUVwWxXyYzZ%" -...
null
https://raw.githubusercontent.com/haskell/time/2282009fbe3ebb52ba453a2d5a30f5ffb5702d7a/test/main/Test/Format/Format.hs
haskell
as found in f not supported P not always supported s time-zone dependent as found in "man strftime" on a glibc system. '#' is different, though
module Test.Format.Format ( testFormat, ) where import Data.Proxy import Data.Time import Test.Tasty import Test.Tasty.HUnit import Test.TestUtil plus FgGklz chars :: [Char] chars = "aAbBcCdDeFgGhHIjklmMnprRStTuUVwWxXyYzZ%" modifiers :: [Char] modifiers = "_-0^" widths :: [String] widths = ["", "1", "2", "9",...
f9477dc7d83a99f5b2b3e3fef47df1ff08f35aaafd972383c27b244f235eebf2
puppetlabs/jruby-utils
jruby_schemas.clj
(ns puppetlabs.services.jruby-pool-manager.jruby-schemas (:require [schema.core :as schema]) (:import (clojure.lang Atom Agent IFn PersistentArrayMap PersistentHashMap) (com.puppetlabs.jruby_utils.pool LockablePool) (org.jruby Main Main$Status RubyInstanceConfig) (com.puppetlabs.jru...
null
https://raw.githubusercontent.com/puppetlabs/jruby-utils/7b53c3c6a0c61635362402313bcec809abf5a856/src/clj/puppetlabs/services/jruby_pool_manager/jruby_schemas.clj
clojure
A sentinel object to put into a pool in case an error occurs while we're trying to populate it. This can be used by the `borrow` functions to detect error state in a thread-safe manner. A sentinel object to put into a pool when we are shutting down. This can be used to build `borrow` functionality that will dete...
(ns puppetlabs.services.jruby-pool-manager.jruby-schemas (:require [schema.core :as schema]) (:import (clojure.lang Atom Agent IFn PersistentArrayMap PersistentHashMap) (com.puppetlabs.jruby_utils.pool LockablePool) (org.jruby Main Main$Status RubyInstanceConfig) (com.puppetlabs.jru...
03b40e2327fcd2fcf62854d73df0786e346cb53fb500dd3d5a8e3e662a6f49ed
NorfairKing/tickler
DeleteItem.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Tickler.Server.Handler.Protected.DeleteItem ( serveDeleteItem, ) where import Database.Persist import Import import Servant import Tickler.API import Tickler.Server.Handler.Utils import Tick...
null
https://raw.githubusercontent.com/NorfairKing/tickler/71c6aec471d095fe2357e135bed90a92619de393/tickler-server/src/Tickler/Server/Handler/Protected/DeleteItem.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Tickler.Server.Handler.Protected.DeleteItem ( serveDeleteItem, ) where import Database.Persist import Import import Servant import Tickler.API import Tickler.Server.Handler.Utils import Tick...