_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
8c18f246554e7adbab645eea88ca6f40c119cdc2c9bc4dca084d2d74fcbf969e
elaforge/karya
Sysex.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt {- | Support for generating and parsing sysex files from a "spec" file. TODO I need to support disjoint subsections, e.g. the different effects blocks depending on the value of a...
null
https://raw.githubusercontent.com/elaforge/karya/70143881509190c33d63dc0246e227e634db691c/Instrument/Sysex.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Support for generating and parsing sysex files from a "spec" file. TODO I need to support disjoint subsections, e.g. the different effects blocks depending on the value of an enum. * parse files |...
Copyright 2013 module Instrument.Sysex where import qualified Control.Monad.Except as Except import qualified Control.Monad.Writer.Strict as Writer import qualified Data.Bits as Bits import Data.Bits ((.&.), (.|.)) import qualified Data.ByteString as B import Data.ByteString (ByteString) import...
6bab84fc0fa6caf111aec387db855a25bfae38f298a22e2b0a1abab17646515a
acieroid/overscore
project.clj
(defproject overscore "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/tools.logging "0.2.3"] [org.clojure/math.numeric-tower "0.0.2"...
null
https://raw.githubusercontent.com/acieroid/overscore/71649b37c415482b6c4ab150290ef0719649d359/project.clj
clojure
Used only to plot some stuff [incanter "1.5.0-SNAPSHOT"]
(defproject overscore "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/tools.logging "0.2.3"] [org.clojure/math.numeric-tower "0.0.2"...
a6a78a0b4c912f0ef421af6321b1975bfa84778862632e5ba6531e3c7c0ba105
ds-wizard/engine-backend
SubmissionService.hs
module Wizard.Service.Submission.SubmissionService where import Control.Monad.Except (throwError) import Control.Monad.Reader (asks, liftIO) import qualified Data.List as L import qualified Data.Map.Strict as M import Data.Time import qualified Data.UUID as U import Shared.Model.Error.Error import Shared.Util.Uuid im...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Service/Submission/SubmissionService.hs
haskell
-------------------------------- PRIVATE --------------------------------
module Wizard.Service.Submission.SubmissionService where import Control.Monad.Except (throwError) import Control.Monad.Reader (asks, liftIO) import qualified Data.List as L import qualified Data.Map.Strict as M import Data.Time import qualified Data.UUID as U import Shared.Model.Error.Error import Shared.Util.Uuid im...
0216e3f4d9cb6c9b1db36c31f10e01c9e7012f282b323156fa06a30fc2f32585
metaocaml/ber-metaocaml
pr8548_split.ml
(* TEST files = "mapping.ml range_intf.ml ranged_intf.ml range.ml ranged.ml" * setup-ocamlc.byte-build-env ** ocamlc.byte flags = "-no-alias-deps -w -49 -o Pr8548__Mapping" module = "mapping.ml" ** ocamlc.byte flags = "-no-alias-deps -open Pr8548__Mapping -o pr8548__Range_intf.cmo" module = "range_intf.ml" *** ocamlc.b...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-misc/pr8548_split.ml
ocaml
TEST files = "mapping.ml range_intf.ml ranged_intf.ml range.ml ranged.ml" * setup-ocamlc.byte-build-env ** ocamlc.byte flags = "-no-alias-deps -w -49 -o Pr8548__Mapping" module = "mapping.ml" ** ocamlc.byte flags = "-no-alias-deps -open Pr8548__Mapping -o pr8548__Range_intf.cmo" module = "range_intf.ml" *** ocamlc.byt...
c9262e297ece014616fe547e857040dd06215937939ec650d9ad5edd44302cae
infinisil/on-demand-minecraft
Connection.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE GADTs #-} # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # {-# LANGUAGE DataKinds #-} # LANGUAGE LambdaCase # module Connection where import Config import Data.Maybe (fromMaybe) import Minecraft.Types import Minecraft.Protocol impo...
null
https://raw.githubusercontent.com/infinisil/on-demand-minecraft/303367d49057eed7a4a8889fe5232394934b3923/lib/Connection.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE GADTs # # LANGUAGE DataKinds # TODO: Listen on all addresses to support both IPv4 and IPv6?
# LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE LambdaCase # module Connection where import Config import Data.Maybe (fromMaybe) import Minecraft.Types import Minecraft.Protocol import Minecraft.Effect import Polysemy import Polysemy.Error import Polysemy.Async...
036a79972371d426ba4962c1da48cd5e5998061046dd74af92661b197f791e95
input-output-hk/cardano-sl
Class.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # -- | Definitions for class of monads that capture logic of processing -- delegate certificates (proxy secret keys). module Pos.Chain.Delegation.Class ( DlgMemPool , DelegationWrap (..) , dwMessageCache , dwProxySKPool ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/chain/src/Pos/Chain/Delegation/Class.hs
haskell
| Definitions for class of monads that capture logic of processing delegate certificates (proxy secret keys). ------------------------------------------------------------------------- Delegation in-memory data -------------------------------------------------------------------------- Notice: LRU caches in datatypes...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # module Pos.Chain.Delegation.Class ( DlgMemPool , DelegationWrap (..) , dwMessageCache , dwProxySKPool , dwPoolSize , dwTip , DelegationVar , MonadDelegation , askDelegationState )...
a7137dcd6d9878a14962fe254d1efce4776b25bd0344fda7e2a671265b46bf42
orionsbelt-battlegrounds/obb-rules
game_progress_test.cljc
(ns obb-rules.game-progress-test (:require [obb-rules.game-progress :as game-progress] [obb-rules.game :as game] [obb-rules.element :as element] [obb-rules.unit :as unit] [obb-rules.board :as board] #?(:clj [clojure.test :refer [deftest testing is]] ...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/test/obb_rules/game_progress_test.cljc
clojure
(ns obb-rules.game-progress-test (:require [obb-rules.game-progress :as game-progress] [obb-rules.game :as game] [obb-rules.element :as element] [obb-rules.unit :as unit] [obb-rules.board :as board] #?(:clj [clojure.test :refer [deftest testing is]] ...
87a93dcccb880cb155a7b2264d1130d7f27cf66509ae76bf581bdba29458085b
kitten/bs-flow-parser
object_parser.ml
* * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the...
null
https://raw.githubusercontent.com/kitten/bs-flow-parser/00630c06016b51a7040ef4160ed2999cd208babd/src/object_parser.ml
ocaml
A module for parsing various object related things, like object literals * and classes this is a getter or setter, it cannot be async It's not clear how type params on getters & setters would make sense * in Flow's type system. Since this is a Flow syntax extension, we might * as well disallow i...
* * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the...
20c12300a09ddd5241808ac14516bda9235e22b5fdd3938ccd86b70eaa656844
spurious/sagittarius-scheme-mirror
csv.scm
-*- mode : scheme ; coding : utf-8 ; -*- #!compatible (import (rnrs) (sagittarius) (text csv) (srfi :64 testing)) (define csv-file (string-append (current-directory) "/test/data/data.csv")) (define expected-result "\"header\",\"value\"\r\n\"r1\",\"r2\",\"r3\"\r\n\"r4\",\"r5\",\"r6\",\r\n\"a,\"\",a\",\"b\",\"c\"\...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/text/csv.scm
scheme
coding : utf-8 ; -*-
#!compatible (import (rnrs) (sagittarius) (text csv) (srfi :64 testing)) (define csv-file (string-append (current-directory) "/test/data/data.csv")) (define expected-result "\"header\",\"value\"\r\n\"r1\",\"r2\",\"r3\"\r\n\"r4\",\"r5\",\"r6\",\r\n\"a,\"\",a\",\"b\",\"c\"\r\n") (test-begin "(run-text-csv-tests)") ...
9891faf20ba825aaedcefe4a37060b7c49dc03ab600af795bd71a76b97eadb13
akhesaCaro/haskell-breakout
CollisionDetection.hs
module CollisionDetection ( detectDotsCollision , Speed , collisionToSpeed , bricksCollision , CollisionSide(..) , itemsCollision ) where import Data.List (sortOn) import Data.Maybe import GameBoard import Maths -- | Collision side data CollisionSide = LeftSide | TopSide | RightSide | BottomSide...
null
https://raw.githubusercontent.com/akhesaCaro/haskell-breakout/80e70b1eed8b78227b0683cf5b460caea41ae377/src/CollisionDetection.hs
haskell
| Collision side Aliases | calculate if there a hit between an item and the paddle, if so, it return the items list and the hitten itemType list ^ paddle ^ item list | Calculate if there a hit between an item and the paddle ^ Paddle ^ item ^ item updated the system the list of bricks updated and the new ...
module CollisionDetection ( detectDotsCollision , Speed , collisionToSpeed , bricksCollision , CollisionSide(..) , itemsCollision ) where import Data.List (sortOn) import Data.Maybe import GameBoard import Maths data CollisionSide = LeftSide | TopSide | RightSide | BottomSide deriving (Show) ...
c0cdc7126d4faebbc4b3a44af1ac767031b8e70e02444448cceac91e4007bba6
billstclair/truledger
sendmail.lisp
; -*- mode: lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Truledger mail sending . ;;; A thin wrapper around cl-smtp:send-email, which computes ;;; the smtp host from the to domain. ;;; (in-package :truledger) (defun mx-hosts (domain) "Return the mail servers for DOMAIN, sor...
null
https://raw.githubusercontent.com/billstclair/truledger/1081ac299a098abc622c9b96386c83f6f8ae2551/src/sendmail.lisp
lisp
-*- mode: lisp -*- A thin wrapper around cl-smtp:send-email, which computes the smtp host from the to domain. 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 WAR...
Truledger mail sending . (in-package :truledger) (defun mx-hosts (domain) "Return the mail servers for DOMAIN, sorted by priority" (let* ((stream (run-program "host" `("-t" "MX" ,domain) :output :stream)) (lines (loop with needle = "handled by " with needle-len = ...
217e7d9ce46b86db5c2666f4c9d9e8eb2280f7e73419cc5faeed632a26b62b25
deadtrickster/prometheus.cl
basic.lisp
(in-package #:prometheus.formats.text.test) (plan 1) (subtest "Basic test" (with-fresh-registry (let ((rc (prom:make-counter :name "requests_counter" :help "Hunch\\entoot requests counter" :labels '("type"))) (ic (prom:make-int-counter :name "irequests_counter" :help "Hunchentoot requests counter" :la...
null
https://raw.githubusercontent.com/deadtrickster/prometheus.cl/60572b793135e8ab5a857d47cc1a5fe0af3a2d53/t/formats/text/basic.lisp
lisp
(in-package #:prometheus.formats.text.test) (plan 1) (subtest "Basic test" (with-fresh-registry (let ((rc (prom:make-counter :name "requests_counter" :help "Hunch\\entoot requests counter" :labels '("type"))) (ic (prom:make-int-counter :name "irequests_counter" :help "Hunchentoot requests counter" :la...
01fae934d7be2d30f257a5938db1c9a0d4e7931516f5018832d86881547c28d9
facebook/pyre-check
fetchCallables.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/b3388164bb4de1224e04fea842d5d532b8f077c1/source/interprocedural/fetchCallables.ml
ocaml
FetchCallables: implements the logic that discovers all functions and methods * to analyze, and categorize them. Non-stub callables that are in files within the source paths * (as opposed to being in the search path). Return non-stub callables that are in files within the source paths (as opposed to being in ...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
abb42f6af6b167058943babd1b71b0b6f11221bdae243ce6d310a296767b951f
skeuchel/needle
WeakenWfTerm.hs
{-# LANGUAGE GADTs #-} module KnotCore.Elaboration.Lemma.WeakenWfTerm where import Coq.StdLib import Coq.Syntax import KnotCore.Syntax import KnotCore.Elaboration.Core import KnotCore.Elaboration.Eq import Control.Applicative import Control.Monad ((>=>)) import Data.Maybe (catMaybes) import Data.Traversable (for, t...
null
https://raw.githubusercontent.com/skeuchel/needle/25f46005d37571c1585805487a47950dcd588269/src/KnotCore/Elaboration/Lemma/WeakenWfTerm.hs
haskell
# LANGUAGE GADTs # | HS TM k => (weaken_wfTm k h t H) C0 (HS TM (appendHvl h k)) (shifthvl_TM_here (appendHvl h k))
module KnotCore.Elaboration.Lemma.WeakenWfTerm where import Coq.StdLib import Coq.Syntax import KnotCore.Syntax import KnotCore.Elaboration.Core import KnotCore.Elaboration.Eq import Control.Applicative import Control.Monad ((>=>)) import Data.Maybe (catMaybes) import Data.Traversable (for, traverse, sequenceA) le...
c7e0f85bcf0f212913c1afefcbbca74bd92d903e6208eb2357b085eddac3ff6a
alang9/dynamic-graphs
Suite.hs
import qualified Data.Graph.Dynamic.EulerTour.Tests import qualified Data.Graph.Dynamic.Internal.Avl.Tests import qualified Data.Graph.Dynamic.Internal.Random.Tests import qualified Data.Graph.Dynamic.Internal.Splay.Tests import qualified Data.Graph.Dynamic.Levels.Tests import Test.Framework main :: IO () ma...
null
https://raw.githubusercontent.com/alang9/dynamic-graphs/b88f001850c7bee8faa62099e93172a0bb0df613/tests/Suite.hs
haskell
import qualified Data.Graph.Dynamic.EulerTour.Tests import qualified Data.Graph.Dynamic.Internal.Avl.Tests import qualified Data.Graph.Dynamic.Internal.Random.Tests import qualified Data.Graph.Dynamic.Internal.Splay.Tests import qualified Data.Graph.Dynamic.Levels.Tests import Test.Framework main :: IO () ma...
6bfdb7f0d59f1c107e7e6d9c4b585b6de088b80713da3bd651287aedb7bfbf6a
polyfy/polylith
settings_test.clj
(ns polylith.clj.core.workspace.settings-test (:require [clojure.test :refer :all] [polylith.clj.core.workspace.settings :as settings])) (def projects [{:name "car"} {:name "clojure"} {:name "backend-system"} {:name "banking-system"} {:name "hel...
null
https://raw.githubusercontent.com/polyfy/polylith/ca7c38eb2df7a489202742ac28c0cfe9ef9ae9d2/components/workspace/test/polylith/clj/core/workspace/settings_test.clj
clojure
(ns polylith.clj.core.workspace.settings-test (:require [clojure.test :refer :all] [polylith.clj.core.workspace.settings :as settings])) (def projects [{:name "car"} {:name "clojure"} {:name "backend-system"} {:name "banking-system"} {:name "hel...
b1d15e6f99fea4c66288f59e6cb925e7013b6019472cf29a2e35308ca7589229
no-defun-allowed/oclcl-petalisp
package.lisp
(defpackage :oclcl-petalisp (:use :cl) (:export #:list-platforms #:choose-device)) (defpackage :oclcl-petalisp-primops (:use) (:export #:is-equal #:select #:define-primop))
null
https://raw.githubusercontent.com/no-defun-allowed/oclcl-petalisp/2dc7c162697a05b34487d5abb36d331e918b69ea/Code/package.lisp
lisp
(defpackage :oclcl-petalisp (:use :cl) (:export #:list-platforms #:choose-device)) (defpackage :oclcl-petalisp-primops (:use) (:export #:is-equal #:select #:define-primop))
7b97a76034ee8e5fc5f2726f81187c6d772fe58b672b33930cdf6bf73059e77d
holyjak/minimalist-fulcro-template-backendless
client.cljs
(ns com.example.client (:require [com.example.app :refer [app]] [com.example.ui :as ui] [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.components :as comp] [com.fulcrologic.fulcro.routing.dynamic-routing :as dr])) (defn ^:export init "Called by shadow-cljs upon initialization, ...
null
https://raw.githubusercontent.com/holyjak/minimalist-fulcro-template-backendless/964f08bff0eba4001b3377a902360c56c5d1347d/src/com/example/client.cljs
clojure
make ready, if you want to use dynamic routing...
(ns com.example.client (:require [com.example.app :refer [app]] [com.example.ui :as ui] [com.fulcrologic.fulcro.application :as app] [com.fulcrologic.fulcro.components :as comp] [com.fulcrologic.fulcro.routing.dynamic-routing :as dr])) (defn ^:export init "Called by shadow-cljs upon initialization, ...
a86b9b46f85a9c17ad62ff46b6577c582cdc3bc04ac475cbb32cd3e6c9d074ac
larcenists/larceny
srfi-17-test.sps
; Test suite for SRFI-17 2004 - 01 - 01 / lth ; $ Id$ (import (except (rnrs base) set!) (rnrs io simple) (srfi :17 generalized-set!)) (define (writeln . xs) (for-each display xs) (newline)) (define (fail token . more) (writeln "Error: test failed: " token) #f) (or (equal? '(37 . 2) (let ...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/lib/SRFI/test/srfi-17-test.sps
scheme
Test suite for SRFI-17 Oh, I grow weak... Test the ability to define our own setters. getter-with-setters
2004 - 01 - 01 / lth $ Id$ (import (except (rnrs base) set!) (rnrs io simple) (srfi :17 generalized-set!)) (define (writeln . xs) (for-each display xs) (newline)) (define (fail token . more) (writeln "Error: test failed: " token) #f) (or (equal? '(37 . 2) (let ((v (cons 1 2))) (set! (...
8e63d5321ec8c85fd4f45f78c74e22cd16cd37a9313e2df6dffdc0bd71a44aa1
tsoding/HyperNerd
Links.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE LambdaCase # module Bot.Links ( trustCommand , untrustCommand , amitrustedCommand , istrustedCommand , internalMessageRoles , linkFilter , textContainsLink ) where import Bot.Replies import Control.Monad import Control.Monad.Trans....
null
https://raw.githubusercontent.com/tsoding/HyperNerd/5322580483c5c05179bc455a6f94566d398bccdf/src/Bot/Links.hs
haskell
# LANGUAGE OverloadedStrings # TODO(#264): trusted users system doesn't handle name changes TODO(#537): there is no way to add more internal roles
# LANGUAGE QuasiQuotes # # LANGUAGE LambdaCase # module Bot.Links ( trustCommand , untrustCommand , amitrustedCommand , istrustedCommand , internalMessageRoles , linkFilter , textContainsLink ) where import Bot.Replies import Control.Monad import Control.Monad.Trans.Maybe import Data.Either import Dat...
bdd09789034b508a4c0489199c4ba9a9bd7b29a8ff40a4990ad2d19a3d113fba
ocsigen/ocaml-eliom
boyer.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/misc/boyer.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type term = Var of int | Prop of head * term list and head = { name: string; mutable pro...
cfdf29b189d6d3f3cd99d5f60ed8d97c8c681c94c30d1d34d8e9f4988ab81f34
dwayne/eopl3
parser.test.rkt
#lang racket (require "./parser.rkt") (require rackunit) (check-equal? (parse "1") (a-program (const-exp 1))) (check-equal? (parse "x") (a-program (var-exp 'x))) (check-equal? (parse "-(5, y)") (a-program (diff-exp (const-exp 5) (var-exp 'y)))) (check-equal? (parse "zero?(z)") (a-program (zero?-exp (var-e...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/03-ch3/interpreters/racket/LET/parser.test.rkt
racket
#lang racket (require "./parser.rkt") (require rackunit) (check-equal? (parse "1") (a-program (const-exp 1))) (check-equal? (parse "x") (a-program (var-exp 'x))) (check-equal? (parse "-(5, y)") (a-program (diff-exp (const-exp 5) (var-exp 'y)))) (check-equal? (parse "zero?(z)") (a-program (zero?-exp (var-e...
c6d97876834ac07e1915d84b28c282ca00c660d707680859f02000fb771ce0ea
mzp/coq-ruby
depends.ml
(************************************************************************) (* v * The Coq Proof Assistant *) (* <O___,, * *) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/contrib/interface/depends.ml
ocaml
********************************************************************** v * The Coq Proof Assistant <O___,, * // * This file is distributed under the terms of the * GNU Lesser General P...
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright © 2007 , < > You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 0...
5d46d4e5a3a78b5a9b62364d5c70740b23de7b97eef0d50c30d3292d993aeec7
basho/riak_cs
riak_cs_storage_console.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/src/riak_cs_storage_console.erl
erlang
--------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permiss...
Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
61bae93f1d50181bd32d4321ad00f6ec683c125aa91d01e501b810a453e1667d
pepeiborra/narradar
Main.hs
# LANGUAGE CPP # {-# LANGUAGE PackageImports, NoImplicitPrelude #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE RankNTypes #-} # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # {-# LANGUAGE GADTs #-} module Main where import Control.Applicati...
null
https://raw.githubusercontent.com/pepeiborra/narradar/bc53dcad9aee480ab3424a75239bac67e4794456/src/Main.hs
haskell
# LANGUAGE PackageImports, NoImplicitPrelude # # LANGUAGE RankNTypes # # LANGUAGE GADTs # import "monad-param" Control.Monad.Parameterized hiding (Monad(..)) hPutStrLn stderr (printf "Log written to %s.pdf" file) ------------------------------ Command Line Options handling ------------------------------ parseSolv...
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # # LANGUAGE RecordWildCards # module Main where import Control.Applicative import Control.Monad import Data.List import Data.Maybe import Data.Monoid import System.Cmd import...
2cd476ac863ffb96943f816d5502b58b70f9a9361619513676904c6a3c65a2e0
reborg/clojure-essential-reference
2.clj
< 1 > ["String index out of range: 34" "String index out of range: 48" "String index out of range: 3"]) < 2 > ( " 34 " " 48 " " 3 " )
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/StringsandRegularExpressions/subs%2Csplitandsplit-lines/2.clj
clojure
< 1 > ["String index out of range: 34" "String index out of range: 48" "String index out of range: 3"]) < 2 > ( " 34 " " 48 " " 3 " )
d02dbc57e1fce0c0763a591c3ec34b2cbb3169a9891e4b346bcd8703568aca01
xu-hao/QueryArrow
Compute.hs
module QueryArrow.Semantics.Compute where import QueryArrow.DB.ResultStream import QueryArrow.Syntax.Term import QueryArrow.ListUtils import QueryArrow.DB.DB import QueryArrow.Semantics.Value import QueryArrow.Syntax.Type import Prelude hiding (lookup) import Data.Map.Strict (Map, empty, insert, alter, lookup, mapKe...
null
https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-common/src/QueryArrow/Semantics/Compute.hs
haskell
module QueryArrow.Semantics.Compute where import QueryArrow.DB.ResultStream import QueryArrow.Syntax.Term import QueryArrow.ListUtils import QueryArrow.DB.DB import QueryArrow.Semantics.Value import QueryArrow.Syntax.Type import Prelude hiding (lookup) import Data.Map.Strict (Map, empty, insert, alter, lookup, mapKe...
9dc6ab943105eb81de2dacfd60ca02a53a3311b03e15c2d0d43da5588628145a
willijar/LENS
sensor.lisp
;; Sensor implementation for WSN nodes Copyright ( C ) 2014 Dr. Author : Dr. < > ;; Keywords: ;;; Copying: This file is part of Lisp Educational Network Simulator ( LENS ) ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as p...
null
https://raw.githubusercontent.com/willijar/LENS/646bc4ca5d4add3fa7e0728f14128e96240a9f36/networks/wsn/core/sensor.lisp
lisp
Sensor implementation for WSN nodes Keywords: Copying: This program is free software: you can redistribute it and/or modify (at your option) any later version. LENS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A ...
Copyright ( C ) 2014 Dr. Author : Dr. < > This file is part of Lisp Educational Network Simulator ( LENS ) it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General ...
d0288b3df419f491d674c17871e9214c782c830528f0b6ca3d4e0dd21df9c95e
ChrisPenner/react-tui
CoreHooks.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DerivingStrategies # # LANGUAGE ScopedTypeVariables # # LANGUAGE KindSignatures # # LANGUAGE DataKinds # # LANGUAGE TypeApplications # # LANGUAGE LambdaCase # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE NamedFieldPuns # # LANGUAGE TupleSections # # LANGUAGE DerivingVia...
null
https://raw.githubusercontent.com/ChrisPenner/react-tui/141163f3731363767d8a520f3b470d17d638c6eb/src/React/CoreHooks.hs
haskell
For plugin authors If we're tracing context usages, add the dependency Effect should return a "cleanup" function to deregister the effect. Effect should return a "cleanup" function to deregister the effect. Effect should return a "cleanup" function to deregister the effect. A wrapper around use-effect which runs ...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE DerivingStrategies # # LANGUAGE ScopedTypeVariables # # LANGUAGE KindSignatures # # LANGUAGE DataKinds # # LANGUAGE TypeApplications # # LANGUAGE LambdaCase # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE NamedFieldPuns # # LANGUAGE TupleSections # # LANGUAGE DerivingVia...
d01066172db555f5a91d0a9940402fb7eb65c9a964ec93d60460fad4cf96a0e4
simonmar/parconc-examples
ping-tc-notify.hs
# LANGUAGE TemplateHaskell , DeriveDataTypeable , DeriveGeneric # # OPTIONS_GHC -Wall # import Control.Distributed.Process hiding (Message) import Control.Distributed.Process.Closure import Control.Monad import Text.Printf import GHC.Generics (Generic) import Data.Binary import Data.Typeable import DistribUtils -- <...
null
https://raw.githubusercontent.com/simonmar/parconc-examples/840a3f508f9bb6e03961e1b90311a1edd945adba/distrib-ping/ping-tc-notify.hs
haskell
<<Message >> <<pingServer >> <<remotable >> <<master >> <<main >>
# LANGUAGE TemplateHaskell , DeriveDataTypeable , DeriveGeneric # # OPTIONS_GHC -Wall # import Control.Distributed.Process hiding (Message) import Control.Distributed.Process.Closure import Control.Monad import Text.Printf import GHC.Generics (Generic) import Data.Binary import Data.Typeable import DistribUtils data...
5906c01bff43c2993055ad6d5a8dd737566e4ef492f0ccf6c5264ba367580b69
ijvcms/chuanqi_dev
map_20006.erl
-module(map_20006). -export([ range/0, data/0 ]). range() -> {80, 56}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_20006.erl
erlang
-module(map_20006). -export([ range/0, data/0 ]). range() -> {80, 56}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1...
573dee03165ff0f94f7e494457edf251450d97e0427148f82c0d6016e91d877a
jvranish/TheExperiment
Inferrer.hs
# Language GeneralizedNewtypeDeriving , StandaloneDeriving , DeriveFunctor , DeriveFoldable , DeriveTraversable , FlexibleContexts , UndecidableInstances # , StandaloneDeriving , DeriveFunctor , DeriveFolda...
null
https://raw.githubusercontent.com/jvranish/TheExperiment/54ca832d2f62a928a992b4c23dadf9653d13a5a7/src/Language/TheExperiment/Inferrer/Inferrer.hs
haskell
do I put the inferrer in the lookup? Member { memberExpr = mExpr , memberName = name } -> do #TODO think about how to integrate this into the standard library somehow } boolType :: Inferrer TypeRef boolType = newType $ Std SBool voidType :: Inferrer TypeRef voidType = newType $ Std Void hmmmm If we are cur...
# Language GeneralizedNewtypeDeriving , StandaloneDeriving , DeriveFunctor , DeriveFoldable , DeriveTraversable , FlexibleContexts , UndecidableInstances # , StandaloneDeriving , DeriveFunctor , DeriveFolda...
bc1e14b532d97e4059bc4787ccbbb402fabb9b140f863acd4e259f7ac0b13574
ocsigen/js_of_ocaml
main.ml
open Js_of_ocaml open Graphics_js let init canvas = print_endline "initializing"; let () = open_canvas canvas in let () = Graphics_js.loop [ Graphics_js.Button_down ] (fun s -> Graphics_js.draw_rect (s.mouse_x - 5) (s.mouse_y - 5) 10 10) in () let () = Js.export "init" init
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/da9846cd5d0bccb3f7a28dbcb5d5f4a1cd402f70/examples/graphics/main.ml
ocaml
open Js_of_ocaml open Graphics_js let init canvas = print_endline "initializing"; let () = open_canvas canvas in let () = Graphics_js.loop [ Graphics_js.Button_down ] (fun s -> Graphics_js.draw_rect (s.mouse_x - 5) (s.mouse_y - 5) 10 10) in () let () = Js.export "init" init
52d1d5decfa34a50943f13480dd4daf7c939081e0f6643494148bd6d9344c1d0
racket/racket7
writer.rkt
#lang racket/base (require racket/contract "structures.rkt") (provide/contract [write-xml ((document?) (output-port?) . ->* . void?)] [display-xml ((document?) (output-port?) . ->* . void?)] [write-xml/content ((content/c) (output-port?) . ->* . void?)] [display-xml/content ((content/c) (output-port?) . -...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/collects/xml/private/writer.rkt
racket
(empty-tag-shorthand) : (U 'always 'never (listof Symbol)) write-xml/content : Content [Output-port] -> Void display-xml/content : Content [Output-port] -> Void gen-write/display-xml : (Content [Output-port] -> Void) -> Document [Output-port] -> Void display-dtd : document-type oport -> void write-xml : Document ...
#lang racket/base (require racket/contract "structures.rkt") (provide/contract [write-xml ((document?) (output-port?) . ->* . void?)] [display-xml ((document?) (output-port?) . ->* . void?)] [write-xml/content ((content/c) (output-port?) . ->* . void?)] [display-xml/content ((content/c) (output-port?) . -...
6cbe830d0cb398f75ab2f61c742c1a6c301cf1701a685ce8fcdd5cffe80efc53
victorvianna/mini-gcc
pp.mli
* { 2 Utilitaires pour l'impression } open Format val print_list: (formatter -> unit -> unit) -> (formatter -> 'a -> unit) -> formatter -> 'a list -> unit * [ print_list sep print l ] affiche la liste [ l ] . Chaque élément est affiché avec [ print ] . Les éléments sont [ sep ] . Chaque élém...
null
https://raw.githubusercontent.com/victorvianna/mini-gcc/04659816d0a1097ae12b57243572fff9e91c0b13/pp.mli
ocaml
* Une virgule. * Un point-virgule. * Un espace sécable. * Un retour-chariot.
* { 2 Utilitaires pour l'impression } open Format val print_list: (formatter -> unit -> unit) -> (formatter -> 'a -> unit) -> formatter -> 'a list -> unit * [ print_list sep print l ] affiche la liste [ l ] . Chaque élément est affiché avec [ print ] . Les éléments sont [ sep ] . Chaque élém...
2501c7c93178d786c6fa945cfdbc819269a64aabdb0eee04fba0a51e88146204
rtoy/cmucl
ctor.lisp
Copyright ( C ) 2002 < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; 1 . Redistributions of source code must retain the above copyright ;;; notice, this list of condi...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/pcl/rt/ctor.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the document...
Copyright ( C ) 2002 < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . The name of the author may not be used to endorse or promote THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS '' AND ANY EXPRESS ARE DISCL...
972ecf3ec01adca815d49aa1d1661536b6f1826a761de043ac9583eb0b2f838a
otto-de/leinsync
namespaces.clj
(ns leiningen.leinsync.namespaces (:require [clojure.string :as str] [clojure.java.io :as io] [leiningen.core.main :as m] [leiningen.leinsync.utils :as u] [leiningen.leinsync.project-reader :as pr])) (def namespace-def [:sync :namespaces]) (def resource-def [:sync :res...
null
https://raw.githubusercontent.com/otto-de/leinsync/744bab6d59cf2a17a2c9f613f75410a9bc6d7152/src/leiningen/leinsync/namespaces.clj
clojure
source and target exist and unique source exists, target doesn't exist but its location is unique multiple sources and targets exist so ask user for correct locations default
(ns leiningen.leinsync.namespaces (:require [clojure.string :as str] [clojure.java.io :as io] [leiningen.core.main :as m] [leiningen.leinsync.utils :as u] [leiningen.leinsync.project-reader :as pr])) (def namespace-def [:sync :namespaces]) (def resource-def [:sync :res...
49dd864094d5c0f9482072d51db91292ec8bb0841fdb86ad0655f05e8f717018
marineschimel/ilqr_vae
c.ml
include Comm.Mpi (struct let init_rng = Owl_stats_prng.init end)
null
https://raw.githubusercontent.com/marineschimel/ilqr_vae/8bdda2bfcf0729f965b2ab9e5aab5042a240c64d/lib/c.ml
ocaml
include Comm.Mpi (struct let init_rng = Owl_stats_prng.init end)
16325eed00093f5bc68ade05e0e0ddad531f71ff10fb89c3481f478f15e58f54
jbclements/RSound
katy-sliders.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-advanced-reader.ss" "lang")((modname katy-sliders) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-deci...
null
https://raw.githubusercontent.com/jbclements/RSound/c699db1ffae4cf0185c46bdc059d7879d40614ce/rsound/examples/katy-sliders.rkt
racket
about the language level of this file in a form that our tools can easily process. 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, e...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-advanced-reader.ss" "lang")((modname katy-sliders) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #t #t none #f () #f))) (require 2htdp/universe) (require 2htdp/image) (require rso...
9f0c347d1e45ff1c53c0a3fee85ba825323531d47ce5579af220bf167f4d1e37
argp/bap
odoc_extract_mli.ml
* Odoc_generator_batlib - custom documentation generator for Batteries * Copyright ( C ) 2008 , LIFO , Universite d'Orleans * * 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 Foun...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/build/odoc_extract_mli.ml
ocaml
Incomplete From OCamlDoc From the base library Don't print "struct..end" Normally, the root module should be a structure. x.val_name (fun out l -> interleave (self#handle_parameter out) (fun () -> fprintf out " -> ") l ) x.val_parameters
* Odoc_generator_batlib - custom documentation generator for Batteries * Copyright ( C ) 2008 , LIFO , Universite d'Orleans * * 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 Foun...
fa5059977b122aed53dc4f5e0a1cefa14578fd1b0459b07e00e380cb361f090e
marcoheisig/Petalisp
ir-backend.lisp
© 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*- (in-package #:petalisp.ir) ;;; The IR backend converts its supplied arrays to an equivalent IR graph, ;;; binds each buffer to a Lisp array, and directly interprets each kernel ;;; in an order that respects all data dependencies. ;;; ;;; The IR ...
null
https://raw.githubusercontent.com/marcoheisig/Petalisp/a1c85cf71da445ef9c7913cd9ddb5149373211a7/code/ir/ir-backend.lisp
lisp
The IR backend converts its supplied arrays to an equivalent IR graph, binds each buffer to a Lisp array, and directly interprets each kernel in an order that respects all data dependencies. The IR backend is not particularly fast or sophisticated. Its main purpose is for testing. We compare the solutions compu...
© 2016 - 2023 - license : GNU AGPLv3 -*- coding : utf-8 -*- (in-package #:petalisp.ir) (defclass ir-backend (backend) ((%mode :initarg :mode :initform :interpreted :reader ir-backend-mode :type (member :interpreted :compiled)) (%compile-cache :initform (make-hash-table) :rea...
10114482ad0b483ecb3aff034196bf06ac518714fe747ac1533c03167248db85
OCamlPro/scilint
scilabAst.ml
Scilab / OCaml Toolbox - AST for Scilab 5 's syntax * Copyright ( C ) 2013 - OCamlPro - Benjamin CANOU * * This file must be used under the terms of the CeCILL . * This source file is licensed as described in the file COPYING , which * you should have received as part of this distribution...
null
https://raw.githubusercontent.com/OCamlPro/scilint/9d9ddd8e1630ddeae7f4f875bce62b2f65ec17d8/src/ast/scilabAst.ml
ocaml
* AST parameters to tweak it for different uses * A type for locations (depending on the source) * A type for symbols (probably string) * A predefined dummy location value * A predefined dummy meta value * Unique identifiers * The type of unique identifiers, coerceable to int * Unique identifier generator * Typ...
Scilab / OCaml Toolbox - AST for Scilab 5 's syntax * Copyright ( C ) 2013 - OCamlPro - Benjamin CANOU * * This file must be used under the terms of the CeCILL . * This source file is licensed as described in the file COPYING , which * you should have received as part of this distribution...
418fc8d7e972919bbee170967c361faf4c13175822345ca1ce6c70060bb06bdc
i-am-tom/world-building-in-haskell
Annealing.hs
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Example.Annealing where import qualified Codec.Picture as Image import qualified Generator import qualified Map import qualified Render import Map ((?!)) main :: IO () main = do initial <- case Generator.uniform (Map.pos @2 80 80) of Just board -> boar...
null
https://raw.githubusercontent.com/i-am-tom/world-building-in-haskell/fe7369b9069793ee6dd2a11e031a53b4af764d1a/app/Example/Annealing.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Example.Annealing where import qualified Codec.Picture as Image import qualified Generator import qualified Map import qualified Render import Map ((?!)) main :: IO () main = do initial <- case Generator.uniform (Map.pos @2 80 80) of Just board -> boar...
6e4f2fadb504f167d3a70b43a2b41cafb7f43ec33f19c9a0b3df09815ec13030
mirage/ocaml-qcow
qcow_debug.mli
* Copyright ( C ) 2017 < > * * 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 THE AU...
null
https://raw.githubusercontent.com/mirage/ocaml-qcow/2418c66627dcce8420bcb06d7547db171528060a/lib/qcow_debug.mli
ocaml
* [check_references metadata map cluster_bits target] follows the back references from physical offset [target], verifying the references on disk as it goes
* Copyright ( C ) 2017 < > * * 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 THE AU...
25e444eec2a839ce24e9ce10d4cb0c1611e0aaf9a6e741f6b8df2755066263ef
oden-lang/oden
Scanner.hs
module Oden.Scanner ( scan ) where import Control.Monad import System.Directory import System.FilePath import System.Posix.Files import Oden.QualifiedName import Oden.Path import Oden.SourceFile isOdenSourceFile :: FilePath -> Bool isOdenSourc...
null
https://raw.githubusercontent.com/oden-lang/oden/10c99b59c8b77c4db51ade9a4d8f9573db7f4d14/src/Oden/Scanner.hs
haskell
module Oden.Scanner ( scan ) where import Control.Monad import System.Directory import System.FilePath import System.Posix.Files import Oden.QualifiedName import Oden.Path import Oden.SourceFile isOdenSourceFile :: FilePath -> Bool isOdenSourc...
951954c40b859494c353b584ec8035773e710168231c65d94c91b8b3bf149d47
gedge-platform/gedge-platform
rabbit_lager.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_lager). -include_lib("rabbit_comm...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/rabbit_lager.erl
erlang
API For test purposes Lager should have handlers and sinks Error logger forwarding to syslog should be disabled Turn off reformatting for error_logger messages Setting env var to 'undefined' is different from not setting it at all, and lager is sensitive to this difference. Set rabbit.log config variable bas...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_lager). -include_lib("rabbit_common/inc...
06612d8f9dfc8f1feb77e82a22eb60d546b5555641c926e6440e4fbc4b624ff9
ladymeyy/exceptional-monkeys-game-clojure-server
project.clj
(defproject exceptional-monkeys-game-server "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.10.1"] [http-kit "2.5.0"] [compojure "1.6.1"] [danlentz/clj-uuid "0.1.7"] [cheshire "5.6.3"]] :repl-options {:init-ns exceptional-monkeys-game-serv...
null
https://raw.githubusercontent.com/ladymeyy/exceptional-monkeys-game-clojure-server/043f75ca2d814f0beb4fa77924b9b887777e003d/project.clj
clojure
(defproject exceptional-monkeys-game-server "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.10.1"] [http-kit "2.5.0"] [compojure "1.6.1"] [danlentz/clj-uuid "0.1.7"] [cheshire "5.6.3"]] :repl-options {:init-ns exceptional-monkeys-game-serv...
1d82371946739e974134857e9f813448366f0a1c483d312a91c3c91012ba267c
inconvergent/weird
main.lisp
(in-package :weir) (defmacro make-ht (tst &optional (s 20) (r 2f0)) (declare (number s r)) `(make-hash-table :test ,tst :size ,s :rehash-size ,r)) (defun -roll-once (a) (declare (list a)) (append (subseq a 1) (list (first a)))) (defun -ht-get-key (ht key) (declare #.*opt* (hash-table ht) (list key)) (v...
null
https://raw.githubusercontent.com/inconvergent/weird/106d154ec2cd0e4ec977c3672ba717d6305c1056/src/weir/main.lisp
lisp
(a b c) -> (() () ()) TODO: hard reset verts to 0? it is possible to override item copy in copy ht using :key #'copy-item-fx ignores main/nil grp, unless overridden with :main t TODO: what does this return? is it ordered according to input?
(in-package :weir) (defmacro make-ht (tst &optional (s 20) (r 2f0)) (declare (number s r)) `(make-hash-table :test ,tst :size ,s :rehash-size ,r)) (defun -roll-once (a) (declare (list a)) (append (subseq a 1) (list (first a)))) (defun -ht-get-key (ht key) (declare #.*opt* (hash-table ht) (list key)) (v...
6d76ebabcbb9eacdf51c023eced504c3a911f40053f46b99bc7839e035d71551
gsdlab/clafer
Negative.hs
# LANGUAGE TemplateHaskell # Copyright ( C ) 2013 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use ...
null
https://raw.githubusercontent.com/gsdlab/clafer/a30a645ae1e4fc793851e53446d220924038873a/test/Suite/Negative.hs
haskell
Put models in the list above that completly crash the compiler, this will avoid crashing the test suite Note: If the model is giving an unexpected error it should be located in failing/negative not here!
# LANGUAGE TemplateHaskell # Copyright ( C ) 2013 < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to use ...
2a4d7f655aaa6c34cd743a809da88873c9ef8419514332e2d5fe5779d7f8b5cb
haskell-tls/hs-tls
HexDump.hs
module HexDump ( hexdump ) where import qualified Data.ByteString as B import Imports hexdump :: String -> ByteString -> [String] hexdump pre b = disptable (defaultConfig { configRowLeft = pre ++ " | " } ) $ B.unpack b data BytedumpConfig = BytedumpConfig { configRowSize :: Int -- ^ number of b...
null
https://raw.githubusercontent.com/haskell-tls/hs-tls/31e95f40b75b541c9817b6b56c363e74c2f3b57d/debug/src/HexDump.hs
haskell
^ number of bytes per row. ^ number of bytes per group per row. ^ string separating groups. ^ string on the left of the row. ^ string on the right of the row. ^ string separating cells in row. ^ if the printable ascii table is displayed.
module HexDump ( hexdump ) where import qualified Data.ByteString as B import Imports hexdump :: String -> ByteString -> [String] hexdump pre b = disptable (defaultConfig { configRowLeft = pre ++ " | " } ) $ B.unpack b data BytedumpConfig = BytedumpConfig } deriving (Show,Eq) defaultConfig :: Bytedump...
da8281211a7ad7efa249d19d145e631cd8996bf53457e4a5adaf93a157a83a39
kopera/erlang-mqtt
mqtt_app.erl
@private -module(mqtt_app). -behaviour(application). -export([ start/2, stop/1 ]). start(_StartType, _StartArgs) -> mqtt_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/kopera/erlang-mqtt/d4aa0739dfe1e1958e66a96ec9418b655ddc8651/src/mqtt_app.erl
erlang
@private -module(mqtt_app). -behaviour(application). -export([ start/2, stop/1 ]). start(_StartType, _StartArgs) -> mqtt_sup:start_link(). stop(_State) -> ok.
77b9e5e8f9536ba559abad2b5c4e0f01d5ceb04a70bc1e4d8bb612a25449cb3e
ushitora-anqou/alqo
game_test.erl
-module(game_test). -include("game.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(setup(F), {setup, fun start/0, fun stop/1, F}). new_board_test_() -> [ {"new_board creates a valid new board.", ?setup(fun new_board/1)}, {"scenario1; #players is 2.", ?setup(fun scenario1/1)}, {"sc...
null
https://raw.githubusercontent.com/ushitora-anqou/alqo/9900172d765100dec40c00a7aec3c2dc971956f1/test/game_test.erl
erlang
Correct numer of hands correct hand? correct deck? correct attacker card? correct turn? correct next turn? correct ability to stay? correct attack? correctly check if the game has finished? correctly converted into map? Private functions
-module(game_test). -include("game.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(setup(F), {setup, fun start/0, fun stop/1, F}). new_board_test_() -> [ {"new_board creates a valid new board.", ?setup(fun new_board/1)}, {"scenario1; #players is 2.", ?setup(fun scenario1/1)}, {"sc...
4e3a9c3e48282d7d6f9691582cb85ca59a62a24219e64ec61d160cba9a5b9f38
bi1yeu/generation-p
biology_test.clj
(ns generation-p.biology-test (:require [clojure.test :refer [deftest is testing]] [clojure.data.generators :as data.gen] [generation-p.biology :as bio])) (def ^:const rand-seed 666) (deftest patch-crossover-test (binding [data.gen/*rnd* (java.util.Random. rand-seed)] (testing "single ...
null
https://raw.githubusercontent.com/bi1yeu/generation-p/1a00cd2138a77967dc72fc4315c3d50878580fe7/test/generation_p/biology_test.clj
clojure
(ns generation-p.biology-test (:require [clojure.test :refer [deftest is testing]] [clojure.data.generators :as data.gen] [generation-p.biology :as bio])) (def ^:const rand-seed 666) (deftest patch-crossover-test (binding [data.gen/*rnd* (java.util.Random. rand-seed)] (testing "single ...
dc489c60c9514ccdb9c1b5704b7372c7179487243aff449d50e55c6a37a16083
riverford/compound
core.cljc
(ns compound.core (:require [clojure.set :as set] [clojure.spec.alpha :as s] [compound.custom-key :as cu] [compound.secondary-indexes :as csi] [compound.secondary-indexes.many-to-many] [compound.secondary-indexes.many-to-one] [compound.secondary-...
null
https://raw.githubusercontent.com/riverford/compound/cab3f3cbdca041b70fdc9c02f474c0b7c8226d73/src/compound/core.cljc
clojure
------------------------------ Primary index spec ------------------------------ ------------------------------ Compound spec ------------------------------ ------------------------------ Helper functions ------------------------------ ------------------------------ Custom conflict behaviour -------...
(ns compound.core (:require [clojure.set :as set] [clojure.spec.alpha :as s] [compound.custom-key :as cu] [compound.secondary-indexes :as csi] [compound.secondary-indexes.many-to-many] [compound.secondary-indexes.many-to-one] [compound.secondary-...
f01c600dcc2a078233d8a311588ab94dcb6701082959b83253fc3c8e87ac21aa
reactiveml/rml
instantaneous_loop.ml
(**********************************************************************) (* *) (* ReactiveML *) (* *) (* ...
null
https://raw.githubusercontent.com/reactiveml/rml/d3ac141bd9c6e3333b678716166d988ce04b5c80/compiler/other_analysis/instantaneous_loop.ml
ocaml
******************************************************************** ReactiveML ...
Copyright 2002 , 2007 . All rights reserved . version 1.0 . - theme SPI , Laboratoire d'Informatique de Paris 6 ( 2002 - 2005 ) - Verimag , CNRS Grenoble ( 2005 - 2006 ) - projet , ( 2006 - 2007 ) ...
253b86d11d082740284a4a4d54d64e9f5bbca496382b6b7c426fb830d2a948c9
kolmodin/binary
BinaryDerive.hs
# LANGUAGE ScopedTypeVariables # module BinaryDerive where import Data.Generics import Data.List deriveM :: (Typeable a, Data a) => a -> IO () deriveM (a :: a) = mapM_ putStrLn . lines $ derive (undefined :: a) derive :: (Typeable a, Data a) => a -> String derive x = "instance " ++ context ++ "Binary " ++ ins...
null
https://raw.githubusercontent.com/kolmodin/binary/bccbece2e254813f86e0a04f71d9ca3cea68b3bf/tools/derive/BinaryDerive.hs
haskell
# LANGUAGE ScopedTypeVariables # module BinaryDerive where import Data.Generics import Data.List deriveM :: (Typeable a, Data a) => a -> IO () deriveM (a :: a) = mapM_ putStrLn . lines $ derive (undefined :: a) derive :: (Typeable a, Data a) => a -> String derive x = "instance " ++ context ++ "Binary " ++ ins...
7dca5e3fc99d839a4926cd1b91563e28a706656504953c81462e533dfbddd42e
exercism/scheme
example.scm
(import (rnrs)) (define (ignore-char? x) (not (or (char-alphabetic? x) (char-numeric? x) (char=? x #\')))) (define (remove-quotes word) (cond ((< (string-length word) 2) word) ((and (char=? #\' (string-ref word 0)) (char=? #\' (string-ref word (1- (string-length word))))) (remove-quotes (substri...
null
https://raw.githubusercontent.com/exercism/scheme/aa880e6222a393fcf5d672decb5c5dd6fae286ff/exercises/practice/word-count/.meta/example.scm
scheme
(import (rnrs)) (define (ignore-char? x) (not (or (char-alphabetic? x) (char-numeric? x) (char=? x #\')))) (define (remove-quotes word) (cond ((< (string-length word) 2) word) ((and (char=? #\' (string-ref word 0)) (char=? #\' (string-ref word (1- (string-length word))))) (remove-quotes (substri...
68b8e8ba6bd8c2f5e06d003ba444df2e4a2222cab70037a5db8b0d5bd9755391
leksah/leksah
Command.hs
# LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # OPTIONS_GHC -Wall -fno - warn - deprecations # ----------------------------------------------------------------------------- -- -- Module : IDE.Menu Copyright : ( c ) , -- Licen...
null
https://raw.githubusercontent.com/leksah/leksah/fd9c1d80993fb1ee5fd299a16bf373d8c789e737/src/IDE/Command.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- Module : IDE.Menu License : GNU-GPL Maintainer : <maintainer at leksah.org> Stability : provisional Portability : portable | Module for actions, menus and toolbars and the rest ... ---...
# LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # OPTIONS_GHC -Wall -fno - warn - deprecations # Copyright : ( c ) , module IDE.Command ( mkActions , menuDescription , makeMenu , canQuit , quit , aboutDialog , buildStatusbar , newIcons , setSensit...
257d86b8b1b2c2873dde494cd94a42392239f9a48fd80d786edb89515eabf6cf
azimut/shiny
render.lisp
(in-package :shiny) (defparameter *exposure* .5f0) (defun-g treat-uvs ((uv :vec2)) (v! (x uv) (- 1.0 (y uv)))) ;;-------------------------------------------------- ;; 3D - g-pnt with tangent info in tb-data AND textures (defun-g vert-with-tbdata ((vert g-pnt) (tb tb-data) &uniform (model-world :mat4...
null
https://raw.githubusercontent.com/azimut/shiny/774381a9bde21c4ec7e7092c7516dd13a5a50780/examples/infinity-plane/render.lisp
lisp
-------------------------------------------------- 3D - g-pnt with tangent info in tb-data AND textures --------- -------------------- -------------------- (normal (normalize frag-norm)) (direc-light-strength (* *dirlight-mul* light-color (saturate (dot normal (normalize (- *dirlight-pos...
(in-package :shiny) (defparameter *exposure* .5f0) (defun-g treat-uvs ((uv :vec2)) (v! (x uv) (- 1.0 (y uv)))) (defun-g vert-with-tbdata ((vert g-pnt) (tb tb-data) &uniform (model-world :mat4) (world-view :mat4) (view-clip :mat4) (scale :float) Parallax vars (light-pos :vec3) ...
1ba313da7c89cc8241ac47fb7d732250932bbacd95711e74f73cea0cf42ddc2a
facebook/Haxl
ExceptionStackTests.hs
Copyright ( c ) 2014 - present , Facebook , Inc. -- All rights reserved. -- This source code is distributed under the terms of a BSD license , -- found in the LICENSE file. # LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} module ExceptionStackTests (tests) where import Prelude () import Haxl.Core import Haxl....
null
https://raw.githubusercontent.com/facebook/Haxl/8c645b0e20b0eab942111494e042a908ebbe5132/tests/ExceptionStackTests.hs
haskell
All rights reserved. found in the LICENSE file. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2014 - present , Facebook , Inc. This source code is distributed under the terms of a BSD license , # LANGUAGE CPP # module ExceptionStackTests (tests) where import Prelude () import Haxl.Core import Haxl.Prelude import Test.HUnit import qualified ExampleDataSource testEnv :: ReportFlags -> IO...
7e4e7a53249f6a50b12acafd9df185979abe972baebd2f84ae1413b6916d248a
GameAnalytics/gascheduler
gascheduler.erl
This module schedules tasks on 1 or more compute nodes in a cluster . It assumes there is only 1 client creating tasks to be executed . -module(gascheduler). -behaviour(gen_server). %% API -export([start_link/5, start_link/4, stop/1, execute/2, add_worker_node/2, stats...
null
https://raw.githubusercontent.com/GameAnalytics/gascheduler/86ea230e6b0722436f5205b2c3f1c2b2f205a2be/src/gascheduler.erl
erlang
API For workers gen_server callbacks For testing Types The result of executing a worker which is also passed to the client. a set of all nodes that can run workers maximum workers on an individual node how many times to restart a worker before giving up the process that generates tasks and receives status me...
This module schedules tasks on 1 or more compute nodes in a cluster . It assumes there is only 1 client creating tasks to be executed . -module(gascheduler). -behaviour(gen_server). -export([start_link/5, start_link/4, stop/1, execute/2, add_worker_node/2, stats/1, ...
00013b51ff7d8c47907107c10e6b8357df8db5f4e52eb2228a6cc48e2f991168
facebook/flow
find_method.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/313d636324aa5a9a6c3ca374cae3036c503a39b3/src/services/autocomplete/find_method.mli
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
cae8899e877b7c704a257ff4f3037ca034a0ddbacd4e8c5afaa0c5bf75d1696f
waddlaw/TAPL
List.hs
{-# LANGUAGE OverloadedStrings #-} module UntypedLambda.Lib.List where import Language.Core.Types import Language.UntypedLambda import Language.UntypedLambda.Lib.Bool import Language.UntypedLambda.Lib.Church import Language.UntypedLambda.Lib.List import RIO import Test.Tasty import Test.Tasty.HUnit test_ul :: TestTr...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/lambda-untyped/test/UntypedLambda/Lib/List.hs
haskell
# LANGUAGE OverloadedStrings #
module UntypedLambda.Lib.List where import Language.Core.Types import Language.UntypedLambda import Language.UntypedLambda.Lib.Bool import Language.UntypedLambda.Lib.Church import Language.UntypedLambda.Lib.List import RIO import Test.Tasty import Test.Tasty.HUnit test_ul :: TestTree test_ul = testGroup "Untyp...
483c8a52a4104934ddf1764dbd1e4906aef1c24487bf1fb4fe26a7e2000b6aba
ce-box/CE3104-Scheme-Language
04-logical-predicates.rkt
#|--------------------------------------------------- NUMERICAL COMPARATORS Logical predicates are functions that implement the main connectives of Boolean logic. They receive true or false entries and produce them on their departure. In the Scheme language we have: and, or, not. ------------...
null
https://raw.githubusercontent.com/ce-box/CE3104-Scheme-Language/573373b52abb37114520714792c78901bb3ba681/code-examples/04-logical-predicates.rkt
racket
--------------------------------------------------- NUMERICAL COMPARATORS Logical predicates are functions that implement the main connectives of Boolean logic. They receive true or false entries and produce them on their departure. In the Scheme language we have: and, or, not. ---------------...
#lang racket
145735fb8a17f247d3bd02ec49789b7014e2abb4e62810ce209bd1d37b44affd
ocamllabs/ocaml-effects
typetexp.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/typing/typetexp.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Types val transl_simple_type: ...
6113281c76ea7ee40da4d3cd3802e3bafd136dd16a31b7e9ba90d0d74f78641f
haskell-haskey/haskey
Tree.hs
{-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # -- | Module describing the tree structure of the free page database. module Database.Haskey.Alloc.Concurrent.Internal.FreePages.Tree where import Control.Monad ((>=>)) import Data.Foldable (traverse_) import Data.List.NonEmpty (NonEmpty) import qualified Data.List.NonEmp...
null
https://raw.githubusercontent.com/haskell-haskey/haskey/299f070fcb0d287404d78399f903cecf7ad48cdd/src/Database/Haskey/Alloc/Concurrent/Internal/FreePages/Tree.hs
haskell
# LANGUAGE GADTs # | Module describing the tree structure of the free page database. | The main tree structure of the free page database. The main free page database tree maps a 'TxId' to a 'FreeSubtree'. | the subtree structure of the free page database. | Replace the subtree of a certain 'TxId'. | Delete the ...
# LANGUAGE LambdaCase # module Database.Haskey.Alloc.Concurrent.Internal.FreePages.Tree where import Control.Monad ((>=>)) import Data.Foldable (traverse_) import Data.List.NonEmpty (NonEmpty) import qualified Data.List.NonEmpty as NE import Data.BTree.Alloc.Class import Data.BTree.Impure (Tree) import Data.BTree.Im...
768956906eb3d5166b85a7ffb9540c39c94f66495dc93e714a6ae70d156ea1c4
polyfy/polylith
base_test.clj
(ns polylith.clj.core.creator.base-test (:require [clojure.test :refer :all] [polylith.clj.core.creator.brick :as brick] [polylith.clj.core.test-helper.interface :as helper])) (use-fixtures :each helper/test-setup-and-tear-down) (deftest create-base--when-component-already-exists--return-err...
null
https://raw.githubusercontent.com/polyfy/polylith/8586ca47b597d90b24173fce5fefde39e6aeb38d/components/creator/test/polylith/clj/core/creator/base_test.clj
clojure
(ns polylith.clj.core.creator.base-test (:require [clojure.test :refer :all] [polylith.clj.core.creator.brick :as brick] [polylith.clj.core.test-helper.interface :as helper])) (use-fixtures :each helper/test-setup-and-tear-down) (deftest create-base--when-component-already-exists--return-err...
16568423eeedc968ca64ab7062dacfd987a1bb71fc7f5afb2886c9867da9d2f7
camllight/camllight
general.ml
let list_filter p = let rec filter = function a::l -> if p a then a::(filter l) else filter l | [] -> [] in filter;; (* Split `list' in `list1' and `list2' according to `predicate' *) (* predicate list -> list1 list2 *) let list_split p l = list_it (fun a (l1, l2) -> if p a then ...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/camlsearch/source/general.ml
ocaml
Split `list' in `list1' and `list2' according to `predicate' predicate list -> list1 list2
let list_filter p = let rec filter = function a::l -> if p a then a::(filter l) else filter l | [] -> [] in filter;; let list_split p l = list_it (fun a (l1, l2) -> if p a then (a::l1, l2) else (l1, a::l2)) l ([], []);;
5041cb091425036dc667884745dec72e1b69f8756258656f02288ca295574671
melhadad/fuf
gr6.lisp
;;; -*- Mode:Lisp; Syntax:Common-Lisp; -*- ;;; ------------------------------------------------------------ ;;; File : GR6.L ;;; Description : Grammar with types/fset/external Author : Created : 25 Jun 90 Modified : 09 Jan 91 ( New circ . roles ) ;;; Language : Common Lisp ;;; -------...
null
https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/examples/gr6.lisp
lisp
-*- Mode:Lisp; Syntax:Common-Lisp; -*- ------------------------------------------------------------ File : GR6.L Description : Grammar with types/fset/external Language : Common Lisp ------------------------------------------------------------ the role being inspected These roles can be adjectives: T...
Author : Created : 25 Jun 90 Modified : 09 Jan 91 ( New circ . roles ) (in-package "FUG5") (defun role-exists (path) "An external function to test that the role of a clause is given in input. External functions return a piece of grammar." All roles can be nps (msg (format nil "Is t...
3b95ee7bee1f6e86439250d266efaddf47889381981320fe476263f0df4fc3fe
leo-project/leo_gateway
leo_nfs_mount3_xdr.erl
%% %% src/leo_nfs_mount3_xdr was generated by erpcgen (do not edit) %% -module(leo_nfs_mount3_xdr). -export([enc_fhandle/1, dec_fhandle/2]). -export([enc_fhandle3/1, dec_fhandle3/2]). -export([enc_fhstatus/1, dec_fhstatus/2]). -export([enc_mountstat3/1, dec_mountstat3/2, dec_mountstat3_i2a/1]). -export([enc_mountres3_o...
null
https://raw.githubusercontent.com/leo-project/leo_gateway/7bac8912b762688f0ef237b31fee17e30e3888a3/src/leo_nfs_mount3_xdr.erl
erlang
src/leo_nfs_mount3_xdr was generated by erpcgen (do not edit)
-module(leo_nfs_mount3_xdr). -export([enc_fhandle/1, dec_fhandle/2]). -export([enc_fhandle3/1, dec_fhandle3/2]). -export([enc_fhstatus/1, dec_fhstatus/2]). -export([enc_mountstat3/1, dec_mountstat3/2, dec_mountstat3_i2a/1]). -export([enc_mountres3_ok/1, dec_mountres3_ok/2]). -export([enc_mountres3/1, dec_mountres3/2])....
418a4dbcf82c4f9756e6c8676ccbdf03c7ee7283186c79d2cf5ce73dd577e2d6
WorksHub/client
subs.cljc
(ns wh.pages.issue.edit.subs (:require [re-frame.core :refer [reg-sub]] [wh.pages.issue.edit.db :as issue-edit])) (reg-sub ::sub-db (fn [db _] (::issue-edit/sub-db db))) (reg-sub ::current-issue :<- [::sub-db] (fn [db _] (::issue-edit/current-issue db))) (reg-sub ::updating? :<- [::sub-db...
null
https://raw.githubusercontent.com/WorksHub/client/a51729585c2b9d7692e57b3edcd5217c228cf47c/common-pages/src/wh/pages/issue/edit/subs.cljc
clojure
(ns wh.pages.issue.edit.subs (:require [re-frame.core :refer [reg-sub]] [wh.pages.issue.edit.db :as issue-edit])) (reg-sub ::sub-db (fn [db _] (::issue-edit/sub-db db))) (reg-sub ::current-issue :<- [::sub-db] (fn [db _] (::issue-edit/current-issue db))) (reg-sub ::updating? :<- [::sub-db...
43634f414161f6ace144750ff5acbe468bee0379e67cf463cff4fd6bff64fa31
rfkm/zou
project.clj
(defproject zou/cljs-devel "0.1.0-alpha5-SNAPSHOT" :dependencies [[zou/common :version] [zou/web :version :exclusions [hawk]] [org.clojure/tools.nrepl "0.2.12"] [figwheel-sidecar "0.5.10" :exclusions [com.stuartsierra/component ...
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/cljs-devel/project.clj
clojure
for suppressing pedantic warning
(defproject zou/cljs-devel "0.1.0-alpha5-SNAPSHOT" :dependencies [[zou/common :version] [zou/web :version :exclusions [hawk]] [org.clojure/tools.nrepl "0.2.12"] [figwheel-sidecar "0.5.10" :exclusions [com.stuartsierra/component ...
58ab515b6ab74e1b0375c1b8ad52be33318dca798f7bfdd8e2f085390d2517df
xapi-project/message-switch
xcp_channel_protocol.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/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/lib/xcp_channel_protocol.ml
ocaml
* IP, port
* 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...
f4e25aaaded3a2aa46cb0181038065a604c39a3246ed46739c050703ef21c2d9
zadean/emojipoo
emojipoo_log.erl
-module(emojipoo_log). -include("emojipoo.hrl"). -export([ new/4, add/4, add/5, batch/3, range/4, range/5, lookup/2, recover/5, finish/2 ]). -export([ set_max_depth/2, destroy/1 ]). -spec new(string(), integer(), integer(), [_]) -> {ok, #log{}} | {error, term()}. new(Directory, M...
null
https://raw.githubusercontent.com/zadean/emojipoo/d4aea55747de038f1812d3b2d4ec8102dfa124b6/src/emojipoo_log.erl
erlang
repair the log file; storing it in log2 assert log file is gone @doc Add a Key/Value to the log (aka infinity) so never automatically expire the value. It was the database's setting that was 0 so expire this value after KeyExpiryTime seconds elapse. XXX persistent_term storage @doc @end XXX size then, delete...
-module(emojipoo_log). -include("emojipoo.hrl"). -export([ new/4, add/4, add/5, batch/3, range/4, range/5, lookup/2, recover/5, finish/2 ]). -export([ set_max_depth/2, destroy/1 ]). -spec new(string(), integer(), integer(), [_]) -> {ok, #log{}} | {error, term()}. new(Directory, M...
b3aabd8cf1f0ca72c122de3a4775264be5304fb10083f64a1e7fa7d55f0ffdad
camfort/fortran-src
PrettyPrintSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Language.Fortran.PrettyPrintSpec where import Prelude hiding (mod) import Data.Data import Data.Generics.Uniplate.Operations import Data.Maybe (catMaybes) import Language.Fortran.AST as LFA import Language.Fortran.AST.Literal.Boz import Language.Fortran.Version import Langu...
null
https://raw.githubusercontent.com/camfort/fortran-src/cca921b0038e6df76413a267ed58f39b88ca8917/test/Language/Fortran/PrettyPrintSpec.hs
haskell
# LANGUAGE OverloadedStrings # Note that we can't test printing nonconforming BOZs, because the 'Boz.prettyBoz' that gets used in the 'Pretty' instance refuses to pretty print nonconforming syntax.
module Language.Fortran.PrettyPrintSpec where import Prelude hiding (mod) import Data.Data import Data.Generics.Uniplate.Operations import Data.Maybe (catMaybes) import Language.Fortran.AST as LFA import Language.Fortran.AST.Literal.Boz import Language.Fortran.Version import Language.Fortran.PrettyPrint import Tex...
0049351ffe6367a1ed877b3d2be687b20ab146808375025870cf075c0ee9e383
sarabander/p2pu-sicp
3.48.scm
;; Works in Racket ;; (-parallel-execute-in-scheme) (define (parallel-execute . procs) (map thread-wait (map (lambda (proc) (thread proc)) procs))) For MIT Scheme , use parallel - execute from parallel.scm . ;; Other dependencies (define (make-serializer) (let ((mutex (make-mutex))) (la...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/3.4/3.48.scm
scheme
Works in Racket (-parallel-execute-in-scheme) Other dependencies retry Exercise starts here (serial-no) is called. Added account number as a parameter. new message Helper functions to determine lower- and higher-numbered account. pred would be < or > Acquires mutexes in the order of increasing account numbe...
(define (parallel-execute . procs) (map thread-wait (map (lambda (proc) (thread proc)) procs))) For MIT Scheme , use parallel - execute from parallel.scm . (define (make-serializer) (let ((mutex (make-mutex))) (lambda (p) (define (serialized-p . args) (mutex 'acquire) ...
8c92a6c222de365a7d1d4dccc9f6f85580eb331e14e19d4cec934bc2373cf391
m-2k/erlach
config.erl
-module(config). -compile(export_all). log_modules() -> [ % active, % wf, % % n2o_websocket, % % n2o_document, % n2o_query, % n2o_bullet, % % login, % % n2o_dynalo, % n2o_dynroute, % n2o_nitrogen, % root, board, ...
null
https://raw.githubusercontent.com/m-2k/erlach/ce0a19a0550c3457a1fc1d7c40e4f1cb577d7924/apps/erlach/src/config.erl
erlang
active, wf, % n2o_websocket, % n2o_document, n2o_query, n2o_bullet, % login, % n2o_dynalo, n2o_dynroute, n2o_nitrogen, root, profile, % js_session2, % erlach_session, % n2o_nitrogen, n2o_event, % js_session, n2o_rails, twitter, avz, wf_convert, image, utils, u, access, guard, n2o_binary debu...
-module(config). -compile(export_all). log_modules() -> [ board, thread, kvs , html, routes, qs ]. log_level() -> warning. debug() -> false. info() -> spawn(fun()-> wf:info(index,"~p",[mnesia:info()]) end). 30 min
58bd36b43507cd3a6bcfee33d761162893fe91e02c640b4ea8734115330f6d04
adamdoupe/find_ear_rails
variable.ml
type 'a var = { vid : int; vctx : Log.ctx; vkind : 'a; } type 'a t = 'a var Unify.t let deref v = (Unify.value v).vkind let vid t = (Unify.value t).vid let vctx t = (Unify.value t).vctx let compare t1 t2 = Pervasives.compare (vid t1) (vid t2) let union v1 v2 = Log.note "union %d => %d" (vid v1) (vi...
null
https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/src/typing/variable.ml
ocaml
let () = at_exit (fun () -> status "final")
type 'a var = { vid : int; vctx : Log.ctx; vkind : 'a; } type 'a t = 'a var Unify.t let deref v = (Unify.value v).vkind let vid t = (Unify.value t).vid let vctx t = (Unify.value t).vctx let compare t1 t2 = Pervasives.compare (vid t1) (vid t2) let union v1 v2 = Log.note "union %d => %d" (vid v1) (vi...
3206bb77dd40c9312f7107502e95858ffef5fa265cdf7b280ac0ab218d5b2451
haskell/aeson
Properties.hs
# LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # module DataFamilies.Properties (tests) where import Prelude.Compat import DataFamilies.Encoders import DataFamilies.Instances () import PropUtils import Test.Tasty (TestTree, testGroup) import Test.Tasty.QuickCheck (testProperty) ------------------------------------...
null
https://raw.githubusercontent.com/haskell/aeson/d711df76b826942f4a9e791712512c6b19b8c1c8/tests/DataFamilies/Properties.hs
haskell
------------------------------------------------------------------------------
# LANGUAGE CPP # # LANGUAGE NoImplicitPrelude # module DataFamilies.Properties (tests) where import Prelude.Compat import DataFamilies.Encoders import DataFamilies.Instances () import PropUtils import Test.Tasty (TestTree, testGroup) import Test.Tasty.QuickCheck (testProperty) tests :: TestTree tests = testGroup...
0b43b4924c2c3a31cff9fab56e5e6b584b688d6c2cde8662704a6ff766895cca
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote (("base" #:version "8.5.0.3") "source-syntax" "pconvert-lib" "compatibility-lib" "string-constants-lib"))) (define pkg-desc "implementation (no documentation) part of \"typed-racket\"") (define pkg-authors (quote (samth sta...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/share/pkgs/typed-racket-lib/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote (("base" #:version "8.5.0.3") "source-syntax" "pconvert-lib" "compatibility-lib" "string-constants-lib"))) (define pkg-desc "implementation (no documentation) part of \"typed-racket\"") (define pkg-authors (quote (samth sta...
6a946ccf663cea8f687274105f519b8d9aca14650c6ee3bd7544df7bddce1b69
ml4tp/tcoq
modutil.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/plugins/extraction/modutil.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** s Functions upon ML modules.
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Globnames ope...
29b874f4cbdf32e1f801dacac6aa7a3c68b7c4bfcc77fd9a872814e802737454
arttuka/reagent-material-ui
battery_5_bar_two_tone.cljs
(ns reagent-mui.icons.battery-5-bar-two-tone "Imports @mui/icons-material/Battery5BarTwoTone as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def battery-5-bar-t...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/battery_5_bar_two_tone.cljs
clojure
(ns reagent-mui.icons.battery-5-bar-two-tone "Imports @mui/icons-material/Battery5BarTwoTone as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def battery-5-bar-t...
bc82d72277788dd277696fd1788253afe80db712f90aee9ef969346f97b0555e
khibino/haskell-relational-record
SQLServer.hs
-- | Module : Database . Custom . SQLServer Copyright : 2019 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- This module provides custom APIs with appropriate configuration for SQLServer . module Database.Custom.SQLServer ( module Database.Relat...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-schemas/src/Database/Custom/SQLServer.hs
haskell
| License : BSD3 Maintainer : Stability : experimental Portability : unknown This module provides custom APIs with appropriate configuration | From 'Relation' into typed 'Query' with suffix SQL words. ^ relation to finalize building ^ finalized query | Make 'Insert' from derived table and monadic bu...
Module : Database . Custom . SQLServer Copyright : 2019 for SQLServer . module Database.Custom.SQLServer ( module Database.Relational, relationalQuery, insertValue, insertValueNoPH, insertQuery, update, updateNoPH, delete, deleteNoPH, ) where import Language.SQL.Keyword (Keyword) import ...
31d963a6157d3b9566fbd3d9e67d5429bbcdd89a5d0c519b7bf2ab521c591cc5
ndpar/erlang
core.erl
%% %% @doc A collection of frequently used functions. Inspired by Clojure and . %% -module(core). -export([cross/2]). -export([frequencies/1, group_by/2, inc/1, min_by/2, minfree/1, msc/1, msc2/1]). -export([foldl1/2, zipfold/4, zipfold/5]). -import(lists, [filter/2, map/2, max/1]). %% %% @doc Applies pair of func...
null
https://raw.githubusercontent.com/ndpar/erlang/e215841a1d370e0fc5eb6b9ff40ea7ae78fc8763/lib/ndpar/src/core.erl
erlang
@doc A collection of frequently used functions. @doc Applies pair of functions to a pair of arguments. @doc Returns a map from distinct items in List to the number of times they appear. See [] @doc Returns an element `E' of the list with minimum value of `F(E)'. @doc Returns a map of the elements of Lis...
Inspired by Clojure and . -module(core). -export([cross/2]). -export([frequencies/1, group_by/2, inc/1, min_by/2, minfree/1, msc/1, msc2/1]). -export([foldl1/2, zipfold/4, zipfold/5]). -import(lists, [filter/2, map/2, max/1]). -spec cross(Funs :: {F, G}, Args :: {X, Y}) -> {A, B} when F :: fun((X) -> A), G :: ...
27e585355165c920f071f9e8cd3451d56dd7c6329e4796c776b4aa0381b0b1c1
solita/mnt-teet
file_commands_test.clj
(ns ^:db teet.file.file-commands-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [teet.test.utils :as tu] [teet.file.file-model :as file-model] [teet.file.file-storage :as file-storage] [clojure.string :as str] [datomic.client.api :as ...
null
https://raw.githubusercontent.com/solita/mnt-teet/7a5124975ce1c7f3e7a7c55fe23257ca3f7b6411/app/backend/test/teet/file/file_commands_test.clj
clojure
Upload file and replacement for it Create new part and change file to new part
(ns ^:db teet.file.file-commands-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [teet.test.utils :as tu] [teet.file.file-model :as file-model] [teet.file.file-storage :as file-storage] [clojure.string :as str] [datomic.client.api :as ...
94640e8b5d33e09e1e96f6a80c881f6577e70d83f3c4db0b40e0522653fabc35
4clojure/4clojure
golf.clj
(ns foreclojure.golf (:require [ring.util.response :as response] [noir.session :as session]) (:use [hiccup.form :only [form-to check-box]] [hiccup.element :only [link-to]] [foreclojure.utils :only [with-user]] [f...
null
https://raw.githubusercontent.com/4clojure/4clojure/25dec057d9d6871ce52aee9e2c3de7efdab14373/src/foreclojure/golf.clj
clojure
be smarter somehow in future. not sure what the right UI is, atm
(ns foreclojure.golf (:require [ring.util.response :as response] [noir.session :as session]) (:use [hiccup.form :only [form-to check-box]] [hiccup.element :only [link-to]] [foreclojure.utils :only [with-user]] [f...
92fb62e253cf4f0a468496468caf937ef84c3c1eb3f18c1a190db47621172146
alonsodomin/haskell-schema
Simple.hs
# LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE LiberalTypeSynonyms # {-# LANGUAGE RankNTypes #-} module Data.Schema.JSON.Simple where import Control.Functor.HigherOrder import Control.Lens import Data.HashMap.Strict (HashMap) import ...
null
https://raw.githubusercontent.com/alonsodomin/haskell-schema/eea80044758401d7bba70e498c41fef0aca538c9/hschema-aeson/src/Data/Schema/JSON/Simple.hs
haskell
# LANGUAGE RankNTypes # | Define a text primitive | Define a string primitive | Define a scientific number primitive | Define an integral primitive | Define a floating point primitive
# LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE LiberalTypeSynonyms # module Data.Schema.JSON.Simple where import Control.Functor.HigherOrder import Control.Lens import Data.HashMap.Strict (HashMap) import Data.Schema import ...
5417f553b060183aefca13e20ea7e0e9bbb52334d90978068552a1cc8f8c3b30
DSiSc/why3
generic_arg_trans_utils.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/transform/generic_arg_trans_utils.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Term open Decl open Theory exception Arg_trans of string exception Arg_trans_decl of (string * tdecl...
a16d1e34fdeb653159ae52c7f27edaf66feae3776f8aba6eca31f2bc53844bc5
bmeurer/ocamljit2
test2.ml
let yield = ref false let print_message c = for i = 1 to 10000 do print_char c; flush stdout; if !yield then Thread.yield() done let _ = yield := (Array.length Sys.argv > 1) let t1 = Thread.create print_message 'a' let t2 = Thread.create print_message 'b' let _ = Thread.join t1 let _ = Thread.join t2 ;;
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/lib-threads/test2.ml
ocaml
let yield = ref false let print_message c = for i = 1 to 10000 do print_char c; flush stdout; if !yield then Thread.yield() done let _ = yield := (Array.length Sys.argv > 1) let t1 = Thread.create print_message 'a' let t2 = Thread.create print_message 'b' let _ = Thread.join t1 let _ = Thread.join t2 ;;
73a7fe7604b4c175f91455262974f1239c481c2dd8962a7a5518b60715590d3e
dfithian/prune-juice
File.hs
-- |Description: File utilities. module Data.Prune.File where import Prelude import Control.Applicative ((<|>)) import Data.Set (Set) import Data.Traversable (for) import System.Directory (doesDirectoryExist, listDirectory, pathIsSymbolicLink) import System.FilePath.Posix ((</>)) import qualified Data.Set as Set -- ...
null
https://raw.githubusercontent.com/dfithian/prune-juice/474ba1173cd7945fd9edba26d292f43bef2d3b87/src/Data/Prune/File.hs
haskell
|Description: File utilities. |Recursively list files in a directory, ignoring symlinks. don't include "hidden" directories, i.e. those that start with a '.'
module Data.Prune.File where import Prelude import Control.Applicative ((<|>)) import Data.Set (Set) import Data.Traversable (for) import System.Directory (doesDirectoryExist, listDirectory, pathIsSymbolicLink) import System.FilePath.Posix ((</>)) import qualified Data.Set as Set listFilesRecursive :: FilePath -> IO...
84ca42c8f52e4b64870b7388d517082b4ebd5a4becb34308d89db8ae99f563ac
GaloisInc/daedalus
Interp.hs
# LANGUAGE DeriveFunctor , OverloadedStrings , TupleSections # {-# LANGUAGE GADTs, RecordWildCards, BlockArguments #-} # LANGUAGE ViewPatterns # # LANGUAGE PatternGuards # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE ScopedTypeVaria...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/3f180d29441960e35386654ec79a2b205bddc157/src/Daedalus/Interp.hs
haskell
# LANGUAGE GADTs, RecordWildCards, BlockArguments # # LANGUAGE TypeSynonymInstances # # LANGUAGE RankNTypes # # LANGUAGE ConstraintKinds # An interpreter for the typed AST For synthesis ------------------------------------------------------------------------------ Loops ----------------------------------------------...
# LANGUAGE DeriveFunctor , OverloadedStrings , TupleSections # # LANGUAGE ViewPatterns # # LANGUAGE PatternGuards # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleInstances # # LANGUAGE Impli...
9b6c42457915b7399fad795b3d309d2d5ce59b29d7fa450b20fd4d4b2d45b164
realworldocaml/book
expectation.ml
open! Base open Import open Ppx_compare_lib.Builtin open Sexplib0.Sexp_conv module Body = struct type 'a t = | Exact of string | Output | Pretty of 'a | Unreachable [@@deriving_inline sexp_of, compare, equal] let _ = fun (_ : 'a t) -> () let sexp_of_t : 'a. ('a -> Sexplib0.Sexp.t) -> 'a t -> ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_expect/common/expectation.ml
ocaml
open! Base open Import open Ppx_compare_lib.Builtin open Sexplib0.Sexp_conv module Body = struct type 'a t = | Exact of string | Output | Pretty of 'a | Unreachable [@@deriving_inline sexp_of, compare, equal] let _ = fun (_ : 'a t) -> () let sexp_of_t : 'a. ('a -> Sexplib0.Sexp.t) -> 'a t -> ...
e9a5fea53ac7f6b2de6ecdb42c59f2a84cc363e948b1e11edc373be2a4906e29
xapi-project/xen-api
enabled.ml
(** This module sets up the env variable for bisect_ppx which describes where log files are written. *) module D = Debug.Make (struct let name = "coverage" end) let prefix = "org.xen.xapi.coverage" module Bisect = struct let bisect_file = "BISECT_FILE" let dump jobid = let bisect_prefix = Unix.getenv bi...
null
https://raw.githubusercontent.com/xapi-project/xen-api/47fae74032aa6ade0fc12e867c530eaf2a96bf75/ocaml/xapi-idl/lib/coverage/enabled.ml
ocaml
* This module sets up the env variable for bisect_ppx which describes where log files are written. dump coverage information in same location as it would normally get dumped on exit, except also embed the jobid to make it easier to group. Relies on [open_temp_file] generating a unique filename given...
module D = Debug.Make (struct let name = "coverage" end) let prefix = "org.xen.xapi.coverage" module Bisect = struct let bisect_file = "BISECT_FILE" let dump jobid = let bisect_prefix = Unix.getenv bisect_file in let tmp, ch = Filename.open_temp_file ~temp_dir:(Filename.dirname bisect_pref...
fc990308dd3c7c24b799d1c9defe3d12a8568f4f928efbcf4dfc7bc94c09a091
GaloisInc/renovate
Main.hs
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # # LANGUAGE TypeApplications # module Main ( main ) where import Con...
null
https://raw.githubusercontent.com/GaloisInc/renovate/89b82366f84be894c3437852e39c9b4e28666a37/refurbish/tools/refurbish/Main.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # This next flag isn't really needed. It's only included for uniformity. We don't complete words that aren't commands (except for eval) | Print out all of the information requested by the user via the command line 'Options' | Index a coll...
# LANGUAGE DataKinds # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # # LANGUAGE TypeApplications # module Main ( main ) where import Control.Applicative ( (<|>) ) import qualified Control.Exception as X import Control...
fee06d7f9152b11024a70407348084415fe27a172945f9822163dc4c10a7e5c2
kugelblitz/spreadsheet-editor
spreadsheet-editor-demo.rkt
#lang racket (require racket/gui "spreadsheet-editor.rkt") (define cell-contents-hash (make-hash)) (define (get-cell-contents row column) (hash-ref cell-contents-hash (list row column) "")) (define (set-cell-contents! row column contents) (hash-set! cell-contents-hash (list row column) contents)) (d...
null
https://raw.githubusercontent.com/kugelblitz/spreadsheet-editor/73f8cfa89f0534f0bbb72833741cc7d5974ecda8/spreadsheet-editor-demo.rkt
racket
#lang racket (require racket/gui "spreadsheet-editor.rkt") (define cell-contents-hash (make-hash)) (define (get-cell-contents row column) (hash-ref cell-contents-hash (list row column) "")) (define (set-cell-contents! row column contents) (hash-set! cell-contents-hash (list row column) contents)) (d...
0c36d6434b3b3595839a26f21e57cb5f440c5d9c4047a58448ea08bdfa3a1c4a
yetanalytics/xapipe
metrics.clj
(ns com.yetanalytics.xapipe.metrics "Metrics protocol called by xapipe lib. Inspired by " (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as sgen] [clojure.tools.logging :as log])) (defprotocol Reporter (-gauge [this k v] "Set a gauge to an arbitrary value") (-counte...
null
https://raw.githubusercontent.com/yetanalytics/xapipe/323d32f9eaefa03d992aa765ebc259b9ef2985e4/src/lib/com/yetanalytics/xapipe/metrics.clj
clojure
Keys describing gauges Keys describing counters Keys describing histograms Keys describing summaries
(ns com.yetanalytics.xapipe.metrics "Metrics protocol called by xapipe lib. Inspired by " (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as sgen] [clojure.tools.logging :as log])) (defprotocol Reporter (-gauge [this k v] "Set a gauge to an arbitrary value") (-counte...
b87abd6d5c534f8675fe03208e2e5ee608a573e5bf2044f1ae738764ddf8344c
ixmatus/orgmode-parse
Document.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # module Document where import Data.Attoparsec.Text import Data.HashMap.Strict.InsOrd hiding (map) import Data.OrgMode.Parse.Attoparsec.Document import Data.OrgMode.Parse.Attoparsec.Time import ...
null
https://raw.githubusercontent.com/ixmatus/orgmode-parse/89adc4087556bb0dd58a7648a9e7e239463aa059/test/Document.hs
haskell
let subtreeListItemsDoc = parseOnly (parseDocument []) doc assertBool "Expected to parse document" (subtreeListItemsDoc == goldenSubtreeListItemDoc) Headline shall have space after *
# LANGUAGE DuplicateRecordFields # # LANGUAGE OverloadedStrings # module Document where import Data.Attoparsec.Text import Data.HashMap.Strict.InsOrd hiding (map) import Data.OrgMode.Parse.Attoparsec.Document import Data.OrgMode.Parse.Attoparsec.Time import ...
3b84ca6dcd855538c9cc5e4ecb10422e02a57f51d429640e2d505c352f0e9cee
eryx67/vk-api
Users.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # -- | Actions for < Users API> module VK.API.Actions.Users where import qualified Data.Default.Generics as D import qualified Data.Text as T import Network.API.Builder.TH (deriveQueryable', stan...
null
https://raw.githubusercontent.com/eryx67/vk-api/73665a2a3a3ac3b9115fd12360c3bc7191dcb0f8/src/VK/API/Actions/Users.hs
haskell
# LANGUAGE OverloadedStrings # | Actions for < Users API> ^ название города строкой. ^ идентификатор факультета. ^ день рождения. ^ месяц рождения. ^ год рождения. ^ идентификатор группы, среди пользователей которой , subscriptionsExtended :: !(Maybe AddExtended) ^ время в секундах через которое пользователь д...
# LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module VK.API.Actions.Users where import qualified Data.Default.Generics as D import qualified Data.Text as T import Network.API.Builder.TH (deriveQueryable', standard) import VK.API.Actions.Types import VK....
eb88892abc18fea9449997f10e3cfd4a76691140f2390488b5120b3b5ae63720
MLstate/opalang
w_Algebra.ml
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/typer_w/w_Algebra.ml
ocaml
************************************************************************** ************************************************************************** Initially set to [MARK_general_not_seen]. Modified during various processing, then cleared back to [MARK_general_not_seen]. * This is also used to give a name...
Copyright © 2011 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
a8053768bdb918e664756a73cb9126ab04e84b90c7828c79cc2e29d699273a91
nonguix/nonguix
nvidia.scm
SPDX - License - Identifier : GPL-3.0 - or - later ;;; Copyright © 2022 Hilton Chain <> (define-module (nongnu services nvidia) #:use-module (gnu packages) #:use-module (gnu packages linux) #:use-module (gnu services) #:use-module (gnu services base) #:use-module (gnu services linux) #:use-module (gnu se...
null
https://raw.githubusercontent.com/nonguix/nonguix/71252d2d9d1908a1f1b005d2025b0907d5d5c377/nongnu/services/nvidia.scm
scheme
Copyright © 2022 Hilton Chain <> list of file-like list of file-like list of file-like list of string
SPDX - License - Identifier : GPL-3.0 - or - later (define-module (nongnu services nvidia) #:use-module (gnu packages) #:use-module (gnu packages linux) #:use-module (gnu services) #:use-module (gnu services base) #:use-module (gnu services linux) #:use-module (gnu services shepherd) #:use-module (guix...