_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
afc2d5948402f85febafe2f789082b94a7a19024cd3edc7a2f5bd1de8b82c2c6
c-cube/frog-utils
frogmonitor.ml
(* This file is free software, part of frog-utils. See file "license" for more details. *) (** {1 Monitor Events} *) open Frog open Frog_server module M = IPC_message module E = Misc.LwtErr module Fmt = CCFormat let on_message msg: unit = Lwt_log.ign_debug_f "(read message: %s)\n%!" (IPC_message.show msg); beg...
null
https://raw.githubusercontent.com/c-cube/frog-utils/3f68c606a7abe702f9e22a0606080191a2952b18/src/main/frogmonitor.ml
ocaml
This file is free software, part of frog-utils. See file "license" for more details. * {1 Monitor Events} print every message
open Frog open Frog_server module M = IPC_message module E = Misc.LwtErr module Fmt = CCFormat let on_message msg: unit = Lwt_log.ign_debug_f "(read message: %s)\n%!" (IPC_message.show msg); begin match msg with | M.Start_bench n -> Format.printf "@{<Green>start benchmark (%d items)@}@." n; | M.F...
2f7dbefb64ca5ed1bb7e24d9da61d03d9b71b5de2a85c07b85bb1890177218ab
lspitzner/pqueue
Internals.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} module Data.PQueue.Internals ( MinQueue (..), BinomHeap, BinomForest(..), BinomTree(..), Succ(..), Zero(..), empty, null, size, getMin, minView, singleton, insert, union, mapMaybe, mapEither, mapMonotonic, foldrAsc, foldlAsc, foldrD...
null
https://raw.githubusercontent.com/lspitzner/pqueue/192a350b18902904afaf0fae164beb51fbf3cab4/src/Data/PQueue/Internals.hs
haskell
# LANGUAGE BangPatterns # traverseU, # UNPACK # Should we fuse the size calculation with the minimum extraction? and then the longer queue wins. This is equivalent to @comparing toAscList@, except it fuses much more nicely. basics | \(O(1)\). The empty priority queue. | \(O(1)\). Is this the empty priority que...
# LANGUAGE CPP # module Data.PQueue.Internals ( MinQueue (..), BinomHeap, BinomForest(..), BinomTree(..), Succ(..), Zero(..), empty, null, size, getMin, minView, singleton, insert, union, mapMaybe, mapEither, mapMonotonic, foldrAsc, foldlAsc, foldrDesc, insertMinQ, insertMin...
ff70b08cc7f1086094540bdff8419a79bcb3b7838480c661d2c679379cbcfb75
hongchangwu/ocaml-type-classes
show.mli
module type S = sig type t val show : t -> string end val bool : (module S with type t = bool) val char : (module S with type t = char) val float : (module S with type t = float) val int : (module S with type t = int) val string : (module S with type t = string) val option : (module S with type t = 'a) -> (module...
null
https://raw.githubusercontent.com/hongchangwu/ocaml-type-classes/17b11af26008f42a88aec85001a94ba18584ea72/lib/show.mli
ocaml
module type S = sig type t val show : t -> string end val bool : (module S with type t = bool) val char : (module S with type t = char) val float : (module S with type t = float) val int : (module S with type t = int) val string : (module S with type t = string) val option : (module S with type t = 'a) -> (module...
fcf57f7b55236089bd7e4672ea5c8194ff1f09dea83eeda7412493b0e9c85b2b
tonsky/advent-of-code
day18_gui.clj
(ns advent-of-code.year2018.day18-gui (:require [advent-of-code.core :refer [cond+]] [advent-of-code.year2018.day18 :as day18] [clojure.java.io :as io] [clojure.java.math :as math] [clojure.string :as str] [clojure.set :as set] [io.github.humbleui.core :as hui] [io.github.humbleui.window :as w...
null
https://raw.githubusercontent.com/tonsky/advent-of-code/ef2232246852a1fe21782283050659186a36fe2b/src/advent_of_code/year2018/day18_gui.clj
clojure
(ns advent-of-code.year2018.day18-gui (:require [advent-of-code.core :refer [cond+]] [advent-of-code.year2018.day18 :as day18] [clojure.java.io :as io] [clojure.java.math :as math] [clojure.string :as str] [clojure.set :as set] [io.github.humbleui.core :as hui] [io.github.humbleui.window :as w...
e4eb253eb9c8eeabdbff3ba499034c2e324119bccc45d51324f16d5e335ee31b
donatello/minio-hs-archived
API.hs
module Network.Minio.API ( connect , RequestInfo(..) , runMinio , executeRequest , mkStreamRequest ) where import qualified Data.Conduit as C import Data.Conduit.Binary (sourceHandleRange) import Network.HTTP.Conduit (Response) import qualified Network.HTTP.Conduit as NC import qual...
null
https://raw.githubusercontent.com/donatello/minio-hs-archived/c808dc1be2a5b15c2c714c0052f1d6a7bc98a809/src/Network/Minio/API.hs
haskell
module Network.Minio.API ( connect , RequestInfo(..) , runMinio , executeRequest , mkStreamRequest ) where import qualified Data.Conduit as C import Data.Conduit.Binary (sourceHandleRange) import Network.HTTP.Conduit (Response) import qualified Network.HTTP.Conduit as NC import qual...
2f2585c99a3c9e3b9177505f7ee5a39ec29806442b5e198a0415f6b7488f058c
antono/guix-debian
libunwind.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/libunwind.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages libunwind) #:use-module (guix packages) #:use-module (guix download) #:use-modu...
d8611ff65685f3f35f006914c7847ad52d5d1a45df97343b1b9bebd09e140720
racketscript/racketscript
procedure-arity.rkt
#lang racket/base (define (foo a b . c) (list a b c)) (define (bar . c) (list c)) (define (baz a b c) (list a b c)) ; TODO: These tests fail because JS outputs "kernel:arity-at-least" ; while Racket outputs "arity-at-least". ( ( procedure - arity foo ) ) ( ( procedure - arity bar ) ) ( ( procedure ...
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/basic/procedure-arity.rkt
racket
TODO: These tests fail because JS outputs "kernel:arity-at-least" while Racket outputs "arity-at-least".
#lang racket/base (define (foo a b . c) (list a b c)) (define (bar . c) (list c)) (define (baz a b c) (list a b c)) ( ( procedure - arity foo ) ) ( ( procedure - arity bar ) ) ( ( procedure - arity baz ) ) (displayln (equal? (procedure-arity foo) (arity-at-least 2))) (displayln (equal? (procedure-ar...
c66f477d7e5328c32f046a3dc8dc904a7d50a34a66d8ec8180e68a2fee0a170c
haskell-lisp/yale-haskell
runtime.scm
;;; runtime.scm ;;; author : ;;; (define-compilation-unit runtime (source-filename "$Y2/runtime/") (require global) (unit runtime-utils (source-filename "runtime-utils.scm")) (unit prims (require runtime-utils) (source-filename "prims.scm")) (unit io-primitives (require runtime-utils) (source-file...
null
https://raw.githubusercontent.com/haskell-lisp/yale-haskell/4e987026148fe65c323afbc93cd560c07bf06b3f/runtime/runtime.scm
scheme
runtime.scm
author : (define-compilation-unit runtime (source-filename "$Y2/runtime/") (require global) (unit runtime-utils (source-filename "runtime-utils.scm")) (unit prims (require runtime-utils) (source-filename "prims.scm")) (unit io-primitives (require runtime-utils) (source-filename "io-primitives.scm"...
da00d378ee6bb21ccb299c8b165f173eed15eccefc555edb94bf256c022bcd67
amuletml/amulet
Note.hs
# LANGUAGE FunctionalDependencies , MultiParamTypeClasses , OverloadedStrings # FunctionalDependencies , MultiParamTypeClasses , OverloadedStrings #-} -- | A series of utilities for generating annotating source positions -- with error messages. module Text.Pretty.Note ( NoteKind(..) , NoteStyle(..) , N...
null
https://raw.githubusercontent.com/amuletml/amulet/fcba0b7e198b8d354e95722bbe118bccc8483f4e/src/Text/Pretty/Note.hs
haskell
| A series of utilities for generating annotating source positions with error messages. | The severity of a note | The document style for a note | A document styled with either 'NoteKind' or 'a'. | A highlighted string. Built from pairs of annotation functions and the corresponding text. | Some diagnostic "note...
# LANGUAGE FunctionalDependencies , MultiParamTypeClasses , OverloadedStrings # FunctionalDependencies , MultiParamTypeClasses , OverloadedStrings #-} module Text.Pretty.Note ( NoteKind(..) , NoteStyle(..) , NoteDoc , Highlighted , Note(..) , FileMap , defaultHighlight, fileSpans, format, toAns...
1391227d2fbbffa0c1bb26432d3c0c3c0b6c39ed7cd0793e29ac17f79715156a
OCamlPro/ocp-build
buildActionTests.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/b29be2f23ebe8db4bd3f16e035770b038876b9bc/tools/ocp-build/actions/buildActionTests.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file open Ezcmd.V2 open EZCMD.TYPES open BuildArgs open BuildActions open BuildTypes let arg_list = [] let do_test b ncores projects = time_step "Executing tests"; ...
a7f3a0d05cdb4825f471ce9acd01cc31eddc74ec5463955b0157032971aae60d
ollef/sixten
Literal.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Syntax.Literal where import Protolude import Numeric.Natural import Pretty import qualified TypeRep data Literal = Integer !Integer | Natural !Natural | Byte !Word8 | TypeRep !TypeRep.TypeRep deriving (Eq,...
null
https://raw.githubusercontent.com/ollef/sixten/60d46eee20abd62599badea85774a9365c81af45/src/Syntax/Literal.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # module Syntax.Literal where import Protolude import Numeric.Natural import Pretty import qualified TypeRep data Literal = Integer !Integer | Natural !Natural | Byte !Word8 | TypeRep !TypeRep.TypeRep deriving (Eq, Ord, Show, Generic, Hashable) instance Pretty Literal where pre...
7dd14dc304e759803df077472f8eb54ca187cb9810f79693ca565a82748fcb1e
KeenS/zenekindarl
concat2.lisp
(declaim (ftype (function (list) string) cat-with-stream cat-with-stream2 cat-with-stream3 cat-with-concatenate)) (defun cat-with-concatenate (list) (declare (optimize (speed 3) (space 0) (safety 0) (debug 0))) (apply #'concatenate 'string list)) (de...
null
https://raw.githubusercontent.com/KeenS/zenekindarl/ea8cfa8b6e6039043f1a1495b6978224e940bc1b/experiment/concat2.lisp
lisp
(declaim (ftype (function (list) string) cat-with-stream cat-with-stream2 cat-with-stream3 cat-with-concatenate)) (defun cat-with-concatenate (list) (declare (optimize (speed 3) (space 0) (safety 0) (debug 0))) (apply #'concatenate 'string list)) (de...
192cb99804d3815eec76a6df82bbd0ec277d6c7e4a1fb1a3c0e75a6a83be0e6e
saleyn/gen_timed_server
test_srv.erl
%%%---------------------------------------------------------------------------- %%% @doc @author < > 2014 %%% @end %%%---------------------------------------------------------------------------- Created : 2014 - 06 - 06 %%%---------------------------------------------------------------------------- -module(t...
null
https://raw.githubusercontent.com/saleyn/gen_timed_server/74651d10ac5724176c77474707f3a119cf5631bb/test/test_srv.erl
erlang
---------------------------------------------------------------------------- @doc @end ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- API gen_server callbacks -------------------------------------------------...
@author < > 2014 Created : 2014 - 06 - 06 -module(test_srv). -author(''). -behaviour(gen_server). -export([start_link/0, start/0]). -export([start_oscmd/2]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3, format_status/2]). -record(state, { }). ( ) ...
32eb43f534e6a95afc47887920a72ad2fec3a1c1a2e33cb31f945f4045832555
sharetribe/harmony
uuid.clj
(ns harmony.util.uuid "Utilities for working with UUIDs. Implements rearranging a v1 UUID into a byte sequence that sorts naturally by the UUID timestamp and parsing that back to UUID value." (:require [clojure.string :as str] [clj-uuid :as uuid])) (defn hexify "Convert byte sequence to hex strin...
null
https://raw.githubusercontent.com/sharetribe/harmony/756d1388e11a62773c83d0276da4c4f1d942ea91/src/harmony/util/uuid.clj
clojure
(ns harmony.util.uuid "Utilities for working with UUIDs. Implements rearranging a v1 UUID into a byte sequence that sorts naturally by the UUID timestamp and parsing that back to UUID value." (:require [clojure.string :as str] [clj-uuid :as uuid])) (defn hexify "Convert byte sequence to hex strin...
5b28d308eaf2ba041a853a176e6b38ed8d9ff35d2a2356020daad920b0c196b3
babashka/sci
evaluator.cljc
(ns sci.impl.evaluator {:no-doc true} (:refer-clojure :exclude [eval]) (:require [clojure.string :as str] [sci.impl.deftype] [sci.impl.interop :as interop] [sci.impl.macros :as macros] [sci.impl.records] [sci.impl.types :as types] [sci.impl.utils :as utils :refer [#?(:cljs kw-identical?) ...
null
https://raw.githubusercontent.com/babashka/sci/1f8128cd26754c6d1ac99c9c9db20bccbcebddda/src/sci/impl/evaluator.cljc
clojure
return var try/finally without catch we have to check options at run time, since we don't know what the class of instance-expr is at analysis time End interop Namespaces End namespaces Import (prn import-symbols-or-lists) End import Normal apply: TODO: can we prevent hitting this at all, by analyzing more ef...
(ns sci.impl.evaluator {:no-doc true} (:refer-clojure :exclude [eval]) (:require [clojure.string :as str] [sci.impl.deftype] [sci.impl.interop :as interop] [sci.impl.macros :as macros] [sci.impl.records] [sci.impl.types :as types] [sci.impl.utils :as utils :refer [#?(:cljs kw-identical?) ...
95a55bf77ec6f4aac664fb7b425c6077e845aac3055c1b0125fbcd1e90af4abb
hexlet-codebattle/battle_asserts
happy_numbers.clj
(ns battle-asserts.issues.happy-numbers (:require [clojure.test.check.generators :as gen])) (def level :medium) (def tags ["math"]) (def description {:en "Happy numbers are positive integers that follow a particular formula: take each individual digit, square it, and then sum the squares to get a new num...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/608577f9fc947de1a7acdbe6e05254ef5b6de934/src/battle_asserts/issues/happy_numbers.clj
clojure
(ns battle-asserts.issues.happy-numbers (:require [clojure.test.check.generators :as gen])) (def level :medium) (def tags ["math"]) (def description {:en "Happy numbers are positive integers that follow a particular formula: take each individual digit, square it, and then sum the squares to get a new num...
e2cb83568871338848053b818868afb86b9249f21b328782d76aac061a537b2f
srid/ka
Highlight.hs
module Ka.Plugin.Highlight ( highlightSpec, style, ) where import Clay (Css, (?)) import qualified Clay as C import Commonmark.Html (Html, htmlInline) import Commonmark.Inlines (FormattingSpec (FormattingSpec)) import Commonmark.Pandoc (Cm) import Commonmark.SourceMap (WithSourceMap, addName) import Commonmark...
null
https://raw.githubusercontent.com/srid/ka/9d020738215a752d30674063384cdc6bf10c4067/src/Ka/Plugin/Highlight.hs
haskell
In lieu of <mark>
module Ka.Plugin.Highlight ( highlightSpec, style, ) where import Clay (Css, (?)) import qualified Clay as C import Commonmark.Html (Html, htmlInline) import Commonmark.Inlines (FormattingSpec (FormattingSpec)) import Commonmark.Pandoc (Cm) import Commonmark.SourceMap (WithSourceMap, addName) import Commonmark...
8fcb3605a6fbb0ab78357c357bef88eb5eb9e11dbc0e5e213884da0c8ee0f1e7
gadfly361/re-pressed
events.cljs
(ns re-pressed.events (:require [re-frame.core :as rf] [re-pressed.db :as db] [re-pressed.effects :as effects] )) (rf/reg-event-db ::initialize-db (fn [_ _] db/default-db)) (rf/reg-event-db ::set-active-panel (fn [db [_ active-panel]] (assoc db :active-panel active-panel))) (rf/reg-event-fx...
null
https://raw.githubusercontent.com/gadfly361/re-pressed/a719171f8ff03b2c1d18aa6697323b7c83e952b9/src/demo/re_pressed/events.cljs
clojure
(ns re-pressed.events (:require [re-frame.core :as rf] [re-pressed.db :as db] [re-pressed.effects :as effects] )) (rf/reg-event-db ::initialize-db (fn [_ _] db/default-db)) (rf/reg-event-db ::set-active-panel (fn [db [_ active-panel]] (assoc db :active-panel active-panel))) (rf/reg-event-fx...
abfe5fc0f8bf4b7ed540a680976c914f1ced874d4a8cfda2a6fbe34bd3e40abd
cedlemo/OCaml-GI-ctypes-bindings-generator
Table_row_col.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Table_row_col" let f_requisition = field t_typ "requisition" (uint16_t) let f_allocation = field t_typ "allocation" (uint16_t) let f_spacing = field t_typ "spacing" (uint16_t) let f_need_expand = field t_typ "need_expand" (uint32_t) let f_need_s...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Table_row_col.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Table_row_col" let f_requisition = field t_typ "requisition" (uint16_t) let f_allocation = field t_typ "allocation" (uint16_t) let f_spacing = field t_typ "spacing" (uint16_t) let f_need_expand = field t_typ "need_expand" (uint32_t) let f_need_s...
4d8820b9f6f0dbabbe026e01e3c5f463a3b48ff9294529ae031a933438e27e3f
ucsd-progsys/dsolve
lock.ml
DSOLVE -bare -dontminemlq let lock st = assert (not st); true let unlock st = assert st; false let f n st = if n > 0 then lock st else st let g n st = if n > 0 then unlock st else st let n = read_int () let _ = assert (not (g n (f n false)))
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2010/lock.ml
ocaml
DSOLVE -bare -dontminemlq let lock st = assert (not st); true let unlock st = assert st; false let f n st = if n > 0 then lock st else st let g n st = if n > 0 then unlock st else st let n = read_int () let _ = assert (not (g n (f n false)))
80c7152adde0f8db7a79ff9f9b773c2595aeb9dc3c772f4a1f0fe50066b1bac8
incoherentsoftware/defect-process
Types.hs
module Msg.Types ( module Msg.Phase , MsgId , MsgOrder(..) , MsgInternal(..) , Msg(..) , MsgsRead(..) , MsgsWrite(..) , MsgsReadWrite ) where import Id import Msg.Phase import {-# SOURCE #-} Msg.Payload type MsgId = Id MsgInternal data MsgOrder = MsgFrontOrder | MsgNormalO...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Msg/Types.hs
haskell
# SOURCE #
module Msg.Types ( module Msg.Phase , MsgId , MsgOrder(..) , MsgInternal(..) , Msg(..) , MsgsRead(..) , MsgsWrite(..) , MsgsReadWrite ) where import Id import Msg.Phase type MsgId = Id MsgInternal data MsgOrder = MsgFrontOrder | MsgNormalOrder | MsgAfterNormalOrder ...
cb1aaec6f3e66bc88d0c0f80b02bbe5f75ea4c787e452eb0b02de73c2d89b64c
johnwhitington/ocamli
exceptiondef.ml
exception E of int * string let x = raise (E (1, "foo"))
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/examples/exceptiondef.ml
ocaml
exception E of int * string let x = raise (E (1, "foo"))
bb0c4b0ae58b5933afb2167a946e9238e6f84bc990d2cefcdb69029a858d28f0
dktr0/Punctual
GLSL.hs
# LANGUAGE OverloadedStrings , RecursiveDo # module Sound.Punctual.GLSL where -- This module defines the monad GLSL for representing computations that accumulate GLSL variable definitions ( such as " vec4 _ 0 = ) ; " ) A fundamental goal is elegantly bridging the gap between GLSL 's 4 basic float types and the ...
null
https://raw.githubusercontent.com/dktr0/Punctual/301fbe67c5bf5f45f3c593e405e31678418a0f42/library-src/Sound/Punctual/GLSL.hs
haskell
This module defines the monad GLSL for representing computations that a computation "accumulates" the following: -a count of auto-assigned variables, so that new assignments can use that as necessary -accumulated Builder text of fragment shader code don't re-assign write code to the accumulated Builder without ad...
# LANGUAGE OverloadedStrings , RecursiveDo # module Sound.Punctual.GLSL where accumulate GLSL variable definitions ( such as " vec4 _ 0 = ) ; " ) A fundamental goal is elegantly bridging the gap between GLSL 's 4 basic float types and the multi - channel expressions of Punctual ( which are not limited to 1 - 4 ...
29ec1220d7ab8b9a933c570bf34ce131b4fb7f1b7b0869426dc23e380838f7c1
tonymorris/geo-osm
NodeWayRelation.hs
| The @node@ , @way@ , or @relation@ element of a OSM file . module Data.Geo.OSM.NodeWayRelation ( NodeWayRelation , foldNodeWayRelation , asNode , asWay , asRelation , nodes , ways , relations , node' , way' , relation' , isNode , isWay , isRelation ) where import Text.XML.HXT.Arrow.Pickle import Data.Geo.OSM.Nod...
null
https://raw.githubusercontent.com/tonymorris/geo-osm/776542be2fd30a05f0f9e867128eca5ad5d66bec/src/Data/Geo/OSM/NodeWayRelation.hs
haskell
| Folds a node-way-relation (catamorphism). ^ The @node@, @way@ or @relation@ element. ^ If this is a @node@ element. ^ If this is a @way@ element. ^ If this is a @relation@ element. | Construct a @node@ element value. | Construct a @way@ element value. | Construct a @relation@ element value. | Returns whether...
| The @node@ , @way@ , or @relation@ element of a OSM file . module Data.Geo.OSM.NodeWayRelation ( NodeWayRelation , foldNodeWayRelation , asNode , asWay , asRelation , nodes , ways , relations , node' , way' , relation' , isNode , isWay , isRelation ) where import Text.XML.HXT.Arrow.Pickle import Data.Geo.OSM.Nod...
abe9fc115adb056231b99a1f323558f5f07e3a9b78aada87aa488df8e584669f
zadean/xqerl
app_UseCaseCompoundValues_SUITE.erl
-module('app_UseCaseCompoundValues_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['UseCaseCompoundValues-001'/1]). suite() -> [{timetrap, {seconds, 18...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/app/app_UseCaseCompoundValues_SUITE.erl
erlang
-module('app_UseCaseCompoundValues_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['UseCaseCompoundValues-001'/1]). suite() -> [{timetrap, {seconds, 18...
1e3fedc61cc407b6b5c765e7b94f4932c04682f703b0d9e90e98bf2c7a718739
helpshift/hydrox
doc_test.clj
(ns hydrox.doc-test (:use midje.sweet) (:require [hydrox.doc :refer :all] [hydrox.analyse :as analyser])) ^{:refer hydrox.doc/prepare-article :added "0.1"} (fact "generates the flat outline for rendering") ^{:refer hydrox.doc/generate :added "0.1"} (fact "generates the tree outline for rendering") ^{...
null
https://raw.githubusercontent.com/helpshift/hydrox/2beb3c56fad43bbf16f07db7ee72c5862978350c/test/hydrox/doc_test.clj
clojure
(ns hydrox.doc-test (:use midje.sweet) (:require [hydrox.doc :refer :all] [hydrox.analyse :as analyser])) ^{:refer hydrox.doc/prepare-article :added "0.1"} (fact "generates the flat outline for rendering") ^{:refer hydrox.doc/generate :added "0.1"} (fact "generates the tree outline for rendering") ^{...
cf7a70ef82689cc79b2d35114ae832002c2e2404b2b893023807c0b7995c11f6
geneweb/geneweb
outbase.mli
val save_mem : bool ref (** Flag that enables memory saving by calling gc sometimes *) val output : Dbdisk.dsk_base -> unit * [ output base ] uses data section of the [ base ] to store database on the disk in the files : - { i base } main file that stores all the arrays of the database - { i base.acc } di...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/gwdb-legacy/outbase.mli
ocaml
* Flag that enables memory saving by calling gc sometimes
val save_mem : bool ref val output : Dbdisk.dsk_base -> unit * [ output base ] uses data section of the [ base ] to store database on the disk in the files : - { i base } main file that stores all the arrays of the database - { i base.acc } direct accesses to arrays inside { i base } ( list of offsets for...
7b77cbfed746244a19f9d3f9725791f9b191ea116bb5216074cff3d022dc52cf
wireless-net/erlang-nommu
erl_eval.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2013 . 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/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/stdlib/src/erl_eval.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 1996 - 2013 . 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(erl_eval). Guard is_map/1 is not...
ead07e1ac8976a526d9f543d62a231bf9db79237c9d98f7dda03a1afe7ff83a6
shop-planner/shop3
p11.lisp
(in-package :shop-openstacks) #.(make-problem 'OS-SEQUENCEDSTRIPS-P20_2 'OPENSTACKS-SEQUENCEDSTRIPS-ADL-INCLUDED '((NEXT-COUNT N0 N1) ...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/openstacks-adl/p11.lisp
lisp
(in-package :shop-openstacks) #.(make-problem 'OS-SEQUENCEDSTRIPS-P20_2 'OPENSTACKS-SEQUENCEDSTRIPS-ADL-INCLUDED '((NEXT-COUNT N0 N1) ...
5ae3626dd5f705609dfaf8372c79774dd23a749ce2fb7619216975d873471e1b
wesdoyle/sicp-meetup
exercises_in_1-2.scm
Exercise 1.12 . The following pattern of numbers is called 's triangle . The numbers at the edge of the triangle are all 1 , and each number inside the triangle is the sum of the two numbers above it.35 Write a procedure that computes elements of 's triangle by ;;; means of a recursive process. If a number ...
null
https://raw.githubusercontent.com/wesdoyle/sicp-meetup/402ce100c8d549534598795ae6cc6cd39a0a5c7d/sicp-files/meetup_03/exercises_in_1-2.scm
scheme
means of a recursive process. If a number lies outside of the triangle, return 0 (this makes sense if we view pascal as the combination function ). Start counting rows and columns from 0. Just for fun Named let syntax as a looping construct #IDX130 Used a few times in this file making use of the approximation si...
Exercise 1.12 . The following pattern of numbers is called 's triangle . The numbers at the edge of the triangle are all 1 , and each number inside the triangle is the sum of the two numbers above it.35 Write a procedure that computes elements of 's triangle by (define (pascal row col) "Tree recursive pr...
9299f637f126d1c2e3b720882fc0094386ba988f782e14290f18655c9835d010
orthecreedence/ghostie
meta.lisp
(:name "physics-test" :camera (0 0 -80) :scale (.04 .04 .04) :object-properties ((:name "ground" :layer-depth 0)))
null
https://raw.githubusercontent.com/orthecreedence/ghostie/6e6f77e1f33511d5311319db4656960de1c6f668/demo/resources/levels/physics-test/meta.lisp
lisp
(:name "physics-test" :camera (0 0 -80) :scale (.04 .04 .04) :object-properties ((:name "ground" :layer-depth 0)))
70306a0f75c3c00d39f33f8c76fee6f8dd4b76a524ceccf79131bc0a802db24b
oakes/play-clj-examples
project.clj
(defproject minimal-3d-model "0.0.1-SNAPSHOT" :description "FIXME: write description" :dependencies [[com.badlogicgames.gdx/gdx "1.9.3"] [com.badlogicgames.gdx/gdx-backend-lwjgl "1.9.3"] [com.badlogicgames.gdx/gdx-box2d "1.9.3"] [com.badlogicgames.gdx/gdx-box2d-...
null
https://raw.githubusercontent.com/oakes/play-clj-examples/449a505a068faeeb35d4ee4622c6a05e3fff6763/minimal-3d-model/desktop/project.clj
clojure
(defproject minimal-3d-model "0.0.1-SNAPSHOT" :description "FIXME: write description" :dependencies [[com.badlogicgames.gdx/gdx "1.9.3"] [com.badlogicgames.gdx/gdx-backend-lwjgl "1.9.3"] [com.badlogicgames.gdx/gdx-box2d "1.9.3"] [com.badlogicgames.gdx/gdx-box2d-...
2ff9a8c5792a96864fcc48c1c416231e426371b027f5222602f1077bf6f0dbdc
AdaCore/why3
itp_communication.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/74914e765153d7eb4b34cd0246a623719f4aa670/src/session/itp_communication.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception type transformation = (string * string) type strategy = string type node_ID = int let root_node : node_ID...
42a952612b7ea90b2cebb3f9bf9345b4f6e36df98b535ab9c1536dc39099ea34
openbadgefactory/salava
stats_helper.cljs
(ns salava.admin.ui.stats-helper (:require [cljsjs.recharts] [clojure.string :refer [blank? lower-case split join]] [salava.core.i18n :refer [t]] [reagent.core :refer [atom cursor adapt-react-class create-class]] [reagent.session :as session] [salava.core.time :refer [date-from-unix-time iso8...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljs/salava/admin/ui/stats_helper.cljs
clojure
[Bar {:dataKey :total :fill (:default colors) :stackId "a"}] (when-not (blank? title)[:div.row [:span [:b title]]])]))) data-atom (atom data)] (when-not (blank? title)[:div.row [:span [:b title]]])]))) (when-not (empty? value)
(ns salava.admin.ui.stats-helper (:require [cljsjs.recharts] [clojure.string :refer [blank? lower-case split join]] [salava.core.i18n :refer [t]] [reagent.core :refer [atom cursor adapt-react-class create-class]] [reagent.session :as session] [salava.core.time :refer [date-from-unix-time iso8...
8d6d493ae590c9df6643399bb5ef45a710b0e2e6238ee00a66da5ad49423461e
mmottl/aifad
algdt_types.ml
AIFAD - Automated Induction of Functions over Author : email : WWW : Copyright ( C ) 2002 Austrian Research Institute for Artificial Intelligence Copyright ( C ) 2003- This library is free software ; you can redistribute it and/or modify it under the terms of t...
null
https://raw.githubusercontent.com/mmottl/aifad/b06786f5cd60992548405078a903ee3d962ea969/src/algdt_types.ml
ocaml
* Specification of widely used types * {6 Types about variables}
AIFAD - Automated Induction of Functions over Author : email : WWW : Copyright ( C ) 2002 Austrian Research Institute for Artificial Intelligence Copyright ( C ) 2003- This library is free software ; you can redistribute it and/or modify it under the terms of t...
d115d5f2f811bf38dbd161c15ee44d03a1c1bd9e97fab191502742eb3d92de3e
fission-codes/fission
Class.hs
module Fission.Web.Server.Relay.Store.Class (MonadRelayStore (..)) where import Fission.Prelude import Fission.Web.Server.Relay.Store.Types class Monad m => MonadRelayStore m where getStoreVar :: m (TVar Store)
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-web-server/library/Fission/Web/Server/Relay/Store/Class.hs
haskell
module Fission.Web.Server.Relay.Store.Class (MonadRelayStore (..)) where import Fission.Prelude import Fission.Web.Server.Relay.Store.Types class Monad m => MonadRelayStore m where getStoreVar :: m (TVar Store)
ebcc163fdc53d5abd634e7171bf664afb48ce4c711024d82772addddde192228
monadbobo/ocaml-core
test_runner.ml
open OUnit;; let () = (* Async_unix.Inline_tests.run (); *) Async_extra.Inline_tests.run ()
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/lib_test/test_runner.ml
ocaml
Async_unix.Inline_tests.run ();
open OUnit;; let () = Async_extra.Inline_tests.run ()
43a58ed055aea95083a2d3c9ffe927acafcfbf09713b8a5e95add10e50fc2d6a
RoadRunnr/dtlsex
dtlsex_certificate_db.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2013 . 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 Publi...
null
https://raw.githubusercontent.com/RoadRunnr/dtlsex/6cb9e52ff00ab0e5f33e0c4b54bf46eacddeb8e7/src/dtlsex_certificate_db.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 limitatio...
Copyright Ericsson AB 2007 - 2013 . 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(dtlsex_certificate_db). -include...
82c1a6effa482eb10affd672d2c03965fa5b2dd1c3f9fbcbc23aa572e1edca6b
gebi/jungerl
bic_cpp.erl
%%% File : bic_cpp.erl Author : < > Description : CPP Created : 3 Jan 2006 by < > -module(bic_cpp). -compile(export_all). -export([init/3,open/1,close/1,read/1]). -export([file/1]). -export([cline/1, cfile/1, cvalue/2]). -import(lists, [foreach/2, reverse/1, map/2, foldl/3]). -include("bic.hrl")...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/bic/src/bic_cpp.erl
erlang
File : bic_cpp.erl current fd real file name real line number current if stack current working directory stored data from file current fd real file name real line number {Tag,0|1|2,Ln} #save {} current working directory search path for #include <foo.h> search path for #include "foo.h" dict of assert...
Author : < > Description : CPP Created : 3 Jan 2006 by < > -module(bic_cpp). -compile(export_all). -export([init/3,open/1,close/1,read/1]). -export([file/1]). -export([cline/1, cfile/1, cvalue/2]). -import(lists, [foreach/2, reverse/1, map/2, foldl/3]). -include("bic.hrl"). -define(debug, true). ...
682c67d7cb27a1c666c5ceef509dc0ba148984554edbbb32114dfa41e601e3df
semilin/layoup
stupid2.lisp
(MAKE-LAYOUT :NAME "stupid2" :MATRIX (APPLY #'KEY-MATRIX '("qbdlzjfuoy" "rctswmneai" ";pkvgxh.',")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/stupid2.lisp
lisp
(MAKE-LAYOUT :NAME "stupid2" :MATRIX (APPLY #'KEY-MATRIX '("qbdlzjfuoy" "rctswmneai" ";pkvgxh.',")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
11f598349ebab6e477caea14a31a47b9ac9be21006d7d7be2f5d62cc465ead61
cojna/iota
Word64.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleInstances # module Data.Word64 where import Data.Bits import Data.Word import Unsafe.Coerce | @encode64@ / @decode64@ + -------------------+-------------+-----------+ | @Int@ | - 4 * 10 ^ 18 | 4 * 10 ^ 18 | + -------------------+-----------...
null
https://raw.githubusercontent.com/cojna/iota/6d2ad5b71b1b50bca9136d6ed84f80a0b7713d7c/src/Data/Word64.hs
haskell
# LANGUAGE BangPatterns # -----------------+-------------+-----------+ -----------------+-------------+-----------+ -----------------+-------------+-----------+ -----------------+-------------+-----------+ -----------------+---+-----------+ -----------------+---+-----------+ -----------------+---+-----------+ --...
# LANGUAGE FlexibleInstances # module Data.Word64 where import Data.Bits import Data.Word import Unsafe.Coerce | @encode64@ / @decode64@ | @Int@ | - 4 * 10 ^ 18 | 4 * 10 ^ 18 | | @(Int , Int)@ | -10 ^ 9 | 10 ^ 9 | | @(Int , Int , Int)@ | -10 ^ 6 | 10 ^ 6 ...
d423b3a4591159021ce7d833b12148dddcd6802ec35e00f4b34fa8e8dda89172
nilcons/hflags
A.hs
# LANGUAGE TemplateHaskell # module X.Y_Y.A where import HFlags defineFlag "verbose" True "Whether debug output should be printed."
null
https://raw.githubusercontent.com/nilcons/hflags/d040d5bd9e6ceccc0de4466bd54a5ae19dcc9a58/examples/X/Y_Y/A.hs
haskell
# LANGUAGE TemplateHaskell # module X.Y_Y.A where import HFlags defineFlag "verbose" True "Whether debug output should be printed."
833c1a064506483d020195da7d7d5b422f371019e2540d86c3c8cdc3844829c1
kupl/VeriSmart-public
itvSem.ml
open Itv open ItvDom open Lang open Vocab open Global open Vlang open MakeCfg let rec eval_aexp : exp -> Mem.t -> Val.t = fun e mem -> match e with | Int n -> (Itv (V n, V n), GTaint.bot, BTaint.bot) | Str s -> (Itv.top, GTaint.bot, BTaint.bot) | Lv lv -> if List.mem (to_string_lv lv) Lang.keyword_vars ||...
null
https://raw.githubusercontent.com/kupl/VeriSmart-public/99be7ba88b61994f1ed4c0d3a8e6a6db0f790431/src/pre/interval/itvSem.ml
ocaml
overapproximation by not performing wrap-aroud tmp expressions should not exist. address(this).balance always weakly updates dynamic array type of "lv[i]" (a,b) := (1,2) params <- args lvop <- ret_params must be handled in preprocessing step. similar as 'handle_abi' handle_fcall global func (lvop...
open Itv open ItvDom open Lang open Vocab open Global open Vlang open MakeCfg let rec eval_aexp : exp -> Mem.t -> Val.t = fun e mem -> match e with | Int n -> (Itv (V n, V n), GTaint.bot, BTaint.bot) | Str s -> (Itv.top, GTaint.bot, BTaint.bot) | Lv lv -> if List.mem (to_string_lv lv) Lang.keyword_vars ||...
6463c9fcae70f9965d6ab11cd77562382172b9ebc049b9ca55f8f40a9cb85df5
nurpax/sqlite-simple
Implementation.hs
------------------------------------------------------------------------------ -- | Module : Database . SQLite . Simple . Time . Implementation Copyright : ( c ) 2012 ( c ) 2012 - 2014 License : BSD3 Maintainer : < > -- Adapted from code for SQLite . -- See < > fo...
null
https://raw.githubusercontent.com/nurpax/sqlite-simple/49390582cb090fc1ef95988dab9ecc8ebb32251b/Database/SQLite/Simple/Time/Implementation.hs
haskell
---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- parse the sub-second part. optional and default to +0. 'Z' means UTC (zulu time). datetime conventions. | pad4 assumes its input is positive
Module : Database . SQLite . Simple . Time . Implementation Copyright : ( c ) 2012 ( c ) 2012 - 2014 License : BSD3 Maintainer : < > Adapted from code for SQLite . See < > for date formats used in SQLite . module Database.SQLite.Simple.Time.Implementation ( p...
da61ab26b5f2ea1e1d7133eed48adda07d35ddb5709bd835386b7cffde0bd011
openbadgefactory/salava
data.cljs
(ns salava.user.ui.data (:require [salava.core.ui.layout :as layout] [salava.core.ui.ajax-utils :as ajax] [reagent.session :as session] [salava.core.ui.helper :refer [path-for navigate-to js-navigate-to hyperlink]] [salava.core.time :refer [unix-time date-from-unix-time...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljs/salava/user/ui/data.cljs
clojure
(ns salava.user.ui.data (:require [salava.core.ui.layout :as layout] [salava.core.ui.ajax-utils :as ajax] [reagent.session :as session] [salava.core.ui.helper :refer [path-for navigate-to js-navigate-to hyperlink]] [salava.core.time :refer [unix-time date-from-unix-time...
7a1c44f55fce73c7b18d5d6165544a28299c0f7da0f23d1558f1c7c54a4e61b3
atennapel/tinka-hs
Unification.hs
module Unification (unify, unifyLevel, unifyFinLevel) where import qualified Data.IntMap as IM import qualified Data.Set as S import qualified Data.Map as M import Data.Coerce (coerce) import Control.Exception (throwIO, catch) import Control.Monad (zipWithM_) import Data.Maybe (fromJust) import Common import Val impo...
null
https://raw.githubusercontent.com/atennapel/tinka-hs/3bda0247c828fd1c64b3a08586a85c2c751b70f5/src/Unification.hs
haskell
approx solutions indBool <S l> (\_. Desc <l> I) t f ~ ifDesc <l> {I} t f level unification
module Unification (unify, unifyLevel, unifyFinLevel) where import qualified Data.IntMap as IM import qualified Data.Set as S import qualified Data.Map as M import Data.Coerce (coerce) import Control.Exception (throwIO, catch) import Control.Monad (zipWithM_) import Data.Maybe (fromJust) import Common import Val impo...
95aa3cd4e54d0141b9f077288967294527410191ea5df14ab1fdcf8ebada4136
vikram/lisplibraries
iterator.lisp
(in-package :trees) (defun extreme-node-with-path (root direction &optional path) (do ((node root (funcall direction node)) (parent nil node)) ((null node) (values parent path)) (push node path))) (defun make-iterator (tree &key forwardp (current nil cu...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/trees_0.11/iterator.lisp
lisp
(in-package :trees) (defun extreme-node-with-path (root direction &optional path) (do ((node root (funcall direction node)) (parent nil node)) ((null node) (values parent path)) (push node path))) (defun make-iterator (tree &key forwardp (current nil cu...
757378a4b0ad4ac660f46459e12a944640e9a50c1c8485de5d75d3b3c9aa71fe
OCamlPro/ocaml-benchs
rpc_client.ml
open Core.Std open Async.Std (* A command that sends the hello request *) let say_hello host ~port = Rpc_common.with_rpc_conn (fun conn -> Rpc.Rpc.dispatch_exn Rpc_protocol.hello_rpc conn "Hi" >>| fun response -> if !Rpc_common.debug then printf "%s \n%!" response ) ~host ~port let plus_one host ~p...
null
https://raw.githubusercontent.com/OCamlPro/ocaml-benchs/98047e112574e6bf55137dd8058f227a9f40281b/async_rpc/rpc_client.ml
ocaml
A command that sends the hello request
open Core.Std open Async.Std let say_hello host ~port = Rpc_common.with_rpc_conn (fun conn -> Rpc.Rpc.dispatch_exn Rpc_protocol.hello_rpc conn "Hi" >>| fun response -> if !Rpc_common.debug then printf "%s \n%!" response ) ~host ~port let plus_one host ~port i = Rpc_common.with_rpc_conn (fun conn -...
f418b8ef5160283879a9b179101a28f594591759cf71a5ed8e80835f22adc4a0
manuel-serrano/bigloo
hash.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / recette / hash.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/recette/hash.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * On test les tables de hash */ *===========================...
* serrano / prgm / project / bigloo / recette / hash.scm * / * Author : * / * Creation : Sat Nov 26 11:50:50 1994 * / * Last change : Thu Sep 15 16:06:33 2011 ( serrano ) * / (module has...
1348a99669eabe0cb9529660ab5ce78400427814bf962023cb708957961f22bc
jwhitlark/clj-on-k8s-quickstart
project.clj
(defproject hey "0.0.1" :dependencies [[org.clojure/clojure "1.9.0"] [ring/ring-core "1.6.3"] [ring/ring-jetty-adapter "1.6.3"]] :plugins [lein-jlink "0.2.0-SNAPSHOT"] :jlink-modules ["java.base", "java.logging"] :main hey.core)
null
https://raw.githubusercontent.com/jwhitlark/clj-on-k8s-quickstart/aa76a582e778cc183afc8023495dfb614e5cf9c2/minimum-src-modular/project.clj
clojure
(defproject hey "0.0.1" :dependencies [[org.clojure/clojure "1.9.0"] [ring/ring-core "1.6.3"] [ring/ring-jetty-adapter "1.6.3"]] :plugins [lein-jlink "0.2.0-SNAPSHOT"] :jlink-modules ["java.base", "java.logging"] :main hey.core)
9f0d5547d96b02ae6163aa6a2336ff8b910d9b64afddf1c80747a7a6bda6ef41
raptazure/experiments
Controller.hs
module Application.Helper.Controller ( -- To use the built in login: -- module IHP.LoginSupport.Helper.Controller ) where -- Here you can add functions which are available in all your controllers import IHP.ControllerPrelude -- To use the built in login: -- import IHP.LoginSupport.Helper.Controller
null
https://raw.githubusercontent.com/raptazure/experiments/c48263980d1ce22ee9407ff8dcf0cf5091b01c70/haskell/ihp-blog/Application/Helper/Controller.hs
haskell
To use the built in login: module IHP.LoginSupport.Helper.Controller Here you can add functions which are available in all your controllers To use the built in login: import IHP.LoginSupport.Helper.Controller
module Application.Helper.Controller ( ) where import IHP.ControllerPrelude
29172cda2062ad66cef94fcffc68eb1318b8abcedda70dc18c7812f318344514
Vortecsmaster/EmurgoAcademyPlutusExamples
GuessingGameV2.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOpe...
null
https://raw.githubusercontent.com/Vortecsmaster/EmurgoAcademyPlutusExamples/d4253139843b504d7237dc9fb050f676b730283a/V2/GuessingGame/src/GuessingGameV2.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE DerivingStrategies # Contract Monad Ledger "Normal " Haskell "Normal" Haskell -} GuessingGame imports THE ON-CHAIN CODE module Batch50GuessingGame where ON-CHAIN newtype HashedString = HS BuiltinByteString newtype ClearString = CS BuiltinByteStr...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DataKinds # ...
62f56dda97a6476e49cc4d681c76b7b0a091798b6d4c7eca1767dfb46f7f7681
cxphoe/SICP-solutions
4.16.rkt
;; a) (define (lookup-variable-value var env) (define (env-loop env) (define (scan vars vals) (cond ((null? vars) (env-loop (enclosing-environment env))) ((eq? var (car vars)) (if (eq? (car vals) '*unassigned*) (error "Unassigned variable" var) ...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%204-Metalinguistic%20Abstraction/1.The%20Meta-cycle%20Evaluator/4.16.rkt
racket
a) b) c) (define (f x) (define (even? n) (if (= n 0) true (odd? (- n 1)))) (define (odd? n) (if (= n 0) false (even? (- n 1)))) (even? x))
(define (lookup-variable-value var env) (define (env-loop env) (define (scan vars vals) (cond ((null? vars) (env-loop (enclosing-environment env))) ((eq? var (car vars)) (if (eq? (car vals) '*unassigned*) (error "Unassigned variable" var) ...
0d757f02c24722813d44aab13b91c2353a9bee310fd1e955c23fe54defa34dbc
dgtized/shimmers
space_colonization_test.cljc
(ns shimmers.algorithm.space-colonization-test (:require [clojure.test :as t :refer [deftest is] :include-macros true] [shimmers.algorithm.space-colonization :as sut] [shimmers.math.equations :as eq] [thi.ng.geom.vector :as gv])) (deftest closest (is (= {:position (gv/vec2 2 1)} (sut/closest-b...
null
https://raw.githubusercontent.com/dgtized/shimmers/65df950817dfd06f86dc418413a0285fdf1fcc37/test/shimmers/algorithm/space_colonization_test.cljc
clojure
(ns shimmers.algorithm.space-colonization-test (:require [clojure.test :as t :refer [deftest is] :include-macros true] [shimmers.algorithm.space-colonization :as sut] [shimmers.math.equations :as eq] [thi.ng.geom.vector :as gv])) (deftest closest (is (= {:position (gv/vec2 2 1)} (sut/closest-b...
de3779af6d60338ed1e9bf166cce1ecf013d64079303f9e61c40c66a93c4228d
ghc/packages-dph
QuickHullVector.hs
# LANGUAGE BangPatterns , PatternGuards # module QuickHullVector (quickHull) where import Points2D.Types import Data.Function import Data.Vector.Unboxed as V import Data.Vector.Unboxed.Mutable as MV import Data.Vector.Unboxed (Vector) import qualified Data.Vector.Generic as G import System.IO.Unsafe distance :: ...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-examples/examples/spectral/QuickHull/vector/QuickHullVector.hs
haskell
stash the furthest point on the end of the returned vector.
# LANGUAGE BangPatterns , PatternGuards # module QuickHullVector (quickHull) where import Points2D.Types import Data.Function import Data.Vector.Unboxed as V import Data.Vector.Unboxed.Mutable as MV import Data.Vector.Unboxed (Vector) import qualified Data.Vector.Generic as G import System.IO.Unsafe distance :: ...
f1f4e5bc039d6d9e4ffae4430579b8871fe7ea66f936558033bbaad17dd2f66b
music-suite/music-suite
Abort.hs
# LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # module Control.Monad.Abort ( Abort (..), abort, ) where import Control.Monad.Except import Control.Monad.State import Data.Bifunctor import Iso.Deriving -- | Abort is like ' State ' but allow short - circuiting the computation . -- -- @ -- t :: Abort ...
null
https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/src/Control/Monad/Abort.hs
haskell
| @ t :: Abort Int () t = do !x <- get t @ | Abort the computation. The current state will be retained, but no result will be returned.
# LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # module Control.Monad.Abort ( Abort (..), abort, ) where import Control.Monad.Except import Control.Monad.State import Data.Bifunctor import Iso.Deriving Abort is like ' State ' but allow short - circuiting the computation . when ( x > 10 ) abort ...
fed86b1726ca603208f51eb4fa601dcc74ab2adf14f12c438f2d0d17786bc974
morphismtech/squeal
Gauge.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DataKinds # # LANGUAGE OverloadedLabels # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # {-# LANGUAGE GADTs #-} # LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # module Main where import ...
null
https://raw.githubusercontent.com/morphismtech/squeal/f25c3052bcecebe5e88ee95143c4ae446c24ca85/squeal-postgresql/bench/Gauge.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # For keeping a track of which question ID to query Project imports A mutable hack here to keep track of pulling a new user by ID from the db instead of the same id Define benchmarks Queries against an actual DB The actual action to benchmark | Configure the bench...
# LANGUAGE DeriveGeneric # # LANGUAGE DataKinds # # LANGUAGE OverloadedLabels # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # module Main where import Squeal.PostgreSQL hiding ( defaultMain ) import ...
3cdf45321c37f90587462f0bc45b1fc82a1c606bba48c373a5779a39c14ca466
OlivierSohn/hamazed
Util.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE LambdaCase # module Imj.Random.Util ( withRandom , randomRsIO , withRandomL ) where import Imj.Prelude hiding(range) import Control.Arrow import Data.List(take) import Data.Word(Word32) import Syste...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/6c2b20d839ede7b8651fb7b425cb27ea93808a4a/imj-profile/src/Imj/Random/Util.hs
haskell
make test deterministic make test deterministic
# LANGUAGE NoImplicitPrelude # # LANGUAGE LambdaCase # module Imj.Random.Util ( withRandom , randomRsIO , withRandomL ) where import Imj.Prelude hiding(range) import Control.Arrow import Data.List(take) import Data.Word(Word32) import Syste...
b66647abce0599dce09794de77244d5c14ff8f7feeca6a84720d62f629f07598
plow-technologies/ocaml-export
Spec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module OCaml.BuckleScript.Spec ( mkSampleServerAndGoldenSpec , mkGoldenDirSpec , toOCamlSpec , typeInFileToOCamlSpec ) where -- base import Data.Monoid ((<>)) -- text import Data.Text (Text) import qualified Data.Text as T -- ocaml-export i...
null
https://raw.githubusercontent.com/plow-technologies/ocaml-export/752167f5df37d43534d27d9f63bb512eec1e750d/src/OCaml/BuckleScript/Spec.hs
haskell
# LANGUAGE OverloadedStrings # base text ocaml-export wl-pprint type name.
# LANGUAGE ScopedTypeVariables # module OCaml.BuckleScript.Spec ( mkSampleServerAndGoldenSpec , mkGoldenDirSpec , toOCamlSpec , typeInFileToOCamlSpec ) where import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as T import OCaml.BuckleScript.Types hiding (getOCamlValues) import OCaml...
e486e122d27ad2dd9ba74ea42bbea45c69fb36ab8fa999944d4fddf82ab46487
larcenists/larceny
sassy-chicken.scm
(require-extension syntax-case) (require-extension numbers) (require-extension srfi-1) (define (write-byte n . port) (apply write-char (cons (integer->char n) port))) (define (read-byte . port) (let ((n (apply read-char port))) (if (eof-object? n) n (char->integer n)))) ;=================================; ;...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/sassy-chicken.scm
scheme
=================================; ; ; =================================; ==============; ; ; ==============; =======================; ; Output Modules ; ; =======================; ========================; ; The test suite ; ; ================...
(require-extension syntax-case) (require-extension numbers) (require-extension srfi-1) (define (write-byte n . port) (apply write-char (cons (integer->char n) port))) (define (read-byte . port) (let ((n (apply read-char port))) (if (eof-object? n) n (char->integer n)))) Sassy uses the following subset : (...
6cab889b9f385aea9a329e07e08ffb97507c6b7e3577d07de774eb29ed3c88f5
lispcord/lispcord
channel.lisp
(in-package :lispcord.classes) (defclass overwrite () ((id :initarg :id :type snowflake :accessor id) (type :initarg :type :type string :accessor type) (allow :initarg :allow :type permissions :accessor allow) (deny :initarg :deny :t...
null
https://raw.githubusercontent.com/lispcord/lispcord/448190cc503a0d7e59bdc0ffddb2e9dba0a706af/src/classes/channel.lisp
lisp
(in-package :lispcord.classes) (defclass overwrite () ((id :initarg :id :type snowflake :accessor id) (type :initarg :type :type string :accessor type) (allow :initarg :allow :type permissions :accessor allow) (deny :initarg :deny :t...
a8c16f8cc3cb2cc50455b19fca516fd37dd9b65267e487e51b35dbe52ccbb503
m-schmidt/Fuzzer
Error.hs
module Error where import System.Exit import System.IO import System.IO.Error -- |Report message to stderr report :: String -> IO () report = hPutStrLn stderr -- |Report info messages and terminate the program exitWithInfo :: String -> IO a exitWithInfo message = do report message; exitSuccess -- |Report error mes...
null
https://raw.githubusercontent.com/m-schmidt/Fuzzer/383bffeae066b702ff5294bb131bd91dddc40fab/src/Error.hs
haskell
|Report message to stderr |Report info messages and terminate the program |Report error messages and terminate the program
module Error where import System.Exit import System.IO import System.IO.Error report :: String -> IO () report = hPutStrLn stderr exitWithInfo :: String -> IO a exitWithInfo message = do report message; exitSuccess exitWithError :: String -> IO a exitWithError message = do report message; exitWith $ ExitFailure 1 ...
ffdc0e6803bb94da20c4b0e16b36a4c1f1b6e3002521b60ad67912b50ec761aa
haskell/text-format
Types.hs
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving #-} -- | -- Module : Data.Text.Format.Types Copyright : ( c ) 2011 MailRank , Inc. -- -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : GHC -- -- Types for text mangling. module Data.Text.Format.Types ( ...
null
https://raw.githubusercontent.com/haskell/text-format/abc3862f893bfcd0841c2cda9100acdc89a15614/Data/Text/Format/Types.hs
haskell
# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving # | Module : Data.Text.Format.Types License : BSD-style Maintainer : Stability : experimental Types for text mangling. * Integer format control
Copyright : ( c ) 2011 MailRank , Inc. Portability : GHC module Data.Text.Format.Types ( Format , Only(..) , Shown(..) , Hex(..) ) where import Data.Text.Format.Types.Internal
4094393c652e6d860a3d381980bb60adf06e1167c4fd48a058ab6f73fb9f263b
twosigma/waiter
schema_test.clj
;; Copyright ( c ) Two Sigma Open Source , LLC ;; 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...
null
https://raw.githubusercontent.com/twosigma/waiter/8d3cdaed90078c188095ae1e65714edc72f9122c/waiter/test/waiter/schema_test.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns waiter.schema-test (:require [clojure.string :as str] [clojure.test :refer :all] [schema.core :as s] [waiter.schema :refer :all])) (deftest positive-int-test ...
8b6258dfff9772c084f8f7ab55b5a2cac7d05cdb74cbfad97d41a17a0106e655
cxxxr/valtan
clos.lisp
#+valtan (in-package :common-lisp) #-valtan (in-package :valtan-core) (defun list-remove-duplicates (list) (let ((new-list '())) (do ((list list (cdr list))) ((null list)) (unless (member (car list) (cdr list)) (push (car list) new-list))) new-list)) (eval-when (:compile-toplevel :load...
null
https://raw.githubusercontent.com/cxxxr/valtan/ec3164d42b86869357dc185b747c5dfba25c0a3c/library/valtan-core/lisp/clos.lisp
lisp
XXX: class-direct-methodsは今のところ使っていない、 eql-specializerはdirect-methodsを持たないのでエラーが出る という理由でとりあえずコメントアウト (defun class-direct-methods (class) (%slot-value class 'direct-methods)) name TODO: funcallable (remove method (class-direct-methods class)))) (defclass t (t) ())
#+valtan (in-package :common-lisp) #-valtan (in-package :valtan-core) (defun list-remove-duplicates (list) (let ((new-list '())) (do ((list list (cdr list))) ((null list)) (unless (member (car list) (cdr list)) (push (car list) new-list))) new-list)) (eval-when (:compile-toplevel :load...
e7b42e2c9edeb44aabb03cf2767514fbc1533cc2068cb6cd9015afc52897be53
logseq/deprecated-github-backend
db_migrate.clj
(ns app.db-migrate (:require [ragtime.jdbc :as jdbc] [ragtime.repl :as repl])) ;; db migrations (defn load-config [db] {:datastore (jdbc/sql-database db) :migrations (jdbc/load-resources "migrations")}) (defn migrate [db] (repl/migrate (load-config db))) (defn rollback [db] (repl/rollback (...
null
https://raw.githubusercontent.com/logseq/deprecated-github-backend/7aa2f187f0f2d7b1e9c3f6a057bede939b4790b7/src/main/app/db_migrate.clj
clojure
db migrations
(ns app.db-migrate (:require [ragtime.jdbc :as jdbc] [ragtime.repl :as repl])) (defn load-config [db] {:datastore (jdbc/sql-database db) :migrations (jdbc/load-resources "migrations")}) (defn migrate [db] (repl/migrate (load-config db))) (defn rollback [db] (repl/rollback (load-config db)))...
82d66d8ab16efed56612bad91efa10303dc9dc9b58e32199b41083cfe0bb30bf
froydnj/ironclad
poly1305.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; poly1305.lisp -- RFC 7539 poly1305 message authentication code (in-package :crypto) 2 ^ 130 - 5 2 ^ 128 (defclass poly1305 () ((accumulator :accessor poly1305-accumulator :type integer) (r :accessor poly1305-r :type (unsigned-byte ...
null
https://raw.githubusercontent.com/froydnj/ironclad/fe88483bba68eac4db3b48bb4a5a40035965fc84/src/macs/poly1305.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- poly1305.lisp -- RFC 7539 poly1305 message authentication code Fill the buffer with new data if necessary Process the buffer Process the data Put the remaining data in the buffer Save the state Process the buffer Produce the tag
(in-package :crypto) 2 ^ 130 - 5 2 ^ 128 (defclass poly1305 () ((accumulator :accessor poly1305-accumulator :type integer) (r :accessor poly1305-r :type (unsigned-byte 128)) (s :accessor poly1305-s :type (unsigned-byte 128)) (buffer :accessor poly1305-buffer :...
51053fa835f60a02466d5bd4a8bd34dc1a2f7b99a8b4814c362f532c685b9faa
janestreet/universe
main_validate.ml
open Core let execute query = try Query.execute query with | _ -> exit 1 ;; (* preserve failure, but silently *) let command = Command.basic ~summary:"validate a sequence of s-expressions on stdin" (let open Command.Let_syntax in let%map_open () = return () in fun () -> let perform_que...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/sexp/bin/main_validate.ml
ocaml
preserve failure, but silently
open Core let execute query = try Query.execute query with | _ -> exit 1 ;; let command = Command.basic ~summary:"validate a sequence of s-expressions on stdin" (let open Command.Let_syntax in let%map_open () = return () in fun () -> let perform_query sexp_ext ~on_result = let...
6445f7925f64b4a305c7ce49cea029f7ad9ccab77151856b6fe09c975aacaf0f
AndreasVoellmy/openflow
Ethernet.hs
module Network.Data.Ethernet ( module Network.Data.Ethernet.EthernetAddress , module Network.Data.Ethernet.EthernetFrame , module Network.Data.Ethernet.AddressResolutionProtocol , module Network.Data.Ethernet.LLDP ) where import Network.Data.Ethernet.EthernetAddress import Network.D...
null
https://raw.githubusercontent.com/AndreasVoellmy/openflow/1dc9c6e9b594d0edaa895b3db145752383e3b431/src/Network/Data/Ethernet.hs
haskell
module Network.Data.Ethernet ( module Network.Data.Ethernet.EthernetAddress , module Network.Data.Ethernet.EthernetFrame , module Network.Data.Ethernet.AddressResolutionProtocol , module Network.Data.Ethernet.LLDP ) where import Network.Data.Ethernet.EthernetAddress import Network.D...
2346a420ca36e7a2410f663187ff81a8260cb91dbea171be3489962c045dff90
manuel-serrano/bigloo
definition.scm
;*=====================================================================*/ * ... /project / bigloo / / comptime / Integrate / definition.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : Mon...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Integrate/definition.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* ... /project / bigloo / / comptime / Integrate / definition.scm * / * Author : * / * Creation : Mon Mar 13 16:16:29 1995 * / * Last change : Sun Jul 11 09:38:06 2021 ( serrano ) * / * Copyright ...
a3dbb9bdac615d0868802560853b70ab261653a31c9414466ac276779f4c747c
inaka/sumo_db
sumo_internal.erl
%%% @doc Main **internal** module for sumo. %%% Use this one from your own applications. %%% Copyright 2012 Inaka & lt;&gt ; %%% 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...
null
https://raw.githubusercontent.com/inaka/sumo_db/331ea718c13a01748a7739ad4078b0032f4d32e5/src/sumo_internal.erl
erlang
@doc Main **internal** module for sumo. Use this one from your own applications. you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY K...
Copyright 2012 Inaka & lt;&gt ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , < > -module(sumo_internal). -author("Marcelo Gornstein <>"). -author("Brujo Benavides <>"). -github(""). -license("Apache License 2.0"). ...
50d1773c5efbd4b5e79dacd5a2878a042fb612947bffeffa7c626849e510fe68
input-output-hk/ouroboros-network
Ledger.hs
module Ouroboros.Consensus.ByronSpec.Ledger (module X) where -- Not all modules are re-exported, as some deal with wrapping -- cardano-ledger-specs and should not be needed elsewhere in consensus. From Genesis and GenTx we only import the types , as these module are intended -- to be imported qualified. import ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/0dcda09b6958205fe362524a7e5ea35dea320196/ouroboros-consensus-byronspec/src/Ouroboros/Consensus/ByronSpec/Ledger.hs
haskell
Not all modules are re-exported, as some deal with wrapping cardano-ledger-specs and should not be needed elsewhere in consensus. to be imported qualified.
module Ouroboros.Consensus.ByronSpec.Ledger (module X) where From Genesis and GenTx we only import the types , as these module are intended import Ouroboros.Consensus.ByronSpec.Ledger.Block as X import Ouroboros.Consensus.ByronSpec.Ledger.Forge as X import Ouroboros.Consensus.ByronSpe...
2f33ff413b6c0fb98bfddaecb238d2322c8f23f4334ba3a7ccd98a5f66f68632
AccelerateHS/accelerate-llvm
Target.hs
{-# LANGUAGE CPP #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} -- | Module : Data . Array . Accelerate . . Target Copyright : [ 2014 .. 2015 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/icebox/accelerate-llvm-multidev/Data/Array/Accelerate/LLVM/Multi/Target.hs
haskell
# LANGUAGE CPP # # LANGUAGE TypeFamilies # | License : BSD3 Stability : experimental accelerate standard library | The multi-device target is a collection of several manifest targets; in this case the PTX generating GPU backend as well as the native backend for with either or both of thes...
# LANGUAGE TemplateHaskell # Module : Data . Array . Accelerate . . Target Copyright : [ 2014 .. 2015 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.LLVM.Multi.Target where import Data.Array.Accelerate.LLVM.State import Dat...
9b023c926131a5cead5612eb7d9c97d3cec6bf8b90390b093a610fe889424ce1
anishathalye/knox
memoize.rkt
#lang racket/base (require racket/function racket/match (for-syntax racket/base syntax/parse) (prefix-in @ rosette/safe)) (provide new-memoization-context define/memoize1) (define context (make-parameter #f)) (define (with-new-memoization-context proc) (parameterize ([context (make-hasheq)]) ...
null
https://raw.githubusercontent.com/anishathalye/knox/75d13074c8f7973719439932e9beba3cfefd9788/yosys/memoize.rkt
racket
#lang racket/base (require racket/function racket/match (for-syntax racket/base syntax/parse) (prefix-in @ rosette/safe)) (provide new-memoization-context define/memoize1) (define context (make-parameter #f)) (define (with-new-memoization-context proc) (parameterize ([context (make-hasheq)]) ...
8e98a6d431d324a4ae90fcd54fbd9596c52ebeee2a8d3491baeb123bfa04f458
dgiot/dgiot
emqx_reason_codes_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/dgiot/dgiot/c601555e45f38d02aafc308b18a9e28c543b6f2c/test/emqx_reason_codes_SUITE.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2019 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_reason_codes_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_...
81e7a9b5d402d27e75825378ae7c539ea3a9137f93e706805e5123fab340a831
hbr/albatross
module.mli
Copyright ( C ) 2017 brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as published...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/alba1/module.mli
ocaml
Copyright ( C ) 2017 brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as published...
15c366202d4820e3cfc6457c2b0c22c10119903266427d300ff25fbbac232934
tomjaguarpaw/haskell-opaleye
Table.hs
# LANGUAGE FlexibleContexts # module Opaleye.SQLite.Table (module Opaleye.SQLite.Table, View, Writer, Table(Table), TableProperties) where import Opaleye.SQLite.Internal.Column (Column(Column)) import qualified Opaleye.S...
null
https://raw.githubusercontent.com/tomjaguarpaw/haskell-opaleye/b7aacc07c6392654cae439fc3b997620c3aa7a87/opaleye-sqlite/src/Opaleye/SQLite/Table.hs
haskell
| Example type specialization: @ queryTable :: Table w (Column a, Column b) -> Query (Column a, Column b) @ product type @Foo@: @ queryTable :: Table w (Foo (Column a) (Column b) (Column c)) -> Query (Foo (Column a) (Column b) (Column c)) @
# LANGUAGE FlexibleContexts # module Opaleye.SQLite.Table (module Opaleye.SQLite.Table, View, Writer, Table(Table), TableProperties) where import Opaleye.SQLite.Internal.Column (Column(Column)) import qualified Opaleye.S...
d919be004fc909defd1f7f3a31b96c390ca97578dff6ee4726497dbdc47e0ba0
ocaml-multicore/tezos
tx_rollup.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/tezt/tests/tx_rollup.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 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...
d0f43990603bfcfc8f9d18d5daf040ab8bdf9fc1b1482956693e507de16d4970
ocaml-ppx/ocamlformat
unclosed_if.ml
let x = if k
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/9324ea439a77b4f3a31e9302b97ce1812cf8f17d/vendor/parser-recovery/test/expect/structure/unclosed_if.ml
ocaml
let x = if k
490c5a8e86faf0a1404bca85df909e30f3489a895a3fc4cc91bfad456abc3372
ghc/packages-haskeline
Encoder.hs
| This module provides a wrapper for I / O encoding for the " old " and " new " ways . The " old " way uses iconv+utf8 - string . The " new " way uses the base library 's built - in encoding functionality . For the " new " way , we require ghc>=7.4.1 due to GHC bug # 5436 . This module exports opaque Encoder...
null
https://raw.githubusercontent.com/ghc/packages-haskeline/5f16b76168f13c6413413386efc44fb1152048d5/System/Console/Haskeline/Backend/Posix/Encoder.hs
haskell
| An 'ExternalHandle' is a handle which may or may not be in the correct mode for Unicode input/output. When the POSIX backend opens a file (or /dev/tty) it sets it permanently to the correct mode. sets it to the correct mode (e.g., for the duration of getInputLine); The correct mode is the locale encoding, set ...
| This module provides a wrapper for I / O encoding for the " old " and " new " ways . The " old " way uses iconv+utf8 - string . The " new " way uses the base library 's built - in encoding functionality . For the " new " way , we require ghc>=7.4.1 due to GHC bug # 5436 . This module exports opaque Encoder...
1b2fce68eb49b5dc8da872543b3a7b1e115c0c445403016700ca8b73b5cc4e59
YoshikuniJujo/funpaala
upper.hs
import Data.Char (toUpper) main :: IO () main = interact $ map toUpper
null
https://raw.githubusercontent.com/YoshikuniJujo/funpaala/5366130826da0e6b1180992dfff94c4a634cda99/samples/25_nml/upper.hs
haskell
import Data.Char (toUpper) main :: IO () main = interact $ map toUpper
978dfc39ea09ee5c1a44f0aee3910c2b01eeaa11089b86201dd6db7cd74410fc
acl2/acl2
remove-guard-holders@useless-runes.lsp
(BADGE-USERFN-STRUCTURE-ALISTP-IMPLIES-WEAK-BADGE-USERFN-STRUCTURE-ALISTP) (ILKS-PLIST-WORLDP-FORWARD-TO-PLIST-WORLDP) (ILKS-PLIST-WORLDP-FORWARD-TO-ALISTP-FOR-BADGE-USERFN-STRUCTURE (2750 110 (:DEFINITION APPLY$-BADGE-ALISTP-ILKS-T)) (1165 233 (:DEFINITION ASSOC-EQUAL)) (544 544 (:REWRITE DEFAULT-<-2)) (544 544 (:...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/system/.sys/remove-guard-holders%40useless-runes.lsp
lisp
(BADGE-USERFN-STRUCTURE-ALISTP-IMPLIES-WEAK-BADGE-USERFN-STRUCTURE-ALISTP) (ILKS-PLIST-WORLDP-FORWARD-TO-PLIST-WORLDP) (ILKS-PLIST-WORLDP-FORWARD-TO-ALISTP-FOR-BADGE-USERFN-STRUCTURE (2750 110 (:DEFINITION APPLY$-BADGE-ALISTP-ILKS-T)) (1165 233 (:DEFINITION ASSOC-EQUAL)) (544 544 (:REWRITE DEFAULT-<-2)) (544 544 (:...
e29e5de0f091f9d4abd4a8c401b2d7e9ffc636de15c825c98eee77d726c1fadb
futurice/haskell-mega-repo
Types.hs
{-# LANGUAGE DerivingVia #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Google.Types where import Data.Aeson.Types import Futurice.EnvConfig import Futurice.Generics import Futurice.Prelude import Network.Google.Auth import Prelude () import qualified Data.ByteString.Base64 as Bas...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/google-client/src/Google/Types.hs
haskell
# LANGUAGE DerivingVia # # LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Google.Types where import Data.Aeson.Types import Futurice.EnvConfig import Futurice.Generics import Futurice.Prelude import Network.Google.Auth import Prelude () import qualified Data.ByteString.Base64 as Base64 data GoogleCredentials = GoogleCredentials { clientId ...
986d682015e167bbadf20133617696d8424b04feb7e45de8a215fce4f6631dff
toyokumo/kintone-client
app_test.clj
(ns kintone-client.app-test (:require [clojure.core.async :refer [<!!]] [clojure.test :refer :all] [kintone-client.app :as app] [kintone-client.test-helper :as h] [kintone-client.types :as t])) (def ^:private app (rand-int 100)) (deftest get-app-test (is (= (t/->Kin...
null
https://raw.githubusercontent.com/toyokumo/kintone-client/32cf5abec1efa6d7ed5f33cf889535863358875b/test/kintone_client/app_test.clj
clojure
(ns kintone-client.app-test (:require [clojure.core.async :refer [<!!]] [clojure.test :refer :all] [kintone-client.app :as app] [kintone-client.test-helper :as h] [kintone-client.types :as t])) (def ^:private app (rand-int 100)) (deftest get-app-test (is (= (t/->Kin...
5df2e7c9f67c47a71c7dd5b76510aa257195f94c66987a78ba82a992606df764
puppetlabs/pcp-broker
shared.clj
(ns puppetlabs.pcp.broker.shared (:require [metrics.gauges :as gauges] [puppetlabs.experimental.websockets.client :as websockets-client] [puppetlabs.pcp.broker.connection :as connection :refer [Codec]] [puppetlabs.pcp.broker.websocket] [puppetlabs.pcp.broker.message :as...
null
https://raw.githubusercontent.com/puppetlabs/pcp-broker/7806c6a6045c406c256b2c9d6129382923ba3d03/src/puppetlabs/pcp/broker/shared.clj
clojure
Promise that resolves to the Connection after inventory response has been sent. This ensures no updates are sent before the initial response. the index of the next update to process (note that to get the offset (note that this index can overflow) Promise used to signal the inventory updates should stop Message s...
(ns puppetlabs.pcp.broker.shared (:require [metrics.gauges :as gauges] [puppetlabs.experimental.websockets.client :as websockets-client] [puppetlabs.pcp.broker.connection :as connection :refer [Codec]] [puppetlabs.pcp.broker.websocket] [puppetlabs.pcp.broker.message :as...
83bbdc690b6bf1113d908d6f91cb6c58551f5c6fa88f75409c866e76cc5f2c0b
simoncourtenage/quanthas
SimpleQuote.hs
Copyright ( C ) 2018 , ( ) This file is part of QuantHas , an open - source Haskell implementation of the QuantLib library for quantitative finance . is free software : you can redistribute it and/or modify it under the terms of the QuantHas license . You should have receiv...
null
https://raw.githubusercontent.com/simoncourtenage/quanthas/6e0b2cc9a60bb7d1709f98ed10d09aa6c071c8dd/src/QuantHas/Quotes/SimpleQuote.hs
haskell
Copyright ( C ) 2018 , ( ) This file is part of QuantHas , an open - source Haskell implementation of the QuantLib library for quantitative finance . is free software : you can redistribute it and/or modify it under the terms of the QuantHas license . You should have receiv...
d93ab51569381a3b96f3b146108927bbe85b72f5e8f4766e3e20b3af247198ca
johnlawrenceaspden/hobby-code
understanding_the_repl.clj
;; Understanding the REPL ;; A REPL is a subtle thing. Consider what happens when you type in 23 ;;user>23 23 The program reads in the sequence of characters 2 3 < return > , and prints the sequence of characters < return > ;;It looks very much as if nothing has happened at all! ;;But in fact, a great deal has ...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/understanding_the_repl.clj
clojure
Understanding the REPL A REPL is a subtle thing. user>23 It looks very much as if nothing has happened at all! But in fact, a great deal has happened. A REPL is a read-eval-print loop. Any interaction with it involves reading in a stream of characters, which are passed to the function read. The output from read is pa...
Consider what happens when you type in 23 23 The program reads in the sequence of characters 2 3 < return > , and prints the sequence of characters < return > Clojure would work in just the same way if it lived on a computer half - a - mile away , and you sent and recieved characters to it by code . So le...
d07348eadf61a297191ee6762914683d9dc16b077c533565a372f6b449632d8f
Netflix/PigPen
script.clj
;; ;; Copyright 2013 - 2015 Netflix , Inc. ;; 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 ...
null
https://raw.githubusercontent.com/Netflix/PigPen/18d461d9b2ee6c1bb7eee7324889d32757fc7513/pigpen-pig/src/main/clojure/pigpen/pig/script.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the speci...
Copyright 2013 - 2015 Netflix , Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns pigpen.pig.script "Contains functions for converting an expression graph into a Pig script Nothing in here will be used directly with normal PigPen usage. See pigpen.core and pigpen.pig " (:refer...
cdd47c9206d93e465f99afb29389a36bd59008345667af6de593af59e1f94b9a
kaizhang/bioinformatics-toolkit
Internal.hs
# LANGUAGE ScopedTypeVariables # {-# LANGUAGE Rank2Types #-} # LANGUAGE CPP # most of the codes in this file are directly copied from JuicyPixel module Bio.HiC.Visualize.Internal where #if !MIN_VERSION_base(4,8,0) import Foreign.ForeignPtr.Safe( ForeignPtr, castForeignPtr ) #else import Foreign.ForeignPtr( ForeignP...
null
https://raw.githubusercontent.com/kaizhang/bioinformatics-toolkit/89b8d1cdf4fa7b075794c37c070cab8ac27acfaf/bioinformatics-toolkit/src/Bio/HiC/Visualize/Internal.hs
haskell
# LANGUAGE Rank2Types # ^ Image width in number of pixel ^ Image height in number of pixel ^ Number of bit per sample ^ Kind of png image (greyscale, true color, indexed...) ^ Compression method used ^ Must be 0 ^ If the image is interlaced (for progressive rendering) | Data structure during real png loading/pa...
# LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # most of the codes in this file are directly copied from JuicyPixel module Bio.HiC.Visualize.Internal where #if !MIN_VERSION_base(4,8,0) import Foreign.ForeignPtr.Safe( ForeignPtr, castForeignPtr ) #else import Foreign.ForeignPtr( ForeignPtr, castForeignPtr ) #endif ...
e59730be7ef0cb57a9bf04578a680e5f7b701728948894329e1729e866678c60
jyh/metaprl
m_ast.mli
* This file defines the terms needed to represent the M AST . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2003 , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/experimental/compile/m_ast.mli
ocaml
Ignored Comments iform iform iform iform iform iform iform iform iform Top-level Numbers Variables Anonymous functions Tuple expressions Binary operations Relational operations Conditionals Subscripting Assignments Function application Let-definitions Recursive functions ...
* This file defines the terms needed to represent the M AST . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2003 , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU ...
f4fd2fa151ccf49576a12a5ca30f0ddf7ad835c6b8457e78744ffdbcf7dcda83
jeromesimeon/Galax
typing_errors.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/typing/typing_errors.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : typing_errors.mli , v 1.12 2007/02/01 22:08:55 simeon Exp $ open Typing_context open Xquery_type_core_ast open Xquery_core_ast val raise_wrong_expected_type_error : static_context -> cxtype -> cxtype -> cxtype val raise_axis_typ...
d59da9f03a571c3f317c3407fdcd0adb250ff41fec4876de8966a9c0a0fd2a81
runtimeverification/haskell-backend
Sup.hs
module Test.Data.Sup ( hprop_transitiveOrd, hprop_reflexiveOrd, hprop_antisymmetricOrd, hprop_reflexiveEq, hprop_symmetricEq, hprop_transitiveEq, hprop_negativeEq, hprop_associativeSemigroup, hprop_commutativeSemigroup, hprop_idempotentSemigroup, hprop_identityFunctor, hp...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/6c0551914330b34ced5dcbe9adf10a2880edc2e6/kore/test/Test/Data/Sup.hs
haskell
module Test.Data.Sup ( hprop_transitiveOrd, hprop_reflexiveOrd, hprop_antisymmetricOrd, hprop_reflexiveEq, hprop_symmetricEq, hprop_transitiveEq, hprop_negativeEq, hprop_associativeSemigroup, hprop_commutativeSemigroup, hprop_idempotentSemigroup, hprop_identityFunctor, hp...
ded8d2e5be535f986ed8ca95be900f46f031ecbb5d525823f86b66472f0d9645
NorfairKing/sydtest
Example.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE Sta...
null
https://raw.githubusercontent.com/NorfairKing/sydtest/da5ff27751ced020900d88dca43bb20cd3dc3c87/sydtest-persistent-sqlite/test/Test/Syd/Persistent/Example.hs
haskell
# LANGUAGE EmptyDataDecls # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE Undeci...
8b48ebea15825e403fe59c218f57b2bb0e7101a9ad06caeab927f3864b284fa8
KavehYousefi/Esoteric-programming-languages
main.lisp
Author : Date : 2022 - 03 - 28 ;; ;; Sources: ;; -> "" ;; -> "-nand-nor.html" ;; o Describes the logical "nor" operator. ;; -> "" ;; o Describes the logical "nor", or "joint denial", operator. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -- Declaration of ty...
null
https://raw.githubusercontent.com/KavehYousefi/Esoteric-programming-languages/aa891ca2ddfe6bee6aa1c3e46549a70612d2f6dc/Nors/Nors_001/main.lisp
lisp
Sources: -> "" -> "-nand-nor.html" o Describes the logical "nor" operator. -> "" o Describes the logical "nor", or "joint denial", operator. -- Declaration of types. -- ;; -- Implementation of interpreter. -- ;; ------...
Author : Date : 2022 - 03 - 28 (deftype list-of (&optional (element-type T)) "The ``list-of'' type defines a list of zero or more elements, each of which conforms to the ELEMENT-TYPE, defaulting to ``T''." (let ((predicate (gensym))) (declare (type symbol predicate)) (setf (symbol-function p...
ac29a95e22ae9fc848b3064d20dca62ef92aebdc220fb19723617feec988dc6e
jgoerzen/datapacker
Types.hs
Copyright ( C ) 2006 - 2008 < > This program is distributed in the hope that it will be useful , but WITHOUT ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU General Public License for more details . Copyright (C) 2006-2008 John Goe...
null
https://raw.githubusercontent.com/jgoerzen/datapacker/447d1439d67da3babf6df45b0526b17cc99078e4/Types.hs
haskell
Copyright ( C ) 2006 - 2008 < > This program is distributed in the hope that it will be useful , but WITHOUT ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU General Public License for more details . Copyright (C) 2006-2008 John Goe...
3c5586a5e90ed53fcec7bfbee2bc649d3155435e687c5bac8ee9113f30604518
rd--/hsc3
quit.help.hs
Sound.Sc3.Lang.Help.viewServerHelp "/quit"
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Server/quit.help.hs
haskell
Sound.Sc3.Lang.Help.viewServerHelp "/quit"
2ead56296774fa161f3ea621c25e1e30864b46fb8e91a7fb5e4c2ba9b1199339
launchdarkly/haskell-server-sdk
Internal.hs
module LaunchDarkly.Server.Config.Internal ( Config (..) , shouldSendEvents , ApplicationInfo , makeApplicationInfo , withApplicationValue , getApplicationInfoHeader ) where import Control.Monad.Logger (LoggingT) import Data.Generics.Product (getField) import Data.Set (Set) import Data.Text...
null
https://raw.githubusercontent.com/launchdarkly/haskell-server-sdk/b8642084591733e620dfc5c1598409be7cc40a63/src/LaunchDarkly/Server/Config/Internal.hs
haskell
| An object that allows configuration of application metadata. features, but does not affect feature flag evaluations. | Create a default instance | Set a new name / value pair into the application info instance. Values have the following restrictions: - Cannot be empty - Can only contain a-z, A-Z, 0-9, per...
module LaunchDarkly.Server.Config.Internal ( Config (..) , shouldSendEvents , ApplicationInfo , makeApplicationInfo , withApplicationValue , getApplicationInfoHeader ) where import Control.Monad.Logger (LoggingT) import Data.Generics.Product (getField) import Data.Set (Set) import Data.Text...
adbc81c3334c44f998d10f4ef5340ff0dd688802b09cf464c8e85e15569c69cd
fission-codes/fission
Types.hs
module Fission.Web.API.Relay.Types (Routes (..)) where import Servant.API.Generic import Servant.API.WebSocket import Web.DID.Types import Fission.Web.API.Prelude newtype Routes mode = Routes { socket :: mode :- Capture "did" DID :> WebSocket } deriving Generic
null
https://raw.githubusercontent.com/fission-codes/fission/ae177407dccc20be67948a901956b99f40d37ac8/fission-web-api/library/Fission/Web/API/Relay/Types.hs
haskell
module Fission.Web.API.Relay.Types (Routes (..)) where import Servant.API.Generic import Servant.API.WebSocket import Web.DID.Types import Fission.Web.API.Prelude newtype Routes mode = Routes { socket :: mode :- Capture "did" DID :> WebSocket } deriving Generic
e70a13fa45f3f885ffd54bdd90cee0cb24da2201ecd6c881c50469ab04db0cd4
nyu-acsys/drift
fold_fun_list.ml
let rec make_list n = if n <= 0 then [] else (fun m -> n + m) :: make_list (n - 1) let rec fold_right (f:(int->int)->(int->int)->int->int) (xs:(int->int) list) (init:int->int) = match xs with [] -> init | x::xs' -> f x (fold_right f xs' init) let compose (f:int->int) (g:int->int) (d:int) = f (g d)...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DOrder/list/fold_fun_list.ml
ocaml
let rec make_list n = if n <= 0 then [] else (fun m -> n + m) :: make_list (n - 1) let rec fold_right (f:(int->int)->(int->int)->int->int) (xs:(int->int) list) (init:int->int) = match xs with [] -> init | x::xs' -> f x (fold_right f xs' init) let compose (f:int->int) (g:int->int) (d:int) = f (g d)...
2a2e86a6377979cacd6c114f9091b882d832b1de6fac20e43df60214302a257d
manifest/jose-erlang
jose_pem.erl
%% ---------------------------------------------------------------------------- %% The MIT License %% Copyright ( c ) 2016 - 2017 < > %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal in the Software...
null
https://raw.githubusercontent.com/manifest/jose-erlang/9541a477eea6c4312ff0734b426e7ac7e3f658de/src/jose_pem.erl
erlang
---------------------------------------------------------------------------- The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to rights to use, copy, modify, merge, publish, distribute, sublicense, a...
Copyright ( c ) 2016 - 2017 < > deal in the Software without restriction , including without limitation the sell copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EX...