_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
ddbad8f5b42149d92ae6a7b3a72800d43406c42ce2c76ded18da622645e3ac75
nikita-volkov/rerebase
Generic.hs
module Data.Vector.Generic ( module Rebase.Data.Vector.Generic ) where import Rebase.Data.Vector.Generic
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Vector/Generic.hs
haskell
module Data.Vector.Generic ( module Rebase.Data.Vector.Generic ) where import Rebase.Data.Vector.Generic
64079a5a8fed38b1e6e0b6d135bff469658c18c662d848a34912df79a3eefc2f
darcy-shen/dotTeXmacs
my-init-texmacs.scm
(tm-define (my-debug message) (tm-widget (widget1) (centered (aligned (item (text message) (toggle (display* "First " answer "\n") #f))))) (top-window widget1 "Debugging")) (use-modules (convert markdown init-markdown)) (use-modules (utils git git-menu)...
null
https://raw.githubusercontent.com/darcy-shen/dotTeXmacs/27833efb9020ba158021cce15c2192c75a152778/my-init-texmacs.scm
scheme
(tm-define (my-debug message) (tm-widget (widget1) (centered (aligned (item (text message) (toggle (display* "First " answer "\n") #f))))) (top-window widget1 "Debugging")) (use-modules (convert markdown init-markdown)) (use-modules (utils git git-menu)...
0c06810df2a5d0229e477ef494d292471a6bd329b2dd59ce34f4d845188a2544
mthvedt/clearley
lib.clj
(ns clearley.lib "More fns and macros for context-free grammars." (require [uncore.throw :as t]) (use clearley.match)) (defrulefn token "Creates a rule that matches a token. The default action returns the token." a-token (fn [] a-token) {:name name, :tag :token, :value [a-token], :action action}) (defrule...
null
https://raw.githubusercontent.com/mthvedt/clearley/8a38daa1db3a762ead381d81104b851c56696db7/src/clearley/lib.clj
clojure
(ns clearley.lib "More fns and macros for context-free grammars." (require [uncore.throw :as t]) (use clearley.match)) (defrulefn token "Creates a rule that matches a token. The default action returns the token." a-token (fn [] a-token) {:name name, :tag :token, :value [a-token], :action action}) (defrule...
d4118363d5b1188b6e4f7f2bf170353e2a6ebdae525a3d483ca5010edee3e3ce
binaryage/cljs-devtools
formatters.cljs
(ns devtools.formatters (:require-macros [devtools.oops :refer [unchecked-aget unchecked-aset]]) (:require [goog.labs.userAgent.browser :refer [isVersionOrHigher isChrome isFirefox isEdge isEdgeChromium]] [devtools.prefs :as prefs] [devtools.util :refer [get-formatters-safe set-formatters-sa...
null
https://raw.githubusercontent.com/binaryage/cljs-devtools/89cd2365e130b5c96a2099253dd26f93fd97b886/src/lib/devtools/formatters.cljs
clojure
devtools.debug namespace may not be present => no debugging monitors api calls in a separate debug console if debug namespace is available wraps our api calls in a try-catch block to prevent leaking of exceptions in case something went wrong raw API call wrapped API call slice effectively duplicates the array ac...
(ns devtools.formatters (:require-macros [devtools.oops :refer [unchecked-aget unchecked-aset]]) (:require [goog.labs.userAgent.browser :refer [isVersionOrHigher isChrome isFirefox isEdge isEdgeChromium]] [devtools.prefs :as prefs] [devtools.util :refer [get-formatters-safe set-formatters-sa...
d96a4ebb78a7451cd7252b5e451babafd9d0541bc6cf06972ab4ee1d062e99a9
commsor/titanoboa
cluster.clj
Copyright ( c ) Commsor Inc. All rights reserved . ; The use and distribution terms for this software are covered by the ; GNU Affero General Public License v3.0 (/#AGPL) ; which can be found in the LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; th...
null
https://raw.githubusercontent.com/commsor/titanoboa/ffe3e1e58f89169092d7b6a3a45e1707a0ecc9ee/src/clj/titanoboa/cluster.clj
clojure
The use and distribution terms for this software are covered by the GNU Affero General Public License v3.0 (/#AGPL) which can be found in the LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice,...
Copyright ( c ) Commsor Inc. All rights reserved . (ns titanoboa.cluster (:require [titanoboa.system :as system] [titanoboa.api :as api] [com.stuartsierra.component :as component] [clojure.tools.logging :as log] [titanoboa.util :as util])) (def lock (Object.)) ( .g...
38cbdf1a39b4a7d82c45662409cca81db0f79004834cc9c54c7f096242e18955
marcoheisig/Typo
ntype-subtypecase.lisp
(in-package #:typo.ntype) The NTYPE - SUBTYPECASE macro is the workhorse of ntype reasoning . It allows a user to quickly select the first clause whose type denotes a ;;; subtype of the supplied ntype. (defmacro ntype-subtypecase (ntype &body clauses) "Execute the forms in the first clause that starts with a ...
null
https://raw.githubusercontent.com/marcoheisig/Typo/88f2708bbb8f8f8ac2dd19cd153a16c06554a6aa/code/ntype/ntype-subtypecase.lisp
lisp
subtype of the supplied ntype.
(in-package #:typo.ntype) The NTYPE - SUBTYPECASE macro is the workhorse of ntype reasoning . It allows a user to quickly select the first clause whose type denotes a (defmacro ntype-subtypecase (ntype &body clauses) "Execute the forms in the first clause that starts with a type that is a subtype of the suppl...
e7037ab92d57d6bf9e18f39d18b2397ee31a86a2bed0be5e6ba2bfa90150d613
dyzsr/ocaml-selectml
emitcode.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/bytecomp/emitcode.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Config open Misc open Asttypes open Lambda open Instruct open Opcodes open Cmo_format module String...
55fba0cebbcdb14c25609beb3b58957d29da3a9b5397fa38f5d14b832d949e5d
babashka/nbb
gulpfile.cljs
(ns example (:require ["gulp$default" :refer [src dest]] ["gulp-babel$default" :as babel])) (defn default [] (-> (src "gulpfile.mjs") (.pipe (babel)) (.pipe (dest "output/")))) default
null
https://raw.githubusercontent.com/babashka/nbb/15ca5181058f7432c1da3a27f6f335cbda419389/examples/gulp/gulpfile.cljs
clojure
(ns example (:require ["gulp$default" :refer [src dest]] ["gulp-babel$default" :as babel])) (defn default [] (-> (src "gulpfile.mjs") (.pipe (babel)) (.pipe (dest "output/")))) default
c5c4b21ed0027b52bd3f2937017017937924600c8c270099af727c45fffb4267
CRogers/obc
binary.ml
* binary.ml * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . Redistributions ...
null
https://raw.githubusercontent.com/CRogers/obc/49064db244e0c9d2ec2a83420c8d0ee917b54196/debugger/binary.ml
ocaml
Modules Procedures Variables Address Line numbers Use binary search to find the next preceding line boundary Invariant line_addrtab[0..a) <= addr < line_addrtab[b..n) raise Not_found if out of range Can't find line Proc not in table
* binary.ml * * This file is part of the Oxford Oberon-2 compiler * Copyright ( c ) 2006 * All rights reserved * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1 . Redistributions ...
ffe27fa03d28bc883f4273238468fd80443196e7f04e54c1b3204b31a1790251
zclj/replication-packages
fault_finding_experiment.clj
(ns gql.fault-finding-experiment (:require [gql.generators :as gqlgen] [gql.query-data :as data] [gql.git-lab-specs :as gspecs] [clojure.test.check.properties :as prop] [org.httpkit.client :as http] [clojure.data.json :as json] [clojure.spec.alph...
null
https://raw.githubusercontent.com/zclj/replication-packages/8a5cb02e4fdda74107b5dcc34cbfa5cb5ae34dcf/GraphQL/implementation/src/gql/fault_finding_experiment.clj
clojure
(println (str "Validating " payload)) (= (:errors (:body result)) nil) Fault finding
(ns gql.fault-finding-experiment (:require [gql.generators :as gqlgen] [gql.query-data :as data] [gql.git-lab-specs :as gspecs] [clojure.test.check.properties :as prop] [org.httpkit.client :as http] [clojure.data.json :as json] [clojure.spec.alph...
90e8ba8fbc2542b0d38f01ba72feb7024cfb78a173390f649635406406450c3c
tarides/opam-monorepo
prompt.mli
val confirm : question:('a, unit) Logs.msgf -> yes:bool -> bool * Promtps the user for confirmation . [ confirm ~question ~yes ] uses the message formatting function [ question ] to format and log a message with the app level and wait for a yes or no answer from the user . Returns [ true ] for yes . D...
null
https://raw.githubusercontent.com/tarides/opam-monorepo/9262e7f71d749520b7e046fbd90a4732a43866e9/cli/prompt.mli
ocaml
* Same as [confirm] but returns [Ok ()] for yes and [Error (`Msg "Aborting on user demand")] for no
val confirm : question:('a, unit) Logs.msgf -> yes:bool -> bool * Promtps the user for confirmation . [ confirm ~question ~yes ] uses the message formatting function [ question ] to format and log a message with the app level and wait for a yes or no answer from the user . Returns [ true ] for yes . D...
9f2c6d97ee4c5404ee649be5b295e4f4b128d8d6d64ab944d193d0dfda20d94f
mnieper/unsyntax
64.scm
Copyright © ( 2020 ) . ;; This file is part of unsyntax. ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , ;; including without limitation the rights to use...
null
https://raw.githubusercontent.com/mnieper/unsyntax/cd12891805a93229255ff0f2c46cf0e2b5316c7c/src/srfi/64.scm
scheme
This file is part of unsyntax. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files including without limitation the rights to use, copy, modify, merge, subject to the following conditions: The above copyright notice and this permission n...
Copyright © ( 2020 ) . ( the " Software " ) , to deal in the Software without restriction , publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
68f867611ad610d393627110a52d6779c14a0e1bc95bd7c0cb6ab44400bde15f
monadfix/ormolu-live
ErrUtils.hs
( c ) The AQUA Project , Glasgow University , 1994 - 1998 \section[ErrsUtils]{Utilities for error reporting } (c) The AQUA Project, Glasgow University, 1994-1998 \section[ErrsUtils]{Utilities for error reporting} -} # LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} # LANGUAGE RecordWildCards # module ErrUtils ( ...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/main/ErrUtils.hs
haskell
# LANGUAGE BangPatterns # * Basic types * Messages ** Formatting ** Construction * Utilities * Dump files * Issuing messages during compilation ----------------------- ----------------------- ^ Everything is fine ^ A problem, and some indication of why ---------------------------------------------------------...
( c ) The AQUA Project , Glasgow University , 1994 - 1998 \section[ErrsUtils]{Utilities for error reporting } (c) The AQUA Project, Glasgow University, 1994-1998 \section[ErrsUtils]{Utilities for error reporting} -} # LANGUAGE CPP # # LANGUAGE RecordWildCards # module ErrUtils ( Validity(..), andValid...
c31847e18b0a76c5a32b7f9ce28a6ca39ccfbdc0f686f8e7adf28ced04ca9214
cedlemo/OCaml-GI-ctypes-bindings-generator
Table.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_table_new" (uint32_t @-> uint32_t @-> bool @-> returning (ptr Widget.t_typ)) let attach = foreign "gtk_table_attach" (t_typ @-> ptr Widget.t_typ @-> uint32_t @-> uint32_t @-> uint32_t @-> uint32_t @-> Attach_options....
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Table.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_table_new" (uint32_t @-> uint32_t @-> bool @-> returning (ptr Widget.t_typ)) let attach = foreign "gtk_table_attach" (t_typ @-> ptr Widget.t_typ @-> uint32_t @-> uint32_t @-> uint32_t @-> uint32_t @-> Attach_options....
ae55314038303cf109d58d7b481e77d1f853c5fb6510d9949a5abe0480782d03
nikodemus/ec2
conditions.lisp
;;; Conditions that may be raised by the EC2 package. Copyright ( c ) 2010 Saffron Technology ( www.saffrontech.com ) ;;; 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 ...
null
https://raw.githubusercontent.com/nikodemus/ec2/5a48b57b7f2d65e51af57c08f8e4a61346eed81d/conditions.lisp
lisp
Conditions that may be raised by the EC2 package. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software ...
Copyright ( c ) 2010 Saffron Technology ( www.saffrontech.com ) files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANT...
da5d9c1907c4f54924e1cb8c184a1ed95153b3316478fbc2aac8c41b53684722
RolfRolles/PandemicML
Z3TextualParsedModel.mli
type bvpair = string * string type arrayt = | RealEntry of bvpair * bvpair | DefaultEntry of bvpair type t = | BitVector of bvpair | Array of arrayt list
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/DPI/Z3TextualParsedModel.mli
ocaml
type bvpair = string * string type arrayt = | RealEntry of bvpair * bvpair | DefaultEntry of bvpair type t = | BitVector of bvpair | Array of arrayt list
0ace76185409b0a8b247ae7a7011db11d96d2ca8ec3a9278d62849495de08ee2
qfpl/reflex-workshop
TextInput.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Workshop/DOM/Inputs/TextInput.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
776a71e20d3e2f98584f257b5965c0b21ab3fc3448ab529f1b716c3b9cb815b7
digital-asset/ghc
tc092.hs
# OPTIONS_GHC -fno - warn - redundant - constraints # {-# LANGUAGE RankNTypes #-} module ShouldSucceed where data Empty q = Empty (forall a. Ord a => q a) q :: (Ord a) => [a] q = [] e0, e1, e2 :: Empty [] e0 ...
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_compile/tc092.hs
haskell
# LANGUAGE RankNTypes #
# OPTIONS_GHC -fno - warn - redundant - constraints # module ShouldSucceed where data Empty q = Empty (forall a. Ord a => q a) q :: (Ord a) => [a] q = [] e0, e1, e2 :: Empty [] e0 = Empt...
b40b2c1593d57872175af6fbcc06a95951bcce6f85a85040741cc0c00f76d9c7
pink-gorilla/goldly
no_page.cljs
(ns goldly.page.no-page (:require [frontend.page :refer [reagent-page]] [re-frame.core :as rf])) (defn no-page [] [:div.m-10.p-10.bg-blue-300.border.border-round.border-red-600 [:p.text-2xl.text-red-800.mb-10 "Here could be your app!"] [:p "Your config needs to include [:goldly :routes] {:app {\"/\" :y...
null
https://raw.githubusercontent.com/pink-gorilla/goldly/c65f789671cedfc5f115191a2a4b51d787492ae5/goldly/src/goldly/page/no_page.cljs
clojure
(ns goldly.page.no-page (:require [frontend.page :refer [reagent-page]] [re-frame.core :as rf])) (defn no-page [] [:div.m-10.p-10.bg-blue-300.border.border-round.border-red-600 [:p.text-2xl.text-red-800.mb-10 "Here could be your app!"] [:p "Your config needs to include [:goldly :routes] {:app {\"/\" :y...
6bf837c117d32980ba459015db32adb00f9221cd39c73b443bdcfcce0e1f3aeb
DKurilo/hackerrank
solution.hs
-- -- /~tom/Game_Theory/comb.pdf # LANGUAGE UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import Data.List (sort, nub, splitAt) import Data.Bits import Debug.Trace import System.IO data Answer = WIN | LOSE ...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/game-of-kyles/solution.hs
haskell
/~tom/Game_Theory/comb.pdf
# LANGUAGE UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad.Unicode import Control.Monad import qualified Data.ByteString.Char8 as BSC import Data.List (sort, nub, splitAt) import Data.Bits import Debug.Trace import System.IO data Answer = WIN | LOSE deriving (Show, Eq) removeP ∷ In...
c4fe99e08b11dd4d6b0f7fc6f7df0063cbd7a90644182dbff07dfab35cd29856
MinaProtocol/mina
validation.mli
open Async_kernel open Core_kernel open Mina_base open Mina_state (* TODO: this may be re-done with the new body header split *) (* By redefining a type alias in this module, and then rewriting that type alias in the signature of the type module before it is included, we effectively obscure the underlying type ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/d84d63a0a2522603f3183eb0a49321399763c43a/src/lib/mina_block/validation.mli
ocaml
TODO: this may be re-done with the new body header split By redefining a type alias in this module, and then rewriting that type alias in the signature of the type module before it is included, we effectively obscure the underlying type definition from external code (since the type module is not directly ex...
open Async_kernel open Core_kernel open Mina_base open Mina_state include module type of Validation_types module type CONTEXT = sig val logger : Logger.t val constraint_constants : Genesis_constants.Constraint_constants.t val consensus_constants : Consensus.Constants.t end val validation : ('a, 'b, 'c, 'd...
c26be7f21fd0139c49f4cd4d42fc2a76fcb77538a935f58fdde2e521c90a51dd
B-Lang-org/bsc
GenWrapUtils.hs
common utils for and GenFuncWrap module GenWrapUtils where import FStringCompat import Util(rTake, rDrop) import ErrorUtil import Id import Pragma import PreIds import CSyntax import CType -- ==================== genSuffix :: String genSuffix = ['\173'] fsGenSuffix :: FString fsGenSuffix = mkFString genSuffix ...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/GenWrapUtils.hs
haskell
==================== Add the Internal Flag to the Id ==================== A function to rename the top interface name -- should not rename port of the interface. This needs to generate a unique name for the interface based on the pragmas Therefore Ifc_ is different from Ifc_ {always_ready} etc For now this just ...
common utils for and GenFuncWrap module GenWrapUtils where import FStringCompat import Util(rTake, rDrop) import ErrorUtil import Id import Pragma import PreIds import CSyntax import CType genSuffix :: String genSuffix = ['\173'] fsGenSuffix :: FString fsGenSuffix = mkFString genSuffix addInternalProp :: Id ->...
45109cec65c8f34dbaf496dfea4e765fd043d894b9f756ce1f581b54ae8cb858
pixlsus/registry.gimp.org_static
dechroma.scm
; dechroma.scm ; remove chroma noise ; Script-fu for Gimp ( c ) Published under GPL version 2 Oct 6 , 7 , 9 , 2008 (script-fu-register "script-fu-dechroma" "<Image>/Filters/jp/dechroma" "Remove chroma noise." "Jean-Pierre Bucciol <jpsspam(at)free.fr>" "(c) Jean-Pierre Bucciol. Published under GPL versio...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/dechroma.scm
scheme
dechroma.scm remove chroma noise Script-fu for Gimp begin undo group decompose image to LAB define layers A & B blur layers A & B recompose image remove temporary imageLAB update image window end undo group Adapted from discussions: /
( c ) Published under GPL version 2 Oct 6 , 7 , 9 , 2008 (script-fu-register "script-fu-dechroma" "<Image>/Filters/jp/dechroma" "Remove chroma noise." "Jean-Pierre Bucciol <jpsspam(at)free.fr>" "(c) Jean-Pierre Bucciol. Published under GPL version 2." "Oct 9 2008" "RGB*" SF-IMAGE "Image" 0 SF-DRAWAB...
bf89b0cb1bb45ca523288404f35a40ffd24477e6132d3f761f49837880a87ce7
fresnel/fresnel
OptionalStar.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE TupleSections # module Fresnel.Profunctor.OptionalStar ( -- * Optional star profunctors OptionalStar(..) -- * Construction , optionalStar -- * Elimination , runOptionalStar -- * Computation , mapOptionalStar ) where import Data.Coerce import Data.Functor.Contravariant imp...
null
https://raw.githubusercontent.com/fresnel/fresnel/8f0d267779703049568694834c25f619034ca74d/fresnel/src/Fresnel/Profunctor/OptionalStar.hs
haskell
# LANGUAGE RankNTypes # * Optional star profunctors * Construction * Elimination * Computation Optional star profunctors Construction Elimination Computation
# LANGUAGE TupleSections # module Fresnel.Profunctor.OptionalStar OptionalStar(..) , optionalStar , runOptionalStar , mapOptionalStar ) where import Data.Coerce import Data.Functor.Contravariant import Data.Profunctor import Data.Profunctor.Unsafe import Fresnel.Bifunctor.Contravariant newtype OptionalStar f a b =...
5f68d2c1a0d5fa811d3764521198acd314088cb00d4320d4feb3527366955edb
LPCIC/matita
nDestructTac.ml
Copyright ( C ) 2002 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_tactics/nDestructTac.ml
ocaml
needed to workaround a weakness of the refiner? creates the discrimination = injection+contradiction principle eqty = Tn u0 e0...un-1 en-1 params = [T0;t0;...;Tn;tn;u0;e0;un-1;en-1] it NotationPt . Implicit ` JustOne NotationPt.Binder (`Forall, (mk_id "_", Some (mk_appl [mk_id ...
Copyright ( C ) 2002 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
eb4423088dc5b52c8322446f7ee17793ed09bd9d26b20c9fc5eab1e5b6a877db
bartima3us/erline-dht
erline_dht_nan_cache.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 , %%% @doc %%% Not assigned nodes counter cache and reconciler. %%% @end Created : 18 . May 2020 20.57 %%%------------------------------------------------------------------- -module(erline_dht_nan_cache). -author("bartima...
null
https://raw.githubusercontent.com/bartima3us/erline-dht/7de9bee0b5b86a347b9527369877e3d97b863d9d/src/erline_dht_nan_cache.erl
erlang
------------------------------------------------------------------- @doc Not assigned nodes counter cache and reconciler. @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API ======================...
@author ( C ) 2019 , Created : 18 . May 2020 20.57 -module(erline_dht_nan_cache). -author("bartimaeus"). -include("erline_dht.hrl"). -behaviour(gen_server). -export([ start_link/1, add/2, sub/2, get_amount/1 ]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, te...
d94959472c81c6046ca1e9d73d2da623cffeac5fe78a13dff59a05da8202dc7e
mbj/stratosphere
Portfolio.hs
module Stratosphere.ServiceCatalog.Portfolio ( Portfolio(..), mkPortfolio ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Portfolio = Port...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/servicecatalog/gen/Stratosphere/ServiceCatalog/Portfolio.hs
haskell
module Stratosphere.ServiceCatalog.Portfolio ( Portfolio(..), mkPortfolio ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Portfolio = Port...
b055801d1997c5b7216e4cd8b9d2fc48e791f046f8cd637473fe56fd2367d7b2
gwkkwg/cl-containers
test-set-container.lisp
(in-package #:u) (deftestsuite test-set-container () ((c (make-container 'set-container :initial-contents '(1 2 3 3 3 4))))) (addtest (test-set-container) (ensure-same (size c) 6)) (addtest (test-set-container) (ensure-same (count-elements c 3) 3) (ensure-same (count-elements c 1) 1))
null
https://raw.githubusercontent.com/gwkkwg/cl-containers/3d1df53c22403121bffb5d553cf7acb1503850e7/tests/test-set-container.lisp
lisp
(in-package #:u) (deftestsuite test-set-container () ((c (make-container 'set-container :initial-contents '(1 2 3 3 3 4))))) (addtest (test-set-container) (ensure-same (size c) 6)) (addtest (test-set-container) (ensure-same (count-elements c 3) 3) (ensure-same (count-elements c 1) 1))
83c0a6ea80468e29f4ca0c82e1c99f35e56ee509bcd6264b5cf48b8e995b96cd
pirj/ryan
ryan_misc.erl
-module(ryan_misc). -export([create_session_token/0]). create_session_token() -> random_seed(), Random = integer_to_list(random:uniform(100000000000000000000000000000000000000)), MD5 = binary_to_list(erlang:md5(Random)), base64:encode_to_string(MD5). Hat tip to ! {_,_,X} = erlang:now(), {H,M,S} = time(), H...
null
https://raw.githubusercontent.com/pirj/ryan/4df9ed791c3663c1de7864f62524e6f49700cda0/src/core/ryan_misc.erl
erlang
-module(ryan_misc). -export([create_session_token/0]). create_session_token() -> random_seed(), Random = integer_to_list(random:uniform(100000000000000000000000000000000000000)), MD5 = binary_to_list(erlang:md5(Random)), base64:encode_to_string(MD5). Hat tip to ! {_,_,X} = erlang:now(), {H,M,S} = time(), H...
b9347c0f8540ace2c6469e6d24fe7a1013e672d95bf42b5c7ae28ae2b1f24bc1
nextjournal/viewers
routes.cljs
(ns nextjournal.devcards.routes (:require [nextjournal.devcards-ui :as devcards-ui] [re-frame.context :as re-frame] [reagent.core :as r] [reitit.frontend :as rf] [reitit.frontend.history :as rfh] [reitit.frontend.easy :as rfe])) ;;todo rename to router (re...
null
https://raw.githubusercontent.com/nextjournal/viewers/666b420abe2ee061dbb9d01a6aa657aa491a2fa4/modules/devcards/src/nextjournal/devcards/routes.cljs
clojure
todo rename to router
(ns nextjournal.devcards.routes (:require [nextjournal.devcards-ui :as devcards-ui] [re-frame.context :as re-frame] [reagent.core :as r] [reitit.frontend :as rf] [reitit.frontend.history :as rfh] [reitit.frontend.easy :as rfe])) (re-frame/reg-event-fx :r...
db693d6dd3043481cf0bcb5cba54416309454a69047d780786f8a22497f6d7d5
lambdaisland/activities
user.clj
(ns user) (require 'hashp.core) (defmacro jit "Just in time loading of dependencies." [sym] `(do (requiring-resolve '~sym))) (defn go [] ((jit integrant.repl/set-prep!) @(jit activities.system/read-config)) ((jit integrant.repl/go))) (defn halt [] ((jit integrant.repl/halt))) (defn reset [] ((ji...
null
https://raw.githubusercontent.com/lambdaisland/activities/518b1ea12fc4c5cb2b8bbb0b6c79488760853e0d/dev/user.clj
clojure
(ns user) (require 'hashp.core) (defmacro jit "Just in time loading of dependencies." [sym] `(do (requiring-resolve '~sym))) (defn go [] ((jit integrant.repl/set-prep!) @(jit activities.system/read-config)) ((jit integrant.repl/go))) (defn halt [] ((jit integrant.repl/halt))) (defn reset [] ((ji...
a4d07a6fd51f9e8cccb7ed95ac00ea897ce22f94da58d3815146ebd57c1c06ce
BillHallahan/G2
ImportA.hs
module ImportA where import ImportB foo = "foo from A"
null
https://raw.githubusercontent.com/BillHallahan/G2/dfd377793dcccdc7126a9f4a65b58249673e8a70/tests/Samples/ImportA.hs
haskell
module ImportA where import ImportB foo = "foo from A"
3572b0bc2ad24bd4636549ba3b3a421c0dd09ced9c7caba95a0632741dfae2eb
florence/cover
strace.rkt
#lang racket/base (provide make-annotate-top) #| The module implements code coverage annotations as described in cover.rkt |# (require errortrace/stacktrace racket/function racket/syntax syntax/parse racket/unit syntax/kerncase racket/runtime-path racket/...
null
https://raw.githubusercontent.com/florence/cover/bc17e4e22d47b1da91ddaa5eafefe28f4675e85c/cover-lib/cover/strace.rkt
racket
The module implements code coverage annotations as described in cover.rkt special case: cross-phase-pesistant files are not annotatable, but can be concidered completely covered in order to write modules to disk the top level needs to be a module. so we trust that the module is loaded and trim the expression ---...
#lang racket/base (provide make-annotate-top) (require errortrace/stacktrace racket/function racket/syntax syntax/parse racket/unit syntax/kerncase racket/runtime-path racket/syntax racket/bool racket/set racket/list "p...
c0ea89aab7b4b875cb1f22e87359cdc4cbdebac638600b99ba9c3f04ee0faba3
lipas-liikuntapaikat/lipas
search.clj
(ns lipas.backend.search (:require [qbits.spandex :as es] [qbits.spandex.utils :as es-utils] [clojure.core.async :as async])) (def es-type "_doc") ; See (defn create-cli [{:keys [hosts user password]}] (es/client {:hosts hosts :http-client {:basic-auth {:user user ...
null
https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/f60185b597d2a7fca5480b392cd33187bccfb34a/webapp/src/clj/lipas/backend/search.clj
clojure
See :_type es-type
(ns lipas.backend.search (:require [qbits.spandex :as es] [qbits.spandex.utils :as es-utils] [clojure.core.async :as async])) (defn create-cli [{:keys [hosts user password]}] (es/client {:hosts hosts :http-client {:basic-auth {:user user ...
b2535036eaab5504881d7554970cdba01810a0d69282cc84defb9d3716aa5e08
avik-das/garlic
require-star-c.scm
; libctest is a C module, not a Garlic one. (require "../aux/libc_module" *) (display (add 1 2)) (newline)
null
https://raw.githubusercontent.com/avik-das/garlic/5545f5a70f33c2ff9ec449ef66e6acc7881419dc/test/success/require-star-c.scm
scheme
libctest is a C module, not a Garlic one.
(require "../aux/libc_module" *) (display (add 1 2)) (newline)
d082d0a2a81394cc350f65ff332a3b307801c8374a769bd64f15ad2605485981
melange-re/melange
parser_env.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/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/js_parser/parser_env.mli
ocaml
* 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 ...
a2a5aaa75f444c9d2b033f20a64020ec4af31ff184c589ea06910db43393a30d
pesterhazy/cljs-spa-example
router.cljs
(ns cljs-spa.router (:require [goog.object :as gobj] [cljs-spa.state :refer [!state]] [reagent.core :as r] [router5] ["router5/plugins/browser" :as router5-browser-plugin])) (defn handle-load-error [e] (when (-> e ex-data :load-error) (swa...
null
https://raw.githubusercontent.com/pesterhazy/cljs-spa-example/ef6e6042d0d0759f8bdfc6be4921b72170fd2352/src/cljs_spa/router.cljs
clojure
(ns cljs-spa.router (:require [goog.object :as gobj] [cljs-spa.state :refer [!state]] [reagent.core :as r] [router5] ["router5/plugins/browser" :as router5-browser-plugin])) (defn handle-load-error [e] (when (-> e ex-data :load-error) (swa...
94d455ba7962fc83a86872522135cd759fbb970cd74d67b5cdff058106484f3d
zippy/anansi
commons_room.clj
;(ns # ^{:author " " ; :doc "Commons-room receptor"} ; anansi.commons-room.commons-room ; (:use [anansi.ceptr]) ; (:use [anansi.receptor.scape]) ; (:use [anansi.commons-room.portal]) ; (:use [anansi.commons-room.object]) ; (:use [anansi.commons-room.facilitator] ; [anansi.commons-room.occupant])...
null
https://raw.githubusercontent.com/zippy/anansi/881aa279e5e7836f3002fc2ef7623f2ee1860c9a/src/anansi/commons_room/commons_room.clj
clojure
(ns :doc "Commons-room receptor"} anansi.commons-room.commons-room (:use [anansi.ceptr]) (:use [anansi.receptor.scape]) (:use [anansi.commons-room.portal]) (:use [anansi.commons-room.object]) (:use [anansi.commons-room.facilitator] [anansi.commons-room.occupant])) (let [ms (receptor...
# ^{:author " " ( defmethod manifest : commons - room [ _ password data ] ( s- > key->set : matrice ) ( defmethod state : commons - room [ _ r full ? ] ( defmethod restore : commons - room [ state parent ] TODO ( defn matrice ? [ _ r _ f ] ( defn agent - or - matrice ? [ _ r _ f occupant ...
2810cea69e08a4b70d3645e81066dfae82ea9cd1df7c96f1b2185743ae2ef031
mirage/irmin
pack_key_intf.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/eddf51783b4d97e14b4f79d6330a96918f880c6b/src/irmin-pack/unix/pack_key_intf.ml
ocaml
* The type of {i keys} referencing values stored in the [irmin-pack] backend. * The internal state of a key (read with {!inspect}). Invariant: keys of the form {!Indexed} always reference values that have entries in the index (as otherwise these keys could not be dereferenced). * A pointer to an ob...
* 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...
a2f765e84e8c4d5344fec897385b2ffc92ce562909e32b790cc58fee953eee83
grayswandyr/electrod
Smv.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * electrod - a model finder for relational first - order linear temporal logic * * Copyright ( C ) 2016 - 2020 ONERA * Authors : ( ONERA ) , ( ONERA...
null
https://raw.githubusercontent.com/grayswandyr/electrod/eb0b02eafb34b6c921f99716cb5e90c946aae51b/src/Smv.mli
ocaml
* Represents SMV files and how to produce them * TODO: implement abstract file format functions
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * electrod - a model finder for relational first - order linear temporal logic * * Copyright ( C ) 2016 - 2020 ONERA * Authors : ( ONERA ) , ( ONERA...
770a496922c3c39106375fcdca8ccbb03ee92fd072291a4864de7a079d2606a5
aumouvantsillage/Virgule-CPU-Racket
decoder.rkt
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 /. #lang racket (require "../assembler.rkt" "../opcodes.rkt") (provide (all-defined-out)) (define test-cases rd funct3 rs1 rs...
null
https://raw.githubusercontent.com/aumouvantsillage/Virgule-CPU-Racket/db80407d8b38de9312f80ed71a7fbc6b4f71053b/src/tests/decoder.rkt
racket
Test rd, rs1, rs2 for R-type instruction. Test functions for all instruction types.
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 /. #lang racket (require "../assembler.rkt" "../opcodes.rkt") (provide (all-defined-out)) (define test-cases rd funct3 rs1 rs...
76a455642711ab18bf5369ad417fa0f795e1e399e8cfb66500326b824b62821a
thierry-martinez/stdcompat
sys.mli
val argv : string array val executable_name : string external file_exists : string -> bool = "sys_file_exists" external remove : string -> unit = "sys_remove" external rename : string -> string -> unit = "sys_rename" external getenv : string -> string = "sys_getenv" external command : string -> int = "sys_system_comman...
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.07/sys.mli
ocaml
val argv : string array val executable_name : string external file_exists : string -> bool = "sys_file_exists" external remove : string -> unit = "sys_remove" external rename : string -> string -> unit = "sys_rename" external getenv : string -> string = "sys_getenv" external command : string -> int = "sys_system_comman...
445a25c5c15ce01ff4b51f847d27e4cc099148223d6dbd08068d72953ff9526a
jafingerhut/thalia
clojure.tools.cli-0.2.3.clj
{"namespaces" {"clojure.tools.cli" [{"source" "(defn cli\n [args & specs]\n (let [specs (map generate-spec specs)]\n (let [[options extra-args] (apply-specs specs args)\n banner (with-out-str (banner-for specs))]\n [options extra-args banner])))", "tag" nil, "ns" "clojure.tools.cli", ...
null
https://raw.githubusercontent.com/jafingerhut/thalia/20c98eec8168ff72c5b3965cc048b817d34a4583/doc/clojuredocs/clojure.tools.cli-0.2.3.clj
clojure
{"namespaces" {"clojure.tools.cli" [{"source" "(defn cli\n [args & specs]\n (let [specs (map generate-spec specs)]\n (let [[options extra-args] (apply-specs specs args)\n banner (with-out-str (banner-for specs))]\n [options extra-args banner])))", "tag" nil, "ns" "clojure.tools.cli", ...
a49fc171b38f0711e857c9bdda315121a4bec34b0b99cd18de637e920c9b75c3
nomeata/gipeda
RevReport.hs
# LANGUAGE DeriveGeneric # module RevReport where import Data.Functor import qualified Data.Map as M import qualified Data.ByteString.Lazy as BS import Data.Aeson import Development.Shake.Command import Text.Read import ReportTypes import ReadResult import qualified BenchmarkSettings as S git args = cmd (words "git...
null
https://raw.githubusercontent.com/nomeata/gipeda/f3c8c52df24361c1a09bdfbdaefcd63b54fef0d8/src/RevReport.hs
haskell
# LANGUAGE DeriveGeneric # module RevReport where import Data.Functor import qualified Data.Map as M import qualified Data.ByteString.Lazy as BS import Data.Aeson import Development.Shake.Command import Text.Read import ReportTypes import ReadResult import qualified BenchmarkSettings as S git args = cmd (words "git...
e00a18cb6dff1dc8f4bec1d9ddcf243ed7406b98a1fcc1da32960ede306be045
Gbury/ocaml-memgraph
example.ml
let int = 13 let float = 42. let int_list = [1;2;3] let int_array = [| 1 ; 2 ; 3 |] let float_array = [| 1.0; 2.0; 3.0 |] let rec cycle = 1 :: 2 :: 3 :: cycle let () = Memgraph.Repr.(context (fun ctx -> Memgraph.Dot.print_list Format.std_formatter [ {|let rec l = 1 :: 2 :: 3 :: l|}, ctx.mk cycle; ...
null
https://raw.githubusercontent.com/Gbury/ocaml-memgraph/6b378344d56bc44188cb4fbe03c5a50ba471b866/examples/demo/example.ml
ocaml
let int = 13 let float = 42. let int_list = [1;2;3] let int_array = [| 1 ; 2 ; 3 |] let float_array = [| 1.0; 2.0; 3.0 |] let rec cycle = 1 :: 2 :: 3 :: cycle let () = Memgraph.Repr.(context (fun ctx -> Memgraph.Dot.print_list Format.std_formatter [ {|let rec l = 1 :: 2 :: 3 :: l|}, ctx.mk cycle; ...
89f33618bbfdf3861b94b8aa7214e82d74f10c2cfadce9b28855906c3b3dba29
aufishgrp/cowpaths
cwpths_routes.erl
-module(cwpths_config). -export([parse/1]).
null
https://raw.githubusercontent.com/aufishgrp/cowpaths/04d2639eccd66183dccd45a457a4b69dc18acb56/src/cwpths_routes.erl
erlang
-module(cwpths_config). -export([parse/1]).
5ebf2bc0b9aecc6551ba217d536d93658110aefc681b6a8861dce9d56fa8e212
victornicolet/parsynt
Rosette.ml
open Base open Fmt open Lang.Typ open Lang.Term open Lang.TermPp open Utils open Lwt_process module S = Sexplib type rosette_symbolic = RInt | RBool | RReal let pp_rosette_symbolic (frmt : Formatter.t) (rs : rosette_symbolic) : unit = pf frmt "%s" (match rs with RInt -> "integer?" | RBool -> "boolean?" | RReal -> "...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/src/solve/Rosette.ml
ocaml
Prints the variable definition and returns the univerisally quantified variables. Parsing responses Just a variable Struct accessor Solver handles * Solve a list of sketch name file, output file in parallel DANGER
open Base open Fmt open Lang.Typ open Lang.Term open Lang.TermPp open Utils open Lwt_process module S = Sexplib type rosette_symbolic = RInt | RBool | RReal let pp_rosette_symbolic (frmt : Formatter.t) (rs : rosette_symbolic) : unit = pf frmt "%s" (match rs with RInt -> "integer?" | RBool -> "boolean?" | RReal -> "...
d8ded83ebc9e54ec51fffb5fc79c1eb964fc5df3a5e82f09a1ab6b229570630f
cyga/real-world-haskell
PutJSON.hs
file : ch05 / PutJSON.hs module PutJSON where import Data.List (intercalate) import SimpleJSON renderJValue :: JValue -> String renderJValue (JString s) = show s renderJValue (JNumber n) = show n renderJValue (JBool True) = "true" renderJValue (JBool False) = "false" renderJValue JNull = "null" rende...
null
https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch05/PutJSON.hs
haskell
file : ch05 / PutJSON.hs module PutJSON where import Data.List (intercalate) import SimpleJSON renderJValue :: JValue -> String renderJValue (JString s) = show s renderJValue (JNumber n) = show n renderJValue (JBool True) = "true" renderJValue (JBool False) = "false" renderJValue JNull = "null" rende...
83f4551c2c3202cc2ddfe423a6258adafa72dc4df3cd7cad7cea78f7287ec525
input-output-hk/cardano-ledger
Rewards.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeApplications # module Cardano.Ledger.Rewards ( RewardType (..), Reward (..), ) where import Cardano.Le...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/libs/cardano-ledger-core/src/Cardano/Ledger/Rewards.hs
haskell
# LANGUAGE RankNTypes # | The staking rewards in Cardano are all either: * member rewards - rewards given to a registered stake credential which has delegated to a stake pool, or * leader rewards - rewards given to a registered stake pool (in particular, given to the stake credential in the stake pool registrati...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE TypeApplications # module Cardano.Ledger.Rewards ( RewardType (..), Reward (..), ) where import Cardano.Ledger.BaseTypes (invalidKey) ...
731da26651e10827d8c8d389a780007540898f610d24b625763b111562310464
henryw374/tempo
tempo.cljs
(ns com.widdindustries.tempo "" (:refer-clojure :exclude [min max > < >= <= >> <<]) (:require [cljc.java-time.local-date] [cljc.java-time.local-date-time] [cljc.java-time.local-time] [cljc.java-time.clock] [cljc.java-time.instant] [cljc.java-time.zone-id] [cljc.java-time.zoned-date-time] [cljc.java-...
null
https://raw.githubusercontent.com/henryw374/tempo/7e22bb5a2984d56b5dabf9a6535425792e4f3383/gen-out/cljc.java-time-dep/src/com/widdindustries/tempo.cljs
clojure
(ns com.widdindustries.tempo "" (:refer-clojure :exclude [min max > < >= <= >> <<]) (:require [cljc.java-time.local-date] [cljc.java-time.local-date-time] [cljc.java-time.local-time] [cljc.java-time.clock] [cljc.java-time.instant] [cljc.java-time.zone-id] [cljc.java-time.zoned-date-time] [cljc.java-...
4f965d95f26731b9785d9a7c3a8a8e97e234977e706876b7246d5bafcca92b00
ushitora-anqou/aqaml
parser.ml
module L = Lexer module T = Type type ast = | UnitValue | IntValue of int | CharValue of char | StringValue of string * string | TupleValue of ast list | ArrayValue of ast list | RecordValue of string option * (string * ast) list | RecordValueWith of string option * ast * (string * ast) list * st...
null
https://raw.githubusercontent.com/ushitora-anqou/aqaml/d52af7538668bca6aacd40227e4c44b448ae83de/parser.ml
ocaml
recursive?, funcname, args, function body, free variables for analysis TODO: module Ptn TODO: much faster algorithm? not function call define constants define function TODO: skip mutable TODO: correct? TODO: not correct. definitions and expressions should be completely separated. module end
module L = Lexer module T = Type type ast = | UnitValue | IntValue of int | CharValue of char | StringValue of string * string | TupleValue of ast list | ArrayValue of ast list | RecordValue of string option * (string * ast) list | RecordValueWith of string option * ast * (string * ast) list * st...
b8c79da20cc96e7518250bced636bf2e742aa60ec395640ac5dca7070734a7c7
Chris00/ocaml-dropbox
files_put_stream.ml
open Lwt module D = Dropbox_lwt_unix let upload t fn = Lwt_unix.(openfile fn [O_RDONLY] 0) >>= fun fd -> Lwt_unix.stat fn >>= fun u -> let size = u.Lwt_unix.st_size in let read () = let buffer = Bytes.create 1024 in Lwt_unix.read fd buffer 0 1024 >>= fun len -> match len with | 1024 -> return(S...
null
https://raw.githubusercontent.com/Chris00/ocaml-dropbox/36b222269e6bc7e5486cbb69738841d87a1212fb/tests/files_put_stream.ml
ocaml
open Lwt module D = Dropbox_lwt_unix let upload t fn = Lwt_unix.(openfile fn [O_RDONLY] 0) >>= fun fd -> Lwt_unix.stat fn >>= fun u -> let size = u.Lwt_unix.st_size in let read () = let buffer = Bytes.create 1024 in Lwt_unix.read fd buffer 0 1024 >>= fun len -> match len with | 1024 -> return(S...
52986a39938fdd711a4d8afd96fe3bac74f73c03341cce39c657650c65e86a2a
futurice/clojure-workshop
04_vectors.clj
(ns koans.04-vectors (:require [koan-engine.core :refer :all])) (meditations "You can use vectors in clojure as array-like structures" (= __ (count [42])) "You can create a vector from a list" (= __ (vec '(1))) "Or from some elements" (= __ (vector nil nil)) "But you can populate it with any number of elem...
null
https://raw.githubusercontent.com/futurice/clojure-workshop/c1e64a03e1115289898838d4f19f727bc51e2b34/materials/section-1/src/koans/04_vectors.clj
clojure
(ns koans.04-vectors (:require [koan-engine.core :refer :all])) (meditations "You can use vectors in clojure as array-like structures" (= __ (count [42])) "You can create a vector from a list" (= __ (vec '(1))) "Or from some elements" (= __ (vector nil nil)) "But you can populate it with any number of elem...
91ed4419e284d52105af306414a3311bfe87e86f44b005db71a3eeddfe822349
smallmelon/sdzmmo
mod_team.erl
%%%------------------------------------ %%% @Module : mod_team @Author : zzm %%% @Email : @Created : 2010.07.06 @Description : 组队模块 %%%------------------------------------ -module(mod_team). -behaviour(gen_server). -export([start/4 %% 开启组队服务 ,send_to_member/2 %% 广播给队员 ,get_dunge...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/mod/mod_team.erl
erlang
------------------------------------ @Module : mod_team @Email : ------------------------------------ 开启组队服务 广播给队员 返回副本id 创建副本 开启组队进程 广播给队员 返回副本进程id 创建副本服务 不是队长,无权操作 检查申请进队的人是否还在线 更新新队员mod_player中Status的pid_team,同步ets_online的pid_team 退出队伍 检查是否能退出队伍 告诉场景 通知队员队伍队长退出了 告诉场景 你不是队长 你不是队长 检查队伍人数 检...
@Author : zzm @Created : 2010.07.06 @Description : 组队模块 -module(mod_team). -behaviour(gen_server). ]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -include("common.hrl"). -include("record.hrl"). -define(TEAM_MEMBER_MAX, 5). start(Uid, Pid, Nick, TeamName) -> ...
1f9113b7d95aeba194f594bfa5b517a6d963b59618a62c6cefce90bf80c1f9a9
scalaris-team/scalaris
db_backend_beh.erl
2013 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distrib...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/db_backend_beh.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2013 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(db_backend_beh). -author(''). -vsn('$Id$'). -type db() :: any(). -type entry() :: {key(), term()} ...
31c4ac600178ed211e21c3aa3034d323c93d84d0c83da1dba7806018708eea2b
privet-kitty/cl-competitive
tree-path.lisp
(defpackage :cp/test/tree-path (:use :cl :fiveam :cp/tree-path) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/tree-path) (in-suite base-suite) (test tree-render-path (let ((graph #((1 2) (0 3) (0 4 5) (1) (2 6 7) (2) (4) (4)))) (is (equal '(0 1 3) (tree-render-path graph 0 3))) (is (equ...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/test/tree-path.lisp
lisp
(defpackage :cp/test/tree-path (:use :cl :fiveam :cp/tree-path) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/tree-path) (in-suite base-suite) (test tree-render-path (let ((graph #((1 2) (0 3) (0 4 5) (1) (2 6 7) (2) (4) (4)))) (is (equal '(0 1 3) (tree-render-path graph 0 3))) (is (equ...
f0590074e77d28164dde9c77459b4cfed63a480f6aab26a2db073ecd3c027ef9
qfpl/reflex-tutorial
SVG.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GADTs #-} module Util.SVG ( svgDynAttr , svgAttr , svg ) where import Data.Text (Text) import Data.Map (Map) import Reflex.Dom.Core svgDynAttr :: MonadWidget t m => Text -> Dynamic t (Map Text Text) -> m a -> m a sv...
null
https://raw.githubusercontent.com/qfpl/reflex-tutorial/07c1e6fab387cbeedd031630ba6a5cd946cc612e/code/grid/src/Util/SVG.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
module Util.SVG ( svgDynAttr , svgAttr , svg ) where import Data.Text (Text) import Data.Map (Map) import Reflex.Dom.Core svgDynAttr :: MonadWidget t m => Text -> Dynamic t (Map Text Text) -> m a -> m a svgDynAttr n a r = do (_, x) <- elDynAttrNS' (Just "") n a...
6276403d75168ca23fc3d0e9e243fca71229d1ec6923d8b987e7e2886c780e5d
Clojure2D/clojure2d-examples
camera.clj
(ns rt4.in-one-weekend.ch12a.camera (:require [rt4.in-one-weekend.ch12a.ray :as ray] [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol CameraProto (get-ray [camera s t])) (def...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch12a/camera.clj
clojure
(ns rt4.in-one-weekend.ch12a.camera (:require [rt4.in-one-weekend.ch12a.ray :as ray] [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol CameraProto (get-ray [camera s t])) (def...
b13e48549d9d130895cef6798632b9b21d09c8f479c001c6efb36d391d010c88
vbmithr/ocaml-bip39
test.ml
open Alcotest type vector = { entropy : Hex.t ; words : string ; seed : Hex.t ; } let vectors = [ { entropy = `Hex "00000000000000000000000000000000" ; words = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" ; seed = `Hex "c55257c360c07c72029aebc1b53c05e...
null
https://raw.githubusercontent.com/vbmithr/ocaml-bip39/5a78a23dbe24b35e6b12607ad346398263bf1b94/test/test.ml
ocaml
open Alcotest type vector = { entropy : Hex.t ; words : string ; seed : Hex.t ; } let vectors = [ { entropy = `Hex "00000000000000000000000000000000" ; words = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" ; seed = `Hex "c55257c360c07c72029aebc1b53c05e...
a71c0acef995ca5b715c192ca9353448bf5d3f4220f1a49979d032d40d725bc5
nkaretnikov/OOHaskell
Shape.hs
( C ) 2004 - 2007 , Oleg Kiselyov & 's overlooked object system module Shape where -- Data of shapes data ShapeData = ShapeData { valX :: Int , valY :: Int } -- Constructor for shapes shape x y = ShapeData { valX = x , valY = y } -- The shape interface class S...
null
https://raw.githubusercontent.com/nkaretnikov/OOHaskell/ddf42cfa62f8bd27643ff6db136dec6c14466232/repository/shapes/Haskell/Shapes5/Shape.hs
haskell
Data of shapes Constructor for shapes The shape interface
( C ) 2004 - 2007 , Oleg Kiselyov & 's overlooked object system module Shape where data ShapeData = ShapeData { valX :: Int , valY :: Int } shape x y = ShapeData { valX = x , valY = y } class Shape s where readShape :: (ShapeData -> t) -> s -> t w...
9c52fbc9a8d70bbc3b47853b705e14c6c9aaf04e6e6a24d539340a573bef7ee6
ujamjar/hardcaml-zinc
arbiter.mli
open Hardcaml open Signal type 'a prefix = ('a -> 'a -> 'a) -> 'a list -> 'a list module Make (B : Comb.S) : sig val arbiter : prefix:B.t prefix -> unmasked_req:B.t -> masked_req:B.t -> B.t * B.t end val arbiter : prefix:t prefix -> enable:t -> req:t -> t module Test : sig val test : prefix:t prefix -> bits:int...
null
https://raw.githubusercontent.com/ujamjar/hardcaml-zinc/ad9360a66ddd239550623e3a92fe5328934706fa/archived/arbiter.mli
ocaml
open Hardcaml open Signal type 'a prefix = ('a -> 'a -> 'a) -> 'a list -> 'a list module Make (B : Comb.S) : sig val arbiter : prefix:B.t prefix -> unmasked_req:B.t -> masked_req:B.t -> B.t * B.t end val arbiter : prefix:t prefix -> enable:t -> req:t -> t module Test : sig val test : prefix:t prefix -> bits:int...
4988bcb71bfa4b8a1ade4bd4a2085d99cc95e54f08f0dd792f1d1166bd3ddd48
babashka/babashka
ordered.clj
(ns babashka.impl.ordered {:no-doc true} (:require [flatland.ordered.map :as omap] [sci.core :as sci])) (def omap-ns (sci/create-ns 'flatland.ordered.map nil)) (def ordered-map-ns {'ordered-map (sci/copy-var omap/ordered-map omap-ns)})
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/feature-yaml/babashka/impl/ordered.clj
clojure
(ns babashka.impl.ordered {:no-doc true} (:require [flatland.ordered.map :as omap] [sci.core :as sci])) (def omap-ns (sci/create-ns 'flatland.ordered.map nil)) (def ordered-map-ns {'ordered-map (sci/copy-var omap/ordered-map omap-ns)})
878a44bed0e616b1f08e2784c63fe03ba06044402d9c5d470b0cbc30266249a5
realworldocaml/book
column.mli
include Column_intf.Column
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/textutils/ascii_table/kernel/column.mli
ocaml
include Column_intf.Column
8b55ba784a68f25dd97696d9ca51bd76b45538fef257405ed25d9f00c188f9d1
robrix/sequoia
Signal.hs
# LANGUAGE TypeFamilies # module Sequoia.Signal ( -- * Signals _Sig , Sig(..) , mapKSig , mapVSig -- * Conversions , solSrc , solSnk , srcSig , composeSrcSig , snkSig , composeSigSnk , solSig , composeSrcSnk ) where import Control.Category ((<<<)) import qualified Control.Category as Cat import ...
null
https://raw.githubusercontent.com/robrix/sequoia/e4fae1100fa977a656f2fc654762f23d4448ad76/src/Sequoia/Signal.hs
haskell
* Signals * Conversions Signals Conversions ------------------ ------------------ ------------------ ------------------ ------------------ o ==> ---> Src │ │ i │ │ i ↓ ↓ Snk ---> Sig o
# LANGUAGE TypeFamilies # module Sequoia.Signal _Sig , Sig(..) , mapKSig , mapVSig , solSrc , solSnk , srcSig , composeSrcSig , snkSig , composeSigSnk , solSig , composeSrcSnk ) where import Control.Category ((<<<)) import qualified Control.Category as Cat import Control.Monad (ap) import ...
e9e9d5f9bd54870b141c6c67d3312af90debf8ebd838b32362b22b5353298684
glebec/haskell-programming-allen-moronuki
16.7-exercises.hs
module Exercises where 1 . a = ( +1 ) $ read " [ 1 ] " : : [ Int ] a = fmap (+1) $ read "[1]" :: [Int] 2 . b = ( + + " lol " ) ( Just [ " Hi , " , " Hello " ] ) b = (fmap . fmap) (++ "lol") (Just ["Hi,", "Hello"]) 3 . c = ( * 2 ) ( \x - > x - 2 ) c = fmap (*2) (\x -> x - 2) 4 . d = ( ( return ' 1 ' + + ) . ...
null
https://raw.githubusercontent.com/glebec/haskell-programming-allen-moronuki/99bd232f523e426d18a5e096f1cf771228c55f52/16-functor/16.7-exercises.hs
haskell
e = let ioi = readIO "1" :: IO Integer changed = read ("123"++) show ioi
module Exercises where 1 . a = ( +1 ) $ read " [ 1 ] " : : [ Int ] a = fmap (+1) $ read "[1]" :: [Int] 2 . b = ( + + " lol " ) ( Just [ " Hi , " , " Hello " ] ) b = (fmap . fmap) (++ "lol") (Just ["Hi,", "Hello"]) 3 . c = ( * 2 ) ( \x - > x - 2 ) c = fmap (*2) (\x -> x - 2) 4 . d = ( ( return ' 1 ' + + ) . ...
3f270c98aa07a6b72b42f649dddb1af1f0f09fcbab9bce356a821ae03250e44f
maralorn/haskell-taskwarrior
Mask.hs
-- | The Mask module models the state a recurring parent saves about its child tasks. module Taskwarrior.Mask ( Mask (..), MaskState, ) where import qualified Data.Aeson as Aeson import qualified Data.Aeson.Types as Aeson.Types import qualified Data.Text as Text | Represents the state of a child in a ' Status ....
null
https://raw.githubusercontent.com/maralorn/haskell-taskwarrior/dfd5eea3148b5ef408e5ccd63980f3d49d481bc9/src/Taskwarrior/Mask.hs
haskell
| The Mask module models the state a recurring parent saves about its child tasks. | The mask is a newtype to provide 'Data.Aeson' instances from and to a JSON string.
module Taskwarrior.Mask ( Mask (..), MaskState, ) where import qualified Data.Aeson as Aeson import qualified Data.Aeson.Types as Aeson.Types import qualified Data.Text as Text | Represents the state of a child in a ' Status . Recurring ' ' Task . Task ' . data MaskState = Pending | Completed | Deleted | Waitin...
920afe7d8ae32b2f8a34bb6b10c86dc4e816040796116c6e594eb7b9a64e30fc
agda/agda
GUILib.hs
module GUILib where class Widget w where setVisible :: Widget w => w -> Bool -> IO () setVisible w _ = return () data Window = Window instance Widget Window where newWindow :: IO Window newWindow = return Window
null
https://raw.githubusercontent.com/agda/agda/f50c14d3a4e92ed695783e26dbe11ad1ad7b73f7/doc/user-manual/GUILib.hs
haskell
module GUILib where class Widget w where setVisible :: Widget w => w -> Bool -> IO () setVisible w _ = return () data Window = Window instance Widget Window where newWindow :: IO Window newWindow = return Window
22eb92ad7fc8f42ae6310e519fe1722c9e3be628620bcb9e3d0ec54a2fda329d
chenyukang/eopl
31.scm
(load-relative "../libs/init.scm") extend letrec - lang to multi argments similar as exercise 21 (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol) (number (digit (arbno d...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch3/31.scm
scheme
sllgen boilerplate ;;;;;;;;;;;;;;;; extractors: expval->num : ExpVal -> Int expval->bool : ExpVal -> Bool expval->proc : ExpVal -> Proc procedures ;;;;;;;;;;;;;;;; proc? : SchemeVal -> Bool procedure : Var * Exp * Env -> Proc environment constructors and observers ;;;;;;;;;;;;;;;; new testcase (num-val 6)
(load-relative "../libs/init.scm") extend letrec - lang to multi argments similar as exercise 21 (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol) (number (digit (arbno d...
faa13a49135b7fb633925b307d1052c5c827b82cfd429fd434e70e320d5db1cf
BinaryAnalysisPlatform/bap-plugins
solver.ml
open Core_kernel open Bap.Std open Spec open Format open Utilities module SM = Monad.State open SM.Monad_infix class type ['a] vis = object method arg : arg term -> (unit,'a) SM.t method phi : phi term -> (unit,'a) SM.t method def : def term -> (unit,'a) SM.t method jmp : jmp term -> (unit,'a) SM.t end let u...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/saluki/solver.ml
ocaml
open Core_kernel open Bap.Std open Spec open Format open Utilities module SM = Monad.State open SM.Monad_infix class type ['a] vis = object method arg : arg term -> (unit,'a) SM.t method phi : phi term -> (unit,'a) SM.t method def : def term -> (unit,'a) SM.t method jmp : jmp term -> (unit,'a) SM.t end let u...
6969df196404064500b2882cddffc39bc6cd19baeb6dea9cf1d1a59a68c87491
alex-gutev/tridash
expressions.lisp
expressions.lisp ;;;; ;;;; Tridash Programming Language. Copyright ( C ) 2019 - 2020 ;;;; ;;;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;;; (a...
null
https://raw.githubusercontent.com/alex-gutev/tridash/48853919257f512893b5d041afe5d609c48ecd0a/src/backends/wasm/expressions.lisp
lisp
Tridash Programming Language. 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 PURPO...
expressions.lisp Copyright ( C ) 2019 - 2020 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License WebAssembly (in-package :tridash.backend.wasm) (de...
a853186ce0571004b7b7cfea8cf92f4427ed036cda944345b875beea1eab5f44
thheller/shadow-cljs
websocket.cljs
(ns shadow.cljs.devtools.client.websocket (:require [shadow.cljs.devtools.client.env :as env] [shadow.cljs.devtools.client.shared :as cljs-shared] [shadow.remote.runtime.cljs.js-builtins] )) FIXME : protocolize the 3 fns (defn start [runtime] (let [ws-url (env/get-ws-relay-url) socket (j...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/cljs/devtools/client/websocket.cljs
clojure
followed by close chrome sometimes gets stuck websockets when waking up from sleep these sockets don't receive messages or send them at which point we no longer care about close messages as a new one will be active and we don't want to a late onclose message to disconnect that one. firefox also has the stuck sock...
(ns shadow.cljs.devtools.client.websocket (:require [shadow.cljs.devtools.client.env :as env] [shadow.cljs.devtools.client.shared :as cljs-shared] [shadow.remote.runtime.cljs.js-builtins] )) FIXME : protocolize the 3 fns (defn start [runtime] (let [ws-url (env/get-ws-relay-url) socket (j...
3eddedc9f3668c7acac4d09f342b4abbfed0562da628fe506fe7696380da0669
gildor478/ounit
oUnitThreads.ml
(**************************************************************************) The OUnit library (* *) Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright...
null
https://raw.githubusercontent.com/gildor478/ounit/faf4936b17507406c7592186dcaa3f25c6fc138a/src/lib/ounit2/threads/oUnitThreads.ml
ocaml
************************************************************************ Permission is hereby grante...
The OUnit library Copyright ( C ) 2002 - 2008 Maas - Maarten Zeeman . Copyright ( C ) 2010 OCamlCore SARL Copyright ( C ) 2013 The package OUnit is cop...
031294d36f21e930a069911b8e10fdb0f4b5dd5723427e19df8f1764548bf660
vert-x/mod-lang-clojure
web-socket.clj
Copyright 2013 the original author or authors . ;; 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, sof...
null
https://raw.githubusercontent.com/vert-x/mod-lang-clojure/dcf713460b8f46c08d0db6e7bf8537f1dd91f297/examples/websockets/web-socket.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 pe...
Copyright 2013 the original author or authors . distributed under the License is distributed on an " AS IS " BASIS , (ns example.webscokets.web-socket (:require [vertx.http :as http] [vertx.http.websocket :as ws] [vertx.stream :as stream])) (-> (http/server) (http/on-request (fn...
049d54965d1807ffca2f0c127689c5ecfc65f6c0d55aee5c3581c0ee9f5c39e0
Ericson2314/lighthouse
RFC822Headers.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : Network.CGI.RFC822Headers Copyright : ( c ) 2001,2002 ( c ) 2005 - 2006 -- License : BSD-style -- -- Maintainer : -- Stability : experimental -- Portability : non-portab...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/cgi/Network/CGI/RFC822Headers.hs
haskell
#hide --------------------------------------------------------------------------- | Module : Network.CGI.RFC822Headers License : BSD-style Maintainer : Stability : experimental Portability : non-portable Parsing of RFC822-style headers (name, value pairs) Partly based on code from WASHMail....
Copyright : ( c ) 2001,2002 ( c ) 2005 - 2006 module Network.CGI.RFC822Headers ( Header, pHeader, pHeaders, parseHeaders, ContentType(..), ...
2cf95940349ccf3b9847be5327cc17ab1135c88ca4d28c3b317d46a7b83a34bc
fujita-y/ypsilon
control.scm
#!core Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . ;;; See LICENSE file for terms and conditions of use. (library (core control) (export when unless do case-lambda) (import (core intrinsics) (only (core primitives) do define-syntax) (only (core syntax-case) ...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/68ffd734d84a1a2f5442482db6c9497ab1a8314f/stdlib/core/control.scm
scheme
See LICENSE file for terms and conditions of use. [end]
#!core Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . (library (core control) (export when unless do case-lambda) (import (core intrinsics) (only (core primitives) do define-syntax) (only (core syntax-case) syntax-case syntax with-syntax datum->syntax)) (def...
8693b86a39e82d8df9308a631ad8e3e0b671ecb844188c5a8b52dab90dbbdca5
themetaschemer/malt
I-adam.rkt
#lang racket ;; Extended operators are non-dualized (require "../base-no-duals.rkt") (require "D-gradient-descent.ss") (require "E-gd-common.ss") (define adam-i (λ (p) (let ((zeroed (zeroes p))) (list p zeroed zeroed)))) (define adam-d (λ (pa) (ref pa 0))) (define adam-u (λ (pa g) (let ((r (...
null
https://raw.githubusercontent.com/themetaschemer/malt/78a04063a5a343f5cf4332e84da0e914cdb4d347/malted/I-adam.rkt
racket
Extended operators are non-dualized
#lang racket (require "../base-no-duals.rkt") (require "D-gradient-descent.ss") (require "E-gd-common.ss") (define adam-i (λ (p) (let ((zeroed (zeroes p))) (list p zeroed zeroed)))) (define adam-d (λ (pa) (ref pa 0))) (define adam-u (λ (pa g) (let ((r (smooth beta (ref pa 2) (sqr g)))) ...
3b82c7e2d05a11c35cb254eb9053f60a2537f2efcb306273d0c2f48a62c3e8a5
discus-lang/salt
Params.hs
module Salt.Core.Check.Term.Params where import Salt.Core.Check.Kind import Salt.Core.Check.Term.Base import Salt.Core.Check.Type.Base import qualified Salt.Data.List as List -- | Check some term function parameters. checkTermParams :: Annot a => a -> [Where a] -> Context a -> TermParams a -> IO (Ter...
null
https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/salt/Salt/Core/Check/Term/Params.hs
haskell
| Check some term function parameters. Check for duplicate binder names. Check the parameter kinds. Check for duplicate binder names. Check the parameter types. | Check a list of term function parameters, where type variables bound earlier in the list are in scope when checking types annotating term variabl...
module Salt.Core.Check.Term.Params where import Salt.Core.Check.Kind import Salt.Core.Check.Term.Base import Salt.Core.Check.Type.Base import qualified Salt.Data.List as List checkTermParams :: Annot a => a -> [Where a] -> Context a -> TermParams a -> IO (TermParams a) checkTermParams _a wh ctx (MPA...
49f22c6c841645873643e2381077c2cd9166efd320f88a674d7367a65986aaa5
reasonml/reason
merlin_recovery.mli
module Make (Parser : MenhirLib.IncrementalEngine.EVERYTHING) (Recovery : sig val default_value : Location.t -> 'a Parser.symbol -> 'a type action = | Abort | R of int | S : 'a Parser.symbol -> action | Sub of action list type decision = | Noth...
null
https://raw.githubusercontent.com/reasonml/reason/daa11255cb4716ce1c370925251021bd6e3bd974/src/reason-parser/merlin_recovery.mli
ocaml
module Make (Parser : MenhirLib.IncrementalEngine.EVERYTHING) (Recovery : sig val default_value : Location.t -> 'a Parser.symbol -> 'a type action = | Abort | R of int | S : 'a Parser.symbol -> action | Sub of action list type decision = | Noth...
607ee410ffef1b78e685c4904a17bb7d6d08b496cae8da9ec37191c6fa59acb5
lispgames/glkit
shaders.lisp
(in-package :kit.gl.shader) ;; Classes (defclass shader-dictionary-definition () ((name :initarg :name) (path :initform *default-pathname-defaults* :initarg :path) (shaders :initarg :shaders) (programs :initarg :programs))) (defclass program-source () ((name :initarg :name) (shaders :initarg :shade...
null
https://raw.githubusercontent.com/lispgames/glkit/0d8e7c5fed4231f2177afcf0f3ff66f196ed6a46/src/shader-dict/shaders.lisp
lisp
Classes Functions
(in-package :kit.gl.shader) (defclass shader-dictionary-definition () ((name :initarg :name) (path :initform *default-pathname-defaults* :initarg :path) (shaders :initarg :shaders) (programs :initarg :programs))) (defclass program-source () ((name :initarg :name) (shaders :initarg :shaders) (verte...
c71606bb33f7619ca1bed0fd5e67331ae9689f3b74f8ee65d70db5a46e267202
Dasudian/DSDIN
dsdo_utils.erl
-module(dsdo_utils). -export([check_ttl_fee/3, ttl_delta/2, ttl_expiry/2, ttl_fee/2]). -define(ORACLE_TTL_FEE, 0.001). TODO : This should also include size of the thing that has a TTL -spec check_ttl_fee(dsdc_blocks:height(), dsdo_oracles:ttl(), non_neg_integer()) -> ...
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdoracle/src/dsdo_utils.erl
erlang
-module(dsdo_utils). -export([check_ttl_fee/3, ttl_delta/2, ttl_expiry/2, ttl_fee/2]). -define(ORACLE_TTL_FEE, 0.001). TODO : This should also include size of the thing that has a TTL -spec check_ttl_fee(dsdc_blocks:height(), dsdo_oracles:ttl(), non_neg_integer()) -> ...
20cd73f0d604ca375eb49d5316ce5530bc418fc5bc1e7e8185214924d3792d3e
facebookarchive/pfff
format.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/stdlib/format.ml
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 GNU Library General Public License , with type size;; external size_of_int :...
f272ed2add91dc9d9be52222b3ec8a10807806d579bec3fb142a6002cc1f3acc
bondy-io/bondy
bondy_bridge_relay_client.erl
%% ============================================================================= bondy_bridge_relay_client.erl - %% Copyright ( c ) 2016 - 2022 Leapsight . All rights reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the ...
null
https://raw.githubusercontent.com/bondy-io/bondy/570cea3c79714e6db0d1ce64169eb43e2c94c54d/apps/bondy/src/bondy_bridge_relay_client.erl
erlang
============================================================================= you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, ...
bondy_bridge_relay_client.erl - Copyright ( c ) 2016 - 2022 Leapsight . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , < pre><code class="mermaid " > idle -- > idle : ) | rcv(ping|pong...
4e0c3ba6accc8aa530646c60c378f882c459f20d5e17822c652c6cbea421345b
sanjoy/echoes
Graph.hs
{-# OPTIONS_GHC -Wall -Werror -i.. #-} # LANGUAGE GADTs , RankNTypes , ScopedTypeVariables # module Utils.Graph(mapConcatGraph, mapConcatGraph') where import Control.Monad import Compiler.Hoopl A mapConcat for graphs , similar in semantics to the list mapConcat . - This is specialized to Closed / Closed graphs...
null
https://raw.githubusercontent.com/sanjoy/echoes/3b60bdbd776298f6b8cc000ec45225e5c27a0fe4/src/Utils/Graph.hs
haskell
# OPTIONS_GHC -Wall -Werror -i.. #
# LANGUAGE GADTs , RankNTypes , ScopedTypeVariables # module Utils.Graph(mapConcatGraph, mapConcatGraph') where import Control.Monad import Compiler.Hoopl A mapConcat for graphs , similar in semantics to the list mapConcat . - This is specialized to Closed / Closed graphs , and might need to be - generalized...
1853daa170b45d37b005cbf3dcc99f1ee9d573ac9ba7132f100cdae74c0c4733
skanev/playground
50-tests.scm
(require rackunit rackunit/text-ui) (require r5rs/init) (load "helpers/compiler.scm") (load "../50.scm") (define (run exp) (compile-in-machine machine `(evaluate ',exp the-global-environment)) (get-register-contents machine 'val)) (define sicp-5.50-tests (test-suite "Tests for SICP exercise 5.50" (test...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/tests/50-tests.scm
scheme
Those are just some sanity checks. It is not necessary that it takes that many instructions and stack operations to run the tests, but makes sure that if I did not short-circuit something when this number changes. The numbers get way cooler when we do a lame recursive version of Fibonacci 10.
(require rackunit rackunit/text-ui) (require r5rs/init) (load "helpers/compiler.scm") (load "../50.scm") (define (run exp) (compile-in-machine machine `(evaluate ',exp the-global-environment)) (get-register-contents machine 'val)) (define sicp-5.50-tests (test-suite "Tests for SICP exercise 5.50" (test...
4572a97571b4282d711fe21e9776fd1731bb1ad734093dc01d85387285d13c32
fendor/hsimport
SymbolTest45.hs
{-# Language PatternGuards #-} module Blub ( blub , foo , bar ) where import Control.Applicative (r, t, z) import Ugah.Blub ( a , b , c ) import Data.Text (Text(A)) f :: Int -> Int f = (+ 3) r :: Int -> Int r =
null
https://raw.githubusercontent.com/fendor/hsimport/9be9918b06545cfd7282e4db08c2b88f1d8162cd/tests/inputFiles/SymbolTest45.hs
haskell
# Language PatternGuards #
module Blub ( blub , foo , bar ) where import Control.Applicative (r, t, z) import Ugah.Blub ( a , b , c ) import Data.Text (Text(A)) f :: Int -> Int f = (+ 3) r :: Int -> Int r =
79f774d37e634fc964c4d35ee30961b587e422dc569b93ff9948209e3e77c2a8
xsc/minion
project.clj
(defproject minion "0.4.2-SNAPSHOT" :description "Launcher Utilities" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/tools.logging "0.3.1"] [org.clojure/tools.cli "0.3.5"] ...
null
https://raw.githubusercontent.com/xsc/minion/ece143f5b6d60207c68fc41a26a590b180e5edb4/project.clj
clojure
(defproject minion "0.4.2-SNAPSHOT" :description "Launcher Utilities" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/tools.logging "0.3.1"] [org.clojure/tools.cli "0.3.5"] ...
03490e6f7fa0d106b948338f0f5a3f1484e2eec116b13c98226cce3c69f2bf90
cil-project/cil
logcalls.ml
(** See copyright notice at the end of this file *) (** Add printf before each function call *) open Pretty open Cil open Feature open Trace module E = Errormsg module H = Hashtbl let i = ref 0 let name = ref "" Switches let printFunctionName = ref "printf" let addProto = ref false let printf: varinfo option re...
null
https://raw.githubusercontent.com/cil-project/cil/936b04103eb573f320c6badf280e8bb17f6e7b26/src/ext/logcalls/logcalls.ml
ocaml
* See copyright notice at the end of this file * Add printf before each function call Watch for a declaration for our printer one ; one ; one ; do the body Now add the entry instruction (* debugging 'anagram', it's really nice to be able to see the strings inside fat pointers, even if it's a bit of a ...
open Pretty open Cil open Feature open Trace module E = Errormsg module H = Hashtbl let i = ref 0 let name = ref "" Switches let printFunctionName = ref "printf" let addProto = ref false let printf: varinfo option ref = ref None let makePrintfFunction () : varinfo = match !printf with Some v -> v ...
1373e3fe22a3b870880e790e412c4813cbfc20b08bd1ddff7429ed711570a993
facebookarchive/pfff
version_control.ml
* * Copyright ( C ) 2009 * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on link...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/h_version-control/version_control.ml
ocaml
* * Copyright ( C ) 2009 * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on link...
222dcd77c759d50c866d4bf899d683d96ca941b1456fdef63d7ceddb4ba2e104
elastic/es2unix
cluster.clj
(ns es.data.cluster (:refer-clojure :exclude [count]) (:require [es.data.replica :as replica] [es.data.nodes :as nodes] [es.format.uri :as uri] [es.util :as util])) (defn health ([http] (http "/_cluster/health")) ([http indices] (let [healths (http "/_cluster/healt...
null
https://raw.githubusercontent.com/elastic/es2unix/87cd8d17faa07f964ac85505b744b6a4dfe813d4/src/es/data/cluster.clj
clojure
(ns es.data.cluster (:refer-clojure :exclude [count]) (:require [es.data.replica :as replica] [es.data.nodes :as nodes] [es.format.uri :as uri] [es.util :as util])) (defn health ([http] (http "/_cluster/health")) ([http indices] (let [healths (http "/_cluster/healt...
be12d97df42ed865540b2a47cfa3ebca2b031c5bfe11a9fe46b595ec4a0c09d9
transient-haskell/transient-stack
puzzle.hs
-- module Main where import Transient.Base import Transient.Indeterminism import Control.Monad.IO.Class import Control.Monad (guard) main= keep' $ freeThreads $ threads 4 $ do ns <- collect 0 $ puzzle 108457 562041 liftIO $ print $ length ns puzzle n1 n2= do a <- choose [n1 `div` ...
null
https://raw.githubusercontent.com/transient-haskell/transient-stack/dde6f6613a946d57bb70879a5c0e7e5a73a91dbe/transient/tests/puzzle.hs
haskell
module Main where import Transient.Base import Transient.Indeterminism import Control.Monad.IO.Class import Control.Monad (guard) main= keep' $ freeThreads $ threads 4 $ do ns <- collect 0 $ puzzle 108457 562041 liftIO $ print $ length ns puzzle n1 n2= do a <- choose [n1 `div` 10000...
148d2708971b0724e185c44b9d25891e482864cb6ee41e91be34b10a2dc2816b
binsec/haunted
policy_type.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/dse/policy_type.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
5120a65edc7963471277434483a1d8b0eb920700e9241e98937c42445b727d83
ryanpbrewster/haskell
parsec_example_3.hs
-- parsec_example_3.hs {- - General arithmetic parser with parens -} import Text.ParserCombinators.Parsec import Text.ParserCombinators.Parsec.Expr import Text.ParserCombinators.Parsec.Language import qualified Text.ParserCombinators.Parsec.Token as Token import Control.Monad data Expr = Const Integer | ...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/parsec/parsec_example_3.hs
haskell
parsec_example_3.hs - General arithmetic parser with parens
import Text.ParserCombinators.Parsec import Text.ParserCombinators.Parsec.Expr import Text.ParserCombinators.Parsec.Language import qualified Text.ParserCombinators.Parsec.Token as Token import Control.Monad data Expr = Const Integer | Plus Expr Expr | Minus Expr Expr | Times Expr Expr ...
a4c96d9d3191799db1a000607cd764ae21c9464bfde85fc7dfcde3209bda00ef
samply/blaze
core_test.clj
(ns blaze.coll.core-test (:require [blaze.coll.core :as coll] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [are deftest is testing]])) (st/instrument) (test/use-fixtures :each tu/fixture) (deftest first-test (testing "nil" (is (nil? (coll/first ni...
null
https://raw.githubusercontent.com/samply/blaze/6441a0a2f988b8784ed555c1d20f634ef2df7e4a/modules/coll/test/blaze/coll/core_test.clj
clojure
(ns blaze.coll.core-test (:require [blaze.coll.core :as coll] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [are deftest is testing]])) (st/instrument) (test/use-fixtures :each tu/fixture) (deftest first-test (testing "nil" (is (nil? (coll/first ni...
edb2bd6a5e27e96c7c4744eb17ca629407ed0ba0865dae55b810857a800b3544
ocaml-flambda/ocaml-jst
w04.ml
(* TEST flags = "-w +A-70" * setup-ocamlc.byte-build-env ** ocamlc.byte compile_only = "true" *** check-ocamlc.byte-output *) [@@@ocaml.warning "+4"] type expr = E of int [@@unboxed] let f x = match x with (E e) -> e type t = A | B let g x = match x with | A -> 0 | _ -> 1
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/testsuite/tests/warnings/w04.ml
ocaml
TEST flags = "-w +A-70" * setup-ocamlc.byte-build-env ** ocamlc.byte compile_only = "true" *** check-ocamlc.byte-output
[@@@ocaml.warning "+4"] type expr = E of int [@@unboxed] let f x = match x with (E e) -> e type t = A | B let g x = match x with | A -> 0 | _ -> 1
da70573a41430cfe3f82ff3acccdc6c5d964682a289f08aa4e98b933fddd816a
inhabitedtype/ocaml-aws
restoreDBClusterFromS3.ml
open Types open Aws type input = RestoreDBClusterFromS3Message.t type output = RestoreDBClusterFromS3Result.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (En...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/rds/lib/restoreDBClusterFromS3.ml
ocaml
open Types open Aws type input = RestoreDBClusterFromS3Message.t type output = RestoreDBClusterFromS3Result.t type error = Errors_internal.t let service = "rds" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (En...
221538c822f4fd6d798ab83786c7e19a8076dfb8a4c68873856288705b2b8750
c4-project/c4f
examples.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/litmus/test/examples.mli
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
0c573b50c3a1803c125d0ea16365e895463b8d59a97112980716c997205b1cf2
huangjs/cl
dznrm2.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/share/lapack/blas/dznrm2.lisp
lisp
Compiled by f2cl version: 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 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...
0baf4ccb080c7a35a5261bb692f1c27cf6f1fe5614d63c29f5eaa15b6704e236
boris-ci/boris
Log.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} module Boris.Service.Log ( LogError , renderLogError , newLogger , withLogger ) where import Control.Monad.IO.Class (MonadIO (..)) import Control.Monad.Catch (Exception, catch, throwM) impor...
null
https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-service/src/Boris/Service/Log.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns #
# LANGUAGE NoImplicitPrelude # module Boris.Service.Log ( LogError , renderLogError , newLogger , withLogger ) where import Control.Monad.IO.Class (MonadIO (..)) import Control.Monad.Catch (Exception, catch, throwM) import Boris.Core.Data.Run import Boris.Core.Data....
6828e3ac5ef7441eb23ca7b10cd6b9c5e167707cc6e9cad159409c3baa7d11ee
mejgun/haskell-tdlib
StorageStatisticsByFileType.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.StorageStatisticsByFileType where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.FileType as FileType import qualified Utils as U -- | data StorageStatisticsByFileType = -- | Contains the storage usage statistics...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Data/StorageStatisticsByFileType.hs
haskell
# LANGUAGE OverloadedStrings # | | | Contains the storage usage statistics for a specific file type | Total number of files | Total size of the files, in bytes | File type
module TD.Data.StorageStatisticsByFileType where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.FileType as FileType import qualified Utils as U StorageStatisticsByFileType count :: Maybe Int, size :: Maybe Int, file_type :: Maybe FileType.FileType } ...
3d1956e4abe3f140ada753dbe24727ecc2808378691913c940fc5526cfe9393b
2600hz-archive/whistle
couchbeam_sup.erl
%%% -*- erlang -*- %%% This file is part of couchbeam released under the MIT license . %%% See the NOTICE for more information. -module(couchbeam_sup). -author('Benoît Chesneau <>'). -behaviour(supervisor). -export([start_link/0, init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({loca...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/couchbeam-0.5.4/src/couchbeam_sup.erl
erlang
-*- erlang -*- See the NOTICE for more information.
This file is part of couchbeam released under the MIT license . -module(couchbeam_sup). -author('Benoît Chesneau <>'). -behaviour(supervisor). -export([start_link/0, init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). init([]) -> AChild = {couchbeam,...