_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
c8fc0fa9d8533e82b8c55ee2c35e7c7310241c69e6e84af9e798912b73847da3
soegaard/sketching
dot-method.rkt
#lang racket/base (require racket/match racket/list racket/class (for-syntax racket/base syntax/parse racket/syntax racket/string "syntax-utils.rkt")) (provide dot/underscore dot-field declare-struct-fields app-dot-method define-method := ;apply-dot-method ; g...
null
https://raw.githubusercontent.com/soegaard/sketching/4b54fa70d0bda97f0cf7400d3f522829c009f709/sketching-lib/sketching/dot-method.rkt
racket
apply-dot-method get-dot-method define-method Dot Fields and Methods we would like to write in order to draw the circle. Here circle is the draw-a-circle primitive provided by Sketching. We can now write: (define (draw-circle c) (here draw is called a method). To do that we use define-method: (str...
#lang racket/base (require racket/match racket/list racket/class (for-syntax racket/base syntax/parse racket/syntax racket/string "syntax-utils.rkt")) (provide dot/underscore dot-field declare-struct-fields app-dot-method define-method := ) For a struct C...
feb641933aab586e40e1fd8430f77c99790f55b2ab235e96f00740421eb03d21
adamwynne/twitter-api
search.clj
(ns twitter.api.test.search (:require [clojure.test :refer :all] [twitter.api.search :refer [search]] [twitter.test-utils.core :refer [is-200]])) (deftest test-search (is-200 search :params {:q "sports"}))
null
https://raw.githubusercontent.com/adamwynne/twitter-api/6443d1c8ed7d6b6cc9f5efaa5fd9c7cc176e80f0/test/twitter/api/test/search.clj
clojure
(ns twitter.api.test.search (:require [clojure.test :refer :all] [twitter.api.search :refer [search]] [twitter.test-utils.core :refer [is-200]])) (deftest test-search (is-200 search :params {:q "sports"}))
cbdb9bbbe088aa52c433a039b42419a989a879fd5d4f4a9163e02c8a4e31e7b2
juji-io/datalevin
remote_withtxn_test.clj
(ns datalevin.remote-withtxn-test (:require [datalevin.core :as d] [datalevin.test.core :as tdc :refer [server-fixture]] [clojure.test :as t :refer [is deftest testing use-fixtures]])) (use-fixtures :each server-fixture) (def query '[:find ?c . :in $ ?e :where [?e :counter ?c]]) ...
null
https://raw.githubusercontent.com/juji-io/datalevin/2b9696c7581c200f229385cf1b1a33b2190d89b7/test/datalevin/remote_withtxn_test.clj
clojure
(ns datalevin.remote-withtxn-test (:require [datalevin.core :as d] [datalevin.test.core :as tdc :refer [server-fixture]] [clojure.test :as t :refer [is deftest testing use-fixtures]])) (use-fixtures :each server-fixture) (def query '[:find ?c . :in $ ?e :where [?e :counter ?c]]) ...
c8f34744de15389c2a4f278ae49a2f5a7ffaf2753d3276378f4ce51bafa414d9
baskeboler/cljs-karaoke-client
views.cljs
(ns cljs-karaoke.events.views (:require [re-frame.core :as rf :include-macros true] [reagent.core :as reagent :refer [atom]] [cljs.core.async :as async] [cljs-karaoke.events.common :as common-events :refer [reg-set-attr]] [day8.re-frame.tracing :refer-macros [fn-traced]...
null
https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/events/views.cljs
clojure
(ns cljs-karaoke.events.views (:require [re-frame.core :as rf :include-macros true] [reagent.core :as reagent :refer [atom]] [cljs.core.async :as async] [cljs-karaoke.events.common :as common-events :refer [reg-set-attr]] [day8.re-frame.tracing :refer-macros [fn-traced]...
aa3a1dcd5ba632ec108fd46fca8b048b187a02f193df1ed3042ff5819aacc4ba
nubank/ordnungsamt
ns_a.clj
(ns ns-a "nothing changes here" (:require [clojure.string :as string])) (def hello (string/join ["hello" "world!"]))
null
https://raw.githubusercontent.com/nubank/ordnungsamt/0cf93a39fdf5c825e5214e10cf472b0421372844/examples/repository/ns_a.clj
clojure
(ns ns-a "nothing changes here" (:require [clojure.string :as string])) (def hello (string/join ["hello" "world!"]))
56275ee8b1b945372ca9441370837d44f1d23e9c93aa7448da790cffe39d6a2c
conal/Fran
Machine.hs
-- Experiments with runST-based state machines, thanks to suggestions from and . -- -- These machines seem fudgetty. Compare. One can compose them -- sequentially, make stateless machines, and map over them. Check for -- monadic formulation. module Machine (runMachine, seqMachine) where import La...
null
https://raw.githubusercontent.com/conal/Fran/a113693cfab23f9ac9704cfee9c610c5edc13d9d/demos/Machine/Machine.hs
haskell
Experiments with runST-based state machines, thanks to suggestions from These machines seem fudgetty. Compare. One can compose them sequentially, make stateless machines, and map over them. Check for monadic formulation. a temporary workaround, based on hacking the LazyST hi files to export expressed us...
and . module Machine (runMachine, seqMachine) where import LazyST import GHC Sigbjorn says : The 2.10 distribution for cygwin32 re - exports STBase.runST through the LazyST interface , which is not right . Here 's the ST newtype non - abstractly . import LazyST hiding ( runST ) i...
421e73ab285aeecd4a9daa7d6359a728f3fe322d33bfb5b0c61254dfff27eaee
BranchTaken/Hemlock
test_div_mod.ml
open! Basis.Rudiments open! Basis open U128 let test () = let rec test_pairs = function | [] -> () | (x, y) :: pairs' -> begin let quotient = x / y in let remainder = x % y in File.Fmt.stdout |> fmt ~alt:true ~zpad:true ~width:32L ~radix:Radix.Hex ~pretty:true x |> Fmt...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/u128/test_div_mod.ml
ocaml
open! Basis.Rudiments open! Basis open U128 let test () = let rec test_pairs = function | [] -> () | (x, y) :: pairs' -> begin let quotient = x / y in let remainder = x % y in File.Fmt.stdout |> fmt ~alt:true ~zpad:true ~width:32L ~radix:Radix.Hex ~pretty:true x |> Fmt...
682afab521222a0fdf81e0dea4f154a8bf9651f738cf8d4575e17a35dd7f6d4b
webyrd/n-grams-for-synthesis
variant-dynamic-ordering-ml-curried-interp-and-infer.scm
(define *output-table-file-name* "tmp/variant-dynamic-ordering-ml-curried-interp-and-infer-table.scm") (define allow-incomplete-search? #f) (define lookup-optimization? #f) (load "mk-vicare.scm") (load "mk.scm") (load "test-check.scm") (load "interp-core-ml-curried.scm") (load "construct-ordering-ml-curried.scm") (...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/variant-dynamic-ordering-ml-curried-interp-and-infer.scm
scheme
(define *output-table-file-name* "tmp/variant-dynamic-ordering-ml-curried-interp-and-infer-table.scm") (define allow-incomplete-search? #f) (define lookup-optimization? #f) (load "mk-vicare.scm") (load "mk.scm") (load "test-check.scm") (load "interp-core-ml-curried.scm") (load "construct-ordering-ml-curried.scm") (...
06e3d12ec0a9d99b89544ac1f1773fd7891f678a47d71b7703fd751374ff846d
pixlsus/registry.gimp.org_static
white_bg_and_shadow_0.scm
; blur_and_shadow.scm is a script for The GIMP ; ; The script is located in "<Image> / Script-Fu / Decor / White background & Shadow..." ; Last changed : 25 November 2009 ; Copyright ( C ) 2009 < > ; ; -------------------------------------------------------------------- ; ; Changelog: ; ; Version 1.0 ; - Initi...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/white_bg_and_shadow_0.scm
scheme
blur_and_shadow.scm is a script for The GIMP The script is located in "<Image> / Script-Fu / Decor / White background & Shadow..." -------------------------------------------------------------------- Changelog: Version 1.0 - Initial release -----------------------------------------------------------------...
Last changed : 25 November 2009 Copyright ( C ) 2009 < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License License version 3 at the web site -3.0.html Alternatively you can write to the Free Software Foundation , Inc. ...
15a6766916e10f22f79748d02a529bb7b64dd9509a089d2cc458f6435d562b69
zotonic/zotonic
action_wires_validation_error.erl
@author < > 2009 %% Original code copyright ( c ) 2008 - 2009 @todo Adapt this for Zotonic . -module(action_wires_validation_error). -include_lib("zotonic_core/include/zotonic.hrl"). -export([render_action/4]). render_action(_TriggerId, _TargetId, Args, Context) -> Text = z_utils:js_escape(proplis...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_wires/src/actions/action_wires_validation_error.erl
erlang
@author < > 2009 Original code copyright ( c ) 2008 - 2009 @todo Adapt this for Zotonic . -module(action_wires_validation_error). -include_lib("zotonic_core/include/zotonic.hrl"). -export([render_action/4]). render_action(_TriggerId, _TargetId, Args, Context) -> Text = z_utils:js_escape(proplists:...
e0252edaee1e839f5f6f75eef4f04851ef93537efb503646d01da661e8c68c4e
thelema/ocaml-community
frx_widget.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/frx/frx_widget.mli
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
4588b805ebcbaf70840dc5e956521ee4a9ad7a7d532c8a4826bf4d5b6c396832
purebred-mua/purebred
Main.hs
-- This file is part of purebred Copyright ( C ) 2017 - 2019 and -- -- purebred is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later ...
null
https://raw.githubusercontent.com/purebred-mua/purebred/bbeebde29cb42b62097f7abb94ffcaa7dda6786a/src/Purebred/UI/ComposeEditor/Main.hs
haskell
This file is part of purebred purebred 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 ) 2017 - 2019 and it under the terms of the GNU Affero 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 Affero General Public License module Purebred.UI.ComposeEditor.Main ( attachmentsEdit...
5632b917caaa9b605e4c5900aa1a25a81dab6f4000a6b2d19c95dcec190a92f1
xxyzz/SICP
Exercise_3_51.rkt
#lang racket/base (require racket/stream) (define (stream-enumerate-interval low high) (if (> low high) empty-stream (stream-cons low (stream-enumerate-interval (+ low 1) high)))) (define (show x) (displayln x) x) (define x (stream-map show (stream-enumerate-interval 0...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/3_Modularity_Objects_and_State/3.5_Streams/Exercise_3_51.rkt
racket
results of book's implementation 0 is printed, the rest values are delayed stream x returned
#lang racket/base (require racket/stream) (define (stream-enumerate-interval low high) (if (> low high) empty-stream (stream-cons low (stream-enumerate-interval (+ low 1) high)))) (define (show x) (displayln x) x) (define x (stream-map show (stream-enumerate-interval 0...
1d821fcb8c33632a4be96050af10f2a200cafc05160bfb6682a205f6fb87e022
creswick/cabal-dev
bootstrap.hs
-- Bootstrap cabal-dev in a sandbox (not installing any dependencies in the -- user or global package databases) -- This script should run on GHC 6.8 - GHC 7.0 . -- -- Run in the root of this package with: -- @ runhaskell -isrc / runtests.hs -- @ import qualified Distribution.Dev.RewriteCabalConfig as R import C...
null
https://raw.githubusercontent.com/creswick/cabal-dev/bb1fb44a00cf053ea142617a31b5e2f2c189866b/admin/bootstrap.hs
haskell
Bootstrap cabal-dev in a sandbox (not installing any dependencies in the user or global package databases) Run in the root of this package with: @ @ We would use cabal-dev itself here, but we use something a little environment without installing any dependencies in a location that could pollute other builds. ...
This script should run on GHC 6.8 - GHC 7.0 . runhaskell -isrc / runtests.hs import qualified Distribution.Dev.RewriteCabalConfig as R import Control.Applicative ( (<$>) ) import qualified Control.Exception as Ex ( IOException, catch ) import Data.List ( isPrefixOf ) import Data.Version ( Version(..), showVersio...
23fa5312ec64f5d51f04503eb7aa82f960a45b5c24a846b995a0cd063da44c25
Elzair/nazghul
tutorial_wilderness.scm
(kern-mk-place 'p_tutorial_wilderness "The Tutorial Wilderness" nil ; sprite (kern-mk-map nil 19 19 pal_expanded (list "__ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ ^^ ^^ ^^ " "__ __ __ .. .. .. .. .. .. .. .. .. .. .. __ __ ^^ .. ^^ " "__ __ .. .. .. .. .. .. .. .. .. .. .. .....
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/tutorial_wilderness.scm
scheme
sprite wraps underground wilderness tmp combat place subplaces: objects: end of objects hooks edge entrances
(kern-mk-place 'p_tutorial_wilderness "The Tutorial Wilderness" (kern-mk-map nil 19 19 pal_expanded (list "__ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ ^^ ^^ ^^ " "__ __ __ .. .. .. .. .. .. .. .. .. .. .. __ __ ^^ .. ^^ " "__ __ .. .. .. .. .. .. .. .. .. .. .. .. __ __ __ ee __ " ...
cd3b68ebb51b8f5ea8c0aca9c8e95018b895c57b830762d6425d60b08c22df0b
simon-brooke/dog-and-duck
core_test.clj
(ns dog-and-duck.scratch.core-test (:require [clojure.test :refer :all] [dog-and-duck.scratch.parser :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/simon-brooke/dog-and-duck/b2ff133e4a559b328af4eaf77ae93e2c7c1826ee/test/dog_and_duck/scratch/core_test.clj
clojure
(ns dog-and-duck.scratch.core-test (:require [clojure.test :refer :all] [dog-and-duck.scratch.parser :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
7312267613480a5d2b772335411616139c7b5fc9c227c06db9a6cb1dca1edbc6
camlp4/camlp4
Camlp4TrashRemover.ml
camlp4r (****************************************************************************) (* *) (* OCaml *) (* ...
null
https://raw.githubusercontent.com/camlp4/camlp4/9b3314ea63288decb857239bd94f0c3342136844/camlp4/Camlp4Filters/Camlp4TrashRemover.ml
ocaml
************************************************************************** OCaml ...
camlp4r Copyright 2006 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with the special Authors : * - : initial version * - Nicolas Pouillard: initial ...
f38fc527e5848835e50d8202507b589a0a9cfa6db523c5e2047298e2bdb8d17c
ghcjs/ghcjs-dom
CSSSupportsRule.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.CSSSupportsRule (js_insertRule, insertRule, insertRule_, js_deleteRule, deleteRule, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/CSSSupportsRule.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/CSSSupportsRule.cssRules Mozilla CSSSupportsRule.cssRules documentation> | <-US/docs/Web/API/CSSSupportsRule.conditionText Mozilla CSSSupportsRule.conditionText documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.CSSSupportsRule (js_insertRule, insertRule, insertRule_, js_deleteRule, deleteRule, js_getCssRules, getCssRules, js_getConditionText, getConditionText, CSSSupportsRule(.....
7d5d8ab7b438dd68487929b849f6dcf03b8063cb6a7a9c6eed61a19f5ce1c4e5
haskell-hvr/HsYAML
Encoding.hs
# LANGUAGE BangPatterns # # LANGUAGE DeriveGeneric # {-# LANGUAGE Safe #-} -- | Copyright : © , © 2015 - 2018 SPDX - License - Identifier : GPL-2.0 - or - later -- UTF decoding -- -- This really should be factored out to the standard libraries. Since it isn't -- there, we get to t...
null
https://raw.githubusercontent.com/haskell-hvr/HsYAML/be6040095fa7ad442c28d5c56ce9da3578807ea4/src/Data/YAML/Token/Encoding.hs
haskell
# LANGUAGE Safe # | This really should be factored out to the standard libraries. Since it isn't there, we get to tailor it exactly to our needs. We use lazy byte strings as ^ UTF-8 encoding (or ASCII) | @show encoding@ converts an 'Encoding' to the encoding name (with a "-") as used by most programs....
# LANGUAGE BangPatterns # # LANGUAGE DeriveGeneric # Copyright : © , © 2015 - 2018 SPDX - License - Identifier : GPL-2.0 - or - later UTF decoding input , which should give reasonable I\/O performance when reading large files . The output is a normal ' ' list which is easy to work wit...
fd07070e60fc888e813b53c526fcd6356e14f1504c68162e23a22a8b2bb3757e
Tritlo/PropR
Plugin.hs
# LANGUAGE RecordWildCards # # LANGUAGE TupleSections # -- | -- Module : PropR.Plugin Description : Moves some of the PropR into the GHC compilation License : MIT -- Stability : experimental This module introduces the PropR - Plugin to fasten up checking for the correct expressions in GHC . It also...
null
https://raw.githubusercontent.com/Tritlo/PropR/5ff74aa8e93d60aee056bfa937d20a55d225467a/src/PropR/Plugin.hs
haskell
| Module : PropR.Plugin Stability : experimental We're running the same checks over and over again, so we make the (possibly unsafe) assumption that if we're looking for fits for the same type at the same location, then we can just skip the checks and return the fits directly. This should be OK, since ou...
# LANGUAGE RecordWildCards # # LANGUAGE TupleSections # Description : Moves some of the PropR into the GHC compilation License : MIT This module introduces the PropR - Plugin to fasten up checking for the correct expressions in GHC . It also introduces heuristic caching . module PropR.Plugin where import...
b63e93b717b2c902727ac46b99046542684f65df38cce8f93fc605f451cda33f
reborg/reclojure
lookup.clj
(ns reclojure.lang.protocols.lookup (:refer-clojure :exclude [conj])) (defprotocol Lookup (valAt [this key] [this key notFound]))
null
https://raw.githubusercontent.com/reborg/reclojure/c8aae4cc384d59262569cbc9c332e08619f292ef/src/reclojure/lang/protocols/lookup.clj
clojure
(ns reclojure.lang.protocols.lookup (:refer-clojure :exclude [conj])) (defprotocol Lookup (valAt [this key] [this key notFound]))
143bc8e87f1913893854dc965ee82632788bb50b5dcee1328bbf8e64925d1e46
fdopen/uwt
help.ml
let () = Random.self_init () open Lwt.Infix let timeout = let rec f = function | [] -> None | "-t"::((snd::_) as tl)-> (match int_of_string snd with | x -> Some( x * 1000 ) | exception(Failure _) -> f tl) | _::tl -> f tl in Array.to_list Sys.argv |> f let wait () = let signals = [ Sys.sigi...
null
https://raw.githubusercontent.com/fdopen/uwt/44276aa6755b92eddc9ad58662a968afad243e8b/examples/help.ml
ocaml
let () = Random.self_init () open Lwt.Infix let timeout = let rec f = function | [] -> None | "-t"::((snd::_) as tl)-> (match int_of_string snd with | x -> Some( x * 1000 ) | exception(Failure _) -> f tl) | _::tl -> f tl in Array.to_list Sys.argv |> f let wait () = let signals = [ Sys.sigi...
e012b881476198b14c01d905861ec805072b5cdba315c6310450157874f396f1
arttuka/reagent-material-ui
core.cljs
(ns ^:figwheel-hooks example.core (:require-macros [reagent-mui.util :refer [react-component]]) (:require [react :as react] [reagent.core :as r] [reagent.dom.client :as rdom] [reagent-mui.cljs-time-adapter :refer [cljs-time-adapter]] [reagent-mui.colors :as colors] ...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/4fc4b44891919d2b84160eb411d52227dd89e0a5/example/src/example/core.cljs
clojure
Example For properties that require React Node as parameter, or use r/create-element to directly instantiate element from React class (i.e. non-adapted React component). fragment localization-provider provides date handling utils to date and time pickers. cljs-time-adapter is a date adapter that allows you to use...
(ns ^:figwheel-hooks example.core (:require-macros [reagent-mui.util :refer [react-component]]) (:require [react :as react] [reagent.core :as r] [reagent.dom.client :as rdom] [reagent-mui.cljs-time-adapter :refer [cljs-time-adapter]] [reagent-mui.colors :as colors] ...
371550ad45b7e55bee4788d53458b249362efbe65b89bd91f7d540dc0085e28f
JustusAdam/language-haskell
GADTRecord.hs
SYNTAX TEST " source.haskell " " GADT record syntax " data D :: A -> B -> Type where C :: { fld1 :: A, (&) :: B } -> D a b -- ^ constant.other.haskell ^^^^ ^ variable.other.member.definition.haskell -- ^ ^ punctuation.brace.haskell ^ ...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tests/GADTRecord.hs
haskell
^ constant.other.haskell ^ ^ punctuation.brace.haskell ^ constant.other.haskell ^^^^ ^ variable.other.member.definition.haskell ^ ^ punctuation.brace.haskell ^ constant.other.haskell ...
SYNTAX TEST " source.haskell " " GADT record syntax " data D :: A -> B -> Type where C :: { fld1 :: A, (&) :: B } -> D a b ^^^^ ^ variable.other.member.definition.haskell ^ ^ ^ storage.type.haskell data D a where C :: { fld :: forall ...
d980bd862717e40119475ba3fc6b1a9937c90a153815615ef66d98ce272a5735
jubnzv/iec-checker
unused_variable.ml
open Core module AU = IECCheckerCore.Ast_util module S = IECCheckerCore.Syntax module Warn = IECCheckerCore.Warn let check_pou elem = let module StringSet = Set.Make(String) in Get names of variables declared in POU . let get_decl_var_names () = AU.get_var_decls elem |> List.map ~f:(fun vardecl -> S.Var...
null
https://raw.githubusercontent.com/jubnzv/iec-checker/ea3c217cda56dfb8a84e85773876d58e358fc499/src/analysis/unused_variable.ml
ocaml
open Core module AU = IECCheckerCore.Ast_util module S = IECCheckerCore.Syntax module Warn = IECCheckerCore.Warn let check_pou elem = let module StringSet = Set.Make(String) in Get names of variables declared in POU . let get_decl_var_names () = AU.get_var_decls elem |> List.map ~f:(fun vardecl -> S.Var...
877120a862d18f14f66522a2d92f3a43b8cf04ebe04a66fb34e66d7e9b54fca8
Javran/advent-of-code
Day8.hs
module Javran.AdventOfCode.Y2020.Day8 ( ) where import Control.Monad.State import qualified Data.IntSet as IS import qualified Data.Vector as V import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP data Day8 deriving (Generic) data Instr = Nop Int | Acc Int | Jmp Int | Term deriving (Sho...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2020/Day8.hs
haskell
accumulator reached program positions
module Javran.AdventOfCode.Y2020.Day8 ( ) where import Control.Monad.State import qualified Data.IntSet as IS import qualified Data.Vector as V import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP data Day8 deriving (Generic) data Instr = Nop Int | Acc Int | Jmp Int | Term deriving (Sho...
29bcdebb989a77b2c45c751c0d434a78a962c67ef932443de5de27c6bf6ce938
THISISDINOSAUR/Anatomy
json.rkt
#lang racket ;TODO perhaps in future this should return absolute polygons rather than a relative tree to make clients easier to implement? (provide (all-defined-out)) (require "bone.rkt" "parameter.rkt" "structs/point.rkt" "structs/polygon-tree.rkt") (define (child-bone-connection->json c...
null
https://raw.githubusercontent.com/THISISDINOSAUR/Anatomy/883aa140c41cd375575a2944bda79608c660935b/json.rkt
racket
TODO perhaps in future this should return absolute polygons rather than a relative tree to make clients easier to implement?
#lang racket (provide (all-defined-out)) (require "bone.rkt" "parameter.rkt" "structs/point.rkt" "structs/polygon-tree.rkt") (define (child-bone-connection->json child-bone) (define polygon-tree (get-field polygon-tree child-bone)) (hasheq 'parent_point (point->list (polygon-tree-conn...
7068d656db9e2e11a65b470a37a160a12d27dde9af24d53bdaadc7aea10e4ecf
thheller/shadow-experiments
loadable.clj
(ns shadow.experiments.grove.ui.loadable) (defmacro refer-lazy ([lazy-name] `(refer-lazy ~lazy-name ~(symbol (name lazy-name)))) ([lazy-name local-name] `(def ~(with-meta local-name {:tag 'function}) (wrap-loadable (shadow.lazy/loadable ~lazy-name)))))
null
https://raw.githubusercontent.com/thheller/shadow-experiments/a2170c2214778b6b9a9253166383396d64d395a4/src/main/shadow/experiments/grove/ui/loadable.clj
clojure
(ns shadow.experiments.grove.ui.loadable) (defmacro refer-lazy ([lazy-name] `(refer-lazy ~lazy-name ~(symbol (name lazy-name)))) ([lazy-name local-name] `(def ~(with-meta local-name {:tag 'function}) (wrap-loadable (shadow.lazy/loadable ~lazy-name)))))
6cb0ad8de5d4d664f4880628334cad8de0f2cb4a334d9f6a032c1b45a74e8374
GlideAngle/flare-timing
LatS90LngE180S40.hs
module Published.GeodeticSurvey.LatS90LngE180S40 (fwd) where import Data.UnitsOfMeasure (u) import Flight.Units () import Flight.Units.DegMinSec (DMS(..)) import Flight.Distance (TaskDistance(..)) import Flight.Geodesy (DirectProblem(..), DirectSolution(..), DProb, DSoln) | With a common first station and ellipsoi...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/test-suite/published/Published/GeodeticSurvey/LatS90LngE180S40.hs
haskell
First Station : ---------------- ---------------- ---------------- ---------------- ----------------
module Published.GeodeticSurvey.LatS90LngE180S40 (fwd) where import Data.UnitsOfMeasure (u) import Flight.Units () import Flight.Units.DegMinSec (DMS(..)) import Flight.Distance (TaskDistance(..)) import Flight.Geodesy (DirectProblem(..), DirectSolution(..), DProb, DSoln) | With a common first station and ellipsoi...
32eae9ddc44fcd37acae530bac6a86c28996d585d4302e3e4d0a750efa46415e
PrecursorApp/precursor
progress.cljs
(ns frontend.components.progress (:require [frontend.cursors :as cursors] [frontend.state :as state] [frontend.utils :as utils] [om.core :as om :include-macros true] [om.dom :as dom :include-macros true]) (:require-macros [sablono.core :refer (html)])) (defn progress...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src-cljs/frontend/components/progress.cljs
clojure
(ns frontend.components.progress (:require [frontend.cursors :as cursors] [frontend.state :as state] [frontend.utils :as utils] [om.core :as om :include-macros true] [om.dom :as dom :include-macros true]) (:require-macros [sablono.core :refer (html)])) (defn progress...
cf14184577bf95ebcf14b4087e980d79aefe6b8690a8b116c3a0714edc6f2ea0
danieljharvey/mimsa
TypeIdentifier.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # {-# LANGUAGE OverloadedStrings #-} module Language.Mimsa.Core.Types.Identifiers.TypeIdentifier ( TypeIdentifier (..), renderTypeIdentifier, printTypeNum, getUniVar, ) where the two types of i d a type var can ...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/core/src/Language/Mimsa/Core/Types/Identifiers/TypeIdentifier.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # a type variable from a type signature invented type for unification named variable with unique int to allow scoping
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # module Language.Mimsa.Core.Types.Identifiers.TypeIdentifier ( TypeIdentifier (..), renderTypeIdentifier, printTypeNum, getUniVar, ) where the two types of i d a type var can have - a named or numbered one import qualified Data.Aeson as JSON...
9f53cdb38247c0e4ffce563d6cc8ce0fd0a120bde587ada3e3175db41d412c29
ocsigen/js_of_ocaml
dgraph.mli
Js_of_ocaml compiler * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * 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...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/eae34864ebe70c3e93d373e87fcd7432f5a6d1d4/compiler/lib/dgraph.mli
ocaml
Js_of_ocaml compiler * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * 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...
91d1e30499218791606d05fef71ee348e994d5f627d3df0b9708f86e6e4ffc4e
roterski/syncrate-fulcro
util.cljc
(ns app.util #?(:cljs (:refer-clojure :exclude [uuid])) (:require [ghostwheel.core :refer [>defn]] [clojure.spec.alpha :as s])) ( > " Generate a UUID the same way via clj / cljs . Without args gives random UUID . With args , builds UUID based on input ( which ; is useful in tests)." # ? (: ...
null
https://raw.githubusercontent.com/roterski/syncrate-fulcro/3fda40b12973e64c7ff976174498ec512b411323/src/main/app/util.cljc
clojure
is useful in tests)." [(s/or :i int? :s string?) => uuid?] (if (int? int-or-str) (java.util.UUID/fromString (format "ffffffff-ffff-ffff-ffff-%012d" int-or-str)) (java.util.UUID/fromString int-or-str)))) [(s/* any?) => uuid?]
(ns app.util #?(:cljs (:refer-clojure :exclude [uuid])) (:require [ghostwheel.core :refer [>defn]] [clojure.spec.alpha :as s])) ( > " Generate a UUID the same way via clj / cljs . Without args gives random UUID . With args , builds UUID based on input ( which # ? (: ( [ ] [= > uuid ? ] ( jav...
7dfbfaac0f5b4c1b4127f2c760a4e6791857910dce40027f5f6950110027805c
well-typed/visualize-cbn
take.hs
-- program starts here (lazy-ones.hs) enumFromTo = (\n -> \m -> if le n m then Cons n (@enumFromTo (add n 1) m) else Nil ) take = (\n -> \xs -> if eq n 0 then Nil else case xs of { Nil -> Nil ; Cons x xs' -> Cons x (@take (sub n...
null
https://raw.githubusercontent.com/well-typed/visualize-cbn/499a8bc806ce03ce6d1bc12df1ea6e6df7768817/examples/take.hs
haskell
program starts here (lazy-ones.hs)
enumFromTo = (\n -> \m -> if le n m then Cons n (@enumFromTo (add n 1) m) else Nil ) take = (\n -> \xs -> if eq n 0 then Nil else case xs of { Nil -> Nil ; Cons x xs' -> Cons x (@take (sub n 1) xs') } ) ...
9058406b64ae688bbe5446fd447c36d4be182d6b2f777d7f5453a768b2e0f42c
lyrm/ocaml-httpadapter
header.ml
{ { { Copyright ( C ) < 2020 > < > * * 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 THE AUT...
null
https://raw.githubusercontent.com/lyrm/ocaml-httpadapter/01926ba6a1e3ab607fc8a33a40fb13682b6711a5/src-httpaf/header.ml
ocaml
{ { { Copyright ( C ) < 2020 > < > * * 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 THE AUT...
266b7cd464a18599dcadcba5f9e6fde7066dc83729fe7ac1355a3a75a6c2fe8d
xvw/preface
identity.ml
module Invariant_suite = Preface.Qcheck.Invariant.Suite (Req.Identity) (Preface.Identity.Invariant) (Sample.Int) (Sample.String) (Sample.Float) module Functor_suite = Preface.Qcheck.Functor.Suite (Req.Identity) (Preface.Identity.Functor) (Sample.Int) (Sample.String) (Sample.Float) module A...
null
https://raw.githubusercontent.com/xvw/preface/84a297e1ee2967ad4341dca875da8d2dc6d7638c/test/preface_laws_test/identity.ml
ocaml
module Invariant_suite = Preface.Qcheck.Invariant.Suite (Req.Identity) (Preface.Identity.Invariant) (Sample.Int) (Sample.String) (Sample.Float) module Functor_suite = Preface.Qcheck.Functor.Suite (Req.Identity) (Preface.Identity.Functor) (Sample.Int) (Sample.String) (Sample.Float) module A...
c73272536f0fbdbd3d9768f433574167fc69666d411a3da844ff1649aafb06bd
gregnwosu/haskellbook
Lib.hs
module Lib (someFunc) where import Control.Monad import Data.Functor.Identity import Data.Functor.Constant import Data.Monoid import Prelude hiding (Either, Left , Right) import Test.QuickCheck import Test.QuickCheck.Checkers data Query = Query data SomeObj = SomeObj data IoOnlyObj = IoOnlyObj data Err = Err someFun...
null
https://raw.githubusercontent.com/gregnwosu/haskellbook/b21fb6772e58f07cff334d9c551d0477ec856897/chapter21/src/Lib.hs
haskell
module Lib (someFunc) where import Control.Monad import Data.Functor.Identity import Data.Functor.Constant import Data.Monoid import Prelude hiding (Either, Left , Right) import Test.QuickCheck import Test.QuickCheck.Checkers data Query = Query data SomeObj = SomeObj data IoOnlyObj = IoOnlyObj data Err = Err someFun...
6249ef3f88991db5d0341f8de4d42827e708f718a8f4417c44beca0cc6e18a40
ndmitchell/rexe
rexe.hs
module Main(main) where import Control.Monad.Extra import System.Directory import System.IO.Extra import System.Environment import System.FilePath import System.Exit import System.Process main :: IO () main = do self <- canonicalizePath =<< getExecutablePath let exe = takeFileName self path <- splitSear...
null
https://raw.githubusercontent.com/ndmitchell/rexe/3a5161e2df831ed800ef3df377c9551379007fcd/rexe.hs
haskell
module Main(main) where import Control.Monad.Extra import System.Directory import System.IO.Extra import System.Environment import System.FilePath import System.Exit import System.Process main :: IO () main = do self <- canonicalizePath =<< getExecutablePath let exe = takeFileName self path <- splitSear...
83c52b833e74eada66f2a636b6fb621390c15afb01818428fe4732abbbed12cd
jgbm/cpgv
CPI.hs
# LANGUAGE FlexibleContexts # import Control.Monad.Except import Data.Char (isSpace) import Data.IORef import Data.List (partition) import CP.Check import CP.Expand import CP.Norm hiding (trace) import CP.Syntax import CP.Printer import CP.Parser import System.Console.Haskeline import System.Environment (getArgs) imp...
null
https://raw.githubusercontent.com/jgbm/cpgv/1d06a6b47de4977dfa939a661ccd6ffcdcc5ec9e/CPI.hs
haskell
# LANGUAGE FlexibleContexts # import Control.Monad.Except import Data.Char (isSpace) import Data.IORef import Data.List (partition) import CP.Check import CP.Expand import CP.Norm hiding (trace) import CP.Syntax import CP.Printer import CP.Parser import System.Console.Haskeline import System.Environment (getArgs) imp...
d0310af5fd0c6cd369e9074368f984eb023883b0d64123959000257a21ff8a7a
hdbc/hdbc-sqlite3
Types.hs
module Database.HDBC.Sqlite3.Types where import Foreign.ForeignPtr data CSqlite3 type Sqlite3 = ForeignPtr CSqlite3 data CStmt type Stmt = ForeignPtr CStmt
null
https://raw.githubusercontent.com/hdbc/hdbc-sqlite3/6446abb80d4bbc182bb1ea289c821594ca21ed25/Database/HDBC/Sqlite3/Types.hs
haskell
module Database.HDBC.Sqlite3.Types where import Foreign.ForeignPtr data CSqlite3 type Sqlite3 = ForeignPtr CSqlite3 data CStmt type Stmt = ForeignPtr CStmt
982627b652aaf3b2cc5d8df5abbaa984eaf5ef3ab780e3af7cdae59c0ec876f6
racket/games
info.rkt
#lang info (define game-set "Puzzle Games") (define game "game.rkt")
null
https://raw.githubusercontent.com/racket/games/e57376f067be51257ed12cdf3e4509a00ffd533d/tally-maze/info.rkt
racket
#lang info (define game-set "Puzzle Games") (define game "game.rkt")
4006ddbb93b80fda27a40142963e5cbd21698cbb18d69c12d099512c7aec18bf
target/theta-idl
Kotlin.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # {-# LANGUAGE ViewPatterns #-} module Theta.Target.Kotlin ( Kotlin (..) , toModule , toRecord , toVariant ...
null
https://raw.githubusercontent.com/target/theta-idl/0fed73dc7f3963fd2c63cb408edcda0547a6d453/theta/src/Theta/Target/Kotlin.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE ViewPatterns # ^ An optional prefix you can use to namespace generated The prefix @["com", "example", "foo"]@ for a module @bar@ would result in the following package declaration: @ @ corresponding to t...
# LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # module Theta.Target.Kotlin ( Kotlin (..) , toModule , toRecord , toVariant , toReference , isValidIdentifier ) where import Prelude hiding (toEnum) import qualified Data.Ch...
a8da9a47f450fdbabcf6916b1de7220e2f1cc28798de46813c2726834e384ab2
manuel-serrano/bigloo
module.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / recette / module.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/recette/module.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / recette / module.scm * / * Author : * / * Creation : Sun Jan 29 10:56:02 1995 * / * Last change : Tue Nov 27 05:51:20 2012 ( serrano ) * / * Les te...
f23be8a89537e298dcdb7f9ef776a8b67d6785d81d4b0aab882b022dc6a1e6a9
gogins/csound-extended-nudruz
ordparts.lisp
(in-package :cm) ;; ORDERED PARTITIONS 4 through 12 (includes permutations) (defparameter ordparts4 '( ( 1 1 1 1 ) ( 1 1 2 ) ( 1 2 1 ) ( 1 3 ) ( 2 1 1 ) ( 2 2 ) ( 3 1 ) ( 4 ) )) (defparameter ordparts5 '( ( 1 1 1 1 1 ) ( 1 1 1 2 ) ( 1 1 2 1 ) ( 1 1 3 ) ( 1 2 1 1 ) ( 1 2 2 ) ( 1 3 1 ) ( 1 4 ) ( 2 1 1 1 ) ( 2...
null
https://raw.githubusercontent.com/gogins/csound-extended-nudruz/4551d54890f4adbadc5db8f46cc24af8e92fb9e9/sources/data/ordparts.lisp
lisp
ORDERED PARTITIONS 4 through 12 (includes permutations)
(in-package :cm) (defparameter ordparts4 '( ( 1 1 1 1 ) ( 1 1 2 ) ( 1 2 1 ) ( 1 3 ) ( 2 1 1 ) ( 2 2 ) ( 3 1 ) ( 4 ) )) (defparameter ordparts5 '( ( 1 1 1 1 1 ) ( 1 1 1 2 ) ( 1 1 2 1 ) ( 1 1 3 ) ( 1 2 1 1 ) ( 1 2 2 ) ( 1 3 1 ) ( 1 4 ) ( 2 1 1 1 ) ( 2 1 2 ) ( 2 2 1 ) ( 2 3 ) ( 3 1 1 ) ( 3 2 ) ( 4 1 ) ( 5 ) ))...
d097b170d0cf0a47b772039ec05e14696b8d31f3d39d61cc3d29b4de929520c8
schibsted/spid-tech-docs
tabs.clj
(ns spid-docs.pimp.tabs "Functions to convert 'tagged' sections to tab containers and tabs. A tab group/container is created by a starting a line with :tabs Tabs within it can be created by starting a line with :tab ..., where ... is the tab title." (:require [clojure.string :as str] [hiccup.co...
null
https://raw.githubusercontent.com/schibsted/spid-tech-docs/ee6a4394e9732572e97fc3a55506b2d6b9a9fe2b/src/spid_docs/pimp/tabs.clj
clojure
(ns spid-docs.pimp.tabs "Functions to convert 'tagged' sections to tab containers and tabs. A tab group/container is created by a starting a line with :tabs Tabs within it can be created by starting a line with :tab ..., where ... is the tab title." (:require [clojure.string :as str] [hiccup.co...
3fd955b29cf37a0ee08d846e5b25914d1fd5d7d521992b7848d5893503e98072
ghc/packages-dph
Testcase.hs
module DPH.Testsuite.Testcase ( Test(..), mkTest, runTests ) where import Test.QuickCheck import System.Environment (getArgs) import Data.Maybe (isJust) import System.IO import System.Exit data Test = Test { testName :: String , testProperty :: Property } mkTest :: Testable a => Strin...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-test/framework/DPH/Testsuite/Testcase.hs
haskell
do not print to stdout
module DPH.Testsuite.Testcase ( Test(..), mkTest, runTests ) where import Test.QuickCheck import System.Environment (getArgs) import Data.Maybe (isJust) import System.IO import System.Exit data Test = Test { testName :: String , testProperty :: Property } mkTest :: Testable a => Strin...
b83a0bbdc60e53631ca2cf4a8b90a19d96d7a7827572973d001b3192a421c501
emqx/emqx
emqx_dashboard_haproxy_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 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/emqx/emqx/3d59be6ab6a7c165adfc3c5f3753b74a92110815/apps/emqx_dashboard/test/emqx_dashboard_haproxy_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 ) 2020 - 2023 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_dashboard_haproxy_SUITE). -compile(nowarn_export_all). -compile(export_all). -inc...
f764cc5d02d9048a6bb9d3a17d90dc63add9ed8d371df1d549b394700023c089
kelamg/HtDP2e-workthrough
ex442.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex442) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Generative-Recursion/ex442.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of Number] [X X -> Boolean] -> [List-of Number] produces a sorted version of alon based on cmp assume the numbers are all distinct [List-of Number] N -> [List-of Number] returns all the numbers equal to pivot [List-of Number...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex442) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require racket/base) (check-expect (quick-sort< '()...
76f061b96451b7573c18f5bcf49bea4701cee0dfe54d966a4eb835a76c6c706a
kylehg/church-turing
LCs.hs
-- Some lambda calculus terms module LCs where import Church import Prelude hiding (and, pred, fst, snd, succ) import Test.HUnit -- | ((λx.y) (λz.(λq.z z))) ((λf.g) (λy.h)) t :: Term t = App (App (Lam "x" (Var "y")) (Lam "z" (Lam "q" (App (Var "z") (Var "z"))))) (App (Lam "f" (Var "g")) ...
null
https://raw.githubusercontent.com/kylehg/church-turing/0cbb0a49636612ad8efd71d41677ef19fb9b2cf1/LCs.hs
haskell
Some lambda calculus terms | ((λx.y) (λz.(λq.z z))) ((λf.g) (λy.h)) -------------------------------------------------------- | zero = \f.\z.z | succ = \n.\f.\z.f (n f z) | add = \m.\n.\f.\z.m f (n f z) | mul = \m.\n.\f.m (n f) Factorial ------------------------------------------------------------------ | true =...
module LCs where import Church import Prelude hiding (and, pred, fst, snd, succ) import Test.HUnit t :: Term t = App (App (Lam "x" (Var "y")) (Lam "z" (Lam "q" (App (Var "z") (Var "z"))))) (App (Lam "f" (Var "g")) (Lam "y" (Var "h"))) t' = ((lam "x" $ var "y") <-> (lam "z" $ lam "...
b1251ed21e856c91f4ca095e7ab0766de2c4f0f03a3adbe1e6e5807ccc58e564
wdebeaum/step
vapour.lisp
;;;; ;;;; w::vapour ;;;; (define-words :pos W::n :words ( (w::vapour (senses ( LF - PARENT ONT::substance ) (LF-PARENT ONT::gas-substance) (TEMPL count-PRED-TEMPL) (meta-data :origin cardiac :entry-date 20090402 :change-date nil :comments nil) ) ) ) ))
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/vapour.lisp
lisp
w::vapour
(define-words :pos W::n :words ( (w::vapour (senses ( LF - PARENT ONT::substance ) (LF-PARENT ONT::gas-substance) (TEMPL count-PRED-TEMPL) (meta-data :origin cardiac :entry-date 20090402 :change-date nil :comments nil) ) ) ) ))
5a79f38d6805a41c1d825088316574f8d95b24103bc9cb61bae2279da65d573a
mejgun/haskell-tdlib
RichText.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.RichText where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.Document as Document import qualified Utils as U -- | Describes a text object inside an instant-view web page data RichText | A plain text @text Tex...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Data/RichText.hs
haskell
# LANGUAGE OverloadedStrings # | | Describes a text object inside an instant-view web page | | | | | | | | | | | | | | | | | A small image inside the text | Height of a bounding box in which the image must be shown; 0 if unknown | Width of a bounding box in which the image must be shown; 0 if unkno...
module TD.Data.RichText where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.Document as Document import qualified Utils as U data RichText | A plain text @text Text RichTextPlain text :: Maybe String } | A bold rich text @text Text RichText...
91f5494f7c2323dedbd0c50f261877558dd078d52a684bfa3c691f46088514f6
garrigue/lablgtk
stubs_Pango.ml
type -'a obj module _ScriptForLang = struct end module TabArray = struct external resize: [>`pangotabarray] obj -> int -> unit = "ml_pango_tab_array_resize" external get_size: [>`pangotabarray] obj -> int = "ml_pango_tab_array_get_size" external get_positions_in_pixels: [>`pangotabarray] obj -> bool = "ml_pang...
null
https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/tools/introspection/stubs/stubs_Pango.ml
ocaml
Global functions End of global functions
type -'a obj module _ScriptForLang = struct end module TabArray = struct external resize: [>`pangotabarray] obj -> int -> unit = "ml_pango_tab_array_resize" external get_size: [>`pangotabarray] obj -> int = "ml_pango_tab_array_get_size" external get_positions_in_pixels: [>`pangotabarray] obj -> bool = "ml_pang...
693eefa608fae4644625ebdee08e014055622467db76e03d0cb9a87b9b3e608b
lispyclouds/bblgum
impl_test.clj
(ns bblgum.impl-test (:require [bblgum.impl :as i] [clojure.java.io :as io] [clojure.test :as t])) (t/deftest internal-fns (t/testing "coerce keywords to string" (t/is (= "foo" (i/->str :foo)))) (t/testing "do not coerce others to string" (t/is (= 42 (i/->str 42)))) (t/testing ...
null
https://raw.githubusercontent.com/lispyclouds/bblgum/5b26ffae51857e43933714091f14b39bfe12bd6d/test/bblgum/impl_test.clj
clojure
(ns bblgum.impl-test (:require [bblgum.impl :as i] [clojure.java.io :as io] [clojure.test :as t])) (t/deftest internal-fns (t/testing "coerce keywords to string" (t/is (= "foo" (i/->str :foo)))) (t/testing "do not coerce others to string" (t/is (= 42 (i/->str 42)))) (t/testing ...
b8708ab72ee9845f226a1e69e8082b3a9c6219694493d2a860e7aa93ee0e57fe
anoma/juvix
DependencyInfo.hs
module Juvix.Data.DependencyInfo where import Data.Graph (Graph, Vertex) import Data.Graph qualified as Graph import Data.HashMap.Strict qualified as HashMap import Data.HashSet qualified as HashSet import Juvix.Prelude.Base DependencyInfo is polymorphic to anticipate future use with other identifier -- types in Ju...
null
https://raw.githubusercontent.com/anoma/juvix/26424b13384540a5351667dcb0c4965336bb61b2/src/Juvix/Data/DependencyInfo.hs
haskell
types in JuvixCore and further. The graph algorithms don't depend on the exact type of names (the polymorphic type n), so there is no reason to
module Juvix.Data.DependencyInfo where import Data.Graph (Graph, Vertex) import Data.Graph qualified as Graph import Data.HashMap.Strict qualified as HashMap import Data.HashSet qualified as HashSet import Juvix.Prelude.Base DependencyInfo is polymorphic to anticipate future use with other identifier specialise ...
27ba4feb12da2fafc8b283594647d50e3c4593052162d3868e157c99ba1daadd
mmontone/cl-docweaver
utils.lisp
(defpackage :docweaver/utils (:use :cl) (:export :symbols-matching :symbols-categorized)) (in-package :docweaver/utils) (defun symbols-matching (package substring definition-type) "Returns the list of symbosl in PACKAGE which name have SUBSTRING as substring, and the definition is of type DEFINITION-TYPE." ...
null
https://raw.githubusercontent.com/mmontone/cl-docweaver/419e2a7f6afcd34d05f25974d15fea68aadd048e/utils.lisp
lisp
(symbols-matching :cl "FILE" :function) (symbols-matching :cl "PATHNAME" :function) (symbols-categorized :docweaver/utils "foobar" :function)
(defpackage :docweaver/utils (:use :cl) (:export :symbols-matching :symbols-categorized)) (in-package :docweaver/utils) (defun symbols-matching (package substring definition-type) "Returns the list of symbosl in PACKAGE which name have SUBSTRING as substring, and the definition is of type DEFINITION-TYPE." ...
ade4f3ea41b5df7375cdcb6edeb40eefae5f8408f0ae8bde1a959f17b4dd1dc6
TrustInSoft/tis-interpreter
prover.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/wp/prover.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Soft...
747df7f000825e02845bf210ce1314adee9932b9f12b743c36900b80b386f986
fukamachi/L5
file.clj
(ns L5.file (:require [clojure.contrib.io :as io] [clojure.contrib.string :as string]) (:import [java.io File] [javax.swing JFrame JPanel JLabel JButton JFileChooser SwingConstants] [javax.swing.filechooser FileNameExtensionFilter] [java.awt GridLayout] [java....
null
https://raw.githubusercontent.com/fukamachi/L5/b5002c9f08473aab4c5b25e205fbb56260397721/src/L5/file.clj
clojure
open with the specifiled program open with $EDITOR \">Welcome to L5!</p></html > " ) )
(ns L5.file (:require [clojure.contrib.io :as io] [clojure.contrib.string :as string]) (:import [java.io File] [javax.swing JFrame JPanel JLabel JButton JFileChooser SwingConstants] [javax.swing.filechooser FileNameExtensionFilter] [java.awt GridLayout] [java....
c6a472c4a5da0f6f0872504ebff57fb04b7cef72a1cbf7a2648b71efd3b34d21
dvingo/om-storybook-example
components.cljs
(ns cljs-storybook.components (:require [om.next :as om :refer-macros [defui]] [om.dom :as dom] cljsjs.react)) (defn assign-ref [this ref] (fn [el] (aset this ref el))) (defui CanvasExample Object (componentDidMount [this] (let [canvas (aget this "canvas") ...
null
https://raw.githubusercontent.com/dvingo/om-storybook-example/2fa08ab5c3e9c4075706e5b1cf2ca08fc64a6281/src/cljs_storybook/components.cljs
clojure
(ns cljs-storybook.components (:require [om.next :as om :refer-macros [defui]] [om.dom :as dom] cljsjs.react)) (defn assign-ref [this ref] (fn [el] (aset this ref el))) (defui CanvasExample Object (componentDidMount [this] (let [canvas (aget this "canvas") ...
e518499da47569581ba1d5cc9e34b8c5ca3871dd2a7825ae5311f621e0253514
debug-ito/net-spider
Config.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- Module: NetSpider.Spider.Config -- Description: Configuration of Spider Maintainer : < > -- -- module NetSpider.Spider.Config ( Config(..), defConfig, Host, Port, LogLevel(..) ) where import Control.Monad.Logger (LogLevel...
null
https://raw.githubusercontent.com/debug-ito/net-spider/82dfbdca1add1edfd54ef36cb1ca5129d528b814/net-spider/src/NetSpider/Spider/Config.hs
haskell
# LANGUAGE OverloadedStrings # | Module: NetSpider.Spider.Config Description: Configuration of Spider | Configuration to create a 'Spider' object. ^ Name of vertex property that stores the node ID. Default: ^ Logs with the level higher than or equal to this threshold
Maintainer : < > module NetSpider.Spider.Config ( Config(..), defConfig, Host, Port, LogLevel(..) ) where import Control.Monad.Logger (LogLevel(..)) import Data.Greskell (Key) import Network.Greskell.WebSocket (Host, Port) import qualified Network.Greskell.WebSoc...
41496ba6f021305fac65d0bdebded3d5673c373dbf2b35564655061e799baad6
mangpo/greenthumb
test.rkt
#lang racket (require "../controller.rkt" "../inst.rkt" "state.rkt" "interpret.rkt" "compress.rkt" "print.rkt") (define-syntax-rule (timeout sec expr) (let* ([t (let ([parent (current-thread)]) (thread (thunk (thread-send parent (wit...
null
https://raw.githubusercontent.com/mangpo/greenthumb/7a8626205879af8c788f9927eeff643f4ddc5cde/GA/test.rkt
racket
(define-values (output cost) (superoptimize (encode (list (forloop (list) ))) (encode (list (forloop (list) ))) (syninfo 0 0 #f) ...
#lang racket (require "../controller.rkt" "../inst.rkt" "state.rkt" "interpret.rkt" "compress.rkt" "print.rkt") (define-syntax-rule (timeout sec expr) (let* ([t (let ([parent (current-thread)]) (thread (thunk (thread-send parent (wit...
47513463f2334922c63144e4c5da69665d8ef46df08530ccc54a22154bab7fbb
clojerl/clojerl
erlang_util_Date_SUITE.erl
-module(erlang_util_Date_SUITE). -include("clojerl.hrl"). -include("clj_test_utils.hrl"). -export([all/0, init_per_suite/1, end_per_suite/1]). -export([ new/1 , equiv/1 , hash/1 ]). -spec all() -> [atom()]. all() -> clj_test_utils:all(?MODULE). -spec init_per_suite(config()) -> config(). in...
null
https://raw.githubusercontent.com/clojerl/clojerl/aa35847ca64e1c66224867ca4c31ca6de95bc898/test/erlang_util_Date_SUITE.erl
erlang
------------------------------------------------------------------------------ Test Cases ------------------------------------------------------------------------------
-module(erlang_util_Date_SUITE). -include("clojerl.hrl"). -include("clj_test_utils.hrl"). -export([all/0, init_per_suite/1, end_per_suite/1]). -export([ new/1 , equiv/1 , hash/1 ]). -spec all() -> [atom()]. all() -> clj_test_utils:all(?MODULE). -spec init_per_suite(config()) -> config(). in...
ac04d36f5c299b14e3b863252bb4594d5a44067e62de7e61f9e723e1deb12718
taylorwood/advent-of-code
7.clj
(ns advent-of-code.2018.7 (:require [advent-of-code.elves :refer :all])) (def lines (->> (day->input-lines 2018 7) (map #(rest (re-matches #".+\b([A-Z]+)\b.+\b([A-Z]+)\b.+" %))))) (def child->parents (update-vals (group-by second lines) #(apply sorted-set (map first %)))) solve part one...
null
https://raw.githubusercontent.com/taylorwood/advent-of-code/c6b08f4b618875a45c8083a04ae2c669626c43bf/src/advent_of_code/2018/7.clj
clojure
prune completed relations remove completed worker prune completed relations decrement worker elapsed times; prune when complete
(ns advent-of-code.2018.7 (:require [advent-of-code.elves :refer :all])) (def lines (->> (day->input-lines 2018 7) (map #(rest (re-matches #".+\b([A-Z]+)\b.+\b([A-Z]+)\b.+" %))))) (def child->parents (update-vals (group-by second lines) #(apply sorted-set (map first %)))) solve part one...
c81a77d4ccdde60e1724cefe93b05c7cd01fb26a7935fdcab90847e17874506a
ghc/testsuite
tc205.hs
# LANGUAGE TypeOperators , GADTs , KindSignatures # Tests infix type constructors in GADT declarations module ShouldCompile where infix 1 `DArrowX` -- (->) has precedence 0 data DArrowX :: * -> * -> * where First :: a `DArrowX` a' -> (a,b) `DArrowX` (a',b)
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/tc205.hs
haskell
(->) has precedence 0
# LANGUAGE TypeOperators , GADTs , KindSignatures # Tests infix type constructors in GADT declarations module ShouldCompile where data DArrowX :: * -> * -> * where First :: a `DArrowX` a' -> (a,b) `DArrowX` (a',b)
075e6a88c39b5c7c7bee6ea12bcd95317a901e2ff196fcd13c0476edca14931b
spechub/Hets
GenerateRules.hs
| Module : $ Id$ Description : generate DriFT directives Copyright : ( c ) , , Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable generate files for DriFT to derive instances ( i.e. for ...
null
https://raw.githubusercontent.com/spechub/Hets/4cedaf8dbdb8909955e0066b465c331973043bbf/utils/GenerateRules/GenerateRules.hs
haskell
previous header files should be replaced by proper imports and possibly excluding some data types. There may be several -r, -x and -i flags. | only place imports and data directives into the output module
| Module : $ Id$ Description : generate DriFT directives Copyright : ( c ) , , Uni Bremen 2002 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable generate files for DriFT to derive instances ( i.e. for ...
ea34889cfc674b84aa145074d8960ebae1ae62926d815313ab2645ccf205bbc1
basho/yokozuna
yz_doc.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2012 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/yokozuna/e15fe64f9ef9318c0cc21754f3dfdd073d2dc77d/src/yz_doc.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2012 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @doc ...
e6e1c45e9fe244db200a6cb4ef49b8d9864994a7808c9c673cb59164d190aa2d
unifydb/unifydb
backend.clj
(ns unifydb.kvstore.backend) (defprotocol IKeyValueStoreBackend (get-all [store keys] "Retrieves the value associated with `key` in `store`.") (write-all! [store operations] "Performs multiple operations on `store` atomically, where each operation is either [:assoc! <key> <value>] or [:dissoc! <key>]") (...
null
https://raw.githubusercontent.com/unifydb/unifydb/dfed5cdbb4e6ba30a4a8ec33506e1c0750c9bade/src/unifydb/kvstore/backend.clj
clojure
(ns unifydb.kvstore.backend) (defprotocol IKeyValueStoreBackend (get-all [store keys] "Retrieves the value associated with `key` in `store`.") (write-all! [store operations] "Performs multiple operations on `store` atomically, where each operation is either [:assoc! <key> <value>] or [:dissoc! <key>]") (...
315eba94880bc812633c50e8cba53b7678e8fd9eec695fa9238199205dca3f61
AbleEng/hexpacker
config.example.clj
(ns hexpacker.config (:require [twitter.oauth :as oauth])) (def instagram-api {:access_token "INSTAGRAM ACCESS TOKEN" :client_id "INSTAGRAM CLIENT ID" :endpoint ""}) (def google-api {:1 {:key "GOOGLE API KEY1" :endpoint ""} :2 {:key "GOO...
null
https://raw.githubusercontent.com/AbleEng/hexpacker/41b0d0c224021d6c04cd31b15d38e0301f4f28c1/src/hexpacker/config.example.clj
clojure
(ns hexpacker.config (:require [twitter.oauth :as oauth])) (def instagram-api {:access_token "INSTAGRAM ACCESS TOKEN" :client_id "INSTAGRAM CLIENT ID" :endpoint ""}) (def google-api {:1 {:key "GOOGLE API KEY1" :endpoint ""} :2 {:key "GOO...
c48b071398da2330de2f9df59e9d473b612c342293b061e7de420c1f720979a7
clojure-interop/java-jdk
SynthComboBoxUI.clj
(ns javax.swing.plaf.synth.SynthComboBoxUI "Provides the Synth L&F UI delegate for JComboBox." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.synth SynthComboBoxUI])) (defn ->synth-combo-box-ui "Constructor." (^SynthComboBoxUI [] (new SynthComboBoxUI ))) (defn *create-ui ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/synth/SynthComboBoxUI.clj
clojure
(ns javax.swing.plaf.synth.SynthComboBoxUI "Provides the Synth L&F UI delegate for JComboBox." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.synth SynthComboBoxUI])) (defn ->synth-combo-box-ui "Constructor." (^SynthComboBoxUI [] (new SynthComboBoxUI ))) (defn *create-ui ...
e8eb24eb33ec0aec5f4a8d776ddd26d28456760a667fae9cc6ae611205316d9d
duct-framework/middleware.buddy
buddy_test.clj
(ns duct.middleware.buddy-test (:require [buddy.auth :as auth] [buddy.sign.jwt :as jwt] [clojure.test :refer :all] [duct.middleware.buddy :as buddy] [integrant.core :as ig] [ring.mock.request :as mock])) (defn- test-basic-authfn [_ {:keys [username password...
null
https://raw.githubusercontent.com/duct-framework/middleware.buddy/f311128af9f18c25f12b24baf5bdc6f91f9e7042/test/duct/middleware/buddy_test.clj
clojure
(ns duct.middleware.buddy-test (:require [buddy.auth :as auth] [buddy.sign.jwt :as jwt] [clojure.test :refer :all] [duct.middleware.buddy :as buddy] [integrant.core :as ig] [ring.mock.request :as mock])) (defn- test-basic-authfn [_ {:keys [username password...
b2c19b4f823452cb3c5564016b491ef481790b0e8d7727b7bc6cf2f634427f60
hypernumbers/hypernumbers
sgte.erl
%%%------------------------------------------------------------------- File : sgte.erl Author : < > %%% %%% License : The contents of this file are subject to the Mozilla Public %%% License Version 1.1 (the "License"); you may not use this file %%% except in compliance with the License. You may obtain a ...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/sgte/src/sgte.erl
erlang
------------------------------------------------------------------- License : License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language go...
File : sgte.erl Author : < > The contents of this file are subject to the Mozilla Public the License at / Software distributed under the License is distributed on an " AS IS " The Initial Developer of the Original Code is S.G. Consulting srl . Portions created by S.G. Consulting s.r.l . are Copyr...
15ba35ecfe1bfb2714d1da6e2983759138d5156ff5b67c5301e4e96e245d93d8
janestreet/base
test_fn.ml
open! Import open! Fn enforce that we 're testing [ Fn.(| > ) ] and not ppx_pipebang . let (_ : 'a -> ('a -> 'b) -> 'b) = ( |> ) let%test _ = 1 |> fun x -> x = 1 let%test _ = 1 |> fun x -> x + 1 |> fun y -> y = 2 let%test _ = 0 = apply_n_times ~n:0 (fun _ -> assert false) 0 let%test _ = 0 = apply_n_times ~n:(-3) (f...
null
https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/test/test_fn.ml
ocaml
open! Import open! Fn enforce that we 're testing [ Fn.(| > ) ] and not ppx_pipebang . let (_ : 'a -> ('a -> 'b) -> 'b) = ( |> ) let%test _ = 1 |> fun x -> x = 1 let%test _ = 1 |> fun x -> x + 1 |> fun y -> y = 2 let%test _ = 0 = apply_n_times ~n:0 (fun _ -> assert false) 0 let%test _ = 0 = apply_n_times ~n:(-3) (f...
6b771a40daef02b967a048f99b87dbb1b2edcea405fcf476bc0524ade39ff96f
Clozure/ccl-tests
floor-aux.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Aug 9 08:08:00 2003 ;;;; Contains: Aux. functions used in FLOOR tests (in-package :cl-test) (defun floor.1-fn () (loop for n = (- (random 2000000000) 1000000000) for d = (1+ (random 10000)) for vals = (multiple-value-list (floor n d)) for (q r) = v...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/floor-aux.lsp
lisp
-*- Mode: Lisp -*- Contains: Aux. functions used in FLOOR tests Need float tests
Author : Created : Sat Aug 9 08:08:00 2003 (in-package :cl-test) (defun floor.1-fn () (loop for n = (- (random 2000000000) 1000000000) for d = (1+ (random 10000)) for vals = (multiple-value-list (floor n d)) for (q r) = vals for n2 = (+ (* q d) r) repeat 1000 unless (and (eql (length vals) 2...
24df06eace611bb609240fe639b5c7f85b49e4c67fdf5e129dcb866998eb520b
informatimago/commands
new-password.lisp
-*- mode : lisp ; coding : utf-8 -*- ;;;;************************************************************************** FILE : new - password ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp ;;;;USER-INTERFACE: Unix Command Line ;;;;DESCRIPTION ;;;; ;;;; Generate a random pass...
null
https://raw.githubusercontent.com/informatimago/commands/65d0d6385269f3e210aed4943aefdbb5372706b9/sources/commands/new-password.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp USER-INTERFACE: Unix Command Line DESCRIPTION Generate a random password. LEGAL GPL This program is free software; you can redistribute it a...
FILE : new - password Depends on ~/bin / script.lisp < PJB > < > MODIFICATIONS 2010 - 01 - 06 < PJB > Created . ( Rewrote from a bit - rotten bash script ) . Copyright 2010 - 2010 modify it under the terms of the GNU General Public License 2 of the License , or ( at...
8036890aeb680cdf7a38d343e18affeb6f8374eb17647c73f3390e5a3175e900
lexi-lambda/racket-r7rs
info.rkt
#lang info (define collection "r7rs") (define version "1.1") (define deps '(["base" #:version "8.4.0.8"] "compatibility-lib" "r5rs-lib" "r6rs-lib")) (define build-deps '("rackunit-lib"))
null
https://raw.githubusercontent.com/lexi-lambda/racket-r7rs/a66868651dfee41e0c66887efa8201f7dcb23fb1/r7rs-lib/info.rkt
racket
#lang info (define collection "r7rs") (define version "1.1") (define deps '(["base" #:version "8.4.0.8"] "compatibility-lib" "r5rs-lib" "r6rs-lib")) (define build-deps '("rackunit-lib"))
01ca8da54d33a9254d24e9de58dcd63f72ff56ba19e5add0422942d21d76e78b
nvim-treesitter/nvim-treesitter
folds.scm
[ (array) (map) (tuple) (struct) (block_comment) ] @fold
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/24d5be6e7192a855a0eba21829717614fa1cf54e/queries/ron/folds.scm
scheme
[ (array) (map) (tuple) (struct) (block_comment) ] @fold
ddef94f2db3d4b27ad089b5190d0b7cb66c0a5ff92972296291bdead4faabd5f
practicalli/four-clojure
009_sets_conj.clj
(ns four-clojure.009-sets-conj) # 9 Sets : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Difficulty: Elementary ;; Topics: When operating on a set , the function returns a new set with one or more keys " added " . ;; (= #{1 2 3 4} (conj #{1 4 3} __)) Deconstruct the problem ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/practicalli/four-clojure/9812b63769a06f9b0bfd63e5ffce380b67e5468b/src/four_clojure/009_sets_conj.clj
clojure
Difficulty: Elementary Topics: (= #{1 2 3 4} (conj #{1 4 3} __)) A simple challenge to show how `conj` works with sets. REPL experiments it is only the values within the set that is important So if the result we want is `#{1 2 3 4}` then we just need to conjoin the missing number => #{1 4 3 2} Answers summ...
(ns four-clojure.009-sets-conj) # 9 Sets : When operating on a set , the function returns a new set with one or more keys " added " . Deconstruct the problem As discussed in challenge # 8 , sets do not really care about order (conj #{1 4 3} 2) 2 Superfluous answers so long as you are addin...
5448cdbd076560601881731448c1b9cdfa7eff11a1326f79dbf140b8824dd0c3
typedclojure/typedclojure
check.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/0c1ac9efdb1a798e2591ecead3706c778995b02b/typed/clj.checker/src/typed/cljc/checker/check.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:no-doc typed.cljc.checker.check (:require [typed.clojure :as t] [typed.cljc.checker.ns-deps-utils :as ns-depsu] [clojure.core.typed.util-vars :as vs])) (def ^:dynamic check-expr "[expr] => cexpr [expr expected] => cexpr")
03c67affc1f70d3c287906211a5ee40d290f1921010d8e5cfd36b32aa6c5681c
webyrd/n-grams-for-synthesis
r7rs-shim.scm
(define *eof-object* (read (open-input-string ""))) (define (eof-object) *eof-object*) (define (bytevector-u8-ref bv i) (u8vector-ref bv i)) (define (bytevector-length bv) (u8vector-length bv)) (define (truncate/ n1 n2) (values (quotient n1 n2) (remainder n1 n2)))
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-121/generators/r7rs-shim.scm
scheme
(define *eof-object* (read (open-input-string ""))) (define (eof-object) *eof-object*) (define (bytevector-u8-ref bv i) (u8vector-ref bv i)) (define (bytevector-length bv) (u8vector-length bv)) (define (truncate/ n1 n2) (values (quotient n1 n2) (remainder n1 n2)))
2ef35b323bf59326b62123982fb7beca3cfe983f03ae48e45f8eb1de290352c9
BioHaskell/hPDB
ParseSPLIT.hs
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE OverloadedStrings #-} -- | Parsing SPLIT records. module Bio.PDB.EventParser.ParseSPLIT(parseSPLIT) where import qualified Data.ByteString.Char8 as BS import Bio.PDB.EventParser.PDBEvents import Bio.PDB.EventParser.PDBParsingAbstractions --------------- {{{ SPLIT...
null
https://raw.githubusercontent.com/BioHaskell/hPDB/5be747e2f2c57370b498f4c11f9f1887fdab0418/Bio/PDB/EventParser/ParseSPLIT.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE OverloadedStrings # | Parsing SPLIT records. ------------- {{{ SPLIT records -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- } | Parses a SPLIT record: Arg...
module Bio.PDB.EventParser.ParseSPLIT(parseSPLIT) where import qualified Data.ByteString.Char8 as BS import Bio.PDB.EventParser.PDBEvents import Bio.PDB.EventParser.PDBParsingAbstractions - COLUMNS DATA TYPE FIELD DEFINITION 1 - 6 Record name " SPLIT " 9 - 10 Con...
b82f6c3ac14309ed211146b3dc092dc307828fd2fe55c419c79c16dc3b4f7fa4
processone/ejabberd
ejabberd_web.erl
%%%---------------------------------------------------------------------- File : ejabberd_web.erl Author : < > %%% Purpose : %%% Purpose : Created : 28 Feb 2004 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2023 ProcessOne %%% %%% This program is free software; you can redistribute it and/or ...
null
https://raw.githubusercontent.com/processone/ejabberd/c103182bc7e5b8a8ab123ce02d1959a54e939480/src/ejabberd_web.erl
erlang
---------------------------------------------------------------------- Purpose : Purpose : This program is free software; you can redistribute it and/or License, or (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 i...
File : ejabberd_web.erl Author : < > Created : 28 Feb 2004 by < > ejabberd , Copyright ( C ) 2002 - 2023 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU G...
ba274cd47d4ade7173f29f8a012e99e535383b7ecdce156d595557bdd9276dec
timbod7/haskell-chart
Lines.hs
----------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.Chart.Plot.Lines Copyright : ( c ) 2006 , 2014 -- License : BSD-style (see chart/COPYRIGHT) -- -- Line plots -- # LANGUAGE TemplateHaskell # module Graphics.Rendering.Chart.Plot.Lines( ...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/chart/Graphics/Rendering/Chart/Plot/Lines.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.Rendering.Chart.Plot.Lines License : BSD-style (see chart/COPYRIGHT) Line plots | Value defining a series of (possibly disjointed) lines, and a style in which to render them. | The lines to be plotted ...
Copyright : ( c ) 2006 , 2014 # LANGUAGE TemplateHaskell # module Graphics.Rendering.Chart.Plot.Lines( PlotLines(..), defaultPlotLineStyle, hlinePlot, vlinePlot, plot_lines_title, plot_lines_style, plot_lines_values, plot_lines_limit_values, ) where import Control.Lens import...
518cd276181535f7dcc2641eae8e9863ede27fce1701a3be6227956bfdff7092
haskell/stylish-haskell
Util.hs
-------------------------------------------------------------------------------- {-# LANGUAGE LambdaCase #-} # LANGUAGE PatternGuards # module Language.Haskell.Stylish.Util ( indent , padRight , everything , trimLeft , trimRight , wrap , wrapRest , wrapMaybe , wrapRestMaybe -...
null
https://raw.githubusercontent.com/haskell/stylish-haskell/05cc9e18f39ee7d465746d8493832e4012d6674b/lib/Language/Haskell/Stylish/Util.hs
haskell
------------------------------------------------------------------------------ # LANGUAGE LambdaCase # * Extra list functions ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------...
# LANGUAGE PatternGuards # module Language.Haskell.Stylish.Util ( indent , padRight , everything , trimLeft , trimRight , wrap , wrapRest , wrapMaybe , wrapRestMaybe , withHead , withInit , withTail , withLast , flagEnds , traceOutputable , traceOutputab...
77894f5504dbc780a740e46250a5d048adfed458c725eae366c10b4553be63ac
RefactoringTools/wrangler
wrangler_scan_with_layout.erl
` ` 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 Public License along with this software. If not, it can be %% retrieved via the world wide...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/wrangler_scan_with_layout.erl
erlang
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 via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations u...
` ` 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 " The Initial Developer of the Original Code is Ericsson Utvecklings AB . Portions created by Eri...
c3e9b20c3524bf06c3f2a960170ed8b79a4bca241b286ba5a145f57f8a940618
Mzk-Levi/texts
Injections.hs
# LANGUAGE TemplateHaskell # -------------------------------------------------------------------------------- -- | Module : Data . Comp . . Derive . Injections Copyright : ( c ) 2011 , -- License : BSD3 Maintainer : < > -- Stability : experimental Portability : non - portable ...
null
https://raw.githubusercontent.com/Mzk-Levi/texts/34916d6531af9bc39e50b596247ac2017d8cfdc3/compdata-param-master/src/Data/Comp/Param/Derive/Injections.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : experimental Derive functions for signature injections. ------------------------------------------------------------------------------
# LANGUAGE TemplateHaskell # Module : Data . Comp . . Derive . Injections Copyright : ( c ) 2011 , Maintainer : < > Portability : non - portable ( GHC Extensions ) module Data.Comp.Param.Derive.Injections ( injn, injectn, deepInjectn ) where import Language.Ha...
dc8bbcb0140bb0ff349cee52a391ecc7a972b576f1329515a6449f1ca0b0a616
rd--/hsc3
dc.help.hs
dc ; zero dc ar 0 -- dc ; offset, clicks on start and finish dc ar 0.5 -- dc ; offset, clicks on start and finish dc ar 0.5 + sinOsc ar 440 0 * 0.1 dc ; transient before LeakDC adapts and suppresses the offset leakDC (dc ar 1) 0.995
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/dc.help.hs
haskell
dc ; offset, clicks on start and finish dc ; offset, clicks on start and finish
dc ; zero dc ar 0 dc ar 0.5 dc ar 0.5 + sinOsc ar 440 0 * 0.1 dc ; transient before LeakDC adapts and suppresses the offset leakDC (dc ar 1) 0.995
55e80f1311b0da55cde5a3c90489b83758dd2508d23a5d6c93adf645fb90418d
tlikonen/cl-decimals
decimals-test.lisp
(defpackage #:decimals-test (:use #:cl) (:export #:run-tests)) (in-package #:decimals-test) (defun report (name form) (format t "~A: ~S~%" (if form "pass" "FAIL") name) (if form t nil)) (defmacro check (&body forms) (let ((totalv (gensym))) `(let ((,totalv t)) ,@(loop :for form :in forms ...
null
https://raw.githubusercontent.com/tlikonen/cl-decimals/b7980f11282e00ac91b93b537778dad04fe85c11/decimals-test.lisp
lisp
(defpackage #:decimals-test (:use #:cl) (:export #:run-tests)) (in-package #:decimals-test) (defun report (name form) (format t "~A: ~S~%" (if form "pass" "FAIL") name) (if form t nil)) (defmacro check (&body forms) (let ((totalv (gensym))) `(let ((,totalv t)) ,@(loop :for form :in forms ...
fe829384a745d80579f58b15adbf02c3e6741ad8215249a3697fcb0681f51fe9
spechub/Hets
lts.hs
| Module : ./CoCASL / LTS / lts.hs Copyright : ( c ) , Uni Bremen 2004 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Functions which allow to compute - satisfaction of a Hennessy - Milner - Logic formula for ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CoCASL/LTS/lts.hs
haskell
functions for hml-formulas functions for bisimulations functions for simulations
| Module : ./CoCASL / LTS / lts.hs Copyright : ( c ) , Uni Bremen 2004 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Functions which allow to compute - satisfaction of a Hennessy - Milner - Logic formula for ...
2bd6b46157c11f390588a1fc093ebc1e43956751f0b584ffe89f40e561046df0
Rotaerk/vulkanTest
Local.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} module Graphics.Vulkan.Marshal.Local ( module Graphics.Vulkan.Marshal, getFieldArrayAssocs, getFieldArrayElems ) where import Data.Functor import Graphics.Vulkan.Marshal getFieldArrayAssocs :: forall fname a. CanReadFi...
null
https://raw.githubusercontent.com/Rotaerk/vulkanTest/228007f3f56ce4200f9fe841ac85292cae044c97/sandbox/sandbox/src/Graphics/Vulkan/Marshal/Local.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # module Graphics.Vulkan.Marshal.Local ( module Graphics.Vulkan.Marshal, getFieldArrayAssocs, getFieldArrayElems ) where import Data.Functor import Graphics.Vulkan.Marshal getFieldArrayAssocs :: forall fname a. CanReadFieldArray fname a => a -> [(I...
d953c103aa63ea5a34a4cd6121c0bcd092e463fc18d6ddb5f26b42f3074cba95
gilith/hol-light
haskell.ml
(* ========================================================================= *) (* THE STANDARD THEORY LIBRARY IN HASKELL *) (* ========================================================================= *) (* -----------...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/opentheory/theories/haskell/haskell.ml
ocaml
========================================================================= THE STANDARD THEORY LIBRARY IN HASKELL ========================================================================= ------------------------------------------------------------------------- Haskell source....
export_theory "base-haskell-src";; let () = (export_thm o prove) (`(LENGTH ([] : A list) = 0) /\ (!(h : A) t. LENGTH (CONS h t) = LENGTH t + 1)`, REWRITE_TAC [LENGTH_NIL; LENGTH_CONS; ADD1]);; let () = (export_thm o prove) (`!n. EVEN n <=> n ...
6e842dae8750788dcd1859ff92bdaac977eabbdb23b499a7ad230ca152a6caaa
jebberjeb/viz.cljc
project.clj
(defproject viz-cljc "0.1.3" :description "Clojure and Clojurescript support for Viz.js" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha14"] [org.clojure/clojurescript "1.9.854"]] :plugins [[lein-cljsbuild "1.1....
null
https://raw.githubusercontent.com/jebberjeb/viz.cljc/0194d6510aa06de03577f8589faf80d7116afe0f/project.clj
clojure
(defproject viz-cljc "0.1.3" :description "Clojure and Clojurescript support for Viz.js" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha14"] [org.clojure/clojurescript "1.9.854"]] :plugins [[lein-cljsbuild "1.1....
3ea4b52538801aa8c4be46987128b58817df47a38bcaf988dde24204e0271eb4
patrickt/co-log-fused-effects
Main.hs
module Main (main) where import CoLogFusedEffects (someFunc) main :: IO () main = someFunc
null
https://raw.githubusercontent.com/patrickt/co-log-fused-effects/1820c388f3da626f5c6a1bbc2265db252e64d852/app/Main.hs
haskell
module Main (main) where import CoLogFusedEffects (someFunc) main :: IO () main = someFunc
a2c663ab7a768a3e1ab3d3f5451aa5aab62539340a82be4df070fc6b16fed97b
sysbio-bioinf/avatar
conversions.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 2.0 ( -v20.html ) ; which can be found in the file LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the terms of ...
null
https://raw.githubusercontent.com/sysbio-bioinf/avatar/cbf9968485f96fb61725aaa7381dba53624d6189/src/clojure/avatar/data/conversions.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. error ha...
Copyright ( c ) . All rights reserved . Eclipse Public License 2.0 ( -v20.html ) (ns avatar.data.conversions (:require [avatar.data.import :as imp] [avatar.util :as u] [clojure.string :as str] [clojure.java.io :as io] [avatar.data.csv :as csv])) (defn check-table-format [table-data] ...
34ebebdec95c2c6ef59728f29cf3f56cae29d0bd359c40709fa73b1f178c9980
mfoemmel/erlang-otp
inviso_as_lib.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2006 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/runtime_tools/src/inviso_as_lib.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 2006 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " Author : < > Created : 15 Dec 200...
b87c7177ba0f170f680d6d3f99749443c8b7058f92f9859cf0fdcc7d6c42957a
mfelleisen/7GUI
task-3.rkt
#! /usr/bin/env gracket #lang racket/gui a flight booker that allows a choice between one - way and return bookings ;; and, depending on the choice, a start date or a start date and an end date. ;; --------------------------------------------------------------------------------------------------- (require 7GUI/Mac...
null
https://raw.githubusercontent.com/mfelleisen/7GUI/e3631e78ab12306ad81b560443913afa4b156dec/Macros/task-3.rkt
racket
and, depending on the choice, a start date or a start date and an end date. --------------------------------------------------------------------------------------------------- gregor should not raise an exception when parsing fails, but return #f --------------------------------------------------------------------...
#! /usr/bin/env gracket #lang racket/gui a flight booker that allows a choice between one - way and return bookings (require 7GUI/Macros/7guis 7GUI/Macros/7state) (require gregor) (define (to-date d) (with-handlers ([exn? (λ (_) #f)]) (parse-date d "d.M.y"))) (define DATE0 "27.03.2014") (define ONE "one-way...
d08567439383b678fd014f0772f8bf36146c52f5f9d4e4aca2f2addde88eb967
rowangithub/DOrder
stypes.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ,...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/typing/stypes.ml
ocaml
********************************************************************* Objective Caml ...
, projet , INRIA Rocquencourt Copyright 2003 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : stypes.ml 8958 2008 - 07 - 29 15:42:44...
a743303355e6c5c9a21bee4fb9fbeb630d1f15387c7d3b8a4e27568b25505604
trskop/command-wrapper
Environment.hs
-- | -- Module: $Header$ -- Description: Application environment and environment variables. Copyright : ( c ) 2018 - 2020 License : BSD3 -- -- Maintainer: -- Stability: experimental Portability : GHC specific language extensions . -- -- Application environment and environment variables. module ...
null
https://raw.githubusercontent.com/trskop/command-wrapper/4f2e2e1f63a3296ccfad9f216d75a708969890ed/command-wrapper-core/src/CommandWrapper/Core/Environment.hs
haskell
| Module: $Header$ Description: Application environment and environment variables. Maintainer: Stability: experimental Application environment and environment variables. * Environment Variables * Environment Builder * Application Params See also `subcommand-protocol(7)` manual page. * Applicatio...
Copyright : ( c ) 2018 - 2020 License : BSD3 Portability : GHC specific language extensions . module CommandWrapper.Core.Environment ( module CommandWrapper.Core.Environment.Variable , module CommandWrapper.Core.Environment.Builder * Environment , module CommandWrapper.Core.Enviro...
ab081743dc0a287d01661bd5b58f190417c50e9de36a4f8578bd68757f9abb77
Gastove/doctopus
markdown.clj
(ns doctopus.parsers.markdown (:require [markdown.core :as md])) (defn parse-mardown-file "Read a file and parse the contents from markdown to html" [file] {:pre [(re-find #"(?i)[md|markdown|mdown]$" file)]} (let [text-string (slurp file)] (md/md-to-html-string text-string))) (defn parse-to-file "Pars...
null
https://raw.githubusercontent.com/Gastove/doctopus/407ca58bb01a6da84f3a76a58c800ee0a7f14190/src/doctopus/parsers/markdown.clj
clojure
(ns doctopus.parsers.markdown (:require [markdown.core :as md])) (defn parse-mardown-file "Read a file and parse the contents from markdown to html" [file] {:pre [(re-find #"(?i)[md|markdown|mdown]$" file)]} (let [text-string (slurp file)] (md/md-to-html-string text-string))) (defn parse-to-file "Pars...
dd82d4a244041059dcea363dbbf7802ac3f0346c729a84f5c0068d8c83be4bce
SonyCSLParis/BENG
meta-layer-aux.lisp
Copyright ( C ) 2019 Sony Computer Science Laboratories Paris ( www.remivantrijp.eu ) ;;; ;;; 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 , version 3 o...
null
https://raw.githubusercontent.com/SonyCSLParis/BENG/1eb525e132d2b1f74ae18532657561725f6fbb78/construction-inventory/meta-layer-aux.lisp
lisp
This program is free software: you can redistribute it and/or modify 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 mo...
Copyright ( C ) 2019 Sony Computer Science Laboratories Paris ( www.remivantrijp.eu ) it under the terms of the GNU General Public License as published by the Free Software Foundation , version 3 of the License . You should have received a copy of the GNU General Public Li...
014fcbf0f2a2597da911ed9f55025c7ff34bbda9cdd0eef669d86aee7204d2e0
matijapretnar/eff
config.mli
(** Configuration parameters *) val version : string (** Current version *) val use_stdlib : bool ref (** Should we load the standard library? *) type backend = Runtime | Multicore | Ocaml val backend : backend ref val ascii : bool ref * Should we use ASCII instead of Unicode for printing out types ? val interact...
null
https://raw.githubusercontent.com/matijapretnar/eff/0b0ec7a83e7db4d040ed8fdfc1ac6e3c0f344be1/src/00-utils/config.mli
ocaml
* Configuration parameters * Current version * Should we load the standard library? * Should the interactive shell be run? * The command-line wrappers that we look for * Select which messages should be printed: - 0 no messages - 1 only errors - 2 errors and check - 3 errors, check, and warnings ...
val version : string val use_stdlib : bool ref type backend = Runtime | Multicore | Ocaml val backend : backend ref val ascii : bool ref * Should we use ASCII instead of Unicode for printing out types ? val interactive_shell : bool ref val wrapper : string list option ref val include_header_open : bool ref * Sh...
c84b8fccfd4c4d21fa276e88207095d4f60cc7cc1536a408fd4e695f36c5577e
pveber/bistro
command.ml
open Base type 'a t = | Simple_command of 'a template | And_list of 'a t list | Or_list of 'a t list | Pipe_list of 'a t list and 'a template = 'a Template.t let rec deps cmd ~compare = match cmd with | And_list xs | Or_list xs | Pipe_list xs -> List.map xs ~f:(deps ~compare) |> List.concat ...
null
https://raw.githubusercontent.com/pveber/bistro/da0ebc969c8c5ca091905366875cbf8366622280/lib/internals/command.ml
ocaml
open Base type 'a t = | Simple_command of 'a template | And_list of 'a t list | Or_list of 'a t list | Pipe_list of 'a t list and 'a template = 'a Template.t let rec deps cmd ~compare = match cmd with | And_list xs | Or_list xs | Pipe_list xs -> List.map xs ~f:(deps ~compare) |> List.concat ...