_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
f2805556c57853652614afb1686ee7adb1a306ea5eb37ff9e8425da7aa79cea3
wilkerlucio/pathom-connect-youtube
videos.cljs
(ns com.wsscode.pathom.connect.youtube.videos (:require [clojure.string :as str] [com.wsscode.common.async-cljs :refer [<? go-catch]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.connect.youtube.helpers :as yth])) (def video-output [:youtube.video.localizations.key/ti...
null
https://raw.githubusercontent.com/wilkerlucio/pathom-connect-youtube/9415ff9ed15ab6cf098fe88f315cba19adfe9de8/src/core/com/wsscode/pathom/connect/youtube/videos.cljs
clojure
(ns com.wsscode.pathom.connect.youtube.videos (:require [clojure.string :as str] [com.wsscode.common.async-cljs :refer [<? go-catch]] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.connect.youtube.helpers :as yth])) (def video-output [:youtube.video.localizations.key/ti...
cd00e21bb83ed9c487e1c060ed98d78c2c5e285611f6a15d0e85cddcccd1c267
sionescu/bordeaux-threads
impl-mezzano.lisp
;;;; -*- indent-tabs-mode: nil -*- (in-package :bordeaux-threads-2) ;;; ;;; Threads ;;; (deftype native-thread () 'mezzano.supervisor:thread) (defun %make-thread (function name) (mezzano.supervisor:make-thread function :name name)) (defun %current-thread () (mezzano.supervisor:current-thread)) (defun %threa...
null
https://raw.githubusercontent.com/sionescu/bordeaux-threads/552fd4dc7490a2f05ed74123f4096fb991673ac0/apiv2/impl-mezzano.lisp
lisp
-*- indent-tabs-mode: nil -*- Threads THREAD-JOIN can return non-lists if the thread was destroyed. Introspection/debugging Non-recursive locks Recursive locks Semaphores Condition variables
(in-package :bordeaux-threads-2) (deftype native-thread () 'mezzano.supervisor:thread) (defun %make-thread (function name) (mezzano.supervisor:make-thread function :name name)) (defun %current-thread () (mezzano.supervisor:current-thread)) (defun %thread-name (thread) (mezzano.supervisor:thread-name threa...
508553e409f40f569a5227afc6767af51dab93b0e4ef2ba415ba38aff1b306ac
michaelmelanson/erlyweb
erltl.erl
@author < > [ ] %% @version 0.9.3 @copyright Yariv Sadan 2006 - 2007 %% @doc ErlTL is a simple Erlang template language . %% %% == Introduction == ErlTL is a template language used for creating Erlang modules that programatically generate iolists ( nested lists of strings and/or binaries ) %% whose conte...
null
https://raw.githubusercontent.com/michaelmelanson/erlyweb/997df18b70459bfaaf8c3ab70ab4f54907045d0f/src/erltl/erltl.erl
erlang
@version 0.9.3 == Introduction == whose contents are mostly known at compile time. ErlTL templates are generally less verbose and more readable than dynamic HTML in web applications. ErlTL emphasizes speed, simplicity, reusability and good error reporting. whose functions are exported so they can be used in ...
@author < > [ ] @copyright Yariv Sadan 2006 - 2007 @doc ErlTL is a simple Erlang template language . ErlTL is a template language used for creating Erlang modules that programatically generate iolists ( nested lists of strings and/or binaries ) the equivalent hand - written Erlang code . A common use ...
be7f85c68728b358570d98feacbed1831e3692258112eac547ca1221471bdbdd
purcell/adventofcode2016
Day14.hs
module Main where import AdventOfCode import qualified Crypto.Hash as H import Data.ByteString (ByteString) import Data.String (fromString) import Data.List (isInfixOf, tails) import Control.Arrow ((&&&)) hexMD5 :: String -> String hexMD5 = show . md5 . fromString where md5 :: ByteString -> H.Digest H.MD5 m...
null
https://raw.githubusercontent.com/purcell/adventofcode2016/081f30de4ea6b939e6c3736d83836f4dd72ab9a2/src/Day14.hs
haskell
module Main where import AdventOfCode import qualified Crypto.Hash as H import Data.ByteString (ByteString) import Data.String (fromString) import Data.List (isInfixOf, tails) import Control.Arrow ((&&&)) hexMD5 :: String -> String hexMD5 = show . md5 . fromString where md5 :: ByteString -> H.Digest H.MD5 m...
780d79d83c93527c0f442d1dcb6a3bec0319e39c20d51845a54adc1d930b7419
cdepillabout/servant-checked-exceptions
API.hs
{-# LANGUAGE PackageImports #-} module Servant.Checked.Exceptions.Internal.Servant.API ( module Servant.Checked.Exceptions.Internal.Servant.API ) where import "servant-checked-exceptions-core" Servant.Checked.Exceptions.Internal.Servant.API
null
https://raw.githubusercontent.com/cdepillabout/servant-checked-exceptions/8ec4e831e45e51f3404790496f036a42c7349afa/servant-checked-exceptions/src/Servant/Checked/Exceptions/Internal/Servant/API.hs
haskell
# LANGUAGE PackageImports #
module Servant.Checked.Exceptions.Internal.Servant.API ( module Servant.Checked.Exceptions.Internal.Servant.API ) where import "servant-checked-exceptions-core" Servant.Checked.Exceptions.Internal.Servant.API
684f1342a85080eb114f56939a41b1007eef71e8f7bb660283e247250097aea3
faylang/fay
List.hs
{-# OPTIONS -fno-warn-orphans #-} {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE StandaloneDeriving # module Data.List where import Prelude import Data.Maybe | The ' isPrefixOf ' function takes two lists and returns ' True ' iff the first list is a prefix of the second . isPrefixOf :: (Eq a) => [a] -...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/fay-base/src/Data/List.hs
haskell
# OPTIONS -fno-warn-orphans # # LANGUAGE EmptyDataDecls # Both lists must be finite. It returns 'Nothing' if the list did not start with the prefix given, or 'Just' the list after the prefix, if it does. | Split lists at delimiter specified by a condition Drops empty groups (similar to `words`) | Split list...
# LANGUAGE StandaloneDeriving # module Data.List where import Prelude import Data.Maybe | The ' isPrefixOf ' function takes two lists and returns ' True ' iff the first list is a prefix of the second . isPrefixOf :: (Eq a) => [a] -> [a] -> Bool isPrefixOf [] _ = True isPrefixOf _ [] ...
dfb1f14ee44e998fb546e52c639adeec8cdb7ecb94b9a066914078f100a047d0
life0fun/clojure-idiom
tweet_spout.clj
(ns trident-clj.tweet-spout (:import [java.io FileReader] [java.util Random Map Map$Entry List ArrayList Collection Iterator HashMap]) (:import [backtype.storm Config StormSubmitter LocalCluster LocalDRPC] [backtype.storm.spout SchemeAsMultiScheme] [storm.trident.operation TridentCo...
null
https://raw.githubusercontent.com/life0fun/clojure-idiom/481b297eeabea917a68b492b1fb78b8151408507/trident-clj/src/trident_clj/tweet_spout.clj
clojure
clj-time abbrev to core bring in redis namespace put serialiazable object here. Must return [ [superclass-constructor-args] state] empty arg constructor a map of constructor sig to superclass construcotr signature this ns impl Function Must return [ [superclass-constructor-args] state] cant use atom, as it i...
(ns trident-clj.tweet-spout (:import [java.io FileReader] [java.util Random Map Map$Entry List ArrayList Collection Iterator HashMap]) (:import [backtype.storm Config StormSubmitter LocalCluster LocalDRPC] [backtype.storm.spout SchemeAsMultiScheme] [storm.trident.operation TridentCo...
57117184ce09d12a2b04736a41786af2e060f7a2efba98b3ad2ca0d9bc7f06b2
soegaard/sketching
shape.rkt
#lang racket/base (provide Shape create-shape) (require racket/class sketching/graphics sketching/transform) ; Shape class to represent storable shapes. (define Shape (class object% (define-values (shape-struct finalized visible ...
null
https://raw.githubusercontent.com/soegaard/sketching/3e846620bcb38a9aa5f5d7c7c86db889a3aadd55/sketching-lib/sketching/shape.rkt
racket
Shape class to represent storable shapes. shape-struct finalized visible children child-count vertex-count fill-args stroke-args transformation
#lang racket/base (provide Shape create-shape) (require racket/class sketching/graphics sketching/transform) (define Shape (class object% (define-values (shape-struct finalized visible children child-coun...
fbd5b8b8eb93fe0bf20be8a79153c378538af8f3c7588864be9bed4a4ce1da1f
OCamlPro/freeton_wallet
commandTokenWTONWithdraw.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/freeton_wallet/b97877379e51d96cb3544141d386d502348cfca9/src/freeton_wallet_lib/commandTokenWTONWithdraw.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS Public License version 2.1 , with the special exception on linking open Ezcmd.V2 open EZCMD.TYPES open CommandTokenList.TYPES open Types let action config ~account ~amount () = let ctxt = CommandTokenList.get_context config in let...
ff15f42283c476bfa78e853242e325534f2e39725b815498e150cf0da0c64922
active-group/reacl-c
macros.clj
(ns ^:no-doc reacl-c.impl.macros) (def ^:private dom-alist '([attrs & children] [& children])) (defn- dom-doc [tag] (str "Returns a dom element item corresponding to a `" tag "` tag. The `attrs` argument is an optional map of attributes. Any attribute ...
null
https://raw.githubusercontent.com/active-group/reacl-c/6acdfda3fcfcf83f4e92aa75f6a09666ccb5f8b9/src/reacl_c/impl/macros.clj
clojure
(ns ^:no-doc reacl-c.impl.macros) (def ^:private dom-alist '([attrs & children] [& children])) (defn- dom-doc [tag] (str "Returns a dom element item corresponding to a `" tag "` tag. The `attrs` argument is an optional map of attributes. Any attribute ...
38c978da56a2af9aa8bf8f16cde779f4aa11ec1c9392bfa4c9bc8b1352c36b8d
bittide/bittide-hardware
ALU.hs
SPDX - FileCopyrightText : 2022 Google LLC SPDX - FileCopyrightText : 2020 -- SPDX - License - Identifier : Apache-2.0 # LANGUAGE NamedFieldPuns # # LANGUAGE TypeApplications # # LANGUAGE CPP # module Contranomy.Core.ALU ( alu -- * Internal , multdiv , multdivSim , multdivFormal ) where import Cl...
null
https://raw.githubusercontent.com/bittide/bittide-hardware/b44dac8ee0fb14b0c6a94fcbe830fdd8d140bec4/contranomy/src/Contranomy/Core/ALU.hs
haskell
* Internal | The ALU implements the following instructions, or at least parts of them * SLL/SLLI * SLTU/SLTUI * SRA/SRAI * AND/ANDI It is additionally used to calculate the PC after the PC of the current instruction for: * JALR And it performs the address calculation for the Load and Store instructions ...
SPDX - FileCopyrightText : 2022 Google LLC SPDX - FileCopyrightText : 2020 SPDX - License - Identifier : Apache-2.0 # LANGUAGE NamedFieldPuns # # LANGUAGE TypeApplications # # LANGUAGE CPP # module Contranomy.Core.ALU ( alu , multdiv , multdivSim , multdivFormal ) where import Clash.Prelude import...
798d12d911517799344eb5e2112678d196155812c0058ce823e51848ed513896
FreeProving/free-compiler
SimilarTests.hs
| This module contains tests for " " . module FreeC.IR.SimilarTests ( testSimilar ) where import Test.Hspec import FreeC.Test.Expectations import FreeC.Test.Parser -- | Test group for 'FreeC.IR.Similar.similar' tests. testSimilar :: Spec testSimilar = describe "FreeC.IR.Similar" $ do...
null
https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/src/test/FreeC/IR/SimilarTests.hs
haskell
| Test group for 'FreeC.IR.Similar.similar' tests. type expressions. declarations. declarations.
| This module contains tests for " " . module FreeC.IR.SimilarTests ( testSimilar ) where import Test.Hspec import FreeC.Test.Expectations import FreeC.Test.Parser testSimilar :: Spec testSimilar = describe "FreeC.IR.Similar" $ do testSimilarTypes testSimilarExprs testSimilarFu...
3e3c8a3a47b9669d38ffb45ee2d21579b2610b476ab30c40b87f8fa2e6817fed
programaker-project/Programaker-Core
automate_rest_api_ping.erl
%%% @doc %%% REST endpoint to manage knowledge collections. %%% @end -module(automate_rest_api_ping). -export([init/2]). -export([ content_types_provided/2 ]). -export([ to_json/2 ]). -include("./records.hrl"). -spec init(_,_) -> {'cowboy_rest',_,_}. init(Req, _Opts) -> {cowboy_rest, Req, { }}. ...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_rest_api/src/automate_rest_api_ping.erl
erlang
@doc REST endpoint to manage knowledge collections. @end GET handler
-module(automate_rest_api_ping). -export([init/2]). -export([ content_types_provided/2 ]). -export([ to_json/2 ]). -include("./records.hrl"). -spec init(_,_) -> {'cowboy_rest',_,_}. init(Req, _Opts) -> {cowboy_rest, Req, { }}. content_types_provided(Req, State) -> {[{{<<"application">>, <<...
c29e90cb9e94a52686f8d9e0a7e83c7bcb554ace6d2c45c776defea709944d5c
c-cube/ocaml-containers
containers_bencode.ml
module Str_map = Map.Make (String) type t = Int of int64 | String of string | List of t list | Map of t Str_map.t let rec equal t1 t2 = match t1, t2 with | Int i1, Int i2 -> i1 = i2 | String s1, String s2 -> s1 = s2 | List l1, List l2 -> (try List.for_all2 equal l1 l2 with Invalid_argument _ -> false) |...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/bencode/containers_bencode.ml
ocaml
read integer until char [stop] is met, consume [stop], return int
module Str_map = Map.Make (String) type t = Int of int64 | String of string | List of t list | Map of t Str_map.t let rec equal t1 t2 = match t1, t2 with | Int i1, Int i2 -> i1 = i2 | String s1, String s2 -> s1 = s2 | List l1, List l2 -> (try List.for_all2 equal l1 l2 with Invalid_argument _ -> false) |...
11ade0136f9d708ca7b9d888cd17754ab808d4d83efcd1fbe17dbf224458aa6a
ekmett/rcu
TimeSynchronize.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} # LANGUAGE NamedFieldPuns # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Main where import Control.Concurrent import Control.Concurrent.RCU.MODE.Internal import Control.Concurrent.RCU.Class import Control.DeepSeq (force) import Control.Exception (...
null
https://raw.githubusercontent.com/ekmett/rcu/0268be375de95fea32909dfcfc4b7934c1e73ae8/examples/TimeSynchronize.hs
haskell
# LANGUAGE BangPatterns # | Checks whether the list contains the same bit twice. Does not short-circuit, so all read-side critical sections have similar memory access patterns and durations. when dup $ do xs <- snapshot [] =<< readSRef hd trace (show xs) $ return () duplicate pointer to B link in a new C a...
# LANGUAGE CPP # # LANGUAGE NamedFieldPuns # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Main where import Control.Concurrent import Control.Concurrent.RCU.MODE.Internal import Control.Concurrent.RCU.Class import Control.DeepSeq (force) import Control.Exception (evaluate) import Control.Monad...
a400a48baed703041e1b12009ad9d716b4c40cd17f4b5b5acff2a7078611eb2d
pouyakary/Nota
Assignment.hs
module Language.BackEnd.Renderer.Nodes.Assignment ( renderASTAssignment ) where -- ─── IMPORTS ──────────────────────────────────────────────────────────────────── import Infrastructure.Text.Layout import Language.FrontEnd.AST -- ─── RENDER ───────────────────────────────────────────────────────────────────── ren...
null
https://raw.githubusercontent.com/pouyakary/Nota/d5e29eca7ea34d72835a9708977fa33c030393d1/source/Language/BackEnd/Renderer/Nodes/Assignment.hs
haskell
─── IMPORTS ──────────────────────────────────────────────────────────────────── ─── RENDER ───────────────────────────────────────────────────────────────────── ────────────────────────────────────────────────────────────────────────────────
module Language.BackEnd.Renderer.Nodes.Assignment ( renderASTAssignment ) where import Infrastructure.Text.Layout import Language.FrontEnd.AST renderASTAssignment :: AST -> AST -> ( AST -> Bool -> SpacedBox ) -> SpacedBox renderASTAssignment ( ASTIdentifier name ) value render = result where result = ...
d6ecd2288c54afdea0128833d12981bebdbbca985108c8a99db1921090703192
blarney-lang/blarney
Connectable.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # | Module : . Connectable Description : Module to connect interfaces Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental The ' Connectable ' class provides a standard way to connect hard...
null
https://raw.githubusercontent.com/blarney-lang/blarney/abc7f91485e48a6013b1a05c1b5e6a71dd55f68f/Haskell/Blarney/Connectable.hs
haskell
* Connectable class Blarney import | 'Connectable' class ^ 'Module' with no interface, implementing the connection
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # | Module : . Connectable Description : Module to connect interfaces Copyright : ( c ) , 2019 License : MIT Maintainer : Stability : experimental The ' Connectable ' class provides a standard way to connect hard...
5cf172e8a8dd5bfcbbd440f4856d449c5daa1a198b70e348420ded0435eeafe7
heidihoward/ocaml-raft
raft-general-ocaml.ml
This file has been auto - generated by the SPL compiler type t = [ |`Recover |`RestartElecton |`StartElecton |`Startup |`StepDown_from_Candidate |`StepDown_from_Leader |`WinElecton ] let string_of_statecall (x:t) = match x with |`Recover -> "Recover" |`RestartElecton -> "RestartElecton" |`StartEl...
null
https://raw.githubusercontent.com/heidihoward/ocaml-raft/b1502ebf8c19be28270d11994abac68e5a6418be/spl/raft-general-ocaml.ml
ocaml
This file has been auto - generated by the SPL compiler type t = [ |`Recover |`RestartElecton |`StartElecton |`Startup |`StepDown_from_Candidate |`StepDown_from_Leader |`WinElecton ] let string_of_statecall (x:t) = match x with |`Recover -> "Recover" |`RestartElecton -> "RestartElecton" |`StartEl...
4b215a448474f307b6261f4c0c1c7e1d574b5749fadb4e3ca7c6f0e9d009eff3
chr15m/svg-animation-assistant
project.clj
(defproject inkscape-animation-assistant "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/clojurescript "1.10.520"] [reagent "0.8.1...
null
https://raw.githubusercontent.com/chr15m/svg-animation-assistant/1a64198f961820279873afb14685695e9fa01980/app-src/project.clj
clojure
(defproject inkscape-animation-assistant "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/clojurescript "1.10.520"] [reagent "0.8.1...
0e966beb31adef9c0e5dbf51d1a6b274320f5b566474d69fce378e6784a7df42
baskeboler/cljs-karaoke-client
config.cljs
(ns cljs-karaoke.config) (def ^:export config-map {:audio-files-prefix "-karaoke" :app-url-prefix "-player.netlify.app" :http-timeout 15000})
null
https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/config.cljs
clojure
(ns cljs-karaoke.config) (def ^:export config-map {:audio-files-prefix "-karaoke" :app-url-prefix "-player.netlify.app" :http-timeout 15000})
a31e7f2592c19b61ca7384f28f56333206dcafa5c8902f1c39ba542f2d12ee99
hypernumbers/hypernumbers
eunit_render_str.erl
-module(eunit_render_str). -include_lib("eunit/include/eunit.hrl"). %%-------------------- %% %% Tests %% %%-------------------- %% %% Render Test %% string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), ...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/sgte/test/src/eunit_render_str.erl
erlang
-------------------- Tests -------------------- Render Test error test test callable attribute test on a non existent file -------------------- -------------------- Template String
-module(eunit_render_str). -include_lib("eunit/include/eunit.hrl"). string_test_() -> Str = "This is a test:\n" ++ "$testFun()$ followed by $testData$ and unicode characters àèìòù", {ok, Compiled} = sgte:compile(Str), Res = sgte:render_str(Compiled, data()), ResultStr = "This is a test:\n" ++ ...
755e3381ab505950e50a37c4a887c55c9cc7ce46855493abcab7280b9336571c
gsakkas/rite
20060324-22:24:46-8ab05dd4986d17d763e509d04ea02fde.seminal.ml
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ################# ##################### ################ *) exception Unimplemented exception AlreadyDone let pi = 4.0 *. atan 1.0 (*** part a ***) type move = Home | Forward of float...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060324-22%3A24%3A46-8ab05dd4986d17d763e509d04ea02fde.seminal.ml
ocaml
** part a ** ** part b ** ** part c ** ** part d ** ** part e ** ** part f ** ** possibly helpful testing code **
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ################# ##################### ################ *) exception Unimplemented exception AlreadyDone let pi = 4.0 *. atan 1.0 type move = Home | Forward of float | Turn of float |...
7ae15f77a5aa6651f6e99dc40408821d16807bb7a964d3fb506fb129ef7f3525
shayne-fletcher/zen
print_utils.ml
let string_of_set f fold s = let f i acc = (f i) :: acc in "[" ^ String.concat "," (List.rev (fold f s [])) ^ "]" let string_of_list f l = "[" ^ String.concat ";" (List.map f l) ^ "]" let string_of_array f arr = "[|" ^ String.concat ";" (List.map f (Array.to_list arr)) ^ "|]"
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/regexp/print_utils.ml
ocaml
let string_of_set f fold s = let f i acc = (f i) :: acc in "[" ^ String.concat "," (List.rev (fold f s [])) ^ "]" let string_of_list f l = "[" ^ String.concat ";" (List.map f l) ^ "]" let string_of_array f arr = "[|" ^ String.concat ";" (List.map f (Array.to_list arr)) ^ "|]"
ef8d77e1909311cda3f89f27791040e264e6138c90bfe0be8eda1e62fcf99ef6
sellout/haskerwaul
One.hs
# language UndecidableSuperClasses # module Haskerwaul.Field.Totalized.One ( module Haskerwaul.Field.Totalized.One -- * extended modules , module Haskerwaul.Field.Totalized , module Haskerwaul.Meadow.NonInvolutive ) where import Haskerwaul.Field.Totalized import Haskerwaul.Meadow.NonInvolutive class (NonIn...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Field/Totalized/One.hs
haskell
* extended modules
# language UndecidableSuperClasses # module Haskerwaul.Field.Totalized.One ( module Haskerwaul.Field.Totalized.One , module Haskerwaul.Field.Totalized , module Haskerwaul.Meadow.NonInvolutive ) where import Haskerwaul.Field.Totalized import Haskerwaul.Meadow.NonInvolutive class (NonInvolutiveMeadow c t a, To...
4e5795cef2987eb1125275afac05f981d4af757a10c9001c630445c0a235f10b
apache/couchdb-rexi
rexi_server_sup.erl
Copyright 2010 Cloudant % 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 distributed under the Lice...
null
https://raw.githubusercontent.com/apache/couchdb-rexi/a327b7dbeb2b0050f7ca9072047bf8ef2d282833/src/rexi_server_sup.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitation...
Copyright 2010 Cloudant Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(rexi_server_sup). -behaviour(supervisor). -export([init/1]). -export([start_link/1]). start_link(Name) -> supervi...
70e8cb50c564fe18862274a39bd8993a13833145147b1deb4377f1e179bf3daf
janestreet/email_message
email_lexer_state.mli
open Core module State : sig type t = [ `Header (** Initial state, parsing headers *) | `Content (** Parsing the body of the message. The details are in the body state. *) | `Expected_eof (** The message should end here. If it doesn't, it's an error *) ] val initial : [ `Header ] end module Conte...
null
https://raw.githubusercontent.com/janestreet/email_message/c88d38b850fce23bb5eb4f772211a4368324b1f7/src/email_lexer_state.mli
ocaml
* Initial state, parsing headers * Parsing the body of the message. The details are in the body state. * The message should end here. If it doesn't, it's an error
open Core module State : sig type t = ] val initial : [ `Header ] end module Content : sig type t = | Multipart of string list | Octet_stream val default : t end type t = { mutable state : State.t ; buf : Email_grammar.token Queue.t } val create : unit -> t module Result : sig type t ...
e96da48af6aebf76b08e3b3af7dabf7a185e27d1a22e8ad3a63bc17a7b3f472e
Soonad/Formality-Haskell
SimplerCore.hs
module SimplerCore where type Name = String data Term = Var Int | Typ | Val Int | Num | Lam Name Term Term | App Term Term | All Name Term Term | Mu Name Term | Any -- Type of any term | Rec Int | Slf Name Term deriving (Eq, Show, Ord) hasFreeVar :: Term -> Int -> Bool hasFreeVar term n = cas...
null
https://raw.githubusercontent.com/Soonad/Formality-Haskell/c2aebe3daeb1031399fd33986729722906520e89/src/SimplerCore.hs
haskell
Type of any term App f a -> contractibleSubst f n || contractibleSubst a n then `Mu "X" T` is normalized no matter how many times we unroll it. Examples of evaluation
module SimplerCore where type Name = String data Term = Var Int | Typ | Val Int | Num | Lam Name Term Term | App Term Term | All Name Term Term | Mu Name Term | Rec Int | Slf Name Term deriving (Eq, Show, Ord) hasFreeVar :: Term -> Int -> Bool hasFreeVar term n = case term of Var i -> ...
5102f4e17989af158dc29c5215d8bc46ec9f40a64f9e1cc85ffefe618df8cb8a
pascal-knodel/haskell-craft
E'3'19.hs
-- -- -- ----------------- Exercise 3.19 . ----------------- -- -- -- module E'3'19 where romanDigit :: Char -> String romanDigit aChar | '1' == aChar = "I" | '2' == aChar = "II" | '3' == aChar = "III" | '4' == aChar = "IV" | '5' == aChar = "V" | '6' == aChar = "VI" | '7' == aChar = "VII" |...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/_/links/E'3'19.hs
haskell
--------------- ---------------
Exercise 3.19 . module E'3'19 where romanDigit :: Char -> String romanDigit aChar | '1' == aChar = "I" | '2' == aChar = "II" | '3' == aChar = "III" | '4' == aChar = "IV" | '5' == aChar = "V" | '6' == aChar = "VI" | '7' == aChar = "VII" | '8' == aChar = "VIII" | '9' == aChar = "IX" | ...
07e0c8bcc40bef0f47e24bdd72b3af9822760a0ebb4e77dfb846027591c81bba
amitnh/Erlang-Final-Batman
moveSimulator.erl
%%%------------------------------------------------------------------- @author amit and kapelnik ( C ) 2020 , < COMPANY > %%% @doc %%% %%% @end Created : 01 . Aug 2020 12:36 PM %%%------------------------------------------------------------------- -module(moveSimulator). -author("amit and kapelnik"). -behaviour...
null
https://raw.githubusercontent.com/amitnh/Erlang-Final-Batman/3d62d266f4528c7ff94ca867e38f1c375bb63d62/src/moveSimulator.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API gen_server callbacks how many time per second to update the ETS's range of the random velocity of the node in meter / milisec ======================================...
@author amit and kapelnik ( C ) 2020 , < COMPANY > Created : 01 . Aug 2020 12:36 PM -module(moveSimulator). -author("amit and kapelnik"). -behaviour(gen_server). -export([start_link/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, getPidsInCircle/5, code_change/3, castPlease/1...
a84764033d9ea65dc0bfb5705fdbdccb8a2d64b7958f195f5ac521fa3c7d67ac
processone/xmpp
xep0045.erl
Created automatically by XML generator ( fxml_gen.erl ) %% Source: xmpp_codec.spec -module(xep0045). -compile(export_all). do_decode(<<"unique">>, <<"#unique">>, El, Opts) -> decode_muc_unique(<<"#unique">>, Opts, El); do_decode(<<"x">>, <<"">>, ...
null
https://raw.githubusercontent.com/processone/xmpp/88c43c3cf5843a8a0f76eac390980a3a39c972dd/src/xep0045.erl
erlang
Source: xmpp_codec.spec
Created automatically by XML generator ( fxml_gen.erl ) -module(xep0045). -compile(export_all). do_decode(<<"unique">>, <<"#unique">>, El, Opts) -> decode_muc_unique(<<"#unique">>, Opts, El); do_decode(<<"x">>, <<"">>, El, Opts) -> d...
76197eb4ac16bc34b3ded069ab228c11d2b9b0c8bf2857b4762974af0d794b25
tezos/tezos-mirror
test_conflict_handler.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/b7f14148a61a8afec9bdb3c16de8f197ee6b8cff/src/proto_alpha/lib_plugin/test/test_conflict_handler.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
443615c6339afd77730c04205263f6b1078efccccbe1642e051b1b9c353095dd
chrisdone/prana
Const.hs
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NoImplicitPrelude # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE Trustworthy # ----------------------------------------------------------------------------- -- | -- Module : Data.Functor.Const Copyright : ...
null
https://raw.githubusercontent.com/chrisdone/prana/f2e45538937d326aff562b6d49296eaedd015662/prana-boot/packages/base-4.11.1.0/Data/Functor/Const.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Functor.Const License : BSD-style (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable The 'Const' functor. | The 'Const' functor. | This instance w...
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE NoImplicitPrelude # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE Trustworthy # Copyright : and 2005 @since 4.9.0.0 module Data.Functor.Const (Const(..)) where import Data.Bits (Bits, FiniteBits) import D...
1d93b2e257004ea4ffdcaa29327814c24bcac522b5ffc12d80eec69dcd58db01
racket/compatibility
trace.rkt
#lang racket/base (require racket/trace) (provide (all-from-out racket/trace))
null
https://raw.githubusercontent.com/racket/compatibility/492030dac6f095045ce8a13dca75204dd5f34e32/compatibility-lib/mzlib/trace.rkt
racket
#lang racket/base (require racket/trace) (provide (all-from-out racket/trace))
f67efac4e4c2d68ee56726007db3193c0e6827828edd271b8382964365d5742f
jacekschae/learn-reitit-course-files
project.clj
(defproject cheffy "1.0.0" :description "Cheffy REST API" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.10.1"] [ring "1.8.1"] [integrant "0.8.0"] [environ "1.2.0"] [metosin/reitit "0.5.5"] [seancorfie...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/complete/project.clj
clojure
(defproject cheffy "1.0.0" :description "Cheffy REST API" :url "" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.10.1"] [ring "1.8.1"] [integrant "0.8.0"] [environ "1.2.0"] [metosin/reitit "0.5.5"] [seancorfie...
920eb55c89409e0718fad60ceb18598874077308fae009df2b7283360f2abf75
clojurebook/ClojureProgramming
beanstalk.clj
(ns com.clojurebook.url-shortener.beanstalk (:use [compojure.core :only (HEAD defroutes)]) (:require [com.clojurebook.url-shortener :as shortener] [compojure.core :as compojure])) (compojure/defroutes app This HEAD route is here because Amazon 's Elastic Beanstalk determines if ; your application is u...
null
https://raw.githubusercontent.com/clojurebook/ClojureProgramming/bcc7c58862982a5793e22788fc11a9ed7ffc548f/ch16-web-leiningen/src/com/clojurebook/url_shortener/beanstalk.clj
clojure
your application is up by whether it responds successfully to a HEAD request at /
(ns com.clojurebook.url-shortener.beanstalk (:use [compojure.core :only (HEAD defroutes)]) (:require [com.clojurebook.url-shortener :as shortener] [compojure.core :as compojure])) (compojure/defroutes app This HEAD route is here because Amazon 's Elastic Beanstalk determines if (compojure/HEAD "/" [] ...
44cb7e5154e0aa2f3254c7f511e306014af661212dbf087499b51915c85c5809
runtimeverification/haskell-backend
MockMetadataTools.hs
module Test.Kore.IndexedModule.MockMetadataTools ( makeMetadataTools, constructorTotalAttributes, constructorAttributes, defaultAttributes, functionAttributes, totalAttributes, injectiveAttributes, sortInjectionAttributes, ) where import Data.Map.Strict qualified as Map import GHC.Gener...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/93a705112305a2d7e084e98dca93ec33e0d661d5/kore/test/Test/Kore/IndexedModule/MockMetadataTools.hs
haskell
TODO(Vladimir): fix the inconsistency that both 'subsorts' and 'isSubsortOf' only work with direct (non-transitive) relationships. For now, we can manually add the relationships for tests.
module Test.Kore.IndexedModule.MockMetadataTools ( makeMetadataTools, constructorTotalAttributes, constructorAttributes, defaultAttributes, functionAttributes, totalAttributes, injectiveAttributes, sortInjectionAttributes, ) where import Data.Map.Strict qualified as Map import GHC.Gener...
8ff5838b2726afddab8c63a83c14d77cf39e14cefa784e60e54aad417cf7f7ec
phoe-trash/gateway
package.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; GATEWAY " phoe " Herda 2016 sql / package.lisp (uiop:define-package #:gateway/sql (:use #:common-lisp #:alexandria #:cl-yesql #:phoe-toolbox #:gateway/protocol #:gateway/utils #...
null
https://raw.githubusercontent.com/phoe-trash/gateway/a8d579ccbafcaee8678caf59d365ec2eab0b1a7e/sql/package.lisp
lisp
GATEWAY
" phoe " Herda 2016 sql / package.lisp (uiop:define-package #:gateway/sql (:use #:common-lisp #:alexandria #:cl-yesql #:phoe-toolbox #:gateway/protocol #:gateway/utils #:gateway/config) (:export #:with-db #:with-test-db))
e9e603835ea0fb855437a3c607f10114882a3dacc43135b80ba8effa8fc56e80
jserot/lascar
fsm_ppxs.ml
(**********************************************************************) (* *) LASCAr (* *) Copyright ( c ) 2017 - prese...
null
https://raw.githubusercontent.com/jserot/lascar/79bd11cd0d47545bccfc3a3571f37af065915c83/src/lib/fsm_ppxs.ml
ocaml
******************************************************************** This source code is licensed under the lic...
LASCAr Copyright ( c ) 2017 - present , . All rights reserved . open Ppxlib open Lascar let string_of_token t = let open Genlex in match t with | Int n -> "Int<" ^ string_of_int n ^ ">" | Float n -> "Float<" ^ string_of_float n ^ ">" | ...
96bec5a14231fdb20adbec1152035b254765c3f83a736a04a6a1bdfeb4dd9c3c
RunOrg/RunOrg
treeMapView.mli
(* © 2014 RunOrg *) type ('key, 'id, 'value) t type ('id,'value) node = < time : Time.t ; id : 'id ; count : int ; value : 'value ; subtree : ('id, 'value) node list > val make : Projection.t -> string -> int -> (module Fmt.FMT with type t = 'key) -> (module Fmt.FMT with type t = 'id) -> ...
null
https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/cqrsLib/treeMapView.mli
ocaml
© 2014 RunOrg
type ('key, 'id, 'value) t type ('id,'value) node = < time : Time.t ; id : 'id ; count : int ; value : 'value ; subtree : ('id, 'value) node list > val make : Projection.t -> string -> int -> (module Fmt.FMT with type t = 'key) -> (module Fmt.FMT with type t = 'id) -> (module Fmt.FMT wit...
55aea07048d41ce7d8c80ac2cd0ceb7bd01149449b09ac9841209441b065a802
berberman/arch-hs
Local.hs
| Copyright : ( c ) 2020 - 2021 berberman SPDX - License - Identifier : MIT Maintainer : < > -- Stability: experimental -- Portability: portable This module maintains names of packages which are need special treatments during dependency resolving or PKGBUILD generating . module Distribution.ArchHs.Local ( i...
null
https://raw.githubusercontent.com/berberman/arch-hs/693bb9eb751285e4e40dfa7c76104e3f16e4702f/src/Distribution/ArchHs/Local.hs
haskell
Stability: experimental Portability: portable | Packages should be dropped in dependency resolving. a build-tools of "zip-archive", which is not haskell package
| Copyright : ( c ) 2020 - 2021 berberman SPDX - License - Identifier : MIT Maintainer : < > This module maintains names of packages which are need special treatments during dependency resolving or PKGBUILD generating . module Distribution.ArchHs.Local ( ignoreList, ghcLibList, ) where import Distrib...
6adf93fb449711448536cc9cef058b32df48003f962b88f4bfb82252a5fab686
Javran/advent-of-code
TestAll.hs
module Javran.AdventOfCode.Cli.TestAll ( testAllCommand, ) where import Filesystem.Path.CurrentOS import Javran.AdventOfCode.Infra import System.Environment import System.Exit import Turtle.Prelude testAllCommand :: SubCmdContext -> IO () testAllCommand _ = do projectHome <- getEnv "PROJECT_HOME" cd (decodeStri...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Cli/TestAll.hs
haskell
module Javran.AdventOfCode.Cli.TestAll ( testAllCommand, ) where import Filesystem.Path.CurrentOS import Javran.AdventOfCode.Infra import System.Environment import System.Exit import Turtle.Prelude testAllCommand :: SubCmdContext -> IO () testAllCommand _ = do projectHome <- getEnv "PROJECT_HOME" cd (decodeStri...
57030f9561e7925e7aa4fae937c582175b0d25a8ec78a026b01557da6a99db3f
janegca/htdp2e
Exercise-437-triangulation.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 Exercise-437-triangulation) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t c...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/05-GenerativeRecursion/Exercise-437-triangulation.rkt
racket
about the language level of this file in a form that our tools can easily process. Check that the following system of equations: - 3y - 8z = -19 has the same solution as the one labeled with (). Again do so by hand and examples: Equation -> [List-of Number] extracts the left-hand side from a row in a m...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-437-triangulation) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) Exercise 437 . 2x + 3y + 2z =...
85bd7e1f9b26812c544b1924ad3a1d51c7baf18906938ed19f71c0e8207b8746
RunOrg/RunOrg
auth.mli
(* © 2014 RunOrg *) open Std val auth_persona : String.Url.t -> string -> (# O.ctx, [ `OK of [`Person] Token.I.id * Queries.short * Cqrs.Clock.t | `BadAudience of String.Url.t | `InvalidAssertion ]) Run.t
null
https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/personLib/auth.mli
ocaml
© 2014 RunOrg
open Std val auth_persona : String.Url.t -> string -> (# O.ctx, [ `OK of [`Person] Token.I.id * Queries.short * Cqrs.Clock.t | `BadAudience of String.Url.t | `InvalidAssertion ]) Run.t
4e78844cf0d4849f8dc1b4099e1324ec5fef8698a3c6c2d8d96af04ce105f755
MastodonC/kixi.hecuba
parser.clj
(ns kixi.hecuba.api.parser (:require [clojure.string :as string] [clojure.java.io :as io] [clojure.data.csv :as csv] [clojure.tools.logging :as log] [cheshire.core :as json])) (defn attribute-type [attr] (if (keyword? attr) :attribute (:type attr))) (defn ex...
null
https://raw.githubusercontent.com/MastodonC/kixi.hecuba/467400bbe670e74420a2711f7d49e869ab2b3e21/src/clj/kixi/hecuba/api/parser.clj
clojure
(ns kixi.hecuba.api.parser (:require [clojure.string :as string] [clojure.java.io :as io] [clojure.data.csv :as csv] [clojure.tools.logging :as log] [cheshire.core :as json])) (defn attribute-type [attr] (if (keyword? attr) :attribute (:type attr))) (defn ex...
c545615b62250f41e61cb02454ceb5dad8ad6ccfff108272e1780b7f1a78dd9d
Haskell-Things/ImplicitCAD
StateC.hs
{- ORMOLU_DISABLE -} Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright 2016 , ( ) -- Released under the GNU AGPLV3+, see LICENSE module Graphics.Implicit.ExtOpenScad.Util.StateC (addMessage, getVarLookup, modifyVarLookup, lookupVar, pushVals, getVals, putVals, withPathShiftedBy, getPath, getRelPath, errorC...
null
https://raw.githubusercontent.com/Haskell-Things/ImplicitCAD/0b3a4544b72074d3df77e8dd3502d05f5db75a21/Graphics/Implicit/ExtOpenScad/Util/StateC.hs
haskell
ORMOLU_DISABLE Released under the GNU AGPLV3+, see LICENSE | Perform a variable lookup FIXME: generate a warning when we look up a variable that is not present. | Pure the path stored in the state. Add a single message to the list of messages being returned
Implicit CAD . Copyright ( C ) 2011 , ( ) Copyright 2016 , ( ) module Graphics.Implicit.ExtOpenScad.Util.StateC (addMessage, getVarLookup, modifyVarLookup, lookupVar, pushVals, getVals, putVals, withPathShiftedBy, getPath, getRelPath, errorC, warnC, scadOptions) where import Prelude(FilePath, Maybe, ($), (<...
1695c1da62a3d5e888282b65f71f51b6706e5a6cb3f90ce9ab647104f9a69bbe
jarvinet/scheme
cont.scm
(define a (call-with-current-continuation (lambda (exit) (for-each (lambda (x) (if (< x 0) (exit x))) '(54 0 37 -3 245 19)) #t))) ;(define list-length ; (lambda (obj) ; (call-with-current-continuation ; (lambda (return) ; (letrec ((r ; (lambda (obj) ; (cond ((null? ...
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/bin/test/cont.scm
scheme
(define list-length (lambda (obj) (call-with-current-continuation (lambda (return) (letrec ((r (lambda (obj) (cond ((null? obj) 0) ((pair? obj) (else (return #f)))))) (r obj))))))
(define a (call-with-current-continuation (lambda (exit) (for-each (lambda (x) (if (< x 0) (exit x))) '(54 0 37 -3 245 19)) #t))) ( + ( r ( cdr obj ) ) 1 ) ) (define list-length (lambda (obj) (call-with-current-continuation (lambda (return) (define (r obj) (c...
8d475bda5e904b9113b56febb52a0ccd7265d793d6969f0f4fb4c992cd64b945
ashinkarov/heh
test_env.ml
open OUnit open Ast open Env let test_env () = let e = env_new () in let e = env_add e "x" "p1" in assert_equal ~msg:"environment lookup of `x'" (env_lookup e "x") "p1"; let e = env_add e "x" "p2" in let try_lookup () = env_lookup e "y" in assert_raises (EnvFailure "l...
null
https://raw.githubusercontent.com/ashinkarov/heh/42866803b2ffacdc42b8f06203bf4e5bd18e03b0/tests/test_env.ml
ocaml
open OUnit open Ast open Env let test_env () = let e = env_new () in let e = env_add e "x" "p1" in assert_equal ~msg:"environment lookup of `x'" (env_lookup e "x") "p1"; let e = env_add e "x" "p2" in let try_lookup () = env_lookup e "y" in assert_raises (EnvFailure "l...
ef1f6e4e62da630be4434fad2060ef580697472154e096b83ccf2292fc2f0dbc
epiccastle/bbssh
core.clj
(ns bb-test.core (:require [babashka.pods :as pods] [babashka.process :as process] [babashka.wait :as wait] [clojure.string :as string] [clojure.test :as test] [bb-test.docker :as docker] ) (:import [java.lang.ref WeakReference])) (def class-p...
null
https://raw.githubusercontent.com/epiccastle/bbssh/497111a18610641566d764401d2ee6e83523c96e/test/bb_test/core.clj
clojure
run pod process from native-image to test
(ns bb-test.core (:require [babashka.pods :as pods] [babashka.process :as process] [babashka.wait :as wait] [clojure.string :as string] [clojure.test :as test] [bb-test.docker :as docker] ) (:import [java.lang.ref WeakReference])) (def class-p...
b3f4b83364ec947bd2623eb7e8607c3e52f54a0cb7a083e09bc43ef4f8810885
unison-code/uni-instr-sel
InstructionSynthesizer.hs
| Copyright : Copyright ( c ) 2012 - 2017 , < > License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <> License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > Main authors: Gabriel Hjort ...
null
https://raw.githubusercontent.com/unison-code/uni-instr-sel/2edb2f3399ea43e75f33706261bd6b93bedc6762/hlib/instr-sel/Language/InstrSel/TargetMachines/Generators/InstructionSynthesizer.hs
haskell
----------- Functions ----------- | From a given target machine, constructs a new target machine that contains synthesized branch instructions that can jump to both the true and the false branch. These are synthesized using the conditional and unconditional branch instructions already in the target machine. This a...
| Copyright : Copyright ( c ) 2012 - 2017 , < > License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2012-2017, Gabriel Hjort Blindell <> License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > Main authors: Gabriel Hjort ...
12997149e4dce75636d82e01b2abfc8a7a9b1b92ea56ebfa67efe8ce000ec049
zk/nsfw
css.cljc
(ns nsfw.devbus.css (:require [nsfw.css :as ncss])) (def spec {:sizes {:xs 5 :sm 10 :md 20 :lg 50 :xl 100} :fonts {:header "'Helvetica Neue', Arial, sans-serif" :copy "'Helvetica Neue', Arial, sans-serif" :impact "'Helvetica Neue', Arial, sans-serif" ...
null
https://raw.githubusercontent.com/zk/nsfw/ea07ba20cc5453b34a56b34c9d8738bf9bf8e92f/src/cljc/nsfw/devbus/css.cljc
clojure
(ns nsfw.devbus.css (:require [nsfw.css :as ncss])) (def spec {:sizes {:xs 5 :sm 10 :md 20 :lg 50 :xl 100} :fonts {:header "'Helvetica Neue', Arial, sans-serif" :copy "'Helvetica Neue', Arial, sans-serif" :impact "'Helvetica Neue', Arial, sans-serif" ...
86762ca431dd0366306577426e83d534adc76f83e3248dc3f5412f5574204513
clojurecup2014/parade-route
api.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/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/test_clojure/api.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 clojure.test-clojure.api (:require [clojure.test.generative :refer (defspec)] [clojure.test-clojure.generators :as cgen]) (:import clojure.lang.IFn clojure.lang.Var)) (set! *warn-on-reflection* true) (defn roundtrip "Print an object and r...
df5b86b1e318b798f0003daba8d5321ded6236f8dcfe40d23721e54e44c00782
yuanqing/code-problems
odd_occurring_element.ml
let odd_occurring_element (xs:'a list) : 'a = let ht = Hashtbl.create (List.length xs) in let rec aux xs = match xs with | [] -> Unpack the odd - occurring element from ` ht ` . let fn elem _ _ = [elem] in begin match Hashtbl.fold fn ht [] with | x::_ -> x | _ -> fail...
null
https://raw.githubusercontent.com/yuanqing/code-problems/30eb34ad616146306cddc50594a47deff111f341/src/odd_occurring_element/odd_occurring_element.ml
ocaml
Element not encountered before, or occurred an even number of times so far. Element encountered before an odd number of times, so remove it from `ht`.
let odd_occurring_element (xs:'a list) : 'a = let ht = Hashtbl.create (List.length xs) in let rec aux xs = match xs with | [] -> Unpack the odd - occurring element from ` ht ` . let fn elem _ _ = [elem] in begin match Hashtbl.fold fn ht [] with | x::_ -> x | _ -> fail...
d6ddd7736fd41aaaa9d13bdca00465a8b75f3ef4462eb780790e0ee632c92e7e
mclumd/Meta-AQUA
learner.lisp
-*- Mode : LISP ; Syntax : Common - lisp ; Package : Meta - aqua ; Base : 10 -*- (in-package :metaaqua) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; ;;;; The Meta-AQUA Introspective Multistrategy Learning System ;;;; Version 6 ;;;; Copyright ( C ) 1...
null
https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/learner.lisp
lisp
Syntax : Common - lisp ; Package : Meta - aqua ; Base : 10 -*- The Meta-AQUA Introspective Multistrategy Learning System Version 6 File: learner.lisp ******************************************************* This program is free software; you can redistribute it and/...
(in-package :metaaqua) Copyright ( C ) 1996 ( ) under the terms of the GNU General Public License as published by the Free You should have received a copy of the GNU General Public License along Mass Ave , Cambridge , , USA . In emacs type C - h C - w to view license . ...
cf2d0fbaaafe9a97c596d09ca6feeacabb3a45a6cecb01f3f301a8662ca923b7
tschady/advent-of-code
d10_test.clj
(ns aoc.2016.d10-test (:require [aoc.2016.d10 :as sut] [clojure.test :refer :all])) (deftest challenge (is (= "bot 56" (sut/part-1 sut/input))) (is (= 7847 (sut/part-2 sut/input))))
null
https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/test/aoc/2016/d10_test.clj
clojure
(ns aoc.2016.d10-test (:require [aoc.2016.d10 :as sut] [clojure.test :refer :all])) (deftest challenge (is (= "bot 56" (sut/part-1 sut/input))) (is (= 7847 (sut/part-2 sut/input))))
d921460bed1f5d67bed8f90da3b3ace3fced0dd4749f1fd68e0cb998412dab17
sampou-org/pfad
Code28_Tupling.hs
# OPTIONS_GHC -cpp # module Code28_Tupling where (□) :: [a] -> [a] -> [a] xs □ ys = mix xs (ys, reverse ys) mix :: [a] -> ([a],[a]) -> [a] mix [] (ys,_) = ys mix (x:xs) (ys,sy) = ys ++ [x] ++ mix xs (sy,ys) boxall :: [[a]] -> [a] boxall = foldr (□) [] op ...
null
https://raw.githubusercontent.com/sampou-org/pfad/3c2e0847bea9eac80672e1fbccb86ca5a6b09415/Code/Code28_Tupling.hs
haskell
# OPTIONS_GHC -cpp # module Code28_Tupling where (□) :: [a] -> [a] -> [a] xs □ ys = mix xs (ys, reverse ys) mix :: [a] -> ([a],[a]) -> [a] mix [] (ys,_) = ys mix (x:xs) (ys,sy) = ys ++ [x] ++ mix xs (sy,ys) boxall :: [[a]] -> [a] boxall = foldr (□) [] op ...
48771e952fa8ff660db1581bf329945fa50afd33f863a795bdc05dc968858d4c
gfngfn/otfed
decodeTtfMaxp.ml
open Basic open DecodeBasic let d_maxp = let open DecodeOperation in d_uint32 >>= fun version -> if version = !%% 0x00005000L then err @@ Error.TtfContainsCffMaxpTable else if version = !%% 0x00010000L then d_uint16 >>= fun num_glyphs -> d_uint16 >>= fun max_points -> d_uint16 >>= fun max_con...
null
https://raw.githubusercontent.com/gfngfn/otfed/cdda496214b971393fa49cac9916f99858c75b41/src/decodeTtfMaxp.ml
ocaml
open Basic open DecodeBasic let d_maxp = let open DecodeOperation in d_uint32 >>= fun version -> if version = !%% 0x00005000L then err @@ Error.TtfContainsCffMaxpTable else if version = !%% 0x00010000L then d_uint16 >>= fun num_glyphs -> d_uint16 >>= fun max_points -> d_uint16 >>= fun max_con...
20c59d12d49fccce28d55f8ff16873c478b37b6c3bbdf881fdbbaded9dacb76a
reifyhealth/src-munch
parse.cljs
(ns reifyhealth.src-munch.gallery.colors.parse "Parses color data from our scss artifacts to provide it for display in the gallery." (:require [clojure.string :as str] [goog.object :as go] [reifyhealth.src-munch.util :refer [slurp spit delete-if-exists format]])) (require '[cljs.pprint :r...
null
https://raw.githubusercontent.com/reifyhealth/src-munch/aae08f87aded89750ea8c53cc92754d16dd906ac/src/reifyhealth/src_munch/gallery/colors/parse.cljs
clojure
--------- Node based helpers --------- --------- Pipeline functions (using accumulator to capture state) --------- Use the scss-compiler directly
(ns reifyhealth.src-munch.gallery.colors.parse "Parses color data from our scss artifacts to provide it for display in the gallery." (:require [clojure.string :as str] [goog.object :as go] [reifyhealth.src-munch.util :refer [slurp spit delete-if-exists format]])) (require '[cljs.pprint :r...
af5f148ceeda4f2260268e0c4d340a812b1850d62341bb952c38e054e17ce88c
odo/revolver
revolver.erl
-module (revolver). -behaviour (gen_server). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([balance/2, balance/3, map/2, start_link/3, pid/1, release/2, connect/1, transaction/2, transaction/3]). -define(DEFAULTMINALIVERATIO, 1.0). -define(DEFAULRECONNECTDELAY, ...
null
https://raw.githubusercontent.com/odo/revolver/f9378f382d76c0af20081e558af882efa1c3f66d/src/revolver.erl
erlang
ms revolver is disconnected under high load, the pid might have died in the meantime
-module (revolver). -behaviour (gen_server). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([balance/2, balance/3, map/2, start_link/3, pid/1, release/2, connect/1, transaction/2, transaction/3]). -define(DEFAULTMINALIVERATIO, 1.0). -define(DEFAULTCONNECTATSTART,...
3b0d346a0fbe5d6bf5315b1048779d3a0f6c951cbdb12c9dc68c465ef468dfbb
samsergey/formica
type-checking.rkt
#lang racket/base ;;______________________________________________________________ ;; ______ ;; ( // _____ ____ . __ __ ;; ~//~ ((_)// // / / // ((_ ((_/_ ;; (_// ;;.............................................................. ;; Provides con...
null
https://raw.githubusercontent.com/samsergey/formica/b4410b4b6da63ecb15b4c25080951a7ba4d90d2c/private/types/type-checking.rkt
racket
______________________________________________________________ ______ ( // _____ ____ . __ __ ~//~ ((_)// // / / // ((_ ((_/_ (_// .............................................................. Provides contract based type system. =======...
#lang racket/base (require racket/contract (for-syntax racket/base)) (provide is check-result check-argument check-type) (define-for-syntax (parse-infix-contract stx) (syntax-case stx (.->.) [(x ... .->. y) #`(.->. #,@(parse-infix-contract #'(x ...)) #,(parse-infix-contract #'y))] [(x y ...) #`(...
c9de36ad017ce6422748bf011f66f1a8d0fd1852845c2a50993253d406d48575
ocaml-sf/learn-ocaml-corpus
correct_no_path_compression.ml
(* This code does no path compression, but does perform balancing based on ranks. So, its complexity should be O(log n). *) let make () : elem = ref (Root 0) let rec find (x : elem) : elem = match !x with | Root _ -> x | Link y -> let z = find y in (* x := Link z; *) z let eq (x : ...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/unionfind/wrong/correct_no_path_compression.ml
ocaml
This code does no path compression, but does perform balancing based on ranks. So, its complexity should be O(log n). x := Link z;
let make () : elem = ref (Root 0) let rec find (x : elem) : elem = match !x with | Root _ -> x | Link y -> let z = find y in z let eq (x : elem) (y : elem) : bool = find x == find y let link (x : elem) (y : elem) : unit = if x != y then match !x, !y with | Root rx, Root ry -> ...
1cebd2766c61ecbe19d591e1c25a30ec9d9a8fd9388c348ba3f599cb796a8c35
ocaml/dune
dune_rpc_diagnostics.ml
open Stdune open Fiber.O module Client = Dune_rpc_client.Client open Dune_rpc_e2e module Dune_rpc = Dune_rpc_private module Sub = Dune_rpc.Sub module Diagnostic = Dune_rpc.Diagnostic module Request = Dune_rpc.Public.Request module Response = Dune_rpc.Response let%expect_test "turn on and shutdown" = let test () = ...
null
https://raw.githubusercontent.com/ocaml/dune/20180d12149343d073cdea5860d01dc181702e6a/test/expect-tests/dune_rpc_e2e/dune_rpc_diagnostics.ml
ocaml
function to remove remove pp tags and hide junk from paths First we test for regular errors First we test for regular errors First we test for regular errors First we test for regular errors
open Stdune open Fiber.O module Client = Dune_rpc_client.Client open Dune_rpc_e2e module Dune_rpc = Dune_rpc_private module Sub = Dune_rpc.Sub module Diagnostic = Dune_rpc.Diagnostic module Request = Dune_rpc.Public.Request module Response = Dune_rpc.Response let%expect_test "turn on and shutdown" = let test () = ...
8f709a6f606733ef72760c0b36c5d561a4f7bcec6f357947577506e342a595bc
suprematic/otplike
e6_pmap.clj
(ns otplike.example.e6-pmap "A naive example of pmap using processes. See question in issue #30." (:require [otplike.process :as process :refer [!]])) (process/proc-defn worker [f parent] (process/receive! [idx v] (try (! parent [(process/self) [idx (f v)]]) (catch Throwable e (! pa...
null
https://raw.githubusercontent.com/suprematic/otplike/bc9d4e82c14053fac8a0ec141eaca897dd2cfe9b/examples/otplike/example/e6_pmap.clj
clojure
(ns otplike.example.e6-pmap "A naive example of pmap using processes. See question in issue #30." (:require [otplike.process :as process :refer [!]])) (process/proc-defn worker [f parent] (process/receive! [idx v] (try (! parent [(process/self) [idx (f v)]]) (catch Throwable e (! pa...
3782b7eba75c3461181fda119ca3dddf34492058d3027da77dea6c2e93c239bd
parenthesin/microservice-boilerplate-malli
db.clj
(ns microservice-boilerplate.schemas.db (:require [malli.util :as mu])) (def wallet [:map [:wallet/id uuid?] [:wallet/btc_amount [:double {:gen/NaN? false :gen/infinite? false}]] [:wallet/usd_amount_at [:double {:gen/NaN? false :gen/infinite? false}]] [:wallet/created_at inst?]]) (def WalletTransactio...
null
https://raw.githubusercontent.com/parenthesin/microservice-boilerplate-malli/b4bd9fa95f3457dfac47b7b64e00e4f14ba7060c/src/microservice_boilerplate/schemas/db.clj
clojure
(ns microservice-boilerplate.schemas.db (:require [malli.util :as mu])) (def wallet [:map [:wallet/id uuid?] [:wallet/btc_amount [:double {:gen/NaN? false :gen/infinite? false}]] [:wallet/usd_amount_at [:double {:gen/NaN? false :gen/infinite? false}]] [:wallet/created_at inst?]]) (def WalletTransactio...
edf118dd4788ca17b2d72fea86ba8d585aead26650c0cf48a3593187ce14ec34
tvirolai/blurhash
util_test.cljc
(ns blurhash.util-test #?(:cljs (:require-macros [blurhash.util :as util])) (:require [clojure.test :refer [deftest testing is]] [blurhash.util :as util])) ; Testing that the functions work as expected by using some inputs from from other BH implementations . (deftest srgb->linear-test (is (= 0.86...
null
https://raw.githubusercontent.com/tvirolai/blurhash/f50748b3944d8d7df34435d8c4024a1ebc3e6646/test/cljc/blurhash/util_test.cljc
clojure
Testing that the functions work as expected by using some inputs
(ns blurhash.util-test #?(:cljs (:require-macros [blurhash.util :as util])) (:require [clojure.test :refer [deftest testing is]] [blurhash.util :as util])) from from other BH implementations . (deftest srgb->linear-test (is (= 0.8631572134541023 (util/srgb->linear 239))) (is (= 0.003035269835488...
9822e73de26b0f2a8f29f13730bfcd8a01736d8f125ce50d25050416d633fecd
ucsd-progsys/nate
text.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/examples_camltk/text.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
a9c63a61b4e343d152996edee450bda81f44150d1d525cb4b0691ead1d3e16f8
hidaris/thinking-dumps
tests.rkt
#lang racket (provide test-list) ;;;;;;;;;;;;;;;; tests ;;;;;;;;;;;;;;;; (define test-list '( ;; simple arithmetic (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "(- 44 33)" 11) ;; nested arithmetic (nested-arith-left "(- (- 44 33) 22)" -11) (n...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap3/3-07/tests.rkt
racket
tests ;;;;;;;;;;;;;;;; simple arithmetic nested arithmetic simple variables simple unbound variables simple conditionals test dynamic typechecking make sure that the test and both arms get evaluated properly. and make sure the other arm doesn't get evaluated. simple let check nested let and shadowing check...
#lang racket (provide test-list) (define test-list '( (positive-const "11" 11) (negative-const "-33" -33) (simple-arith-1 "(- 44 33)" 11) (nested-arith-left "(- (- 44 33) 22)" -11) (nested-arith-right "(- 55 (- 22 11))" 44) (test-var-1 "x" 10) (test-var-2 "(- x 1)" ...
8779148fe50b17be5970179fcbfe16d49418d7401dddcac7d2e9c6e001751d8b
jordwalke/rehp
jstable.mli
Js_of_ocaml library * / * Copyright Pierre Chambart 2012 . * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/js_of_ocaml/jstable.mli
ocaml
Js_of_ocaml library * / * Copyright Pierre Chambart 2012 . * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the ...
e341b450fb3c8f22293dd3866210c74e4004433a2c98284ee2387386c08e0ea7
ocsigen/ocaml-eliom
packed1.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/lib-dynlink-native/packed1.ml
ocaml
************************************************************************ OCaml ...
, LexiFi Copyright 2007 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the let () = Api.reg_mod "Packed1" let bla = Sys.argv.(0) ^ "XXX" let mykey = Sys.argv.(0)
24a1bef3b1b2dcb602701766092ec45afd6250b44fa0233ade832a546814f660
tmattio/js-bindings
vscode_languageclient_type_definition.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 module ProvideTypeDefinitionSignature = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 ...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-languageclient/vscode_languageclient_type_definition.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es5 module ProvideTypeDefinitionSignature = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 ...
b8d72426c14acf33d16f073b5dbdfecf8fab2d1a9d1d32be9a5fa865ea17b6c8
NoRedInk/haskell-libraries
Observability.hs
{-# LANGUAGE GADTs #-} -- | A module dedicated to observability, that is reporting information about -- what the program is doing in production to help us debugging it. -- -- Specifically this module is dedicated to sending information that's already been collected to external monitoring platforms , such as and -- ...
null
https://raw.githubusercontent.com/NoRedInk/haskell-libraries/b1a9bf27ba82c213b5ccee33abdee9b9896fdff5/nri-observability/src/Observability.hs
haskell
# LANGUAGE GADTs # | A module dedicated to observability, that is reporting information about what the program is doing in production to help us debugging it. Specifically this module is dedicated to sending information that's already Honeycomb. To learn more about how this information is collected check out the ...
been collected to external monitoring platforms , such as and ` Platform . Internal ` module in the ` nri - prelude ` package . That module also defines and documents the ` TracingSpan ` type , which is the data structure we use to module Observability ( report, Handler, Settings (..), Reporter (....
3513c364281e144a30be76f1c85576ee3adeeb326d2e00598dfbfecca37c1a9e
c-cube/indexed-set
test.ml
#!/usr/bin/env ocaml #use "topfind";; #directory "_build";; #load "indexed_set.cma";; #require "ppx_deriving.std";; #require "sequence";; type person = { id: int; age: int; name: string } [@@deriving ord];; module S = IxSet.Make(struct type t = person let compare = compare_person end) let idx_id = S.def_idx_i...
null
https://raw.githubusercontent.com/c-cube/indexed-set/f8471bd546fa9a8e845041963dac38d19e0dbc29/test.ml
ocaml
#!/usr/bin/env ocaml #use "topfind";; #directory "_build";; #load "indexed_set.cma";; #require "ppx_deriving.std";; #require "sequence";; type person = { id: int; age: int; name: string } [@@deriving ord];; module S = IxSet.Make(struct type t = person let compare = compare_person end) let idx_id = S.def_idx_i...
d30ee44c4c17ba85e8effe46ab2d2b5219fbaf3f12d4f1360efa0e63d017b06c
PeterDWhite/Osker
Whence.hs
Copyright ( C ) , 2002 , 2003 Copyright ( c ) OHSU , 2002 , 2003 offset from whence ---------------------------------------------------------------------- offset from whence , i.e. a base for an offset ---------------------------------------------------------------------- -- Local imports data Whence ...
null
https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Posix/Whence.hs
haskell
-------------------------------------------------------------------- -------------------------------------------------------------------- Local imports Base is beginning of file Set position to end of file Base is the current position
Copyright ( C ) , 2002 , 2003 Copyright ( c ) OHSU , 2002 , 2003 offset from whence offset from whence , i.e. a base for an offset data Whence deriving (Eq, Ord, Enum, Show)
5b0c13ef7bc69050734a606f4c0b87b848e2be53c711511c3e9798d0ee80c72f
haskell-openal/OpenAL
Format.hs
{-# OPTIONS_HADDOCK hide #-} -------------------------------------------------------------------------------- -- | -- Module : Sound.OpenAL.AL.Format Copyright : ( c ) 2003 - 2016 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- This is a purel...
null
https://raw.githubusercontent.com/haskell-openal/OpenAL/5131984f172dffc43ca8b482f215d120523fb137/src/Sound/OpenAL/AL/Format.hs
haskell
# OPTIONS_HADDOCK hide # ------------------------------------------------------------------------------ | Module : Sound.OpenAL.AL.Format License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ ----------------------...
Copyright : ( c ) 2003 - 2016 Maintainer : < > This is a purely internal module for ( un-)marshaling Format . module Sound.OpenAL.AL.Format ( Format(..), marshalFormat, unmarshalFormat ) where import Sound.OpenAL.AL.BasicTypes import Sound.OpenAL.Constants " Sound . " for information on de...
878f8d19485d56132431d6758a0b33f7b6c18d4852970956ba8e3f5c4b54f533
input-output-hk/hydra
Main.hs
import Hydra.Prelude hiding (catch) import Data.ByteString (hPut) import Data.Fixed (Centi) import Hydra.Cardano.Api (Lovelace (Lovelace), serialiseToRawBytesHexText) import Hydra.Contract (ScriptInfo (..), scriptInfo) import Hydra.Ledger.Cardano.Evaluate (maxCpu, maxMem, maxTxSize) import Options.Applicative ( Pars...
null
https://raw.githubusercontent.com/input-output-hk/hydra/130301c7f30a39d6d3419fed08864be0e34960e1/hydra-node/exe/tx-cost/Main.hs
haskell
NOTE: Github Actions CI depends on the number of header lines, see .github/workflows/ci.yaml
import Hydra.Prelude hiding (catch) import Data.ByteString (hPut) import Data.Fixed (Centi) import Hydra.Cardano.Api (Lovelace (Lovelace), serialiseToRawBytesHexText) import Hydra.Contract (ScriptInfo (..), scriptInfo) import Hydra.Ledger.Cardano.Evaluate (maxCpu, maxMem, maxTxSize) import Options.Applicative ( Pars...
71ba0751e7439e91e15b239339ecf7098c34d47ca0fff168870aeaafa460a612
spechub/Hets
HTkGenericATP.hs
# LANGUAGE FlexibleContexts # | Module : ./GUI / HTkGenericATP.hs Description : Generic Prover GUI . Copyright : ( c ) , , Uni Bremen 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX Generic GUI for ...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/GUI/HTkGenericATP.hs
haskell
| Utility function to set the time limit of a Config. For values <= 0 a default value is used. | Utility function to set the extra options of a Config. ** Constants ** Defining the view | Colors used by the GUI to indicate the status of a goal. | Proved | Proved, but theory is inconsistent | Disprove...
# LANGUAGE FlexibleContexts # | Module : ./GUI / HTkGenericATP.hs Description : Generic Prover GUI . Copyright : ( c ) , , Uni Bremen 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX Generic GUI for ...
72c14171af7c1e26fe9a339fe6b9b801cdafddd44a6fc818fa31bb44cd28c738
aumouvantsillage/Virgule-CPU
hello.rkt
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. #lang racket (require (except-in hydromel/support zero) "../virgule/asm/assembler.rkt" "../virgule/devices/memory.rkt" "system.mel") ...
null
https://raw.githubusercontent.com/aumouvantsillage/Virgule-CPU/1be168c9740795e6f0bdac23d23dc26250e8a7d3/virgule-demos/hello.rkt
racket
The address of the string Read a character from the string Send the current character Move to the next location in the string Loop
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. #lang racket (require (except-in hydromel/support zero) "../virgule/asm/assembler.rkt" "../virgule/devices/memory.rkt" "system.mel") ...
ab7279fcadb9f28eff0572572abb8ce31e97fcaa8c259dee9b7ff5d9f8bdd366
8c6794b6/guile-tjit
srfi-43.scm
srfi-43.scm -- SRFI 43 Vector library Copyright ( C ) 2014 Free Software Foundation , Inc. ;; ;; 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 3 of the Licens...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/srfi/srfi-43.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either 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 A PARTICULAR PURPOSE. See...
srfi-43.scm -- SRFI 43 Vector library Copyright ( C ) 2014 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA Auth...
a6242df7d1c778e073a6f027446aad85a54c0d5870aa6a2972b9c72dca3af47c
dimitri/pgcharts
dburi.lisp
;;; Parse database connection string ;;; (in-package #:pgcharts.dburi) (eval-when (:compile-toplevel :load-toplevel :execute) (defun getenv-default (name &optional default) "Return the value of the NAME variable as found in the environment, or DEFAULT if that variable isn't set" (or (uiop:getenv name...
null
https://raw.githubusercontent.com/dimitri/pgcharts/9b9549c53cca77039e8aaca18bce939ecb2b6549/src/utils/dburi.lisp
lisp
password looks like '(":" "password") socket directory is unix only, so we can forbid ":" on the parsing Default to environment variables as described in -variables.html Parsing a connection string Validating a connection string make sure to return the valid connection-string
Parse database connection string (in-package #:pgcharts.dburi) (eval-when (:compile-toplevel :load-toplevel :execute) (defun getenv-default (name &optional default) "Return the value of the NAME variable as found in the environment, or DEFAULT if that variable isn't set" (or (uiop:getenv name) defaul...
e98d74e32230a6eceda18ba08f511de8ab609797e91319b26abe8f1696647a39
albertoruiz/easyVision
Parameters.hs
# LANGUAGE TypeSynonymInstances , TemplateHaskell , FlexibleInstances # ----------------------------------------------------------------------------- | Module : Vision . GUI.Parameters Copyright : ( c ) 2006 - 12 License : GPL - style Maintainer : ( aruiz at um dot es ) Stabilit...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/packages/gui/src/Vision/GUI/Parameters.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- | Given an assoc list of names and initial values of some \'global\' application parameters, it creates a window for controlling them and returns a function to get the...
# LANGUAGE TypeSynonymInstances , TemplateHaskell , FlexibleInstances # | Module : Vision . GUI.Parameters Copyright : ( c ) 2006 - 12 License : GPL - style Maintainer : ( aruiz at um dot es ) Stability : provisional A \'global\ ' parameter list with its own control wind...
282c6a8723452c4937f38f726c4fa328d255eb1ba8d6115db1310e81b1f9af08
yrashk/erlang
snmpa_usm.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1999 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/snmp/src/agent/snmpa_usm.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1999 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmpa_usm). -export([ process_in...
51402beb868b47c415429950e426ea378cdf9811f5a30b0b1b6d95793812afc6
PearsonEducation/subpub
sgte_dict.erl
%%%------------------------------------------------------------------- %%% File : sgte_dict Author : < > %%% License : The contents of this file are subject to the Mozilla Public %%% License Version 1.1 (the "License"); you may not use this file %%% except in compliance with the License. You may obtain a co...
null
https://raw.githubusercontent.com/PearsonEducation/subpub/f2275c5da24d8860d206cff81d1ce87ecd956c72/deps/erlang/sgte-0.7.1/src/sgte_dict.erl
erlang
------------------------------------------------------------------- File : sgte_dict License : License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the ...
Author : < > The contents of this file are subject to the Mozilla Public the License at / Software distributed under the License is distributed on an " AS IS " The Initial Developer of the Original Code is S.G. Consulting srl . Portions created by S.G. Consulting s.r.l . are Copyright ( C ) 2007 S.G....
6fdbb8945f94b66ca2050e4dcf7f58a75d5b84bb4e0c0bce3b3958192c30478d
grin-compiler/ghc-wpc-sample-programs
Match.hs
# LANGUAGE NondecreasingIndentation # -- | Pattern matcher used in the reducer for clauses that -- have not been compiled to case trees yet. module Agda.TypeChecking.Patterns.Match where import Prelude hiding (null) import Control.Monad import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Dat...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/TypeChecking/Patterns/Match.hs
haskell
| Pattern matcher used in the reducer for clauses that have not been compiled to case trees yet. it is due to a particular meta variable. @NotBlocked (StuckOn e)@ means blocked by a variable. In this case, no instantiation of meta-variables will make progress. One could imagine DontKnow _ <> No = No, but woul...
# LANGUAGE NondecreasingIndentation # module Agda.TypeChecking.Patterns.Match where import Prelude hiding (null) import Control.Monad import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Data.Traversable (traverse) import Agda.Syntax.Common import Agda.Syntax.Internal import Agda.Syntax.Intern...
7298eafcca587e442ae1eb803cdf45f97e56ba4ee2c091298388d3841fe7f62a
sids/nerchuko
classify.clj
(ns nerchuko.examples.newsgroups.classify (:use nerchuko.examples.newsgroups.helpers) (:use [nerchuko helpers classification]) (:use [clojure.contrib command-line pprint])) (defn -main [& args] (with-command-line (if (seq args) args ["--help"]) "Classify a single file. Prints the scores for each class in t...
null
https://raw.githubusercontent.com/sids/nerchuko/8aa56497dd8e93e868713dd542667a56215522fb/src/nerchuko/examples/newsgroups/classify.clj
clojure
(ns nerchuko.examples.newsgroups.classify (:use nerchuko.examples.newsgroups.helpers) (:use [nerchuko helpers classification]) (:use [clojure.contrib command-line pprint])) (defn -main [& args] (with-command-line (if (seq args) args ["--help"]) "Classify a single file. Prints the scores for each class in t...
f5f96c24b6f7ef74edeab47019ac1e96c61b55dd6a089f6385c7a2ef2ef4fea4
argp/bap
myocamlbuild.ml
open Ocamlbuild_plugin no longer needed for OCaml > = 3.10.2 (** Overview of tags: - [pkg_batteries] to use Batteries as a library, without syntax extensions - [use_batteries] and [use_batteries_r] to use both Batteries and all the non-destructive syntax extensions - [pkg_sexplib.syntax] with [syntax_cam...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/examples/benchmark/myocamlbuild.ml
ocaml
* Overview of tags: - [pkg_batteries] to use Batteries as a library, without syntax extensions - [use_batteries] and [use_batteries_r] to use both Batteries and all the non-destructive syntax extensions - [pkg_sexplib.syntax] with [syntax_camlp4o] or [syntax_camlp4r] for sexplib * {1 OCamlFind} this l...
open Ocamlbuild_plugin no longer needed for OCaml > = 3.10.2 let run_and_read = Ocamlbuild_pack.My_unix.run_and_read let blank_sep_strings = Ocamlbuild_pack.Lexers.blank_sep_strings module OCamlFind = struct let find_packages () = blank_sep_strings & Lexing.from_string & run_and_read "oca...
7b056c68395ba583f078eb005104aa3ec1886d7f656c65f20cb13caef0d707bc
ocaml/ocaml
intext.ml
(* TEST modules = "intextaux.c" *) (* Test for output_value / input_value *) let max_data_depth = 500000 type t = A | B of int | C of float | D of string | E of char | F of t | G of t * t | H of int * t | I of t * float | J let longstring = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ...
null
https://raw.githubusercontent.com/ocaml/ocaml/fd6e6e0c9cf636f69cc90f4590834f77efaa5b95/testsuite/tests/lib-marshal/intext.ml
ocaml
TEST modules = "intextaux.c" Test for output_value / input_value Test bounds checking and the [Marshal.data_size] primitive Test for really big objects Test for really deep data structures Right-leaning Left-leaning Test for objects Test for objects Test for infix pointers
let max_data_depth = 500000 type t = A | B of int | C of float | D of string | E of char | F of t | G of t * t | H of int * t | I of t * float | J let longstring = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" let verylongstring = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv...
6fb6cc1ef29e7ce4ba8fa8016c9953d94ee9b71f8b72aa9e2d509339a540d29a
clearwater-analytics/pdf-transforms
core.clj
(ns pdf-transforms.components.core "Higher level namespace which contains the function for composing blocks on a page into components." (:require [pdf-transforms.components.text :as txt] [pdf-transforms.components.tables :as tbl] [pdf-transforms.common :as cmn])) (defn- blocks->components [...
null
https://raw.githubusercontent.com/clearwater-analytics/pdf-transforms/8f15d9855d4c641bf49045bb3aa303beae06c7fd/src/pdf_transforms/components/core.clj
clojure
(ns pdf-transforms.components.core "Higher level namespace which contains the function for composing blocks on a page into components." (:require [pdf-transforms.components.text :as txt] [pdf-transforms.components.tables :as tbl] [pdf-transforms.common :as cmn])) (defn- blocks->components [...
7e865229694b9a935a85598f1c107d5ae19803a3e469e5d9093b042bb42163f5
2600hz/kazoo
edr_be_amqp.erl
%%%----------------------------------------------------------------------------- ( C ) 2017 , Conversant Ltd @doc Relays EDR messages to via { @link } . @author %%% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/edr/src/backends/edr_be_amqp.erl
erlang
----------------------------------------------------------------------------- @end -----------------------------------------------------------------------------
( C ) 2017 , Conversant Ltd @doc Relays EDR messages to via { @link } . @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(edr_be_amqp). -behaviour(gen_edr_backend). ...
131c1920992fef0137b3025d57c638b4dd8f55e34bb24208e1191d7198aae692
josephwilk/musical-creativity
gradus.clj
(ns musical-creativity.composers.gradus (:require [clojure.math.numeric-tower :as math] [musical-creativity.events :as events] [musical-creativity.util :refer :all] [overtone.music.pitch :as music])) (load-file "data/gradus.clj") (def logging? true) (def major-scale (->> (music/scale-field :C :major)...
null
https://raw.githubusercontent.com/josephwilk/musical-creativity/c2e6aab2a26d69ee2e51f4fad84fa3a71805e6ca/src/musical_creativity/composers/gradus.clj
clojure
(ns musical-creativity.composers.gradus (:require [clojure.math.numeric-tower :as math] [musical-creativity.events :as events] [musical-creativity.util :refer :all] [overtone.music.pitch :as music])) (load-file "data/gradus.clj") (def logging? true) (def major-scale (->> (music/scale-field :C :major)...
c1694f61ac7280c1de296dc855ab8f2643dc7847907fa224d43a719580847660
SnootyMonkey/posthere.io
delete.clj
(ns posthere.integration.delete "Test DELETE API request handling by the POSThere.io service." (:require [midje.sweet :refer :all] [ring.mock.request :refer (request)] [posthere.util.uuid :refer (uuid)] [posthere.app :refer (app)] [posthere.storage :refer (save-reques...
null
https://raw.githubusercontent.com/SnootyMonkey/posthere.io/698b46c917d7f74a5fb06c13beae49ded1ca1705/test/posthere/integration/delete.clj
clojure
Store some requests Verify they are there Delete the requests Verify they are gone
(ns posthere.integration.delete "Test DELETE API request handling by the POSThere.io service." (:require [midje.sweet :refer :all] [ring.mock.request :refer (request)] [posthere.util.uuid :refer (uuid)] [posthere.app :refer (app)] [posthere.storage :refer (save-reques...
65a197bef5e60d0e46f72194a9dc0d7da41a9aa8919f0f2a5fb45dd2a0eb6df9
sharplispers/slitch
netlib-constants.lisp
;; Networking constants, derived from RFCs. (in-package :netlib) ;; Ethernet (defconstant ethtype-arp #x0806) (defconstant ethtype-rarp #x8035) (defconstant ethtype-ip #x0800) (defconstant broadcast-mac #e"FF:FF:FF:FF:FF:FF" "The ethernet broadcast address.") ARP (defconstant arp-operation-request...
null
https://raw.githubusercontent.com/sharplispers/slitch/edd96fde7722ed4ce4678d7041aad69eb0762c9f/src/netlib-constants.lisp
lisp
Networking constants, derived from RFCs. Ethernet IP options: control class IP options: debugging class ICMP TCP
(in-package :netlib) (defconstant ethtype-arp #x0806) (defconstant ethtype-rarp #x8035) (defconstant ethtype-ip #x0800) (defconstant broadcast-mac #e"FF:FF:FF:FF:FF:FF" "The ethernet broadcast address.") ARP (defconstant arp-operation-request 1) (defconstant arp-operation-response 2) IPv4 (def...
57493780c2e08d43888450a3439289b3a6849d86371d33e4e487dda3eba68c9d
synduce/Synduce
exists_equal_elems.ml
* @synduce -NB --no - lifting type two_list = TwoLists of list * list and list = | Elt of int | Cons of int * list (* Invariant: sorted in decreasing order. *) let rec is_sorted = function | TwoLists (x, y) -> is_sorted_l x && is_sorted_l y and is_sorted_l = function | Elt x -> true | Cons (hd, tl) -> a...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/constraints/sortedlist/exists_equal_elems.ml
ocaml
Invariant: sorted in decreasing order. Reference function in quadratic time.
* @synduce -NB --no - lifting type two_list = TwoLists of list * list and list = | Elt of int | Cons of int * list let rec is_sorted = function | TwoLists (x, y) -> is_sorted_l x && is_sorted_l y and is_sorted_l = function | Elt x -> true | Cons (hd, tl) -> aux hd tl and aux prev = function | Elt x -...
710912baeee92d25527d3b06323674f5f80465b67ec472f0ad8eb8d5604aeb7d
paurkedal/ocaml-mediawiki-api
mwapi_parse.ml
Copyright ( C ) 2013 - -2017 Petter A. Urkedal < > * * 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 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-mediawiki-api/6a1c1043a8ad578ea321a314fbe0a12a8d0933cf/lib/mwapi_parse.ml
ocaml
Copyright ( C ) 2013 - -2017 Petter A. Urkedal < > * * 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 3 of the License , or ( at your * option ) any la...
15728d88b9739ea3d135112758fb8cb09c81473300024cb03b40f06079b1589d
let-def/lrgrep
reduction.ml
open Fix.Indexing open Utils open Misc module Make(Redgraph : Sigs.REDGRAPH) : Sigs.REDUCTION with module Info = Redgraph.Info = struct module Info = Redgraph.Info open Info module type DERIVABLE = sig type t val derive : t -> t partial_derivative list val merge : t list -> t val compare : t -...
null
https://raw.githubusercontent.com/let-def/lrgrep/3f7166b1a3f880f26af0e553460673ba136d484d/src/mid/reduction.ml
ocaml
* The derivable object that was compiled * The domain of [continuations], used to speed-up the case where none of the continuations applies.
open Fix.Indexing open Utils open Misc module Make(Redgraph : Sigs.REDGRAPH) : Sigs.REDUCTION with module Info = Redgraph.Info = struct module Info = Redgraph.Info open Info module type DERIVABLE = sig type t val derive : t -> t partial_derivative list val merge : t list -> t val compare : t -...
fa8339076f4ca2f9fb377c598cc226e9374386a7ab73257fc18d4a6a9034a198
informatimago/lisp
csv.lisp
-*- coding : utf-8 -*- ;;;;**************************************************************************** FILE : csv.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; This package reads and writes CSV files. ;;;; < PJB...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/common-lisp/csv/csv.lisp
lisp
**************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION This package reads and writes CSV files. See also: #hsublogo LEGAL This program is free software: you can redistribute it and/or modify (at your op...
-*- coding : utf-8 -*- FILE : csv.lisp USER - INTERFACE : < PJB > < > MODIFICATIONS 2010 - 05 - 20 < PJB > Corrected csv - parse - record . 2005 - 09 - 01 < PJB > Made use of iso6429 . 2004 - 09 - 06 < PJB > Created . AGPL3 Copyright 2004 - 2016 it unde...
7ff7d803eec9a96b45a2aeafc573add273ca58cafccea6517f0c1e3c393b2ebf
heroku/logplex
logplex_api_v3_SUITE.erl
-module(logplex_api_v3_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). all() -> [{group, channels} , {group, drains} , {group, tokens} , {group, channel_logs} , {group, sessions} , {group, healthcheck} ]. groups() -> ...
null
https://raw.githubusercontent.com/heroku/logplex/fc520c44cf4687726d5d51464d3264ddc6abb0ba/test/logplex_api_v3_SUITE.erl
erlang
----------------------------------------------------------------------------- setup functions ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- channels tests -------------------------------------------------...
-module(logplex_api_v3_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). all() -> [{group, channels} , {group, drains} , {group, tokens} , {group, channel_logs} , {group, sessions} , {group, healthcheck} ]. groups() -> ...
6108fea70221967e3fc271c2e12a75c48b38d6413c4b541c76cadfe3afeb3f13
tezos/tezos-mirror
tx_hash.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2023 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/1a825cb1e7d8a4c1e3cdab206d9b45d05b452db9/src/bin_evm_proxy/tx_hash.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2023 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
e2e13fe141efae0c5ffe980df270ab5e20e582e8013e70663a17045552653705
sondresl/AdventOfCode
Day11-lazy.hs
import Data.List.Extra import Data.Bits import Data.Char import Data.Bool import Data.Complex import Data.Map.Strict (Map) import Debug.Trace import qualified Data.Map.Strict as M import Text.ParserCombinators.Parsec -- Parsing the input (comma separated ints) parser :: String -> Memory parser = either (error "Bad par...
null
https://raw.githubusercontent.com/sondresl/AdventOfCode/51525441795417f31b3eb67a690aa5534d1e699b/2019/Haskell/src/Day11-lazy.hs
haskell
Parsing the input (comma separated ints) Intcode computer Paint robot Up Left Right Down
import Data.List.Extra import Data.Bits import Data.Char import Data.Bool import Data.Complex import Data.Map.Strict (Map) import Debug.Trace import qualified Data.Map.Strict as M import Text.ParserCombinators.Parsec parser :: String -> Memory parser = either (error "Bad parse") (M.fromList . zip [0..]) . parse number...
95778f777274bec9650ae4267e398fe63606fd8f4943d6d85d997c76e7b80382
priornix/antizer
reagent.cljs
(ns antizer-examples.reagent (:require [clojure.string :as string] [antizer.reagent :as ant] [antizer-examples.common :as common] ;; each language has to be required seperately ;; in order for the display to be correct [cljsjs.moment] [cljsjs.mom...
null
https://raw.githubusercontent.com/priornix/antizer/bf5ca3344e8604e63c0214e377681434ee1b1597/examples/src/antizer_examples/reagent.cljs
clojure
each language has to be required seperately in order for the display to be correct we need to generate a different key for each react element
(ns antizer-examples.reagent (:require [clojure.string :as string] [antizer.reagent :as ant] [antizer-examples.common :as common] [cljsjs.moment] [cljsjs.moment.locale.es] [cljsjs.moment.locale.de] [cljsjs.moment.locale.ja] [cljsjs.mo...
4edbec75f3b8be8aa24edbda709ad2506ccd70c221f7ed2c3525a5406a608202
bmeurer/ocaml-arm
unix.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/otherlibs/unix/unix.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ Id$ type error = E2BIG | EAC...
b446148a3d4cf5a1f9d8f46ba23e271c790138794b5f0ee562063687ce72372a
fare/xcvb
package.lisp
#+xcvb (module (:description "Unit test package for XCVB" :depends-on ("driver-test"))) (uiop/package:define-package #:xcvb-test (:mix :hu.dwim.stefil :xcvb :fare-utils :uiop :inferior-shell :lisp-invocation :alexandria :xcvb-driver) (:use :closer-common-lisp) (:import-from :xcvb-driver ...
null
https://raw.githubusercontent.com/fare/xcvb/460e27bd4cbd4db5e7ddf5b22c2ee455df445258/t/package.lisp
lisp
#+xcvb (module (:description "Unit test package for XCVB" :depends-on ("driver-test"))) (uiop/package:define-package #:xcvb-test (:mix :hu.dwim.stefil :xcvb :fare-utils :uiop :inferior-shell :lisp-invocation :alexandria :xcvb-driver) (:use :closer-common-lisp) (:import-from :xcvb-driver ...