_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
f01af137313148f71958238eb4ddd9c07bdc9fea592538fed4afecf8174d129d
zcaudate-me/lein-repack
project.clj
(defproject lama "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"]] :profiles {:dev {:plugins [[lein-repack "0.2.7"]]}})
null
https://raw.githubusercontent.com/zcaudate-me/lein-repack/1eb542d66a77f55c4b5625783027c31fd2dddfe5/example/repack.simple/project.clj
clojure
(defproject lama "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"]] :profiles {:dev {:plugins [[lein-repack "0.2.7"]]}})
a304db6c2fddbcbbf6c20f1ad18ca5fcf20a74cead7308d4c57a867d65111ef7
macourtney/Conjure
project.clj
(defproject org.conjure/conjure-html "1.0.1-SNAPSHOT" :description "Conjure html is a library for converting s-expressions into html. It has the same syntax as hiccup, but has optimizations for Conjure." :dependencies [[org.clojure/clojure "1.4.0"]])
null
https://raw.githubusercontent.com/macourtney/Conjure/1d6cb22d321ea75af3a6abe2a5bc140ad36e20d1/conjure_html/project.clj
clojure
(defproject org.conjure/conjure-html "1.0.1-SNAPSHOT" :description "Conjure html is a library for converting s-expressions into html. It has the same syntax as hiccup, but has optimizations for Conjure." :dependencies [[org.clojure/clojure "1.4.0"]])
d6cf81b9cc43522a008e468eca62d2abe825a0076c0b21e94ac25684070b1302
ermine-language/ermine
Type.hs
# LANGUAGE CPP # {-# LANGUAGE Rank2Types #-} # LANGUAGE TypeFamilies # # LANGUAGE PatternGuards # # LANGUAGE TupleSections # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses ...
null
https://raw.githubusercontent.com/ermine-language/ermine/bd58949ab56311be9e0d2506a900f3d77652566b/src/Ermine/Inference/Type.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------ | Stability : experimental Portability: non-portable ------------------------------------------------------------------ traverse (generalizeWitnessType d) xs TODO...
# LANGUAGE CPP # # LANGUAGE TypeFamilies # # LANGUAGE PatternGuards # # LANGUAGE TupleSections # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # Copyright : ( c ) and 2011 - 2014 License : BSD2 Maintainer : < > module...
198ef1c4a974c6393c69e4fa61034670d2d910339b58dd07c39292d6ba3607ba
ronxin/stolzen
all-tests.scm
#lang racket/base (require "raise-tests.scm") (require "drop-tests.scm") (require "coerse-test.scm") (require "scheme-numbers-tests.scm") (require "rational-tests.scm") (require "complex-numbers-tests.scm") (require "diff-types-operations-tests.scm")
null
https://raw.githubusercontent.com/ronxin/stolzen/bb13d0a7deea53b65253bb4b61aaf2abe4467f0d/sicp/chapter2/2.5/generic-ops/tests/all-tests.scm
scheme
#lang racket/base (require "raise-tests.scm") (require "drop-tests.scm") (require "coerse-test.scm") (require "scheme-numbers-tests.scm") (require "rational-tests.scm") (require "complex-numbers-tests.scm") (require "diff-types-operations-tests.scm")
15d89655774e8b90bfde62ee71ee29424dc2da93835bd7d7668df3cb1ce3b723
nikita-volkov/rerebase
Arr.hs
module GHC.Arr ( module Rebase.GHC.Arr ) where import Rebase.GHC.Arr
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/GHC/Arr.hs
haskell
module GHC.Arr ( module Rebase.GHC.Arr ) where import Rebase.GHC.Arr
5c14d730ea4c51637f143d00ca4adae28e22d5f86eb99aca61e2251838f0549a
erlangonrails/devdb
net_util.erl
@author litao cheng 2008 toquick.com . %%% @doc some util function for network -module(net_util). -author(''). -vsn('0.1'). -include("e2d.hrl"). -export([http_get/2, http_get/3]). -spec http_get(Url :: string(), Timeout :: pos_integer()) -> {'ok', string()} | {'error', any()}. http_get(Url, Timeout) when i...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/e2dynamo/src/node/net_util.erl
erlang
@doc some util function for network
@author litao cheng 2008 toquick.com . -module(net_util). -author(''). -vsn('0.1'). -include("e2d.hrl"). -export([http_get/2, http_get/3]). -spec http_get(Url :: string(), Timeout :: pos_integer()) -> {'ok', string()} | {'error', any()}. http_get(Url, Timeout) when is_list(Url) andalso is_integer(Timeout) ...
ff4a8a7c0cf7ddadd3afc46d96f904904a98394aeb6d620fbea467a524a187ee
foxhound-systems/eved
QueryParam.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Web.Eved.QueryParam where import Data.Functor.Contravariant (Contravariant (..)) import Data.Functor.Invariant (Invariant (..), invmapContravariant, invmapFunctor) import ...
null
https://raw.githubusercontent.com/foxhound-systems/eved/95116c4bdcff0b81f4c79fb550cddd3f525ed09a/src/Web/Eved/QueryParam.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Web.Eved.QueryParam where import Data.Functor.Contravariant (Contravariant (..)) import Data.Functor.Invariant (Invariant (..), invmapContravariant, invmapFunctor) import Data.Proxy ...
c06e831ace22e5288318cc93f6eeacc34421b24a8bacd5858d566e9e7aeff155
wargrey/w3s
document.rkt
#lang typed/racket/base ;;; /#sec-documents (provide (all-defined-out)) (require "dtd.rkt") (require "schema.rkt") (require "validity.rkt") (require "doctype.rkt") (require "grammar.rkt") (require "normalize.rkt") (require "whitespace.rkt") (require "plain/grammar.rkt") (require "plain/normalize.rkt") (require "di...
null
https://raw.githubusercontent.com/wargrey/w3s/2323ac18cdb3a04868485907fdc3b8e8220dd11c/sgml/digitama/document.rkt
racket
/#sec-documents xml-dtd? or #false |])]
#lang typed/racket/base (provide (all-defined-out)) (require "dtd.rkt") (require "schema.rkt") (require "validity.rkt") (require "doctype.rkt") (require "grammar.rkt") (require "normalize.rkt") (require "whitespace.rkt") (require "plain/grammar.rkt") (require "plain/normalize.rkt") (require "digicore.rkt") (requir...
35d86f22562912fdfffef4b19c0057e7962ee01e59a31f018ecc9ea76f4e7463
Zulu-Inuoe/clution
benchmark.lisp
(in-package :cl-user) (defpackage dexador-test.benchmark (:use :cl)) (in-package :dexador-test.benchmark) (defun run-benchmark () (clack:clackup (lambda (env) (declare (ignore env)) (list 200 ()))))
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/dexador-20171130-git/t/benchmark.lisp
lisp
(in-package :cl-user) (defpackage dexador-test.benchmark (:use :cl)) (in-package :dexador-test.benchmark) (defun run-benchmark () (clack:clackup (lambda (env) (declare (ignore env)) (list 200 ()))))
cf0aa2395ba9a3cee7b27212fe5df616c2bf263de5d4b057054ef1a46496d4a2
cyverse-archive/DiscoveryEnvironmentBackend
pipeline.clj
(ns metadactyl.routes.domain.pipeline (:use [common-swagger-api.schema :only [->optional-param describe]] [metadactyl.routes.params] [metadactyl.routes.domain.app :only [AppTaskListing]] [schema.core :only [defschema optional-key Keyword]]) (:import [java.util UUID])) (defschema PipelineMap...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/metadactyl-clj/src/metadactyl/routes/domain/pipeline.clj
clojure
(ns metadactyl.routes.domain.pipeline (:use [common-swagger-api.schema :only [->optional-param describe]] [metadactyl.routes.params] [metadactyl.routes.domain.app :only [AppTaskListing]] [schema.core :only [defschema optional-key Keyword]]) (:import [java.util UUID])) (defschema PipelineMap...
c341588bda593699cfa7bee3acbfe5c55177f39fc9ee68869416837971746e28
flokkus/fast_mnesia
sc_app.erl
-module(sc_app). -behaviour(application). -export([start/2, stop/1]). -define(WAIT_FOR_RESOURCES, 2500). start(_StartType, _StartArgs) -> ok = ensure_contact(), resource_discovery:add_local_resource(simple_cache, node()), resource_discovery:add_target_resource_type(simple_cache), resource_discovery:...
null
https://raw.githubusercontent.com/flokkus/fast_mnesia/6551656d22f8ae66b7afdfcbd757851d43b1b31f/old/release_chapter_10/simple_cache/src/sc_app.erl
erlang
-module(sc_app). -behaviour(application). -export([start/2, stop/1]). -define(WAIT_FOR_RESOURCES, 2500). start(_StartType, _StartArgs) -> ok = ensure_contact(), resource_discovery:add_local_resource(simple_cache, node()), resource_discovery:add_target_resource_type(simple_cache), resource_discovery:...
342a2c367aba7eced72774c1a58b7d5e8336e670090bd52a9a06b52b92ccb82d
juanmirocks/CL-HMM
for&back-ward.lisp
Author : ;; Created: Wed Jul 9 19:06:53 2008 (CEST) Last - Updated : 2011 - 08 - 11 By : Update # : 32 (in-package :net.ashrentum.cl-hmm) ;;(declaim (sb-ext:unmuffle-conditions sb-ext:compiler-note)) ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Forward and B...
null
https://raw.githubusercontent.com/juanmirocks/CL-HMM/9e3863e41dec811032927ec29319128ae34d1984/src/for%26back-ward.lisp
lisp
Created: Wed Jul 9 19:06:53 2008 (CEST) (declaim (sb-ext:unmuffle-conditions sb-ext:compiler-note)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Forward and Backward (original) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; simple wrapper by now. Possible to don't calculat...
Author : Last - Updated : 2011 - 08 - 11 By : Update # : 32 (in-package :net.ashrentum.cl-hmm) (defgeneric forward (hmm obs-c) (:documentation "Run forward algorithm for the cbook-encoded observation hmm obs-c: observation index-coded (see cbook) value1: probabilit...
f4d9b1c10653a78bf098c67e810d277e9289181fc4b378d6f246bf0becd7fd6c
coord-e/mlml
find_dependencies.ml
module SS = Tree.Simple_set module TyExpr = Tree.Type_expression module Expr = Tree.Expression module Mod = Tree.Module module Path = Tree.Path module Pat = Tree.Pattern type mutable_set = {mutable data : string SS.t} let empty () = {data = SS.empty} let union s x = s.data <- SS.union x s.data let add s x = s.data <-...
null
https://raw.githubusercontent.com/coord-e/mlml/ec34b1fe8766901fab6842b790267f32b77a2861/mlml/bundler/find_dependencies.ml
ocaml
module SS = Tree.Simple_set module TyExpr = Tree.Type_expression module Expr = Tree.Expression module Mod = Tree.Module module Path = Tree.Path module Pat = Tree.Pattern type mutable_set = {mutable data : string SS.t} let empty () = {data = SS.empty} let union s x = s.data <- SS.union x s.data let add s x = s.data <-...
f7982cb5205fcc620c2f1ff17546860e0b1d7ec9a9bbb441c018ab5524366ee6
abarbu/haskell-torch
SimplifyNat.hs
# LANGUAGE MultiWayIf , ViewPatterns , PostfixOperators , ScopedTypeVariables # # OPTIONS_GHC -fwarn - incomplete - patterns -fwarn - overlapping - patterns -fwarn - unused - pattern - binds -Wno - type - defaults # | Simplifies and normalizes type - level arithmetic that consists of equalities and inequalities in...
null
https://raw.githubusercontent.com/abarbu/haskell-torch/03b2c10bf8ca3d4508d52c2123e753d93b3c4236/simplify-nat-algebra-plugin/src/Plugin/SimplifyNat.hs
haskell
| The last constraint is not redundant, discharge all the others based on the last one We could easily construct real proof for this, but I don't know how to do that. ^ Name the coercion should have ^ The RHS of the equivalence relation (~) | Only handles the simplest inequality constraints like error $ "JJ" ++...
# LANGUAGE MultiWayIf , ViewPatterns , PostfixOperators , ScopedTypeVariables # # OPTIONS_GHC -fwarn - incomplete - patterns -fwarn - overlapping - patterns -fwarn - unused - pattern - binds -Wno - type - defaults # | Simplifies and normalizes type - level arithmetic that consists of equalities and inequalities in...
7d6e759214f23252f9d826451c589915be5fcbc4b40765e7976b92d4ee5e34c8
bobot/FetedelascienceINRIAsaclay
calibration.mli
(** This module is used to calibrate the solver *) val calibrate_webcam : ?snapshot_file:string -> unit -> unit * [ calibrate_webcam ? snapshot_file _ ] for putting the picking color area on good position on the snapshot . [ snapshot_file ] is the way to access to she ppm snapshot file . area on good ...
null
https://raw.githubusercontent.com/bobot/FetedelascienceINRIAsaclay/87765db9f9c7211a26a09eb93e9c92f99a49b0bc/2010/robot/examples_mindstorm_lab/rubik/calibration.mli
ocaml
* This module is used to calibrate the solver * To calibrate the mechanics
val calibrate_webcam : ?snapshot_file:string -> unit -> unit * [ calibrate_webcam ? snapshot_file _ ] for putting the picking color area on good position on the snapshot . [ snapshot_file ] is the way to access to she ppm snapshot file . area on good position on the snapshot. [snapshot_file] is the wa...
a6c14a1fb3057796bda572ab07b5ac4222123c4abd898bc100dc890a8250e7eb
shamazmazum/wavelet-audio
package.lisp
(defpackage wavelet-audio-tests (:use #:cl #:fiveam #:trivial-bit-streams #:flexi-streams) (:export #:run-tests))
null
https://raw.githubusercontent.com/shamazmazum/wavelet-audio/199d78a5bce86e1cbf098e7d47627e0b676b049d/tests/package.lisp
lisp
(defpackage wavelet-audio-tests (:use #:cl #:fiveam #:trivial-bit-streams #:flexi-streams) (:export #:run-tests))
8a5205879ca940846c5ee024e66577309dcefe480a3ca15ccb19fb1f0c20f040
formal-land/coq-of-ocaml
record_in_signature.ml
module type Sig = sig type 'a t = { x : int; y : int; label : 'a; } val v : string t end module M : Sig = struct type 'a t = { x : int; y : int; label : 'a; } let v = { x = 0; y = 1; label = "hi" } end let v = M.v let s = M.v.label
null
https://raw.githubusercontent.com/formal-land/coq-of-ocaml/c9c86b08eb19d7fd023f48029cc5f9bf53f6a11c/tests/record_in_signature.ml
ocaml
module type Sig = sig type 'a t = { x : int; y : int; label : 'a; } val v : string t end module M : Sig = struct type 'a t = { x : int; y : int; label : 'a; } let v = { x = 0; y = 1; label = "hi" } end let v = M.v let s = M.v.label
d2d7b2438981367c125bbfae85e4ce134e69bb24af6a7f900078e8bac54e4000
achirkin/vulkan
VK_NV_external_memory_capabilities.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_HADDOCK not - home # {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE MagicHash #-} {...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_NV_external_memory_capabilities.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # > #include "vk_platform.h" # INLINE _VkGetPhysicalDev...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_HADDOCK not - home # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # module Graphics.Vulkan.Ext.VK_NV_external_memory_capabilities (AHardwareBuffer(), ANativeWindow(), CAMetalLayer(), VkBoo...
d2364a97587323e7882d6989607ac3ff8617559cb2c1afcbd10cefdb8cd1a7f5
herd/herdtools7
debug_herd.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/a0fe203b95a1a7ba9e81208c1cf0bda27ecfd22a/herd/debug_herd.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2013 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
28259e9c5b7fb8abcefb0ad3bc115a8bfb6d5b297ce977f25c7f7102f159a189
alexbs01/OCaml
prueba.ml
print_endline "Esto es una línea a imprimir con carácteres extraños"; let numero1 = 1.1; let numero2 = 2.0; print_float numero1 + numero2;
null
https://raw.githubusercontent.com/alexbs01/OCaml/130134af857d4d282c4414cd90cec1b5e1735a49/prueba/prueba.ml
ocaml
print_endline "Esto es una línea a imprimir con carácteres extraños"; let numero1 = 1.1; let numero2 = 2.0; print_float numero1 + numero2;
953d52a4d271996e37b4a054fb8e24656fb799089c456dc76bf9e7845069fcbb
hadolint/hadolint
DL1001Spec.hs
module Hadolint.Rule.DL1001Spec (spec) where import Data.Default import Data.Text as Text import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL1001 - Please don't use inline ignore pragma." $ do it "catches inline ignore pragma" $ do let file = [ "# ...
null
https://raw.githubusercontent.com/hadolint/hadolint/d16f342c8e70fcffc7a788d122a1ba602075250d/test/Hadolint/Rule/DL1001Spec.hs
haskell
module Hadolint.Rule.DL1001Spec (spec) where import Data.Default import Data.Text as Text import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL1001 - Please don't use inline ignore pragma." $ do it "catches inline ignore pragma" $ do let file = [ "# ...
3d22141a483c8f55bf8b39279823d11e9dc80e3c6e00444916a60ee0b32ea0b8
fulcrologic/statecharts
statecharts.cljc
(ns com.fulcrologic.statecharts "Placeholder ns so we can use it for aliasing in clojure 1.10 and below")
null
https://raw.githubusercontent.com/fulcrologic/statecharts/962b9e13a9e81a33e05e07ec5fd85214c5dd1f01/src/main/com/fulcrologic/statecharts.cljc
clojure
(ns com.fulcrologic.statecharts "Placeholder ns so we can use it for aliasing in clojure 1.10 and below")
a25cd5c9c948e6b1ee4b33414599bb64b14ad393b64a3724d7ce1f670c55efd5
yav/hobbit
Tests.hs
module Current.Tests where import System dir = "Area" tests = [ (["1.bit"], ExitSuccess) , (["2.bit"], ExitFailure 1) , (["3.bit"], ExitFailure 1) , (["4.bit"], ExitSuccess) , (["5.bit"], ExitSuccess) , (["6.bit"], ExitSuccess) , (["7.bit"], ExitSuccess) , (["8.bit"]...
null
https://raw.githubusercontent.com/yav/hobbit/31414ba1188f4b39620c2553b45b9e4d4aa40169/tests/Area/Tests.hs
haskell
module Current.Tests where import System dir = "Area" tests = [ (["1.bit"], ExitSuccess) , (["2.bit"], ExitFailure 1) , (["3.bit"], ExitFailure 1) , (["4.bit"], ExitSuccess) , (["5.bit"], ExitSuccess) , (["6.bit"], ExitSuccess) , (["7.bit"], ExitSuccess) , (["8.bit"]...
934dcfec99bc63864fa9d8c64b6d3cf5ba54e360a6f99d8d13e2815abe80c387
cl-unix-cybernetics/cl-unix-cybernetics
commands.lisp
;; cl-unix-cybernetics Copyright 2013 - 2022 < > ;; ;; Permission is hereby granted to use this software granted ;; the above copyright notice and this permission paragraph ;; are included in all copies and substantial portions of this ;; software. ;; ;; THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF ...
null
https://raw.githubusercontent.com/cl-unix-cybernetics/cl-unix-cybernetics/63e4862274e170bda7540b4caec6c94ed850a31c/unix/commands.lisp
lisp
cl-unix-cybernetics Permission is hereby granted to use this software granted the above copyright notice and this permission paragraph are included in all copies and substantial portions of this software. THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER...
Copyright 2013 - 2022 < > (in-package :cl-unix-cybernetics) (in-re-readtable) (defun uname () (re-bind #~"^(\S+) (\S+) (\S+) (.+) (\S+)$" (os-name node-name os-release os-version machine) (run-1 "uname -a"))) (defun grep_ (pattern &rest files) (join-str " " "grep" (sh-quote pattern) (mapcar #'sh...
f0d7ace4c6fa5f209fdde5e2726a4fd3fc24e7c5af389271d75223319ac49ef9
cushon/project-euler
13.rkt
#lang racket (require "common.rkt") Find the first ten digits of the sum of the given one - hundred 50 - digit numbers . (define (solve) (define l '(37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 74324986199524741059474233309513058123726617...
null
https://raw.githubusercontent.com/cushon/project-euler/d7fcbfff0cd59b2c3691293ff35bb2043b409f68/13.rkt
racket
#lang racket (require "common.rkt") Find the first ten digits of the sum of the given one - hundred 50 - digit numbers . (define (solve) (define l '(37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 74324986199524741059474233309513058123726617...
209fd2d8cffe9705d57d5e7a10445143e71a5efff67f161c600a2aa1793c2cc8
FranklinChen/hugs98-plus-Sep2006
Client.hs
module Network.Hackage.Client where import Network.URI (URI,parseURI,uriScheme,uriPath) import Distribution.Package import Distribution.PackageDescription import Distribution.Version import Data.Version import Data.Maybe import Text.ParserCombinators.ReadP import Distribution.ParseUtils import Network.Hackage.CabalIns...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/Cabal/Network/Hackage/Client.hs
haskell
Resolved dependency, pkg location and resolved dependencies of the dependency. XXX - check for existence? remote url "getServerVersion"
module Network.Hackage.Client where import Network.URI (URI,parseURI,uriScheme,uriPath) import Distribution.Package import Distribution.PackageDescription import Distribution.Version import Data.Version import Data.Maybe import Text.ParserCombinators.ReadP import Distribution.ParseUtils import Network.Hackage.CabalIns...
a8c9c5d580e885e4549f7a002590a7d5c55e386ab239f4e0a3ff811e4808ae13
cljfx/cljfx
value_axis.clj
(ns cljfx.fx.value-axis "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce] [cljfx.fx.axis :as fx.axis]) (:import [javafx.scene.chart ValueAxis])) (set! *warn-on-reflection* true) (def props (merge f...
null
https://raw.githubusercontent.com/cljfx/cljfx/ec3c34e619b2408026b9f2e2ff8665bebf70bf56/src/cljfx/fx/value_axis.clj
clojure
(ns cljfx.fx.value-axis "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce] [cljfx.fx.axis :as fx.axis]) (:import [javafx.scene.chart ValueAxis])) (set! *warn-on-reflection* true) (def props (merge f...
1b416daf622d1f7e506461b7b5d5b225be98207cc4137008a03334b1b36d476c
mirage/conan
serialize.ml
let name = ref "conan_magic_database.ml" let ( / ) = Filename.concat let identity x = x let ocamlify s = let b = Buffer.create (String.length s) in String.iter (function | ('a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_') as c -> Buffer.add_char b c | '-' | '.' -> Buffer.add_char b '_' | _ -> ()) ...
null
https://raw.githubusercontent.com/mirage/conan/fb144c7785ff0aa4ec6d8c87e58ca2a0c2d328db/bin/serialize.ml
ocaml
let name = ref "conan_magic_database.ml" let ( / ) = Filename.concat let identity x = x let ocamlify s = let b = Buffer.create (String.length s) in String.iter (function | ('a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_') as c -> Buffer.add_char b c | '-' | '.' -> Buffer.add_char b '_' | _ -> ()) ...
c57e4dc9a03f8ee7d302da2fbcb1279980a157cf4249580803b88f6c693935e7
acl2/acl2
serialize-raw.lisp
ACL2 Version 8.5 -- A Computational Logic for Applicative Common Lisp Copyright ( C ) 2023 , Regents of the University of Texas This version of ACL2 is a descendent of ACL2 Version 1.9 , Copyright ( C ) 1997 Computational Logic , Inc. See the documentation topic NOTE-2 - 0 . ; This program is free software;...
null
https://raw.githubusercontent.com/acl2/acl2/65a46d5c1128cbecb9903bfee4192bb5daf7c036/serialize-raw.lisp
lisp
This program is free software; you can redistribute it and/or modify it under the terms of the LICENSE file distributed with ACL2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
ACL2 Version 8.5 -- A Computational Logic for Applicative Common Lisp Copyright ( C ) 2023 , Regents of the University of Texas This version of ACL2 is a descendent of ACL2 Version 1.9 , Copyright ( C ) 1997 Computational Logic , Inc. See the documentation topic NOTE-2 - 0 . Written by : ...
c95a4292aa9f8b3efc5a315454668c66b9fb0bfef07929317c46a352bf3b21da
goldfirere/cs380
Class.hs
# LANGUAGE TypeOperators , TypeInType , GADTs , TypeFamilies , UndecidableInstances , AllowAmbiguousTypes , ScopedTypeVariables , TypeApplications , StandaloneDeriving # UndecidableInstances, AllowAmbiguousTypes, ScopedTypeVariables, TypeApplications, StandaloneDe...
null
https://raw.githubusercontent.com/goldfirere/cs380/a9e2d2e610eb4e9e082cef0559b6e29a6d82a253/18_ordlist/Class.hs
haskell
= case plus_succ @n' sm of Refl -> case plus_comm sn' sm of Refl -> Refl toFin :: Int -> Fin n toVec :: [a] -> Vec n a ((:>=:) n) really should be (n :>=:) badfilter :: (a -> Bool) -> Vec n a -> Vec m a badfilter _ Nil = Nil tail (_ :> xs) = EVec (gteSuccLeft (gteRefl (length xs))) xs
# LANGUAGE TypeOperators , TypeInType , GADTs , TypeFamilies , UndecidableInstances , AllowAmbiguousTypes , ScopedTypeVariables , TypeApplications , StandaloneDeriving # UndecidableInstances, AllowAmbiguousTypes, ScopedTypeVariables, TypeApplications, StandaloneDe...
ee7e81204bd527b2a65dc6ff5bbeed4cda5c7f7abaf9eba8922a08dbea83e116
timbod7/haskell-chart
Test7.hs
module Test7 where import Graphics.Rendering.Chart import Data.Colour import Data.Colour.Names import Control.Lens import Data.Default.Class import Utils chart :: Renderable (LayoutPick Double Double Double) chart = layoutToRenderable layout where vals :: [(Double,Double,Double,Double)] vals = [ (x,sin (e...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/chart-tests/tests/Test7.hs
haskell
module Test7 where import Graphics.Rendering.Chart import Data.Colour import Data.Colour.Names import Control.Lens import Data.Default.Class import Utils chart :: Renderable (LayoutPick Double Double Double) chart = layoutToRenderable layout where vals :: [(Double,Double,Double,Double)] vals = [ (x,sin (e...
de8d36196b6ba42cffa82942c8a3c4c458c1ac7b64220882a7b3362360a4e8d9
postspectacular/devart-codefactory
async.cljs
(ns thi.ng.cljs.async (:require-macros [cljs.core.async.macros :refer [go]]) (:require [thi.ng.cljs.log :refer [debug info warn]] [thi.ng.cljs.dom :as dom] [goog.events :as events] [cljs.core.async :as async :refer [<! >! chan put! close! timeout sliding-buffer]])) (defprotocol PubSub (bus [_]) ...
null
https://raw.githubusercontent.com/postspectacular/devart-codefactory/9bccdc10e58fa4861a69767e9ae4be0bb8d7f650/src-cljs/thi/ng/cljs/async.cljs
clojure
(ns thi.ng.cljs.async (:require-macros [cljs.core.async.macros :refer [go]]) (:require [thi.ng.cljs.log :refer [debug info warn]] [thi.ng.cljs.dom :as dom] [goog.events :as events] [cljs.core.async :as async :refer [<! >! chan put! close! timeout sliding-buffer]])) (defprotocol PubSub (bus [_]) ...
f9e232542650d10855c3c935896804755c156c1bbecaac89920d1d0e701bf971
Z572/guile-wlroots
input-inhibitor.scm
(define-module (wlroots types input-inhibitor) #:use-module (wlroots types) #:use-module (wlroots utils) #:use-module (wayland display) #:use-module (oop goops) #:duplicates (merge-accessors merge-generics replace warn-override-core warn last) #:export (wlr-input-inhibit-manager-create .global ...
null
https://raw.githubusercontent.com/Z572/guile-wlroots/dc6cd05d5c46f811d75cbc30d1464820b19b1de8/wlroots/types/input-inhibitor.scm
scheme
(define-module (wlroots types input-inhibitor) #:use-module (wlroots types) #:use-module (wlroots utils) #:use-module (wayland display) #:use-module (oop goops) #:duplicates (merge-accessors merge-generics replace warn-override-core warn last) #:export (wlr-input-inhibit-manager-create .global ...
82b7376e18046826dc7945454a0b3469095574c36c17e3435aa0f291ed00beac
juspay/atlas
Confirm.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Core/ACL/Confirm.hs
haskell
is it correct?
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
3a261ce10b7905f5d172f4e0050f1a546c9a20c831843f9813e6fa513ce846b1
McCLIM/McCLIM
transforms.lisp
(cl:in-package #:clim-tests) (def-suite* :mcclim.transforms :in :mcclim) (test transforms.+identity-transformation+ (is (subtypep (class-of +identity-transformation+) 'transformation)) (is (transformationp +identity-transformation+))) (test transforms.condition-type-relations (is (subtypep 'transformation-er...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/7c890f1ac79f0c6f36866c47af89398e2f05b343/Tests/geometry/transforms.lisp
lisp
tests fail (is (reflection-transformation-p t1)) (is (reflection-transformation-p t2)) tests fail (is (transformation-equal t1 (compose-transformation-with-translation t1 0 0))) compose-transformations works right-to-left compose-A-with-B works left-to-right
(cl:in-package #:clim-tests) (def-suite* :mcclim.transforms :in :mcclim) (test transforms.+identity-transformation+ (is (subtypep (class-of +identity-transformation+) 'transformation)) (is (transformationp +identity-transformation+))) (test transforms.condition-type-relations (is (subtypep 'transformation-er...
c2ad7c409624783601301280f1a0181e63be0db411910bb3faa03dbfb94621bc
kyleburton/sandbox
config.cljs
(ns cmdline.config (:require [schema.core :as s :include-macros true] [cljs.core.async :as async :refer [chan put! <! <!! close!]])) (def fs (js/require "fs")) (def line-reader (js/require "line-reader")) (def config (atom {})) (s/defn read-config-file [fname :- s/Str] (js/JSON.parse (.readFileSy...
null
https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/clojurescript/cmdline/src/cmdline/config.cljs
clojure
(ns cmdline.config (:require [schema.core :as s :include-macros true] [cljs.core.async :as async :refer [chan put! <! <!! close!]])) (def fs (js/require "fs")) (def line-reader (js/require "line-reader")) (def config (atom {})) (s/defn read-config-file [fname :- s/Str] (js/JSON.parse (.readFileSy...
efd9dfb52b1b75215663746f66766b0007ba702deff40ae922e9a39d313d741e
RedHatQE/katello.auto
users.clj
(ns katello.tests.users (:require [katello :as kt] (katello [validation :refer :all] [organizations :as organization] [notifications :as notification] [ui :as ui] [navigation :as nav] [rest :as rest] ...
null
https://raw.githubusercontent.com/RedHatQE/katello.auto/79fec96581044bce5db5350d0da325e517024962/src/katello/tests/users.clj
clojure
Constants Functions Each of these functions will operate on a User, perhaps modifying it, and returning it This is so that we can chain the functions together with -> wait for update notification to disappear so the user-menu return user for more steps Tests
(ns katello.tests.users (:require [katello :as kt] (katello [validation :refer :all] [organizations :as organization] [notifications :as notification] [ui :as ui] [navigation :as nav] [rest :as rest] ...
e9da8cec133eef2aab554fa152fb23f11c419154e6db70430bd70144bde02d5c
robert-strandh/SICL
mapcan-defun.lisp
(cl:in-package #:sicl-cons) (defun mapcan (function &rest lists) (when (null lists) (error 'at-least-one-list-required)) (loop for remaining = lists then (loop for list in remaining collect (cdr list)) until (loop for list in remaining thereis (atom list)) nconc (apply function ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/9d939d4c054d6a68a35024f8af53edae50a59b8a/Code/Cons/mapcan-defun.lisp
lisp
(cl:in-package #:sicl-cons) (defun mapcan (function &rest lists) (when (null lists) (error 'at-least-one-list-required)) (loop for remaining = lists then (loop for list in remaining collect (cdr list)) until (loop for list in remaining thereis (atom list)) nconc (apply function ...
181f335c72d8df600e89025fb47366ca26f34b5a22ecf6b5771b2b11c8636750
MinaProtocol/mina
plonk_verification_key_evals.mli
(* Undocumented *) module Stable : sig module V2 : sig type 'comm t = { sigma_comm : 'comm Plonk_types.Permuts_vec.Stable.V1.t ; coefficients_comm : 'comm Plonk_types.Columns_vec.Stable.V1.t ; generic_comm : 'comm ; psm_comm : 'comm ; complete_add_comm : 'comm ; mul_comm : 'co...
null
https://raw.githubusercontent.com/MinaProtocol/mina/92bf0214febdd037c2ab54463e500414fa8e37c6/src/lib/pickles_types/plonk_verification_key_evals.mli
ocaml
Undocumented * [map t ~f] applies [f] to all elements of type ['a] within record [t] and returns the result. In particular, [f] is applied to the elements of {!sigma_comm} and {!coefficients_comm}. * [map2]
module Stable : sig module V2 : sig type 'comm t = { sigma_comm : 'comm Plonk_types.Permuts_vec.Stable.V1.t ; coefficients_comm : 'comm Plonk_types.Columns_vec.Stable.V1.t ; generic_comm : 'comm ; psm_comm : 'comm ; complete_add_comm : 'comm ; mul_comm : 'comm ; emul_com...
7e1c3c143ca121a9ff9c56527745f17951e992892fd2584372fb0c91ada442c5
footprintanalytics/footprint-web
wrap_value_literals.clj
(ns metabase.query-processor.middleware.wrap-value-literals "Middleware that wraps value literals in `value`/`absolute-datetime`/etc. clauses containing relevant type information; parses datetime string literals when appropriate." (:require [metabase.mbql.schema :as mbql.s] [metabase.mbql.util :as mbq...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/query_processor/middleware/wrap_value_literals.clj
clojure
parses datetime string literals when appropriate." --------------------------------------------------- Type Info ---------------------------------------------------- add in a default unit for this Field so we know to wrap datetime strings in `absolute-datetime` below based on its presence. Its unit will get replace...
(ns metabase.query-processor.middleware.wrap-value-literals "Middleware that wraps value literals in `value`/`absolute-datetime`/etc. clauses containing relevant type (:require [metabase.mbql.schema :as mbql.s] [metabase.mbql.util :as mbql.u] [metabase.models.field :refer [Field]] ...
3119cf471de17e0fe9e83085652e5fae2d0869ce44329ecbed1eeedd1350351a
basho/machi
tango_dt_map.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/machi/e87bd59a9777d805b00f9e9981467eb28e28390c/prototype/tango/src/tango_dt_map.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module...
76b4d34263c3668d5a7f161969157ecbc6a3e4d00edbd728634598045bccb15d
eponai/sulolive
mixpanel.cljc
(ns eponai.common.mixpanel (:require [taoensso.timbre :refer [warn debug info]] #?(:clj [clojure.data.json :as json]) #?(:clj [clj-http.client :as http]) #?(:clj [buddy.core.codecs.base64 :as base64]) [eponai.common.format.date :as date])) #?(:clj (def token-atom (atom nil))) #?(:...
null
https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/src/eponai/common/mixpanel.cljc
clojure
Store menu User menu
(ns eponai.common.mixpanel (:require [taoensso.timbre :refer [warn debug info]] #?(:clj [clojure.data.json :as json]) #?(:clj [clj-http.client :as http]) #?(:clj [buddy.core.codecs.base64 :as base64]) [eponai.common.format.date :as date])) #?(:clj (def token-atom (atom nil))) #?(:...
42b06a54b5e957de7ed02e4b65cbed4d2338125a6fc5c14765c66ee629be0de3
autotaker/smopeck
Preprocess.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE LambdaCase # module Smopeck.Spec.Preprocess where import Control.Monad.Except import Control.Monad.Logger import qualified Data.ByteString.Char8 as BS import Data.Function import qualified Data.Map as M import Network.HTTP.Type...
null
https://raw.githubusercontent.com/autotaker/smopeck/7e4ab8bf716125783ccaaf84076c992c2bca5c7f/src/Smopeck/Spec/Preprocess.hs
haskell
# LANGUAGE DataKinds #
# LANGUAGE LambdaCase # module Smopeck.Spec.Preprocess where import Control.Monad.Except import Control.Monad.Logger import qualified Data.ByteString.Char8 as BS import Data.Function import qualified Data.Map as M import Network.HTTP.Types import Paths_smo...
a57754d3df04fda8c141d6d9634bc1eb713527a04078ec75482e0776f570ff48
soegaard/pyffi
test-has-module.rkt
#lang racket/base (require pyffi/structs pyffi/python-c-api pyffi/python-initialization pyffi/python-environment pyffi/python-evaluation pyffi/python-types racket/format ) (require (for-syntax racket/base syntax/parse)) ;;; Start Pyth...
null
https://raw.githubusercontent.com/soegaard/pyffi/84cee7adbd9fcd1206dbe9224915911206498410/pyffi-tests/tests/test-has-module.rkt
racket
Start Python and load "numpy" handles `main` and `builtins` (initialize-numpy) ; load the `numpy` module run delayed setters (void (run* "import operator as operator"))
#lang racket/base (require pyffi/structs pyffi/python-c-api pyffi/python-initialization pyffi/python-environment pyffi/python-evaluation pyffi/python-types racket/format ) (require (for-syntax racket/base syntax/parse)) (id-bound? '...
bf4af0116b9fab19838df9953a9c3ed5adb8bd7552f92bccda4bb6834971662a
igorhvr/bedlam
types.scm
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in compliance with ;;; the License. You may obtain a copy of the License at ;;; / ;;; Software distributed under the License is distributed on an " AS IS " basis , ;;; WITHOUT WAR...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/opt/sql/scm/sql/types.scm
scheme
you may not use this file except in compliance with the License. You may obtain a copy of the License at / WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Contributor(s): Alternatively, the contents of th...
The contents of this file are subject to the Mozilla Public License Version Software distributed under the License is distributed on an " AS IS " basis , The Original Code is SISCweb . The Initial Developer of the Original Code is . Portions created by the Initial Developer are Copyright ( C ) 2005 . Al...
afebb2f86c30f5c4674381ff9e51baa71caac30c89407a0a540aae5e8959c2f5
TrustInSoft/tis-interpreter
GuiGoal.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/GuiGoal.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
41f1a476ba45a86ea1dc31d7404c0e1558d6bcc8206beaef488ba52d76fd413f
nuprl/gradual-typing-performance
lp2.rkt
#lang racket/base (require scribble/private/lp) (provide chunk CHUNK) (module reader syntax/module-reader scribble/lp/lang/lang2 #:read read-inside #:read-syntax read-syntax-inside #:whole-body-readers? #t #:language-info (scribble-base-language-info) #:info (scribble-base-info) (require scribble/reader...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/scribble-lib/scribble/lp2.rkt
racket
#lang racket/base (require scribble/private/lp) (provide chunk CHUNK) (module reader syntax/module-reader scribble/lp/lang/lang2 #:read read-inside #:read-syntax read-syntax-inside #:whole-body-readers? #t #:language-info (scribble-base-language-info) #:info (scribble-base-info) (require scribble/reader...
9a4fa6d11fd50bc50b0d2fab97e9f761fce929078a7ff647932c8c85591f957f
exercism/ocaml
test.ml
open Base open OUnit2 let char_of_variant = function | `A -> 'A' | `C -> 'C' | `G -> 'G' | `T -> 'T' | `U -> 'U' let printer l = List.map ~f:char_of_variant l |> String.of_char_list let ae exp got _test_ctxt = assert_equal ~printer exp got let tests = ["transcribes empty list">:: ae [] (Rna_transcription.to_rn...
null
https://raw.githubusercontent.com/exercism/ocaml/bfd6121f757817865a34db06c3188b5e0ccab518/exercises/practice/rna-transcription/test.ml
ocaml
open Base open OUnit2 let char_of_variant = function | `A -> 'A' | `C -> 'C' | `G -> 'G' | `T -> 'T' | `U -> 'U' let printer l = List.map ~f:char_of_variant l |> String.of_char_list let ae exp got _test_ctxt = assert_equal ~printer exp got let tests = ["transcribes empty list">:: ae [] (Rna_transcription.to_rn...
703121948cd6f7ec6a3840586c5b706d23a2d3fe3e9c3a3bb93f4b582141d414
clojure/core.rrb-vector
test_utils.cljs
(ns clojure.core.rrb-vector.test-utils (:require [clojure.test :as test] [clojure.core.rrb-vector.rrbt :as rrbt])) ;; Parts of this file are nearly identical to ;; src/test/clojure/clojure/core/rrb_vector/test_utils.clj, but also significant parts are specific to each of the clj / cljs versions , so ...
null
https://raw.githubusercontent.com/clojure/core.rrb-vector/88c2f814b47c0bbc4092dad82be2ec783ed2961f/src/test/cljs/clojure/core/rrb_vector/test_utils.cljs
clojure
Parts of this file are nearly identical to src/test/clojure/clojure/core/rrb_vector/test_utils.clj, but also give much benefit to do so. ex-message was added.
(ns clojure.core.rrb-vector.test-utils (:require [clojure.test :as test] [clojure.core.rrb-vector.rrbt :as rrbt])) significant parts are specific to each of the clj / cljs versions , so while they could later be combined into a .cljc file , it may not (def extra-checks? false) (defn reset-optimizer...
2984c7d8a1ee50225d41db4818dfd328e9094be656131b900cb9f9fda50cbbe0
AndrasKovacs/ELTE-func-lang
Practice5.hs
{-# OPTIONS -Wincomplete-patterns #-} module Practice5 where -- Maybe intro Monad -- Maybe as a monad class ( m : : * - > * ) where ( > > : m a - > ( a - > m b ) - > m b -- return :: a -> m a -- fmap :: (a -> b) -> f a -> f b data Maybe' a = Nothing' | Just' a deriving (Eq, Ord, Show) foo :: Eq k ...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/88d41930999d6056bdd7bfaa85761a527cce4113/2019-20-2/gyak_3/Practice5.hs
haskell
# OPTIONS -Wincomplete-patterns # Maybe intro Maybe as a monad return :: a -> m a fmap :: (a -> b) -> f a -> f b | isNothing x = undefined lookup, foo
module Practice5 where Monad class ( m : : * - > * ) where ( > > : m a - > ( a - > m b ) - > m b data Maybe' a = Nothing' | Just' a deriving (Eq, Ord, Show) foo :: Eq k => [(k,v)] -> k -> Maybe v foo [] _ = Nothing foo ((k,v):rest) toFind | k == toFind = Just v | otherwise = foo rest toFind ...
674083346e2b14704864f4fd5692db16d2ed0032bba4e064bcb199943b86bc56
8c6794b6/haskell-sc-scratch
SCDiffTest.hs
{-# LANGUAGE GADTs #-} {-# LANGUAGE Rank2Types #-} | Module : $ Header$ License : : Stability : unstable Portability : non - portable Tests for diff of scsynth node representation . Module : $Header$ License : BSD3 Maintainer : Stability : unstable Portability : non-port...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Diff/SCDiffTest.hs
haskell
# LANGUAGE GADTs # # LANGUAGE Rank2Types #
| Module : $ Header$ License : : Stability : unstable Portability : non - portable Tests for diff of scsynth node representation . Module : $Header$ License : BSD3 Maintainer : Stability : unstable Portability : non-portable Tests for diff of scsynth node representation...
0e679008b006f2ec6fb0336b25a39adca433e6ff0a25cb4cd57e14a9d439ee76
michaelballantyne/syntax-spec
statechart-flight-booker.rkt
#lang racket (define-statechart flight-kind (data start-date #f) (data return-date #f) (data trip 'one-way) (state editing (on (start-widget.update val) (set start-date val)) (on (return-widget.update val) (set return-date val)) (on (set-trip val) (set trip val)) (on (sub...
null
https://raw.githubusercontent.com/michaelballantyne/syntax-spec/26d665ebd14910678cf83981ff57c1e1031fef2a/design/statechart-examples/statechart-flight-booker.rkt
racket
#lang racket (define-statechart flight-kind (data start-date #f) (data return-date #f) (data trip 'one-way) (state editing (on (start-widget.update val) (set start-date val)) (on (return-widget.update val) (set return-date val)) (on (set-trip val) (set trip val)) (on (sub...
82d6e00cef0fdcfb2169740282ce56f858b8c497d08d76ec48f3b380910a02c1
BinaryAnalysisPlatform/bap
bap_var.ml
open Core_kernel[@@warning "-D"] open Bap_core_theory open Regular.Std open Bap_common_types type var = Var : 'a Theory.Var.t -> var type t = var let reify v = Var v let sort (Var v) = Theory.Value.Sort.forget (Theory.Var.sort v) let ident (Var v) = Theory.Var.ident v let name (Var v) = Theory.Var.name v let wit...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cbdf732d46c8e38df79d9942fc49bcb97915c657/lib/bap_types/bap_var.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap_core_theory open Regular.Std open Bap_common_types type var = Var : 'a Theory.Var.t -> var type t = var let reify v = Var v let sort (Var v) = Theory.Value.Sort.forget (Theory.Var.sort v) let ident (Var v) = Theory.Var.ident v let name (Var v) = Theory.Var.name v let wit...
6fed904615239658b6cea0afb758c30a90b9b0806215f233daf69d25de07ce41
AshleyYakeley/Truth
Main.hs
module Pinafore.Main ( ModuleOptions(..) , standardFetchModule , nullInvocationInfo , StorageModelOptions(..) , standardStorageModel , sqliteQDumpTable , qInterpretTextAtType , qInterpretText , qInterpretFile , qInteractHandles , qInteract ) where import Changes.Core imp...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/9ec79d8f4f3f2925a1c766a5f3f2478be9dcefbe/Pinafore/pinafore-language/lib/Pinafore/Main.hs
haskell
half-second delay before writing
module Pinafore.Main ( ModuleOptions(..) , standardFetchModule , nullInvocationInfo , StorageModelOptions(..) , standardStorageModel , sqliteQDumpTable , qInterpretTextAtType , qInterpretText , qInterpretFile , qInteractHandles , qInteract ) where import Changes.Core imp...
689ea54e9c84e27d04b70d00bb353e8059b3597420d9e1e32ddf3f488b54dbd6
earl-ducaine/cl-garnet
demo-graph.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : DEMO - GRAPH ; Base : 10 -*- ;;*******************************************************************;; The Garnet User Interface Development Environment . ; ; ;;*******************************************************************;; ;; This code was ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/demos/demo-graph.lisp
lisp
Syntax : Common - Lisp ; Package : DEMO - GRAPH ; Base : 10 -*- *******************************************************************;; ; *******************************************************************;; This code was written as part of the Garnet project at ;; ; domain. ...
$ Id$ DEMO - GRAPH Designed and written by and (in-package :DEMO-GRAPH) (defvar DEMO-GRAPH-INIT (progn (load common-lisp-user::Garnet-Aggregraphs-Loader) (dolist (file '("text-buttons-loader" "scrolling-labeled-box-loader" "error-gadget-loader")) (common-lisp-user::garnet-load (co...
569ca2f52770924ccdc1b2424ce2ece3cfa3e6c7740a50c8dd7f11bca7ca16bb
gwkkwg/lift
report-locations.lisp
(in-package #:lift) (defmethod generate-report-summary-pathname :around () (let ((basepath (call-next-method))) (add-implementation-specific-directory-name basepath))) (defun add-implementation-specific-directory-name (basepath) (merge-pathnames (make-pathname :directory `(:relative ,(asdf...
null
https://raw.githubusercontent.com/gwkkwg/lift/2594160d6ca3a77d8750110dfa63214256aab852/dev/report-locations.lisp
lisp
(in-package #:lift) (defmethod generate-report-summary-pathname :around () (let ((basepath (call-next-method))) (add-implementation-specific-directory-name basepath))) (defun add-implementation-specific-directory-name (basepath) (merge-pathnames (make-pathname :directory `(:relative ,(asdf...
f4e4c264cadad71930b04b648d1ef61e188a08a2c84db00f02f3e4805fd04f83
2600hz/kazoo
hon_trie_lru_pqc.erl
%%%----------------------------------------------------------------------------- ( C ) 2011 - 2020 , 2600Hz @author %%% @doc %%% invoke with `proper:quickcheck(hon_trie_lru_pqc:correct())` or `correct_parallel` %%% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a co...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/hotornot/test/hon_trie_lru_pqc.erl
erlang
----------------------------------------------------------------------------- @doc invoke with `proper:quickcheck(hon_trie_lru_pqc:correct())` or `correct_parallel` @end ----------------------------------------------------------------------------- Generators Helpers
( C ) 2011 - 2020 , 2600Hz @author 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 /. -module(hon_trie_lru_pqc). -ifdef(PROPER). -include_lib("proper/include/proper.hrl"). -include_lib("...
90aade7c78465cab5cafae156bb0ef19c0e9a7c684b60aafe78d437fc587cba8
input-output-hk/cardano-sl
DBPoll.hs
# LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # | Instance of MoandPollRead which uses DB . module Pos.DB.Update.Poll.DBPoll ( DBPoll , runDBPoll ) where import Universum hiding (id) import qualified Data.HashMap.Strict as HM import qualified Ether import ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/db/src/Pos/DB/Update/Poll/DBPoll.hs
haskell
-------------------------------------------------------------------------- Transformer --------------------------------------------------------------------------
# LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # | Instance of MoandPollRead which uses DB . module Pos.DB.Update.Poll.DBPoll ( DBPoll , runDBPoll ) where import Universum hiding (id) import qualified Data.HashMap.Strict as HM import qualified Ether import ...
09711000c5bb56d094d4e677fbbbc5ce68d3f244b57d0bd5694f9cfe491da9c9
rinconjc/rester
core.clj
(ns rester.core (:gen-class) (:require [cheshire.core :as json] [cheshire.factory :as factory] [clj-http.client :as client] [clj-http.conn-mgr :refer [make-reusable-conn-manager]] [clj-http.cookies :as cookies] [clj-http.core :as http] clojure....
null
https://raw.githubusercontent.com/rinconjc/rester/2970bfd351c8e2263260657620c62fedaa9ca90e/src/rester/core.clj
clojure
:content-type :json (log/infof "nodes: %s runnables:%s" (keys new-nodes) (map :id runnables)) (:extractions t)
(ns rester.core (:gen-class) (:require [cheshire.core :as json] [cheshire.factory :as factory] [clj-http.client :as client] [clj-http.conn-mgr :refer [make-reusable-conn-manager]] [clj-http.cookies :as cookies] [clj-http.core :as http] clojure....
74ed07de081382c596f322f0d88bee2b43c59fbcdc87375b2fb8340adb288578
mjambon/caml2html
input.mli
Copyright 2004 This file is distributed under the terms of the GNU Public License Copyright 2004 Martin Jambon This file is distributed under the terms of the GNU Public License *) This module provides functions that parse OCaml source code and return a list of tokens which ar...
null
https://raw.githubusercontent.com/mjambon/caml2html/297a7d2695896a2de8110d2acd4d64c85eb29805/input.mli
ocaml
* a (fragment of) comment * (handler name, full comment) * an uppercase identifier or an identifier starting with ` * a keyword * a newline character * a (fragment of) string or character literal * a tabulation character * anything else * start of a type annotation read from .annot file * end o...
Copyright 2004 This file is distributed under the terms of the GNU Public License Copyright 2004 Martin Jambon This file is distributed under the terms of the GNU Public License *) This module provides functions that parse OCaml source code and return a list of tokens which ar...
a3494dfdaa7bcc4b67a6e78512b795ad3d385efd2febfd50ed4798386d3d1cce
haroldcarr/learn-haskell-coq-ml-etc
MesiMemorySpec.hs
module MesiMemorySpec where ------------------------------------------------------------------------------ import MesiMemory ------------------------------------------------------------------------------ import Test.Hspec -----------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/66dc7ac85e46635daa8b225cff2bc7f6f23a3d06/agda/2015-03-carter-schonwald-copattern-matching/test/MesiMemorySpec.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
module MesiMemorySpec where import MesiMemory import Test.Hspec spec :: Spec spec = do let initial = mkMesiCommandI Invalid invalid = currentState initial exclusive = currentState (localReadI initial) shared = currentState (remoteReadI (localReadI initial)) modifi...
15f81132a4fe84ab9cd2c1d63fa60a582611b37eb35aa9d56eae5aa50559e155
hasufell/hpath
DeleteDirRecursiveSpec.hs
{-# LANGUAGE OverloadedStrings #-} module System.Posix.RawFilePath.Directory.DeleteDirRecursiveSpec where import Test.Hspec import System.IO.Error ( ioeGetErrorType ) import System.Posix.Files.ByteString ( getSymbolicLinkStatus ) import GHC.IO.Exception ( IOErrorType(..) ) import Utils upT...
null
https://raw.githubusercontent.com/hasufell/hpath/9fcc1890596e5b838bf3be9ed303165fbc692d11/hpath-directory/test/System/Posix/RawFilePath/Directory/DeleteDirRecursiveSpec.hs
haskell
# LANGUAGE OverloadedStrings # successes -- posix failures --
module System.Posix.RawFilePath.Directory.DeleteDirRecursiveSpec where import Test.Hspec import System.IO.Error ( ioeGetErrorType ) import System.Posix.Files.ByteString ( getSymbolicLinkStatus ) import GHC.IO.Exception ( IOErrorType(..) ) import Utils upTmpDir :: IO () upTmpDir = do setT...
e2b7276289d8be5dc7a8e7dffe9449442bc364dc4f0f2c4a56f93c76ab81adec
cartazio/tlaps
m_fmt.mli
* mod / fmt.ml --- formatting * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * mod/fmt.ml --- formatting * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) (** Formatting modules *) open Ctx open M_t val pp_print_modunit : ?force:bool -> Expr.Fmt.ctx -> Format...
null
https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/module/m_fmt.mli
ocaml
* Formatting modules
* mod / fmt.ml --- formatting * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * mod/fmt.ml --- formatting * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) open Ctx open M_t val pp_print_modunit : ?force:bool -> Expr.Fmt.ctx -> Format.formatter -> modunit -> E...
53abcef29fac0c24e2e3b410d325668b86c3b270b8c2ebb94f7b22670f25bd5e
gndl/graffophone
listen.ml
* Copyright ( C ) 2015 * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHANTABIL...
null
https://raw.githubusercontent.com/gndl/graffophone/71a12fcf8e799bb8ebfc37141b300ecbc9475c43/plugin/listen.ml
ocaml
* Copyright ( C ) 2015 * * All rights reserved . This file is distributed under the terms of the * GNU General Public License version 3.0 . * * This program is distributed in the hope that it will be useful , * but WITHOUT ANY WARRANTY ; without even the implied warranty of * MERCHANTABIL...
7885af58c4993b90b4abf950e0c4815a906eff7f03766438b4f4f4e1f6da497f
donaldsonjw/bigloo
param.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Engine / param.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Engine/param.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Global control of the compiler */ *===========================...
* serrano / prgm / project / bigloo / comptime / Engine / param.scm * / * Author : * / * Creation : Tue Oct 3 12:44:17 1995 * / * Last change : Sun Aug 24 05:41:02 2014 ( serrano ) * / * Cop...
ef997158ce1c0f56d8adc4415c2b92d7e0e8905589ac72f105142d24d3b8ac44
stepcut/hyperdrive
Main.hs
module Main where import Pipes import qualified Pipes.Prelude as P import qualified Network.Socket as NS import qualified Pipes.Network.TCP as T import qualified Pipes.Network.TCP.Safe as T' host1 = "127.0.0.1" :: NS.HostName host1p = T.Host host1 :: T.Ho...
null
https://raw.githubusercontent.com/stepcut/hyperdrive/0121e018b6f7aa52f5d513aa2bdee92aafe5439a/attic/Main.hs
haskell
printD () = return ()
module Main where import Pipes import qualified Pipes.Prelude as P import qualified Network.Socket as NS import qualified Pipes.Network.TCP as T import qualified Pipes.Network.TCP.Safe as T' host1 = "127.0.0.1" :: NS.HostName host1p = T.Host host1 :: T.Ho...
8f5376996d1fb7a303100dca2baadecb170f0a9f259ee0077670d6b5bad1a654
craigfe/progress
line.mli
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
null
https://raw.githubusercontent.com/craigfe/progress/d7129b772d05c5589b8807630031155a6aeb27f0/src/progress/engine/line.mli
ocaml
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
f552c5ef7f2b68b36a6752b1c80d82dbf63c74f89f1e6af1d5ee86838b8e63dc
BoeingX/haskell-programming-from-first-principles
WriteMapForBinaryTreeSpec.hs
module AlgebraicDataTypes.BinaryTree.WriteMapForBinaryTreeSpec where import Test.Hspec import AlgebraicDataTypes.BinaryTree.WriteMapForBinaryTree spec :: Spec spec = do describe "Test mapTree" $ do it "(+1)" $ do let testTree = Node (Node Leaf 3 Leaf) 1 (Node Leaf 4 Leaf) let mapEx...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/test/AlgebraicDataTypes/BinaryTree/WriteMapForBinaryTreeSpec.hs
haskell
module AlgebraicDataTypes.BinaryTree.WriteMapForBinaryTreeSpec where import Test.Hspec import AlgebraicDataTypes.BinaryTree.WriteMapForBinaryTree spec :: Spec spec = do describe "Test mapTree" $ do it "(+1)" $ do let testTree = Node (Node Leaf 3 Leaf) 1 (Node Leaf 4 Leaf) let mapEx...
417acf51a3861755a6dc2f7b4c4f2302916ab7ef27564a5af1d30bbac291507a
tolitius/mount
conf.clj
(ns tapp.conf (:require [mount.core :as mount :refer [defstate]] [clojure.edn :as edn] [clojure.tools.logging :refer [info]])) (alter-meta! *ns* assoc ::load false) (defn load-config [path] (info "loading config from" path) (-> path slurp edn/read-string)) (defstate config ...
null
https://raw.githubusercontent.com/tolitius/mount/c85da6149ceab96c903c1574106ec56f78338b5f/test/clj/tapp/conf.clj
clojure
(ns tapp.conf (:require [mount.core :as mount :refer [defstate]] [clojure.edn :as edn] [clojure.tools.logging :refer [info]])) (alter-meta! *ns* assoc ::load false) (defn load-config [path] (info "loading config from" path) (-> path slurp edn/read-string)) (defstate config ...
c3fb153f7042a6a6d1df9b42b48a335b4eaf8b856d640e3858d59ba958fc46db
janestreet/shell
test_string_extended.ml
open! Core open Expect_test_helpers_core let%test_module "collate" = (module struct let collate = String_extended.collate let ( <! ) s s' = collate s s' < 0 let%test _ = "a2b" <! "a10b" let%test _ = "a2b" <! "a02b" let%test _ = "a010b" <! "a20b" (* *) let%test_module "collate is a stri...
null
https://raw.githubusercontent.com/janestreet/shell/01bee8f0e51e9f2612c2cd12fe36536573954a1d/string_extended/test/test_string_extended.ml
ocaml
hex escape strict, illegal escape non-strict non-strict, illegal escape
open! Core open Expect_test_helpers_core let%test_module "collate" = (module struct let collate = String_extended.collate let ( <! ) s s' = collate s s' < 0 let%test _ = "a2b" <! "a10b" let%test _ = "a2b" <! "a02b" let%test _ = "a010b" <! "a20b" let%test_module "collate is a strict total or...
64a13f944205106bd80da11958856c1ee6b36134a7e00b2405da7dd576ec2022
janestreet/incr_dom
entry.mli
open! Core open! Import module Model : sig type t [@@deriving sexp, compare, equal] val example : unit -> t val kick : t -> t val move_focus : t -> Focus_point.t option -> focus_dir -> Focus_point.t option val name : t -> string end module Action : sig type t = | Bump of bump_dir | Toggle_collaps...
null
https://raw.githubusercontent.com/janestreet/incr_dom/f2dfcf932d252aec523ccbe3da02b5d264e4a1a2/example/entry_table/entry.mli
ocaml
* Note that apply should be passed the focus point at the time the action was initiated.
open! Core open! Import module Model : sig type t [@@deriving sexp, compare, equal] val example : unit -> t val kick : t -> t val move_focus : t -> Focus_point.t option -> focus_dir -> Focus_point.t option val name : t -> string end module Action : sig type t = | Bump of bump_dir | Toggle_collaps...
d27fcd0265f6da5840475e35b8a46197ecd28e840344c05ec28eda94ee8c8af2
maximedenes/native-coq
store.ml
(***********************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/lib/store.ml
ocaml
********************************************************************* // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************* ** This module implements an "untyped st...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * We give a short implemen...
5d900dc62944c44df51a512b5fb58753991b81ebb8b3ab39abb3d817cc6e11ed
input-output-hk/ouroboros-network
Run.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # module Cardano.Tools.DBSynthesizer.Run ( initialize , synthesize ) where import Control.Monad.Trans.Except (ExceptT) import Control.Monad.Trans.Except.Extra (firstExceptT, handleIOExceptT, hoistEither, ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/358880057f1d6d86cc385e8475813ace3b9ebef6/ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBSynthesizer/Run.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # module Cardano.Tools.DBSynthesizer.Run ( initialize , synthesize ) where import Control.Monad.Trans.Except (ExceptT) import Control.Monad.Trans.Except.Extra (firstExceptT, handleIOExceptT, hoistEither, ...
b25f8b8328e33eeaf8d20fe80e7f0be6be628ba98019baf82ae6abd5a7b44be0
brianhempel/maniposynth
nat_mult.ml
type nat = Z | S of nat let rec plus a b = match b with S nat -> S (plus a nat) | Z -> a [@@pos 262, 79] let plus_S = plus (S Z) (S (S (S Z))) [@@pos 794, 114] let rec nat_mult a b = match b with S nat2 -> plus a (nat_mult a nat2) | Z -> Z [@@pos 1145, 330] let nat_mult2 = nat_mult (S (S Z)) (S (S Z)) [@@po...
null
https://raw.githubusercontent.com/brianhempel/maniposynth/8cb8e0c84db2ffb51feae2fccb10dbff40c4e0e0/expert_eval_manual/nat_mult.ml
ocaml
type nat = Z | S of nat let rec plus a b = match b with S nat -> S (plus a nat) | Z -> a [@@pos 262, 79] let plus_S = plus (S Z) (S (S (S Z))) [@@pos 794, 114] let rec nat_mult a b = match b with S nat2 -> plus a (nat_mult a nat2) | Z -> Z [@@pos 1145, 330] let nat_mult2 = nat_mult (S (S Z)) (S (S Z)) [@@po...
f07c8d0402a1dfc32b7215d17e2e85451a807b546fa629ce971f0d4544aea8c6
anoma/juvix
Compile.hs
module Commands.Dev.Core.Compile (runCommand) where import Commands.Base import Commands.Dev.Core.Compile.Options import Commands.Extra.Compile qualified as Compile import Data.Text.IO qualified as TIO import Juvix.Compiler.Asm.Options qualified as Asm import Juvix.Compiler.Backend qualified as Backend import Juvix.Co...
null
https://raw.githubusercontent.com/anoma/juvix/92042fa10c7dac83b53e5bd867a5489046ae82af/app/Commands/Dev/Core/Compile.hs
haskell
module Commands.Dev.Core.Compile (runCommand) where import Commands.Base import Commands.Dev.Core.Compile.Options import Commands.Extra.Compile qualified as Compile import Data.Text.IO qualified as TIO import Juvix.Compiler.Asm.Options qualified as Asm import Juvix.Compiler.Backend qualified as Backend import Juvix.Co...
ab7a6027670ce375cb3c0e894f378de8ef3cc2f3af49eb4e9a788fc7370afc88
rtoy/ansi-cl-tests
macroexpand-1.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 28 13:47:32 2005 ;;;; Contains: Tests of MACROEXPAND-1 (in-package :cl-test) (deftest macroexpand-1.error.1 (signals-error (macroexpand-1) program-error) t) (deftest macroexpand-1.error.2 (signals-error (macroexpand-1 'x nil nil) program-error) t)...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/macroexpand-1.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of MACROEXPAND-1 Non-error tests
Author : Created : Sat May 28 13:47:32 2005 (in-package :cl-test) (deftest macroexpand-1.error.1 (signals-error (macroexpand-1) program-error) t) (deftest macroexpand-1.error.2 (signals-error (macroexpand-1 'x nil nil) program-error) t) (deftest macroexpand-1.1 (check-predicate #'(lambda (x...
e8789a74b53db396cccf015cc8b325ddfebcabaeb32494192610cdf1fcd53c0a
haskell/ghcide
HieBin.hs
{- Binary serialization for .hie files. -} # LANGUAGE ScopedTypeVariables # module Compat.HieBin ( readHieFile, readHieFileWithVersion, HieHeader, writeHieFile, HieName(..), toHieName, HieFileResult(..), hieMagic,NameCacheUpdater(..)) where import Config ( cProjectVersion ) import Binary import Bin...
null
https://raw.githubusercontent.com/haskell/ghcide/3ef4ef99c4b9cde867d29180c32586947df64b9e/hie-compat/src-ghc86/Compat/HieBin.hs
haskell
Binary serialization for .hie files. | `Name`'s get converted into `HieName`'s before being written into @.hie@ files. See 'toHieName' and 'fromHieName' for logic on how to convert between The next index to use newline char symbol tables for `Name`s and `FastString`s Write the header: hieHeader followed by the ...
# LANGUAGE ScopedTypeVariables # module Compat.HieBin ( readHieFile, readHieFileWithVersion, HieHeader, writeHieFile, HieName(..), toHieName, HieFileResult(..), hieMagic,NameCacheUpdater(..)) where import Config ( cProjectVersion ) import Binary import BinIface ( getDictFastString...
2a3c4cd4146ef560558cb1a833629b20bf68f2471650b43e7efacb4ab219ba90
elaforge/karya
Play.hs
Copyright 2021 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt # LANGUAGE CPP # module Perform.Sc.Play ( State(..) , play -- * stop , force_stop -- * thru , osc_thru , note_on, note_off , set_control, pitch_change ...
null
https://raw.githubusercontent.com/elaforge/karya/de1b6e8cb0a17870801cc4dd49de8de62eb6c5fe/Perform/Sc/Play.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt * stop * thru * initialize | Talk to sclang IDE. Use with OSCFunc.trace(true). | sclang starts the server with this port by default. This is hardcoded for now, but could be configured if necessary. | Co...
Copyright 2021 # LANGUAGE CPP # module Perform.Sc.Play ( State(..) , play , force_stop , osc_thru , note_on, note_off , set_control, pitch_change , version , add_default_group , initialize_patch , sync #ifdef TESTING , module Perform.Sc.Play #endif ) where import qualifi...
acf1d7df90341e99df9a632835cc45977c7729101a08610806552e44f30a9765
bhaskara/programmable-reinforcement-learning
env-observer.lisp
(defpackage env-observer (:documentation "Package env-observer. Defines <env-observer>, a type of observer that prints out what happens in the environment to a stream. Exports ------- <env-observer> make-env-observer") (:use cl rl-obs utils) (:export <env-observer> make-env-observer)) (i...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/rl/obs/env-observer.lisp
lisp
(defpackage env-observer (:documentation "Package env-observer. Defines <env-observer>, a type of observer that prints out what happens in the environment to a stream. Exports ------- <env-observer> make-env-observer") (:use cl rl-obs utils) (:export <env-observer> make-env-observer)) (i...
9e1526bbc2d01f0a4d2a4f7cc0f5e5b601149cb43fbeee03c4ce1215ba2f8a9d
sudo-rushil/lambda
Syntax.hs
| Module : Combinator . Syntax Description : AST definitions for the SKI combinator calculus License : MIT Maintainer : Module : Combinator.Syntax Description : AST definitions for the SKI combinator calculus License : MIT Maintainer : Rushil Mallarapu -} {-# LANGUAGE GADTs #-} m...
null
https://raw.githubusercontent.com/sudo-rushil/lambda/70474f5053540a693be2f317062074417a687ff7/src/Combinator/Syntax.hs
haskell
# LANGUAGE GADTs # Combinator Term Types Instances
| Module : Combinator . Syntax Description : AST definitions for the SKI combinator calculus License : MIT Maintainer : Module : Combinator.Syntax Description : AST definitions for the SKI combinator calculus License : MIT Maintainer : Rushil Mallarapu -} module Combinator.Syntax...
b08eaf2e0f7176ad427e418b14c20372357b69fbc42d10a1ea1d61c4f2530e78
silky/fashion
Main.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE NoMonomorphismRestriction #-} module Main where import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine import Nvds.Designs.WarpSpeed main :: IO () main = mainWith (frame 0.05 <$> d) >> putStrLn "Done!"
null
https://raw.githubusercontent.com/silky/fashion/2b01d1e5c385fe99e8e54f5828114551e9c8e309/Warp-Speed/src/Main.hs
haskell
# LANGUAGE GADTs # # LANGUAGE NoMonomorphismRestriction #
# LANGUAGE FlexibleContexts # module Main where import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine import Nvds.Designs.WarpSpeed main :: IO () main = mainWith (frame 0.05 <$> d) >> putStrLn "Done!"
b819cd394c4f5d57508afe68fb47385e4546f696b0ce460c56e2c8477a8f0b84
PapenfussLab/bioshake
Hisat2.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TemplateHaskell #-} module Bioshake.Hisat2 where import Bioshake import Bioshake.Internal.Hisat2 import Bioshake.TH import Data.List import ...
null
https://raw.githubusercontent.com/PapenfussLab/bioshake/afeb7219b171e242b6e9bb9e99e2f80c0a099aff/Bioshake/Hisat2.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Bioshake.Hisat2 where import Bioshake import Bioshake.Internal.Hisat2 import Bioshake.TH import Data.List import Development.Shake import Development.Shake.FilePath $(makeThreaded ...
fe924440e2d4496a9ad46ddb5f216e278ee17381120a2a7d362b1d883c75d98b
Holmusk/servant-hmac-auth
CryptoSpec.hs
{-# LANGUAGE TemplateHaskellQuotes #-} module Servant.Auth.Hmac.CryptoSpec (spec) where import Data.CaseInsensitive import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.Encoding as TE import qualified Data.Text.IO as TIO import Network.HTTP.Types import Servant.Auth.Hmac.Crypto (Reque...
null
https://raw.githubusercontent.com/Holmusk/servant-hmac-auth/9ed08fb0c5103f3a430cc1b17794fad1d372379a/test/Servant/Auth/Hmac/CryptoSpec.hs
haskell
# LANGUAGE TemplateHaskellQuotes #
module Servant.Auth.Hmac.CryptoSpec (spec) where import Data.CaseInsensitive import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.Encoding as TE import qualified Data.Text.IO as TIO import Network.HTTP.Types import Servant.Auth.Hmac.Crypto (RequestPayload (..), SecretKey (..), Signatu...
2ee87007ef4b5f6af987dfb1a09eb35176240e4d245ace3d492f794d5d5f983f
lpgauth/foil
foil_compiler.erl
-module(foil_compiler). -include("foil.hrl"). -export([ load/2 ]). %% public -spec load(namespace(), [{key(), value()}]) -> ok. load(Module, KVs) -> Forms = forms(Module, KVs), {ok, Module, Bin} = compile:forms(Forms, [debug_info]), code:soft_purge(Module), Filename = atom_to_list(Module) ++ ...
null
https://raw.githubusercontent.com/lpgauth/foil/e462829855a745d8f20fb0508ae3eb8e323b03bd/src/foil_compiler.erl
erlang
public private
-module(foil_compiler). -include("foil.hrl"). -export([ load/2 ]). -spec load(namespace(), [{key(), value()}]) -> ok. load(Module, KVs) -> Forms = forms(Module, KVs), {ok, Module, Bin} = compile:forms(Forms, [debug_info]), code:soft_purge(Module), Filename = atom_to_list(Module) ++ ".erl", ...
509fca5fdaeef23e6820ceaf520c66eed9868b4b17361786a1543c66c532ee72
lispbuilder/lispbuilder
gl.lisp
gl.h Mesa v6.4.2 CFFI lisp wrapper ;;;; (C)2006 Luke J Crook ;;;; See COPYING for license (in-package #:rm-cffi) (defconstant GL_VERSION_1_1 1) (defconstant GL_VERSION_1_2 1) (defconstant GL_VERSION_1_3 1) (defconstant GL_VENDOR #x1F00) (defconstant GL_RENDERER #x1F01) (defconstant GL_VERSION #x1F02) (defcons...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-openrm/cffi/gl.lisp
lisp
(C)2006 Luke J Crook See COPYING for license -lisp.net/project/cl-opengl/ this file is automatically generated, do not edit
gl.h Mesa v6.4.2 CFFI lisp wrapper (in-package #:rm-cffi) (defconstant GL_VERSION_1_1 1) (defconstant GL_VERSION_1_2 1) (defconstant GL_VERSION_1_3 1) (defconstant GL_VENDOR #x1F00) (defconstant GL_RENDERER #x1F01) (defconstant GL_VERSION #x1F02) (defconstant GL_EXTENSIONS #x1F03) (defcfun ("glGetString" glG...
8842f10d31711edb24a283a7c7d1061b74c17b743c9c9b4ec6b8e77e0d65b3b7
district0x/cljs-web3
settings.cljs
(ns cljs-web3.settings) (defn settings [web3] (aget web3 "settings")) (defn default-account [web3] (aget web3 "settings" "defaultAccount")) (defn set-default-account! [web3 hex-str] (aset (settings web3) "defaultAccount" hex-str)) (defn default-block [web3] (aget web3 "settings" "defaultBlock")) (defn set-...
null
https://raw.githubusercontent.com/district0x/cljs-web3/14ba12e37dd944c90f4741d92c8c94394b9a3dba/src/cljs_web3/settings.cljs
clojure
(ns cljs-web3.settings) (defn settings [web3] (aget web3 "settings")) (defn default-account [web3] (aget web3 "settings" "defaultAccount")) (defn set-default-account! [web3 hex-str] (aset (settings web3) "defaultAccount" hex-str)) (defn default-block [web3] (aget web3 "settings" "defaultBlock")) (defn set-...
5448e764e6d7f1958a291cc448a715136cbdc0c5e7bb28ff98ccf956074943bc
nathell/solitaire
db.cljs
(ns solitaire.db (:require [solitaire.board :as board])) (def default-db {:board board/initial-board :selected-field nil})
null
https://raw.githubusercontent.com/nathell/solitaire/02c951d7886aa391b2cea6b49fc6d892dd9c0fa4/exercises/ex_04/db.cljs
clojure
(ns solitaire.db (:require [solitaire.board :as board])) (def default-db {:board board/initial-board :selected-field nil})
2e59e24072eb37cbb246deacc62713e2ce662988c1fd1f07be983be8876728fc
melange-re/melange
melange_version.mli
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
null
https://raw.githubusercontent.com/melange-re/melange/01aa3e8566e848ed54550ba4289a061cdb72c2f6/jscomp/common/melange_version.mli
ocaml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
e03a36429c341700db5cf323d71c8937745c2ae0171dc5ab3edf37b2dd3333f7
juji-io/datalevin
main_test.cljc
(ns datalevin.main-test (:require [datalevin.main :as sut] [datalevin.util :as u] [datalevin.core :as d] [datalevin.interpret :as i] [datalevin.lmdb :as l] [datalevin.test.core :as tdc :refer [db-fixture]] [taoensso.nippy :as nippy] [...
null
https://raw.githubusercontent.com/juji-io/datalevin/d2f019eb1e613805d9c6eb6fd4f0c79eb4403592/test/datalevin/main_test.cljc
clojure
tagged literal - including nippy (de)serialization rebinding *datalevin-data-readers* to ensure support for reading in custom tagged literals works (removing the custom ->url reader will cause the tests to fail) reading from string to replicate the error case where a tagged literal is not available on the projec...
(ns datalevin.main-test (:require [datalevin.main :as sut] [datalevin.util :as u] [datalevin.core :as d] [datalevin.interpret :as i] [datalevin.lmdb :as l] [datalevin.test.core :as tdc :refer [db-fixture]] [taoensso.nippy :as nippy] [...
bf61808104758089051e1f381724a080a2fd2fcaa6df7fceb8434dae25987d75
scrintal/heroicons-reagent
link.cljs
(ns com.scrintal.heroicons.solid.link) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M19.902 4.098a3.75 3.75 0 00-5.304 0l-4.5 4.5a3.75 3.75 0 001.035 6.037.75.75 0 01-.6...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/link.cljs
clojure
(ns com.scrintal.heroicons.solid.link) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M19.902 4.098a3.75 3.75 0 00-5.304 0l-4.5 4.5a3.75 3.75 0 001.035 6.037.75.75 0 01-.6...
320e12450aeb0332ffb36cd476a69ef508ba5256628cc3c6865687b28ac3952a
cedlemo/OCaml-GI-ctypes-bindings-generator
Separator.mli
open Ctypes type t val t_typ : t typ val create : Orientation.t -> Widget.t ptr
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Separator.mli
ocaml
open Ctypes type t val t_typ : t typ val create : Orientation.t -> Widget.t ptr
bdddfc8aa5fcc682a918c26eb4d1fad73e35eaed91160cb224882195ac1770d2
wireapp/wire-server
JwtTools.hs
# LANGUAGE TemplateHaskell # module Brig.Effects.JwtTools where import Brig.API.Types (CertEnrollmentError (..)) import Control.Monad.Trans.Except import Data.ByteString.Conversion import Data.Either.Extra import Data.Id (ClientId (client)) import qualified Data.Jwt.Tools as Jwt import Data.Misc (HttpsUrl) import Dat...
null
https://raw.githubusercontent.com/wireapp/wire-server/90bb016f4273c2d9e3e5f25a1dc485f847e23d92/services/brig/src/Brig/Effects/JwtTools.hs
haskell
(header, claims, signature) separated by period characters. | The qualified client ID associated with the currently logged on user | The most recent DPoP nonce provided by the backend to the current client | The HTTPS URI on the backend for the DPoP auth token endpoint | The HTTPS method used on the backend for t...
# LANGUAGE TemplateHaskell # module Brig.Effects.JwtTools where import Brig.API.Types (CertEnrollmentError (..)) import Control.Monad.Trans.Except import Data.ByteString.Conversion import Data.Either.Extra import Data.Id (ClientId (client)) import qualified Data.Jwt.Tools as Jwt import Data.Misc (HttpsUrl) import Dat...
2ea856a19611eb137db97121a4b4dac27e16dce55f2755d7d9de0ec616a1a3fc
malcolmreynolds/GSLL
matrix-product-triangular.lisp
Regression test MATRIX - PRODUCT - TRIANGULAR for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST MATRIX-PRODUCT-TRIANGULAR (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST #2A((-34803.82 7799.5503 -29131.375) ...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/matrix-product-triangular.lisp
lisp
Regression test MATRIX - PRODUCT - TRIANGULAR for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST MATRIX-PRODUCT-TRIANGULAR (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST #2A((-34803.82 7799.5503 -29131.375) ...
dd51046f76c9c9c63f77920a6971517e7558d5201463a46d20423c1cb7fa834a
gossiperl/gossiperl
gossiperl_subscriptions.erl
Copyright ( c ) 2014 < > %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights %% to use, copy, modify, merge, publish, distr...
null
https://raw.githubusercontent.com/gossiperl/gossiperl/0e7a3806bdec94016ba12f069d1699037c477c29/src/gossiperl_subscriptions.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2014 < > 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 Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
bfd04f79082f721b8f549caafd83098e17fe1581f06e9a7814596d2acb001b51
bugarela/GADTInference
e1.hs
data T a where {TInt :: (Bool ~ a) => Int -> T a} e3 = let g :: T a -> Bool = \x -> case x of { TInt n -> n > 0 } in g
null
https://raw.githubusercontent.com/bugarela/GADTInference/dd179f6df2cd76055c25c33da3187a60815688d1/examples/annotated/e1.hs
haskell
data T a where {TInt :: (Bool ~ a) => Int -> T a} e3 = let g :: T a -> Bool = \x -> case x of { TInt n -> n > 0 } in g
905119f48f32d5abc204b931898bb2f1613bb73968394875705da0c26cf23f9a
privet-kitty/cl-competitive
binom-quadratic.lisp
(defpackage :cp/test/binom-quadratic (:use :cl :fiveam :cp/binom-quadratic) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/binom-quadratic) (in-suite base-suite) (test make-binom-table (is (equalp #2a((1 0 0 0 0) (1 1 0 0 0) (1 2 1 0 0) (1 3 ...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/test/binom-quadratic.lisp
lisp
(defpackage :cp/test/binom-quadratic (:use :cl :fiveam :cp/binom-quadratic) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/binom-quadratic) (in-suite base-suite) (test make-binom-table (is (equalp #2a((1 0 0 0 0) (1 1 0 0 0) (1 2 1 0 0) (1 3 ...
2621ef8d89ce1c6a0b95176343cee715cdb382a30c8b5957b387663afc2f85c4
LuisThiamNye/chic
nav.clj
(ns chic.clj-editor.nav (:require [taoensso.encore :as enc] [chic.clj-editor.ast.string :as ast.string] [chic.clj-editor.ui :as clj-editor.ui] [io.github.humbleui.core :as hui] [clj-commons.primitive-math :as prim] [chic.util :as util :refer [deftemplate defgenerated let-macro-syms]] [chic.clj-ed...
null
https://raw.githubusercontent.com/LuisThiamNye/chic/813633a689f9080731613f788a295604d4d9a510/src/chic/clj_editor/nav.clj
clojure
cursor-rect (:rect (:ui-cursor self)) line-rect (:rect (get (:ui-lines self) line-id)) ui-column (:child ui-vscroll)
(ns chic.clj-editor.nav (:require [taoensso.encore :as enc] [chic.clj-editor.ast.string :as ast.string] [chic.clj-editor.ui :as clj-editor.ui] [io.github.humbleui.core :as hui] [clj-commons.primitive-math :as prim] [chic.util :as util :refer [deftemplate defgenerated let-macro-syms]] [chic.clj-ed...
27c5e44880d355be437688d861d98d81485b289f6cd44a54c0796a253190073e
mfp/obigstore
obs_typed_table.ml
* Copyright ( C ) 2011 - 2012 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
null
https://raw.githubusercontent.com/mfp/obigstore/1b078eeb21e11c8de986717150c7108a94778095/src/util/obs_typed_table.ml
ocaml
* Copyright ( C ) 2011 - 2012 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
f49e5c93aa09a6f93e792ed56908f54ffac09eea6a5850706b77f5811d1fde99
loganallen/CmlControl
time.ml
(******************************* Time Module **********************************) (******************************************************************************) returns a timestamp in the format [ hr : min : sec ] let time (h : int) (m : int) (s : int) : string = (string_of_int h) ^ ":" ^ (string_of_int m) ^ ":" ...
null
https://raw.githubusercontent.com/loganallen/CmlControl/24bf4616b36672bc12225b9bd93b1ae662733663/modules/time.ml
ocaml
****************************** Time Module ********************************* **************************************************************************** returns a formatted timestamp string for cml commits
returns a timestamp in the format [ hr : min : sec ] let time (h : int) (m : int) (s : int) : string = (string_of_int h) ^ ":" ^ (string_of_int m) ^ ":" ^ (string_of_int s) returns the day of the week abbreviation let day (n : int) : string = match n with | 0 -> "Sun" | 1 -> "Mon" | 2 -> "Tue" | 3 -> "Wed" ...
b20af21a35269657b7e5e5a6f962a1d9b2d7f8a1ba7b62e353dc6a1f863e7526
jessealama/laramie
dom.rkt
#lang typed/racket/base/optional (provide current-document append-child! insert-character! insert-string! current-node append-child-to-document! push-open-element! pop-open-element! frameset-ok? current-open-elements set-current-...
null
https://raw.githubusercontent.com/jessealama/laramie/1057028aabb938b019b5429dd4a1207b8476aa00/laramie-lib/laramie/parser/dom.rkt
racket
#lang typed/racket/base/optional (provide current-document append-child! insert-character! insert-string! current-node append-child-to-document! push-open-element! pop-open-element! frameset-ok? current-open-elements set-current-...