_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
394a59ef27188e0cc736462be48d202ba856e6c3adb2919b22ab0a5d933218e4
HuwCampbell/orc-haskell
Data.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE FlexibleContexts #-} module Orc.Data.Data ( StructField (..) , StructFieldName (..) , Indexed (..) , makeIndexed , nextIndex , currentIndex , currentValue , prevIndex ) where import Data.Word (Word32)...
null
https://raw.githubusercontent.com/HuwCampbell/orc-haskell/259649bc5fa5c6d8bd850fdad0517af6c028e00e/src/Orc/Data/Data.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE FlexibleContexts #
# LANGUAGE NoImplicitPrelude # module Orc.Data.Data ( StructField (..) , StructFieldName (..) , Indexed (..) , makeIndexed , nextIndex , currentIndex , currentValue , prevIndex ) where import Data.Word (Word32) import qualified Data.Vector as Boxed import Orc.Prelude data ...
61d0ef66c01964eea9084b6d450721f41065138c912330988ce15c8a56cffc8a
racket/redex
rvm-14.rkt
#lang racket/base (require redex/benchmark "util.rkt" redex/reduction-semantics) (provide (all-defined-out)) (define the-error "certain updates to initialized slots could break optimizer assumptions") (define-rewrite bug14a ((where uninit (stack-ref n s_2)) . rest) ==> rest #:context (d...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-benchmark/redex/benchmark/models/rvm/rvm-14.rkt
racket
#lang racket/base (require redex/benchmark "util.rkt" redex/reduction-semantics) (provide (all-defined-out)) (define the-error "certain updates to initialized slots could break optimizer assumptions") (define-rewrite bug14a ((where uninit (stack-ref n s_2)) . rest) ==> rest #:context (d...
49e98dfafb37b20f04f92b934fe4924c77db5d862c21462f2896e32d774d2553
haskell-haskey/haskey
Concurrent.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} module Integration.WriteOpenRead.Concurrent where import Test.Framework (Test, testGroup) import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.QuickC...
null
https://raw.githubusercontent.com/haskell-haskey/haskey/299f070fcb0d287404d78399f903cecf7ad48cdd/tests/Integration/WriteOpenRead/Concurrent.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE RankNTypes # This seed results in out of memory!! ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------------------------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Integration.WriteOpenRead.Concurrent where import Test.Framework (Test, testGroup) import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.QuickCheck import Test.QuickCheck.Monadic import Test.QuickCheck.Rando...
3ba28fdb8bd3a699ba9e570d37bed3222ce19b1ecca3468bdde138c727e5f4d3
clojure-interop/google-cloud-clients
ProductSearchClient$ListProductSetsFixedSizeCollection.clj
(ns com.google.cloud.vision.v1.ProductSearchClient$ListProductSetsFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1 ProductSearchClient$ListProductSetsFixedSizeCollection]))
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1/ProductSearchClient%24ListProductSetsFixedSizeCollection.clj
clojure
(ns com.google.cloud.vision.v1.ProductSearchClient$ListProductSetsFixedSizeCollection (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.vision.v1 ProductSearchClient$ListProductSetsFixedSizeCollection]))
ea6e56e385e5a8a5904ec408712fc93318cc41d8c9ec952c7ef622ccc7570f5e
tamarin-prover/tamarin-prover
AccLemmaItem.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE StandaloneDeriving # # LANGUAGE FlexibleInstances # module Items.AccLemmaItem ( module Items.AccLemmaItem ) where import GHC.Generics (Generic) import Control.DeepSeq (NFData) import Data.Binary (Binary) import Data...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/7b60a75c517d68a3ba894700ebef20bdd36e038e/lib/theory/src/Items/AccLemmaItem.hs
haskell
# LANGUAGE DeriveAnyClass # ---------------------------------------------------------------------------- Accountability Lemmas ---------------------------------------------------------------------------- | An accountability lemma describes an accountability property that holds in the context of a theory
# LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # # LANGUAGE StandaloneDeriving # # LANGUAGE FlexibleInstances # module Items.AccLemmaItem ( module Items.AccLemmaItem ) where import GHC.Generics (Generic) import Control.DeepSeq (NFData) import Data.Binary (Binary) import Data.List import Data.Label as L imp...
8ba5515f3faf17ce7b0fe67c10e082914dc9a9edcd05285b6a69cdc96ed332a5
futurice/haskell-mega-repo
Reminder.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} module Futurice.App.Library.Reminder where import Data.Maybe import Data.Text (intercalate) import Data.Time import Futurice.App.EmailProxy.Client (sendEmail) import Futurice.App.EmailProxy.Types import Futurice.Constants import Fu...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/library-app/src/Futurice/App/Library/Reminder.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # module Futurice.App.Library.Reminder where import Data.Maybe import Data.Text (intercalate) import Data.Time import Futurice.App.EmailProxy.Client (sendEmail) import Futurice.App.EmailProxy.Types import Futurice.Constants import Futurice.IdMap (IdMap...
27c3da8e6c02b833b2df01d9a2a39e8ddc0c10c2959d9e69be9283ea50808a07
tezos/tezos-mirror
store.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/1d56ea241f0c861036f645787d6aa46a165905ab/src/proto_alpha/lib_sc_rollup_node/store.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
5a17602ab23a431d0e51c569510d28b1eb4eeb9dd422fd5392fa7f9e6f8e5391
ocaml/ocaml
show_source.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml/ocaml/04ddddd0e1d2bf2acb5091f434b93387243d4624/debugger/show_source.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the val show_point : Instruct.debug_event -> bool -> unit v...
bdffd445c77e8928990334f1ba2c01e1d230145ec554e3505d6e300acd034dc3
sellout/haskerwaul
Laws.hs
module Haskerwaul.Category.Laws where import Haskerwaul.Category import Haskerwaul.Monoid.Laws import Haskerwaul.Transformation.Dinatural type CategoryLaws = MonoidLaws (DinaturalTransformation (->)) Procompose -- | Simply a specialization of `monoidLaws` for when we're testing categories. categoryLaws :: Category c...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Category/Laws.hs
haskell
| Simply a specialization of `monoidLaws` for when we're testing categories.
module Haskerwaul.Category.Laws where import Haskerwaul.Category import Haskerwaul.Monoid.Laws import Haskerwaul.Transformation.Dinatural type CategoryLaws = MonoidLaws (DinaturalTransformation (->)) Procompose categoryLaws :: Category c => CategoryLaws c categoryLaws = monoidLaws
883d24f907e7b53f7cc0ac0ec5df61d8ca957cbc119483ef238970c04d75cc92
Twinside/Eq
Eval.hs
{-# LANGUAGE Rank2Types #-} module Language.Eq.Algorithm.Eval( reduce , exactReduce , evalGlobalLossyStatement , evalGlobalLosslessStatement ) where import Language.Eq.Types import Language.Eq.Al...
null
https://raw.githubusercontent.com/Twinside/Eq/60105372d55420735b722245db7021c239c812f4/Language/Eq/Algorithm/Eval.hs
haskell
# LANGUAGE Rank2Types # | Main function to evaluate another function | Main function to evaluate raw formula | Only perform non-lossy transformations | same as exactReduce, but perform on raw formula.
module Language.Eq.Algorithm.Eval( reduce , exactReduce , evalGlobalLossyStatement , evalGlobalLosslessStatement ) where import Language.Eq.Types import Language.Eq.Algorithm.Cleanup import Lang...
76ae56fc585ce27e38337bcc7645a6030021efcb0f5ed1779e954452bc49ac29
lokke-org/lokke
transmogrify.scm
Copyright ( C ) 2015 - 2021 < > SPDX - License - Identifier : LGPL-2.1 - or - later OR EPL-1.0 + (define-module (lokke transmogrify) #:use-module ((ice-9 match) #:select (match)) #:use-module ((ice-9 pretty-print) #:select (pretty-print)) #:use-module ((lokke reader literal) #:select (read...
null
https://raw.githubusercontent.com/lokke-org/lokke/a6616b3de60b62d787bf9b98206f8ad9eeb10844/mod/lokke/transmogrify.scm
scheme
Note that some of the null? checks here are doing dual duty for both nil and (). FIXME: do we want to include '()? list for srfi-1 Handle clojure's (). Convert it to '() when compiling so it's not interpreted as an empty procedure call (i.e. syntax error).
Copyright ( C ) 2015 - 2021 < > SPDX - License - Identifier : LGPL-2.1 - or - later OR EPL-1.0 + (define-module (lokke transmogrify) #:use-module ((ice-9 match) #:select (match)) #:use-module ((ice-9 pretty-print) #:select (pretty-print)) #:use-module ((lokke reader literal) #:select (read...
d9fd73a983f2af12d6cf7dab57406b833b2498b3b1ec946f28b75d1c611808ee
sneeuwballen/zipperposition
clauseQueue.ml
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Priority Queue of clauses } open Logtk module O = Ordering module Lit = Literal module Lits = Literals module type S = ClauseQueue_intf.S type profile = ClauseQueue_intf.profile let section = Util.Section.make ~p...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/e6105458f9812b38b229d89f407b7f232ccb5c9e/src/prover/clauseQueue.ml
ocaml
weight of a term [t], using the precedence's weight maximum depth of types. Avoids reasoning on list (list (list .... (list int))) Special treatment of propositions favorize small number of variables in a clause number of distinct term variables check whether a literal is a ground neg lit imitation of the ...
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Priority Queue of clauses } open Logtk module O = Ordering module Lit = Literal module Lits = Literals module type S = ClauseQueue_intf.S type profile = ClauseQueue_intf.profile let section = Util.Section.make ~p...
764748633903bf2450790b8d5364750d58d74ef6e48c5010b50e000109f028e4
nominolo/lambdachine
EvalThunk.hs
# LANGUAGE NoImplicitPrelude , MagicHash , BangPatterns # -- RUN: %bc_vm_chk CHECK : @Result@ IND - > GHC.Bool . True`con_info module Bc.EvalThunk where import GHC.Prim import GHC.List import GHC.Types import GHC.Base # NOINLINE f # f :: Int# -> [Int] -> Int# f acc [] = acc f acc (I# n : ns) = let !acc' = acc +# ...
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Bc/EvalThunk.hs
haskell
RUN: %bc_vm_chk
# LANGUAGE NoImplicitPrelude , MagicHash , BangPatterns # CHECK : @Result@ IND - > GHC.Bool . True`con_info module Bc.EvalThunk where import GHC.Prim import GHC.List import GHC.Types import GHC.Base # NOINLINE f # f :: Int# -> [Int] -> Int# f acc [] = acc f acc (I# n : ns) = let !acc' = acc +# n in f acc' ns u...
05922c69886a3bc4fba63775d2b114d777e0fb42deaf925201614978fb559bb7
nsg-ethz/O4
parser.rkt
#lang brag O4 - Program ; --------------------------------------- o4-program : (declaration)* [/";"] ; Declarations ; --------------------------------------- @declaration : preprocessor-declaration | constant-declaration | type-declaration | parser-declaration | c...
null
https://raw.githubusercontent.com/nsg-ethz/O4/870f6f78a6f7bb1e9e1502e29ff0048e5e1723c5/o4/frontend/parser.rkt
racket
--------------------------------------- Declarations --------------------------------------- TODO: `extern-declaration`, `error-declaration`, `match-kind-declaration` TODO: `header-union-declaration`, `parser-type-declaration`, `control-type-declaration`, `package-type-declaration` Type Declarations ------------...
#lang brag O4 - Program o4-program : (declaration)* [/";"] @declaration : preprocessor-declaration | constant-declaration | type-declaration | parser-declaration | control-declaration | deparser-declaration | action-declaration ...
79eb592bbdc5a85badcb35c9e8ae84e77064604e0a0da43057cad7b2f5f8544e
realgenekim/rss-reader-fulcro-demo
account.cljc
(ns com.example.model.account (:refer-clojure :exclude [name]) (:require #?@(:clj [[com.wsscode.pathom.connect :as pc :refer [defmutation]] [com.example.model.authorization :as exauth] [com.example.components.database-queries :as queries]] :cljs [[com.fulcrologic.fulcro...
null
https://raw.githubusercontent.com/realgenekim/rss-reader-fulcro-demo/c8e590b48f6a1119f5818bd36b2aa8ff2feff8f5/src/shared/com/example/model/account.cljc
clojure
NOTE: These are spelled out so we don't have to have either on classpath, which allows independent experimentation. In a normal project you'd use ns aliasing. ::report/field-formatter (fn [v] (str "ATTR" v)) NOTE: How to do file SHA->URL stuff... NOTE: Not quite done yet... The field style give you a specific cont...
(ns com.example.model.account (:refer-clojure :exclude [name]) (:require #?@(:clj [[com.wsscode.pathom.connect :as pc :refer [defmutation]] [com.example.model.authorization :as exauth] [com.example.components.database-queries :as queries]] :cljs [[com.fulcrologic.fulcro...
ee0d558756b849a378a0914e14f2901c5fe41c2ba8592819957d0bbb71938227
Practical-Formal-Methods/adiff
Constants.hs
{-# LANGUAGE DeriveDataTypeable #-} ----------------------------------------------------------------------------- -- | -- Module : Language.C.Syntax.Constants Copyright : ( c ) 2007 .. 2008 , -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : ghc -- -- This modu...
null
https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/language-c-extensible/src/Language/C/Syntax/Constants.hs
haskell
# LANGUAGE DeriveDataTypeable # --------------------------------------------------------------------------- | Module : Language.C.Syntax.Constants License : BSD-style Maintainer : Stability : experimental This module provides support for representing, checking and exporting c constants, i.e. inte...
Copyright : ( c ) 2007 .. 2008 , Portability : ghc module Language.C.Syntax.Constants ( escapeChar, unescapeChar, unescapeString, Flags(..), noFlags, setFlag, clearFlag, testFlag, cChar, cChar_w, cChars, CChar(..), getCChar, getCCharAsInt, isWideChar, showCharConst, CIntFlag(..), CIntRepr(..), cInt...
5d898e70ab60aa576d36c7fc6526588745fee6a037bbc091b16b9d76f38f4c1d
wwezhuimeng/kazoo
rebar_core.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2009 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this softw...
null
https://raw.githubusercontent.com/wwezhuimeng/kazoo/06a15811dbf123ae1601dc7a4ced956a7e04f58a/utils/rebar/src/rebar_core.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2009 ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the...
31855106430a1ab4feb5a2c86dc942dd53b644c88c94f1140784a16b7f7b9227
ocaml-gospel/gospel
no_modifies_value_of_unit.mli
val x : unit (*@*) (* {gospel_expected| [0] OK |gospel_expected} *)
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/e23c61dbe844f6be96b793f59df772bd7aeec5d2/test/warnings/no_modifies_value_of_unit.mli
ocaml
@ {gospel_expected| [0] OK |gospel_expected}
val x : unit
49f57e0097c7901d750182cc26a3454dafc3ce36c7dd765d79f987ee41b2e2a8
chyanju/Picus
cvc5-utils.rkt
#lang rosette (require racket/engine) (provide (all-defined-out)) ; stateful variable that stores smt path (define state-smt-path null) ; solving component (define (solve smt-str timeout #:verbose? [verbose? #f] #:output-smt? [output-smt? #f]) (define temp-folder (find-system-path 'temp-dir)) (define temp-fil...
null
https://raw.githubusercontent.com/chyanju/Picus/ff6d1535a6aa995048c4bd3da5a5a8eb8762729f/picus/cvc5-utils.rkt
racket
stateful variable that stores smt path solving component (note) use `apply` to expand the last argument need to kill the process something wrong, not solved
#lang rosette (require racket/engine) (provide (all-defined-out)) (define state-smt-path null) (define (solve smt-str timeout #:verbose? [verbose? #f] #:output-smt? [output-smt? #f]) (define temp-folder (find-system-path 'temp-dir)) (define temp-file (format "picus~a.smt2" (string-replace (format "~a"...
596933343d3e1bd330b816d9f4e60874512bd8433c4f1c3eb6eb20e38307d974
jrm-code-project/LISP-Machine
kstep.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; Base:8 ; Lowercase : T ; : CL -*- ;Note: This is a commonlisp file! Ultra - simple stepper for lisp - machine . ;;; Wins with multiple values ;;; Does not attempt to win with editor top level ;NOTES: ; The way it decides whether it needs to reprint the form when ...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/rauen/kstep.lisp
lisp
Package : SYSTEM - INTERNALS ; Base:8 ; Lowercase : T ; : CL -*- Note: This is a commonlisp file! Wins with multiple values Does not attempt to win with editor top level NOTES: The way it decides whether it needs to reprint the form when showing or ask itself whether it typed anything or something? Would like t...
Ultra - simple stepper for lisp - machine . you the values is pretty right now . Can it check the cursorpos without having to break first . (defvar *step-level* nil "Depth within STEP-EVALHOOK, minus one, within call to STEP") (defvar *step-array* nil "Holds forms to evaluate, indexed by *STEP-LEVEL* v...
f17e21414e719c7cb3838dad8ba07f925115bb6113310d21393cc5acde614aef
Covariance/hi-language
T10.hs
# LANGUAGE LambdaCase # module T10 ( group ) where import Data.Set (empty) import System.IO.Silently (capture) import Test.Hspec (Spec, anyException, it, shouldBe, shouldSatisfy, shouldThrow) import Test.Tasty (TestTree, testGroup) import Test.Tasty.Hspec (testSpec) import HI.Action (HiPermission (AllowWrite)) ...
null
https://raw.githubusercontent.com/Covariance/hi-language/a395277811fdc7a9853c4241ff6ec07d6130480a/test/T10.hs
haskell
there's anything in the output, and therefore any correct use of echo should fail the test case. So we need to capture the output to the stdout and rerout it. And for that I would use the 'Silently' library: But sometimes (for whatever reason) it flacks and captures some of the test output (aka escape sequences...
# LANGUAGE LambdaCase # module T10 ( group ) where import Data.Set (empty) import System.IO.Silently (capture) import Test.Hspec (Spec, anyException, it, shouldBe, shouldSatisfy, shouldThrow) import Test.Tasty (TestTree, testGroup) import Test.Tasty.Hspec (testSpec) import HI.Action (HiPermission (AllowWrite)) ...
25e5150adf34ee6c5db801d0b83a90957a022721a7eb5065da40e66004bf5848
penpot/penpot
types_file_test.cljc
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) KALEIDOS INC (ns common-tests.types-file-test (:require [app.common.data :as d] [app.common.geom.point :as gpt] ...
null
https://raw.githubusercontent.com/penpot/penpot/2ea81c0114fb13ece945b7082aff0bcd7383e563/common/test/common_tests/types_file_test.cljc
clojure
Copyright (c) KALEIDOS INC Uncomment to debug (println "\n===== library") (ctf/dump-tree (:data library) library-page-id {} true) (println "\n===== file") (ctf/dump-tree (:data file) file-page-id {library-id library} ...
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 /. (ns common-tests.types-file-test (:require [app.common.data :as d] [app.common.geom.point :as gpt] [app.common.text :as txt] [app...
20d0d1718aa83c46f943f761c3b5316e4ddef8efd9a28e7d9400d963adee8baa
dalaing/little-languages
Test.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where -- from 'tasty' import Test....
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/i/tests/Test.hs
haskell
from 'tasty' local
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable -} module Main ( main ) where import Test.Tasty (TestTree...
00e0a5044ba8aeff3c03f3dbd94c78979929e0f95abd6b824b7195dbde9248ce
elli-lib/elli_cache
elli_cache_util.erl
%%% ==================================================== [ elli_cache_util.erl ] %%% @doc Useful helper functions for elli_cache. @author < > [ ] 2016 , elli - lib team %%% @end = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =...
null
https://raw.githubusercontent.com/elli-lib/elli_cache/3e6af62d3304417bd99574407d35832865160123/src/elli_cache_util.erl
erlang
==================================================== [ elli_cache_util.erl ] @doc Useful helper functions for elli_cache. @end Date Utils. Tuple Utils. =========================================================== [ Binary Utils ] ============================================================= [ Date Utils ] NOTE: ...
@author < > [ ] 2016 , elli - lib team = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = [ EOH ] -module(elli_cache_util). -compile({parse_transform, do}). Binary Utils . -export([comma_split/1]). -export([convert_date...
70acd1c9267a7e22ed40db2dc189416b3cd0e8dd859f7cc42419541a94d4d546
Mushy-pea/Game-Dangerous
DecompressMap.hs
Game : : Dangerous code by . You are free to use this software and view its source code . -- If you wish to redistribute it or use it as part of your own work, this is permitted as long as you acknowledge the work is by the abovementioned author. The .dan map file format encodes map geometry in a form intended...
null
https://raw.githubusercontent.com/Mushy-pea/Game-Dangerous/d11de34d655c28ced6fbe120d8acb955bebd7e2d/src/DecompressMap.hs
haskell
If you wish to redistribute it or use it as part of your own work, this is permitted as long as you acknowledge the work is by the abovementioned author. originally done by a tool chain program as a pre - processing step and was later moved into the engine. I have retained the intermediate text format to avoid havin...
Game : : Dangerous code by . You are free to use this software and view its source code . The .dan map file format encodes map geometry in a form intended to be space efficient and editable with minimal tools . This module transforms ( and expands ) that text format into an intermediate text format that is...
7adca9760cce842fd5a74152e5a7d2e1ff40713d64511f55719c74a1f144e5af
coq/coq
tactics.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/284b7133ff792dab82c658a274db0c5e0a04d2d5/tactics/tactics.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
6d954c92c16d1e306edc96cee37433f30563e31ed5d25e7bb7ea0dd2a7db7dc8
mtolly/onyxite-customs
Triggers.hs
{- | TRIGGERS -} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Onyx.Harmonix.GH2.Triggers where import Control.Monad.Codec import qualified Data.Eve...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/0c8acd6248fe92ea0d994b18b551973816adf85b/haskell/packages/onyx-lib/src/Onyx/Harmonix/GH2/Triggers.hs
haskell
| TRIGGERS # LANGUAGE OverloadedStrings # this is next lighting keyframe like RBN1 venue this is prev lighting keyframe like RBN1 venue "venue effect"
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Onyx.Harmonix.GH2.Triggers where import Control.Monad.Codec import qualified Data.EventList.Relative.TimeBody as RTB import GHC....
0b27cad39656e3044da72290e4091743799be2d79fb1904f860d383d36d9a2b5
acgollapalli/dataworks
function.clj
(ns dataworks.utils.function (:require [crux.api :as crux] [dataworks.db.app-db :refer [get-stored-functions app-db]] [dataworks.collector :refer [add-collector!]] [dataworks.transactor :refer [add-transactor!]] [dataworks.transformer :refer [add-transformer!]] [dataworks.stream :refer [start-stream...
null
https://raw.githubusercontent.com/acgollapalli/dataworks/df8b48d66b762d1d5566306debe89081675913bd/src/dataworks/utils/function.clj
clojure
(ns dataworks.utils.function (:require [crux.api :as crux] [dataworks.db.app-db :refer [get-stored-functions app-db]] [dataworks.collector :refer [add-collector!]] [dataworks.transactor :refer [add-transactor!]] [dataworks.transformer :refer [add-transformer!]] [dataworks.stream :refer [start-stream...
54ef81525e3cf18f9646094105ce48744eeeb97af7006ac3c9728dbc32c91478
luminus-framework/examples
project.clj
;--- Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , ; courses, books, articles, and the like. Contact us if you are in doubt. ; We make no guarantees that this code is fit fo...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/swagger-service/project.clj
clojure
--- courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Web Development with Clojure , Second Edition " , published by The Pragmatic Bookshelf . Copyrights apply to this code . It may not be used to create training material , (defproject swagger-service "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :dependencies [[org.clojur...
28d3397f227f94ca72baadbd573cf91d6ab5fec0461e97d25d89defc339933e9
pmatos/racket-loci
test_locus-error.rkt
#lang racket ;; --------------------------------------------------------------------------------------------------- (require loci) ;; --------------------------------------------------------------------------------------------------- (define (go) (locus l (printf "Testing stdout") (fprintf (current-error-p...
null
https://raw.githubusercontent.com/pmatos/racket-loci/ce063c7e45d5abb7c187766b3ab7045ef2f84099/test/test_locus-error.rkt
racket
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
#lang racket (require loci) (define (go) (locus l (printf "Testing stdout") (fprintf (current-error-port) "Testing stderr") (error 'go "locus failed on purpose"))) (module+ main (printf "Starting core~n") (define r (locus-wait (go))) (printf "Locus finished with ~a~n" r) (exit r))
a404cd0c1d21a2ff3e4feb6e51f574981dc76335423dc8c71f7621629d258fa5
zonotope/zanmi
test_config.clj
(ns zanmi.test-config) (def config {:db {:engine :postgres :username "zanmi" :password "zanmi-password" :host "localhost" :db-name "zanmi_test"} :profile-schema {:username-length 32 :password-length 64 :password-score 1} :secret "nobody ...
null
https://raw.githubusercontent.com/zonotope/zanmi/26e448db2dfb1b5edb3cb6ca9e49d6ff8cac607c/test/zanmi/test_config.clj
clojure
(ns zanmi.test-config) (def config {:db {:engine :postgres :username "zanmi" :password "zanmi-password" :host "localhost" :db-name "zanmi_test"} :profile-schema {:username-length 32 :password-length 64 :password-score 1} :secret "nobody ...
f3145b552db296d61f7706a7542c0af85bd36454afab6d5c29edd582f8967492
potapenko/playphraseme-site
handler.clj
(ns playphraseme.app.handler (:require [compojure.core :refer [routes wrap-routes]] [compojure.route :as route] [mount.core :as mount] [playphraseme.api.handler :refer [api-routes]] [playphraseme.app.config :refer [env]] [playphraseme.app.layout :refer [erro...
null
https://raw.githubusercontent.com/potapenko/playphraseme-site/d50a62a6bc8f463e08365dca96b3a6e5dde4fb12/src/clj/playphraseme/app/handler.clj
clojure
(ns playphraseme.app.handler (:require [compojure.core :refer [routes wrap-routes]] [compojure.route :as route] [mount.core :as mount] [playphraseme.api.handler :refer [api-routes]] [playphraseme.app.config :refer [env]] [playphraseme.app.layout :refer [erro...
37b091d6493b25571fe799d18b09ba04030874ae0556edf0b0fcc03aa864dfdd
illiichi/orenolisp
tree.clj
(ns orenolisp.model.tree (:require [orenolisp.util :as ut] [clojure.set :refer [intersection difference]]) (:import [java.util HashMap ArrayList])) (defrecord Tree [parent-table children-table]) (defn- new-node [] (ArrayList.)) (defn get-children [tree node-id] (.get (:children-table tree) node-id...
null
https://raw.githubusercontent.com/illiichi/orenolisp/7b085fb687dbe16b5cbe8c739238bbaf79156814/src/orenolisp/model/tree.clj
clojure
(ns orenolisp.model.tree (:require [orenolisp.util :as ut] [clojure.set :refer [intersection difference]]) (:import [java.util HashMap ArrayList])) (defrecord Tree [parent-table children-table]) (defn- new-node [] (ArrayList.)) (defn get-children [tree node-id] (.get (:children-table tree) node-id...
7fa3ad1b981c756fb27671875f6de578120dd3b2a077841c21c3bb3d18944e4d
haskoin/haskoin-node
Peer.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Haskoin.Node.Peer ( PeerConfig(..) , Conduits...
null
https://raw.githubusercontent.com/haskoin/haskoin-node/4f56d958b3784f03d115c33cf308b38fa1c39f00/src/Haskoin/Node/Peer.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # | Mailbox for a peer. | Incoming messages that a peer accepts. | Run peer process in current thread. | Internal function to dispatch peer messages. | Internal conduit to parse messages coming from peer. | Outg...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module Haskoin.Node.Peer ( PeerConfig(..) , Conduits(..) , PeerException(..) , WithConnection , Peer , peer , wrapPeer , peerPublisher , peer...
432b82e4c15d798f1273c740b7cb02b50fc5ad309566287d24360c41938a3965
thoughtpolice/claap
Config.hs
module Config ( ICE40Device(..) , ICE40Package(..) , ProgrammingMode(..) , getYosys, getArachne , getIcepack, getIcetime, getIceprog , getClash , getIVerilog, getVVP , getCheckMhz , getProgMode , getDevice , getPackage , getICE40PCF ) where import Text.Read (readMaybe) import Data.Maybe (f...
null
https://raw.githubusercontent.com/thoughtpolice/claap/4944b6c4ad6aff4097f8ef66231ce7d7a59f5ee7/src/mk/Config.hs
haskell
module Config ( ICE40Device(..) , ICE40Package(..) , ProgrammingMode(..) , getYosys, getArachne , getIcepack, getIcetime, getIceprog , getClash , getIVerilog, getVVP , getCheckMhz , getProgMode , getDevice , getPackage , getICE40PCF ) where import Text.Read (readMaybe) import Data.Maybe (f...
9a1a63a7ceb8de43b4e60a66341d291832800d852a4853e7bdc26e001e7346d8
dbuenzli/remat
rect.mli
--------------------------------------------------------------------------- Copyright 2012 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Copyright...
null
https://raw.githubusercontent.com/dbuenzli/remat/28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28/src-remat/rect.mli
ocaml
* The type for rectangles. * The empty rectangle. * [v ox oy w h] is a rectangle with origin [(ox,oy)] and size [(w, h)]. * [vi] is like {!v} with integers. * [o r] is the origin of [r]. * [ox r] is [fst (o r)]. * [size r] is the size of [r]. * [w r] is [fst (size r)]. * [of_ltrb_i l t r b] is rectangle fro...
--------------------------------------------------------------------------- Copyright 2012 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Copyright...
fabcf58aabd1bb011f8462b2b13e127c6284f653714782c2e7ec00c99791cc10
antono/guix-debian
openldap.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > Copyright © 2013 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; ei...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/openldap.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 < > Copyright © 2013 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages openldap) #:use-module (gnu packages autotools) #:use-m...
e76f8d026cd868ca34fbbb1518c55ab8a67c5b6a964d17441bbda9a4d5884ce6
seriyps/mtproto_proxy
mtproto_proxy_app.erl
%%%------------------------------------------------------------------- %% @doc mtproto_proxy public API %% @end %%%------------------------------------------------------------------- -module(mtproto_proxy_app). -behaviour(application). %% Application callbacks -export([start/2, prep_stop/1, stop/1, config_change/3])...
null
https://raw.githubusercontent.com/seriyps/mtproto_proxy/5ad7c536da57ff89dea488941c7ff4711372d858/src/mtproto_proxy_app.erl
erlang
------------------------------------------------------------------- @doc mtproto_proxy public API @end ------------------------------------------------------------------- Application callbacks Helpers ==================================================================== Application behaviour API ===================...
-module(mtproto_proxy_app). -behaviour(application). -export([start/2, prep_stop/1, stop/1, config_change/3]). -export([mtp_listeners/0, reload_config/0, running_ports/0, start_proxy/1, build_urls/4, get_port_secret/1]). -define(APP, mtproto_proxy). -include_lib("hut/in...
27149e46e236654e070763e7255d09ec49cef93c2467275bebf1bfd8bacb4f86
rudenoise/mirage-dashboard
events.ml
open Lwt open Core.Std (* * example data * * *) let clean_str json_str = Github_wrapper.strip_quotes (Yojson.Safe.to_string json_str) let extract_type_and_user_name event_str = let event_data = Yojson.Safe.from_string event_str in let event_date = ( Yojson.Safe.Util.member "created_at" ...
null
https://raw.githubusercontent.com/rudenoise/mirage-dashboard/f109ad96d68701addd2ac7cc0be87d706f7eab50/src/events.ml
ocaml
* example data * *
open Lwt open Core.Std let clean_str json_str = Github_wrapper.strip_quotes (Yojson.Safe.to_string json_str) let extract_type_and_user_name event_str = let event_data = Yojson.Safe.from_string event_str in let event_date = ( Yojson.Safe.Util.member "created_at" event_data ) in let event_ty...
0139f90c46c3dbc93ec53ba61f80cde7c45e4a8e706cec3020439447b7516326
Zulu-Inuoe/clution
input.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : FLEXI - STREAMS ; Base : 10 -*- $ Header : /usr / local / cvsrep / flexi - streams / input.lisp , v 1.78 2008/05/25 19:25:44 edi Exp $ Copyright ( c ) 2005 - 2008 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/flexi-streams-20171227-git/input.lisp
lisp
Syntax : COMMON - LISP ; Package : FLEXI - STREAMS ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions a...
$ Header : /usr / local / cvsrep / flexi - streams / input.lisp , v 1.78 2008/05/25 19:25:44 edi Exp $ Copyright ( c ) 2005 - 2008 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-pa...
e4b330127db0ae2851b07f7dfd67fef400b6a21a747c04f571dfb4b1bc9f0956
GaloisInc/semmc
CoverageMain.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeApplications # module Main where import Control.Monad (forM_, when) import qualified Data.ByteString.UTF8 as BS8 import Data.List (intercalate) import Data.Monoid ((<>)) import Data.Proxy (Proxy(Proxy)) import qua...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-coverage/programs/CoverageMain.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes #
# LANGUAGE TypeApplications # module Main where import Control.Monad (forM_, when) import qualified Data.ByteString.UTF8 as BS8 import Data.List (intercalate) import Data.Monoid ((<>)) import Data.Proxy (Proxy(Proxy)) import qualified System.Exit as IO import qualified System.En...
001ed2725396ea4c4615aeeea9648881479f71b6f5aa895dd2901ad4da966bc5
opencog/opencog
data_#3.scm
Test # 3 ;; "It appears that" ;; Expected result: ;; True (It is a pleonastic it) (LemmaLink (WordInstanceNode "it") (WordNode "it") ) (LemmaLink (WordInstanceNode "appears") (WordNode "appear") ) (EvaluationLink (DefinedLinguisticRelationshipNode "_expl") (ListLink (WordInstanceNod...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/tests/nlp/anaphora/data/pleonastic_it/data_%233.scm
scheme
"It appears that" Expected result: True (It is a pleonastic it)
Test # 3 (LemmaLink (WordInstanceNode "it") (WordNode "it") ) (LemmaLink (WordInstanceNode "appears") (WordNode "appear") ) (EvaluationLink (DefinedLinguisticRelationshipNode "_expl") (ListLink (WordInstanceNode "appears") (WordInstanceNode "it") ) ) (EvaluationLink ...
5563ca54edd6b30eaa586111593c3421ec450e0daa1047edda7fc6ba6bf3656f
ml4tp/tcoq
equality.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/tactics/equality.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i true = support rewriting depend...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Evd...
58f85c988b06f643b5a78ffc13359da795834469ad9b71a4f4f332737b70e1d5
projectodd/proddbot
user.clj
(ns user (:require [prodd.bot :refer [start stop]]))
null
https://raw.githubusercontent.com/projectodd/proddbot/e93e97708bb2a2fc2158dcdeb621cab3981ee649/dev/user.clj
clojure
(ns user (:require [prodd.bot :refer [start stop]]))
6ba1ed1edbdf80a06cae1ff983e40dfbc2e0a1dc693e99b4122db0d1f1489983
anmonteiro/ocaml-h2
lwt_h2spec.ml
let set_interval s f = let timeout = Lwt_timeout.create s f in Lwt_timeout.start timeout let connection_handler : Unix.sockaddr -> Lwt_unix.file_descr -> unit Lwt.t = let open H2 in let request_handler : Unix.sockaddr -> Reqd.t -> unit = fun _client_address request_descriptor -> let request = Reqd.reque...
null
https://raw.githubusercontent.com/anmonteiro/ocaml-h2/1aea7e0aebb2c440dc35ef35ca15d87d44799f4e/spec/lwt_h2spec.ml
ocaml
This set of routes responds immediately without reading the request body This set of routes waits until the entire request body has been read * to produce a response.
let set_interval s f = let timeout = Lwt_timeout.create s f in Lwt_timeout.start timeout let connection_handler : Unix.sockaddr -> Lwt_unix.file_descr -> unit Lwt.t = let open H2 in let request_handler : Unix.sockaddr -> Reqd.t -> unit = fun _client_address request_descriptor -> let request = Reqd.reque...
6bb2939d513e27a495cecb541360220505224dd96e1d5d1c884a418127b639c7
static-analysis-engineering/codehawk
bCHFileIO.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/45f39248b404eeab91ae225243d79ec0583c3331/CodeHawk/CHB/bchanalyze/bCHFileIO.ml
ocaml
chutil xprlib bchlib bchlibx86 bchlibmips32 bchlibarm32
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
3967c15ddc61b5d3213f450cb10add8d611e06a33eff1ddd7a69fd3e367f6a74
silicon-gorge/radix
ring_metrics.clj
(ns radix.ring-metrics (:require [clojure.string :as str] [metrics.timers :refer [time! timer]]) (:import [java.util.concurrent TimeUnit] [java.util.regex Pattern])) ;; When collecting metrics for resources in an application, it's not sensible to ;; collect values that change on every reques...
null
https://raw.githubusercontent.com/silicon-gorge/radix/f32cd4204a9a69b47b7b0d5f1d13d2252c8b822b/src/radix/ring_metrics.clj
clojure
When collecting metrics for resources in an application, it's not sensible to collect values that change on every request, for example if the path for a particular request contains user ids or some other attribute with a range of values. So, the purpose of this namespace is to allow such values to be grouped. The ...
(ns radix.ring-metrics (:require [clojure.string :as str] [metrics.timers :refer [time! timer]]) (:import [java.util.concurrent TimeUnit] [java.util.regex Pattern])) so that a resource like ` /{territory}/users/{a guid}/credit ` does n't produce any calls to this resource will result in ...
6d9b9e7f53c2e95d914fc6fff557f60a5a6239eb3e97ac0491f85d0cdcf4b2d9
jeffshrager/biobike
swank-backend.lisp
;;; -*- Mode: lisp; indent-tabs-mode: nil; outline-regexp: ";;;;;*" -*- ;;; ;;; slime-backend.lisp --- SLIME backend interface. ;;; Created by in 2003 . Released into the public domain . ;;; ;;;; Frontmatter ;;; ;;; This file defines the functions that must be implemented ;;; separately for each Lisp. Each is decla...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/ThirdParty/slime/swank-backend.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil; outline-regexp: ";;;;;*" -*- slime-backend.lisp --- SLIME backend interface. Frontmatter This file defines the functions that must be implemented separately for each Lisp. Each is declared as a generic function for which swank-<implementation>.lisp provides methods. int...
Created by in 2003 . Released into the public domain . (defpackage :swank-backend (:use :common-lisp) (:export #:sldb-condition #:compiler-condition #:original-condition #:message #:source-context #:condition #:severity #:with-compila...
ff1ce228f03aacd25365b07defe047a161f58d2a8a410078757a6c022b5a2bd3
ygmpkk/house
BezCurve.hs
BezCurve.hs ( adapted from fog.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2003 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program uses evaluators to draw a curve . BezCurve.hs (adapted from f...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/GLUT/examples/RedBook/BezCurve.hs
haskell
resolve overloading, not needed in "real" programs The following code displays the control points as dots.
BezCurve.hs ( adapted from fog.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2003 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program uses evaluators to draw a curve . BezCurve.hs (adapted from f...
23ee541e89346b99469febd19afb3c60a4f1c4dd11665f1895c8f0b8b1f16194
JohnnyJayJay/instant-poll
component.clj
(ns instant-poll.component (:require [clojure.string :as string] [instant-poll.poll :as polls] [instant-poll.state :refer [config discord-conn app-id]] [discljord.util :refer [parse-if-str]] [discljord.formatting :as discord-fmt] [discljord.permissions :as d...
null
https://raw.githubusercontent.com/JohnnyJayJay/instant-poll/a825c28238d9405fccc1dff5479b8ee00d0f1cb4/src/instant_poll/component.clj
clojure
if poll not found
(ns instant-poll.component (:require [clojure.string :as string] [instant-poll.poll :as polls] [instant-poll.state :refer [config discord-conn app-id]] [discljord.util :refer [parse-if-str]] [discljord.formatting :as discord-fmt] [discljord.permissions :as d...
03f8597a1b2f909a0de86c6c57f4e7986ca211bad715fd8ae4f0f9880b5d4b85
siclait/6.824-cljlabs-2020
core.clj
(ns raft.core "Write your code here." (:require [lab-rpc.core :as lab-rpc] [raft.persister :as persister])) (defprotocol IRaft (RequestVote [this args] "Example RPC handler.")) (defrecord Raft [me peers persister] IRaft (RequestVote [this args] Your code here ( 2A , 2B ) . )) ...
null
https://raw.githubusercontent.com/siclait/6.824-cljlabs-2020/0c7ad7ae07d7617b1eb7240080c65f1937ca8a2d/raft/src/raft/core.clj
clojure
Your code here (2A). Your code here (2C). Your code here (2C). example code to send a RequestVote RPC to a server. server is the index of the target server in rf.peers[]. The lab-rpc package simulates a lossy network, in which servers may be unreachable, and in which requests and replies may be lost. call! sen...
(ns raft.core "Write your code here." (:require [lab-rpc.core :as lab-rpc] [raft.persister :as persister])) (defprotocol IRaft (RequestVote [this args] "Example RPC handler.")) (defrecord Raft [me peers persister] IRaft (RequestVote [this args] Your code here ( 2A , 2B ) . )) ...
f201f09f5ecf29a1e35b9a39928736b24cb36d69a2bd543c0f2cd86ea33f9ee5
scarf-sh/tie
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Main (main) where import Options.Applicative ( Parser, auto, execParser, flag, fullDesc, header, help, helper, info, infoOption, long, metavar, option, progDesc, short, showDefault, ...
null
https://raw.githubusercontent.com/scarf-sh/tie/1fa1df2a00d268d5f9e32276a30d84c4bbabdeea/bin/Main.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # module Main (main) where import Options.Applicative ( Parser, auto, execParser, flag, fullDesc, header, help, helper, info, infoOption, long, metavar, option, progDesc, short, showDefault, str, strArgument, strOptio...
7be1bc3dca40326edf8fbc9e047620a260d14933bbc8131fad40d132c993df0f
cloverage/cloverage
report.clj
(ns cloverage.report (:import [java.io File]) (:require [clojure.java.io :as io] [cloverage.source :refer [resource-reader]])) ;; borrowed from duck-streams (defmacro with-out-writer "Opens a writer on f, binds it to *out*, and evalutes body. Anything printed within body will be written to f." [^Fil...
null
https://raw.githubusercontent.com/cloverage/cloverage/87fd10f82ea7c0f47c03354105e513b160d1e047/cloverage/src/cloverage/report.clj
clojure
borrowed from duck-streams
(ns cloverage.report (:import [java.io File]) (:require [clojure.java.io :as io] [cloverage.source :refer [resource-reader]])) (defmacro with-out-writer "Opens a writer on f, binds it to *out*, and evalutes body. Anything printed within body will be written to f." [^File f & body] `(with-open [str...
09ebe76bc87124e5a849d70e8c93b5a7242596f83712fe6152f611da3cf7acf8
mashion/chloe
chloe_yaws_websocket.erl
-module(chloe_yaws_websocket). -include("../../../deps/yaws/include/yaws_api.hrl"). -export([out/1]). -define(ACTIVE, true). out(A) -> {ok, WebSocketOwner} = chloe_websocket_sup:start_child(), yaws_websockets:handshake(A, WebSocketOwner, true).
null
https://raw.githubusercontent.com/mashion/chloe/38f5f2e0bbf1af697b2f1cd18c6d89501edebb5f/apps/chloe/src/chloe_yaws_websocket.erl
erlang
-module(chloe_yaws_websocket). -include("../../../deps/yaws/include/yaws_api.hrl"). -export([out/1]). -define(ACTIVE, true). out(A) -> {ok, WebSocketOwner} = chloe_websocket_sup:start_child(), yaws_websockets:handshake(A, WebSocketOwner, true).
898a9581209612158a759bdf3eeb692291b18f43197fdb123142efa5313b0d66
knutin/kprof
kprof_sup.erl
-module(kprof_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). %% Helper macro for declaring children of supervisor -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). %% =============================================================...
null
https://raw.githubusercontent.com/knutin/kprof/f5e9262183bbb765e131c650e518dc9e034c9a13/src/kprof_sup.erl
erlang
API Supervisor callbacks Helper macro for declaring children of supervisor =================================================================== API functions =================================================================== =================================================================== Supervisor callback...
-module(kprof_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> Children = [ ?CHILD(kprof_server, worke...
5dc1452893f8befc5d46a96833bbf870028c8f7b2d4077c63d8084894591b958
dmitryvk/sbcl-win32-threads
late-condition.lisp
;;;; Condition support in target lisp This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/late-condition.lisp
lisp
Condition support in target lisp more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information.
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-KERNEL") (fmakunbound 'install-condition-slot-reader) (fmakunbound 'install-condition-slot-writer) (defmac...
8b0bb35e0c64867ee62658f442e63728285adbf782dc1d4d3c0a772cef3118ff
DavidAlphaFox/ailib
ai_balance_pool.erl
-module(ai_balance_pool). -export([start_link/0, init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2]). -export([least_busy/1,rand/1,join/2]). %%---------------------------------------------------------------------------- -ifdef(use_specs). -type(name() :: term()). -spec(start_link/0 :: () ->...
null
https://raw.githubusercontent.com/DavidAlphaFox/ailib/1f5bd561d9ecd977d4c169c8edde99cbc727873d/src/pool/ai_balance_pool.erl
erlang
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Exported functions Callback functions from gen_server Local functions table is ordered_set, and the fast matching of partially instantiated keys is used ex...
-module(ai_balance_pool). -export([start_link/0, init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2]). -export([least_busy/1,rand/1,join/2]). -ifdef(use_specs). -type(name() :: term()). -spec(start_link/0 :: () -> {'ok', pid()} | {'error', any()}). -spec(start/0 :: () -> {'ok', pid()} | {'er...
c22d2345b7c840e8141b68d53e10f3b50acfe9b68082102b290495adf17190ee
informatimago/lisp
susv3.lisp
-*- coding : utf-8 -*- ;;;;**************************************************************************** FILE : susv3.lisp ;;;;LANGUAGE: Common-Lisp SYSTEM : CLISP USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; This packages exports SUSV3 functions. This is the CLISP s...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/cl-posix/susv3.lisp
lisp
**************************************************************************** LANGUAGE: Common-Lisp DESCRIPTION This packages exports SUSV3 functions. Check if the name is correct: there is a hierarchy of specifications interfaces: (:USE SUSV3) (:USE SUSV3-XSI). LEGAL This progra...
-*- coding : utf-8 -*- FILE : susv3.lisp SYSTEM : CLISP USER - INTERFACE : This is the CLISP specific implementation of the SUSV3 API . The Open Group Base Specifications Issue 6 IEEE Std 1003.1 , 2003 Edition < PJB > MODIFICATIONS 2003 - 06 - 13 < PJB > ...
aa904c4ac8b0b916b325c9d1fbdb69235b01ea49cbda6a5dee5de808ddc78206
meooow25/haccepted
DSU.hs
# LANGUAGE FlexibleContexts # | set union Data structure to maintain disjoint sets of Ints , supporting find and union . Uses union by size and path halving . Sources : * -set_data_structure * -algorithms.com/data_structures/disjoint_set_union.html * -competitive-programming/kactl/blob/main/content/dat...
null
https://raw.githubusercontent.com/meooow25/haccepted/f56b23adc829ff26f7402731d13b32f73516fb99/src/DSU.hs
haskell
------------------------------------------------------------------------------ For tests Allows specialization across modules
# LANGUAGE FlexibleContexts # | set union Data structure to maintain disjoint sets of Ints , supporting find and union . Uses union by size and path halving . Sources : * -set_data_structure * -algorithms.com/data_structures/disjoint_set_union.html * -competitive-programming/kactl/blob/main/content/dat...
e646868b23be42d8d70690711c306da514704221e3b4196b7bf03bd13cb492a0
ujamjar/ctypes_of_clang
test_foo.ml
open Ctypes open Fooapi.Foo module Fns = Bindings(Foostubs.Stubs) open Fns let a = init_foo 7 13. let b = init_foo 3 7.5 let c = init_foo 0 0. let () = add_foo_ptr (addr a) (addr b) (addr c) let () = print_foo c let c = add_foo a b let coerce t fn = coerce (Foreign.funptr t) (static_funptr t) fn let cb_t = int @->...
null
https://raw.githubusercontent.com/ujamjar/ctypes_of_clang/08d5179be6f3f5ef07ceae6565301f12192ab4b7/examples/foo/test/test_foo.ml
ocaml
open Ctypes open Fooapi.Foo module Fns = Bindings(Foostubs.Stubs) open Fns let a = init_foo 7 13. let b = init_foo 3 7.5 let c = init_foo 0 0. let () = add_foo_ptr (addr a) (addr b) (addr c) let () = print_foo c let c = add_foo a b let coerce t fn = coerce (Foreign.funptr t) (static_funptr t) fn let cb_t = int @->...
4e749d185fe861219ccf277abc8e4014561949b7ca03b4d5ee5a8a30dd58e419
fluent/fluent-logger-ocaml
fluent_logger_test.ml
open OUnit module Q = Queue type func = Write of (string * int * int) | Close module Mock_sender = struct type t = { func_list:func Q.t; result_list:int option Q.t } let create funcs results = { func_list=funcs; result_list=results } let write sender buf start len = Q.push (Write (buf, start,...
null
https://raw.githubusercontent.com/fluent/fluent-logger-ocaml/3905bec43e5bdd40871bf994f0b98c23fa06d5cd/test/fluent_logger_test.ml
ocaml
first sending (result:ok) releasing logger first sending (result:ok) releasing logger first sending (result:ok) second sending (result:ng) third sending (result:ok) releasing logger sending (result:ok) releasing logger
open OUnit module Q = Queue type func = Write of (string * int * int) | Close module Mock_sender = struct type t = { func_list:func Q.t; result_list:int option Q.t } let create funcs results = { func_list=funcs; result_list=results } let write sender buf start len = Q.push (Write (buf, start,...
a3a3f3cdcc0442c2ef5ff82ef342b66d788a90ccd27b483b96deb388acdf803f
aryx/ocamltarzan
path.ml
File : path.ml Copyright ( C ) 2005- Jane Street Holding , LLC Author : email : mmottl\@janestcapital.com WWW : 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 t...
null
https://raw.githubusercontent.com/aryx/ocamltarzan/4140f5102cee83a2ca7be996ca2d92e9cb035f9c/lib-sexp/path.ml
ocaml
Path: Module for Substitutions within S-expressions
File : path.ml Copyright ( C ) 2005- Jane Street Holding , LLC Author : email : mmottl\@janestcapital.com WWW : 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 t...
4cfb0d7fe8aebea11c92ebc5f888f08c800c7ee4bca81b82d9bb18c2dc7b6c9c
futurice/haskell-mega-repo
BuildDocker.hs
{-# LANGUAGE OverloadedStrings #-} module Futurice.App.MegaRepoTool.BuildDocker ( cmdBuildDocker, cmdBuildCommand, cmdBuildCommandLambda, AppName, ) where import Data.Aeson (object, (.=)) import Futurice.Prelude import Prelude () import System.Directory (copyFile, getCurrentDirectory) imp...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/c6bbcc6cc9dd3776059c87f3f4c8f6d75ccdcbd0/mega-repo-tool/src/Futurice/App/MegaRepoTool/BuildDocker.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- Constants ----------------------------------------------------------------------------- tell script we are in docker cannot _yet- have ":ro". support symlinked data/ -----------------------------------------...
module Futurice.App.MegaRepoTool.BuildDocker ( cmdBuildDocker, cmdBuildCommand, cmdBuildCommandLambda, AppName, ) where import Data.Aeson (object, (.=)) import Futurice.Prelude import Prelude () import System.Directory (copyFile, getCurrentDirectory) import System.Environment (getEnvironm...
0074c8e09dad8ce99b340f9ee905632a41852ba6dadd9ec9c03e895e6bcd5514
lopec/LoPEC
logger_ext.erl
-module(logger_ext). -export([start/1]). -vsn('$Rev: 15 $'). -ifdef(TEST). -compile(export_all). -endif. %%%=================================================================== %%% Exported functions %%%=================================================================== %%---------------------------------------------...
null
https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/branches/stable-1/old_stuff/old_master/src/logger_ext.erl
erlang
=================================================================== Exported functions =================================================================== -------------------------------------------------------------------- @doc information to it, else it just create it. Writes a 'start'-message and then calls lo...
-module(logger_ext). -export([start/1]). -vsn('$Rev: 15 $'). -ifdef(TEST). -compile(export_all). -endif. @private Opens a file with appendflag . If a file exist it appends new ( ) ) - > term ( ) @todo ! ! ! ! start(Filename) -> {ok, IoDevice} = file:open(Filename, [raw,append]), file:write(IoDevice, "St...
6cee08a1539328b36872f3ed2f2740688b156a86d3e4b9f77a70c8f938c6f19e
Zulu-Inuoe/raw-bindings-sdl2
gesture.lisp
raw - bindings - sdl2 - FFI bindings to Written in 2017 by < > ;;; ;;;To the extent possible under law, the author(s) have dedicated all copyright ;;;and related and neighboring rights to this software to the public domain ;;;worldwide. This software is distributed without any warranty. You should have rec...
null
https://raw.githubusercontent.com/Zulu-Inuoe/raw-bindings-sdl2/fd219b896f3a0a9daef83cd1b303d806eeffa75a/src/ffi/gesture.lisp
lisp
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. with this software. If not, see </>.
raw - bindings - sdl2 - FFI bindings to Written in 2017 by < > You should have received a copy of the CC0 Public Domain Dedication along (in-package #:raw-bindings-sdl2) (defsdl2type sdl-gesture-id :int64) (defsdl2fun ("SDL_RecordGesture" sdl-record-gesture) :int (touch-id sdl-touch-id)) (defsd...
8984e4e9e1fc94ca1371708dd14f858f2af1d830b91bdfbc8f9bd120f4db3422
ciderpunx/57-exercises-for-programmers
P11Currency.hs
# LANGUAGE DeriveGeneric # module P11Currency where import Text.Printf (printf) import Data.Aeson import GHC.Generics import Network.HTTP.Conduit (simpleHttp) import Data.Text (Text) import Control.Applicative((<$>)) import Library data Conversion = Conversion { success :: Bool , target :: !Text ...
null
https://raw.githubusercontent.com/ciderpunx/57-exercises-for-programmers/25958ab80cc3edc29756d3bddd2d89815fd390bf/src/P11Currency.hs
haskell
^ Initial quantity. ^ Initial currency. ^ Target currency. ^ Result.
# LANGUAGE DeriveGeneric # module P11Currency where import Text.Printf (printf) import Data.Aeson import GHC.Generics import Network.HTTP.Conduit (simpleHttp) import Data.Text (Text) import Control.Applicative((<$>)) import Library data Conversion = Conversion { success :: Bool , target :: !Text ...
09ff95cdafc4de5e524020a720ccc6803c44090296a0494a01e3d6238f6addbf
HunterYIboHu/htdp2-solution
11.4-editor-part1.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname 11.4-editor-part1) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repe...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter2/Section11-more-on-list/11.4-editor-part1.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions An Lo1S is one of: - empty main functions String String -> Editor e, and the rest string is post part of the e. auxilliary functions Lo1S -> Lo1S reverse the 1string in the given list. Lo1S 1String -> Lo1S ad...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname 11.4-editor-part1) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define-struct editor [pre post]) An Editor is ...
4f5c297ecbe5b47ea78d1ac275b2d63a206c49e1312312e6c37fb7e2df794753
ferdinand-beyer/init
test_config.clj
(ns init.test-support.test-config (:require [init.config :as config] [init.component :as component])) (defn component ([name] (component name nil)) ([name provides] (component name provides nil)) ([name provides requires] (component/component {:name name :tags prov...
null
https://raw.githubusercontent.com/ferdinand-beyer/init/9f986feea3f49c407c9ae58e6cb97553b349fd29/test/init/test_support/test_config.clj
clojure
(ns init.test-support.test-config (:require [init.config :as config] [init.component :as component])) (defn component ([name] (component name nil)) ([name provides] (component name provides nil)) ([name provides requires] (component/component {:name name :tags prov...
1808db5798a7f5ac888061e6c83ab423870f4b756293e7347accd14e74b7de91
alexandergunnarson/quantum
rewrite.cljc
(ns quantum.untyped.core.analyze.rewrite (:require [quantum.untyped.core.core :as ucore])) (ucore/log-this-ns) (defn remove-do [code] (if (and (seq? code) (-> code first (= 'do))) (rest code) code))
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src-untyped/quantum/untyped/core/analyze/rewrite.cljc
clojure
(ns quantum.untyped.core.analyze.rewrite (:require [quantum.untyped.core.core :as ucore])) (ucore/log-this-ns) (defn remove-do [code] (if (and (seq? code) (-> code first (= 'do))) (rest code) code))
22404b82438eb07e946b4f7b7dd1d44bc7c9cf5429e600305124c25dbb6dd076
input-output-hk/ouroboros-network
IOLike.hs
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -Wno - orphans # module Test.Util.Orphans.IOLike () where import Control.Monad.IOSim import Ouroboros.Consensus.Util.IOLike import Test.Util.Orphans.NoThunks () instance IOLike (IOSim s) where forgetSignKeyKES = const $ return ()
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus-test/src/Test/Util/Orphans/IOLike.hs
haskell
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -Wno - orphans # module Test.Util.Orphans.IOLike () where import Control.Monad.IOSim import Ouroboros.Consensus.Util.IOLike import Test.Util.Orphans.NoThunks () instance IOLike (IOSim s) where forgetSignKeyKES = const $ return ()
dbe9e7ce7944ec6559f278d51b9c56c7abd0eb1bd80bd07a2a7b7084fc3664da
owlbarn/owl_opt
gd.ml
open Base module Make (AD : Owl_algodiff_generic_sig.Sig with type A.elt = float) (P : Prms.PT) = struct type prm = AD.t type fv = AD.t type prms = prm P.t type f = int -> prms -> fv type state = { mutable prms : prms ; mutable fv_hist : float list ; mutable k : int ; lr : Lr.t } type...
null
https://raw.githubusercontent.com/owlbarn/owl_opt/c3b34072dddbce2d70e1698c5f1fd84d783f9cef/src/opt/gd/gd.ml
ocaml
open Base module Make (AD : Owl_algodiff_generic_sig.Sig with type A.elt = float) (P : Prms.PT) = struct type prm = AD.t type fv = AD.t type prms = prm P.t type f = int -> prms -> fv type state = { mutable prms : prms ; mutable fv_hist : float list ; mutable k : int ; lr : Lr.t } type...
973ea8260fc3e7ae630b6edb244b7f6ebd3c3c485dd70b6a0c965324bce8de55
clj-commons/seesaw
to_widget.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be ...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/to_widget.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) , 2011 . All rights reserved . (ns seesaw.test.to-widget (:use seesaw.to-widget) (:use [lazytest.describe :only (describe it testing)] [lazytest.expect :only (expect)]))
c6ff5234f756b3ac5139d7991acc0c20bc9d0b85936023e0c845c9f0dcfaee4e
emqx/emqx
emqx_auto_subscribe.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/ce2b4d48ad5efe76e50b2e51cc5a3b3359f4a85c/apps/emqx_auto_subscribe/src/emqx_auto_subscribe.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_auto_subscribe). -include_lib("emqx/include/emqx_hooks.hrl"). -define(HOOK_POINT,...
87d69002a571c1715289b9e2e359e554ee682b34da31f46e4e1ba86cd5243ff3
racket/racket7
main.rkt
#lang racket/base (require "context.rkt" "top.rkt" "multi-top.rkt" "module.rkt" "recompile.rkt") ;; Compilation of expanded code produces an S-expression (but enriched ;; with source locations and properties) where run-time primitive are ;; accessed directly, and all linklet imports...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/compile/main.rkt
racket
Compilation of expanded code produces an S-expression (but enriched with source locations and properties) where run-time primitive are accessed directly, and all linklet imports and local variables are renamed to avoid collisions with the primitive names and to avoid all shadowing (but the same variable might be u...
#lang racket/base (require "context.rkt" "top.rkt" "multi-top.rkt" "module.rkt" "recompile.rkt") Compilation to linklets uses one of two protocols , which differ in the shapes of linklets that they generate : compiled using one protocol . The generated linklets for a si...
f68fc1d027bd5cae9953a53aa456ea9c855cd2f6fc6a9a665c76ebfe445619df
caradoc-org/caradoc
entry.mli
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 (* ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/util/entry.mli
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have rece...
655f364296375589799fe8df170d7a5e3a51720c8404cee28088d08ccfbba921
MinaProtocol/mina
transaction_union_tag.mli
(* transaction_union_tag.ml *) [%%import "/src/config.mlh"] open Core_kernel [%%ifdef consensus_mechanism] open Snark_params.Tick [%%endif] type t = Payment | Stake_delegation | Fee_transfer | Coinbase [@@deriving enum, equal, sexp] val to_string : t -> string val gen : t Quickcheck.Generator.t val to_bits : t...
null
https://raw.githubusercontent.com/MinaProtocol/mina/46a32b07d3d2fa57beee34e0d73d633610ecb6cf/src/lib/mina_base/transaction_union_tag.mli
ocaml
transaction_union_tag.ml * Bits-only representation. To be used for hashing, where the actual value is not relevant to the computation. * Full representation. This pre-computes all of the tag variables, but may still be convered to bits without adding any constraints.
[%%import "/src/config.mlh"] open Core_kernel [%%ifdef consensus_mechanism] open Snark_params.Tick [%%endif] type t = Payment | Stake_delegation | Fee_transfer | Coinbase [@@deriving enum, equal, sexp] val to_string : t -> string val gen : t Quickcheck.Generator.t val to_bits : t -> bool list val to_input_leg...
914c58ebbf6b6ae68c7c11e20b7398be9c12ffa78683ecb785d2dd4df4883eea
lambdacube3d/lambdacube-edsl
LC_GL_Util.hs
module LC_GL_Util ( queryUniforms, queryStreams, mkUSetter, mkSSetter, compileShader, printProgramLog, glGetShaderiv1, glGetProgramiv1, Buffer(..), ArrayDesc(..), StreamSetter, streamToInputType, arrayTypeToGLType, comparisonFunctionToGLType, logicOperationToG...
null
https://raw.githubusercontent.com/lambdacube3d/lambdacube-edsl/4347bb0ed344e71c0333136cf2e162aec5941df7/lambdacube-core/tmp/sandbox/LC_GL_Util.hs
haskell
internal type item count byte position in buffer size in bytes uniform functions attribute functions should handle constant value and buffer value as well FIXME : GL 2.1 does not have glVertexAttribIPointer result list: [(name string,location,gl type,component count)]
module LC_GL_Util ( queryUniforms, queryStreams, mkUSetter, mkSSetter, compileShader, printProgramLog, glGetShaderiv1, glGetProgramiv1, Buffer(..), ArrayDesc(..), StreamSetter, streamToInputType, arrayTypeToGLType, comparisonFunctionToGLType, logicOperationToG...
5a4281a0f1d44c385f5da5b4c7d20ebe51898c4b99b79fbeab0aed13d380afe5
brendanzab/language-garden
Cpu.ml
open ShaderTypes type 'a repr = 'a let float s = s let vec2 s1 s2 = vec2 s1 s2 let vec3 s1 s2 s3 = vec3 s1 s2 s3 let vec4 s1 s2 s3 s4 = vec4 s1 s2 s3 s4 let mat2 v1 v2 = vec2 v1 v2 let mat3 v1 v2 v3 = vec3 v1 v2 v3 let mat4 v1 v2 v3 v4 = vec4 v1 v2 v3 v4 let neg s = -.s let neg_vec v = map_vec neg v let add = ( ...
null
https://raw.githubusercontent.com/brendanzab/language-garden/d73b3e95dc7206f02c2a8ecc96c7aac10db4cc9e/lang-shader-graphics/lib/Cpu.ml
ocaml
See: -Refpages/gl4/html/mod.xhtml See: -Refpages/gl4/html/clamp.xhtml See: -Refpages/gl4/html/smoothstep.xhtml See: -Refpages/gl4/html/step.xhtml See #PPM_example this is a RGB color image in ASCII the width and height of the image in pixels maximum value for each color
open ShaderTypes type 'a repr = 'a let float s = s let vec2 s1 s2 = vec2 s1 s2 let vec3 s1 s2 s3 = vec3 s1 s2 s3 let vec4 s1 s2 s3 s4 = vec4 s1 s2 s3 s4 let mat2 v1 v2 = vec2 v1 v2 let mat3 v1 v2 v3 = vec3 v1 v2 v3 let mat4 v1 v2 v3 v4 = vec4 v1 v2 v3 v4 let neg s = -.s let neg_vec v = map_vec neg v let add = ( ...
98c29e92e75992801acf7c175d6db347bb8ab346d946b36de117f436931f9293
SchornacklabSLCU/amfinder
imgPointer.ml
AMFinder - img / imgPointer.ml * * MIT License * Copyright ( c ) 2021 * * 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...
null
https://raw.githubusercontent.com/SchornacklabSLCU/amfinder/1053045b431b9e9e85a7bcebea2e38cda92a8dcd/amfbrowser/sources/img/imgPointer.ml
ocaml
same position
AMFinder - img / imgPointer.ml * * MIT License * Copyright ( c ) 2021 * * 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...
a127408a0167e392cf99208ec780a60fc33971f1be30206f3786f9dca8f8a4f8
losfair/Violet
Fifo.hs
module Violet.Backend.Fifo where import Clash.Prelude import Violet.Types.Fifo import qualified Violet.Types.Fetch as FetchT import qualified Debug.Trace import qualified Prelude import qualified Violet.Backend.DualPort as DualPort fifo' :: (Unsigned FifoBits, Unsigned FifoBits, FifoPushCap) -> (FifoItem, FifoI...
null
https://raw.githubusercontent.com/losfair/Violet/dcdd05f8dc08a438a157347f424966da73ccc9b8/src/Violet/Backend/Fifo.hs
haskell
module Violet.Backend.Fifo where import Clash.Prelude import Violet.Types.Fifo import qualified Violet.Types.Fetch as FetchT import qualified Debug.Trace import qualified Prelude import qualified Violet.Backend.DualPort as DualPort fifo' :: (Unsigned FifoBits, Unsigned FifoBits, FifoPushCap) -> (FifoItem, FifoI...
c7dafdc64258fde00aec1517471a27a4f022f122036fc644a634505086f823dc
avsm/eeww
proc.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/651d8da20a3cc9e88354ed0c8da270632b9c0c19/boot/ocaml/asmcomp/proc.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the val word_addressed: bool val num_register_classes: int val register_class: Reg.t -> int val num_availab...
9e9236d0110a03189b62a49e1c0ead4767f74694d0b5f0aec8359766a7df1381
2600hz-archive/whistle
detergent_server.erl
%%%------------------------------------------------------------------- Created : 29 Nov 2006 by < > Author : ( ) . %%% Desc : A SOAP server. %%%------------------------------------------------------------------- -module(detergent_server). -behaviour(gen_server). %% API -export([start_link/0, start_lin...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/detergent-0.2/src/detergent_server.erl
erlang
------------------------------------------------------------------- Desc : A SOAP server. ------------------------------------------------------------------- API gen_server callbacks ==================================================================== API =========================================================...
Created : 29 Nov 2006 by < > Author : ( ) . -module(detergent_server). -behaviour(gen_server). -export([start_link/0, start_link/1, setup/1, setup/2, setup/3 ]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -include_lib("detergent...
8f9aeb18d6eac201e9e3fccc6d065d276fd2519aef95030e6910128a4a23fdd9
camlspotter/ocamloscope.2
t35_double_entry.ml
module K = struct type s end module M1 = struct type t = Bar of K.s end module M2 : module type of M1 = struct type t = Bar of K.s end module Temporal = struct module Datetime = struct type t = { x : int } end end module DatetimeCopy = Temporal.Datetime
null
https://raw.githubusercontent.com/camlspotter/ocamloscope.2/49b5977a283cdd373021d41cb3620222351a2efe/tests/t35_double_entry.ml
ocaml
module K = struct type s end module M1 = struct type t = Bar of K.s end module M2 : module type of M1 = struct type t = Bar of K.s end module Temporal = struct module Datetime = struct type t = { x : int } end end module DatetimeCopy = Temporal.Datetime
81c984a4ffed86296686001d06a40e9d5016fa1aa6f6ce6210c11f393ecd54c4
skanev/playground
53.scm
SICP exercise 2.53 ; ; What would be the interpreter print in response to evaluating each of the ; following expressions? ; ; (list 'a 'b 'c) ( list ( list ) ) ; (cdr '((x1 x2) (y1 y2))) ( cadr ' ( ( x1 x2 ) ( y1 y2 ) ) ) ; (pair? (car '(a short list))) ; (memq 'red '((red shoes) (blue socks))) ( memq ' red '...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/53.scm
scheme
What would be the interpreter print in response to evaluating each of the following expressions? (list 'a 'b 'c) (cdr '((x1 x2) (y1 y2))) (pair? (car '(a short list))) (memq 'red '((red shoes) (blue socks))) (list 'a 'b 'c) '(a b c) '((george)) (cdr '((x1 x2) (y1 y2))) '((y1 y2)) '(y1 y2) (pair? (car...
SICP exercise 2.53 ( list ( list ) ) ( cadr ' ( ( x1 x2 ) ( y1 y2 ) ) ) ( memq ' red ' ( red shoes ) ) ( list ( list ) ) ( cadr ' ( ( x1 x2 ) ( y1 y2 ) ) )
ad05ccb9acea672eb7881a05bbedc54f39cc96e89ba041dbec2d9be745f68ae0
oakes/odoyle-rum
core.cljc
(ns example.core (:require [rum.core :as rum] [odoyle.rules :as o] [odoyle.rum :as orum])) (defn click [state] (-> state (o/insert ::global ::event ::click) o/fire-rules)) (def rules (o/ruleset {::on-click [:what [::global ::event ::click] [::global ::cli...
null
https://raw.githubusercontent.com/oakes/odoyle-rum/9f353dcf078b4037f891ec5b8f515102c2703803/dev-resources/example/core.cljc
clojure
(ns example.core (:require [rum.core :as rum] [odoyle.rules :as o] [odoyle.rum :as orum])) (defn click [state] (-> state (o/insert ::global ::event ::click) o/fire-rules)) (def rules (o/ruleset {::on-click [:what [::global ::event ::click] [::global ::cli...
0234b4d3368c469627585a5cbd969c720db1e842a3d33ce701d4412b0e2f590a
ermine/kombain
abnf2peg.ml
open Kmb_input open Kmb_lib open Kmb_grammar open Printf let _ = Printexc.record_backtrace true let () = let file = Sys.argv.(1) in let input = of_file file in let result = Abnf_parser.parse input in match result with | Failed -> printf "failed\n" | Parsed (ast, rest) -> printf "...
null
https://raw.githubusercontent.com/ermine/kombain/07f643c892b0b9c2ef08d67428bb9125d5251f82/abnf/abnf2peg.ml
ocaml
open Kmb_input open Kmb_lib open Kmb_grammar open Printf let _ = Printexc.record_backtrace true let () = let file = Sys.argv.(1) in let input = of_file file in let result = Abnf_parser.parse input in match result with | Failed -> printf "failed\n" | Parsed (ast, rest) -> printf "...
1c9014cb3134a114d4f9b2db8fd4ad32b54747e30a7b5300520b99bd03de04d5
unbalancedparentheses/radioelm
uc_default.erl
-module(uc_default). -export( [ init/3, rest_init/2, content_types_accepted/2, content_types_provided/2, forbidden/2, is_authorized/2, resource_exists/2 ] ). %% cowboy init(_Transport, _Req, _Opts) -> {upgrade, protocol, cowboy_rest}. rest_init(Req, _Opts) -> {ok, Req, #{}}...
null
https://raw.githubusercontent.com/unbalancedparentheses/radioelm/649ecff452bc3ddc8c316e7e5abf6e7523dc566e/api/src/uc_default.erl
erlang
cowboy
-module(uc_default). -export( [ init/3, rest_init/2, content_types_accepted/2, content_types_provided/2, forbidden/2, is_authorized/2, resource_exists/2 ] ). init(_Transport, _Req, _Opts) -> {upgrade, protocol, cowboy_rest}. rest_init(Req, _Opts) -> {ok, Req, #{}}. content...
fd566c348fb8d805c8ba7bab57c5c154c292238336fe5a2508bd18fad351b8cb
coco-team/lustrec
horn_backend_traces.ml
(********************************************************************) (* *) The LustreC compiler toolset / The LustreC Development Team Copyright 2012 - -- ONERA - CNRS - INPT (* ...
null
https://raw.githubusercontent.com/coco-team/lustrec/b21f9820df97e661633cd4418fdab68a6c6ca67d/src/backends/Horn/horn_backend_traces.ml
ocaml
****************************************************************** LustreC is free software, distributed WITHOUT ANY WARRANTY under the terms of the GNU Lesser General Public L...
The LustreC compiler toolset / The LustreC Development Team Copyright 2012 - -- ONERA - CNRS - INPT version 2.1 . The compilation presented here was first defined in Garoche , Gurfinkel , Kahsai , HCSV'14 . This...
96452aa4f287afda5634e8d2a8657b3d7974f0528c2e9a26a76a5085cde89bf1
gafiatulin/codewars
PointsOnALine.hs
-- Points On A Line -- / module PointsOnALine where type Point = (Rational, Rational) onLine :: [Point] -> Bool onLine ps = if length unique <= 2 then True else all (\p -> (fst p1 * (snd p2 - snd p) + fst p2 * (snd p - snd p1) + fst p * (snd p1 - snd p2)) == 0) (drop 2 ps) where f [] = []...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/PointsOnALine.hs
haskell
Points On A Line /
module PointsOnALine where type Point = (Rational, Rational) onLine :: [Point] -> Bool onLine ps = if length unique <= 2 then True else all (\p -> (fst p1 * (snd p2 - snd p) + fst p2 * (snd p - snd p1) + fst p * (snd p1 - snd p2)) == 0) (drop 2 ps) where f [] = [] f (x: xs) = x ...
71cf6bb9d352cec72a45574329b36f5e6501d9320ec527840dfde7b5e8254176
remixlabs/wasicaml
wc_sexp2s.ml
Copyright ( C ) 2021 by Figly , Inc. This code is free software , see the file LICENSE for details . This code is free software, see the file LICENSE for details. *) (* write the WAT-type S-expression as a .s file that is understood by LLVM *) open Wc_sexp open Printf let rec ascii s = let b = Bu...
null
https://raw.githubusercontent.com/remixlabs/wasicaml/a4638885611763aab57b078d00d2c43298820caf/src/wasicaml/wc_sexp2s.ml
ocaml
write the WAT-type S-expression as a .s file that is understood by LLVM octal llvm-11 seems not to support "immutable" but it is already in master (if is_mut then "" else ",immutable") ignored, memory is handled by the linker ignored, table is handled by the linker TODO: inline export
Copyright ( C ) 2021 by Figly , Inc. This code is free software , see the file LICENSE for details . This code is free software, see the file LICENSE for details. *) open Wc_sexp open Printf let rec ascii s = let b = Buffer.create 80 in Buffer.add_string b "\t.ascii \""; String.iteri (fun i c...
95799fadab31fc56f2b7df9c4c583baf260070631cb69b296ee21f77bdfc27ca
uim/uim
sqlite3.scm
;;; sqlite3.scm: sqlite3 for uim. ;;; Copyright ( c ) 2009 - 2013 uim Project ;;; ;;; 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 th...
null
https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/sqlite3.scm
scheme
sqlite3.scm: sqlite3 for uim. 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 followin...
Copyright ( c ) 2009 - 2013 uim Project 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR...
205758ff3618e79f640ef87655bef8cd6bdb5c4d1d0febd257d66532bd75a9b8
hslua/hslua
PrimaryTests.hs
{-# LANGUAGE OverloadedStrings #-} {-| Tests for the primary library. -} module HsLua.Core.PrimaryTests (tests) where import HsLua.Core import Test.Tasty.HsLua ((=:), shouldBeResultOf) import Test.Tasty (TestTree, testGroup) -- | Specifications for Attributes parsing functions. tests :: TestTree tests = testGroup "Pr...
null
https://raw.githubusercontent.com/hslua/hslua/81cf71552f10f192c036a5995c2cdb649fe64cf2/hslua-core/test/HsLua/Core/PrimaryTests.hs
haskell
# LANGUAGE OverloadedStrings # | Tests for the primary library. | Specifications for Attributes parsing functions.
module HsLua.Core.PrimaryTests (tests) where import HsLua.Core import Test.Tasty.HsLua ((=:), shouldBeResultOf) import Test.Tasty (TestTree, testGroup) tests :: TestTree tests = testGroup "Primary" [ testGroup "rotate'" [ "rotates stack" =: (Just 2, Just 1, Just 4, Just 3) `shouldBeResultOf` do push...
ac2809647d8574d262e59f65d07add4b56fa4e2ebbe21e8d48d94dc83decf692
Frama-C/Frama-C-snapshot
GuiTactic.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/GuiTactic.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
6e72875d2ea9e67c721234c7db6ca960449d07dffa90814432e6e22b8417619f
mabragor/cl-yaclyaml
tests.lisp
(in-package :cl-user) (defpackage :cl-yaclyaml-tests (:use :alexandria :cl :cl-yaclyaml :esrap-liquid :fiveam :iterate) (:shadowing-import-from #:esrap-liquid #:! #:!!) (:export #:run-tests)) (in-package :cl-yaclyaml-tests) (cl-interpol:enable-interpol-syntax) (def-suite yaclyaml) (in-suite yaclyaml) (defun ...
null
https://raw.githubusercontent.com/mabragor/cl-yaclyaml/56b02e3574b00613e5f2cc70a0ffb9d6da76e158/tests.lisp
lisp
and all the above components together bare documents may not be empty! sadly, block scalars do not strip comment of their contents. FIXME: for now such a lame check will suffice, I dunno how to check shared structured-ness easily Generating native language structures from representation graph (defmacro with-flat-...
(in-package :cl-user) (defpackage :cl-yaclyaml-tests (:use :alexandria :cl :cl-yaclyaml :esrap-liquid :fiveam :iterate) (:shadowing-import-from #:esrap-liquid #:! #:!!) (:export #:run-tests)) (in-package :cl-yaclyaml-tests) (cl-interpol:enable-interpol-syntax) (def-suite yaclyaml) (in-suite yaclyaml) (defun ...
170f41fb64d393ebd0d7bedf3dabffb1a9d1aa90b8c680bc78b399547e7bc1b2
bsaleil/lc
fib.scm.scm
;;------------------------------------------------------------------------------ Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultVMIL-lc-gsc-lc/LCnaive/fib.scm.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Gabriel benchmarks C benchmarks Other benchmarks
Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst) `(vector ,@lst)) (def-macro (FLOATmake-vector n . init) `(make-vector ,...
8d5340acf49f05d4b36e29bacf947faece0f6f10c7fca1a47f69f462792fc0b6
ocaml/oasis
OASISSetupUpdate.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISSetupUpdate.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
881bd3033ea2cb6fba3ebeecdc5f46a9c00474ccff7ec77afb93549b76bcc36a
wlbr/cl-marshal
unmarshal.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : MARSHAL ; Base : 10 ; indent - tabs - mode : nil -*- ;;; *********************************************************** ;;; ;;; Project: marshal ;;; Simple (de)serialization of Lisp datastructures. ;;; ;;; File: marshal.lisp ;;; ;;; *********************************...
null
https://raw.githubusercontent.com/wlbr/cl-marshal/0e48cd4ef4ba1896d38ea0a87f376c1ff25eec71/unmarshal.lisp
lisp
Syntax : COMMON - LISP ; Package : MARSHAL ; Base : 10 ; indent - tabs - mode : nil -*- *********************************************************** Project: marshal Simple (de)serialization of Lisp datastructures. File: marshal.lisp *********************************************************** =================...
(in-package :marshal) (defgeneric initialize-unmarshalled-instance (object) (:documentation "Called as the last step of the deserialization of an object. !Must return the object!!") ) (defmethod initialize-unmarshalled-instance (object) "Called as the last step of the deserialization of an object. !Must r...
546aee7806fa880e9d33d700c3c4c35dc3508b44130e5f6a6965edc18e9c079e
grin-compiler/ghc-wpc-sample-programs
JATS.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Tests.Writers.JATS (tests) where import Prelude import Data.Text (unpack) import Test.Tasty import Tests.Helpers import Text.Pandoc import Text.Pandoc.Arbitrary () import Text.Pandoc.Builder jats :: (ToPandoc a) => a -> String jats = unpack . ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/test/Tests/Writers/JATS.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # module Tests.Writers.JATS (tests) where import Prelude import Data.Text (unpack) import Test.Tasty import Tests.Helpers import Text.Pandoc import Text.Pandoc.Arbitrary () import Text.Pandoc.Builder jats :: (ToPandoc a) => a -> String jats = unpack . purely (writeJATS def{ writerWrapTe...
0dbf314bfdc849475d804daacb920fcd483002c5809b54770ee7b244c676fe16
dyzsr/ocaml-selectml
t090-acc3.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = true in let y = false in let z = false in let a = false i...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t090-acc3.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let x = true in let y = false in let z = false in let a = false i...
92f5b37108adae4364984f055450836ad08bca5b017b1a5701a160ca1428e672
fetburner/Coq2SML
detyping.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/pretyping/detyping.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Univ o...