_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
1d2bba036845ac13d610ebec6b331921f2b8cee7d252a8299a55ec6a2359644c
zotonic/zotonic
zotonic_cmd_addsite.erl
@author < > 2019 %% @doc Addsite CLI command Copyright 2019 %% 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 a...
null
https://raw.githubusercontent.com/zotonic/zotonic/1fa97267a0bbe551ab975eba4fe4b4d6daf59dae/apps/zotonic_launcher/src/command/zotonic_cmd_addsite.erl
erlang
@doc Addsite CLI command 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 specif...
@author < > 2019 Copyright 2019 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(zotonic_cmd_addsite). -author("Marc Worrell"). -export([ info/0, usage/0, run/1 ]). -define(SKEL, "blog"). ...
b6f0dbd0628328fc61c82ed6869990af7d75a2fd3c2422dccdaf3dc2f09b0641
elpinal/modules
Dynamic.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -Wno - orphans # module Language.Modules.Ros2018.Internal.Erased.Dynamic ( Term(..) , eval...
null
https://raw.githubusercontent.com/elpinal/modules/aa8f2725a770edb06626aeaf8716da90dfa06823/src/Language/Modules/Ros2018/Internal/Erased/Dynamic.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # Be careful about the evaluation order of records. Returns a fully evaluated value.
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE OverloadedLists # # OPTIONS_GHC -Wno - orphans # module Language.Modules.Ros2018.Internal.Erased.Dynamic ( Term(..) , evaluate , runEffect ) where import Control.Monad.IO.Clas...
e291fa0ebacd8b525a3e64e468a3792c351419fa7317ade21f8eaa019c96fe09
scotty-web/scotty
cookies.hs
{-# LANGUAGE OverloadedStrings #-} -- This examples requires you to: cabal install cookie -- and: cabal install blaze-html module Main (main) where import Control.Monad (forM_) import Data.Text.Lazy (Text) import qualified Data.Text.Lazy.Encoding as T import qualified Data.ByteString as BS import qualified Data.ByteSt...
null
https://raw.githubusercontent.com/scotty-web/scotty/480ed62a17dbadd5128b67f9a448339e52930c1f/examples/cookies.hs
haskell
# LANGUAGE OverloadedStrings # This examples requires you to: cabal install cookie and: cabal install blaze-html
module Main (main) where import Control.Monad (forM_) import Data.Text.Lazy (Text) import qualified Data.Text.Lazy.Encoding as T import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BSL import qualified Blaze.ByteString.Builder as B import qualified Text.Blaze.Html5 as H import Text.Blaze.H...
d6b75b396e51a70b1f22fd9996f679cd95c4b790d7054510a913a01b0f194f31
piotr-yuxuan/malli-cli
gnu.clj
✔ (ns piotr-yuxuan.malli-cli.domain.gnu) ✔ (defn long-option? ? [s] ✔ (re-find #"^--\p{Alnum}[-\p{Alnum}]" s)) ✔ (defn long-option-with-value? ? [s] ✔ (re-find #"^--\p{Alnum}[-\p{Alnum}]+=" s)) ✔ (defn long-option-without-value? ? [s] ✔ (re-find #"^--\p{Alnum}[-\p{Alnum}]+$" s))
null
https://raw.githubusercontent.com/piotr-yuxuan/malli-cli/9b013958ce8561f85eb59bf8b67edc0850de4106/doc/code-coverage/piotr_yuxuan/malli_cli/domain/gnu.clj
clojure
✔ (ns piotr-yuxuan.malli-cli.domain.gnu) ✔ (defn long-option? ? [s] ✔ (re-find #"^--\p{Alnum}[-\p{Alnum}]" s)) ✔ (defn long-option-with-value? ? [s] ✔ (re-find #"^--\p{Alnum}[-\p{Alnum}]+=" s)) ✔ (defn long-option-without-value? ? [s] ✔ (re-find #"^--\p{Alnum}[-\p{Alnum}]+$" s))
e678901e6f5d66e34fe284683e5373f98d181ef3e3afc048ec6fd433af22713c
200ok-ch/easy
opening.cljs
(ns easy.opening "The begining of an *opening* event example: ``` - type: opening date: 2018-01-01 items: - account: 'Aktiva:1010-Postfinance' amount: 1234.12 - account: 'Aktiva:1100-Forderungen-aus-Lieferungen-und-Leistungen' amount: 4321.21 - account: 'Aktiva:1109-Wertb...
null
https://raw.githubusercontent.com/200ok-ch/easy/398b77e6dee3a02aa9fb78f7421b8f5c45ee2f23/src/easy/opening.cljs
clojure
spec defaults transformers
(ns easy.opening "The begining of an *opening* event example: ``` - type: opening date: 2018-01-01 items: - account: 'Aktiva:1010-Postfinance' amount: 1234.12 - account: 'Aktiva:1100-Forderungen-aus-Lieferungen-und-Leistungen' amount: 4321.21 - account: 'Aktiva:1109-Wertb...
046444da0077991736e7edfde1d891509d17b0d5cef8b904387b76f9ac348e3e
PeterDWhite/Osker
Size.hs
Copyright ( C ) , 2001 , 2002 , 2003 Copyright ( c ) OHSU , 2001 , 2002 , 2003 module Size ( Size (..) ) where ---------------------------------------------------------------------- The size type is used by many calls ---------------------------------------------------------------------- newtype Size = Size...
null
https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Posix/Size.hs
haskell
-------------------------------------------------------------------- --------------------------------------------------------------------
Copyright ( C ) , 2001 , 2002 , 2003 Copyright ( c ) OHSU , 2001 , 2002 , 2003 module Size ( Size (..) ) where The size type is used by many calls newtype Size = Size Int instance Show Size where show (Size n) = "Size:" ++ show n
822a4b430a52843c91f8c508578913fbd8f9fb2bdace9958ea2485e9110e8fd8
xapi-project/xen-api
rrdd_server.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/20b0574fa0f60c72b5a8eeafbc84bb485ebb6c22/ocaml/xcp-rrdd/bin/rrdd/rrdd_server.ml
ocaml
* [archive_rrd] is used exclusively to send rrds to the pool master when suspending/halting vms DEPRECATED Add in "dbsync = true" to the query to make sure the master doesn't try to redirect here! DEPRECATED Static values. The function that tells the plugin what to write at the top of its output ...
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
82b93ef3b909d3bb26ea01e994be12caa46da9b0a416417d4d0b7583519ab20e
wilbowma/cur
interactive.rkt
#lang cur (require cur/ntac/base cur/ntac/standard) (ntac (∀ (A : Type) (a : A) A) interactive)
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/ntac/interactive.rkt
racket
#lang cur (require cur/ntac/base cur/ntac/standard) (ntac (∀ (A : Type) (a : A) A) interactive)
f7fb92e8d3a6763a3d254940acaef70c2b5f7503297996bb1583cbf849e67e42
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2018 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject spec-demo12 "0.1.0-SNAPS...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/1350d206ec6702248a560a6c9569d2128de2da60/spec-demo12/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 -v10.html (defproject spec-demo12 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"]] :plugins [[lein-codox "0.10.7"] [...
b68647223f1e2169a393afd2f5e78f7d1e1e12dfd94be8ad3b505e0460bb9d1c
avsm/eeww
actions.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/4d65720b5dd51376842ffe5c8c220d5329c1dc10/boot/ocaml/ocamltest/actions.mli
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Paris Copyright 2016 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type code = out_channel -> Environments.t -> Result.t * Environments.t type t val name : t -> string val de...
b1c4952118411f1cfeced7eaf0a7b73471ff13474bbfa5b93aa893aa7951ecae
clojurecademy/clojurecademy
validation.cljc
(ns clojurecademy.validation (:require [clojure.string :as str])) (defn username? [username] (and (not (str/blank? username)) (re-matches #"^[A-Za-z][a-zA-Z_0-9]{2,40}" username))) (defn password? [password] (and (not (str/blank? password)) (re-matches #".{8,256}" password))) (defn url? ...
null
https://raw.githubusercontent.com/clojurecademy/clojurecademy/97dc7f9b91a90a3f30ca5a3de88542c90a50ce01/src/cljc/clojurecademy/validation.cljc
clojure
(ns clojurecademy.validation (:require [clojure.string :as str])) (defn username? [username] (and (not (str/blank? username)) (re-matches #"^[A-Za-z][a-zA-Z_0-9]{2,40}" username))) (defn password? [password] (and (not (str/blank? password)) (re-matches #".{8,256}" password))) (defn url? ...
38f033b267f9ec8d5c08008f5fb1d403b40f3315cf5f387b3f0c289241e9219f
grasswire/chat-app
Foundation.hs
# LANGUAGE RecordWildCards # module Foundation where import Import.NoFoundation import Text.Hamlet (hamletFile) import Text.Jasmine (minifym) import Yesod.Default.Util (addStaticContentExternal) import Yesod.Core.Types (Logger) import qu...
null
https://raw.githubusercontent.com/grasswire/chat-app/a8ae4e782cacd902d7ec9c68c40a939cc5cabb0a/backend/Foundation.hs
haskell
| The foundation datatype for your application. This can be a good place to keep settings and values requiring initialization before your application starts running, such as database connections. Every handler will have access to the data present here. ^ Settings for static file serving. ^ Database connection poo...
# LANGUAGE RecordWildCards # module Foundation where import Import.NoFoundation import Text.Hamlet (hamletFile) import Text.Jasmine (minifym) import Yesod.Default.Util (addStaticContentExternal) import Yesod.Core.Types (Logger) import qu...
9dd77ccc77f8ca5a4524d0e3fa8d68afc941e83747ede9a48d16922dc98aeded
nikodemus/SBCL
primtype.lisp
;;;; machine-independent aspects of the object representation and ;;;; primitive types 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...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/generic/primtype.lisp
lisp
machine-independent aspects of the object representation and primitive types 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. primitive type definitions primitive integer types that fit in ...
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") (/show0 "primtype.lisp 17") (!def-primitive-type t (descriptor-reg)) (/show0 "primtype.lisp 20") (se...
60e6506b77ba699e1cb5d3b7f908a4e66f514c54c351159b3ea2b638b286d405
disteph/cdsat
lib.mli
open Async val stdin : Reader.t val pause : unit -> char Reader.Read_result.t Deferred.t val stdout : Writer.t val print : string -> unit Deferred.t val write : 'a Pipe.Writer.t -> 'a -> unit Deferred.t val read : 'a Pipe.Reader.t -> ?onkill:(unit -> unit Deferred.t) -> ('a -> unit Deferred.t...
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/portfolio/plugins.mld/concur.mld/lib.mli
ocaml
open Async val stdin : Reader.t val pause : unit -> char Reader.Read_result.t Deferred.t val stdout : Writer.t val print : string -> unit Deferred.t val write : 'a Pipe.Writer.t -> 'a -> unit Deferred.t val read : 'a Pipe.Reader.t -> ?onkill:(unit -> unit Deferred.t) -> ('a -> unit Deferred.t...
f83d880642f110f0fac80b06cdb97cc1d8f72e46807531c3ed59783ffb60c410
eeng/shevek
logger.cljs
(ns shevek.reflow.interceptors.logger (:require [shevek.lib.logger :as log :refer [debug?]] [clojure.data :as data])) (defn- clean-for-diff [db] (dissoc db :last-events)) (defn logger [interceptor] (fn [db event] (log/info "Handling event" event "...") (if debug? (let [start-time (js/D...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/cljs/shevek/reflow/interceptors/logger.cljs
clojure
(ns shevek.reflow.interceptors.logger (:require [shevek.lib.logger :as log :refer [debug?]] [clojure.data :as data])) (defn- clean-for-diff [db] (dissoc db :last-events)) (defn logger [interceptor] (fn [db event] (log/info "Handling event" event "...") (if debug? (let [start-time (js/D...
a83f97e3e94ee4c3f1df0618e73e2b8bbc5f1a8bda9c922b560fcd38d87c7d40
portkey-cloud/aws-clj-sdk
storagegateway.clj
(ns portkey.aws.storagegateway (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "storagegateway", :region "ap-northeast-1"}, :ssl-common-name "storagegateway.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/storagegateway.clj
clojure
(ns portkey.aws.storagegateway (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "storagegateway", :region "ap-northeast-1"}, :ssl-common-name "storagegateway.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "...
222a3780fc7483febfd36da84c4ab9024dcbc98e02145aa77ca01f2df40b8d83
mirage/irmin
lower.ml
* Copyright ( c ) 2023 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 " AND ...
null
https://raw.githubusercontent.com/mirage/irmin/ce09bb715c4e9f2b66eb78dec3c38c1de60a5bff/src/irmin-pack/unix/lower.ml
ocaml
0. Validate volume directory does not already exist TODO: handle failure to create all artifacts, either here or in a cleanup when the store starts. Opening an empty volume is a no-op Sparse file is already open Closing an empty volume is a no-op Append archived data Prepare new control file Write...
* Copyright ( c ) 2023 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 " AND ...
c63e975ebc8e517b703e09a889366e5bfba56238884fa269466af61274d5e297
arichiardi/replumb
cache_test.cljs
(ns replumb.cache-test (:require [cljs.test :refer-macros [deftest is]] [cljs.nodejs :as nodejs] [doo.runner :as doo] [replumb.core :as core :refer [options success? unwrap-result]] [replumb.common :as common :refer [echo-callback valid-eval-result? ...
null
https://raw.githubusercontent.com/arichiardi/replumb/dde2228f2e364c3bafdf6585bb1bc1c27a3e336c/test/cljs/replumb/cache_test.cljs
clojure
important: if the ClojureScript version is updated rembember to update the files in the cache folder as well (in order to match the compiler version) read-no-files-in-cache-path-no-src-paths read-no-files-in-cache-path-yes-src-paths read-yes-files-in-cache-path-yes-src-paths read-yes-files-in-cache-path-no-src-p...
(ns replumb.cache-test (:require [cljs.test :refer-macros [deftest is]] [cljs.nodejs :as nodejs] [doo.runner :as doo] [replumb.core :as core :refer [options success? unwrap-result]] [replumb.common :as common :refer [echo-callback valid-eval-result? ...
edd48677642bfc1709ee750bdf5c6e865adb55f2955c014ad1f221db51760442
ghcjs/ghcjs-boot
list001.hs
# LANGUAGE CPP # module Main where import Data.List import Control.Exception This module briefly tests all the functions in PrelList and a few -- from List. ToDo : test strictness properties . main = do -- head print (head [1,2,3,4], head "a") catch (print (head [] :: String)) (\(ErrorCall _) -> putStr "...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/tests/list001.hs
haskell
from List. head tail init last null length foldl scanl scanr iterate take replicate drop splitAt scan break reverse and or elem notElem lookkup sum product maximum minimum concatMap zip zip3 zipWith unzip unzip3 unlines words deleteBy delete (\\)
# LANGUAGE CPP # module Main where import Data.List import Control.Exception This module briefly tests all the functions in PrelList and a few ToDo : test strictness properties . main = do print (head [1,2,3,4], head "a") catch (print (head [] :: String)) (\(ErrorCall _) -> putStr "head []\n") print (ta...
aeabc57422d9734b074a31d1be613d63515493e44c29cd936cd95a7555f6fa39
kadena-io/chainweb-node
PactTests.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # -- | -- Module: Main Copyright : Copyright © 2018 - 2020 Kadena LLC . License : MIT Maintainer : < > -- Stability: experimental -- TODO -- module Main ( main ) where import Test.Tasty import qualified Chainweb.Test.Pact import qualified C...
null
https://raw.githubusercontent.com/kadena-io/chainweb-node/8c32fcfff85c4e5b61a9554f0180ca6c90840e42/test/PactTests.hs
haskell
# LANGUAGE OverloadedStrings # | Module: Main Stability: experimental
# LANGUAGE ScopedTypeVariables # Copyright : Copyright © 2018 - 2020 Kadena LLC . License : MIT Maintainer : < > TODO module Main ( main ) where import Test.Tasty import qualified Chainweb.Test.Pact import qualified Chainweb.Test.Pact.PactService main :: IO () main = do pactTests <- Chainweb.Test.Pac...
4b0a292f4e7a983267f942e0ffef1a8c91ef162a831a7ac605125f17913670b1
callum-oakley/advent-of-code
18.clj
(ns aoc.2015.18 (:require [aoc.vector :refer [+v]] [clojure.set :as set] [clojure.string :as str] [clojure.test :refer [deftest is]])) (defn parse [s] (let [lines (vec (str/split-lines s)) max-i (count lines)] [max-i (set (for [x (range max-i) y (range max-i) ...
null
https://raw.githubusercontent.com/callum-oakley/advent-of-code/fa79f6483157e3aeeb43dd8661ca5d308d203933/src/aoc/2015/18.clj
clojure
(ns aoc.2015.18 (:require [aoc.vector :refer [+v]] [clojure.set :as set] [clojure.string :as str] [clojure.test :refer [deftest is]])) (defn parse [s] (let [lines (vec (str/split-lines s)) max-i (count lines)] [max-i (set (for [x (range max-i) y (range max-i) ...
b1207f93e44bfdf9d8d56e09631a422fdd036aa9d42f40f1383a4c05e09f71d1
erlang/otp
group.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/8bd51c239d39923846936e00b8e52f4265d5e7b3/lib/kernel/src/group.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(group). -export([start/2, start/3, whereis_shell/0, server/4]). start(Drv, Shell) -> start(Drv, Shell,...
27381145ea898557f0e571a8205f013dcda95aee5a00b3dc86b5e08de2adc2c1
200ok-ch/easy
common.cljs
(ns easy.common "This namespace covers the common requirements for all events." (:require [cljs.spec.alpha :as s] [easy.util :as util :refer [assoc*]] [cljs-time.core :as cljs-time] [cljs-time.format :as time])) ;; spec (def match-iso-date (partial re-matches #"^\d{4}-\d\d-\d...
null
https://raw.githubusercontent.com/200ok-ch/easy/a4d155cbe0e50fbffc7b5a034edb9d6d349507f6/src/easy/common.cljs
clojure
spec NOTE: This is a set of all known event types. New event types need to be listed here otherwise they will result in an error. This is an early guard against typos in the name of event types - unfortunately not much more, so we might as well drop it entirely. Allgemeine Buchung Rechnung wurde gestellt Ausgab...
(ns easy.common "This namespace covers the common requirements for all events." (:require [cljs.spec.alpha :as s] [easy.util :as util :refer [assoc*]] [cljs-time.core :as cljs-time] [cljs-time.format :as time])) (def match-iso-date (partial re-matches #"^\d{4}-\d\d-\d\d$")) (...
df8a46e4d027d78842e094ef5f132885e22b901a3a8df96e804ba908f8bd0bd1
parsonsmatt/prairie
Class.hs
-- | This module defines the type class 'Record' which enables much of the -- functionality of the library. You can define instances of this record -- manually, or you may use the @TemplateHaskell@ deriving function in -- "Prairie.TH". -- -- We'll use an example type @User@ throughout the documentation in this -- modul...
null
https://raw.githubusercontent.com/parsonsmatt/prairie/10de768ecb94b95aa0dc077718dc6131c7857762/src/Prairie/Class.hs
haskell
| This module defines the type class 'Record' which enables much of the functionality of the library. You can define instances of this record manually, or you may use the @TemplateHaskell@ deriving function in "Prairie.TH". We'll use an example type @User@ throughout the documentation in this module. @ data U...
@since 0.0.1.0 module Prairie.Class where import Control.Lens (Lens', set, view, Identity(..), Const(..)) import Data.Aeson (ToJSON(..), FromJSON(..), withText) import Data.Constraint (Dict(..)) import Data.Kind (Constraint, Type) import Data.Map (Map) import qualified Data.Map as Map import Data.Text (Text) import ...
877ace6958359a3fe727a96171672be5796b0405f10a2f495dc8498374a1dad6
MercuryTechnologies/ghc-specter
Timing.hs
module GHCSpecter.Render.Timing ( render, ) where import Concur.Core (Widget) import Concur.Replica ( classList, height, onChange, onClick, onInput, style, width, ) import Concur.Replica.DOM.Props qualified as DP (checked, name, type_) import Control.Lens (to, (^.), _1) import Data.List qualified as L...
null
https://raw.githubusercontent.com/MercuryTechnologies/ghc-specter/131d113add17c66cb539237903370ce788e87a51/daemon/src/GHCSpecter/Render/Timing.hs
haskell
| regular timing view mode | show blocker detail level radio button | blocker graph mode
module GHCSpecter.Render.Timing ( render, ) where import Concur.Core (Widget) import Concur.Replica ( classList, height, onChange, onClick, onInput, style, width, ) import Concur.Replica.DOM.Props qualified as DP (checked, name, type_) import Control.Lens (to, (^.), _1) import Data.List qualified as L...
12bc66fbd0c9de5ee5029d7bcfbcde3d9e124c56db6fb40cc020be849984e4b6
MastodonC/kixi.datastore
metadatastore.clj
(ns kixi.datastore.metadatastore (:require [clojure.spec.alpha :as s] [kixi.datastore [schemastore :as schemastore] [segmentation :as seg]] [kixi.datastore.metadatastore [geography :as geo] [license :as l] [time :as t]] ...
null
https://raw.githubusercontent.com/MastodonC/kixi.datastore/f33bba4b1fdd8c56cc7ac0f559ffe35254c9ca99/src/kixi/datastore/metadatastore.clj
clojure
(ns kixi.datastore.metadatastore (:require [clojure.spec.alpha :as s] [kixi.datastore [schemastore :as schemastore] [segmentation :as seg]] [kixi.datastore.metadatastore [geography :as geo] [license :as l] [time :as t]] ...
61c2f93b33d93f5589646780adabdc8b0bf973bb9a639e2141c066f99ac5cf7c
spawnfest/eep49ers
snmp_test_manager.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2005 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by appli...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/snmp/test/snmp_test_manager.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific ...
Copyright Ericsson AB 2005 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(snmp_test_manager). -behaviour(gen_server). -behaviour(snmpm_user). -export([ start_link/0, start_link...
796f0ff087ea827963b14f06fe56cdf828ee137ef2b639f5d92fd0a68ee9b18a
c4-project/c4f
path_consumers.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/fuzz/src/path_consumers.mli
ocaml
* Consumers of fuzzer subject paths. These take the form of functions that accept paths and tests, and perform actions on the part of that subject referenced by the path. * [consume ?filter target ~path ~action] consumes [path] over [target], performing [action] at the end of it. If [filter] is prese...
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...
fb019cff30ad2d1e2ff2f7159df6f4d6976274c8d93d93b260f9e0aff4421415
MastodonC/witan.ui
side.clj
(ns witan.ui.style.side (:require [garden.units :refer [px em]] [witan.ui.style.colour :as colour] [witan.ui.style.values :as values])) (def style [[:#side-container {:position :relative :text-align :center :color colour/side-text :width ...
null
https://raw.githubusercontent.com/MastodonC/witan.ui/5ea6baaff52824ac61737911dd2c11b451157bad/src/styles/witan/ui/style/side.clj
clojure
(ns witan.ui.style.side (:require [garden.units :refer [px em]] [witan.ui.style.colour :as colour] [witan.ui.style.values :as values])) (def style [[:#side-container {:position :relative :text-align :center :color colour/side-text :width ...
76f7fd179e10f3bbc32e232618253e6dafa50876fec4138542453ed6f61afc77
biocom-uib/vpf-tools
Main.hs
# options_ghc -Wno - partial - type - signatures # # language BlockArguments # # language NumericUnderscores # {-# language PartialTypeSignatures #-} # language StaticPointers # module Main where import Control.Effect.Distributed import Control.Carrier.Distributed.SingleProcess import Control.Concurrent (getNumCapabil...
null
https://raw.githubusercontent.com/biocom-uib/vpf-tools/dd88a543f28eb339cf0dcb89f34479c84b3a8056/app/pipes-test/Main.hs
haskell
# language PartialTypeSignatures #
# options_ghc -Wno - partial - type - signatures # # language BlockArguments # # language NumericUnderscores # # language StaticPointers # module Main where import Control.Effect.Distributed import Control.Carrier.Distributed.SingleProcess import Control.Concurrent (getNumCapabilities, myThreadId, threadDelay) import...
ab328d2cbab43d88ba7e5dc3afd55e123ea45fa2a4392c5fe40018231aebe9b2
obsidiansystems/obelisk-oauth
Route.hs
# LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Common.Route where import Da...
null
https://raw.githubusercontent.com/obsidiansystems/obelisk-oauth/d6c04107c90f7195d9c2da93bf726147cc8de61a/example/common/src/Common/Route.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | Used to handle unparseable routes. You can define any routes that will be handled specially by the backend here. i.e. These do not serve the frontend, but do something different, such as serving static files. This type is used to define fro...
# LANGUAGE EmptyCase # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Common.Route where import Data.Text (Text) import Data.Functor.Identity import Obelisk.OAuth.Authorization (OAuth,...
92f0994768b5de6aea4aa562e70ec10f1da75d68e6449345d1199dae035b4eb6
hipsleek/hipsleek
xml.ml
* , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 o...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/xml/xml.ml
ocaml
local cast Xml.xml -> xml local cast : Xml.error_msg -> error_msg
* , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 o...
da9875064fc08aa1be26de4deff4af2b350ab6146f71e326eef8f4c139919b3f
acl2/acl2
macros@useless-runes.lsp
(RP::STRLIST-TO-STR (3 3 (:REWRITE DEFAULT-CDR)) (3 3 (:REWRITE DEFAULT-CAR)) ) (RP::SYM-APP-FNC) (RP::SA-LST) (RP::GET-DIGIT-COUNT (590 10 (:REWRITE DEFAULT-PLUS-1)) (588 10 (:REWRITE DEFAULT-PLUS-2)) (537 537 (:TYPE-PRESCRIPTION NOT-INTEGERP-3B)) (537 537 (:TYPE-PRESCRIPTION NOT-INTEGERP-2B)) (537 537 (:TYPE-...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/projects/rp-rewriter/.sys/macros%40useless-runes.lsp
lisp
(RP::STRLIST-TO-STR (3 3 (:REWRITE DEFAULT-CDR)) (3 3 (:REWRITE DEFAULT-CAR)) ) (RP::SYM-APP-FNC) (RP::SA-LST) (RP::GET-DIGIT-COUNT (590 10 (:REWRITE DEFAULT-PLUS-1)) (588 10 (:REWRITE DEFAULT-PLUS-2)) (537 537 (:TYPE-PRESCRIPTION NOT-INTEGERP-3B)) (537 537 (:TYPE-PRESCRIPTION NOT-INTEGERP-2B)) (537 537 (:TYPE-...
8110234c99d220a986e1cf9546ddb37689a9758d88ad4f314cbd417f144f5cdd
youngnh/parsatron
bf.clj
(ns parsatron.languages.bf (:refer-clojure :exclude [char]) (:use [the.parsatron])) (defparser instruction [] (choice (char \>) (char \<) (char \+) (char \-) (char \.) (char \,) (between (char \[) (char \]) (many (instruction))))) (defparser bf [] (m...
null
https://raw.githubusercontent.com/youngnh/parsatron/418d2d7cd93e6ac6fd72b8516118000e4d5af073/src/clj/parsatron/languages/bf.clj
clojure
(ns parsatron.languages.bf (:refer-clojure :exclude [char]) (:use [the.parsatron])) (defparser instruction [] (choice (char \>) (char \<) (char \+) (char \-) (char \.) (char \,) (between (char \[) (char \]) (many (instruction))))) (defparser bf [] (m...
4ddeecb77dde4e4f30c67c65e8032a5dfb6376d129a93cd8883ab197962714cb
aharisu/Gauche-CV
calib3d_type.scm
;;; ;;; calib3d_type.scm ;;; MIT License Copyright 2011 - 2012 aharisu ;;; All rights reserved. ;;; ;;; 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 wit...
null
https://raw.githubusercontent.com/aharisu/Gauche-CV/5e4c51501431c72270765121ea4d92693f11d60b/src/calib3d/calib3d_type.scm
scheme
calib3d_type.scm All rights reserved. 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...
MIT License Copyright 2011 - 2012 aharisu in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN ACTION OF CO...
14faf341d421c38417a535241508ffd2e9e318df9d2b5dee6dd793d38300a16e
purescript/spago
Watch.hs
# LANGUAGE TupleSections # module Spago.Watch (watch, globToParent) where -- This code is derived from: -- import Spago.Prelude hiding (FilePath) import Spago.Env import Control.Concurrent.STM (check) import qualified Data.Map.Strict as Map import qualified Data.Set ...
null
https://raw.githubusercontent.com/purescript/spago/8e466899c322d1c561788e5fac1148570bff71d5/src/Spago/Watch.hs
haskell
This code is derived from: | Run an action, watching for file changes The action provided takes a callback that is used to set the files to be watched. When any of those files are changed, we rerun the action again. `lastEvent` is used for event debouncing. and the last event either has different path, or has ...
# LANGUAGE TupleSections # module Spago.Watch (watch, globToParent) where import Spago.Prelude hiding (FilePath) import Spago.Env import Control.Concurrent.STM (check) import qualified Data.Map.Strict as Map import qualified Data.Set as Set import qualified...
564cb9a24e8adfc231735447e6122e303198511045b3c2225c338bf67ea89587
kelsey-sorrels/zaffre
terminal.cljc
;; Functions for rendering state to screen (ns zaffre.terminal (:require [zaffre.color :as zcolor] [taoensso.timbre :as log]) (:import (java.nio ByteBuffer) (java.util Arrays) (org.lwjgl.glfw GLFW))) (def blend-mode->byte { :normal 0x0 :multiply 0x1 :screen 0x2 :overlay 0x3 ...
null
https://raw.githubusercontent.com/kelsey-sorrels/zaffre/eb16a9b2095b54c835d39fa035533e5083fe7b02/src/zaffre/terminal.cljc
clojure
Functions for rendering state to screen :hue 0x12 :saturation 0x13 :luminosity 0x15 src srcPos dest length namespace with only a protocol gets optimized out, causing missing dependencies. add a dummp def to prevent this ns from being optimized away.
(ns zaffre.terminal (:require [zaffre.color :as zcolor] [taoensso.timbre :as log]) (:import (java.nio ByteBuffer) (java.util Arrays) (org.lwjgl.glfw GLFW))) (def blend-mode->byte { :normal 0x0 :multiply 0x1 :screen 0x2 :overlay 0x3 :darken 0x4 :lighten 0x5 :color-dod...
ac0b6feb365049ad4932c64e61dc0b90855998edbc874a14eeff8d2fdebb938e
sgbj/MaximaSharp
rat3b.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/rat3b.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; IT INCLUDES R...
(in-package :maxima) (macsyma-module rat3b) THIS IS THE NEW RATIONAL FUNCTION PACKAGE PART 2 . (declare-top (special $algebraic $ratfac $keepfloat $float)) (load-macsyma-macros ratmac) (defmvar $ratwtlvl nil) (defun ralgp (r) (or (palgp (car r)) (palgp (cdr r)))) (defun palgp (poly) (cond ((pcoefp poly) ni...
8195c77142005a23b8c093deda96add1bf11f3fb653a0fb3c22c973cb329bb70
iamFIREcracker/adventofcode
amacro.lisp
(defpackage :amacro (:use :cl) (:export :let1 :aif :awhen)) (in-package :amacro) (defmacro let1 (binding &body body) (let1-expand binding body)) (eval-when (:compile-toplevel :load-toplevel :execute) (defun let1-expand (binding body) `(let (,binding) ,@body))) #+#:excluded (macroexpand-1...
null
https://raw.githubusercontent.com/iamFIREcracker/adventofcode/683989ee21bea9e23a9aa6a68b5971f5c3fcfd55/upstream/amacro.lisp
lisp
(defpackage :amacro (:use :cl) (:export :let1 :aif :awhen)) (in-package :amacro) (defmacro let1 (binding &body body) (let1-expand binding body)) (eval-when (:compile-toplevel :load-toplevel :execute) (defun let1-expand (binding body) `(let (,binding) ,@body))) #+#:excluded (macroexpand-1...
2980aacf398650824d228bdd9b43f7f5deadd8b30d5a6b400e993e6b45031e70
jwiegley/linearscan-hoopl
Restoration.hs
module Programs.Restoration where import Assembly import LinearScan.Hoopl.DSL restoration :: Program (Node IRVar) restoration = do label "entry" $ do offp v12 v15 v4 jump "L30" label "L30" $ do move v17 v16 nop offlpi v2 move v2 v1 copy v21 v29 ...
null
https://raw.githubusercontent.com/jwiegley/linearscan-hoopl/f654adf64cba4b3af1f42f06112c9225b1369c74/test/Programs/Restoration.hs
haskell
module Programs.Restoration where import Assembly import LinearScan.Hoopl.DSL restoration :: Program (Node IRVar) restoration = do label "entry" $ do offp v12 v15 v4 jump "L30" label "L30" $ do move v17 v16 nop offlpi v2 move v2 v1 copy v21 v29 ...
f1dfaad2fa9e9ec120eac1fbdda5a28df554d0d29f90088896f4c79f78ee4bac
pbogdan/nvs
Packages.hs
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # module Nixpkgs.Packages ( Package(..) ) where import Protolude hiding ( packageName ) import Data.Aeson import Data.Aeson.Casing import D...
null
https://raw.githubusercontent.com/pbogdan/nvs/d9705b34a4385e64700c4f4f54171b65bc73b1ee/src/Nixpkgs/Packages.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # module Nixpkgs.Packages ( Package(..) ) where import Protolude hiding ( packageName ) import Data.Aeson import Data.Aeson.Casing import D...
7bf9c92d53f3440145cadae27edcb95137895e90d570536dddf4dba2a46cbd52
samestep/boot-refresh
boot_refresh.clj
(ns samestep.boot-refresh {:boot/export-tasks true} (:require [boot.core :as boot] [clojure.tools.namespace.repl :as tns])) (boot/deftask refresh "Reload all changed namespaces on the classpath. Throws an exception in the case of failure." [] (boot/with-pass-thru _ (apply tns/set-refresh-d...
null
https://raw.githubusercontent.com/samestep/boot-refresh/f084c13b544952200e7c0ea4767be9e029752741/src/samestep/boot_refresh.clj
clojure
(ns samestep.boot-refresh {:boot/export-tasks true} (:require [boot.core :as boot] [clojure.tools.namespace.repl :as tns])) (boot/deftask refresh "Reload all changed namespaces on the classpath. Throws an exception in the case of failure." [] (boot/with-pass-thru _ (apply tns/set-refresh-d...
61f7d4227df895e626b80112d6bd2218a87079e32f97829cfa8da344602c40dd
uw-unsat/serval
integer-data-processing-register.rkt
#lang rosette (require "common.rkt") (provide and-register ands-register eor-register eors-register sub-register subs-register rsb-register rsbs-register add-register adds-register adc-register adcs-register sbc-register sbcs-register rsc-register rscs-register) (define (decode S Rn Rd imm5 stype ...
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/arm32/interp/integer-data-processing-register.rkt
racket
PSTATE.V
#lang rosette (require "common.rkt") (provide and-register ands-register eor-register eors-register sub-register subs-register rsb-register rsbs-register add-register adds-register adc-register adcs-register sbc-register sbcs-register rsc-register rscs-register) (define (decode S Rn Rd imm5 stype ...
3e2f1aa0b29eef52588a4eaa8b48e030b53cd841b6b4527e6315fdb62bfbfdcc
afronski/wolves-and-rabbits-world-simulation
simulation_common.erl
-module(simulation_common). -include("../include/simulation_records.hrl"). -export([ randomize/0, direction/0, next_position_and_target/2, next_position/4, stop_children/1 ]). randomize() -> << A:32, B:32, C:32 >> = crypto:rand_bytes(12), random:seed({A,B,C}). direction() -> ...
null
https://raw.githubusercontent.com/afronski/wolves-and-rabbits-world-simulation/245cbff5a87f3cae0f4cc7bc422e0a4d139fcecc/src/simulation_common.erl
erlang
-module(simulation_common). -include("../include/simulation_records.hrl"). -export([ randomize/0, direction/0, next_position_and_target/2, next_position/4, stop_children/1 ]). randomize() -> << A:32, B:32, C:32 >> = crypto:rand_bytes(12), random:seed({A,B,C}). direction() -> ...
63cc9d9be48fe08b2b88b729955b4c8c2d787a390a20ed2710e4e9dced39cf09
grin-compiler/ghc-wpc-sample-programs
Record.hs
| Module : . Elab . Record Description : Code to elaborate records . License : : The Idris Community . Module : Idris.Elab.Record Description : Code to elaborate records. License : BSD3 Maintainer : The Idris Community. -} # LANGUAGE PatternGuards # module Idris.Elab.Record(elabReco...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/idris-1.3.3/src/Idris/Elab/Record.hs
haskell
| Elaborate a record declaration ^ The documentation for the whole declaration ^ The name of the type being defined ^ Parameters ^ Fields ^ Constructor Name ^ Constructor Doc Type constructor Build data declaration for elaboration Keep track of the record | Generates a type constructor. | Generates a name f...
| Module : . Elab . Record Description : Code to elaborate records . License : : The Idris Community . Module : Idris.Elab.Record Description : Code to elaborate records. License : BSD3 Maintainer : The Idris Community. -} # LANGUAGE PatternGuards # module Idris.Elab.Record(elabReco...
bc2eec41397277599fdd517be264883b99d38763b4f4b5aa4377cc8d30f4a347
MaskRay/99-problems-ocaml
35.ml
let prime_factors n = let rec go d n = if n mod d = 0 then d :: go d (n/d) else if n = 1 then [] else if d*d > n then [n] else go (d+1) n in go 2 n
null
https://raw.githubusercontent.com/MaskRay/99-problems-ocaml/652604f13ba7a73eee06d359b4db549b49ec9bb3/31-40/35.ml
ocaml
let prime_factors n = let rec go d n = if n mod d = 0 then d :: go d (n/d) else if n = 1 then [] else if d*d > n then [n] else go (d+1) n in go 2 n
8ceb04f59739504da1bc317d529b695c69e2241538471f036e6cc0fe803e982a
plumatic/grab-bag
client_test.clj
(ns kinesis.client-test (:use plumbing.core plumbing.test clojure.test) (:require [plumbing.auth :as auth] [plumbing.resource :as resource] [crane.config :as config] [aws.kinesis :as aws-kinesis] [kinesis.client :as client] [kinesis.publisher :as publisher] [kinesis.core :as kinesis])) (defn t...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/kinesis/test/kinesis/client_test.clj
clojure
incompressible.
(ns kinesis.client-test (:use plumbing.core plumbing.test clojure.test) (:require [plumbing.auth :as auth] [plumbing.resource :as resource] [crane.config :as config] [aws.kinesis :as aws-kinesis] [kinesis.client :as client] [kinesis.publisher :as publisher] [kinesis.core :as kinesis])) (defn t...
6810c09944b51083bc7d72ae2c1aa323ed813785143e038db98470312b58210e
valderman/haste-compiler
TAI.hs
{-# OPTIONS -fno-warn-unused-imports #-} #include "HsConfigure.h" | TAI and leap - second tables for converting to UTC : most people wo n't need this module . module Data.Time.Clock.TAI ( TAI arithmetic AbsoluteTime,taiEpoch,addAbsoluteTime,diffAbsoluteTime, -- leap-second table type LeapSecondTable, convers...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/time/lib/Data/Time/Clock/TAI.hs
haskell
# OPTIONS -fno-warn-unused-imports # leap-second table type ugly, but standard apparently | addAbsoluteTime a b = a + b | diffAbsoluteTime a b = a - b No table is provided, as any program compiled with it would become | Parse the contents of a tai-utc.dat file. This does not do any kind of validation and will re...
#include "HsConfigure.h" | TAI and leap - second tables for converting to UTC : most people wo n't need this module . module Data.Time.Clock.TAI ( TAI arithmetic AbsoluteTime,taiEpoch,addAbsoluteTime,diffAbsoluteTime, LeapSecondTable, conversion between UTC and TAI with table utcDayLength,utcToTAITime,taiToU...
00bf4278f836d0dce2bf0d35bc93f3b14c9df41092cd43e843f058ac8b1b62ac
onedata/op-worker
storage_iterator.erl
%%%------------------------------------------------------------------- @author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Behaviour defining callbacks used ...
null
https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/modules/storage/traverse/iterators/storage_iterator.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Behaviour defining callbacks used by storage_traverse module for listing and processing files visible on storage. * block_storage_traverse - used for posix compatible...
@author ( C ) 2019 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . Currently there are 2 modules implementing this behaviour : * * nulldevice -module(storage_iterator). -author("Jakub Kudzia"). -include("modules/fslogic/fslogic_common.hrl"). -callback i...
99da151596d12b4ac7c4a98c551b08f3ff86042a2e2d5c27e737a0ae2373db1e
ailrk/blgol60
Lexer.hs
{-# LANGUAGE OverloadedStrings #-} module Lexer where import Control.Applicative (Alternative ((<|>))) import Data.Functor.Identity (Identity) import qualified Data.Text as T import Position import qualified Text.Parsec.Char as P import Text.Parsec.Combina...
null
https://raw.githubusercontent.com/ailrk/blgol60/6d87a9ca4f83fb239b34f81f071dbe6ddfa90a17/src/Lexer.hs
haskell
# LANGUAGE OverloadedStrings # -- | token type keywords numbers string literals separators
module Lexer where import Control.Applicative (Alternative ((<|>))) import Data.Functor.Identity (Identity) import qualified Data.Text as T import Position import qualified Text.Parsec.Char as P import Text.Parsec.Combinator as P import qualified Text.Pars...
ad8f1cc2abc3d16082dc87feb26ce7ee40b9542d1285e1ee5a394660c562ae4c
openmusic-project/openmusic
scoreslots.lisp
;======================================================================== OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you can redistr...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/87bdbf0635d8febb0c49f52c59a388b205775583/OPENMUSIC/code/projects/musicproject/container/scoreslots.lisp
lisp
======================================================================== (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ==================...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License ...
91dd7262039aa8a81bc7c402dcbac1db2f1aa93bcd4127465b6fd5c2f7018213
active-group/reacl
xpath.clj
(ns reacl2.test-util.xpath) (alias 'xpath 'reacl2.test-util.xpath) ;; convenience macro (defn- xpath-form [f] (cond (= '. f) `xpath/self (= '.. f) `xpath/parent (= '... f) `xpath/root (= '/ f) `xpath/children (= '** f) `xpath/all (vector? f) `(xpath/where (xpath/>> ~@f)) :else ;; else ...
null
https://raw.githubusercontent.com/active-group/reacl/946e85a946d9659706b8875f9d1d2a7e0da55592/src/reacl2/test_util/xpath.clj
clojure
convenience macro else eval
(ns reacl2.test-util.xpath) (alias 'xpath 'reacl2.test-util.xpath) (defn- xpath-form [f] (cond (= '. f) `xpath/self (= '.. f) `xpath/parent (= '... f) `xpath/root (= '/ f) `xpath/children (= '** f) `xpath/all (vector? f) `(xpath/where (xpath/>> ~@f)) f)) (defmacro >> "Compose the giv...
aa1e31be83a7196e33d25155ec2b926bab2d5d0f927600e450d0cdfbcfaccb8d
GaloisInc/HaNS
Client.hs
# LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # module Hans.IP4.Dhcp.Client ( DhcpConfig(..), defaultDhcpConfig, DhcpLease(..), dhcpClient, ) where import Hans.Device.Types (Device(devMac)) import Hans.IP4.Dhcp.Codec (SubnetMask(..)) import Hans.IP4.Dhcp.Packet import Hans.IP4.Dhcp.Options...
null
https://raw.githubusercontent.com/GaloisInc/HaNS/2af19397dbb4f828192f896b223ed2b77dd9a055/src/Hans/IP4/Dhcp/Client.hs
haskell
| BOOTP server port. | BOOTP client port. ^ Initial timeout ^ Number of retries ^ Whether or not routing information received default route for the network stack. ^ Whether or not to fork a renew thread once configuration information has been received. | Wait for a result on a socket | Discover a dhcp server,...
# LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # module Hans.IP4.Dhcp.Client ( DhcpConfig(..), defaultDhcpConfig, DhcpLease(..), dhcpClient, ) where import Hans.Device.Types (Device(devMac)) import Hans.IP4.Dhcp.Codec (SubnetMask(..)) import Hans.IP4.Dhcp.Packet import Hans.IP4.Dhcp.Options...
9761ba3fafa4ddb09fd2e9e1d7e2baf2f1780868628c305cd6a592b340615f28
REMath/mit_16.399
red23.mli
(* red23mli *) open Avalues2 open Avalues3 val reduce : (Avalues2.t * Avalues3.t) -> (Avalues2.t * Avalues3.t)
null
https://raw.githubusercontent.com/REMath/mit_16.399/3f395d6a9dfa1ed232d307c3c542df3dbd5b614a/project/Generic-FW-Abstract-Interpreter/red23.mli
ocaml
red23mli
open Avalues2 open Avalues3 val reduce : (Avalues2.t * Avalues3.t) -> (Avalues2.t * Avalues3.t)
76313c3978cf98310ed9f968268fdc5a8cd00c88714047df959f77f5e2a0f631
jaredly/reason-language-server
config.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/jaredly/reason-language-server/ce1b3f8ddb554b6498c2a83ea9c53a6bdf0b6081/ocaml_typing/407/config.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the val version: string val standard_library: string val standard_runtime: string val ccomp_type: string ...
c467439acced8fec59b74819be0b0c77efe6409e970da6fd5d81e1c47cd86d0b
nervous-systems/eulalie
deps.cljs
{:externs ["eulalie/externs/xml2js.js" "eulalie/externs/buffer-crc32.js" "eulalie/externs/timekeeper.js" "eulalie/externs/portfinder.js"]}
null
https://raw.githubusercontent.com/nervous-systems/eulalie/ee435987278f5ed628f576700b716d9d0bc17c61/src/deps.cljs
clojure
{:externs ["eulalie/externs/xml2js.js" "eulalie/externs/buffer-crc32.js" "eulalie/externs/timekeeper.js" "eulalie/externs/portfinder.js"]}
6ada30a8b210fa277ef4887cdfe3f8c3a21a7f583d34b7d17bad71bba0031450
lojic/LearningRacket
prob-012.rkt
#lang racket ;; ---------------------------------------------------------------------- Problem 12 : ;; Highly divisible triangular number ;; The sequence of triangle numbers is generated by adding the natural numbers . So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28 . The first ten terms ...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/project-euler/prob-012.rkt
racket
---------------------------------------------------------------------- Highly divisible triangular number The sequence of triangle numbers is generated by adding the natural divisors. hundred divisors? ----------------------------------------------------------------------
#lang racket Problem 12 : numbers . So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28 . The first ten terms would be : 1 , 3 , 6 , 10 , 15 , 21 , 28 , 36 , 45 , 55 , ... Let us list the factors of the first seven triangle numbers : 1 : 1 3 : 1,3 6 : 1,2,3,6 10 : 1,2,5,10 ...
64f1feb5457643e4397090731c87c45a68219ba5f1d46fe2ff6d1f41c530236b
Hans-Halverson/myte
bindings.ml
module ModuleDef = Module open Ast open Basic_collections open Types module VariableDeclaration = struct type t = { kind: Statement.VariableDeclaration.kind; tvar: TVar.t; } let mk kind = { kind; tvar = TVar.mk () } end module FunctionParamDeclaration = struct type t = { tvar: TVar.t } let mk () =...
null
https://raw.githubusercontent.com/Hans-Halverson/myte/dee2c69adbff3097555024b942559ddf8007c316/src/analyze/bindings.ml
ocaml
Type parameters for this function. During type instantiation for the function (where it is identified - whether at a direct call or another use) type arguments will be bound to these type parameters in the param and return signatures of the type. Parameter types for the function. If the function has ty...
module ModuleDef = Module open Ast open Basic_collections open Types module VariableDeclaration = struct type t = { kind: Statement.VariableDeclaration.kind; tvar: TVar.t; } let mk kind = { kind; tvar = TVar.mk () } end module FunctionParamDeclaration = struct type t = { tvar: TVar.t } let mk () =...
e295d53e88a3e27b8a5a7a9f9ca6ac332298d9f1d81aa918fa6c1ec6312cdd48
cracauer/sbcl-ita
arith.impure.lisp
;;;; arithmetic tests with side effects This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in th...
null
https://raw.githubusercontent.com/cracauer/sbcl-ita/f85a8cf0d1fb6e8c7b258e898b7af3233713e0b9/tests/arith.impure.lisp
lisp
arithmetic tests with side effects more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (load "assertoid.lisp") (use-package "ASSERTOID") (defmacro define-compiled-fun (fun name) `(progn (declaim (notinline ,name)) (defun ,name (&rest args) ...
39683c0054419f7d981ce859ce01051ce8489e5b93ae65be3d0a65f7760b1929
evolutics/haskell-formatter
Main.hs
{-| Description : Root of formatting -} module Language.Haskell.Formatter.Main (defaultFormat, format) where import qualified Language.Haskell.Formatter.Configuration as Configuration import qualified Language.Haskell.Formatter.Error as Error import qualified Language.Haskell.Formatter.ExactCode as ExactCode import qua...
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/src/library/Language/Haskell/Formatter/Main.hs
haskell
| Description : Root of formatting
module Language.Haskell.Formatter.Main (defaultFormat, format) where import qualified Language.Haskell.Formatter.Configuration as Configuration import qualified Language.Haskell.Formatter.Error as Error import qualified Language.Haskell.Formatter.ExactCode as ExactCode import qualified Language.Haskell.Formatter.Proces...
e4c221524297c9141a985da0b30b95c8185e0fc66b34264395aa0bc1b3d0559b
saltysystems/overworld
ow_dl_manifest.erl
-module(ow_dl_manifest). -behaviour(cowboy_handler). -export([init/2]). init(Req, State) -> #{peer := {RawIP, _Port}} = Req, IP = inet:ntoa(RawIP), Reply = case cowboy_req:parse_qs(Req) of [] -> % No arguments, just return the manifest logger:info("Clien...
null
https://raw.githubusercontent.com/saltysystems/overworld/4c95d524b172cc68ec83f34062c8a0e425f82e0e/src/ow_dl_manifest.erl
erlang
No arguments, just return the manifest List all registered apps Get the list of files return the path of the proto file for the given application Very hard-coded and rudimentary. TODO: Improve me Assume Godot 3.x
-module(ow_dl_manifest). -behaviour(cowboy_handler). -export([init/2]). init(Req, State) -> #{peer := {RawIP, _Port}} = Req, IP = inet:ntoa(RawIP), Reply = case cowboy_req:parse_qs(Req) of [] -> logger:info("Client ~p GET manifest.json", [IP]), manifest(...
61d61efde1ed573da188cd0601e24dab50355c7fef4d2f85a958a1d0c2490531
talex5/cuekeeper
ck_clock.ml
Copyright ( C ) 2015 , the README file for details . * See the README file for details. *) module type S = sig val now : unit -> float val async : name:string -> (unit -> unit Lwt.t) -> unit val sleep : float -> unit Lwt.t end
null
https://raw.githubusercontent.com/talex5/cuekeeper/ef8c97637627cf90902a0be50c8d39eadacc88b3/lib/ck_clock.ml
ocaml
Copyright ( C ) 2015 , the README file for details . * See the README file for details. *) module type S = sig val now : unit -> float val async : name:string -> (unit -> unit Lwt.t) -> unit val sleep : float -> unit Lwt.t end
173e6cd2f6935ba1ffe8eb2a37f11c1fd6ce54306ddf550126ac72b6321dbbab
hbr/albatross
proof_table.ml
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/alba1/proof_table.ml
ocaml
number of assertions at the start of the context number of local assumptions reversed indices of assumptions The term [t] in prenex normal form with respect to universal quantifiers The term [t] in prenex normal form with respect to universal quantifiers * The [i]th proved term and its context. The term ...
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
ddaf74555627a557ac3cac811d1594071cbe93e92da9273fd9befed0b6efeb90
TorXakis/TorXakis
LPEIsDet.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} -----------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeops/src/LPEIsDet.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental --------------------------------------------------------------------------- isDeterministicLPE
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} Module : LPEIsDet Copyr...
6c52347ca843f9a6f0d1971d6dd6881cc066e4b8e7949cfdfe80c85707f892c0
ivan-m/graphviz
Parsing.hs
# LANGUAGE FlexibleInstances , OverloadedStrings # | Module : Data . GraphViz . Parsing Description : Helper functions for Parsing . Copyright : ( c ) , License : 3 - Clause BSD - style Maintainer : This module defines simple helper functions for use with " T...
null
https://raw.githubusercontent.com/ivan-m/graphviz/42dbb6312d7edf789d7055079de7b4fa099a4acc/Data/GraphViz/Parsing.hs
haskell
* The ParseDot class. * Convenience parsing combinators. To avoid orphan instances and cyclic imports ----------------------------------------------------------------------------- | A @ReadS@-like type alias. | A variant of 'runParser' where it is assumed that the provided parsing function consumes all of the ...
# LANGUAGE FlexibleInstances , OverloadedStrings # | Module : Data . GraphViz . Parsing Description : Helper functions for Parsing . Copyright : ( c ) , License : 3 - Clause BSD - style Maintainer : This module defines simple helper functions for use with " T...
2d8be99a86cae65d80e43c09fcd47813bbe13a8b04a884f82bccb65d35083b84
maximedenes/native-coq
pcoq.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/parsing/pcoq.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * The superclass of all grammar entr...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Name...
c8414364aefa4f4093c32b44d7132a3d64c3897689ff974dc97518d98d77eefd
ChrisPenner/catalyst
Main.hs
module Main where main :: IO () main = return ()
null
https://raw.githubusercontent.com/ChrisPenner/catalyst/6b25a3b810737a335fe3ac9a532161b92f7f4e9f/app/Main.hs
haskell
module Main where main :: IO () main = return ()
359e3882ecb4f123e3356f8788c52e5dd9ed7f9e49c0ffcde9bf039917f7d213
nachivpn/mt
pp.erl
-module(pp). % Pre-processor -export([eraseAnn/1,getUDTs/1,getFns/1 ,fmapPEFns/2,getModule/1,getRecs/1]). eraseAnn(Forms) -> lists:filter(fun(F) -> case F of {attribute,_,etc,_} -> false; _ -> true end end, Forms). getUDTs(Forms) -> ...
null
https://raw.githubusercontent.com/nachivpn/mt/fcffbcb770cfe0b19c189e6c8ce2ccab61062195/etc/src/pp.erl
erlang
Pre-processor
-module(pp). -export([eraseAnn/1,getUDTs/1,getFns/1 ,fmapPEFns/2,getModule/1,getRecs/1]). eraseAnn(Forms) -> lists:filter(fun(F) -> case F of {attribute,_,etc,_} -> false; _ -> true end end, Forms). getUDTs(Forms) -> getAttribute...
5114f2825fb0e4c13ce5e6e27648e8d45d76a62a6d083e1abcc96ad422d038be
OCamlPro/liquidity
liquidClientRequest.ml
exception RequestError of int * string exception ResponseError of string * Ezjsonm.value open Lwt module Network_sync = struct let writer_callback a d = Buffer.add_string a d; String.length d let initialize_connection host path = let url = Printf.sprintf "%s%s" host path in let r = Buffer.create...
null
https://raw.githubusercontent.com/OCamlPro/liquidity/3578de34cf751f54b9e4c001a95625d2041b2962/tools/client/liquidClientRequest.ml
ocaml
as exn
exception RequestError of int * string exception ResponseError of string * Ezjsonm.value open Lwt module Network_sync = struct let writer_callback a d = Buffer.add_string a d; String.length d let initialize_connection host path = let url = Printf.sprintf "%s%s" host path in let r = Buffer.create...
2b97d2124f00429dffe79bd70271cf2272bea1a803081379e6f4b47eb79ef0fc
kaizhang/SciFlow
Utils.hs
{-# LANGUAGE OverloadedStrings #-} module Control.Workflow.Utils ( infoS , warnS , errorS , mkNodeId ) where import qualified Data.ByteString.Char8 as B import Network.Transport (EndPointAddress(..)) import Control.Distributed.Process (NodeId(..)) import qualified Data.Text as T import ...
null
https://raw.githubusercontent.com/kaizhang/SciFlow/c9d85008e9db598d2addc8fe999e1abad9147e1c/SciFlow/src/Control/Workflow/Utils.hs
haskell
# LANGUAGE OverloadedStrings # | Pretty print info messages. | Pretty print error messages. | Pretty print warning messages. | Get current time. | Construct node id given server address and port. ^ Server address ^ Server port
module Control.Workflow.Utils ( infoS , warnS , errorS , mkNodeId ) where import qualified Data.ByteString.Char8 as B import Network.Transport (EndPointAddress(..)) import Control.Distributed.Process (NodeId(..)) import qualified Data.Text as T import Data.Time ...
2ad3fd21b12bc2c17ffdcb4302cc3bd8f5084ca2619c362b98fa0d5d51c36bb7
lukaszcz/coqhammer
hhutils.mli
open Names open Ltac_plugin val intern_constr : Environ.env -> Evd.evar_map -> Constrexpr.constr_expr -> Evd.evar_map * EConstr.t val tacinterp : Geninterp.Val.t -> unit Proofview.tactic val exists_global : string -> bool val match_globref : ModPath.t -> GlobRef.t -> bool val get_constr : strin...
null
https://raw.githubusercontent.com/lukaszcz/coqhammer/fe83fb0eaf33f56da9ea1983114d0d94a2c41b9b/src/lib/hhutils.mli
ocaml
head args head head after red args after red prods head args prods head head after red args after red
open Names open Ltac_plugin val intern_constr : Environ.env -> Evd.evar_map -> Constrexpr.constr_expr -> Evd.evar_map * EConstr.t val tacinterp : Geninterp.Val.t -> unit Proofview.tactic val exists_global : string -> bool val match_globref : ModPath.t -> GlobRef.t -> bool val get_constr : strin...
59ba8e63538f9e674f7b99cf1efb86df912ee1f7025252692ecc88a6c33ea3d7
mhuebert/maria
commands.cljs
(ns maria.editor.code-blocks.commands (:require ["prosemirror-model" :refer [Fragment Slice]] ["prosemirror-state" :refer [TextSelection Selection NodeSelection insertPoint]] ["prosemirror-commands" :as pm.cmd] [applied-science.js-interop :as j] [clojure.string :as str]...
null
https://raw.githubusercontent.com/mhuebert/maria/9fc2e26ed7df16e82841e0127a56ae36fafa4e63/editor2/src/main/maria/editor/code_blocks/commands.cljs
clojure
cljs bug doesn't like use of `guard` above something is selected moving backwards but not at beginning moving forwards, not at end
(ns maria.editor.code-blocks.commands (:require ["prosemirror-model" :refer [Fragment Slice]] ["prosemirror-state" :refer [TextSelection Selection NodeSelection insertPoint]] ["prosemirror-commands" :as pm.cmd] [applied-science.js-interop :as j] [clojure.string :as str]...
c1834c8ba9d0860cc5e0795bfd88f5c2954378e4ad86a777d5cdd045d123170c
haskellfoundation/error-message-index
IllegalRole.hs
# LANGUAGE RoleAnnotations # module IllegalRole where type role A pantom data A a = A
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/26c5c12c279eb4a997b1ff17eea46f1e86b046ab/message-index/messages/GHC-09009/example1/before/IllegalRole.hs
haskell
# LANGUAGE RoleAnnotations # module IllegalRole where type role A pantom data A a = A
81a6f65bbf79ecba238d0bbb6eb0721843cf2c0adddc697c38d91582a7168cab
manutter51/woolybear
forms.cljs
(ns woolybear.ad.catalog.forms "Catalog and acu/demonstrations of available form and form-field components." (:require [re-frame.core :as re-frame] [woolybear.ad.catalog.utils :as acu] [woolybear.ad.layout :as layout] [woolybear.ad.forms :as forms] [woolybear.ad.utils...
null
https://raw.githubusercontent.com/manutter51/woolybear/a7f820dfb2f51636122d56d1500baefe5733eb25/src/cljs/woolybear/ad/catalog/forms.cljs
clojure
(ns woolybear.ad.catalog.forms "Catalog and acu/demonstrations of available form and form-field components." (:require [re-frame.core :as re-frame] [woolybear.ad.catalog.utils :as acu] [woolybear.ad.layout :as layout] [woolybear.ad.forms :as forms] [woolybear.ad.utils...
2fb4e836e5baebe38b9966468beb1d7e8851e2389959872e5cb4d80eb772869d
ragkousism/Guix-on-Hurd
modules.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 , 2017 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 t...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/guix/modules.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2016 , 2017 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix modules) #:use-module (guix memoization) #:use-module (guix sets) #:use-module (...
2d6d5c245412409e8e85b95aea19f6a4d54081bf1374d23c34faf953e2a5c3bf
dboris/ocaml-cocoa
appkit.ml
open Objc open Foundation module NSResponder = struct * An abstract class that forms the basis of event and command processing in AppKit . The core classes — NSApplication , NSWindow , and NSView — inherit from NSResponder , as must any class that handles events . The core classes — ...
null
https://raw.githubusercontent.com/dboris/ocaml-cocoa/2c2831b0436c807f9cca287cef4f7caf5fb2ea49/src/appkit.ml
ocaml
* The infrastructure for drawing, printing, and handling events in an app. * A definition of the fundamental behavior for controls, which are specialized views that notify your app of relevant events by using the target-action design pattern.
open Objc open Foundation module NSResponder = struct * An abstract class that forms the basis of event and command processing in AppKit . The core classes — NSApplication , NSWindow , and NSView — inherit from NSResponder , as must any class that handles events . The core classes — ...
4db88d883f1e7db779b0674abdadb92f1ef8686f42089c4986681fa2b5332597
danr/hipspec
Guards.hs
module Guards where import Prelude(Bool(..),otherwise) data Nat = Zero | Succ Nat data K = A | B | C even (Succ (Succ n)) = even n even (Succ Zero) = False even Zero = True div3 (Succ (Succ (Succ n))) = div3 n div3 Zero = True div3 _ = False bar Zero ...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/tfp1/tests/Guards.hs
haskell
module Guards where import Prelude(Bool(..),otherwise) data Nat = Zero | Succ Nat data K = A | B | C even (Succ (Succ n)) = even n even (Succ Zero) = False even Zero = True div3 (Succ (Succ (Succ n))) = div3 n div3 Zero = True div3 _ = False bar Zero ...
1b20d8afe54b935dd775be5d7063316a959746a80f4ed008ea03ef9325c82289
Frama-C/Frama-C-snapshot
parse_remarks.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/markdown-report/parse_remarks.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
bc8577d04324cec62fedba5877c3490c04473a6d980781dbfcf2bf3c9efb61c4
MrEbbinghaus/fulcro-material-ui-wrapper
styles.cljc
(ns mui.styles (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] #?@(:cljs [["@mui/material/styles" :refer [ThemeProvider createMuiTheme useTheme] :rename {styled mui-styled}] ["@mui/material/useMediaQuery" :default useMediaQuery]]))) (def theme-provider (interop/react-...
null
https://raw.githubusercontent.com/MrEbbinghaus/fulcro-material-ui-wrapper/058f1dd4b85542914f92f48a4010ea9ad497e48f/src/mui/styles.cljc
clojure
(ns mui.styles (:require [com.fulcrologic.fulcro.algorithms.react-interop :as interop] #?@(:cljs [["@mui/material/styles" :refer [ThemeProvider createMuiTheme useTheme] :rename {styled mui-styled}] ["@mui/material/useMediaQuery" :default useMediaQuery]]))) (def theme-provider (interop/react-...
fa7fcbe8e9eb15615efadf412d5becf639a25929cc03689596ee07af6828ab0f
mkoeppe/cl-bibtex
interpreter.lisp
;; A BibTeX re-implementation in Common Lisp - the BST interpreter Copyright 2001 , 2002 < > ;; ;; This code is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation or any later version , a...
null
https://raw.githubusercontent.com/mkoeppe/cl-bibtex/17a16f564b72da681b1e2cf7afbb496836781828/interpreter.lisp
lisp
A BibTeX re-implementation in Common Lisp - the BST interpreter This code is free software; you can redistribute it and/or found in COPYING-preamble.txt. This preamble is in the style with names and copyright holders altered accordingly. The BST interpreter (defun stack-literal-type (literal) (typecase literal ...
Copyright 2001 , 2002 < > modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation or any later version , as clarified by the preamble of the Franz Inc. preamble at (in-package bibtex-compiler) (defvar *literal-stack* nil "The stac...
bf3908f6064aa32059fd233289dbc68bb9bc3aad8048bf6a3876f9c88c2762e7
casperschipper/ocaml-cisp
cisp5.ml
open Cisp open Midi open Seq let sr = ref 44100.0 (* this maps midi input msg to an output msg (raw midi) *) let midiInputTestFun input = (* this translates input into boolean trigger *) (* a metre boolean mask that triggers notes or rests in the pattern *) (* dummy event *) (* apply metre to default event, u...
null
https://raw.githubusercontent.com/casperschipper/ocaml-cisp/571ffb8e508c5427d01e407ba5e91ff2a4604f40/examples/cisp_backup/oscOut/cisp5.ml
ocaml
this maps midi input msg to an output msg (raw midi) this translates input into boolean trigger a metre boolean mask that triggers notes or rests in the pattern dummy event apply metre to default event, use Silence as filler this checks if it is a note pulse this is the prototype
open Cisp open Midi open Seq let sr = ref 44100.0 let midiInputTestFun input = let trigger = in let mask = seq [1] |> map (fun n () -> Cons (true, repeat n false)) |> concat in st (NoteEvent (MidiCh 1, Pitch 60, Velo 100, seconds 0.2)) in let pitchPattern = seq [60;60;61] |> hold (ch ([|2;2;2...
6c7933c98b19de46d904b558169ab4fdf83f180a15ce5039ca8af356709f24f9
herbelin/coq-hh
functional_principles_types.ml
open Printer open Util open Term open Namegen open Names open Declarations open Pp open Entries open Hiddentac open Evd open Tacmach open Proof_type open Tacticals open Tactics open Indfun_common open Functional_principles_proofs exception Toberemoved_with_rel of int*constr exception Toberemoved let pr_elim_scheme e...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/plugins/funind/functional_principles_types.ml
ocaml
observe (str "starting princ_type := " ++ pr_lconstr_env env princ_type); observe (str "princ_infos : " ++ pr_elim_scheme princ_type_info); observe (str "replacing " ++ pr_lconstr c ++ str " by " ++ pr_lconstr res); let _ = match kind_of_term pre_princ with | Prod _ -> observe(str "compute...
open Printer open Util open Term open Namegen open Names open Declarations open Pp open Entries open Hiddentac open Evd open Tacmach open Proof_type open Tacticals open Tactics open Indfun_common open Functional_principles_proofs exception Toberemoved_with_rel of int*constr exception Toberemoved let pr_elim_scheme e...
fc3690c7991525dce83a5dcd88d0894b90aaf0f3dd3beee68bbfb405909fa8d7
CloudI/cloudi_core
cloudi_logger.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : %%% %%%------------------------------------------------------------------------ %%% @doc %%% ==CloudI Logger Configuration== %%% @end %%% MIT License %%% Copyright ( c ) 202...
null
https://raw.githubusercontent.com/CloudI/cloudi_core/53e40dc70b23b9b70dbab38f01abfcd8f0410f44/src/cloudi_logger.erl
erlang
------------------------------------------------------------------------ @doc ==CloudI Logger Configuration== @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish,...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : MIT License Copyright ( c ) 2023 < mjtruog at protonmail dot com > to deal in the Software without restriction , including without limitation and/or sell copies of the...
317b16533ec386f2db5a886cbc2a60ea5c47715e50fa80b7ee5190e5b80ed493
ruricolist/serapeum
hash-tables.lisp
(in-package :serapeum) (define-do-macro do-hash-table ((key value table &optional return) &body body) "Iterate over hash table TABLE, in no particular order. At each iteration, a key from TABLE is bound to KEY, and the value of that key in TABLE is bound to VALUE." (with-unique-nam...
null
https://raw.githubusercontent.com/ruricolist/serapeum/712cc0fdf5cca9ae2bc82e086f3ee609f99e8d78/hash-tables.lisp
lisp
Don't shadow the outer block. People rarely provide a :size argument to a hash table unless it’s because they anticipate a very large hash table. This means that code that uses hash tables often wastes memory. But most hash tables made with `dict' are never going to in size, so we size them to their contents. Is...
(in-package :serapeum) (define-do-macro do-hash-table ((key value table &optional return) &body body) "Iterate over hash table TABLE, in no particular order. At each iteration, a key from TABLE is bound to KEY, and the value of that key in TABLE is bound to VALUE." (with-unique-nam...
9eaddbaeefd33ca0fcaf201436cebd1471a500d923c867eab296bc1f7b120b1f
ranjitjhala/haddock-annot
Tar.hs
# OPTIONS_GHC -fno - warn - unused - imports # ----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Tar Copyright : ( c ) 2007 , 2008 , 2008 - 2009 -- License : BSD3 -- -- Maintainer : -- P...
null
https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/cabal-install-0.10.3/Distribution/Client/Tar.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Client.Tar License : BSD3 Maintainer : Portability : portable Reading, writing and manipulating \"@.tar@\" archive files. --------------------------------------------------------------------------...
# OPTIONS_GHC -fno - warn - unused - imports # Copyright : ( c ) 2007 , 2008 , 2008 - 2009 module Distribution.Client.Tar ( createTarGzFile, extractTarGzFile, read, write, pack, unpack, Entry(..), entryPath, EntryContent(..), Ownership(..), ...
9f014caca8cc14a22f2208b164f7e2d88defc4a1545e7d4879f8175b65e6e226
xapi-project/xen-api
binpack_test.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/e984d34bd9ff60d7224a841270db0fe1dfe42e7a/ocaml/tests/binpack_test.ml
ocaml
Unit tests and performance tests for the binpacking module Return true if the plan looks good ie 1. no host is overcommitted (free memory after new VMs are subtracted >= 0) 2. every VM running on the dead hosts is mentioned in the plan Return true if the hosts have enough free memory to run the VMs in the pl...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
7168b464d371c7b77baaaaf7fd84282ea1b4bce5cf5486058216104a921987ef
pink-gorilla/webly
ws.cljs
(ns modular.ws.ws (:require [taoensso.timbre :as timbre :refer-macros [debug debugf info error]] [re-frame.core :as rf])) (defn- cb-dispatch-to-reframe [cb-reply] (debugf "dispatching ws callback reply: %s" cb-reply) (if (vector? cb-reply) (do (debug "dispatching cb: " cb-reply) (rf/dispa...
null
https://raw.githubusercontent.com/pink-gorilla/webly/9d6bbac341215d2c66d7bdcc658fb06334741c5f/websocket/src/modular/ws/ws.cljs
clojure
sente send callbacks dont work with reframe sente send callbacks dont work with reframe
(ns modular.ws.ws (:require [taoensso.timbre :as timbre :refer-macros [debug debugf info error]] [re-frame.core :as rf])) (defn- cb-dispatch-to-reframe [cb-reply] (debugf "dispatching ws callback reply: %s" cb-reply) (if (vector? cb-reply) (do (debug "dispatching cb: " cb-reply) (rf/dispa...
0de7c895959fd1b38258fef8775fe15a5f94a19bebb8212b33b07e6097369ec8
sebsheep/elm2node
Functions.hs
# LANGUAGE OverloadedStrings , QuasiQuotes # module Generate.JavaScript.Functions ( functions ) where import qualified Data.ByteString.Builder as B import Text.RawString.QQ (r) -- FUNCTIONS functions :: B.Builder functions = [r| function F(arity, fun, wrapper) { wrapper.a = arity; wrapper.f = fun; r...
null
https://raw.githubusercontent.com/sebsheep/elm2node/602a64f48e39edcdfa6d99793cc2827b677d650d/compiler/src/Generate/JavaScript/Functions.hs
haskell
FUNCTIONS
# LANGUAGE OverloadedStrings , QuasiQuotes # module Generate.JavaScript.Functions ( functions ) where import qualified Data.ByteString.Builder as B import Text.RawString.QQ (r) functions :: B.Builder functions = [r| function F(arity, fun, wrapper) { wrapper.a = arity; wrapper.f = fun; return wrapper...
6eded7210afd674332b00e19eba7b927517bc230a2bc6b97ee5b1fe47cfd03e1
tweag/hyperion
Hyperion.hs
module Hyperion ( module Hyperion.Benchmark ) where import Hyperion.Benchmark
null
https://raw.githubusercontent.com/tweag/hyperion/4b123d51cbd4d94891fa1097b5f52bac19839357/src/Hyperion.hs
haskell
module Hyperion ( module Hyperion.Benchmark ) where import Hyperion.Benchmark
1b23d2e1ba0ea90f52c15e6552a3250acd98648bb639da20676d6d1312391fa0
rametta/retros
Retros.hs
module Web.Controller.Retros where import Web.Controller.Prelude import Web.View.Retros.New import Web.View.Retros.Edit import Web.View.Retros.Show import qualified Data.UUID instance Controller RetrosController where beforeAction = ensureIsUser action ShowRetroAction { retroId } = autoRefresh do ret...
null
https://raw.githubusercontent.com/rametta/retros/2a56b2110fa88a7a495e0dfdc45adfa890f2be34/Web/Controller/Retros.hs
haskell
module Web.Controller.Retros where import Web.Controller.Prelude import Web.View.Retros.New import Web.View.Retros.Edit import Web.View.Retros.Show import qualified Data.UUID instance Controller RetrosController where beforeAction = ensureIsUser action ShowRetroAction { retroId } = autoRefresh do ret...
a92df279964016a3b5e3bfb7d8824764f44dd6145c126e8fe424888f283aa9a5
adlai/cjhunt
web.lisp
(in-package :cl-user) (defpackage cjhunt.web (:use :cl :anaphora :alexandria :caveman2 :caveman2.exception :cjhunt.util :cjhunt.config :cjhunt.view :cjhunt.db :cjhunt.bitcoin-rpc :cjhunt.hunt :datafly :sxql) (:export :*web*)) (in-package :cjhun...
null
https://raw.githubusercontent.com/adlai/cjhunt/fb89d8600e6b42c9d6b67dd3fded59907e91a3be/src/web.lisp
lisp
for @route annotation Application Routing rules Shouting drools
(in-package :cl-user) (defpackage cjhunt.web (:use :cl :anaphora :alexandria :caveman2 :caveman2.exception :cjhunt.util :cjhunt.config :cjhunt.view :cjhunt.db :cjhunt.bitcoin-rpc :cjhunt.hunt :datafly :sxql) (:export :*web*)) (in-package :cjhun...
91827ff5f4ee8b9aa56263d8af083b20fd2a72ee8404d3baed8c765dbc18401c
dinosaure/paf-le-chien
test_cohttp.ml
open Lwt.Infix let ( <.> ) f g x = f (g x) let apply v f = f v let reporter ppf = let report src level ~over k msgf = let k _ = over () ; k () in let with_metadata header _tags k ppf fmt = Format.kfprintf k ppf ("%a[%a]: " ^^ fmt ^^ "\n%!") Logs_fmt.pp_header (level, header...
null
https://raw.githubusercontent.com/dinosaure/paf-le-chien/c53cef829b67bc72e829ba28da9a82a5e588ced5/test/test_cohttp.ml
ocaml
open Lwt.Infix let ( <.> ) f g x = f (g x) let apply v f = f v let reporter ppf = let report src level ~over k msgf = let k _ = over () ; k () in let with_metadata header _tags k ppf fmt = Format.kfprintf k ppf ("%a[%a]: " ^^ fmt ^^ "\n%!") Logs_fmt.pp_header (level, header...
da46a010dda3a47fd63bf13d7c35e8ef8bbd5b08057618b77cc0ab3aa87bcaf8
fujita-y/ypsilon
unicode.scm
#!nobacktrace (library (rnrs unicode (6)) (export char-upcase char-downcase char-titlecase char-foldcase char-ci=? char-ci<? char-ci>? char-ci<=? char-ci>=? char-alphabetic? char-numeric? char-whitespace? char-upper-case? char-lower-case? char-title-case? char-general-category ...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/f742470e2810aabb7a7c898fd6c07227c14a725f/sitelib/rnrs/unicode.scm
scheme
#!nobacktrace (library (rnrs unicode (6)) (export char-upcase char-downcase char-titlecase char-foldcase char-ci=? char-ci<? char-ci>? char-ci<=? char-ci>=? char-alphabetic? char-numeric? char-whitespace? char-upper-case? char-lower-case? char-title-case? char-general-category ...
695881d33843de62e785f8b04beba58c35e91a06427f40b29aeabc468c6bb918
vyorkin/tiger
translate.ml
open Core_kernel module F = Frame module Frag = Fragment.Store (* We separate [Semant] from [Translate] module to avoid a huge, unweildy module that does both: type checking and semantic translation *) (* [expr] is an abstract data type, its constructors visible only within the [Translate] module *) type ex...
null
https://raw.githubusercontent.com/vyorkin/tiger/54dd179c1cd291df42f7894abce3ee9064e18def/chapter8/lib/translate.ml
ocaml
We separate [Semant] from [Translate] module to avoid a huge, unweildy module that does both: type checking and semantic translation [expr] is an abstract data type, its constructors visible only within the [Translate] module * "Expression" represented as [Ir.expr] Converts any [expr] to [Ir.expr] (so...
open Core_kernel module F = Frame module Frag = Fragment.Store type expr = | Ex of Ir.expr * " No result " represented as [ Ir.stmt ] | Nx of Ir.stmt * " Conditional " represented as a function from label - pair to [ Ir.stmt ] . If you pass it a true - destination and a false - destination , ...
2b68e6d54e7b70158a8c81be205a6324cdb4556ad8406f5dff43d9ce8fed1243
tezos/tezos-mirror
seq_es.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/448daee0f4ae76893ae524536e428aa0e22f1d60/src/lib_lwt_result_stdlib/traced/structs/seq_es.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
37aca802740077f66ec05f04c5aee0c001f25e8bfe47b35129f70d72126da082
Workiva/eva
core.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/v2/transaction_pipeline/core.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.v2.transaction-pipeline.core "Core logic for the transaction pipeline, provides the entry point for transaction processing via the 'transact' function" (:require [eva.attribute :as attr] ...
27b49915b1a78ab4aab43db71071e99bd8a54a64dfe02e2d7d01c46a04451abf
input-output-hk/project-icarus-importer
Storage.hs
-- | These instances are used for `test/printDB` method. -- Only for debugging and testing purposes. module Pos.Wallet.Aeson.Storage ( ) where import Universum import Data.Aeson (FromJSON (..), FromJSONKey (..), FromJSONKeyFunction (..), ToJSON (..), ToJ...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/wallet/src/Pos/Wallet/Aeson/Storage.hs
haskell
| These instances are used for `test/printDB` method. Only for debugging and testing purposes.
module Pos.Wallet.Aeson.Storage ( ) where import Universum import Data.Aeson (FromJSON (..), FromJSONKey (..), FromJSONKeyFunction (..), ToJSON (..), ToJSONKey (..)) import Data.Aeson.TH (defaultOptions, deriveJSON) import Data.Aeson....
be10c77397edc377d6f43ede964aa63df971e6c0a1aa49ae5e79db21801aba3a
nilern/monnit
reader.cljc
(ns monnit.reader "A computation with an implicit context parameter. An alternative to noisy explicit context parameters and the fragile thread locality of dynamically bound Vars. Implements [[monnit.core/Functor]] and [[monnit.core/Monad]]." (:refer-clojure :exclude [get]) #?(:cljs (:require-macros [monnit.i...
null
https://raw.githubusercontent.com/nilern/monnit/cc5fe2a031ef8540c4f77bb620d05a0f0564292b/src/monnit/reader.cljc
clojure
call [[run]]
(ns monnit.reader "A computation with an implicit context parameter. An alternative to noisy explicit context parameters and the fragile thread locality of dynamically bound Vars. Implements [[monnit.core/Functor]] and [[monnit.core/Monad]]." (:refer-clojure :exclude [get]) #?(:cljs (:require-macros [monnit.i...
31bec159196a45036d60f4aefa20d01b598262988cd98f542783bf9bd34a60d5
nyu-acsys/drift
app-lin-ord2.ml
let app (ab:int) (af:int->unit) ax = af ax let check (cx:int) (cy:int) = assert (cx = cy) let main_p (a:int) (b:int) = app (4 * a + 2 * b) (check (4 * a + 2 * b)) (4 * a + 2 * b) let main (w:unit) = let _ = main_p 1 1 in let _ = for i = 1 to 1000000 do main ( Random.int 1000 ) ( Random.int 1...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DOrder/high/app-lin-ord2.ml
ocaml
let app (ab:int) (af:int->unit) ax = af ax let check (cx:int) (cy:int) = assert (cx = cy) let main_p (a:int) (b:int) = app (4 * a + 2 * b) (check (4 * a + 2 * b)) (4 * a + 2 * b) let main (w:unit) = let _ = main_p 1 1 in let _ = for i = 1 to 1000000 do main ( Random.int 1000 ) ( Random.int 1...
955d4508b8d7564a058bbb194519a9b0ff9db2d7c0a5d3559d76dc6995d6255f
fbellomi/crossclj
core.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/fbellomi/crossclj/7630270ebe9ea3df89fe3d877b2571e6eae1062b/src/cloned/clojure/tools/analyzer/js/cljs/core.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns cloned.clojure.tools.analyzer.js.cljs.core (:refer-clojure :exclude [-> ->> .. amap and areduce alength aclone assert binding bound-fn case comment cond condp declare definline definterface defmethod defmulti defn defn- defonce ...