_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
b4a5f122b2c056bbac102f42fd7ea00f24a3a0e969ee0e518126823c8df52937
ocaml/omd
strSlice.mli
(* Implementation of string slices over a base string via an offset *) type t val of_string : ?off:int -> string -> t val to_string : t -> string val offset : int -> t -> t val lexbuf : t -> Lexing.lexbuf val contains : string -> t -> bool val length : t -> int val index : (char -> bool) -> t -> int option * [ index...
null
https://raw.githubusercontent.com/ocaml/omd/8cc423be8d090cae230dfa1307602ad7ea1b7db8/src/strSlice.mli
ocaml
Implementation of string slices over a base string via an offset * [uncons s] is [Some (h, t)] where [h] is [head s] and [t] is [tail s], or [None] if [is_empty s] * [last s] is the [Some c] if [c] is the last character of [s], or else [None] if [s] is empty * [drop_last s] is the [s] without its last character...
type t val of_string : ?off:int -> string -> t val to_string : t -> string val offset : int -> t -> t val lexbuf : t -> Lexing.lexbuf val contains : string -> t -> bool val length : t -> int val index : (char -> bool) -> t -> int option * [ index c s ] is [ Some i ] where [ i ] is the index of the character in [ s ]...
52027bf9faa9383c4b37a89a6292d58bdb35da7f3467930d920ce9a515f174fd
soulomoon/SICP
Exercise 2.84.scm
(load "/home/soulomoon/Documents/git/SICP/Chapter2/source.scm") Exercise 2.84 : Using the raise operation of Exercise 2.83 , modify the apply - generic procedure so that it coerces its arguments to have the same type by the method of successive raising , as discussed in this section . You will need to devise a way to...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter2/Exercise%202.84.scm
scheme
(define (drop x) ) (raise a) (raise b) memory limit : 128 MB . 'install_transform_done >
(load "/home/soulomoon/Documents/git/SICP/Chapter2/source.scm") Exercise 2.84 : Using the raise operation of Exercise 2.83 , modify the apply - generic procedure so that it coerces its arguments to have the same type by the method of successive raising , as discussed in this section . You will need to devise a way to...
4ec93ab9862cb157581bc1d16cf082ea0aee0e996fce457990fb0ea2d039438e
Ramarren/cells
01a-dataflow.lisp
(defpackage #:tu-dataflow (:use :cl :cells)) (in-package #:tu-dataflow) (defmodel rectangle () ((len :initarg :len :accessor len :initform (c? (* 2 (width self)))) (width :initarg :width :initform nil :accessor width)) (:default-initargs :width (c? (/ (len self) 2)))) #+test (let ((r (make-instance ...
null
https://raw.githubusercontent.com/Ramarren/cells/cced2e55c363572914358c0a693ebac2caed4e22/tutorial/01a-dataflow.lisp
lisp
make sure new value propagated
(defpackage #:tu-dataflow (:use :cl :cells)) (in-package #:tu-dataflow) (defmodel rectangle () ((len :initarg :len :accessor len :initform (c? (* 2 (width self)))) (width :initarg :width :initform nil :accessor width)) (:default-initargs :width (c? (/ (len self) 2)))) #+test (let ((r (make-instance ...
3bd08530800b03c752c8a7ec1b0495d0da3b9e3017e2e7f52c4d1a9f5f5b0a2f
poscat0x04/telegram-types
Sticker.hs
module Web.Telegram.Types.Internal.Sticker where import Common import Web.Telegram.Types.Internal.MaskPosition import Web.Telegram.Types.Internal.PhotoSize data Sticker = Sticker { fileId :: Text, fileUniqueId :: Text, width :: Int, height :: Int, isAnimated :: Bool, thumb :: Maybe PhotoSize, ...
null
https://raw.githubusercontent.com/poscat0x04/telegram-types/c09ccc81cff10399538894cf2d1273022c797e18/src/Web/Telegram/Types/Internal/Sticker.hs
haskell
module Web.Telegram.Types.Internal.Sticker where import Common import Web.Telegram.Types.Internal.MaskPosition import Web.Telegram.Types.Internal.PhotoSize data Sticker = Sticker { fileId :: Text, fileUniqueId :: Text, width :: Int, height :: Int, isAnimated :: Bool, thumb :: Maybe PhotoSize, ...
37bd3a3fe2476de576229d05845c8ae3381f9c26abd4917e924d878184d1f0af
polymeris/cljs-aws
kinesis_example.cljs
(ns cljs-aws.kinesis-example (:require [cljs-aws.kinesis :as kinesis] [cljs.core.async :refer [go <! timeout]] [cljs-aws.examples-util :as util :refer [throw-or-print]])) (enable-console-print!) (def stream-name "my-stream") (defn -main "Example cljs script using cljs-aws." [& args] (...
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/node-examples/src/cljs_aws/kinesis_example.cljs
clojure
(ns cljs-aws.kinesis-example (:require [cljs-aws.kinesis :as kinesis] [cljs.core.async :refer [go <! timeout]] [cljs-aws.examples-util :as util :refer [throw-or-print]])) (enable-console-print!) (def stream-name "my-stream") (defn -main "Example cljs script using cljs-aws." [& args] (...
310abe1c6838367f7fc46ca9c75a1cd497be1346463688ba6464073b232e0f1b
igorhvr/bedlam
eval.scm
" eval.scm " , proposed by ( Bill ) for R5RS . Copyright ( C ) 1997 , 1998 ; ;Permission to copy this software, to modify it, to redistribute it, ;to distribute modified versions, and to use it for any purpose is ;granted, subject to the following restrictions and understandings. ; 1 . Any copy made of this...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/eval.scm
scheme
Permission to copy this software, to modify it, to redistribute it, to distribute modified versions, and to use it for any purpose is granted, subject to the following restrictions and understandings. in full. this software will be error-free, and I am under no obligation to provide any services, by way of maintenan...
" eval.scm " , proposed by ( Bill ) for R5RS . Copyright ( C ) 1997 , 1998 1 . Any copy made of this software must include this copyright notice 2 . I have made no warranty or representation that the operation of 3 . In conjunction with products arising from the use of this (require 'rev4-optional-pro...
82c7890f902c1a4ea452037570c4da03973414b072259186b7f623e2b18be8b4
input-output-hk/cardano-sl
Payload.hs
module Pos.Chain.Ssc.Payload ( SscPayload (..) , checkSscPayload , spVss ) where import Universum hiding (id) import Control.Monad.Except (MonadError) import qualified Data.HashMap.Strict as HM import Data.SafeCopy (base, deriveSafeCopySimple) import ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/chain/src/Pos/Chain/Ssc/Payload.hs
haskell
| Payload included into blocks.
module Pos.Chain.Ssc.Payload ( SscPayload (..) , checkSscPayload , spVss ) where import Universum hiding (id) import Control.Monad.Except (MonadError) import qualified Data.HashMap.Strict as HM import Data.SafeCopy (base, deriveSafeCopySimple) import ...
5689c0c68105c21608fa91f8d2110bec74409946aa1e35a1bc4b0d574d763e29
ChrisPenner/wc
Strict.hs
module Strict where import qualified Data.ByteString.Char8 as BS import Types import Control.Monad import Control.Arrow import Data.Traversable strictBytestream :: [FilePath] -> IO [(FilePath, Counts)] strictBytestream paths = for paths $ \fp -> do count <- strictBytestreamCountFile <$> BS.readFile fp return...
null
https://raw.githubusercontent.com/ChrisPenner/wc/7a77329164c7b8e7f7d511539e75bce1a74651af/src/Strict.hs
haskell
module Strict where import qualified Data.ByteString.Char8 as BS import Types import Control.Monad import Control.Arrow import Data.Traversable strictBytestream :: [FilePath] -> IO [(FilePath, Counts)] strictBytestream paths = for paths $ \fp -> do count <- strictBytestreamCountFile <$> BS.readFile fp return...
e26ba3d2caf348d1a41631f48501db46617d10c537382b3116f6e52ade0ae73b
ndmitchell/catch
Apply2.hs
module Apply2 where main = apply id False True apply f x y = f x && f y
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/examples/Example/Apply2.hs
haskell
module Apply2 where main = apply id False True apply f x y = f x && f y
a4a200bf6c77fc21872565fdab11309a70a912ba0ab5d733a70b2cb5454ec678
locusmath/locus
object.clj
(ns locus.lawvere.metric.core.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.con.core.setpart :refer :all] ...
null
https://raw.githubusercontent.com/locusmath/locus/c8409c998e5b062b407b0b72a87e8ea325ae3e6a/src/clojure/locus/lawvere/metric/core/object.clj
clojure
Categories can be seen as intuitive abstractions of motion and of change. A morphism f: A -> B the best means we have of modeling change. How fitting then that distance should be modeled by categories. Distances describe a property of a motion f: A -> B from a point A to another point B. To describe distances categ...
(ns locus.lawvere.metric.core.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.con.core.setpart :refer :all] ...
030ab5459be77a2fe951ab50aedd559f92b9f995ea57dee7b1569d089d16b74e
cedlemo/OCaml-GI-ctypes-bindings-generator
Toggle_action.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_toggle_action_new" (string @-> string_opt @-> string_opt @-> string_opt @-> returning (ptr t_typ)) let get_active = foreign "gtk_toggle_action_get_active" (t_typ @-> returning (bool)) let get_draw_as_radio = foreig...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Toggle_action.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_toggle_action_new" (string @-> string_opt @-> string_opt @-> string_opt @-> returning (ptr t_typ)) let get_active = foreign "gtk_toggle_action_get_active" (t_typ @-> returning (bool)) let get_draw_as_radio = foreig...
79f2c4f33027565cbc62b614e0338805a5ea1b3bbbc1ee0fbabf21928fcea21d
HugoPeters1024/hs-sleuth
Stream.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} # LANGUAGE ExistentialQuantification # {-# LANGUAGE TypeOperators #-} -- | -- Module : Data.Stream Copyright : ( c ) 2007 ( c ) 2007 - 2013 -- License : BSD-style -- Maintainer : --...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/91aa2806ea71b7a26add3801383b3133200971a5/test-project/stream-fusion/Data/Stream.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE TypeOperators # | Module : Data.Stream License : BSD-style Maintainer : Stability : experimental Stream fusion for sequences. Described in: * /Stream Fusion: From Lists to Streams to Nothing a...
# LANGUAGE ExistentialQuantification # Copyright : ( c ) 2007 ( c ) 2007 - 2013 Portability : portable , requires Tested with : GHC 6.6 , and , ICFP 2007 . * /Rewriting Haskell Strings/ , by , and Roman Leshchinskiy , Practical Aspects of Declarative Lang...
c20e7bba77a13e73a1a94ed2fe0d0594f5d8ebbc65b29a473e722d8c7270d755
garrigue/lablgtk
dtd.mli
* , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 o...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/tools/introspection/xml-light/dtd.mli
ocaml
*/* internal usage only...
* , an small Xml parser / printer with DTD support . * Copyright ( C ) 2003 ( ) * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 o...
5dab9e77f8ccf6b5e3fdb0a2eb6d1898deda0f24febb4bcdbad60b13ec3b9855
fakedata-haskell/fakedata
StreetFighter.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} module Faker.Game.StreetFighter where import Data.Text (Text) import Faker (Fake(..)) import Faker.Provider.StreetFighter import Faker.TH $(generateFakeField "streetFighter" "characters") $(generateFakeField "streetFighter" "stages") $(generateFakeFie...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/src/Faker/Game/StreetFighter.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Game.StreetFighter where import Data.Text (Text) import Faker (Fake(..)) import Faker.Provider.StreetFighter import Faker.TH $(generateFakeField "streetFighter" "characters") $(generateFakeField "streetFighter" "stages") $(generateFakeField "streetFighter" "quotes") $(gen...
152e41dbb48492d3ff27d81c13c0eafec69d4888b4d49cbfe573931beacb2d20
alt-romes/ghengin
Property.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE UndecidableInstances # # LANGUAGE OverloadedRecordDot # module Ghengin.Core.Render.Property where import Control.Lens ((^.), Lens, Lens', lens) import GHC.TypeLits ( KnownNat, type (+), Nat, natVal ) import Data.Kind ( Type, Constraint ) import Data.Foldable ( foldrM ) -- TO...
null
https://raw.githubusercontent.com/alt-romes/ghengin/f821fcf60f1f78e1f63d28d9a749597d844af994/src/Ghengin/Core/Render/Property.hs
haskell
TODO: Remove dependency on Ghengin non-core Storable to write the buffers ^ A dynamic binding is written (necessarily because of linearity) to a mapped buffer based on the value of the constructor Storable to write the buffers ^ A dynamic binding is written (necessarily because of linearity) to a mapped buffer bas...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE UndecidableInstances # # LANGUAGE OverloadedRecordDot # module Ghengin.Core.Render.Property where import Control.Lens ((^.), Lens, Lens', lens) import GHC.TypeLits ( KnownNat, type (+), Nat, natVal ) import Data.Kind ( Type, Constraint ) import Data.Foldable ( foldrM ) impor...
c390ff730b5d09730752b6066e8d7cbcd07698a02f681f2ef1d6f2ba2906441f
sjl/euler
005.lisp
(defpackage :euler/005 #.euler:*use*) (in-package :euler/005) 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder . ;; ;; What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20 ? (define-problem (5 232792560) (ite...
null
https://raw.githubusercontent.com/sjl/euler/29cd8242172a2d11128439bb99217a0a859057ed/src/problems/005.lisp
lisp
What is the smallest positive number that is evenly divisible by all of the because:
(defpackage :euler/005 #.euler:*use*) (in-package :euler/005) 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder . numbers from 1 to 20 ? (define-problem (5 232792560) (iterate all numbers are divisible by 1 and we can skip checking everything < = 10 ...
b06bc073e59bd0715f2fd6e00fe49d400736befdfbd047603b876f80bd7be0f0
Yomguithereal/clj-fuzzy
caverphone_test.clj
;; ------------------------------------------------------------------- clj - fuzzy Caverphone Tests ;; ------------------------------------------------------------------- ;; ;; Author : ( Yomguithereal ) Version : 0.1 ;; (ns clj-fuzzy.caverphone-test (:require [clojure.test :refer :all] [clj-f...
null
https://raw.githubusercontent.com/Yomguithereal/clj-fuzzy/ce7c57dfb14f6ddc99bf4d9ab74c778128438d8b/test/clj_fuzzy/caverphone_test.clj
clojure
------------------------------------------------------------------- -------------------------------------------------------------------
clj - fuzzy Caverphone Tests Author : ( Yomguithereal ) Version : 0.1 (ns clj-fuzzy.caverphone-test (:require [clojure.test :refer :all] [clj-fuzzy.caverphone :refer :all])) (def process-revisited (fn [word] (process word :revisited))) (deftest process-test (is (= "ANRKSN1111" (process "He...
b2b6a92bca3ee2cd0f381669ada5b1f6d4b2c09809bf1354ad8156f1ad4d8d46
RefactoringTools/HaRe
Prelude.hs
--------------------------------------------------------------------------- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ || || || || || || || _ _ Hugs 98 : The Nottingham and Yale Haskell system ||___|| ||__|| ...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/tests/prelude/Prelude.hs
haskell
------------------------------------------------------------------------- -|| _ _ _ || World Wide Web : --------------------------------------------------------------------------- ------------------------------------------------------------------------- -|| ___|| World Wide Web: -...
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ || || || || || || || _ _ Hugs 98 : The Nottingham and Yale Haskell system ||___|| ||__|| ||__|| _ _ || Copyright ( c ) 1994 - 1999 || || ...
41830e2ed135d98fd31777142d6a18391c7cf1b0e64545837ace18062854ee96
rjray/advent-2020-clojure
day05bis.clj
(ns advent-of-code.day05bis (:require [clojure.string :as str] [clojure.math.numeric-tower :as math])) (defn- bin-partition [parts] (let [hi (dec (math/expt 2 (count parts)))] (loop [[part & parts] parts, lo 0, hi hi] (let [gap (/ (+ lo hi 1) 2)] (cond (nil? part) lo ...
null
https://raw.githubusercontent.com/rjray/advent-2020-clojure/631b36545ae1efdebd11ca3dd4dca032346e8601/src/advent_of_code/day05bis.clj
clojure
(ns advent-of-code.day05bis (:require [clojure.string :as str] [clojure.math.numeric-tower :as math])) (defn- bin-partition [parts] (let [hi (dec (math/expt 2 (count parts)))] (loop [[part & parts] parts, lo 0, hi hi] (let [gap (/ (+ lo hi 1) 2)] (cond (nil? part) lo ...
6062a83adca258ad686ae8be0d1502d73094c60caa3b94eb733011f8ed9e1015
brite-code/brite
CLI.hs
module Brite.CLI (main) where import Brite.Dev import Brite.DiagnosticMarkup (toANSIDoc) import Brite.Exception import Brite.Project.Build (buildProject, buildProjectFiles) import Brite.Project.Cache (withCache) import Brite.Project.Files import System.Directory (removeDirectoryRecursive) import System.Environment imp...
null
https://raw.githubusercontent.com/brite-code/brite/154d7fc93be050626af48051f71a446ec329f612/old/src/Brite/CLI.hs
haskell
Displays a pretty print ANSI document. ------------------------------------------------------------------------------------------------ Commands --------------------------------------------------------------------------------------...
module Brite.CLI (main) where import Brite.Dev import Brite.DiagnosticMarkup (toANSIDoc) import Brite.Exception import Brite.Project.Build (buildProject, buildProjectFiles) import Brite.Project.Cache (withCache) import Brite.Project.Files import System.Directory (removeDirectoryRecursive) import System.Environment imp...
331321431306e09e92d43101589e293e9ecfb29e39e0bc2d1e0c1b7aeb2fe528
frenchy64/fully-satisfies
test.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/frenchy64/fully-satisfies/c51413a17c432710b81cb05af19ce595803b8de2/src/io/github/frenchy64/fully_satisfies/non_leaky_macros/clojure/test.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns io.github.frenchy64.fully-satisfies.non-leaky-macros.clojure.test "Implementations of clojure.test macros that don't leak implementation details." (:require [clojure.test :as ct])) (defmacro non-leaky-with-test-out "Like clojure.test/with-test-out, except body d...
67510bff547d46be549e453f5a545ecc39caf919eea4705305c8315bc55449eb
stassats/lisp-bots
xml-paste.lisp
(in-package :lisppaste) (defun ip-to-string (ip) (when ip (format nil "~{~A~^.~}" (coerce ip 'list)))) (defun paste-xml-list (paste &optional contents) ; (format t "collecting paste number ~A~%" (paste-number paste)) (list* (paste-number paste) (s-xml-rpc:xml-rpc-time (paste-universal-time paste)) (paste...
null
https://raw.githubusercontent.com/stassats/lisp-bots/09bfce724afd20c91a08acde8816be6faf5f54b2/xml-paste.lisp
lisp
(format t "collecting paste number ~A~%" (paste-number paste)) Why not (every (lambda (s) (and (stringp s) (> (length s) 0))) ...)?
(in-package :lisppaste) (defun ip-to-string (ip) (when ip (format nil "~{~A~^.~}" (coerce ip 'list)))) (defun paste-xml-list (paste &optional contents) (list* (paste-number paste) (s-xml-rpc:xml-rpc-time (paste-universal-time paste)) (paste-user paste) (paste-channel paste) (paste-title paste) (leng...
cd6cc32bd91de64c76285601e6ed186db556a7b3ba4a049babd38b064410c5fc
witan-org/witan
sysutil.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2017 -- INRIA - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/popop_lib/sysutil.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2017 -- INRIA - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception val backup_file : string -> unit val channel_contents : in_channel -> string val channel_contents_buf : ...
e99327e34fc934093e4b93e58f4f2db185086b2d02db18c2e193d56c31ec9b2b
hipsleek/hipsleek
cvpermUtils.ml
#include "xdebug.cppo" open VarGen open Gen open Globals open Cpure let remove_dups = Gen.BList.remove_dups_eq eq_spec_var_ident let check_dups = Gen.BList.check_dups_eq eq_spec_var_ident let diff = Gen.BList.difference_eq eq_spec_var_ident let intersect = Gen.BList.intersect_eq eq_spec_var_ident let overlap = Gen.BLi...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/bef_indent/cvpermUtils.ml
ocaml
To store vperm of variables vperm_frac_vars: (Frac.frac * spec_var list) list; simpler unused cos of ivperm? else { vp with vperm_unprimed_flag = true; } let vperm_rm_prime vps = let pr = !print_vperm_sets in is_empty xs (is_empty vps.vperm_zero_vars) && is_empty xs @zero[x] * @z...
#include "xdebug.cppo" open VarGen open Gen open Globals open Cpure let remove_dups = Gen.BList.remove_dups_eq eq_spec_var_ident let check_dups = Gen.BList.check_dups_eq eq_spec_var_ident let diff = Gen.BList.difference_eq eq_spec_var_ident let intersect = Gen.BList.intersect_eq eq_spec_var_ident let overlap = Gen.BLi...
f92b5c7b2022969e32b0aff47ac20d1087f14e94909bf3a01b3986e688cd7935
functionally/pigy-genetics
Drawing.hs
----------------------------------------------------------------------------- -- -- Module : $Headers Copyright : ( c ) 2021 License : MIT -- Maintainer : < > -- Stability : Experimental Portability : Portable -- -- | Drawing pig images. -- -------------------------------------...
null
https://raw.githubusercontent.com/functionally/pigy-genetics/8ec2b9437a0ae14aabb166020f5c2707b2c9aa37/app/Pigy/Image/Drawing.hs
haskell
--------------------------------------------------------------------------- Module : $Headers Stability : Experimental | Drawing pig images. --------------------------------------------------------------------------- * Drawing * Scaling * Colors * Dimensions | Image enlargment factor, relative to n...
Copyright : ( c ) 2021 License : MIT Maintainer : < > Portability : Portable # LANGUAGE RecordWildCards # module Pigy.Image.Drawing ( drawBody , drawEars , drawEyes , drawHead , drawNose , withAspect , withScale , skin , enlarge , width , height ) where import Codec.Pictu...
cca394bedbb990048805d61dbad23b1bd21d20851705ef8289509dc25284fa5a
JonathanLorimer/weft
ServerSpec.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE NoMonoLocalBinds #-} {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DerivingStrategies #-} module ServerSpec where import Data.Aeson import ...
null
https://raw.githubusercontent.com/JonathanLorimer/weft/fc0396240905ab0202c5896019cf1e482d216f8d/test/ServerSpec.hs
haskell
# LANGUAGE NoMonoLocalBinds # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE DeriveAnyClass # # LANGUAGE DerivingStrategies # ---------------------------------------------------------------------------------------- | Mock Resolvers -----------------------------------------------------...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # module ServerSpec where import Data.Aeson import Data.ByteString.Lazy as BL import qualified Data.Map as M import Test.Hspec hiding (Arg) import TestData import Weft.Generics.Hydrate impo...
8a276b6ec9f5eddcbf7806fc0f4763c5a0fae4bd31f2c87638b503e322f191fe
awslabs/s2n-bignum
bignum_cld.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_cld.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "arm/generic/bignum_cld.o";; *** ------------------------------------------------------------------------- Correctness proof. ...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Counting leading zero digits of a bignum . ...
a9935ed1a4b5a9b840fd3b3a2ad5fcfc4050bffed2d7649540d813c9b79eeb56
let-def/cuite
mlspec.mli
type qclass type cfield type qenum type qflags type type_kind = [ `By_ref | `By_val ] type type_mod = [ `Direct | `Pointer | `Const | `Const_ref | `Ref | `Optional ] type qtype_def = | QClass of qclass | QEnum of qenum | QFlags of qflags | Custom of { ml_decl : string; ml_name : string; ml_neg...
null
https://raw.githubusercontent.com/let-def/cuite/42629a91c573ecbf1b01f213f1bf35a456d2b1af/spec/mlspec.mli
ocaml
type qclass type cfield type qenum type qflags type type_kind = [ `By_ref | `By_val ] type type_mod = [ `Direct | `Pointer | `Const | `Const_ref | `Ref | `Optional ] type qtype_def = | QClass of qclass | QEnum of qenum | QFlags of qflags | Custom of { ml_decl : string; ml_name : string; ml_neg...
e05d53539d333d57c2a5a6811261ffa594f71696e08171beac844768f2f132ed
TerrorJack/ghc-alter
T1548.hs
import Text.Printf main = do printf "%.*f\n" (2::Int) ((1/3) :: Double) ( expected : " 0.33 " ) printf "%.3s\n" "foobar" -- (expected: "foo") printf "%10.5d\n" (4::Int) ( expected : " 00004 " )
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/Text.Printf/T1548.hs
haskell
(expected: "foo")
import Text.Printf main = do printf "%.*f\n" (2::Int) ((1/3) :: Double) ( expected : " 0.33 " ) printf "%.3s\n" "foobar" printf "%10.5d\n" (4::Int) ( expected : " 00004 " )
086b5329b00edaf91bdabec8cd969c47d1c43179ccafdfaa6e4dd8d2a845d4aa
maximedenes/native-coq
omega.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/plugins/omega/omega.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 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Omega : a solver of quantifi...
d1526a7154bc24c8f53ce203940614d990040ea6f2caed0b4e882ec33c82b219
alavrik/piqi
piqi_getopt.ml
Copyright 2009 , 2010 , 2011 , 2012 , 2013 , 2014 , 2015 , 2017 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...
null
https://raw.githubusercontent.com/alavrik/piqi/bcea4d44997966198dc295df0609591fa787b1d2/piqilib/piqi_getopt.ml
ocaml
NOTE: getopt-letter is a Piq word and, therefore, it can't be empty -- so * there's no need to check for that name fields and options name fields and options fake filename for error reporting using fake location here, the actual location (i.e. the index of the * argument) will be correctly provided by t...
Copyright 2009 , 2010 , 2011 , 2012 , 2013 , 2014 , 2015 , 2017 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...
897bc074c4c5df3fec1e9c3356c8552adfb9aa630e0bc6bb8dc515bc6160d185
madmax96/brave-clojure-solutions
section_9.clj
(ns clojure-brave.exercises.section-9) ; NOTE: Rather than sending requests to or Google , ;i will use simpler approach and just simulate some long running action with wait function. Sending request to Google / Bing wo n't always work . (defmacro wait "Sleep `timeout` seconds before evaluating body" [timeout & b...
null
https://raw.githubusercontent.com/madmax96/brave-clojure-solutions/3be234bdcf3704acd2aca62d1a46fa03463e5735/section_9.clj
clojure
NOTE: i will use simpler approach and just simulate some long running action with wait function. We have N concurrent processes, and we should return promise that resolves to array of data returned by all processes
(ns clojure-brave.exercises.section-9) Rather than sending requests to or Google , Sending request to Google / Bing wo n't always work . (defmacro wait "Sleep `timeout` seconds before evaluating body" [timeout & body] `(do (Thread/sleep ~timeout) ~@body)) 1 skipped , Exercise 2 is generalisation of 1 , so I...
8e5788f155d59e54d7db1400ead499cf90e8f161bc1e7cb6c00d93ba81f8bc3a
HunterYIboHu/htdp2-solution
ex274-prefixes-suffixes.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-intermediate-lambda-reader.ss" "lang")((modname ex274-prefixes-suffixes) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t cons...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter3-Abstraction/Section16-Using-Abstraction/ex274-prefixes-suffixes.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of 1String] -> [List-of [List-of 1String]] 1String [List-of [List-of 1String]] -> [List-of [List-of 1String]] add the given s to the head of all the lol's list [List-of 1String] -> [List-of [List-of 1String]] p and l are the...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex274-prefixes-suffixes) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) produces the list of all prefixes ,...
21b12824f8bfeb296e425456c52e1714607ba4965ad40396ebf529d0a4824897
cloojure/yang-parser
calc1.clj
(ns tst.parse.calc1 (:use parse.core parse.transform tupelo.test ) (:require [tupelo.core :as t] [tupelo.forest :as tf] ) (:import [java.util.concurrent TimeoutException] )) (t/refer-tupelo) (def ^:dynamic *rpc-timeout-ms* 200) (def ^:dynamic *rpc-delay-simulated-ms* 30) (defn add-im...
null
https://raw.githubusercontent.com/cloojure/yang-parser/e9d8e1e26e8ec0956ec019f36452f53a218ce049/test/tst/parse/calc1.clj
clojure
(ns tst.parse.calc1 (:use parse.core parse.transform tupelo.test ) (:require [tupelo.core :as t] [tupelo.forest :as tf] ) (:import [java.util.concurrent TimeoutException] )) (t/refer-tupelo) (def ^:dynamic *rpc-timeout-ms* 200) (def ^:dynamic *rpc-delay-simulated-ms* 30) (defn add-im...
aa1c5040dde71f7ffe800e5e2e1ee015eab85e43d9aa7c8372926936532b9e6d
music-suite/music-suite
Time.hs
# OPTIONS_GHC -fno - warn - name - shadowing -fno - warn - unused - imports -fno - warn - redundant - constraints # -fno-warn-unused-imports -fno-warn-redundant-constraints #-} ------------------------------------------------------------------------------------- -------------------------------------------...
null
https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/src/Music/Score/Meta/Time.hs
haskell
----------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- | License : BSD-style Stability : experimental Provides time signatures and related meta-data. * Time signature type * Adding time signat...
# OPTIONS_GHC -fno - warn - name - shadowing -fno - warn - unused - imports -fno - warn - redundant - constraints # -fno-warn-unused-imports -fno-warn-redundant-constraints #-} Copyright : ( c ) 2012 - 2014 Maintainer : Portability : non - portable ( TF , ) module Music.Score.Meta.Time ...
690da00d4aeea6e64a33acb4567f6f2fa310a5887413faf6bedc5997a92589ca
cbaggers/shipshape
ship.lisp
(in-package :shipshape) (defun ship-it (system-name) (let ((system-name (or (asdf:coerce-name system-name) (error "Could not coerce ")))) (unless (asdf:find-component system-name nil) (error "No system named ~s was found, has it been loaded yet?" system-name)) (let ((...
null
https://raw.githubusercontent.com/cbaggers/shipshape/af0238a267e3f5e8dcd1ab5e41f01594f4360997/ship.lisp
lisp
If we can then lets run the script for the user.. ..Otherwise let them know how to run it force load to catch errors manifest should now be available delete any existing build Copy all files disconnect all c-libraries we have picked a profile so the other information is redundent and now we can save Only used...
(in-package :shipshape) (defun ship-it (system-name) (let ((system-name (or (asdf:coerce-name system-name) (error "Could not coerce ")))) (unless (asdf:find-component system-name nil) (error "No system named ~s was found, has it been loaded yet?" system-name)) (let ((...
c91efd60c3b7afecf384504a9e6adf2a21d54c33f22f6c56edede06ed0ce067a
turion/rhine
Event.hs
| This module provides two things : * Clocks that tick whenever events arrive on a ' Control . Concurrent . ' , and useful utilities . * Primitives to emit events . Note that _ events work across multiple clocks _ , i.e. it is possible ( and encouraged ) to emit events from signals on a different c...
null
https://raw.githubusercontent.com/turion/rhine/3bae3ddfa1ee70b8487e214f09a80c75b34f7398/rhine/src/FRP/Rhine/Clock/Realtime/Event.hs
haskell
# LANGUAGE RankNTypes # base transformers rhine * Monads allowing for event emission and handling | A monad transformer in which events can be emitted onto a 'Chan'. over which events are sent. Often this is not needed, and 'runEventChanT' can be used instead. * Event emission | Emit an event on every tick...
| This module provides two things : * Clocks that tick whenever events arrive on a ' Control . Concurrent . ' , and useful utilities . * Primitives to emit events . Note that _ events work across multiple clocks _ , i.e. it is possible ( and encouraged ) to emit events from signals on a different c...
9782eeae3b79272a83b0ceb128c47bb9147026d3a1c57a235c0070a321d270b0
fjames86/frpc2
rpcbind.lisp
Copyright ( c ) 2016 < > This code is licensed under the MIT license . (defpackage #:rpcbind (:use #:cl #:frpc2) (:export #:rpcbind #:start-rpcbind #:stop-rpcbind #:register-program #:unregister-program)) (in-package #:rpcbind) ;; ------------------- logging ------------------------- (de...
null
https://raw.githubusercontent.com/fjames86/frpc2/6b7ec2c7d57a0918ecc3755af75ff183e24d7e85/programs/rpcbind.lisp
lisp
------------------- logging ------------------------- -------------- globals ------------------ --------------- RPC Handlers ---------------- the set and unset handlers may only be called from loopback device proc 0 program already exists on this protocol, don't add found it. clear out entry we don't want to ...
Copyright ( c ) 2016 < > This code is licensed under the MIT license . (defpackage #:rpcbind (:use #:cl #:frpc2) (:export #:rpcbind #:start-rpcbind #:stop-rpcbind #:register-program #:unregister-program)) (in-package #:rpcbind) (defvar *rpcbind-tag* (babel:string-to-octets "RPCB")) (defu...
0e7c10b9c7f474a6f05f47ad0707f3a3d80a396b0eafc244ac0c234f77d30211
batsh-dev-team/Batsh
batsh_ast.ml
open Core_kernel type identifier = string and identifiers = identifier list and leftvalue = | Identifier of identifier | ListAccess of (leftvalue * expression) and expression = | Bool of bool | Float of float | Int of int | List of expressions | String of string | Leftvalue of leftvalue | ArithUna...
null
https://raw.githubusercontent.com/batsh-dev-team/Batsh/5c8ae421e0eea5dcb3da01643152ad96af941f07/lib/batsh_ast.ml
ocaml
open Core_kernel type identifier = string and identifiers = identifier list and leftvalue = | Identifier of identifier | ListAccess of (leftvalue * expression) and expression = | Bool of bool | Float of float | Int of int | List of expressions | String of string | Leftvalue of leftvalue | ArithUna...
f4f5e8d9528f62cf2cd69e95ca4b82a241e8e79a010bc0df20cd8111843bb4ff
AbstractMachinesLab/caramel
omd.mli
* A markdown parser in OCaml , with no extra dependencies . This module represents this entire Markdown library written in OCaml only . Its main purpose is to allow you to use the Markdown library while keeping you away from the other modules . If you want to extend the Markdown parser ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/omd/src/omd.mli
ocaml
********************************************************************** * Text. * Emphasis (italic) * Bold * Unumbered list * Ordered (i.e. numbered) list * (Forced) line break * Horizontal rule * An HTML comment, including "<!--" and "-->". * Raw: something that shall never be converted * Raw_block: a block wi...
* A markdown parser in OCaml , with no extra dependencies . This module represents this entire Markdown library written in OCaml only . Its main purpose is to allow you to use the Markdown library while keeping you away from the other modules . If you want to extend the Markdown parser ...
f47c863c0091d5528c483a63b67e50b75f1656da519382e3edf0d56f0b97b130
spectrum-finance/cardano-dex-backend
Serialization.hs
module Spectrum.Common.Persistence.Serialization ( serialize , deserializeM ) where import RIO ( ByteString, MonadThrow(..) ) import qualified Data.ByteString.Lazy as LBS import Data.Aeson ( ToJSON, encode, FromJSON, decode ) import Spectrum.Common.Persistence.Exception ( StorageDeserializationFailed(St...
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-backend/47528f6a43124ab4f6849521d61dbb3fad476c19/amm-executor/src/Spectrum/Common/Persistence/Serialization.hs
haskell
module Spectrum.Common.Persistence.Serialization ( serialize , deserializeM ) where import RIO ( ByteString, MonadThrow(..) ) import qualified Data.ByteString.Lazy as LBS import Data.Aeson ( ToJSON, encode, FromJSON, decode ) import Spectrum.Common.Persistence.Exception ( StorageDeserializationFailed(St...
4aff4da490074fcbb1491ff28f5911e1780e249b175a29b14b23ae912e9777e2
huangjs/cl
defpackage.lisp
;;; defpackage.lisp -- DEFPACKAGE forms for the cl-bench modules ;; Time - stamp : < 2004 - 01 - 01 emarsden > (defpackage :cl-bench (:use :common-lisp #+cmu :ext #+clisp :ext #+allegro :excl)) (defpackage :cl-bench.gabriel (:use :common-lisp) (:export #:boyer #:browse ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cl-bench/defpackage.lisp
lisp
defpackage.lisp -- DEFPACKAGE forms for the cl-bench modules
Time - stamp : < 2004 - 01 - 01 emarsden > (defpackage :cl-bench (:use :common-lisp #+cmu :ext #+clisp :ext #+allegro :excl)) (defpackage :cl-bench.gabriel (:use :common-lisp) (:export #:boyer #:browse #:dderiv-run #:deriv-run #:run-destruct...
babd49e1a76390e2fef6ad13d32b39a7dcd6d44b24c9b22bdf56bea330beee8e
racket/handin
info.rkt
#lang setup/infotab (define collection 'multi) (define deps '("base" "compatibility-lib" "drracket" "drracket-plugin-lib" "gui-lib" "htdp-lib" "net-lib" "pconvert-lib" ["sandbox-lib" #:version "1.2"...
null
https://raw.githubusercontent.com/racket/handin/08fdb0426b75c1200e696f851864b8b524a7c41d/info.rkt
racket
#lang setup/infotab (define collection 'multi) (define deps '("base" "compatibility-lib" "drracket" "drracket-plugin-lib" "gui-lib" "htdp-lib" "net-lib" "pconvert-lib" ["sandbox-lib" #:version "1.2"...
45534f99c22cb135609da0bf46744324e5e698c185efe5a1e3edd6c33ef7150e
scalaris-team/scalaris
mathlib_SUITE.erl
2012 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distribu...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/test/mathlib_SUITE.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2012 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @doc Test suite for the mathlib module . -module(mathlib_SUITE). -author(''). -vsn('$Id$'). -compile(export_all). ...
9f2df23a0b1ff65567edfe8e56caeef38b0c8e8dea7f2aee81cfaa18b30da75e
garrigue/labltk
image.ml
##ifdef CAMLTK let cTKtoCAMLimage s = let res = tkEval [|TkToken "image"; TkToken "type"; TkToken s|] in match res with | "bitmap" -> ImageBitmap (BitmapImage s) | "photo" -> ImagePhoto (PhotoImage s) | _ -> raise (TkError ("unknown image type \"" ^ res ^ "\"")) ;; let names () = let res = tkEval [|TkToke...
null
https://raw.githubusercontent.com/garrigue/labltk/2cbb92a8c0feacdd8ee69976f3f45a7cf81f805c/builtin/image.ml
ocaml
##ifdef CAMLTK let cTKtoCAMLimage s = let res = tkEval [|TkToken "image"; TkToken "type"; TkToken s|] in match res with | "bitmap" -> ImageBitmap (BitmapImage s) | "photo" -> ImagePhoto (PhotoImage s) | _ -> raise (TkError ("unknown image type \"" ^ res ^ "\"")) ;; let names () = let res = tkEval [|TkToke...
94c5098c8f5283cef00ddd6c26411bc7e71950f986103b80cfec21850b843f0a
huangjs/cl
parser.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - ppcre / parser.lisp , v 1.1.1.1 2002/12/20 10:10:44 edi Exp $ ;;; The parser will - with the help of the lexer - parse a regex ;;; string and convert it into a "parse tree" (see docs for details ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cl-bench/files/cl-ppcre/parser.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- The parser will - with the help of the lexer - parse a regex string and convert it into a "parse tree" (see docs for details about the syntax of these trees). Note that the lexer might return illegal parse trees. It is assumed that the conversion proces...
$ Header : /usr / local / cvsrep / cl - ppcre / parser.lisp , v 1.1.1.1 2002/12/20 10:10:44 edi Exp $ Copyright ( c ) 2002 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package "CL...
9cb356c6ee1e8de8a16daab1a0cc2f9b600ab9925675a4efc062d2354e1008ef
BranchTaken/Hemlock
test_rev.ml
open! Basis.Rudiments open! Basis open List let test () = let lists = [ []; [0L]; [0L; 1L]; [0L; 1L; 2L]; ] in iter lists ~f:(fun l -> File.Fmt.stdout |> Fmt.fmt "rev " |> (pp Uns.pp) l |> Fmt.fmt " -> " |> (pp Uns.pp) (rev l) |> Fmt.fmt "\n" |> ignore ) let _ = tes...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/list/test_rev.ml
ocaml
open! Basis.Rudiments open! Basis open List let test () = let lists = [ []; [0L]; [0L; 1L]; [0L; 1L; 2L]; ] in iter lists ~f:(fun l -> File.Fmt.stdout |> Fmt.fmt "rev " |> (pp Uns.pp) l |> Fmt.fmt " -> " |> (pp Uns.pp) (rev l) |> Fmt.fmt "\n" |> ignore ) let _ = tes...
aac01d961bac72b3ab3fa1a9226d530eb35baa2bb1dee380089f8db07457a850
GaoYusong/erlang-traffic-control
traffic_control_app.erl
-module(traffic_control_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %% =================================================================== %% Application callbacks %% =================================================================== start(_StartType, _StartArgs) -> traf...
null
https://raw.githubusercontent.com/GaoYusong/erlang-traffic-control/002a1d637a368d58e65f9f81c79f4c7b6612388e/src/traffic_control_app.erl
erlang
Application callbacks =================================================================== Application callbacks ===================================================================
-module(traffic_control_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> traffic_control_sup:start_link(). stop(_State) -> ok.
cec3712d7dd73b99bd30eeb4b9b5c8508a1de66f2a23d41acd886f21c861d82a
siriusdemon/Pearl
monads.rkt
#lang typed/racket/no-check ;#lang typed/racket (provide (all-defined-out)) (struct (A) Just ([a : A]) #:transparent) (struct Nothing () #:transparent) (define-type (Maybe A) (U (Just A) Nothing)) (: bind-maybe (All (A B) (-> (Maybe A) (-> A (Maybe B)) (Maybe B)))) (define (bind-maybe ma f) (match...
null
https://raw.githubusercontent.com/siriusdemon/Pearl/05f3c7a700809193b04acb795e846c58721f4872/material/monads.rkt
racket
#lang typed/racket
#lang typed/racket/no-check (provide (all-defined-out)) (struct (A) Just ([a : A]) #:transparent) (struct Nothing () #:transparent) (define-type (Maybe A) (U (Just A) Nothing)) (: bind-maybe (All (A B) (-> (Maybe A) (-> A (Maybe B)) (Maybe B)))) (define (bind-maybe ma f) (match ma [(Just a) (f...
dc65cebbaa841f64702a00086f80de692c48dc28050426f0e23d099b42b7018a
alexandroid000/improv
SetPenRequest.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Turtlesim.SetPenRequest where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinar...
null
https://raw.githubusercontent.com/alexandroid000/improv/ef0f4a6a5f99a9c7ff3d25f50529417aba9f757c/roshask/msgs/Turtlesim/Ros/Turtlesim/SetPenRequest.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Ros.Turtlesim.SetPenRequest where import qualified Prelude as P import Prelude ((.), (+), (*)) import qualified Data.Typeable as T import Control.Applicative import Ros.Internal.RosBinary import Ros.Internal.Msg.MsgInfo import qualified GHC.Generics as G im...
f79ff5cc1a5b08c87e475f243b49884edccc9eef9bb0fdd576d38908c00b4cdb
ghc/packages-base
Latin1.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , BangPatterns , NondecreasingIndentation # , BangPatterns , NondecreasingIndentation #-} # OPTIONS_GHC -funbox - strict - fields # -----------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/GHC/IO/Encoding/Latin1.hs
haskell
--------------------------------------------------------------------------- | Module : GHC.IO.Encoding.Latin1 License : see libraries/base/LICENSE Maintainer : Stability : internal Portability : non-portable --------------------------------------------------------------------------- ------...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , BangPatterns , NondecreasingIndentation # , BangPatterns , NondecreasingIndentation #-} # OPTIONS_GHC -funbox - strict - fields # Copyright : ( c ) The University of Glasgow , 2009 UTF-32 Codecs for...
f7aeaf5c8b7a2e3955e9db7afa5e4f1d32f613b62d323a3aa21793696037df50
ocaml/ocaml-lsp
ts_types.mli
open Import module Literal : sig type t = | String of string | Int of int | Float of float val to_maybe_quoted_string : t -> string val to_dyn : t -> Dyn.t end module Enum : sig type case = | Literal of Literal.t | Alias of string val dyn_of_case : case -> Dyn.t type t = (string * ...
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/2757cdc11dd68a6b0260aa961395b5e8a995ff11/lsp/bin/typescript/ts_types.mli
ocaml
open Import module Literal : sig type t = | String of string | Int of int | Float of float val to_maybe_quoted_string : t -> string val to_dyn : t -> Dyn.t end module Enum : sig type case = | Literal of Literal.t | Alias of string val dyn_of_case : case -> Dyn.t type t = (string * ...
94c7c39fbb3ffa785df584acac79acfd0d69ab0e6655e7ce202d6811859fe3cb
haskell-hvr/HsYAML
Writer.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE Safe #-} -- | Copyright : © 2015 - 2018 SPDX - License - Identifier : GPL-2.0 - or - later -- -- Event-stream oriented YAML writer API -- module Data.YAML.Event.Writer ( writeEvents , writeEventsText ) w...
null
https://raw.githubusercontent.com/haskell-hvr/HsYAML/be6040095fa7ad442c28d5c56ce9da3578807ea4/src/Data/YAML/Event/Writer.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # # LANGUAGE Safe # | Event-stream oriented YAML writer API __NOTE__: This function is only well-defined for valid 'Event' streams __NOTE__: This function is only well-defined for valid 'Event' streams goStream :: [Event] -> [Event] -> ...
Copyright : © 2015 - 2018 SPDX - License - Identifier : GPL-2.0 - or - later module Data.YAML.Event.Writer ( writeEvents , writeEventsText ) where import Data.YAML.Event.Internal import qualified Data.ByteString.Lazy as BS.L import qualified Data.Char as C import qual...
e12c6fba9fd67239305aea0374a07098f364a7385291fa054e585a48896b2f25
kongeor/evolduo-app
stats.clj
(ns evolduo-app.controllers.stats (:require [evolduo-app.response :as r] [evolduo-app.views.stats :as view])) (defn stats [req] (r/render-html view/stats req))
null
https://raw.githubusercontent.com/kongeor/evolduo-app/ecc72cb089f7b63690ba6d66c58aabca52b7620c/src/evolduo_app/controllers/stats.clj
clojure
(ns evolduo-app.controllers.stats (:require [evolduo-app.response :as r] [evolduo-app.views.stats :as view])) (defn stats [req] (r/render-html view/stats req))
9d190c2dbbd31af53798582180ad062d1511f5c9f9dbd74ed988a42fa31e082d
nmattia/niv
Cmd.hs
{-# LANGUAGE Arrows #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # module Niv.Local.Cmd where import Control.Arrow import qualified Data.Aeson as Aeson import qualified Data.Aeson.Key as K im...
null
https://raw.githubusercontent.com/nmattia/niv/2998a663d03ef9521585f67cf8fdfa8dac348462/src/Niv/Local/Cmd.hs
haskell
# LANGUAGE Arrows # # LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # module Niv.Local.Cmd where import Control.Arrow import qualified Data.Aeson as Aeson import qualified Data.Aeson.Key as K import qualified Data.Aeson.KeyMap as KM import qualified Dat...
949acc65b485e254375f65124ec92457b3f5f2a44b8830e21f78b7d9abe0ebe7
webyrd/miniKanren-uncourse
mk-chicken.scm
28 November 02014 WEB ;;; ;;; * Fixed missing unquote before E in 'drop-Y-b/c-dup-var' ;;; ;;; * Updated 'rem-xx-from-d' to check against other constraints after ;;; unification, in order to remove redundant disequality constraints subsumed by absento constraints . newer version : Sept. 18 2013 ( with eigens ) ...
null
https://raw.githubusercontent.com/webyrd/miniKanren-uncourse/19bc2903266197d6ba6c6b818e0a196ea620377b/mk-implementations/scheme/mk-chicken.scm
scheme
* Fixed missing unquote before E in 'drop-Y-b/c-dup-var' * Updated 'rem-xx-from-d' to check against other constraints after unification, in order to remove redundant disequality constraints E = (e* . x*)*, where e* is a list of eigens and x* is a list of variables. Each e in e* is checked for any of its eigens b...
28 November 02014 WEB subsumed by absento constraints . newer version : Sept. 18 2013 ( with eigens ) , , and abandons E , if it succeeds . If there is no failure by then , there were no eigen (define (list-sort x y) (sort y x)) (define (exists p l) (if (null? l) #f (if (p (car l)) ...
4d97ac897049a929fced623dea93870299fe64ab2241e6b79f0aa24e430cbfc6
metosin/malli
generator_ast_test.clj
(ns malli.generator-ast-test (:require [clojure.test :refer [deftest is]] [clojure.test.check.generators :as tcgen] [malli.generator-ast :as ast])) (deftest generator-ast-test (is (= '{:op :recursive-gen, :target :recur0 :rec-gen {:op :one-of, :g...
null
https://raw.githubusercontent.com/metosin/malli/ae6abbe2ac0b663eaa741948a852067091289107/test/malli/generator_ast_test.clj
clojure
(ns malli.generator-ast-test (:require [clojure.test :refer [deftest is]] [clojure.test.check.generators :as tcgen] [malli.generator-ast :as ast])) (deftest generator-ast-test (is (= '{:op :recursive-gen, :target :recur0 :rec-gen {:op :one-of, :g...
38f3f040623dd260f7efb5aa2ed88def3454708de3604ce7c715bd5d58aa7414
JonasDuregard/testing-feat
Class.hs
module Test.Feat.Class {-# DEPRECATED "Use Control.Enumerable instead" #-} ( Enumerable(..) , nullary , unary , funcurry , shared , consts , deriveEnumerable ) where import Control.Enumerable -- compatability {-# DEPRECATED nullary "use c0 instead" #-} -- nullary :: x -> Memoizable f x...
null
https://raw.githubusercontent.com/JonasDuregard/testing-feat/a1b32842a8cc8ab467d93a9f97f2365330a02113/Test/Feat/Class.hs
haskell
# DEPRECATED "Use Control.Enumerable instead" # compatability # DEPRECATED nullary "use c0 instead" # nullary :: x -> Memoizable f x # DEPRECATED unary "use c1 instead" # unary :: (Enumerable a, MemoSized f) => (a -> x) -> f x # DEPRECATED shared "use access instead" # # DEPRECATED consts "use datatype instead" #
( Enumerable(..) , nullary , unary , funcurry , shared , consts , deriveEnumerable ) where import Control.Enumerable nullary x = c0 x unary x = c1 x shared :: (Sized f, Enumerable a, Typeable f) => Shareable f a shared = access funcurry = uncurry consts : : ( a , MemoSized...
b67c9fd6f337e55bb8d2972c6f3839abd19725929f867e8ad771323f5135db9c
MinaProtocol/mina
vesta_based_plonk.ml
open Core_kernel open Kimchi_backend_common open Kimchi_pasta_basic module Field = Fp module Curve = Vesta module Bigint = struct include Field.Bigint let of_data _ = failwith __LOC__ let to_field = Field.of_bigint let of_field = Field.to_bigint end let field_size : Bigint.t = Field.size module Verificati...
null
https://raw.githubusercontent.com/MinaProtocol/mina/cee2e182c50d1e36f132e73a146ff0be613f2bb5/src/lib/crypto/kimchi_backend/pasta/vesta_based_plonk.ml
ocaml
compute witness
open Core_kernel open Kimchi_backend_common open Kimchi_pasta_basic module Field = Fp module Curve = Vesta module Bigint = struct include Field.Bigint let of_data _ = failwith __LOC__ let to_field = Field.of_bigint let of_field = Field.to_bigint end let field_size : Bigint.t = Field.size module Verificati...
3cd3094265ce7a72fc72ac54dd47329e62ccd30387cd8dd3c74c2985ad391d50
Clojure2D/clojure2d-examples
hittable_list.clj
(ns rt4.the-next-week.ch05d.hittable-list (:require [rt4.the-next-week.ch05d.interval :as interval] [rt4.the-next-week.ch05d.hittable :as hittable] [rt4.the-next-week.ch05d.aabb :as aabb])) (defprotocol HittableListProto (add [hittable-list object])) (defrecord HittableList [objects bbox] ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch05d/hittable_list.clj
clojure
(ns rt4.the-next-week.ch05d.hittable-list (:require [rt4.the-next-week.ch05d.interval :as interval] [rt4.the-next-week.ch05d.hittable :as hittable] [rt4.the-next-week.ch05d.aabb :as aabb])) (defprotocol HittableListProto (add [hittable-list object])) (defrecord HittableList [objects bbox] ...
37149e3ffdf3f876edd524c541a2b991b3e190cfeedcf41d83ae4734c2ffb421
yetanalytics/re-oidc
test_runner.cljs
;; This test runner is intended to be run from the command line (ns com.test-runner (:require ;; require all the namespaces that you want to test [com.yetanalytics.re-oidc-test] [figwheel.main.testing :refer [run-tests-async]])) (defn -main [& args] (run-tests-async 5000))
null
https://raw.githubusercontent.com/yetanalytics/re-oidc/a33d50d999b486c4d88f7ff1314c9e8a4af955a0/src/test/com/test_runner.cljs
clojure
This test runner is intended to be run from the command line require all the namespaces that you want to test
(ns com.test-runner (:require [com.yetanalytics.re-oidc-test] [figwheel.main.testing :refer [run-tests-async]])) (defn -main [& args] (run-tests-async 5000))
14a65ac885ba2c12467ff17052780e77a17b2fd4b9b14ac54c817b16c21a52d1
plandes/cisql
conf.clj
(ns ^{:doc "Manages application level configuration using the Java Prefernces system." :author "Paul Landes"} zensols.cisql.conf (:require [clojure.string :as str] [clojure.tools.logging :as log] [clojure.set :refer (difference)] [zensols.cisql.version :as ver] ...
null
https://raw.githubusercontent.com/plandes/cisql/8001864f1596d191386a3787b49e8a640705fee2/src/clojure/zensols/cisql/conf.clj
clojure
(ns ^{:doc "Manages application level configuration using the Java Prefernces system." :author "Paul Landes"} zensols.cisql.conf (:require [clojure.string :as str] [clojure.tools.logging :as log] [clojure.set :refer (difference)] [zensols.cisql.version :as ver] ...
1d2855989dc679ada9f0dba9d192fb49a2553699d04f57f1fb702524ade9bf64
elaforge/karya
Warning.hs
Copyright 2013 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt module Perform.Warning where import qualified Control.DeepSeq as DeepSeq import qualified Derive.Stack as Stack import Types data Warning = Warning { warn_msg :: String , warn_...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Perform/Warning.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Range that the warning covers. It should be within the event's range. It's in real time, so it needs to be converted back to score time, and it's (start, end) rather than (start, dur). then I can put the...
Copyright 2013 module Perform.Warning where import qualified Control.DeepSeq as DeepSeq import qualified Derive.Stack as Stack import Types data Warning = Warning { warn_msg :: String , warn_event :: Stack.Stack TODO : convert these back to ScoreTime with the tempo map , warn_pos :: Maybe (RealTim...
330f59413b2bc9880ad1b72b4f26c5584308388855873af21093cf583e467a18
lijunsong/pollen-rock
tags-handler.rkt
#lang racket (require json) (require web-server/http/request-structs) (require "expose-module.rkt") (provide tags-answer tags-handler do-get-tags) (define/contract (tags-answer errno tags) (-> integer? (listof (hash/c symbol? jsexpr?)) jsexpr?) (hash 'errno errno 'tags tags)) (define/...
null
https://raw.githubusercontent.com/lijunsong/pollen-rock/8107c7c1a1ca1e5ab125650f38002683b15b22c9/pollen-rock/handlers/tags-handler.rkt
racket
TODO: make extract-module-bindings take non-list and return another value to indicate if extraction succeeds. test that handler passes the correct path into getter
#lang racket (require json) (require web-server/http/request-structs) (require "expose-module.rkt") (provide tags-answer tags-handler do-get-tags) (define/contract (tags-answer errno tags) (-> integer? (listof (hash/c symbol? jsexpr?)) jsexpr?) (hash 'errno errno 'tags tags)) (define/...
fab673fa17d98626420b100f6d2cc2cfadbc1b2c1d97a69cf85e74acf683b7ee
ocaml/ocaml
pr10189.ml
(* TEST * expect *) type i = <m : 'c. 'c -> 'c > type ('a, 'b) j = <m : 'c. 'a -> 'b > type _ t = A : i t;; [%%expect{| type i = < m : 'c. 'c -> 'c > type ('a, 'b) j = < m : 'a -> 'b > type _ t = A : i t |}] let f (type a b) (y : (a, b) j t) : a -> b = let A = y in fun x -> x;; [%%expect{| Line 2, characters 6-7...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-gadts/pr10189.ml
ocaml
TEST * expect Should warn
type i = <m : 'c. 'c -> 'c > type ('a, 'b) j = <m : 'c. 'a -> 'b > type _ t = A : i t;; [%%expect{| type i = < m : 'c. 'c -> 'c > type ('a, 'b) j = < m : 'a -> 'b > type _ t = A : i t |}] let f (type a b) (y : (a, b) j t) : a -> b = let A = y in fun x -> x;; [%%expect{| Line 2, characters 6-7: 2 | let A = y in fu...
b77b911ca7a4bd449eb6e20cc71e83b86dbc2222653b5064eff68eeb631ed4e4
haskell-opengl/OpenGLRaw
TransformFeedback.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.TransformFeedback Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ---------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/TransformFeedback.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.TransformFeedback License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functi...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.TransformFeedback ( glGetNVTransformFeedback, gl_NV_transform_feedback, pattern GL_ACTIVE_VARYINGS_NV, pattern GL_ACTIVE_VARYING_MAX_LENGTH_NV, pattern GL_BACK_PRIMARY_COLOR_NV, pattern GL_BACK_SECO...
1460ced54bc50fcc5e4126f63e4487c3a361505bc3ede8d5a82b5ad86e51b754
brendanhay/amazonka
Choice.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wellarchitected/gen/Amazonka/WellArchitected/Types/Choice.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WellArchitected.Types.Choice Stability : auto-generated | A choice available to answer question. | The choice level helpful resource. | The choice level improvement plan. | Create a value of 'Choice' with all optional fields omit...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Co...
347fa02774176482d9dc3328f0ed5b1f9ffee6935c3f630a9b1ad13f1e904b7d
BoeingX/haskell-programming-from-first-principles
SmallLibraryForMaybeSpec.hs
module SignalingAdversity.ChapterExercises.SmallLibraryForMaybeSpec where import Test.Hspec import SignalingAdversity.ChapterExercises.SmallLibraryForMaybe spec :: Spec spec = do describe "Test isJust" $ do it "isJust (Just 1)" $ do isJust (Just 1) `shouldBe` True it "isJust Nothing" $...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/test/SignalingAdversity/ChapterExercises/SmallLibraryForMaybeSpec.hs
haskell
module SignalingAdversity.ChapterExercises.SmallLibraryForMaybeSpec where import Test.Hspec import SignalingAdversity.ChapterExercises.SmallLibraryForMaybe spec :: Spec spec = do describe "Test isJust" $ do it "isJust (Just 1)" $ do isJust (Just 1) `shouldBe` True it "isJust Nothing" $...
3bf1f86f58f166d1a578f6e761f0ef646d214ad9e4d650b50111851f1f7dfa19
MyDataFlow/ttalk-server
exml_stream_tests.erl
-module(exml_stream_tests). -include("exml_stream.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). parser_error_bad_stream_opt_test() -> ?assertEqual({error, {error, {invalid_parser_opt, {infinite_stream, infinity}}}}, exml_stream:new_parse...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/exml/test/exml_stream_tests.erl
erlang
it is the special case, because we are wrapping binary in the following way Stream = <<"<stream>", XML/binary, "</stream>">>, to make it a non-blocking call(?) checks if returned is xmlel of given name
-module(exml_stream_tests). -include("exml_stream.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). parser_error_bad_stream_opt_test() -> ?assertEqual({error, {error, {invalid_parser_opt, {infinite_stream, infinity}}}}, exml_stream:new_parse...
fa7faef60d849f7fdb1ae210e8c5a218a1f57d2033ec009f6aa6a32d90218b4e
swarmpit/swarmpit
info.cljs
(ns swarmpit.component.secret.info (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [swarmpit.component.state :as state] [swarmpit.component.mixin :as mixin] [swarmpit.component.dialog :as dialog] ...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/secret/info.cljs
clojure
(ns swarmpit.component.secret.info (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [swarmpit.component.state :as state] [swarmpit.component.mixin :as mixin] [swarmpit.component.dialog :as dialog] ...
85b7ad6703b56e150655cb9c3b89411b9625d2131f7a93154095ceb7afa84e09
clojure-interop/aws-api
AWSResourceGroupsClientBuilder.clj
(ns com.amazonaws.services.resourcegroups.AWSResourceGroupsClientBuilder "Fluent builder for AWSResourceGroups. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.resourcegroups AWSResourceGroupsClientBu...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.resourcegroups/src/com/amazonaws/services/resourcegroups/AWSResourceGroupsClientBuilder.clj
clojure
(ns com.amazonaws.services.resourcegroups.AWSResourceGroupsClientBuilder "Fluent builder for AWSResourceGroups. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.resourcegroups AWSResourceGroupsClientBu...
606aee932de2be55d74f3ab3fa5aec7583c635a4997273148ab27d6004c2ccee
vseloved/prj-algo3
ford-fulkerson.lisp
(load "../utils/graph.lisp") (load "../utils/bfs.lisp") (defparameter *graph* (adj-list->adj-mat (make-graph '(0 1 16) '(0 2 13) '(1 3 12) '(1 2 10) '(2 1 4) '(2 4 14) '(3 5 20) '(3 2 9) '(4 3 7) '(4 5 4)))) (defun ford-fulkerson (g source s...
null
https://raw.githubusercontent.com/vseloved/prj-algo3/ed485ca730e42cd1bba757fd3f409b51ddb43c03/tasks/h8is2w8/18-graphs/ford-fulkerson.lisp
lisp
Fill in redsiduals graph. Find maximum flow. Find possible flow. Decrease residual capacity.
(load "../utils/graph.lisp") (load "../utils/bfs.lisp") (defparameter *graph* (adj-list->adj-mat (make-graph '(0 1 16) '(0 2 13) '(1 3 12) '(1 2 10) '(2 1 4) '(2 4 14) '(3 5 20) '(3 2 9) '(4 3 7) '(4 5 4)))) (defun ford-fulkerson (g source s...
06fcc55465acbfa683b5e191c66720d450ab2f76a2473a0225ae87e0287d8e42
patrikja/AFPcourse
Shallow.hs
{-| A simple embedded language for input/output. Shallow embedding. -} module Program.Shallow ( Input, Output , Program , putC, getC , run ) where import Control.Applicative (Applicative(..)) import Control.Monad (liftM, ap) type Input = String type Output = String -- | Shallow embedding: programs...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L3/src/Program/Shallow.hs
haskell
| A simple embedded language for input/output. Shallow embedding. | Shallow embedding: programs are represented by their semantics In this case a program is a function from the input to the result, the remaining input and the output. | Print a character. | Read a character (if there is one). sequencing pr...
module Program.Shallow ( Input, Output , Program , putC, getC , run ) where import Control.Applicative (Applicative(..)) import Control.Monad (liftM, ap) type Input = String type Output = String type IOSem a = Input -> (a, Input, Output) newtype Program a = P { unP :: IOSem a } putC :: Char -> Prog...
a28fe7d0bff9935e1f5e2654e03d7bc487633dcc6734091d2476839e5d4562bb
ktakashi/sagittarius-scheme
label.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; win32/gui/label.scm - Win32 Label component ;;; Copyright ( c ) 2021 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1....
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/6b313540c8d539d86a7de90437700ce054180a52/ext/ffi/win32/gui/label.scm
scheme
coding : utf-8 ; -*- win32/gui/label.scm - Win32 Label component Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this l...
Copyright ( c ) 2021 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING #!nounbound (library (win32 gui label) (export ...
55a9a91affaf761bdb42b6f538958eb33058805e33da2994f7ae204e689e15d0
jrm-code-project/LISP-Machine
starter-list.lisp
-*- Mode : Lisp ; Package : User ; : CPTFONT ; ; : CL -*- ;;; Mailing list file MAIL ; LIST.LISP ;;; Mailer internal addresses . ("Postman" (:file . "MAIL; POSTMAN-MAIL.TEXT")) ("Postmaster" "Postman")
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/network/mailer/starter-list.lisp
lisp
Package : User ; : CPTFONT ; ; : CL -*- LIST.LISP
Mailer internal addresses . ("Postman" (:file . "MAIL; POSTMAN-MAIL.TEXT")) ("Postmaster" "Postman")
ede9930884f2d4c3355fc381a56f36d54056c80daac8be60d5e8283caa3fc181
cmeiklejohn/ensemble
ensemble.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2016 . 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 obtain %% a copy of the...
null
https://raw.githubusercontent.com/cmeiklejohn/ensemble/9471b07c0ce18d7a58fef683fceca99992579ff3/src/ensemble.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 ) 2016 . 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(ensemble). -author("...
d54071778dea7b1a1be43b123a387c6ec7eaf494bb2e9137db32716a2f7052b8
eglaysher/rldev
variables.ml
Rlc : variable handling Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later ...
null
https://raw.githubusercontent.com/eglaysher/rldev/e59103b165e1c20bd940942405b2eee767933c96/src/rlc/variables.ml
ocaml
Code-generation auxiliaries Main functions Allocate and retrieve appropriate addresses to use. Allocate one block and place individual variables within it. Allocate variables wherever they'll fit, out of order or split up if necessary. Define the symbols. Write to flag.ini if required If they have, we mu...
Rlc : variable handling Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later ...
417dcba43a9654276099d6ad0511b68bda2b9385284298cee68f5888fba07bdd
mikera/ironclad
gamefactory.clj
(ns ic.gamefactory "Map and level generation routines" (:use [ic protocols engine map units game]) (:use [clojure.test]) (:use [mc.util]) (:import [mikera.engine Hex]) (:import [mikera.util Rand])) (set! *warn-on-reflection* true) (set! *unchecked-math* true) (def blank-map (new-map)) (def ^:const DEF...
null
https://raw.githubusercontent.com/mikera/ironclad/ef647bcd097eeaf45f058d43e9e5f53ce910b4b2/src/main/clojure/ic/gamefactory.clj
clojure
(if (and (= sx tx) (= sy ty)) (set-terrain g tx ty (terrain-funtion (get-terrain g tx ty))) (let []))) source random challenge game game factory function
(ns ic.gamefactory "Map and level generation routines" (:use [ic protocols engine map units game]) (:use [clojure.test]) (:use [mc.util]) (:import [mikera.engine Hex]) (:import [mikera.util Rand])) (set! *warn-on-reflection* true) (set! *unchecked-math* true) (def blank-map (new-map)) (def ^:const DEF...
d998e10957fd5a89968629d4bb4b79d9313d6ac6e1c23b487c0ab6bea853f453
jabber-at/ejabberd
configure_deps.erl
-module(configure_deps). -export(['configure-deps'/2]). 'configure-deps'(Config, Vals) -> {ok, Config}.
null
https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/plugins/configure_deps.erl
erlang
-module(configure_deps). -export(['configure-deps'/2]). 'configure-deps'(Config, Vals) -> {ok, Config}.
735a4bd9d40b9c50075c0db525cf5d4054c216abb67d3893d7ff8bdfc5c262eb
bytekid/mkbtt
aCULogic.ml
(*** OPENS ***************************************************************) open Util;; (*** SUBMODULES **********************************************************) module Var = Rewriting.Variable;; module Fun = Rewriting.Function;; module M = U.Monad;; module T = U.Term;; module Sub = U.Substitution;; module Elogic = ...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/aCULogic.ml
ocaml
** OPENS ************************************************************** ** SUBMODULES ********************************************************* ** EXCEPTIONS ********************************************************* ** FUNCTIONS ********************************************************** restrict substitution to variab...
open Util;; module Var = Rewriting.Variable;; module Fun = Rewriting.Function;; module M = U.Monad;; module T = U.Term;; module Sub = U.Substitution;; module Elogic = U.Elogic;; module TSub = Replacement.Make(T)(T);; module L = U.Label;; module Sig = U.Signature;; module A = ACLogicNoFakeAux;; * * OPENS ( 2 ) * * * *...
73af29bd1ab0cc62503cd103c39f414320986e88b8ab79473a9c4d2714bfc680
AlexanderMann/conj-2016
project.clj
(defproject conj-2016 "0.1.0-SNAPSHOT" :description "Repo for work pertaining to TSNE, Conj, and English Embeddings" :url "-2016" :license {:name "Eclipse Public License" :url "-v10.html"} :resource-paths ["resources"] :dependencies [[cheshire "5.7.0"] [clatrix "0.5.0"] ...
null
https://raw.githubusercontent.com/AlexanderMann/conj-2016/00b07f654f83ca1da7af4486d58b7d0add880544/project.clj
clojure
(defproject conj-2016 "0.1.0-SNAPSHOT" :description "Repo for work pertaining to TSNE, Conj, and English Embeddings" :url "-2016" :license {:name "Eclipse Public License" :url "-v10.html"} :resource-paths ["resources"] :dependencies [[cheshire "5.7.0"] [clatrix "0.5.0"] ...
41a9d991a9b02a2c5aa06117d57f0a35e80dac8420eb926dd55bf39b3f297425
cloudant/lager_rsyslog
lager_rsyslog_util.erl
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 obtain %% a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under the Licens...
null
https://raw.githubusercontent.com/cloudant/lager_rsyslog/f90ed8ce0f655b49d4914649f06a3d79ed64cdd6/src/lager_rsyslog_util.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 permissions and limitations under the License.
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(lager_rsyslog_util). -export([ dest_addr/1, dest_port/1, id...
e9459b10939b23161ac0777a2a6ab7f5afc612ad7e1ef02e0febe2fa201ed4c6
grapesmoker/cl-sfml
keyboard.lisp
(in-package :sfml) (defcenum sf-key-code (:sf-key-unknown -1) (:sf-key-a 0) (:sf-key-b 1) (:sf-key-c 2) (:sf-key-d 3) (:sf-key-e 4) (:sf-key-f 5) (:sf-key-g 6) (:sf-key-h 7) (:sf-key-i 8) (:sf-key-j 9) (:sf-key-k 10) (:sf-key-l 11) (:sf-key-m 12) (:sf-key-n 13) (:sf-key-o 14) (:sf-key...
null
https://raw.githubusercontent.com/grapesmoker/cl-sfml/3e587b431bbdd23dde2d0031f979d859ac436bca/win/keyboard.lisp
lisp
(foreign-enum-keyword 'sf-key-code key-code)))
(in-package :sfml) (defcenum sf-key-code (:sf-key-unknown -1) (:sf-key-a 0) (:sf-key-b 1) (:sf-key-c 2) (:sf-key-d 3) (:sf-key-e 4) (:sf-key-f 5) (:sf-key-g 6) (:sf-key-h 7) (:sf-key-i 8) (:sf-key-j 9) (:sf-key-k 10) (:sf-key-l 11) (:sf-key-m 12) (:sf-key-n 13) (:sf-key-o 14) (:sf-key...
838936ccff3213bced5b710cf1a367b708a3990ed0ae828be7124d5deb9b8157
dschrempf/elynx
Alignment.hs
-- | -- Module : ELynx.Sequence.Alignment -- Description : Multi sequence alignment related types and functions Copyright : 2021 License : GPL-3.0 - or - later -- -- Maintainer : -- Stability : unstable -- -- Portability : portable -- Creation date : Thu Oct 4 18:40:18 2018 . -- -- T...
null
https://raw.githubusercontent.com/dschrempf/elynx/bf5f0b353b5e2f74d29058fc86ea6723133cab5c/elynx-seq/src/ELynx/Sequence/Alignment.hs
haskell
| Module : ELynx.Sequence.Alignment Description : Multi sequence alignment related types and functions Maintainer : Stability : unstable Portability : portable This module is to be imported qualified. | * Input, output | * Manipulation | * Analysis | * Sub sample | A collection of sequence...
Copyright : 2021 License : GPL-3.0 - or - later Creation date : Thu Oct 4 18:40:18 2018 . module ELynx.Sequence.Alignment ( Alignment (..), length, nSequences, fromSequences, toSequences, summarize, join, concat, concatAlignments, filterColsConstant, filte...
9a8d5e15f95e2fbb7eafd61b902aba429a5d7aef630f1df61f4ac3bc011a742a
okuoku/nausicaa
control.sps
Copyright ( c ) 2008 ;;; ;;;This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the ;;;License, or (at your option) any later version. ;;; ;;;This library...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/scheme/tests/r6rs/run/control.sps
scheme
This library is free software; you can redistribute it and/or modify either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR ...
Copyright ( c ) 2008 it under the terms of the GNU Library General Public License as Library General Public License for more details . You should have received a copy of the GNU Library General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 U...
5133241a06c990dd423b153545c41b04bda662b2e95bc5ebfbebde082e79fadd
tautologico/progfun
aula4.rkt
#lang racket ;; numeros naturais ;; ;; um numero natural pode ser: ;; - zero - o um numero natural ;; ( soma n ) retorna a soma dos numeros 1 + 2 + ... + n (define (soma n) (if (zero? n) 0 (+ n (soma (sub1 n))))) ;; listas ;; uma lista pode ser : ;; - a lista vazia '() - ( cons x lst ) onde ...
null
https://raw.githubusercontent.com/tautologico/progfun/0e8b2985e48445d289fa96f27c2485710c356709/codigo/aula4.rkt
racket
numeros naturais um numero natural pode ser: - zero listas - a lista vazia '() '(1 2 3) (list 1 2 3)
#lang racket - o um numero natural ( soma n ) retorna a soma dos numeros 1 + 2 + ... + n (define (soma n) (if (zero? n) 0 (+ n (soma (sub1 n))))) uma lista pode ser : - ( cons x lst ) onde lst é uma lista exemplo : ( cons 1 ( cons 2 ( cons 3 ' ( ) ) ) ) ( tamanho lst ) retorna o numero ...
6e8d2f730b2f28ffda2b848f24047780c430e09ddb4e475865362af8b4682737
raptazure/experiments
Lib.hs
module Lib where import Control.Monad.Reader import Control.Monad.Writer class where -- return :: a -> m a -- (>>=) :: m a -> (a -> m b) -> m b ( > > ) : : = > m a - > m b - > m b -- m >> k = m >>= \_ -> k | Maybe instance Maybe where -- (Just x) >>= k = k x -- Nothing >>= k = Nothing -- re...
null
https://raw.githubusercontent.com/raptazure/experiments/c48263980d1ce22ee9407ff8dcf0cf5091b01c70/haskell/wiwinwlh/monads/src/Lib.hs
haskell
return :: a -> m a (>>=) :: m a -> (a -> m b) -> m b m >> k = m >>= \_ -> k (Just x) >>= k = k x Nothing >>= k = Nothing return = Just | List Monad m >>= f = concat (map f m) return x = [x] a = [f x y | x <- xs, y <- ys, x == y] b = do x <- xs y <- ys guard $ x == y namer' :: IO () n...
module Lib where import Control.Monad.Reader import Control.Monad.Writer class where ( > > ) : : = > m a - > m b - > m b | Maybe instance Maybe where maybeExample1 :: Maybe Int maybeExample1 = do a <- Just 3 b <- Just 4 return $ a + b maybeDesugared1 :: Maybe Int maybeDesugared1 = Just 3 >>= ...
bdf9f2f5c96a4ae785adde45e8c41855b152ab52cc6908017253893ca2b0848f
jeluard/cljc-ethereum
websocket.cljc
(ns ethereum.transports.websocket) ;; -ws ;; ;;
null
https://raw.githubusercontent.com/jeluard/cljc-ethereum/41fb6e1fc5cd870eca7daa690c2a19e4db08db9c/src/ethereum/transports/websocket.cljc
clojure
-ws
(ns ethereum.transports.websocket)
9a34436084e92a30a4ecaf16dfecf44b3e7ca23634ca2a23b36285aeda6c1993
input-output-hk/cardano-base
PackedBytes.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # {-# LANGUAGE GADTs #-} # LANGUAGE MagicHash # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UnboxedTu...
null
https://raw.githubusercontent.com/input-output-hk/cardano-base/7e3ddba98a61900181fe63cdd4c9ed9708d1a6a7/cardano-crypto-class/src/Cardano/Crypto/PackedBytes.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # UNPACK # # INLINE xorPackedBytes # # INLINE unpackBytes # # INLINE packBytes28 # # INLINE[1] packBytes # | Construct `PackedBytes` from a `ShortByteString` and ...
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilyDependencies # # LANGUAGE UnboxedTuples # module Cardano.Crypto.PackedBytes ( PackedBytes(..) , packBytes , p...
db724632fc5d292fb38826bc6c036724e3412bd0a67ed9f9f535705749281684
brendanhay/terrafomo
Resources.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # -- | Module : . Kubernetes . Resources Copyright : ( c ) 2017 - 2018 License ...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-kubernetes/gen/Terrafomo/Kubernetes/Resources.hs
haskell
This module is auto-generated. | Stability : auto-generated * kubernetes_config_map * kubernetes_horizontal_pod_autoscaler * kubernetes_limit_range * kubernetes_namespace * kubernetes_persistent_volume_claim * kubernetes_persistent_volume * kubernetes_replication_controller * kubernetes_resource_quota * ...
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # Module : . Kubernetes . Resources Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . ...
33b8cc2c08f71f23edfdb94de4733b7e59bb4d52d75680360adc1cdc8e0dfe9c
Stedi-Public-Archive/cdk-clj
examples_test.clj
(ns stedi.cdk.examples-test (:require [clojure.java.io :as io] [clojure.java.shell :as sh] [clojure.string :as string] [clojure.test :refer [deftest testing is]])) (def cdk-bin-path "node_modules/aws-cdk/bin/cdk") (defn example-projects [] (->> (file-seq (io/file "examples"))...
null
https://raw.githubusercontent.com/Stedi-Public-Archive/cdk-clj/8de0174c47ef456f0c22a6bec0ca9845844cc818/test/stedi/cdk/examples_test.clj
clojure
(ns stedi.cdk.examples-test (:require [clojure.java.io :as io] [clojure.java.shell :as sh] [clojure.string :as string] [clojure.test :refer [deftest testing is]])) (def cdk-bin-path "node_modules/aws-cdk/bin/cdk") (defn example-projects [] (->> (file-seq (io/file "examples"))...
3a885054fea0224e0d22f9c85abbf053c9b95c4f0dc6ad976e39f62fe511622f
rmloveland/scheme48-0.53
mutation.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; Package mutation tests " ,translate =scheme48/ ./ ,open packages compiler built-in-structures handle condition ,open interfaces table defpackage package-mutation " (define (try exp env . should-return-option) (let ((val (ignore-errors (lambda () (ev...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/debug/mutation.scm
scheme
Package mutation tests (set-verify-later! really-verify-later!) Remove a, add d (package-system-sentinel) Foo.
Copyright ( c ) 1993 - 1999 by and . See file COPYING . " ,translate =scheme48/ ./ ,open packages compiler built-in-structures handle condition ,open interfaces table defpackage package-mutation " (define (try exp env . should-return-option) (let ((val (ignore-errors (lambda () (eval exp env))))) (if (...
b08f1f65e97054d5697770f7d7e3ec9cac4fd45294e719c914f7bf4f7a66acae
imteekay/functional-programming-learning-path
problem06.clj
;; (= [:a :b :c] (list :a :b :c) (vec '(:a :b :c)) (vector :a :b :c))
null
https://raw.githubusercontent.com/imteekay/functional-programming-learning-path/07dac09c9fabfa54f8b4d80b62f43b092cb87b0d/programming_challenges/4clojure/problem06.clj
clojure
(= [:a :b :c] (list :a :b :c) (vec '(:a :b :c)) (vector :a :b :c))
491fbf92e3ba74f70d4463ee5878c30fbbb1d0dc58b99843ab670f5571929e37
witheve/eve-experiments
smil.clj
(ns server.smil (:refer-clojure :exclude [read]) (:require [server.db :as db] [server.util :refer [merge-state]] [clojure.string :as string] [clojure.tools.reader :as reader] [clojure.tools.reader.reader-types :as reader-types])) (def REMOVE_FACT 5) (defn read [str]...
null
https://raw.githubusercontent.com/witheve/eve-experiments/8a1cdb353b3e728bc768b315e5b9a9f9dc785ae1/server/src/server/smil.clj
clojure
@NOTE: Should this allow unions/chooses as well? :args - positional arguments :rest - remaining arguments :optional - arguments which may not be specified :validate - optional function to validate the argument map Special forms Special due to multiple aliases Special due to optional parameterization native for...
(ns server.smil (:refer-clojure :exclude [read]) (:require [server.db :as db] [server.util :refer [merge-state]] [clojure.string :as string] [clojure.tools.reader :as reader] [clojure.tools.reader.reader-types :as reader-types])) (def REMOVE_FACT 5) (defn read [str]...
761747f5300e4932071d2b312548b3c9490b0af588d5edf590f2cc8f74c6a3c3
input-output-hk/cardano-sl
Update.hs
-- | Reexport of Pos.Client.Update.* modules. module Pos.Client.Update ( module Pos.Client.Update.Network ) where import Pos.Client.Update.Network
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/client/src/Pos/Client/Update.hs
haskell
| Reexport of Pos.Client.Update.* modules.
module Pos.Client.Update ( module Pos.Client.Update.Network ) where import Pos.Client.Update.Network
7b574932b4a79d47d9e806abae60b56c686087283cf49056392e7400dba43a6d
imandra-ai/fix-engine
runtime.ml
let ( let* ) = Lwt.bind type direction = | Incoming | Outgoing [@@deriving show] type msg_type = | Application | Admin [@@deriving show] type message = { message: (string * string) list; direction: direction; msg_type: msg_type; } [@@deriving show] type event = | Log of string | FIXMessage of mess...
null
https://raw.githubusercontent.com/imandra-ai/fix-engine/4d24f4d89a262ed7f16ff898570dbc9319730374/fix-engine/src-runtime/runtime.ml
ocaml
FIX IO loop
let ( let* ) = Lwt.bind type direction = | Incoming | Outgoing [@@deriving show] type msg_type = | Application | Admin [@@deriving show] type message = { message: (string * string) list; direction: direction; msg_type: msg_type; } [@@deriving show] type event = | Log of string | FIXMessage of mess...
219a6fc14d242f867e4581334ee62afa2b671dea4cb8558e4240e6e7ede07a1b
burtonsamograd/med
point.lisp
(in-package :med) Point motion . (defun move-beginning-of-line (buffer) (setf (mark-charpos (buffer-point buffer)) 0) (values)) (defun move-end-of-line (buffer) (let ((point (buffer-point buffer))) (setf (mark-charpos point) (line-length (mark-line point)))) (values)) (defun move-beginning-of-buffer (...
null
https://raw.githubusercontent.com/burtonsamograd/med/667c45032f60831447ad0eafd4d5c9a9748b4366/point.lisp
lisp
At start of line. At start of buffer. Moving within a line. At end of line. Moving within a line. At end of line. At end of buffer. At start of line. At start of buffer. Forward past leading non-alphanumberic characters. And now past alphanumeric characters. Skip past any leading whitespace. Found last mat...
(in-package :med) Point motion . (defun move-beginning-of-line (buffer) (setf (mark-charpos (buffer-point buffer)) 0) (values)) (defun move-end-of-line (buffer) (let ((point (buffer-point buffer))) (setf (mark-charpos point) (line-length (mark-line point)))) (values)) (defun move-beginning-of-buffer (...
d4b10da70de5c985eb1dc040c1917a98dd211db5d563c14f48a62285b6df49ce
clojure-dus/chess
xboard_adapter.clj
(ns chess.xboard-adapter)
null
https://raw.githubusercontent.com/clojure-dus/chess/7eb0e5bf15290f520f31e7eb3f2b7742c7f27729/src/chess/xboard_adapter.clj
clojure
(ns chess.xboard-adapter)
1614a3f085ae7b6e0a6684db8ddedb87ff0ab442989167779a19d0e0a8616750
quil-lang/magicl
load-libs.lisp
;;;; load-libs.lisp ;;;; Author : (in-package #:magicl.foreign-libraries) (cffi:define-foreign-library libexpokit (:darwin (:or "libexpokit.dylib" "expokit.dylib")) (:unix (:or "libexpokit.so" "expokit.so")) (:windows (:or "libexpokit.dll" "expokit.dll")) (t (:default "expokit"))) (pushnew 'libexpokit *...
null
https://raw.githubusercontent.com/quil-lang/magicl/c23abd55d245cd9f3eccf5e12631017032aa1f86/src/extensions/expokit/load-libs.lisp
lisp
load-libs.lisp Keep above in sync with 'perform ((... compile-op) (... f->so))' method in magicl.asd.
Author : (in-package #:magicl.foreign-libraries) (cffi:define-foreign-library libexpokit (:darwin (:or "libexpokit.dylib" "expokit.dylib")) (:unix (:or "libexpokit.so" "expokit.so")) (:windows (:or "libexpokit.dll" "expokit.dll")) (t (:default "expokit"))) (pushnew 'libexpokit *foreign-libraries*) (pu...
addca60a534b40bbf0feb88b67055cc7c12946a9a910d29e65ebaa6f13bd930e
babashka/babashka
bb_edn_test.clj
(ns babashka.bb-edn-test (:require [babashka.fs :as fs] [babashka.impl.classpath :as cp] [babashka.impl.common :as common] [babashka.main :as main] [babashka.test-utils :as test-utils] [borkdude.deps] [clojure.edn :as edn] [clojure.string :as str] [clojure.test :as test :refer [deftest is t...
null
https://raw.githubusercontent.com/babashka/babashka/42fd5d851f8c29a39826e4b57c1b9da53608cdc3/test/babashka/bb_edn_test.clj
clojure
(.println System/out :args) (.println System/out (vec args)) This is why we don't support :when for now TODO: Build bootleg for aarch64 too or use a different pod
(ns babashka.bb-edn-test (:require [babashka.fs :as fs] [babashka.impl.classpath :as cp] [babashka.impl.common :as common] [babashka.main :as main] [babashka.test-utils :as test-utils] [borkdude.deps] [clojure.edn :as edn] [clojure.string :as str] [clojure.test :as test :refer [deftest is t...