_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
8bbba5a8a0ccf07443ad84a48579645950d1b656a6d274476714557c3e550d0a
madjestic/Haskell-OpenGL-Tutorial
LoadShaders.hs
-------------------------------------------------------------------------------- -- | Module : LoadShaders Copyright : ( c ) 2013 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- Utilities for shader handling , adapted from which is ( c ) T...
null
https://raw.githubusercontent.com/madjestic/Haskell-OpenGL-Tutorial/9f685ddde9d6c5d2cc9c2c62f214ca0d43e717c7/tutorial10/NGL/LoadShaders.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable Red Book Authors. ------------------------------------------------------------------------------ --------------------------------------------------------------------...
Module : LoadShaders Copyright : ( c ) 2013 Maintainer : < > Utilities for shader handling , adapted from which is ( c ) The module NGL.LoadShaders ( ShaderSource(..), ShaderInfo(..), loadShaders ) where import Control.Exception import Control.Monad import qualified Data.ByteString a...
58e3a7098aabef672a391177aab3a4784baefb4d13e90c21fe86b67cee2d3f25
scrintal/heroicons-reagent
stop.cljs
(ns com.scrintal.heroicons.solid.stop) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M4.5 7.5a3 3 0 013-3h9a3 3 0 013 3v9a3 3 0 01-3 3h-9a3 3 0 01-3-3v-9z" :cl...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/stop.cljs
clojure
(ns com.scrintal.heroicons.solid.stop) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M4.5 7.5a3 3 0 013-3h9a3 3 0 013 3v9a3 3 0 01-3 3h-9a3 3 0 01-3-3v-9z" :cl...
c131757568684460478242cd5c22805aad469f1b5a04d1deaeb5c46e052d03eb
racket/libs
info.rkt
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "win32\\i386") (define copy-foreign-libs '("libpangowin32-1.0-0.dll" "zlib1.dll" "libjpeg-9.dll" "libpng16-16.dll" "libpixman-1-0.dll" "libcairo-2.dll" "libfreetype-6.dll" "libfontconfig-1....
null
https://raw.githubusercontent.com/racket/libs/ebcea119197dc0cb86be1ccbbfbe5806f7280976/draw-win32-i386-2/racket/draw/info.rkt
racket
#lang setup/infotab SPDX - License - Identifier : ( Apache-2.0 OR MIT ) (define install-platform "win32\\i386") (define copy-foreign-libs '("libpangowin32-1.0-0.dll" "zlib1.dll" "libjpeg-9.dll" "libpng16-16.dll" "libpixman-1-0.dll" "libcairo-2.dll" "libfreetype-6.dll" "libfontconfig-1....
3771716c8626ed65a909378dd94fff336b39c5eab0c1395f4cbd4faf92037a68
antoniogarrote/clj-ml
utils.clj
;; ;; Common utilities and functions @author ;; (ns #^{:author "Antonio Garrote <>" :skip-wiki true} clj-ml.utils (:import (java.io ObjectOutputStream ByteArrayOutputStream ByteArrayInputStream ObjectInputStream FileOutputStream FileInputStream) (java.s...
null
https://raw.githubusercontent.com/antoniogarrote/clj-ml/a6e3a41b7eed0c31ea344b286ebbeb0e81ce68bc/src/clj_ml/utils.clj
clojure
Common utilities and functions trying metrics Manipulation of array of options Serializing classifiers
@author (ns #^{:author "Antonio Garrote <>" :skip-wiki true} clj-ml.utils (:import (java.io ObjectOutputStream ByteArrayOutputStream ByteArrayInputStream ObjectInputStream FileOutputStream FileInputStream) (java.security NoSuchAlgorithmExcep...
791354e1f9781d0af19e7ebf808c0da7ad0f11403ea0d0301939210c5b7df61e
tek/chiasma
TmuxThunk.hs
module Chiasma.Data.TmuxThunk where import Chiasma . Codec . Decode ( DecodeFailure ) import Chiasma . Data . Cmd ( Cmd ( .. ) ) import Chiasma . Data . TmuxError ( TmuxError ( .. ) ) data TmuxThunk next = -- ∀ a . Read Cmd (Text -> Either DecodeFailure a) ([a] -> next) -- | -- Write Cmd (() -> next) --...
null
https://raw.githubusercontent.com/tek/chiasma/51751e19a416a9afe12f7797df8a67990b266240/packages/chiasma/lib/Chiasma/Data/TmuxThunk.hs
haskell
∀ a . Read Cmd (Text -> Either DecodeFailure a) ([a] -> next) | Write Cmd (() -> next) | Flush (() -> next) |
module Chiasma.Data.TmuxThunk where import Chiasma . Codec . Decode ( DecodeFailure ) import Chiasma . Data . Cmd ( Cmd ( .. ) ) import Chiasma . Data . TmuxError ( TmuxError ( .. ) ) data TmuxThunk next = Failed TmuxError deriving instance
90b6e9307cce26176099deaf1f4149d022a854fe768c0a2b83ac9f009da77b15
jordwalke/rehp
gl507.ml
Js_of_ocaml compiler * / * Copyright ( C ) 2017 Hugo Heuzard * Copyright ( C ) 2019 * * 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 ; ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/compiler/tests/gl507.ml
ocaml
Js_of_ocaml compiler * / * Copyright ( C ) 2017 Hugo Heuzard * Copyright ( C ) 2019 * * 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 ; ...
4515108be4a729cc86fc2288368569b4360b0af59caf80c88b9b4c75451b5757
atgreen/lisp-openshift
pkcs5.lisp
(in-package :crypto) (defgeneric derive-key (kdf passphrase salt iteration-count key-length)) PBKDF1 from RFC 2898 , section 5.1 (defclass pbkdf1 () ((digest :reader kdf-digest))) (defmethod shared-initialize :after ((kdf pbkdf1) slot-names &rest initargs &key digest &allo...
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/ironclad_0.30/src/pkcs5.lisp
lisp
Permit DIGEST to be NULL to indicate reinitializing the whole instance. Don't cons unnecessarily. (Although this depends how expensive this is good enough for now .
(in-package :crypto) (defgeneric derive-key (kdf passphrase salt iteration-count key-length)) PBKDF1 from RFC 2898 , section 5.1 (defclass pbkdf1 () ((digest :reader kdf-digest))) (defmethod shared-initialize :after ((kdf pbkdf1) slot-names &rest initargs &key digest &allo...
abb0568e0b8663d840b8e1b7efcd00d557fda5974c4c4baeb27a844982d3c98f
Clojure2D/clojure2d-examples
ray.clj
(ns rt4.the-next-week.ch05b.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction ^double time] RayProto (at [_ t] (v/ad...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch05b/ray.clj
clojure
(ns rt4.the-next-week.ch05b.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction ^double time] RayProto (at [_ t] (v/ad...
226c72f10946e087ab4f190e70cd384989ef715c848dc36078d2f96184f1d539
hugomg/scfgc
frontEnd.ml
open Core_kernel.Std open Types (* ----------- *) module NameId = Id.Make( ) type expr = NameId.t Interpolation.t type cmd = | Cmd_Const of string | Cmd_Dyn of expr type symbol_table = (string * NameId.t) list type bound_tree = BoundTree of pos * symbol_table * ( pos * NameId.t, ...
null
https://raw.githubusercontent.com/hugomg/scfgc/9604ef317a23ce51c46d8e5d03e6597081abc3cd/frontEnd.ml
ocaml
----------- --------- to keep chugging along after finding an error Commands with no quotes and no interpolations * are potentially an alias call --- non-exaustive pattern match found a just-created alias from an if statement keybinds aren't added to the toplevel just yet Has duplicate keybinds? ...
open Core_kernel.Std open Types module NameId = Id.Make( ) type expr = NameId.t Interpolation.t type cmd = | Cmd_Const of string | Cmd_Dyn of expr type symbol_table = (string * NameId.t) list type bound_tree = BoundTree of pos * symbol_table * ( pos * NameId.t, pos * cmd, ...
40b550d461c80b667527e316413d4079200853362c749d1274631f2e2e130248
Relph1119/sicp-solutions-manual
p1-42-compose.scm
(define (compose f g) (lambda (x) (f (g x))))
null
https://raw.githubusercontent.com/Relph1119/sicp-solutions-manual/f2ff309a6c898376209c198030c70d6adfac1fc1/src/practices/ch01/p1-42-compose.scm
scheme
(define (compose f g) (lambda (x) (f (g x))))
489a33a25142cb9e51d4419805b1704098ceee48ee79f0520733f113c5a9b83f
RunOrg/RunOrg
events.ml
(* © 2014 RunOrg *) open Std include type module (* A new wave is created. Includes a copy of all the data required to render the mail, because it will need to remain as-is just in case the original is edited afterwards. *) [ `GroupWaveCreated of < id : I.t ; pid : PId.t option ; ...
null
https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/sentMailLib/events.ml
ocaml
© 2014 RunOrg A new wave is created. Includes a copy of all the data required to render the mail, because it will need to remain as-is just in case the original is edited afterwards. The e-mail has actually been sent to the specified contact. A link in the e-mail was clicked or followed. The event ...
open Std include type module [ `GroupWaveCreated of < id : I.t ; pid : PId.t option ; mid : Mail.I.t ; gid : GId.t ; from : PId.t ; subject : Unturing.t ; text : Unturing.t option ; html : Unturing.t option ; custom : Json.t ; urls : String.Url.t list ; ...
68673e4689db5b9bfc4f5c949bb4e625bba1f647706e4f9a08754a7c87cae309
melange-re/melange
ext_json_noloc.ml
Copyright ( C ) 2017- , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later vers...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/ext/ext_json_noloc.ml
ocaml
* poor man's serialization since our parsing keep the original float representation, we just dump it as is, there is no cases like [nan] prerr_endline "WEIRD"; prerr_endline (string_of_int @@ Map_string.cardinal map );
Copyright ( C ) 2017- , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later vers...
00c66b7f04733f05b5152bdd10c5fedde1bcdc82b48fcc85909dec9dc1b05291
TristeFigure/shuriken
lazy_seq_tostring_test.clj
(ns shuriken.monkey-patches.lazy-seq-tostring-test (:require [clojure.test :refer :all] [shuriken.monkey-patches.lazy-seq-tostring])) ; (deftest test-lazy-seq-tostring ; (println "ici:" (.toString (lazy-seq [1 2 3]))) ; #_(is (= "#lazy()" ; (str))))
null
https://raw.githubusercontent.com/TristeFigure/shuriken/cd36dd2a4005c85260125d89d5a3f475d248e6e4/test/shuriken/monkey_patches/lazy_seq_tostring_test.clj
clojure
(deftest test-lazy-seq-tostring (println "ici:" (.toString (lazy-seq [1 2 3]))) #_(is (= "#lazy()" (str))))
(ns shuriken.monkey-patches.lazy-seq-tostring-test (:require [clojure.test :refer :all] [shuriken.monkey-patches.lazy-seq-tostring]))
76a62c0f32bb149b4e98cb2bc92eb745cd2e868f4affeba1e2dd941a153bf16b
BranchTaken/Hemlock
formattableIntf.ml
(** Formattable type functor signature. *) * pretty printing function . module type SMono = sig type t val pp: t -> (module Fmt.Formatter) -> (module Fmt.Formatter) (** [pp t formatter] applies a formatted representation of [t] to the [formatter]. *) end (** Polymorphic Fmt pretty printing function. *) modul...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a21b462fe7f70475591d2ffae185c91552bf6372/bootstrap/src/basis/formattableIntf.ml
ocaml
* Formattable type functor signature. * [pp t formatter] applies a formatted representation of [t] to the [formatter]. * Polymorphic Fmt pretty printing function. * [pp pp_a t formatter] applies a formatted representation of [t] to the [formatter] using [pp_a] for the parametric type value [a]. * Polymorphi...
* pretty printing function . module type SMono = sig type t val pp: t -> (module Fmt.Formatter) -> (module Fmt.Formatter) end module type SPoly = sig type 'a t val pp: ('a -> (module Fmt.Formatter) -> (module Fmt.Formatter)) -> 'a t -> (module Fmt.Formatter) -> (module Fmt.Formatter) end module type ...
6430cdad95e69b72ee11c0fa59493359e5d5e1c7c832961dd9684dcead800cb3
maranget/hevea
html.ml
(***********************************************************************) (* *) (* HEVEA *) (* *) , projet PARA , INR...
null
https://raw.githubusercontent.com/maranget/hevea/226eac8c506f82a600d453492fbc1b9784dd865f/html.ml
ocaml
********************************************************************* HEVEA ...
, projet PARA , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Misc open HtmlCommon open Printf exception Error of string let addvsize x = flags.vsize <- flags.vsize ...
a4bd51de86e5fbfed709435fea326b1c9755454eb72842e6723e5f6346260d82
jeromesimeon/Galax
code_util_ridlist.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/code_selection/code/code_util_ridlist.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : code_util_ridlist.ml , v 1.3 2007/02/01 22:08:45 simeon Exp $ type rid = int type rid_list = | Full_RidList | Empty_RidList | Regular_RidList of rid list let is_empty_rid_list rl = match rl with | Empty_RidList -> tr...
6f929207710dbadc00aa87ba1bf35d7a988240061d2d23d9133f189896446e5b
pa-ba/Rattus
Game.hs
# LANGUAGE TypeOperators # module Main where import Behaviour import Rattus.ToHaskell import Graphics.Gloss.Interface.Pure.Game import Graphics.Gloss.Data.Color import Rattus noInput = Input False False NoMove 0 type World = (List (Float :* Float),Float,Trans Input (List Pos :* Float) ,Input) initial :: World init...
null
https://raw.githubusercontent.com/pa-ba/Rattus/c941094684395cbf442a8008b8f9e72f98760eef/examples/game-multi/src/Game.hs
haskell
# LANGUAGE TypeOperators # module Main where import Behaviour import Rattus.ToHaskell import Graphics.Gloss.Interface.Pure.Game import Graphics.Gloss.Data.Color import Rattus noInput = Input False False NoMove 0 type World = (List (Float :* Float),Float,Trans Input (List Pos :* Float) ,Input) initial :: World init...
e3ed3ef4d39a2c5808c3fd4056dc1c48ec744e90f55e975d20e1a3fb9f4fb64c
db48x/xe2
drez.lisp
;;; drez.lisp --- 7DRL Copyright ( C ) 2010 Author : < > ;; Keywords: ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) an...
null
https://raw.githubusercontent.com/db48x/xe2/7896fcc69f5c6e28eaf6f6abb7966d6663370a66/drez/drez.lisp
lisp
drez.lisp --- 7DRL Keywords: This program is free software; you can redistribute it and/or modify (at your option) any later version. 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...
Copyright ( C ) 2010 Author : < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (defpackage :drez (:documentation "dRez is a hybrid dan...
94e4c9cfd9712dda72d8a073a02a6436cb8ccf1aa6e85f2707d2066f517ecba2
ocaml-gospel/gospel
record.mli
type t = { n : int; s : string } @ function f ( x : t ): unit = match x with | { n = p ; s=("alpha"|"beta"|"gamma " ) } - > ( ) | { n = p ; s= " " } - > ( ) match x with | { n=p; s=("alpha"|"beta"|"gamma") } -> () | { n=p; s="" } -> () *) { gospel_expected| [ 125 ] File " record.m...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/patterns/negative/record.mli
ocaml
type t = { n : int; s : string } @ function f ( x : t ): unit = match x with | { n = p ; s=("alpha"|"beta"|"gamma " ) } - > ( ) | { n = p ; s= " " } - > ( ) match x with | { n=p; s=("alpha"|"beta"|"gamma") } -> () | { n=p; s="" } -> () *) { gospel_expected| [ 125 ] File " record.m...
ddaa738eebb3cf664f490312306fe69a0079a35e8df1e158c7e2c38dbc84a3a3
Opetushallitus/ataru
application_field_common.cljs
(ns ataru.application-common.application-field-common (:require [markdown.core :refer [md->html]] [markdown.transformers :refer [transformer-vector]] [reagent.core :as reagent] [re-frame.core :as re-frame] [clojure.string :as string] [goog.string :as s] ...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/405e7dffaa80b9886a9b6d630750b5a8e448fc93/src/cljs/ataru/application_common/application_field_common.cljs
clojure
(ns ataru.application-common.application-field-common (:require [markdown.core :refer [md->html]] [markdown.transformers :refer [transformer-vector]] [reagent.core :as reagent] [re-frame.core :as re-frame] [clojure.string :as string] [goog.string :as s] ...
715eec45f234cb08dc6d743f9926c56afef3408e4f7d3acc2ea628469bea88a8
mumuki/mulang
FunctionalInspectorSpec.hs
module FunctionalInspectorSpec (spec) where import Test.Hspec import Language.Mulang.Inspector.Functional import Language.Mulang.Parsers.Haskell spec :: Spec spec = do describe "usesComposition" $ do describe "when constant assignment" $ do it "is True when composition is pre...
null
https://raw.githubusercontent.com/mumuki/mulang/92684f687566b2adafb331eae5b5916e2d90709e/spec/FunctionalInspectorSpec.hs
haskell
module FunctionalInspectorSpec (spec) where import Test.Hspec import Language.Mulang.Inspector.Functional import Language.Mulang.Parsers.Haskell spec :: Spec spec = do describe "usesComposition" $ do describe "when constant assignment" $ do it "is True when composition is pre...
a0259176de87299c0f5c9df000369219fbf7add91969f9163af2ca4ec1abeeb9
ruricolist/FXML
xml-name-rune-p.lisp
;;;; xml-name-rune-p -- character class definitions ;;;; This file is part of the FXML parser , released under Lisp - LGPL . ;;;; See file COPYING for details. ;;;; Author : < > (in-package :fxml) #.(funcall (compile nil '(lambda () (let ((+max+ #xD800) (base-char-ranges #((#x0041...
null
https://raw.githubusercontent.com/ruricolist/FXML/a0e73bb48ef03adea94a55986cc27f522074c8e1/xml/xml-name-rune-p.lisp
lisp
xml-name-rune-p -- character class definitions See file COPYING for details. we were always dealing with a sorted vector... bin search it
This file is part of the FXML parser , released under Lisp - LGPL . Author : < > (in-package :fxml) #.(funcall (compile nil '(lambda () (let ((+max+ #xD800) (base-char-ranges #((#x0041 #x005A) (#x0061 #x007A) (#x00C0 #x00D6) (#x00D8 #x00F6) (#x00F8 #x00FF) (#x0100 #x0131) ...
4af7dcc21924eaf461fd8106b491e6a9bb4c96ae3d39e2f97087f7e7e465c8c5
facebookarchive/pfff
visitor_js.mli
open Ast_js (* the hooks *) type visitor_in = { kexpr: (expr -> unit) * visitor_out -> expr -> unit; kstmt: (st -> unit) * visitor_out -> st -> unit; kprop: (property -> unit) * visitor_out -> property -> unit; kinfo: (tok -> unit) * visitor_out -> tok -> unit; } and visitor_out = any -> unit val defau...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_js/parsing/visitor_js.mli
ocaml
the hooks poor's man fold
open Ast_js type visitor_in = { kexpr: (expr -> unit) * visitor_out -> expr -> unit; kstmt: (st -> unit) * visitor_out -> st -> unit; kprop: (property -> unit) * visitor_out -> property -> unit; kinfo: (tok -> unit) * visitor_out -> tok -> unit; } and visitor_out = any -> unit val default_visitor : vis...
97870b4445ffc5f39a9b49366e3f80bd03b11811e0460807869ff14a31e82b2a
nomeata/haskell-via-sokoban
data-type-maze.hs
import CodeWorld wall, ground, storage, box :: Picture wall = colored gray (solidRectangle 1 1) ground = colored yellow (solidRectangle 1 1) storage = solidCircle 0.3 & ground box = colored brown (solidRectangle 1 1) data Tile = Wall | Ground | Storage | Box | Blank drawTile :: Tile -> Picture drawTile Wa...
null
https://raw.githubusercontent.com/nomeata/haskell-via-sokoban/0ae9d6e120c2851eca158c01e08e2c4c7f2b06d0/code/data-type-maze.hs
haskell
import CodeWorld wall, ground, storage, box :: Picture wall = colored gray (solidRectangle 1 1) ground = colored yellow (solidRectangle 1 1) storage = solidCircle 0.3 & ground box = colored brown (solidRectangle 1 1) data Tile = Wall | Ground | Storage | Box | Blank drawTile :: Tile -> Picture drawTile Wa...
a705de612d8dcb22a718ab1090c54cef5fb832e1e27a815df356209407ecb238
jvf/scalaris
clocks.erl
2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distribu...
null
https://raw.githubusercontent.com/jvf/scalaris/c069f44cf149ea6c69e24bdb08714bda242e7ee0/src/time/clocks.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(clocks). -author(''). -vsn('$Id$'). -export([init/0, get_monotonic_clock/0, get_monotonic_clock_res/0, ...
5dbe8afb7cf8e7518bf34c35925719c2903db376b50d3baf453e6f886f6bc7bb
gmr/huesos-de-vaquero
huesos_home.erl
-module(huesos_home). -behavior(cowboy_http_handler). -export([init/3]). -export([handle/2]). -export([terminate/3]). init(_Type, Req, _Opts) -> {ok, Req, undefined_state}. handle(Req, State) -> {ok, Body} = index_dtl:render([]), Headers = [{<<"Content-Type">>, <<"text/html">>}], {ok, Req2} = cowboy...
null
https://raw.githubusercontent.com/gmr/huesos-de-vaquero/de12e7e0c474fbac4bbf3dcdcb403a4cb206a1b6/src/huesos_home.erl
erlang
-module(huesos_home). -behavior(cowboy_http_handler). -export([init/3]). -export([handle/2]). -export([terminate/3]). init(_Type, Req, _Opts) -> {ok, Req, undefined_state}. handle(Req, State) -> {ok, Body} = index_dtl:render([]), Headers = [{<<"Content-Type">>, <<"text/html">>}], {ok, Req2} = cowboy...
5e0fcd6f10ade19b3aefc46bded0f9d3ea37a5b6df3c361a076a0d29edb68e5c
input-output-hk/rscoin-haskell
OnlyUsers.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # {-# LANGUAGE TypeOperators #-} import Control.Concurrent.Async (forConcurrently) import Data.Maybe (fromMaybe) import qualified Data.Text.IO as TIO import Formatti...
null
https://raw.githubusercontent.com/input-output-hk/rscoin-haskell/109d8f6f226e9d0b360fcaac14c5a90da112a810/bench/Remote/OnlyUsers.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # workaround to make stylish-haskell work :(
# LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # import Control.Concurrent.Async (forConcurrently) import Data.Maybe (fromMaybe) import qualified Data.Text.IO as TIO import Formatting (build, fixed, int, sformat, stext, ...
57334f1b912ecb1ee406a006253466009ed0a79e5123d40e89dcd71346b4f8b2
binaryage/chromex
image_writer_private.clj
(ns chromex.ext.image-writer-private "Use the chrome.image_writer API to write images to removable media. See the design doc for a detailed description of this API. * available since Chrome 36" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refe...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts_private/chromex/ext/image_writer_private.clj
clojure
-- events ----------------------------------------------------------------------------------------------------------------- docs: /#tapping-events -- convenience ------------------------------------------------------------------------------------------------------------ --------------------------------------------...
(ns chromex.ext.image-writer-private "Use the chrome.image_writer API to write images to removable media. See the design doc for a detailed description of this API. * available since Chrome 36" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refe...
f1fce2ad75fe9974fc76826f267c4b9e7764c3c96223802297cf8c75242a5a1e
0install/0install
xString.mli
Copyright ( C ) 2018 , the README file for details , or visit . * See the README file for details, or visit . *) (** Extra string utilities. *) val starts_with : string -> string -> bool (** [starts_with s prefix] is [true] iff [s] starts with [prefix]. *) val ends_with : string -> string -> bool * [ s...
null
https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/support/xString.mli
ocaml
* Extra string utilities. * [starts_with s prefix] is [true] iff [s] starts with [prefix]. * [split_pair re s] splits [s] at the left-most occurance of [re] and returns the pair of the parts before and after the match. Returns [None] if [re] does not occur in [s]. * [split_pair_safe] is like [split_pair], but ra...
Copyright ( C ) 2018 , the README file for details , or visit . * See the README file for details, or visit . *) val starts_with : string -> string -> bool val ends_with : string -> string -> bool * [ s suffix ] is [ true ] iff [ s ] ends with [ suffix ] . val tail : string -> int -> string * [ tail s...
2dc415a89d5c1deb8ce48468aa8ca9fab32ab26c25b87ba0addd792c2b083231
mstksg/backprop-learn
mnist-ghcjs.hs
{-# LANGUAGE OverloadedStrings #-} import Reflex.Dom main :: IO () main = mainWidget $ el "div" $ do t <- textInput def dynText $ _textInput_value t
null
https://raw.githubusercontent.com/mstksg/backprop-learn/59aea530a0fad45de6d18b9a723914d1d66dc222/demo/mnist-ghcjs.hs
haskell
# LANGUAGE OverloadedStrings #
import Reflex.Dom main :: IO () main = mainWidget $ el "div" $ do t <- textInput def dynText $ _textInput_value t
6b954c3e8c36d212691019706ec09505b33a450e3b0062a9cbcd68af6de47c42
eugeneia/athens
package.lisp
(defpackage :trivia.benchmark (:use :cl :alexandria :iterate :trivia :trivia.level1) (:export #:run-benchmarks) (:shadow :next))
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/trivia-20180711-git/bench/package.lisp
lisp
(defpackage :trivia.benchmark (:use :cl :alexandria :iterate :trivia :trivia.level1) (:export #:run-benchmarks) (:shadow :next))
7711b8d9f919493a558e6d1c433d31d275e1dd2a03320ebec9e2b9b0929332bb
kar7hik/mfcc
utils.lisp
(in-package #:mfcc) (defun range-helper (start stop step) (iter (for i :from start :to stop :by step) (collect i result-type 'vector))) (defun range (start &key (stop nil stop-supplied-p) (step 1)) "Creates an array for given start and stop conditions. default step value is 1. The resulting array will be...
null
https://raw.githubusercontent.com/kar7hik/mfcc/26852ec7e7ffb6cfd78fb11fbe64ddb0c390a406/src/utils.lisp
lisp
(type (simple-array single-float) a b)) (defun matrix-multiplication (A B) ;; (declare (type (simple-array double-float *) A B)) (let* ((m (car (array-dimensions A))) :element-type 'double-float))) (declare (type fixnum m n l)) (iter (iter (for k :fr...
(in-package #:mfcc) (defun range-helper (start stop step) (iter (for i :from start :to stop :by step) (collect i result-type 'vector))) (defun range (start &key (stop nil stop-supplied-p) (step 1)) "Creates an array for given start and stop conditions. default step value is 1. The resulting array will be...
330f06863b1649708c6a17e5b12000444b391bfa6ac486a80618b320f5b93b02
benoitc/hackney
hackney_pool_tests.erl
-module(hackney_pool_tests). -include_lib("eunit/include/eunit.hrl"). -include("hackney_lib.hrl"). %% This seems necessary to list the tests including the generator dummy_test() -> ?assertEqual(ok, ok). multipart_test_() -> {setup, fun start/0, fun stop/1, [{timeout, 120, queue_timeout()}, {timeo...
null
https://raw.githubusercontent.com/benoitc/hackney/e7b4a268745a3ca919177d3c63e32d88f96a7f05/test/hackney_pool_tests.erl
erlang
This seems necessary to list the tests including the generator
-module(hackney_pool_tests). -include_lib("eunit/include/eunit.hrl"). -include("hackney_lib.hrl"). dummy_test() -> ?assertEqual(ok, ok). multipart_test_() -> {setup, fun start/0, fun stop/1, [{timeout, 120, queue_timeout()}, {timeout, 120, checkout_timeout()}, {timeout, 120, connect_timeou...
9c6be7ddf15465faa6068427db0051cba11e661c16f4899576422e35754678d5
apache/couchdb-erlfdb
erlfdb_02_anon_fdbserver_test.erl
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 License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-erlfdb/74a31ce5a14be60b5cd2062da771deff71a06599/test/erlfdb_02_anon_fdbserver_test.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 limitations...
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(erlfdb_02_anon_fdbserver_test). -include_lib("eunit/include/eunit.hrl"). basic_init_test() -> {ok, ClusterFile} = erlfdb_util:init_test_cluste...
6a1dcbc02b625d15e1ad971f840fddddee32aef61e7af549dc2f76815d59847d
mirleft/ocaml-tls
writer.ml
open Packet open Core open Cstruct let (<+>) = Cstruct.append let assemble_protocol_version_int buf version = let major, minor = pair_of_tls_version version in set_uint8 buf 0 major; set_uint8 buf 1 minor let assemble_protocol_version version = let buf = create 2 in assemble_protocol_version_int buf versio...
null
https://raw.githubusercontent.com/mirleft/ocaml-tls/fa3a2efee2e38be27047ee28df0a843b45ea2cdf/lib/writer.ml
ocaml
type, only 0 registered a list of point formats, we support type 0 = uncompressed unconditionally keep 0x03 0x03 on wire compression methods, completely useless see above, header desired length extension length padding extension header negative size is not good padding extension header useless comp...
open Packet open Core open Cstruct let (<+>) = Cstruct.append let assemble_protocol_version_int buf version = let major, minor = pair_of_tls_version version in set_uint8 buf 0 major; set_uint8 buf 1 minor let assemble_protocol_version version = let buf = create 2 in assemble_protocol_version_int buf versio...
3d12cc6e3100696ad88cae0e891fba85b303a50b5bb88605a6845b47d6c330c8
rabbitmq/rabbitmq-management-agent
rabbit_mgmt_storage.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mgmt_storage). -behaviour(gen_serve...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-management-agent/d5951e181fb78dcd4c6a9d90762d0fe0a832e1a8/src/rabbit_mgmt_storage.erl
erlang
ETS owner
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_storage). -behaviour(gen_server2). -...
6b8831c367a0c4033b1d72622f805c3a9be7587f21ee22b9a1725c165519fd05
ocaml-ppx/ppx_tools_versioned
ast_convenience_410.ml
open Migrate_parsetree.Ast_410 (* This file is part of the ppx_tools package. It is released *) under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi open Parsetree open Asttypes open Location open Ast_helper module Label = struct type t = A...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_tools_versioned/00a0150cdabfa7f0dad2c5e0e6b32230d22295ca/ast_convenience_410.ml
ocaml
This file is part of the ppx_tools package. It is released
open Migrate_parsetree.Ast_410 under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi open Parsetree open Asttypes open Location open Ast_helper module Label = struct type t = Asttypes.arg_label type desc = Asttypes.arg_label = Nolabel ...
655445273beb7f7dda1d6e0a617067425389b4981b6d61b502deffbb7c5ac55f
gafiatulin/codewars
Suffixes 2.hs
-- String Suffixes / module Codewars.Exercise.Suffixes where import Data.List (tails) stringSuffix :: String -> Int stringSuffix s = sum . map (f s) . tails $ s where f _ [] = 0 f (x:xs) (y:ys) | x == y = 1 + f xs ys | otherwise = 0
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/Suffixes%202.hs
haskell
String Suffixes
/ module Codewars.Exercise.Suffixes where import Data.List (tails) stringSuffix :: String -> Int stringSuffix s = sum . map (f s) . tails $ s where f _ [] = 0 f (x:xs) (y:ys) | x == y = 1 + f xs ys | otherwise = 0
ca7f4fd972a07c298da98d264f74b8a52bb45bca400c18a94428dbca3e7e079c
mark-gerarts/nature-of-code
sketch.lisp
(defpackage :nature-of-code.forces.example-7 (:export :start-sketch) (:use :cl :trivial-gamekit) (:import-from :cl-bodge :vector-length :normalize)) (in-package :nature-of-code.forces.example-7) (defvar *width* 600) (defvar *height* 400) (defvar *black* (vec4 0 0 0 1)) (defvar *gray* (vec4 0.5 0.5 0.5 0.4)) (d...
null
https://raw.githubusercontent.com/mark-gerarts/nature-of-code/4f8612e18a2a62012e44f08a8e0a4f8aec21a1ec/02.%20Forces/Example%202.7%20-%20Attraction%20with%20many%20movers/sketch.lisp
lisp
Make the radius dependent on the mass of the mover. Constrain the distance to prevent large values when the mover gets really close. F = G (m1 * m2) / r^2
(defpackage :nature-of-code.forces.example-7 (:export :start-sketch) (:use :cl :trivial-gamekit) (:import-from :cl-bodge :vector-length :normalize)) (in-package :nature-of-code.forces.example-7) (defvar *width* 600) (defvar *height* 400) (defvar *black* (vec4 0 0 0 1)) (defvar *gray* (vec4 0.5 0.5 0.5 0.4)) (d...
f0c70ae412db54ce10a871262635692802c0e3c4c47bfbc6f974d09c65dbf16b
ajkavanagh/vimwiki-publishing-system
Dates.hs
module Lib.Dates (parseDate) where import Control.Applicative.Combinators (choice) import Data.Time.Clock (UTCTime) import Data.Time.Format (defaultTimeLocale, parseTimeM) {--| This module parses date/times in as many ways as possible -} dateTimeForm...
null
https://raw.githubusercontent.com/ajkavanagh/vimwiki-publishing-system/c358ea03bcdb576ce4a7a4e42ac38ba5e1816c7b/src/Lib/Dates.hs
haskell
-| This module parses date/times in as many ways as possible
module Lib.Dates (parseDate) where import Control.Applicative.Combinators (choice) import Data.Time.Clock (UTCTime) import Data.Time.Format (defaultTimeLocale, parseTimeM) dateTimeFormats = [ "%Y-%m-%dT%H:%M:%S%Q%Z" , "%Y-%m-%dT%H:%M:%S...
ed076d663948aa4de9e6a713a6ce44d3518adb031b45e4a9df242524b1817dc7
haroldcarr/learn-haskell-coq-ml-etc
Ch06_Nameless_Rep_of_Terms.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Ch06_Nameless_Rep_of_Terms where import Protolude type Var = Text data Term = TmTrue | TmFalse | TmIf Term Term Term | TmVar Var Int | TmAbs Var Term | TmApp Term T...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/f2ce69e9f80a32dc12de2b0d6bfbbcdc32534792/foundations/book/2002-TAPL-2005-ATAPL/tapl/src/Ch06_Nameless_Rep_of_Terms.hs
haskell
# LANGUAGE OverloadedStrings # This expects Abs to have bound names. ----------------------------------------------------------------------------
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module Ch06_Nameless_Rep_of_Terms where import Protolude type Var = Text data Term = TmTrue | TmFalse | TmIf Term Term Term | TmVar Var Int | TmAbs Var Term | TmApp Term Term deriving (Eq, Show) type Con...
937898993f318ae0705bb30e3d4e98b77f6359e3ad69376865021c3efd0d6b08
samply/blaze
error.clj
(ns blaze.middleware.fhir.error "Converts exceptional completed futures into an OperationOutcome response." (:require [blaze.handler.util :as handler-util])) (defn wrap-error [handler] (fn [request respond _] (handler request respond #(respond (handler-util/error-response %)))))
null
https://raw.githubusercontent.com/samply/blaze/a2cfdd8d37b92c7c454dc2322301b6a5188e578f/modules/rest-util/src/blaze/middleware/fhir/error.clj
clojure
(ns blaze.middleware.fhir.error "Converts exceptional completed futures into an OperationOutcome response." (:require [blaze.handler.util :as handler-util])) (defn wrap-error [handler] (fn [request respond _] (handler request respond #(respond (handler-util/error-response %)))))
c698f1092269256ec244bab5d64d13e3341f77bdf8c32e97f2186b410819951d
coccinelle/coccinelle
adjacency.mli
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/parsing_cocci/adjacency.mli
ocaml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
2790016722133efcc72d58b86fa1e1a1e46576e94673d1d94a82323585128d83
lispcord/lispcord
user.lisp
(in-package :lispcord.http) (defmethod from-id (id (c (eql :user)) &optional (bot *client*)) (let ((u (getcache-id id :user))) (if u u (cache :user (discord-req (str-concat "users/" id) :bot bot))))) (defmethod edit ((u lc:user) (user lc:user) &optional (bot *c...
null
https://raw.githubusercontent.com/lispcord/lispcord/448190cc503a0d7e59bdc0ffddb2e9dba0a706af/src/http/user.lisp
lisp
(in-package :lispcord.http) (defmethod from-id (id (c (eql :user)) &optional (bot *client*)) (let ((u (getcache-id id :user))) (if u u (cache :user (discord-req (str-concat "users/" id) :bot bot))))) (defmethod edit ((u lc:user) (user lc:user) &optional (bot *c...
c88af09a8f1b3fd6e451eaaa7e6d279dfd7a59d75158c8a35caac7a166af0995
backtracking/ocamlgraph
merge.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2012 , and (* ...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/merge.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2012 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking module ty...
22844f06badfb30001f26bc1ea58d2c24bcff603c6d82a0a3a050d4e39da4993
hadolint/hadolint
DL3034.hs
module Hadolint.Rule.DL3034 (rule) where import Hadolint.Rule import qualified Hadolint.Shell as Shell import Language.Docker.Syntax rule :: Rule Shell.ParsedShell rule = dl3034 <> onbuild dl3034 # INLINEABLE rule # dl3034 :: Rule Shell.ParsedShell dl3034 = simpleRule code severity message check where code = ...
null
https://raw.githubusercontent.com/hadolint/hadolint/6c4632387a3485a9b7e1bf46c58da697178e02e2/src/Hadolint/Rule/DL3034.hs
haskell
# INLINEABLE dl3034 #
module Hadolint.Rule.DL3034 (rule) where import Hadolint.Rule import qualified Hadolint.Shell as Shell import Language.Docker.Syntax rule :: Rule Shell.ParsedShell rule = dl3034 <> onbuild dl3034 # INLINEABLE rule # dl3034 :: Rule Shell.ParsedShell dl3034 = simpleRule code severity message check where code = ...
036e5674528ecf8903971337bb34ac4f7d235d73b37e4c3522d973aab43ef9f3
PrecursorApp/precursor
canvas.cljs
(ns frontend.components.canvas (:require [cljs.core.async :refer [put!]] [clojure.set :as set] [clojure.string :as str] [datascript.core :as d] [frontend.auth :as auth] [frontend.camera :as cameras] [frontend.clipboard :as clipboard] ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src-cljs/frontend/components/canvas.cljs
clojure
layers are always denominated in absolute coordinates transforms are applied to handle panning and zooming may need to add [""], split can return empty array debug method for showing text with bounding box TODO: figure out what to do with this title (when invalid? (dom/title nil (str "This action...
(ns frontend.components.canvas (:require [cljs.core.async :refer [put!]] [clojure.set :as set] [clojure.string :as str] [datascript.core :as d] [frontend.auth :as auth] [frontend.camera :as cameras] [frontend.clipboard :as clipboard] ...
03ae71ca639765add45d1cb19577684272b33d391a8461f37039a0f633b91689
nikita-volkov/rerebase
RealFracMethods.hs
module GHC.Float.RealFracMethods ( module Rebase.GHC.Float.RealFracMethods ) where import Rebase.GHC.Float.RealFracMethods
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/GHC/Float/RealFracMethods.hs
haskell
module GHC.Float.RealFracMethods ( module Rebase.GHC.Float.RealFracMethods ) where import Rebase.GHC.Float.RealFracMethods
1fd94faf0a20c954dc78ba94715d8ed0068284a496005c9cc53cd1ccda1535a2
laurocaetano/programming-in-haskell
3.hs
To execute this file , just run : runhaskell 3.hs -- Define a function product that produces the product of a list of numbers, and show using your definition that product [ 2 , 3 , 4 ] = 24 . prod :: Num a => [a] -> a prod [] = 1 prod (x:xs) = x * prod xs main :: IO() main = do putStrLn . show $ prod [2, 3, 4]...
null
https://raw.githubusercontent.com/laurocaetano/programming-in-haskell/8b54f802c3949fab8bcb7460ab37229f0c52449a/ch-01/3.hs
haskell
Define a function product that produces the product of a list of numbers,
To execute this file , just run : runhaskell 3.hs and show using your definition that product [ 2 , 3 , 4 ] = 24 . prod :: Num a => [a] -> a prod [] = 1 prod (x:xs) = x * prod xs main :: IO() main = do putStrLn . show $ prod [2, 3, 4] 24
954f4a2eba77ce7f6877649c4e45568a2f395102bee5b8368ff80513bd7887e8
webyrd/probKanren
mk.scm
;;; This file was generated by writeminikanren.pl Generated at 2007 - 10 - 25 15:24:42 (define-syntax lambdag@ (syntax-rules () ((_ (p) e) (lambda (p) e)))) (define-syntax lambdaf@ (syntax-rules () ((_ () e) (lambda () e)))) (define-syntax run* (syntax-rules () ((_ (x) g ...) (run #f (x) g ...)))...
null
https://raw.githubusercontent.com/webyrd/probKanren/00cd62c8211a8a210099c36be961b8927b298ce8/attic/mk.scm
scheme
This file was generated by writeminikanren.pl (() () ()) ; empty constraint store subst uniform flip constraint solving goes here (fixpoint algorithm)
Generated at 2007 - 10 - 25 15:24:42 (define-syntax lambdag@ (syntax-rules () ((_ (p) e) (lambda (p) e)))) (define-syntax lambdaf@ (syntax-rules () ((_ () e) (lambda () e)))) (define-syntax run* (syntax-rules () ((_ (x) g ...) (run #f (x) g ...)))) (define-syntax rhs (syntax-rules () ((_ x...
949f4c6e43230a5dc237b275b864c895cc3eb7092141d960f2ed3b1f00c9c08b
NetComposer/nkdocker
nkdocker_tar.erl
%% Module based on an old erl_tar.erl, but returning binaries and very simplified %% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 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 %%...
null
https://raw.githubusercontent.com/NetComposer/nkdocker/1cdb22beaa4bad5eded3ebddd6256caa062c8a97/src/nkdocker_tar.erl
erlang
Module based on an old erl_tar.erl, but returning binaries and very simplified %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...
Copyright Ericsson AB 1997 - 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(nkdocker_tar). -export([add/2]). ...
3fb3926e00342ee9127932b74bc1fff12b1d9fb7a1cd339f4dbbd48fba12f82e
ocaml/Zarith
zarith_top.ml
This file is part of the Zarith library . It is distributed under LGPL 2 licensing , with static linking exception . See the LICENSE file included in the distribution . Contributed by . This file is part of the Zarith library . It is distributed under LGPL 2 licensing, with static linki...
null
https://raw.githubusercontent.com/ocaml/Zarith/39df015463f2797256dfb12440ed8f6c2dfd59cc/zarith_top.ml
ocaml
This file is part of the Zarith library . It is distributed under LGPL 2 licensing , with static linking exception . See the LICENSE file included in the distribution . Contributed by . This file is part of the Zarith library . It is distributed under LGPL 2 licensing, with static linki...
391341d4bdb4dc563d298cc9e41d9191f8a19563ba2482a47e56a3821554e8a7
mirage/irmin
reference.mli
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin-git/reference.mli
ocaml
* The type for Git references. Use the {!Branch} module to only deal with [`Branch] values.
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
46e57d8d62790307ed6ffe149ed097bbe110fdc25853cc2705df96a3acd65a2f
racket/typed-racket
vector-ref2.rkt
#;#; #<<END TR opt: vector-ref2.rkt 2:0 (vector-ref (vector 1 2 3) 0) -- vector END #<<END 1 END #lang typed/scheme #:optimize #reader typed-racket-test/optimizer/reset-port (vector-ref (vector 1 2 3) 0)
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/optimizer/tests/vector-ref2.rkt
racket
#;
#<<END TR opt: vector-ref2.rkt 2:0 (vector-ref (vector 1 2 3) 0) -- vector END #<<END 1 END #lang typed/scheme #:optimize #reader typed-racket-test/optimizer/reset-port (vector-ref (vector 1 2 3) 0)
62f9d9ba4ec9ce35c2be1d28676f28a59a897cd77d2b7f25ea6abba708a15803
facebook/flow
layout_test.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/parser_utils/output/__tests__/layout_test.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
a67379a91cba175c13fd701a03962bb278a92463f5a16b169bb3417160473c3e
Bogdanp/racket-avro
info.rkt
#lang info (define license 'BSD-3-Clause) (define collection "avro") (define deps '("base" "avro-lib")) (define build-deps '("racket-doc" "scribble-lib")) (define implies '("avro-lib")) (define scribblings '(("avro-manual.scrbl")))
null
https://raw.githubusercontent.com/Bogdanp/racket-avro/5116bb993df52563f15aeade74f65110501d9007/avro/info.rkt
racket
#lang info (define license 'BSD-3-Clause) (define collection "avro") (define deps '("base" "avro-lib")) (define build-deps '("racket-doc" "scribble-lib")) (define implies '("avro-lib")) (define scribblings '(("avro-manual.scrbl")))
08ecf9b419048d1edff0c4a02459297fc883448976561448def54112c8fc57ee
AlexCharlton/site-generator
package.lisp
package.lisp (defpackage #:site-generator (:nicknames :sg) (:use #:cl #:iterate #:let-plus #:alexandria #:cl-fad #:cl-ppcre #:bordeaux-threads #:cl-who #:local-time) (:import-from #:osicat #:make-link #:delete-directory #:file-kind #:unmerge-pathnames) (:export #:main-asdf-build-wrapper) (:shadowing-impo...
null
https://raw.githubusercontent.com/AlexCharlton/site-generator/a827cfeccc72527de44ec048f1b9dd703eb6fe8f/src/package.lisp
lisp
package.lisp (defpackage #:site-generator (:nicknames :sg) (:use #:cl #:iterate #:let-plus #:alexandria #:cl-fad #:cl-ppcre #:bordeaux-threads #:cl-who #:local-time) (:import-from #:osicat #:make-link #:delete-directory #:file-kind #:unmerge-pathnames) (:export #:main-asdf-build-wrapper) (:shadowing-impo...
af6e99814e7297a1b4bb8faeceb8baf88c3a388913ca1cd93b285dc1bdd580b0
realark/vert
static-sprite.lisp
(in-package :recurse.vert) ;;;; sprite structs and helpers @export-structure (defstruct (sprite-source (:constructor %make-sprite-source)) "Source rectangle for a sprite. w and h may be nil to specify 100%." (x 0 :type (integer 0 *)) (y 0 :type (integer 0 *)) (w nil :type (or null (integer 1 *))) (h nil :ty...
null
https://raw.githubusercontent.com/realark/vert/4cb88545abc60f1fba4a8604ce85e70cbd4764a2/src/graphics/static-sprite.lisp
lisp
sprite structs and helpers sprite class Copies will be passed through to the sprite's internal quad. NOTE: consing x y w h
(in-package :recurse.vert) @export-structure (defstruct (sprite-source (:constructor %make-sprite-source)) "Source rectangle for a sprite. w and h may be nil to specify 100%." (x 0 :type (integer 0 *)) (y 0 :type (integer 0 *)) (w nil :type (or null (integer 1 *))) (h nil :type (or null (integer 1 *)))) @e...
481a3f16fb0a4cf2dbeca68541b79e2652a46fe7c5e014aff82eb3176f810e3e
fdopen/uwt
echo_tcp.ml
open Lwt.Infix let server_port = 9009 let server_ip4 = "127.0.0.1" let server_backlog = 32 let client_buf_size = 1024 module U = Uwt module T = U.Tcp let echo_client c = let buf = Bytes.create client_buf_size in let rec iter () = T.read ~buf c >>= function | 0 -> Lwt.return_unit | len -> T.writ...
null
https://raw.githubusercontent.com/fdopen/uwt/44276aa6755b92eddc9ad58662a968afad243e8b/examples/echo_tcp.ml
ocaml
open Lwt.Infix let server_port = 9009 let server_ip4 = "127.0.0.1" let server_backlog = 32 let client_buf_size = 1024 module U = Uwt module T = U.Tcp let echo_client c = let buf = Bytes.create client_buf_size in let rec iter () = T.read ~buf c >>= function | 0 -> Lwt.return_unit | len -> T.writ...
94b2c95d997d0c26784e55eec4179ca3e02f46825b2ad38401b064a32c029ce3
lread/test-doc-blocks
example_md_cljs_test.cljs
(ns example-md-cljs-test (:require clojure.test clojure.string [lread.test-doc-blocks.runtime :include-macros] [goog.math :as math]) (:import goog.events.EventType)) (clojure.test/deftest block-0001 (clojure.test/testing "doc/example.md - line 222 - Specifying The Platform - ...
null
https://raw.githubusercontent.com/lread/test-doc-blocks/e336406af51b30b8e7fe1a97b858f0f4eb2e2eb6/test-resources/expected/test-doc-blocks/test/example_md_cljs_test.cljs
clojure
this code block will generate tests under example-md-cljs-test ns to a .cljs file
(ns example-md-cljs-test (:require clojure.test clojure.string [lread.test-doc-blocks.runtime :include-macros] [goog.math :as math]) (:import goog.events.EventType)) (clojure.test/deftest block-0001 (clojure.test/testing "doc/example.md - line 222 - Specifying The Platform - ...
a1a07bda40d90fa207ea64ec74bff3742f59c93d26b59566d6abb9647e2ec56a
haskelling/aoc2020
6a.hs
import AOC main = interactg $ sum . map (length . nub . concat)
null
https://raw.githubusercontent.com/haskelling/aoc2020/0f0e44ad16d3eda4add1f05684070dd161010d75/6a.hs
haskell
import AOC main = interactg $ sum . map (length . nub . concat)
deeeb88ab96b64ea648c73c09b46fa1d02ab193cd1590ac74c29a09c2d56b540
clojure-finance/clojure-backtesting
project.clj
(defproject clojure-backtesting "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/data.csv "1.0.0"] [co...
null
https://raw.githubusercontent.com/clojure-finance/clojure-backtesting/468f431e135b8891b5f6787b905b8e3008cae50d/project.clj
clojure
-time [table "0.5.0"]
(defproject clojure-backtesting "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/data.csv "1.0.0"] [co...
7a5bab4580c557cf363322965d3da9cddb82339a40fdf17297f8e3ad5445051c
helpshift/kodai
bundle.clj
(ns kodai.bundle (:require [sniper.snarf :as analyser] [clojure.set :as set] [hara.data.nested :as nested] [kodai.util :as util])) (defrecord Bundle []) (defmethod print-method Bundle [v w] (.write w (str "#bundle" (vec (keys v))))) (defn pack "converts sniper forms into kod...
null
https://raw.githubusercontent.com/helpshift/kodai/b04961a45039401b6e2eebf8afc0600a19c9f76b/src/kodai/bundle.clj
clojure
(ns kodai.bundle (:require [sniper.snarf :as analyser] [clojure.set :as set] [hara.data.nested :as nested] [kodai.util :as util])) (defrecord Bundle []) (defmethod print-method Bundle [v w] (.write w (str "#bundle" (vec (keys v))))) (defn pack "converts sniper forms into kod...
10ac76d8644deb5236c61fba20cc7453271ccdd56ac7eb5d318a64a8b90741c3
raviksharma/bartosz-basics-of-haskell
putqstr.hs
-- Define a function putQStrLn that outputs a string surrounded by quotes, '"' putQStrLn str = do putChar '"' putStr str putChar '"' putChar '\n' main = putQStrLn "You can quote me."
null
https://raw.githubusercontent.com/raviksharma/bartosz-basics-of-haskell/86d40d831f61415ef0022bff7fe7060ae6a23701/03-pure-functions-laziness-io/putqstr.hs
haskell
Define a function putQStrLn that outputs a string surrounded by quotes, '"'
putQStrLn str = do putChar '"' putStr str putChar '"' putChar '\n' main = putQStrLn "You can quote me."
1748db9aba0cb3c668f21efd277c7a97565058002a816a18fe9b89ceba5bffcd
earl-ducaine/cl-garnet
motif-scrolling-labeled-box.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- ;;; The Garnet User Interface Development Environment . ;;; ;;; This code was written as part of the Garnet project at Carnegie Mellon University , and has been placed in the public domain . If you are using this code or any...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/gadgets/motif-scrolling-labeled-box.lisp
lisp
Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- This code was written as part of the Garnet project at please contact to be put on the mailing list. Motif-Scrolling-Labeled-Box (scrollable string field in a box) Features and operation of the Motif-Scrolling-Labeled-Box: to b...
The Garnet User Interface Development Environment . Carnegie Mellon University , and has been placed in the public domain . If you are using this code or any part of Garnet , 1 ) The Motif - Scrolling - Labeled - Box allows left - right - scrollable text 2 ) Click the left mouse button on the stri...
dc61f779fcf48628578f253a95c09bd2620b2c68412156b0efaf9138d8560a39
dbuenzli/react
test.ml
--------------------------------------------------------------------------- Copyright ( c ) 2009 The react programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
null
https://raw.githubusercontent.com/dbuenzli/react/aebf35179964e73a7ef557c6a56175c7abdb9947/test/test.ml
ocaml
Tests the event e has occurences occs. Tests the signal s goes through vals. Tests that we went through all vals or occs To initialize asserts of dynamic creations. To keep references for the g.c. (warning also stops the given nodes) To artificially raise the rank of events and signals Event tests always...
--------------------------------------------------------------------------- Copyright ( c ) 2009 The react programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c)...
88d1a6970912f63d0cc93f9f4b1eb5cb6b5c927e2041afb7f09b11b148410da3
projectodd/proddbot
releases.clj
(ns proddbot.releases (:require [clj-http.lite.client :as http] [clojure.string :as str] [immutant.scheduling :as s] [irclj.core :as irc] [taoensso.timbre :as log] [proddbot.colors :as c]) (:import [java.util Date TimeZone] java.text.SimpleDateF...
null
https://raw.githubusercontent.com/projectodd/proddbot/e93e97708bb2a2fc2158dcdeb621cab3981ee649/src/proddbot/releases.clj
clojure
(ns proddbot.releases (:require [clj-http.lite.client :as http] [clojure.string :as str] [immutant.scheduling :as s] [irclj.core :as irc] [taoensso.timbre :as log] [proddbot.colors :as c]) (:import [java.util Date TimeZone] java.text.SimpleDateF...
54d468cbf7bc82906a1c5c9c6e146c011dc2180ca8cb3366fd316219dcfd9584
ferd/ReVault
prop_dirmodel.erl
%%% @doc %%% Test suite for the `dirmodel' generator library with various calls %%% as required. %%% @end -module(prop_dirmodel). -include_lib("proper/include/proper.hrl"). -compile(export_all). -define(DIR, "/tmp/fake/"). % should not write there for real %%%%%%%%%%%%%%%%%% %%% PROPERTIES %%% %%%%%%%%%%%%%%%%%% prop_...
null
https://raw.githubusercontent.com/ferd/ReVault/2e02ee5e959510a52ece6d30c72e28731748f262/apps/revault/test/prop_dirmodel.erl
erlang
@doc Test suite for the `dirmodel' generator library with various calls as required. @end should not write there for real PROPERTIES %%%
-module(prop_dirmodel). -include_lib("proper/include/proper.hrl"). -compile(export_all). prop_added_file_found(doc) -> "Any file added to the model can be found back in it"; prop_added_file_found(opts) -> [{numtests, 10}]. prop_added_file_found() -> ?FORALL({Model, Op}, ?LET({M, _Ops}, dirmodel...
02275c37417a26ed778310468054d1c0ff62b3dc06e1d46203cb6e96e7cfddd0
tek/polysemy-hasql
AnyTest.hs
module Polysemy.Hasql.Test.AnyTest where import Polysemy.Db.Data.Rep (Auto, PrimaryKey, UidRep) import Polysemy.Db.Data.DbError (DbError) import qualified Polysemy.Db.Data.Store as Store import Polysemy.Db.Data.Store (Store) import qualified Polysemy.Db.Data.StoreQuery as StoreQuery import Polysemy.Db.Data.StoreQuery ...
null
https://raw.githubusercontent.com/tek/polysemy-hasql/443ccf348bb8af0ec0543981d58af8aa26fc4c10/packages/hasql/integration/Polysemy/Hasql/Test/AnyTest.hs
haskell
module Polysemy.Hasql.Test.AnyTest where import Polysemy.Db.Data.Rep (Auto, PrimaryKey, UidRep) import Polysemy.Db.Data.DbError (DbError) import qualified Polysemy.Db.Data.Store as Store import Polysemy.Db.Data.Store (Store) import qualified Polysemy.Db.Data.StoreQuery as StoreQuery import Polysemy.Db.Data.StoreQuery ...
d2ed6b658763a7c603790d050792b368b8b44efbf38b525a43b6df4ea2e4ac9a
Shinmera/vpetjam
genes.lisp
(in-package #:org.shirakumo.fraf.vpetjam) (defparameter *genomes* '(:hue :speed :face :body :hat :growth)) (defun gene-growth (body) ;; Growth is special. Use this instead of gene-initial. Between roughly 0.5 and 4.0 . (if (< 0 body) (1+ (* 1.5 (log body))) 0.5)) (defun gene-initial (genome) (declare (type k...
null
https://raw.githubusercontent.com/Shinmera/vpetjam/7abac0c6862b47abf7a2f931d31df6ebf5dba007/genes.lisp
lisp
Growth is special. Use this instead of gene-initial. Growth initial isn't used anywhere. Growth potential isn't used anywhere. These just make nice graphs. Hue is the distance from the default value, so a maximum of pi. Nothing special about vegetable types or growth speed.
(in-package #:org.shirakumo.fraf.vpetjam) (defparameter *genomes* '(:hue :speed :face :body :hat :growth)) (defun gene-growth (body) Between roughly 0.5 and 4.0 . (if (< 0 body) (1+ (* 1.5 (log body))) 0.5)) (defun gene-initial (genome) (declare (type keyword genome)) (case genome (:speed 3.0) (:hue ...
165a8c3dc5b3c511838813ff2c02038413a13c2fbb383f1ed80927623f8da36c
aantron/dream
csrf.ml
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Dream = Dream_pure module Cipher = Dream__cipher.Cipher let field_name = "dream.csrf" let default_valid_for =...
null
https://raw.githubusercontent.com/aantron/dream/1da1452bfc735ea0f9bb381c4532142ad7b44640/src/server/csrf.ml
ocaml
TODO Don't raise exceptions.
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Dream = Dream_pure module Cipher = Dream__cipher.Cipher let field_name = "dream.csrf" let default_valid_for =...
be4960e4b19b72b5799d3847b281acb14744ebad787fa61e6ecd5fa99d7572d0
mmcqd/datatt
nbe.ml
open Core module Syn = Syntax module Dom = Domain exception EquateError of string let error s = raise (EquateError s) let var x tp = Dom.Neutral {ne = Var x ; tp} let rec eval (env : Dom.env) (s : Syn.t) : Dom.t = printf " EVAL % s\n " ( Syn.show s ) ; match s with | Var x -> (try Dom.Env.find_exn env x w...
null
https://raw.githubusercontent.com/mmcqd/datatt/3810a3f390417a48cee7bab6e46ee08783986326/src/nbe.ml
ocaml
printf "-----\nEQUATING\n%s\nWITH\n%s\nAT\n%s\n-----\n" (Dom.show e1) (Dom.show e2) (Dom.show tp);
open Core module Syn = Syntax module Dom = Domain exception EquateError of string let error s = raise (EquateError s) let var x tp = Dom.Neutral {ne = Var x ; tp} let rec eval (env : Dom.env) (s : Syn.t) : Dom.t = printf " EVAL % s\n " ( Syn.show s ) ; match s with | Var x -> (try Dom.Env.find_exn env x w...
5c978f890061d87f3171b6c82183c5667c957e820041d7a5a8d5a3fdedb880a7
haskell-waargonaut/waargonaut
JString.hs
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # -- | Types and functions fo...
null
https://raw.githubusercontent.com/haskell-waargonaut/waargonaut/ba1dbbc170c2279749ea29bc8aaf375bdb659ad2/src/Waargonaut/Types/JString.hs
haskell
# LANGUAGE DeriveTraversable # # LANGUAGE RankNTypes # | Types and functions for handling JSON strings. * Types $setup >>> :set -XOverloadedStrings >>> import Data.Function (($)) >>> import Data.Either(Either (..), isLeft) >>> import qualified Data.Vector as V >>> import Data.Text.Lazy.Builder (t...
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeFamilies # module Waargonaut.Types.JString ( JString , JString' (..) , AsJString (..) , _JStringText ...
7347012139cb02ee176eda5a3ed285dad83b53fa08b71bb4fbe990d05875f114
karlhof26/gimp-scheme
Pin-Stripe Border.scm
Pin - Stripe Border.scm ; ; Adds a dark and light stripe border to the current layer described by Oregonian on GIMP Chat ; Version 1.0 July 2011 Version 1.1 July 2020 karlhof26 ; License : GNU Public License , version 2 or later ; The GNU Public License is ava...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/b9a5353991d53c7a87d7d850a5c945cbbcb432b9/Pin-Stripe%20Border.scm
scheme
Adds a dark and light stripe border to the current layer 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. def...
Pin - Stripe Border.scm described by Oregonian on GIMP Chat Version 1.0 July 2011 Version 1.1 July 2020 karlhof26 License : GNU Public License , version 2 or later The GNU Public License is available at edited for 2.8.15 (define (build-brush-circle brushNam...
8e726c5028ef55869f9f49725fcc901dd1a583da0fe5f5413e01b7de71fd72c1
andersfugmann/amqp-client
amqp.ml
include Amqp_client_async
null
https://raw.githubusercontent.com/andersfugmann/amqp-client/e6e92225b91742fa8777a02ad9b59a1dde45e752/async/test/amqp.ml
ocaml
include Amqp_client_async
3e5022d3a835b46d46813cd17da9cb99fb917970afe15de3bad93aff6eeeb613
arttuka/reagent-material-ui
account_box_sharp.cljs
(ns reagent-mui.icons.account-box-sharp "Imports @mui/icons-material/AccountBoxSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def account-box-sharp (crea...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/account_box_sharp.cljs
clojure
(ns reagent-mui.icons.account-box-sharp "Imports @mui/icons-material/AccountBoxSharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def account-box-sharp (crea...
d022e9c735cbd56ce3dd72866f72c9426cfcf2388e01a64da9fc2d5f09ecd5a5
clj-commons/useful
map_test.clj
(ns flatland.useful.map-test (:refer-clojure :exclude [update]) (:use clojure.test flatland.useful.map)) (deftest test-assoc-or (is (= {:a 1 :b 2 :c 3} (-> {:a 1 :b nil} (assoc-or :a 2) (assoc-or :b 2) (assoc-or :c 3))))) (deftest test-keyed (let [a 1 b 2] (...
null
https://raw.githubusercontent.com/clj-commons/useful/dc5cdebf8983a2e2ea24ec8951fbb4dfb037da45/test/flatland/useful/map_test.clj
clojure
(ns flatland.useful.map-test (:refer-clojure :exclude [update]) (:use clojure.test flatland.useful.map)) (deftest test-assoc-or (is (= {:a 1 :b 2 :c 3} (-> {:a 1 :b nil} (assoc-or :a 2) (assoc-or :b 2) (assoc-or :c 3))))) (deftest test-keyed (let [a 1 b 2] (...
6fe5e1576334351859d402784ca834904389ba204396aa3f06afd4756675675f
MarcKaufmann/congame
xexpr.rkt
#lang racket/base (require racket/format racket/match racket/pretty racket/string (only-in web-server/http/xexpr response/xexpr) (only-in xml valid-char?)) (provide response/xexpr* validate-xexpr) (define (validate-xexpr e #:on-attr-err [on-attr-...
null
https://raw.githubusercontent.com/MarcKaufmann/congame/fc76b5b7c27186c38b62944e4f30eca6ad2eee9c/congame-core/components/xexpr.rkt
racket
In addition to validating the attributes, if `on-attr-err' returns #f for any attribute, then that attribute is skipped in the resulting xexpr.
#lang racket/base (require racket/format racket/match racket/pretty racket/string (only-in web-server/http/xexpr response/xexpr) (only-in xml valid-char?)) (provide response/xexpr* validate-xexpr) (define (validate-xexpr e #:on-attr-err [on-attr-...
5d63a9876a592b3c20e5ab84217ab5b52ab971958a99cced709ca52dd1f0af26
RefactoringTools/wrangler
wrangler_anti_unification.erl
%% @hidden @private -module(wrangler_anti_unification). -export([anti_unification/2,anti_unification_with_score/3,generate_anti_unifier/3, generate_anti_unifier_and_num_of_new_vars/3,subst_sanity_check/2]). -include("../include/wrangler_internal.hrl"). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/wrangler_anti_unification.erl
erlang
@hidden %% % %% [{syntaxTree(), syntaxTree()}] |none. %% Try to find an anti-unifier satis...
@private -module(wrangler_anti_unification). -export([anti_unification/2,anti_unification_with_score/3,generate_anti_unifier/3, generate_anti_unifier_and_num_of_new_vars/3,subst_sanity_check/2]). -include("../include/wrangler_internal.hrl"). -spec anti_unification([syntaxTree()]|syntaxTree ( ) , [ ( ) ) - > ant...
253096420c80e2e216461b6d3e72f27f00280e1aa562c6acd4c78c80ed538b3b
merijn/Belewitte
Query.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module Query ( CTE(..) ...
null
https://raw.githubusercontent.com/merijn/Belewitte/7f7198f374028988193b2293fe512ba43cb6031c/benchmark-analysis/src/Query.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module Query ( CTE(..) , Converter(..) , MonadConvert , MonadQuery , Region , Query(..) , explai...
9dbba9f0b34a154d7525f3d412fc898930709e06af1789146cf7e8d5c56d23ca
benoitc/couchbeam
gen_changes.erl
%%% -*- erlang -*- %%% This file is part of couchbeam released under the MIT license . %%% See the NOTICE for more information. %% @doc gen_changes CouchDB continuous changes consumer behavior %% This behaviour allws you to create easily a server that consume %% Couchdb continuous changes -module(gen_changes). -in...
null
https://raw.githubusercontent.com/benoitc/couchbeam/8dcba7209b040d7225aceddc2956680340937790/src/gen_changes.erl
erlang
-*- erlang -*- See the NOTICE for more information. @doc gen_changes CouchDB continuous changes consumer behavior This behaviour allws you to create easily a server that consume Couchdb continuous changes @doc create a gen_changes process as part of a supervision tree. The function should be called, directly or...
This file is part of couchbeam released under the MIT license . -module(gen_changes). -include("couchbeam.hrl"). -behavior(gen_server). -export([start_link/4]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([behavi...
9b4e8b7610113348d2ee4de1bfc6bba6eaf7674db526e8552bb745ceb5658b78
erlang-ls/erlang_ls
code_navigation_undefined.erl
-module(code_navigation_undefined). -export([f0/0, f1/1]). f0() -> #undef_rec{undef_field = ?UNDEF_MACRO}. f1(#undef_rec{undef_field = ?UNDEF_MACRO}) -> ok.
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/9b8caac8b4675a7e4e39eaba85b54ddff2124646/apps/els_lsp/priv/code_navigation/src/code_navigation_undefined.erl
erlang
-module(code_navigation_undefined). -export([f0/0, f1/1]). f0() -> #undef_rec{undef_field = ?UNDEF_MACRO}. f1(#undef_rec{undef_field = ?UNDEF_MACRO}) -> ok.
b098728628601d0a35862fe45943dd413f0600832528d2936c4b3594691611eb
tonsky/Clojure-Sublimed
error_undefined.cljc
(defn f []) (defn g [] (let [x undefined-1 y undefined-2])) (defn h [])
null
https://raw.githubusercontent.com/tonsky/Clojure-Sublimed/9ee85cc384d24e3a6e09820e70d0f247c02ab43b/test_repl/error_undefined.cljc
clojure
(defn f []) (defn g [] (let [x undefined-1 y undefined-2])) (defn h [])
aed776539db6133e76a338669ffda3bb09468d6ae538f59df1b5719419556efd
tonyg/racket-explorer
info.rkt
#lang setup/infotab (define name "explorer") (define homepage "-explorer") (define deps '("base" "gui-lib")) (define build-deps '("rackunit-lib"))
null
https://raw.githubusercontent.com/tonyg/racket-explorer/2a1836d01a7ff2ed025a67cc5f06c38b56776b2d/explorer/info.rkt
racket
#lang setup/infotab (define name "explorer") (define homepage "-explorer") (define deps '("base" "gui-lib")) (define build-deps '("rackunit-lib"))
477030494135ac71c98cb2fac92ba0249c4418c7ffd2db1783aa714cc6b7cbbf
xh4/web-toolkit
lexer.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - ppcre / lexer.lisp , v 1.35 2009/09/17 19:17:31 edi Exp $ ;;; The lexer's responsibility is to convert the regex string into a ;;; sequence of tokens which are in turn consumed by the parser. ;;;...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cl-ppcre-20190521-git/lexer.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- The lexer's responsibility is to convert the regex string into a sequence of tokens which are in turn consumed by the parser. (with a little help from the parser) how many register groups it has opened so far. (The latter is necessary for interpreting...
$ Header : /usr / local / cvsrep / cl - ppcre / lexer.lisp , v 1.35 2009/09/17 19:17:31 edi Exp $ The lexer is aware of 's ' extended mode ' and it also ' knows ' strings like " \\10 " correctly . ) Copyright ( c ) 2002 - 2009 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , E...
75dd48809204ba190b1d489d6a1c898aa3363d846a29d67415a2b3b3b342ea0a
funcool/rumext
build.clj
(ns build (:refer-clojure :exclude [compile]) (:require [clojure.tools.build.api :as b])) (def lib 'funcool/rumext) (def version (format "2022.04.10-%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) v...
null
https://raw.githubusercontent.com/funcool/rumext/188844cb9c467e06e27601f0f0d5f8b02357db5d/build.clj
clojure
(ns build (:refer-clojure :exclude [compile]) (:require [clojure.tools.build.api :as b])) (def lib 'funcool/rumext) (def version (format "2022.04.10-%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) v...
0c9d4d655258c24fb8bf07295bcb11e0b6323e137e1eb19eff658082f59b9cb5
clojure-interop/google-cloud-clients
CloudStorageConfiguration.clj
(ns com.google.cloud.storage.contrib.nio.CloudStorageConfiguration "Configuration for CloudStorageFileSystem instances." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.storage.contrib.nio CloudStorageConfiguration])) (def *-default "Static Constant. type: com.google.cloud.storag...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.storage/src/com/google/cloud/storage/contrib/nio/CloudStorageConfiguration.clj
clojure
(ns com.google.cloud.storage.contrib.nio.CloudStorageConfiguration "Configuration for CloudStorageFileSystem instances." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.storage.contrib.nio CloudStorageConfiguration])) (def *-default "Static Constant. type: com.google.cloud.storag...
195b5ce78d34bf4abd9b5a5330ac6a880d68574b6adbd3da2e598a4958831945
footprintanalytics/footprint-web
embed.clj
(ns metabase.util.embed "Utility functions for public links and embedding." (:require [buddy.core.codecs :as codecs] [buddy.sign.jwt :as jwt] [cheshire.core :as json] [clojure.string :as str] [hiccup.core :refer [html]] [metabase.models.setting :as setting...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/util/embed.clj
clojure
The library will reject tokens with a created at timestamp in the future, so to account for clock if `jwt/unsign` throws an Exception rethrow it in a format that's friendlier to our API
(ns metabase.util.embed "Utility functions for public links and embedding." (:require [buddy.core.codecs :as codecs] [buddy.sign.jwt :as jwt] [cheshire.core :as json] [clojure.string :as str] [hiccup.core :refer [html]] [metabase.models.setting :as setting...
8db47f900f27c6473a4fd96aea0b4765c2f2ee6172f952725330f51b355d071f
coq/coq
checkTypes.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/19ac066ffdf4e7fbd03f1b81763d2e6aae5a7278/checker/checkTypes.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
e7f05b5194dd212f32f2be4bee2028ba76555414c9cde87d9ffd5dd10f379df4
meetalik8/pcpf
repeathigherorder.hs
higher order function in haskell to find square , double , half repeat::(a->a)->a->a repeat f x=f(f x) square x=x*x double x=x*2 half x=x/2 main=do putStrLn"Enter a number to repeat square,double and half" ain<-getLine let a=(read ain::Float) print(Main.repeat square a) print(Main.repeat do...
null
https://raw.githubusercontent.com/meetalik8/pcpf/2f048eb5244c469db52893dc2e383816062f4423/haskell/repeathigherorder.hs
haskell
higher order function in haskell to find square , double , half repeat::(a->a)->a->a repeat f x=f(f x) square x=x*x double x=x*2 half x=x/2 main=do putStrLn"Enter a number to repeat square,double and half" ain<-getLine let a=(read ain::Float) print(Main.repeat square a) print(Main.repeat do...
deddc569b8d7ad7f628338ca985ca8430170c4f3396a5d4dfdf6ed8b2871afb7
opencog/opencog
relex2logic.scm
(define-module (opencog nlp relex2logic)) (use-modules (srfi srfi-1)) (use-modules (opencog)) (use-modules (opencog nlp)) (use-modules (opencog nlp oc)) (use-modules (opencog ure)) (load "relex2logic/rule-utils.scm") (load "relex2logic/r2l-utilities.scm") (load "relex2logic/tv-utilities.scm") (load "relex2logic/post...
null
https://raw.githubusercontent.com/opencog/opencog/008cdbe7f192fc66b3deadf6400f8edb54533f36/opencog/nlp/relex2logic/relex2logic.scm
scheme
----------------------------------------------------------------------- they generated. Some rules return singletons. The its contents, else return a list holding A-LINK. XXX maybe this should be part of the ure module?? This applies all the rules in the R2L-en-RuleBase to the RelEx parse, and returns a cleaned ...
(define-module (opencog nlp relex2logic)) (use-modules (srfi srfi-1)) (use-modules (opencog)) (use-modules (opencog nlp)) (use-modules (opencog nlp oc)) (use-modules (opencog ure)) (load "relex2logic/rule-utils.scm") (load "relex2logic/r2l-utilities.scm") (load "relex2logic/tv-utilities.scm") (load "relex2logic/post...
227e50876b34e9d58a1bfd3667c3fade518fbb989032dde68ed97e8146fc6a41
haroldcarr/learn-haskell-coq-ml-etc
Lib.hs
# OPTIONS_GHC -fno - warn - orphans # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Lib where import qualified Control.Exception as CE import qualified Data.Aeson as JS import qualified Data.HashMap.Strict as HMap import qualified Data.Scientific as Sci import qualified...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/logging/katip/src/Lib.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- test :: Stack () ---------------------------------------------------------------------------- BEGIN : only necessary when giving directly as context END : only necessary when giving directly as context
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE TemplateHaskell # module Lib where import qualified Control.Exception as CE import qualified Data.Aeson as JS import qualified Data.HashMap.Strict as HMap import qualified Data.Scientific as Sci import qualified Data.Text as T import q...
6feee67fea5f96562b7f888ae440a243681c327198687e3620b42ba341332c0d
orionsbelt-battlegrounds/obb-rules
units.cljs
(ns obb-demo.views.units (:require [obb-rules.unit :as unit] [obb-demo.state :as state])) (defn- unit-info-panel "Writes info about a unit" [unit] [:div.panel.panel-info [:div.panel-heading [:h3.panel-title (unit/unit-name unit)]] [:div.panel-body [:ul [:li "Attack: " (unit/unit-...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/src/obb_demo/views/units.cljs
clojure
(ns obb-demo.views.units (:require [obb-rules.unit :as unit] [obb-demo.state :as state])) (defn- unit-info-panel "Writes info about a unit" [unit] [:div.panel.panel-info [:div.panel-heading [:h3.panel-title (unit/unit-name unit)]] [:div.panel-body [:ul [:li "Attack: " (unit/unit-...
cc0be738813ad7288a309f249fb6e2ec514c1aea63cfaff452d37194c0812b5d
LeventErkok/sbv
Numeric.hs
----------------------------------------------------------------------------- -- | Module : Data . SBV.Utils . Numeric Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Various number related utilities ----------------------------------------------------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/30f15eecafe3e6e253a7fada1c381f5461c6720f/Data/SBV/Utils/Numeric.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental Various number related utilities --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # <> <> | Convert double to flo...
Module : Data . SBV.Utils . Numeric Copyright : ( c ) # LANGUAGE FlexibleContexts # module Data.SBV.Utils.Numeric ( fpMaxH, fpMinH, fp2fp, fpRemH, fpRoundToIntegralH, fpIsEqualObjectH, fpCompareObjectH, fpIsNormalizedH , floatToWord, wordToFloat, doubleToWord, wordToDouble ) wh...
d69435ff82110119ab15a20a60d09f6036908baf31a265e7de521f30dd4345bc
xsc/peripheral
system.clj
(ns peripheral.system (:require [com.stuartsierra.component :as component] [com.stuartsierra.dependency :as dep] [peripheral.system [subsystem :as subsystem]] [peripheral [component :refer [defcomponent]] [utils :refer [is-class-name?]]])) ;;...
null
https://raw.githubusercontent.com/xsc/peripheral/5eafb7d8fcb0afda1c81fa103a7467d486862203/src/peripheral/system.clj
clojure
## `defsystem` ## Dependencies
(ns peripheral.system (:require [com.stuartsierra.component :as component] [com.stuartsierra.dependency :as dep] [peripheral.system [subsystem :as subsystem]] [peripheral [component :refer [defcomponent]] [utils :refer [is-class-name?]]])) ...
f935ab38fc783b55995fb45fce60d0bf4828eadfe9efbf164b40058f1ca50ab3
bluejay77/MRS-NOVEL9
plist.lisp
PLIST.LSP 0.2 18 - Mar-83 0142 000 1 ML E 18 - Mar-83 tl-,dl-,pl- lookup , stash , and unstash ;;; perm filename PLIST.LSP[MRS , LSP ] blob sn#702132 filedate 1983 - 03 - 18 ;;; generic text, type T, neo UTF8 ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ...
null
https://raw.githubusercontent.com/bluejay77/MRS-NOVEL9/3a2d7a9c52b711125521444bb3eb6df7fb727017/plist.lisp
lisp
generic text, type T, neo UTF8 ; ; ; ; ------------------------------------------------------------ ------------------------------------------------------------ Truth PLIST funcs
PLIST.LSP 0.2 18 - Mar-83 0142 000 1 ML E 18 - Mar-83 tl-,dl-,pl- lookup , stash , and unstash perm filename PLIST.LSP[MRS , LSP ] blob sn#702132 filedate 1983 - 03 - 18 Modified this file for the Common LISP : Dr 2015 - 03 - 18 (defun tl-stash (p) (setf (get (car p) (cadr p)) t)) (defun tl-...
c9cbfe874dc51e55420e5cac7c98e6154c3fe37f9c317b368a604bb0edae0ab2
ury-marshak/cl-smtp
attachments.lisp
;;; -*- mode: Lisp -*- This file is part of CL - SMTP , the Lisp SMTP Client Copyright ( C ) 2004/2005/2006/2007/2008/2009/2010 Jan Idzikowski ;;; This library is free software; you can redistribute it and/or modify it under the terms of the Lisp Lesser General Public License ;;; (), known as the LLGPL. ;;;...
null
https://raw.githubusercontent.com/ury-marshak/cl-smtp/5ab43ed4d9bdc5267fc25a83fdc610391654c664/attachments.lisp
lisp
-*- mode: Lisp -*- This library is free software; you can redistribute it and/or (), known as the LLGPL. 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 the Lisp Lesser GNU Gen...
This file is part of CL - SMTP , the Lisp SMTP Client Copyright ( C ) 2004/2005/2006/2007/2008/2009/2010 Jan Idzikowski modify it under the terms of the Lisp Lesser General Public License Contributed by Thanks to for make - random - boundary (in-package :cl-smtp) (defparameter *boundary-chars* ...
236b3a235530100738001027362577f33d75076377cdcfb7938312e9a4a830c0
NoRedInk/haskell-libraries
Internal.hs
# LANGUAGE DeriveFunctor # {-# LANGUAGE GADTs #-} # LANGUAGE NumericUnderscores # {-# LANGUAGE RankNTypes #-} module Platform.Internal where import Basics import Control.Applicative ((<|>)) import qualified Control.AutoUpdate as AutoUpdate import qualified Control.Concurrent.Async as Async import qualified Control.Ex...
null
https://raw.githubusercontent.com/NoRedInk/haskell-libraries/2c9cada3228fc54ca9a6834342665744e26c90f7/nri-prelude/src/Platform/Internal.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | Here are some common tasks: - @now : Task x Posix@ - @query : String -> Task Error ()@ - @sleep : Float -> Task x ()@ specific than x. No such value will ever exist! Instead it always succeeds with the current POSIX time. More generally a task is a /description/ ...
# LANGUAGE DeriveFunctor # # LANGUAGE NumericUnderscores # module Platform.Internal where import Basics import Control.Applicative ((<|>)) import qualified Control.AutoUpdate as AutoUpdate import qualified Control.Concurrent.Async as Async import qualified Control.Exception.Safe as Exception import Data.Aeson ((.:), ...
5b10f5f408a9205cf8b2e0206cf9c7b1c28bc232aa0652db11fbf2a2bea5515c
aryx/yacfe
setPt.ml
* Ptset : Sets of integers implemented as trees . * Copyright ( C ) 2000 FILLIATRE * * This software is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 , as published by the Free Software Foundation . * * This s...
null
https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/commons_ocollection/setPt.ml
ocaml
i i s Empty set and singletons. s Testing the occurrence of a value is similar to the search in a binary search tree, where the branching bit is used to select the appropriate subtree. s The code to remove an element is basically similar to the code of insertion. But since we have to maintain the invarian...
* Ptset : Sets of integers implemented as trees . * Copyright ( C ) 2000 FILLIATRE * * This software is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License version 2 , as published by the Free Software Foundation . * * This s...
1e783887edf2cd0db00249ee9544a27458287b63580253592bf2bfca1ceb4b20
kitlang/kit
RewriteRule.hs
# LANGUAGE DeriveGeneric # module Kit.Ast.Definitions.RewriteRule ( RewriteRule (..), newRewriteRule, convertRewriteRule, RuleSet (..), newRuleSet, convertRuleSet ) where import Control.Monad import Data.Hashable import GHC.Generics import Kit.Ast.Definitions.Base import Kit.Ast.TypePath import Kit.Ast.Sp...
null
https://raw.githubusercontent.com/kitlang/kit/2769a7a8e51fe4466c50439d1a1ebdad0fb79710/src/Kit/Ast/Definitions/RewriteRule.hs
haskell
# LANGUAGE DeriveGeneric # module Kit.Ast.Definitions.RewriteRule ( RewriteRule (..), newRewriteRule, convertRewriteRule, RuleSet (..), newRuleSet, convertRuleSet ) where import Control.Monad import Data.Hashable import GHC.Generics import Kit.Ast.Definitions.Base import Kit.Ast.TypePath import Kit.Ast.Sp...