_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
c98fd8debe0fd48e7e7eb12b9fdb505dca40a90f11106d37b342938463146e78
tezos/tezos-mirror
builtin_models.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/cdc7a4382ef6dfcd6c73f86d9a29b829b33d18d4/src/lib_benchmark/builtin_models.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
fa283b5309f2ad609cf4be153d7a5859889e28c52ec8014fa83bff378c31b83b
jackfirth/resyntax
info.rkt
#lang info (define collection "resyntax") (define scribblings (list (list "main.scrbl" (list 'multi-page) (list 'library) "resyntax"))) (define deps (list "base" "br-parser-tools-lib" "brag-lib" "fancy-app" "gui-lib" "rackunit-l...
null
https://raw.githubusercontent.com/jackfirth/resyntax/fd05e555affc61b62c8b4e5e65ade1c10941d555/info.rkt
racket
#lang info (define collection "resyntax") (define scribblings (list (list "main.scrbl" (list 'multi-page) (list 'library) "resyntax"))) (define deps (list "base" "br-parser-tools-lib" "brag-lib" "fancy-app" "gui-lib" "rackunit-l...
9013d0c751bede4074177e0bb54c75267d7165a35a3726804a4ae368b93a2860
sixohsix/tak
RunLoop.hs
module Tak.RunLoop (doMainLoop, confirm, query) where import Tak.Types import Tak.Display import Tak.Editor import Tak.GlobalState import Data.Monoid (mappend) import Control.Lens (set, over, view) import Control.Monad (when, guard) renderAndRefresh :: GlobalState -> IO () renderAndRefresh gst = do (y, x) <- getSc...
null
https://raw.githubusercontent.com/sixohsix/tak/6310d19faa683156933dde38666c11dc087d79ea/src/Tak/RunLoop.hs
haskell
module Tak.RunLoop (doMainLoop, confirm, query) where import Tak.Types import Tak.Display import Tak.Editor import Tak.GlobalState import Data.Monoid (mappend) import Control.Lens (set, over, view) import Control.Monad (when, guard) renderAndRefresh :: GlobalState -> IO () renderAndRefresh gst = do (y, x) <- getSc...
d9c3e26369042a665bea6f58504c4d4ad256ea8f646897146212a09a5fe60944
ogaml/ogaml
window.ml
open OgamlCore open OgamlUtils open OgamlMath type t = { context : Context.t; internal : LL.Window.t; settings : ContextSettings.t; mutable min_spf : float; clock : Clock.t } let create ?width:(width=800) ?height:(height=600) ?title:(title="") ?settings:(settings=OgamlCore.ContextSettings.creat...
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/src/graphics/window/window.ml
ocaml
open OgamlCore open OgamlUtils open OgamlMath type t = { context : Context.t; internal : LL.Window.t; settings : ContextSettings.t; mutable min_spf : float; clock : Clock.t } let create ?width:(width=800) ?height:(height=600) ?title:(title="") ?settings:(settings=OgamlCore.ContextSettings.creat...
c501aae02c3817e9d0c451220a0e2bb4135ce878763f8ffafbe2b751465b7b36
metametadata/carry
project.clj
(defproject carry-history "0.7.0" :description "Carry middleware which simplifies working with browser history." :url "" :license {:name "MIT" :url ""} :dependencies [[org.clojure/clojure "1.8.0" :scope "provided"] [org.clojure/clojurescript "1.9.229" :scope "provided"] [or...
null
https://raw.githubusercontent.com/metametadata/carry/fa5c7cd0d8f1b71edca70330acc97c6245638efb/contrib/history/project.clj
clojure
(defproject carry-history "0.7.0" :description "Carry middleware which simplifies working with browser history." :url "" :license {:name "MIT" :url ""} :dependencies [[org.clojure/clojure "1.8.0" :scope "provided"] [org.clojure/clojurescript "1.9.229" :scope "provided"] [or...
b0fe3886b52787018080c8d78eeb9aed32538e434773f3cd8a4868db8596c058
awslabs/s2n-bignum
bignum_copy.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_copy.ml
ocaml
========================================================================= Copying (with truncation or extension) bignums ========================================================================= *** print_literal_from_elf "x86/generic/bignum_copy.o";; *** XOR (% r8) (% r8) TEST (% r...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) let bignum_copy_mc = define_assert_from_elf "bignum_copy_mc" "x8...
1b8cff668ac1f76e9e920a1e46ace8f287d45388b4b67771151a446e35428e75
riemann/riemann
druid.clj
(ns riemann.druid "Forwards events to Druid" (:require [clj-http.client :as http] [cheshire.core :refer [generate-string]] [riemann.common :refer [unix-to-iso8601]])) (defn post-datapoint "Post the riemann metrics as datapoints." [host port dataset json-data http-opts] (let [scheme "http://" ...
null
https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/src/riemann/druid.clj
clojure
A name for the forwarder Minimum 5 threads
(ns riemann.druid "Forwards events to Druid" (:require [clj-http.client :as http] [cheshire.core :refer [generate-string]] [riemann.common :refer [unix-to-iso8601]])) (defn post-datapoint "Post the riemann metrics as datapoints." [host port dataset json-data http-opts] (let [scheme "http://" ...
4f3f12f43cfa9ada12b7d61410f3d834736f154a418777c605a34cb44fd94e3b
runtimeverification/haskell-backend
InfoUserLog.hs
# LANGUAGE NoStrict # # LANGUAGE NoStrictData # | Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Log.InfoUserLog ( InfoUserLog (..), infoUserLog, ) where import Data.Text ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/76027ab6c805c1b2523da94ea48368f0f4303edc/kore/src/Kore/Log/InfoUserLog.hs
haskell
# LANGUAGE NoStrict # # LANGUAGE NoStrictData # | Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Log.InfoUserLog ( InfoUserLog (..), infoUserLog, ) where import Data.Text ...
e192df260fa7b5ba0195f1d2c37eb43b62e50d566bb09b925d6c4b00a03ad1d1
bobby/redisconf19-demo
events.cljs
(ns redis-streams-clj.storefront.ui.events (:require [clojure.set :as set] [re-frame.core :as re-frame] [day8.re-frame.tracing :refer-macros [fn-traced]] [re-graph.core :as re-graph] redis-streams-clj.storefront.ui.effects [redis-streams-clj.storefront.ui.co...
null
https://raw.githubusercontent.com/bobby/redisconf19-demo/0191ed1cf6a7cdf47037de3e4dd187a5c6a33a36/storefront/src/redis_streams_clj/storefront/ui/events.cljs
clojure
TODO: make these urls configurable TODO: handle errors TODO: handle :errors TODO: handle :errors TODO: handle :errors TODO: handle :errors
(ns redis-streams-clj.storefront.ui.events (:require [clojure.set :as set] [re-frame.core :as re-frame] [day8.re-frame.tracing :refer-macros [fn-traced]] [re-graph.core :as re-graph] redis-streams-clj.storefront.ui.effects [redis-streams-clj.storefront.ui.co...
cc38330713a011025c6f9887e2a6812b4b981aa1d3209ae801091243c489440f
genmeblog/genuary
day18.clj
;; VHS. ;; full process: (ns genuary.2022.day18 (:require [clojure2d.core :as c2d] [clojure2d.extra.utils :as utils] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.signal :as sig] [clojure2d.extra.signal :as sig2d] [clojure2d.extra...
null
https://raw.githubusercontent.com/genmeblog/genuary/c8d5d23d5bc3d91b90a894461c9af27f9a15ad65/src/genuary/2022/day18.clj
clojure
VHS. full process: convolve horizontally only
(ns genuary.2022.day18 (:require [clojure2d.core :as c2d] [clojure2d.extra.utils :as utils] [clojure2d.pixels :as p] [clojure2d.color :as c] [fastmath.signal :as sig] [clojure2d.extra.signal :as sig2d] [clojure2d.extra.overlays :as o] ...
bcdfe0cc6a7d7564f7325047ecf9c07e660f9dcb60fcea1c0d3786daeb97e2ef
Dexterminator/imperimetric
server.clj
(ns imperimetric.server (:require [imperimetric.handler :refer [handler dev-handler]] [config.core :refer [env]] [imperimetric.frinj-setup :refer [frinj-setup!]] [ring.adapter.jetty :refer [run-jetty]]) (:gen-class)) (defn -main [& args] (frinj-setup!) (let [port (Integer/pa...
null
https://raw.githubusercontent.com/Dexterminator/imperimetric/57e975c470490724f69cc43c2f5d0fa2359745d0/src/clj/imperimetric/server.clj
clojure
(ns imperimetric.server (:require [imperimetric.handler :refer [handler dev-handler]] [config.core :refer [env]] [imperimetric.frinj-setup :refer [frinj-setup!]] [ring.adapter.jetty :refer [run-jetty]]) (:gen-class)) (defn -main [& args] (frinj-setup!) (let [port (Integer/pa...
bac39a0c3b894d07e30c10ce02226bb65a07517bbe323c4ea5cd6a483d3b6298
semerdzhiev/fp-2020-21
07-composition.rkt
#lang racket (require rackunit) (require rackunit/text-ui) (define (accumulate op null-value start end term next) (if (> start end) null-value (op (term start) (accumulate op null-value (next start) end term next)))) (define (compose f g) (lambda (x) (f (g x)))) Искаме да изразим функция n пъти ч...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-b/exercises/03.higher-order-functions/07-composition.rkt
racket
(accumulate ??? ??? ??? ??? ??? ???)
#lang racket (require rackunit) (require rackunit/text-ui) (define (accumulate op null-value start end term next) (if (> start end) null-value (op (term start) (accumulate op null-value (next start) end term next)))) (define (compose f g) (lambda (x) (f (g x)))) Искаме да изразим функция n пъти ч...
a9443d8484a7b4f83e0b18489f720719704b927c07f313c8189eed21819c07f8
reflex-frp/patch
MapWithMove.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveTraversable #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternGuards # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE Standalo...
null
https://raw.githubusercontent.com/reflex-frp/patch/b4f8f06441c0af33d1917530d5aa84f915bdbf2e/src/Data/Patch/MapWithMove.hs
haskell
# LANGUAGE DeriveTraversable # * Node Info * From * To already a transparent synonym and vice versa. There should never be any unpaired From/To keys. | Extract the underlying 'PatchMapWithPatchingMove k (Proxy v)' | Compose patches having the same effect as applying the patches in turn: @'applyAlways' (p <> q)...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternGuards # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHas...
455d78054c410f2cfc0579fb7145046a05ba1fbb0215b152dac40e1857e215cd
matsen/pplacer
test_util.ml
open Mass_map open Ppatteries open OUnit (* Assume the test runner is running in the project root. We can't do much better than this. *) let tests_dir = "./tests/" (* *** convenience funs for getting things *** *) let placeruns_of_dir which = get_dir_contents ~pred:(flip Filename.check_suffix "jplace") ...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/tests/test_util.ml
ocaml
Assume the test runner is running in the project root. We can't do much better than this. *** convenience funs for getting things *** *** equalities *** *** approximate equalities *** *** infixes for equalities *** *** random stuff ***
open Mass_map open Ppatteries open OUnit let tests_dir = "./tests/" let placeruns_of_dir which = get_dir_contents ~pred:(flip Filename.check_suffix "jplace") (tests_dir ^ "data/" ^ which) |> List.of_enum |> List.sort compare |> List.map Placerun_io.of_any_file let placerun_of_dir dir which = plac...
8f7bf0961b81dfcabc13b8bbb4cc0a4c22010dca7aa6e3520d471cccd7ea967d
LexiFi/menhir
SortInference.mli
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/SortInference.mli
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
77fec2dad7d3f149e24ee4a938fe54be5faf41ca82ccca63d213252dee664271
erlang-ls/erlang_ls
els_uri.erl
%%============================================================================== %% Library to parse RFC-3986 URIs %%============================================================================== %% For details, see: %%============================================================================== -module(els_uri). %%...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/2dfb48aca3879e5b44f6fd676f8349525262779f/apps/els_core/src/els_uri.erl
erlang
============================================================================== Library to parse RFC-3986 URIs ============================================================================== For details, see: ============================================================================== ===============================...
-module(els_uri). -export([ module/1, path/1, uri/1 ]). -type path() :: binary(). -export_type([path/0]). -include("els_core.hrl"). -spec module(uri()) -> atom(). module(Uri) -> binary_to_atom(filename:basename(path(Uri), <<".erl">>), utf8). -spec path(uri()) -> path(). path(Uri) -> path(Uri, ...
fa10b50c73c98d62e1eaaab9d9e536dc7054f2a05387ba3ad32fecee4523c8b4
commercialhaskell/stack
StackTest.hs
module StackTest ( run' , run , runShell , runWithCwd , stackExe , stackSrc , testDir , stack' , stack , stackCleanFull , stackIgnoreException , stackErr , Repl , ReplConnection (..) , nextPrompt , replCommand , replGetChar , replGetLine , runRepl , repl , stackStderr , stack...
null
https://raw.githubusercontent.com/commercialhaskell/stack/80429690da92c634cb129f99f1507dbc47a70d45/test/integration/lib/StackTest.hs
haskell
successfully. | Run stack with arguments and apply a check to the resulting stderr output if the process succeeded. fails. | Run stack with arguments and apply a check to the resulting stdout output if the process succeeded. Take care with newlines; if the output includes a newline character that should not be...
module StackTest ( run' , run , runShell , runWithCwd , stackExe , stackSrc , testDir , stack' , stack , stackCleanFull , stackIgnoreException , stackErr , Repl , ReplConnection (..) , nextPrompt , replCommand , replGetChar , replGetLine , runRepl , repl , stackStderr , stack...
52960bbc69d838d3a2cf3cf7521d6d7a83c7da3e0bdd34f9d61489d55602522e
jrh13/hol-light
basics.ml
(* ========================================================================= *) (* More syntax constructors, and prelogical utilities like matching. *) (* *) , University of Cambridge Computer Laboratory (* ...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/basics.ml
ocaml
========================================================================= More syntax constructors, and prelogical utilities like matching. ===============...
, University of Cambridge Computer Laboratory ( c ) Copyright , University of Cambridge 1998 ( c ) Copyright , 1998 - 2007 ( c ) Copyright , , 2017 - 2018 needs "fusion.ml";; let genvar = let gcount...
2fd5c3df9cf45bd25c343bd80a8beef8d8fefc78abafdfd181ba16af2caf9e51
BranchTaken/Hemlock
test_sink.ml
open Basis let () = File.Fmt.sink |> Fmt.fmt "sink\n" |> Fmt.flush |> ignore; File.Fmt.stdout |> Fmt.fmt "stdout\n" |> Fmt.flush |> ignore
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a21b462fe7f70475591d2ffae185c91552bf6372/bootstrap/test/basis/file/test_sink.ml
ocaml
open Basis let () = File.Fmt.sink |> Fmt.fmt "sink\n" |> Fmt.flush |> ignore; File.Fmt.stdout |> Fmt.fmt "stdout\n" |> Fmt.flush |> ignore
c55e80219ff9648d624549073f386fa3d9b66e284802a1f5ca13bfd7ef06a53d
Frama-C/Frama-C-snapshot
menu_manager.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/gui/menu_manager.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
69c18342b98035ecdbd62f3c04d078a2c590843f5492a5c4be7b9ba33bf3e814
IndiscriminateCoding/clarity
align.mli
(** Zip datatypes with non-uniform shapes using These.t *) module type Basic = sig type 'a t val align_as : ('a -> 'b -> 'c) -> ('a -> 'c) -> ('b -> 'c) -> 'a t -> 'b t -> 'c t end module type Basic2 = sig type ('p, 'a) t val align_as : ('a -> 'b -> 'c) -> ('a -> 'c) -> ('b -> 'c) -> ('p, 'a) t -> ('p, 'b...
null
https://raw.githubusercontent.com/IndiscriminateCoding/clarity/163c16249cb3f01c4244b80be39e9aad0b1ca325/lib/classes/align.mli
ocaml
* Zip datatypes with non-uniform shapes using These.t
module type Basic = sig type 'a t val align_as : ('a -> 'b -> 'c) -> ('a -> 'c) -> ('b -> 'c) -> 'a t -> 'b t -> 'c t end module type Basic2 = sig type ('p, 'a) t val align_as : ('a -> 'b -> 'c) -> ('a -> 'c) -> ('b -> 'c) -> ('p, 'a) t -> ('p, 'b) t -> ('p, 'c) t end module type Basic3 = sig type ('p,...
318ead0a1cb1185b76ec372dbe2a1ebd1579d2b83612b9533bc2328c449b97db
naproche/naproche
Bash.hs
{- generated by Isabelle -} Title : Isabelle / Bash.hs Author : Makarius LICENSE : BSD 3 - clause ( Isabelle ) Support for GNU bash . See " $ ISABELLE_HOME / src / Pure / System / bash . ML " Author: Makarius LICENSE: BSD 3-clause (Isabelle) Support for GNU bash. ...
null
https://raw.githubusercontent.com/naproche/naproche/804f94c07b4cd1efde8c466d8e73b1ef96861e12/Isabelle/src/Isabelle/Bash.hs
haskell
generated by Isabelle # LANGUAGE OverloadedStrings # concrete syntax server parameters server messages
Title : Isabelle / Bash.hs Author : Makarius LICENSE : BSD 3 - clause ( Isabelle ) Support for GNU bash . See " $ ISABELLE_HOME / src / Pure / System / bash . ML " Author: Makarius LICENSE: BSD 3-clause (Isabelle) Support for GNU bash. See "$ISABELLE_HOME/src/Pure...
fbea82dc70afc6119bdac35e4a8795b015a1f2b35eebac1940578e53762eec40
haskell-foundation/foundation
Mappable.hs
-- | -- Module : Basement.Mappable -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : portable -- -- Class of collection that can be traversed from left to right, -- performing an action on each element. -- module Foundation.Collection.Mappable ( Mappable(..) ...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/foundation/Foundation/Collection/Mappable.hs
haskell
| Module : Basement.Mappable License : BSD-style Stability : experimental Portability : portable Class of collection that can be traversed from left to right, performing an action on each element. | Functors representing data structures that can be traversed from left to right. | Map each eleme...
Maintainer : < > module Foundation.Collection.Mappable ( Mappable(..) , sequence_ , traverse_ , mapM_ , forM , forM_ ) where import Basement.Compat.Base import qualified Data.Traversable import Basement.BoxedArray (Array) Mostly like base 's ` ` but applied t...
c56a0e7cbfbcec4658b05434dd6e4e41a2c9033a79bd3ff73959d716f2aa36cd
chiroptical/optics-by-example
Main.hs
module Main where main :: IO () main = putStrLn "Chapter 5"
null
https://raw.githubusercontent.com/chiroptical/optics-by-example/3ee33546ee18c3a6f5510eec17a69d34e750198e/chapter5/app/Main.hs
haskell
module Main where main :: IO () main = putStrLn "Chapter 5"
288254499b86baa62ce6d71969fedd4d538da33a034e13a4b5cd18c507991ef8
incoherentsoftware/defect-process
ZIndex.hs
module Menu.ZIndex ( menuOverExpandedZIndex , menuOverZIndex , menuZIndex ) where import Window.Graphics menuOverExpandedZIndex = ZIndex 1 :: ZIndex menuOverZIndex = ZIndex 2 :: ZIndex menuZIndex = ZIndex 3 :: ZIndex
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/15f2569e7d0e481c2e28c0ca3a5e72d2c049b667/src/Menu/ZIndex.hs
haskell
module Menu.ZIndex ( menuOverExpandedZIndex , menuOverZIndex , menuZIndex ) where import Window.Graphics menuOverExpandedZIndex = ZIndex 1 :: ZIndex menuOverZIndex = ZIndex 2 :: ZIndex menuZIndex = ZIndex 3 :: ZIndex
b63e51eafdc4725b91501b08c07889bd1596a35481a692574b9ec5fb0ec1e0ac
telekons/one-more-re-nightmare
package.lisp
(defpackage :one-more-re-nightmare-tests (:use :cl) (:export #:run-tests #:regrind))
null
https://raw.githubusercontent.com/telekons/one-more-re-nightmare/31c030888cb909d4563fa09e010ccdfcd73be2b8/Tests/package.lisp
lisp
(defpackage :one-more-re-nightmare-tests (:use :cl) (:export #:run-tests #:regrind))
801c759a15a1b10826fc8e728ef9d475bb2b26e5aa0bd6ad01ecf068934cd120
cirodrig/triolet
Control.hs
{-| Control flow analysis of parsed code. -} # LANGUAGE FlexibleContexts , UndecidableInstances # module Parser.Control where import Compiler.Hoopl import qualified Data.Map as Map import qualified Data.Set as Set import qualified Language.Python.Common.Pretty as Python import qualified Language.Python.Common.Pretty...
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/Parser/Control.hs
haskell
| Control flow analysis of parsed code. | A control flow source. A source consists of a block label and an outgoing path. | An outgoing control flow path. | A control flow node. Performs an action, has inputs and outputs. A group of function definitions. Definition groups are annotated with their live-i...
# LANGUAGE FlexibleContexts , UndecidableInstances # module Parser.Control where import Compiler.Hoopl import qualified Data.Map as Map import qualified Data.Set as Set import qualified Language.Python.Common.Pretty as Python import qualified Language.Python.Common.PrettyAST as Python import Text.PrettyPrint.HughesPJ...
ca6c9e5f5827b23ee155ae0151b3e4925310c0bfee929df5cb44c15f9cc41e7d
plumatic/grab-bag
empirical_gradient.clj
(ns flop.empirical-gradient "An empirical test to verify the consistency of the objective value and gradient Computes an empirical approximation to the gradient at point x: empirical-grad(x) = (f(x + dx) - f(x)) / dx and reports the differences between the empirical gradient and the gradient defined i...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/flop/src/flop/empirical_gradient.clj
clojure
(ns flop.empirical-gradient "An empirical test to verify the consistency of the objective value and gradient Computes an empirical approximation to the gradient at point x: empirical-grad(x) = (f(x + dx) - f(x)) / dx and reports the differences between the empirical gradient and the gradient defined i...
334e3865d1f406d62c082acec432e6551392e1fc01c67b50ff4f8e0ef0fc7876
ralt/lxc-wrapper
ip.lisp
(in-package #:lxc-wrapper-test) (5am:in-suite ip) (5am:test test-line-matches-ip (5am:is-true (lxc-wrapper::line-matches-ip "10.0.3.4 foo")) (5am:is-false (lxc-wrapper::line-matches-ip "10.10.3.4 bar")) (5am:is-false (lxc-wrapper::line-matches-ip "foo bar"))) (5am:test test-vector-to-list (5am:is-true (eq (t...
null
https://raw.githubusercontent.com/ralt/lxc-wrapper/16f34432e2cfa8dcb7fa1a5383930143085dc1e0/test/ip.lisp
lisp
(in-package #:lxc-wrapper-test) (5am:in-suite ip) (5am:test test-line-matches-ip (5am:is-true (lxc-wrapper::line-matches-ip "10.0.3.4 foo")) (5am:is-false (lxc-wrapper::line-matches-ip "10.10.3.4 bar")) (5am:is-false (lxc-wrapper::line-matches-ip "foo bar"))) (5am:test test-vector-to-list (5am:is-true (eq (t...
084a0c4c31afb6a95b0b7c8c1fd652dd672bd7fec23f5ed8defd86e7d755e922
mzp/coq-ide-for-ios
decl_proof_instr.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/tactics/decl_proof_instr.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : decl_proof_instr.ml...
6dfb3f15f885308942bd46d5dc5e558e38bd0155ff7c3550bcec80164048863a
exercism/erlang
strain_tests.erl
-module(strain_tests). -include_lib("erl_exercism/include/exercism.hrl"). -include_lib("eunit/include/eunit.hrl"). empty_keep_test() -> ?assertEqual([], strain:keep(fun(X) -> X < 10 end, [])). keep_everything_test() -> ?assertEqual([1, 2, 3], strain:keep(fun(X) -> X < 10 end, [1,2,3])). keep_first_last_test() -...
null
https://raw.githubusercontent.com/exercism/erlang/57ac2707dae643682950715e74eb271f732e2100/exercises/practice/strain/test/strain_tests.erl
erlang
-module(strain_tests). -include_lib("erl_exercism/include/exercism.hrl"). -include_lib("eunit/include/eunit.hrl"). empty_keep_test() -> ?assertEqual([], strain:keep(fun(X) -> X < 10 end, [])). keep_everything_test() -> ?assertEqual([1, 2, 3], strain:keep(fun(X) -> X < 10 end, [1,2,3])). keep_first_last_test() -...
1d6cf723330b02f1007dbb092c7f8af31ca6ba224bcdfb3b44e3335d8540f986
ovotech/ring-jwt
project.clj
(defproject ovotech/ring-jwt "2.3.0" :description "JWT middleware for Ring" :url "-jwt" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[cheshire "5.10.0"] [commons-codec "1.15"] [org.clojure/clojure "1.10.1"] [com.auth0/j...
null
https://raw.githubusercontent.com/ovotech/ring-jwt/6977423b57a16bcf67761531dabea1edfd3b3371/project.clj
clojure
(defproject ovotech/ring-jwt "2.3.0" :description "JWT middleware for Ring" :url "-jwt" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[cheshire "5.10.0"] [commons-codec "1.15"] [org.clojure/clojure "1.10.1"] [com.auth0/j...
3f87323fabf8f4dc740f3b86de022c2735ea3f1e4acf165aa662a1c3ac58f4cb
greglook/clj-arrangement
project.clj
(defproject mvxcvi/arrangement "2.1.0" :description "Total-order comparator for Clojure(Script)." :url "-arrangement" :license {:name "Public Domain" :url "/"} :deploy-branches ["main"] :aliases {"kaocha" ["with-profile" "+kaocha" "run" "-m" "kaocha.runner"] "coverage" ["with-profile" "+tes...
null
https://raw.githubusercontent.com/greglook/clj-arrangement/4428958f130e93a170735c4b792a801041fdf23e/project.clj
clojure
(defproject mvxcvi/arrangement "2.1.0" :description "Total-order comparator for Clojure(Script)." :url "-arrangement" :license {:name "Public Domain" :url "/"} :deploy-branches ["main"] :aliases {"kaocha" ["with-profile" "+kaocha" "run" "-m" "kaocha.runner"] "coverage" ["with-profile" "+tes...
49bca90529792044e5396bee771e3be364cadce730b2354cc4b91e3a44f1079b
OpenBookStore/openbookstore
bookshops.lisp
(in-package :bookshops) (defun init () "Init i18n, connect to the DB,..." (bookshops.models:connect) ;; Disabled until we ship the translation files into the binary release. ;; (i18n-load) (log:config :error)) (defun handle-parser-error (c) (format t "Argument error: ~a~&" (opts:option c)) ;; XXX: proba...
null
https://raw.githubusercontent.com/OpenBookStore/openbookstore/30b46dc5b89acb36e334b63467ace61ee527ac17/src/bookshops.lisp
lisp
Disabled until we ship the translation files into the binary release. (i18n-load) XXX: probably don't quit. see also -info (format stream "~&Quicklisp: ~a~&" (ql-dist:all-dists)) ;; not for release? Management commands. Create a superuser with admin rights. XXX: avoid circular dependencies: we now want to ca...
(in-package :bookshops) (defun init () "Init i18n, connect to the DB,..." (bookshops.models:connect) (log:config :error)) (defun handle-parser-error (c) (format t "Argument error: ~a~&" (opts:option c)) (uiop:quit 1)) (defparameter +version+ (let ((version (asdf/component:component-version (asdf:find-sys...
f2dab11b6b4fdbf3213619b165c992e5fb8b031c10298587a1c5a98cc7579af5
spurious/sagittarius-scheme-mirror
complex.scm
-*- mode : scheme ; coding : utf-8 ; -*- #!core (library (scheme complex) (export angle imag-part magnitude make-polar make-rectangular real-part) (import (rnrs)))
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/scheme/complex.scm
scheme
coding : utf-8 ; -*-
#!core (library (scheme complex) (export angle imag-part magnitude make-polar make-rectangular real-part) (import (rnrs)))
dfedad847415fcc2809f6feaa650a4bf3f6a5862cf2738a7d1c3b155dacb5f93
lambdaclass/holiday_pinger
channel_test_handler.erl
-module(channel_test_handler). -export([init/3, rest_init/2, allowed_methods/2, content_types_accepted/2, is_authorized/2, from_json/2]). init(_Transport, _Req, []) -> {upgrade, protocol, cowboy_rest}. rest_init(Req, _Opts) -> {Name, Req2} = cowboy_req:binding(name, R...
null
https://raw.githubusercontent.com/lambdaclass/holiday_pinger/a8a6d1e28de57cf24d6205d275981a718305b351/src/handlers/channel_test_handler.erl
erlang
-module(channel_test_handler). -export([init/3, rest_init/2, allowed_methods/2, content_types_accepted/2, is_authorized/2, from_json/2]). init(_Transport, _Req, []) -> {upgrade, protocol, cowboy_rest}. rest_init(Req, _Opts) -> {Name, Req2} = cowboy_req:binding(name, R...
2be99f1b949e74f5abe497b08085ae733ee3c585feeb840cf232a53e0c026cf7
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415161458.hs
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurchMonad_20210415161458.hs
haskell
The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply it on them. A natural nu...
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} toBool :: CBool Bool -> Bool toBool b = cIf b True False The boolean constant true always chooses the first alternative cTrue :: CBool t cTrue = CBool $ \t f -> t The boolean consta...
34b69bed930dd91983acf475df7b292366af58bc386cdffb14f5583d171ff9ce
charlieg/Sparser
html-actions.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1995 -- all rights reserved ;;; ;;; File: "html actions" ;;; Module: "grammar;rules:SGML:" Version : September 1995 initiated 9/20/95 (in-package :sparser) (defun do-html-tag (tag-edge pos-...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/SGML/html-actions.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "html actions" Module: "grammar;rules:SGML:" called from Do-paired-punctuation-interior via a paired tag and empty tags. section-marker called from Do-paired-punctuation-interior via the :angle-brackets hook. This case handles both...
copyright ( c ) 1995 -- all rights reserved Version : September 1995 initiated 9/20/95 (in-package :sparser) (defun do-html-tag (tag-edge pos-before-open pos-after-close pos-after-open pos-before-close layout ) the : angle - brackets ho...
9344240a841581028695750b1261b1f4822c34fc42519de75b0a02ab157d08d0
zellige/zellige
Config.hs
{-# LANGUAGE CPP #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/zellige/zellige/87e6dab11ac4c1843009043580f14422a1d83ebf/src/Data/Geometry/Types/Config.hs
haskell
# LANGUAGE CPP # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # Zoom Config Simplification Options this is redundant starting with base-4.11 / GHC 8.4
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoMonomorphismRestriction # # OPTIONS_GHC -fno - warn - orphans # module Data.Geometry.Types.Config where import qualified Data.Aeson ...
dddb619818fa298779218e8998263ec009ce2ad197c95af0a3fba027d154b54e
elh/advent-2022
day_14.clj
(ns advent-2022.day-14 (:require [clojure.string :as str] [clojure.set :as set])) (defn read-input [file-name] (as-> (slurp file-name) v (str/split v #"\n") (mapv #(str/split % #" -> ") v) (mapv (fn [x] (mapv #(str/split % #",") x)) v) (mapv (fn [x] (mapv (fn [y] (mapv #(Integer/parseIn...
null
https://raw.githubusercontent.com/elh/advent-2022/f217702c37723a680b272c64ec09117e826739bc/src/advent_2022/day_14.clj
clojure
(ns advent-2022.day-14 (:require [clojure.string :as str] [clojure.set :as set])) (defn read-input [file-name] (as-> (slurp file-name) v (str/split v #"\n") (mapv #(str/split % #" -> ") v) (mapv (fn [x] (mapv #(str/split % #",") x)) v) (mapv (fn [x] (mapv (fn [y] (mapv #(Integer/parseIn...
a6f06fe83099e102ac86b1ece4f0dfb113499b94b27dd5bbeab654d6bce0595d
micmarsh/re-frame-youtube-fx
project.clj
(defproject basic-player "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.229"] [reagent "0.6.0"] [binaryage/devtools "0.8.2"] [re-frame "0.8.0"]] :plugins [[lein-cljsbuild "1.1.4"]] :min-lein-versio...
null
https://raw.githubusercontent.com/micmarsh/re-frame-youtube-fx/dfbf2790930da2810da2ea8e21a1e72abf82f0d7/examples/basic-player/project.clj
clojure
(defproject basic-player "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.229"] [reagent "0.6.0"] [binaryage/devtools "0.8.2"] [re-frame "0.8.0"]] :plugins [[lein-cljsbuild "1.1.4"]] :min-lein-versio...
ab7090beac7dd4bf791042e5c2bbf9d478fdf2d17b616a9a7e89d67213968470
DalekBaldwin/check-it
destructive-tests.lisp
(in-package :check-it-test) (in-root-suite) (in-suite randomized-tests) ;;;; Test pattern: copy generated value, mutate value in cache, regenerate, and compare (deftest test-list-generator-mutation () (let ((g (generator (list (integer) :min-length 2))) (filler (generator (list (integer) :min-length 3))))...
null
https://raw.githubusercontent.com/DalekBaldwin/check-it/b79c9103665be3976915b56b570038f03486e62f/test/destructive-tests.lisp
lisp
Test pattern: copy generated value, mutate value in cache, regenerate, and compare
(in-package :check-it-test) (in-root-suite) (in-suite randomized-tests) (deftest test-list-generator-mutation () (let ((g (generator (list (integer) :min-length 2))) (filler (generator (list (integer) :min-length 3)))) (loop repeat 10 do (let* ((test-value (generate g)) ...
468caea2eb9b36790490dff588224d89a8a9d100b612798e67f536b3051a1189
softwarelanguageslab/maf
R5RS_gambit_tail-1.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 * calls to i d fun : 1 (letrec ((inport #f) (outport #f) (readline (lambda (port line-so-far) (let ((x (read-char port))) (if (eof-object? x) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gambit_tail-1.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0
* removed : 0 * added : 1 * swaps : 0 * calls to i d fun : 1 (letrec ((inport #f) (outport #f) (readline (lambda (port line-so-far) (let ((x (read-char port))) (if (eof-object? x) x (if (char=? x...
3d5979a2c3bdb82a36c21bb2ebd6c506fe5906e07fa7b40d4982e1bfa0dd42af
reborg/fluorine
project.clj
(defproject net.reborg/fluorine "0.0.9" :description "Distributed configuration for Clojure" :url "" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo :comments "same as Clojure"} :dependencies [[org.clojure/clojure "1.8.0"] ...
null
https://raw.githubusercontent.com/reborg/fluorine/58d533646adce8537ca5c57692a0a998f06e1d25/project.clj
clojure
logging components aleph other
(defproject net.reborg/fluorine "0.0.9" :description "Distributed configuration for Clojure" :url "" :license {:name "Eclipse Public License - v 1.0" :url "-v10.html" :distribution :repo :comments "same as Clojure"} :dependencies [[org.clojure/clojure "1.8.0"] ...
6cc4509b9fb0451a5cf7b4c6c8e47bee711e64e616e5c03e5daa1aa52cab51d2
coq/coq
dyn.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/686e9097959307e382f8889aa63fe8638ad76fc1/clib/dyn.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...
7b66ccf4ff0b3d23907fd3a6db1c22db6ec0d1658e4f31ef848425b73261ecfc
zeniuseducation/poly-euler
one.clj
(defn )
null
https://raw.githubusercontent.com/zeniuseducation/poly-euler/734fdcf1ddd096a8730600b684bf7398d071d499/julia/one.clj
clojure
(defn )
46bc873ffd5bd5d61ebd51794f574d1f1ac79fe9e89beff7f969fd296e8a7596
sirherrbatka/statistical-learning
types.lisp
(cl:in-package #:statistical-learning.tree-protocol) (defclass split-result () ((%split-vector :initarg :split-vector :reader split-vector) (%split-point :initarg :split-point :reader split-point) (%left-length :initarg :left-length :reader left-length) (...
null
https://raw.githubusercontent.com/sirherrbatka/statistical-learning/40b529beff5820c08cb92b1fa92c4f688a1989bb/source/tree-protocol/types.lisp
lisp
(cl:in-package #:statistical-learning.tree-protocol) (defclass split-result () ((%split-vector :initarg :split-vector :reader split-vector) (%split-point :initarg :split-point :reader split-point) (%left-length :initarg :left-length :reader left-length) (...
07a88cba50acd79d0510db9c4a94a889ccbd2d16e47c307519ee4aeb1614feab
sdanzan/erlang-systools
systools_app.erl
%%% -------------------------------------------------------------------------- %%% @doc Dummy application module for the systool library. %%% -------------------------------------------------------------------------- -module(systools_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1])....
null
https://raw.githubusercontent.com/sdanzan/erlang-systools/ced3faf1c807d36c528e53cbb366d69f464ff4e5/src/systools_app.erl
erlang
-------------------------------------------------------------------------- @doc Dummy application module for the systool library. -------------------------------------------------------------------------- Application callbacks =================================================================== Application callbac...
-module(systools_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> systools_sup:start_link(). stop(_State) -> ok.
076e3ebae07fc3cfd13127e88254e84febaf07442b5b94c85bf9bee8250118df
johnwhitington/camlpdf
pdfgenlex.mli
(** A very fast lexer for very basic tokens *) (** To avoid too much storage allocation (and hence garbage collection), we use the same data type for this very basic lexing module as for the main lexing in [Pdfread]. Eventually, we may unify this with the parsing type too. *) type t = | LexNull | LexBool of bool ...
null
https://raw.githubusercontent.com/johnwhitington/camlpdf/88d781d4395f0b84cae384bf8365e5989f5d586f/pdfgenlex.mli
ocaml
* A very fast lexer for very basic tokens * To avoid too much storage allocation (and hence garbage collection), we use the same data type for this very basic lexing module as for the main lexing in [Pdfread]. Eventually, we may unify this with the parsing type too. * For debug only. * For debug only. * Lex all the...
type t = | LexNull | LexBool of bool | LexInt of int | LexReal of float | LexString of string | LexName of string | LexLeftSquare | LexRightSquare | LexLeftDict | LexRightDict | LexStream of Pdf.stream | LexEndStream | LexObj | LexEndObj | LexR | LexComment | StopLexing | LexNone v...
e246e5128d9ef7ce43b5a56466e0718b1213a88a96e5700f62ed16ac8b34b6df
xapi-project/xenvm
host.mli
val create : string -> unit Lwt.t val connect : Config.Xenvmd.t -> string -> unit Lwt.t val disconnect : cooperative:bool -> string -> unit Lwt.t val destroy : string -> unit Lwt.t val all : unit -> Xenvm_interface.host list Lwt.t val reconnect_all : Config.Xenvmd.t -> unit Lwt.t val flush_all : unit -> unit Lwt.t val ...
null
https://raw.githubusercontent.com/xapi-project/xenvm/401754dfb05376b5fc78c9290453b006f6f38aa1/xenvmd/host.mli
ocaml
val create : string -> unit Lwt.t val connect : Config.Xenvmd.t -> string -> unit Lwt.t val disconnect : cooperative:bool -> string -> unit Lwt.t val destroy : string -> unit Lwt.t val all : unit -> Xenvm_interface.host list Lwt.t val reconnect_all : Config.Xenvmd.t -> unit Lwt.t val flush_all : unit -> unit Lwt.t val ...
4ca739b1b824e270ecd8823f4125edda7e4007be9d564037f4ccf8099e0addf2
static-analysis-engineering/codehawk
jCHSignatureBindings.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpre/jCHSignatureBindings.mli
ocaml
jchlib accessors predicates
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
d5df07410fb769cf87fa700182d581152e1ee066b501b004295b8665f17c8b21
basho/riak_core
riak_core_handoff_cli.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 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/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/src/riak_core_handoff_cli.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 ) 2014 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 -module...
f8fd5c17e13dfa4468ac6eed3c96a905cd5c27a307df1a5b54da7b9cc29df454
moby/datakit
datakit_github_conv.ml
open Lwt.Infix open Datakit_client.Path.Infix open Datakit_github open Result open Datakit_client let src = Logs.Src.create "dkt-github" ~doc:"Github to Git bridge" module Log = (val Logs.src_log src : Logs.LOG) let ( >>*= ) x f = x >>= function Ok x -> f x | Error _ as e -> Lwt.return e let pp_path = Fmt.(list ~se...
null
https://raw.githubusercontent.com/moby/datakit/e047e55a2dfa3aaec02398d7d7699f4f7afd2b47/src/datakit-github/datakit_github_conv.ml
ocaml
Some parent doesn't exist or isn't a directory Some parent doesn't exist or isn't a directory Repos PRs Commits Status Refs Dirty we handle dirty repo even if not monitored we only check for dirty prs/refs for monitored repos only Elements Diffs
open Lwt.Infix open Datakit_client.Path.Infix open Datakit_github open Result open Datakit_client let src = Logs.Src.create "dkt-github" ~doc:"Github to Git bridge" module Log = (val Logs.src_log src : Logs.LOG) let ( >>*= ) x f = x >>= function Ok x -> f x | Error _ as e -> Lwt.return e let pp_path = Fmt.(list ~se...
b8507090e13ca8de414e6101c3ae355e89b3841517609ec20817e725c45243d9
jiangpengnju/htdp2e
designing_with_itemization.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-beginner-reader.ss" "lang")((modname designing_with_itemization) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor ...
null
https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/fixed-size-data/intervals-enumerations-itemizations/designing_with_itemization.rkt
racket
about the language level of this file in a form that our tools can easily process. to cope with its budget defict. Design a function for a cash register that given the price of an item, computes the sales tax. you need carefully formulated data definitions. - 10000 and above. interpretation: the price of a...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname designing_with_itemization) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Demonstrating the six design steps for prob...
ed612451628fea75464d651ee44a7dbd9d4f9c1aa152e8816ea4f8cd9dbf56f9
jumarko/web-development-with-clojure
project.clj
(defproject db-examples "0.1.0-SNAPSHOT" :description "FIXME: write description" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [com.layerware/hugsql "0.4.7"] [org.clojure/java.jdbc "0.6.1"] [or...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/examples/db-examples/project.clj
clojure
(defproject db-examples "0.1.0-SNAPSHOT" :description "FIXME: write description" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [com.layerware/hugsql "0.4.7"] [org.clojure/java.jdbc "0.6.1"] [or...
51b7f9251bba736342174ac5c0edcbae36a2d29483500ceee94ef210e179f390
eccentric-j/cljs-tui-template
subs.cljs
(ns {{main-ns}}.subs "Re-frame app db subscriptions. Essentially maps a keyword describing a result to a function that retrieves the current value from the app db." (:require [re-frame.core :as rf])) (rf/reg-sub :db (fn [db _] db)) (rf/reg-sub :view (fn [db _] (:router/view db))) (rf/reg-sub ...
null
https://raw.githubusercontent.com/eccentric-j/cljs-tui-template/6ad22eb0d069666a072c58709fc82e6f1a2ca8c3/resources/leiningen/new/cljs_tui/src/subs.cljs
clojure
(ns {{main-ns}}.subs "Re-frame app db subscriptions. Essentially maps a keyword describing a result to a function that retrieves the current value from the app db." (:require [re-frame.core :as rf])) (rf/reg-sub :db (fn [db _] db)) (rf/reg-sub :view (fn [db _] (:router/view db))) (rf/reg-sub ...
520e3b18392e63ef88c948973ea8d4a03d7e513389799fc6ef2b9851d34adbee
JHU-PL-Lab/jaylang
tests.ml
open! Core module R = Dbmc.Rstack let x = Dbmc.Id.Ident "x" let f = Dbmc.Id.Ident "f" let r0 = R.empty let xf : R.frame = (x, f) let r1 = R.push r0 xf let%expect_test _ = Fmt.pr "%a" R.pp r1 ; [%expect {| +(x,f); |}] ; Fmt.pr "%s" (R.to_string r1) ; [%expect {| 5775445702 |}] (* String.equal printed showed *)...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/81abf9ff185758a2aaefd90478da4c7bb53f4384/src-test/dbmc/inline-expect/tests.ml
ocaml
String.equal printed showed
open! Core module R = Dbmc.Rstack let x = Dbmc.Id.Ident "x" let f = Dbmc.Id.Ident "f" let r0 = R.empty let xf : R.frame = (x, f) let r1 = R.push r0 xf let%expect_test _ = Fmt.pr "%a" R.pp r1 ; [%expect {| +(x,f); |}] ; Fmt.pr "%s" (R.to_string r1) ; [%expect {| 5775445702 |}]
7a5d8b88e2e4605618a79417f28bcf31756ff8adc69dafd791c04b47d9be4e5a
patricoferris/ocaml-multicore-monorepo
test_sql_async.ml
Copyright ( C ) 2014 - -2021 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-caqti/tests/test_sql_async.ml
ocaml
Copyright ( C ) 2014 - -2021 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
40ff01362ff5a7741e070cc7d03e6db3b72e49d8995b2df8942f4712ee56125a
christoph-frick/factorio-blueprint-tools
core.cljs
(ns factorio-blueprint-tools.core (:require-macros [factorio-blueprint-tools.macros :as m]) (:require [factorio-blueprint-tools.controller.tile :as tile-controller] [factorio-blueprint-tools.controller.mirror :as mirror-controller] [factorio-blueprint-tools.upgrade :as upgrade] [...
null
https://raw.githubusercontent.com/christoph-frick/factorio-blueprint-tools/11543ddbcaf58d9960bb945a2bd60b1801c3858e/src/factorio_blueprint_tools/core.cljs
clojure
Components Tools About Settings Tile Upgrade Landfill Split Buffer Debug Main not partial! Effect Handlers Reconciler Main content
(ns factorio-blueprint-tools.core (:require-macros [factorio-blueprint-tools.macros :as m]) (:require [factorio-blueprint-tools.controller.tile :as tile-controller] [factorio-blueprint-tools.controller.mirror :as mirror-controller] [factorio-blueprint-tools.upgrade :as upgrade] [...
d90a7a51101a17f675f24179eb18b1fd76a7751d1cebc3bcd0574631dc9559cd
CardanoSolutions/kupo
PolicyId.hs
module Kupo.Data.Cardano.PolicyId where import Kupo.Prelude import qualified Cardano.Ledger.Mary.Value as Ledger import Kupo.Data.Cardano.ScriptHash ( scriptHashFromBytes , scriptHashFromText , scriptHashToBytes , scriptHashToText ) type PolicyId = Ledger.PolicyID StandardCrypto policyIdToBytes ...
null
https://raw.githubusercontent.com/CardanoSolutions/kupo/4904123abeed53f672eb34e0ef10c6c710bda61b/src/Kupo/Data/Cardano/PolicyId.hs
haskell
module Kupo.Data.Cardano.PolicyId where import Kupo.Prelude import qualified Cardano.Ledger.Mary.Value as Ledger import Kupo.Data.Cardano.ScriptHash ( scriptHashFromBytes , scriptHashFromText , scriptHashToBytes , scriptHashToText ) type PolicyId = Ledger.PolicyID StandardCrypto policyIdToBytes ...
2fe04a012f0b5589a6a72e6ec442761a62e0836777c2b08ec70940949cb05613
input-output-hk/marlowe-cardano
Serialization.hs
----------------------------------------------------------------------------- -- -- Module : $Headers License : Apache 2.0 -- -- Stability : Experimental Portability : Portable -- | Test of 's Cardano JSON implementation against the reference implementation . -- --------------------------------...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/27f83c21c76d05cb1f381022d596a5782a4655e1/marlowe-test/src/Spec/Marlowe/Service/Serialization.hs
haskell
--------------------------------------------------------------------------- Module : $Headers Stability : Experimental --------------------------------------------------------------------------- # LANGUAGE OverloadedStrings # * Types * Testing | Response to a round-trip serialization request. | Succe...
License : Apache 2.0 Portability : Portable | Test of 's Cardano JSON implementation against the reference implementation . # LANGUAGE RecordWildCards # module Spec.Marlowe.Service.Serialization SerializationResponse(..) , knownJsonTypes , roundtripSerialization ) where import Control.Ap...
84b9dc335e501ccfbd23e70fff35eae374dc61ca98785326cd2e67aa6189023f
xmonad/xmonad-contrib
ClickableWorkspaces.hs
------------------------------------------------------------------------------- -- | -- Module : XMonad.Util.ClickableWorkspaces Description : Make workspace tags clickable in XMobar ( for switching focus ) . Copyright : ( c ) < > -- License : BSD3-style (see LICENSE) -- Maintainer : deR...
null
https://raw.githubusercontent.com/xmonad/xmonad-contrib/3058d1ca22d565b2fa93227fdde44d8626d6f75d/XMonad/Util/ClickableWorkspaces.hs
haskell
----------------------------------------------------------------------------- | Module : XMonad.Util.ClickableWorkspaces License : BSD3-style (see LICENSE) Stability : unstable Portability : unportable --------------------------------------------------------------------------- * Usage $usage $...
Description : Make workspace tags clickable in XMobar ( for switching focus ) . Copyright : ( c ) < > Maintainer : deRosenroll < > Provides @clickablePP@ , which when applied to the ' PP ' pretty - printer used by " XMonad . Hooks . StatusBar " will make the workspace tags clickable in XMoba...
cb8690b7ba73fbcab3b454879e1155674982a47ae18474c4ee6b57b2fbb8972f
xu-hao/QueryArrow
ElasticSearchUtils.hs
module QueryArrow.HTTP.ElasticSearchUtils where -- -a-rest-client-in-haskell/swizec/6152 import Network.HTTP.Conduit hiding (host, port) import Control.Monad.IO.Class import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString.Char8 as B8 import Data.Aeson get::(MonadIO m) => String -> m BL.ByteStri...
null
https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-db-elastic/src/QueryArrow/HTTP/ElasticSearchUtils.hs
haskell
-a-rest-client-in-haskell/swizec/6152
module QueryArrow.HTTP.ElasticSearchUtils where import Network.HTTP.Conduit hiding (host, port) import Control.Monad.IO.Class import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString.Char8 as B8 import Data.Aeson get::(MonadIO m) => String -> m BL.ByteString get url = simpleHttp url -way-of-s...
8a629dc46169a6c431b9484b3af380c158db6bdacf21e1f900d03f9a58c5c4f7
toyokumo/kintone-client
test_helper.cljc
(ns kintone-client.test-helper (:require #?@(:clj [[clojure.core.async :refer [<!! chan put!]]] :cljs [[cljs.core.async :refer [<! chan put!] :refer-macros [go]]]) [kintone-client.authentication :as auth] [kintone-client.connection :as conn] [kintone-client.types :...
null
https://raw.githubusercontent.com/toyokumo/kintone-client/32cf5abec1efa6d7ed5f33cf889535863358875b/test/kintone_client/test_helper.cljc
clojure
(ns kintone-client.test-helper (:require #?@(:clj [[clojure.core.async :refer [<!! chan put!]]] :cljs [[cljs.core.async :refer [<! chan put!] :refer-macros [go]]]) [kintone-client.authentication :as auth] [kintone-client.connection :as conn] [kintone-client.types :...
069331dede5505f051bf359a878be9f957d7230b1707297d49bed9407db859f7
ocaml/ocaml
includemod.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml/ocaml/3490eaa060cd1e2b4143bf5df42fdbeb121f0c4d/typing/includemod.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Typedtree open Types type mark = | Mark_both * definitions used from both arguments | Mark_po...
a7feba5e122b2da29ab9850646a1ce315d3c26865a62fced722f3f23b208e19d
marick/structural-typing
type_repo.clj
(ns structural-typing.assist.type-repo "The `TypeRepo` structure and its functions." (:use structural-typing.clojure.core) (:require [structural-typing.guts.type-descriptions :as type-descriptions] [structural-typing.guts.compile.compile :as compile] [structural-typing.assist.defaults :as ...
null
https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/src/structural_typing/assist/type_repo.clj
clojure
(ns structural-typing.assist.type-repo "The `TypeRepo` structure and its functions." (:use structural-typing.clojure.core) (:require [structural-typing.guts.type-descriptions :as type-descriptions] [structural-typing.guts.compile.compile :as compile] [structural-typing.assist.defaults :as ...
456bec8a7a7bd5d38096f5c341014248e7973dc5e82a95c5526d48b1a14ee3ff
leo-project/leo_gateway
leo_gateway_s3_api.erl
%%====================================================================== %% %% Leo S3 Handler %% Copyright ( c ) 2012 - 2015 Rakuten , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain ...
null
https://raw.githubusercontent.com/leo-project/leo_gateway/7bac8912b762688f0ef237b31fee17e30e3888a3/src/leo_gateway_s3_api.erl
erlang
====================================================================== Leo S3 Handler 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 ...
Copyright ( c ) 2012 - 2015 Rakuten , Inc. 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 Leo Gateway S3 - API -module(leo_g...
08d0468dcecde7c9e2c4c7a94e5d1b0a3ec3c74dde1e6c6b5899e8a474e54c48
synrc/mad
mad_peg.erl
-module(mad_peg). -compile(export_all). peg_to_erl(F) -> filename:join(filename:dirname(F),filename:basename(F, ".peg")) ++ ".erl". compile(File,Inc,Bin,Opt,Deps) -> ErlFile = peg_to_erl(File), Compiled = mad_compile:is_compiled(ErlFile,File), if Compiled == false -> neotoma:file(File), ...
null
https://raw.githubusercontent.com/synrc/mad/b8811aebd662c2a281c9f87642b5cab9321cf543/src/compile/mad_peg.erl
erlang
-module(mad_peg). -compile(export_all). peg_to_erl(F) -> filename:join(filename:dirname(F),filename:basename(F, ".peg")) ++ ".erl". compile(File,Inc,Bin,Opt,Deps) -> ErlFile = peg_to_erl(File), Compiled = mad_compile:is_compiled(ErlFile,File), if Compiled == false -> neotoma:file(File), ...
f6489b48372f704875db469acc2515200075906aae60aff38ca9f48e43d31549
NorfairKing/the-notes
AffineSpaces.hs
module Geometry.AffineSpaces where import Notes import Functions.Application.Macro import Functions.Basics.Macro import Functions.Basics.Terms import Functions.Distances.Macro import Functions.Distances.Terms import LinearAlgebra.VectorSpaces.Terms...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Geometry/AffineSpaces.hs
haskell
module Geometry.AffineSpaces where import Notes import Functions.Application.Macro import Functions.Basics.Macro import Functions.Basics.Terms import Functions.Distances.Macro import Functions.Distances.Terms import LinearAlgebra.VectorSpaces.Terms...
73c307d6a70fdece2a23d7572a8d0a161e0dc455d067ca2ea5e3aafe7543e18f
unisonweb/unison
Array.hs
# LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE StandaloneKindSignatures # -- This module wraps the operations in the primitive package so that -- bounds checks can be toggled on during the build for debugging purposes . It exports the entire API for the three array types -- needed, and adds wrappers fo...
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/parser-typechecker/src/Unison/Runtime/Array.hs
haskell
# LANGUAGE ConstraintKinds # This module wraps the operations in the primitive package so that bounds checks can be toggled on during the build for debugging needed, and adds wrappers for the operations that are unchecked in the base library. Checking is toggled using the `arraychecks` flag. check index mutable ...
# LANGUAGE CPP # # LANGUAGE StandaloneKindSignatures # purposes . It exports the entire API for the three array types module Unison.Runtime.Array ( module EPA, readArray, writeArray, copyArray, copyMutableArray, cloneMutableArray, readByteArray, writeByteArray, indexByteArray, c...
9f44fe574f743600e37248993e76d07ba7dc68ce2ac5ab88d14fe8bd3ff2bebb
atlas-engineer/nyxt
panel.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt) ;; TODO: Quite some code could be factored with `internal-page'. (define-class panel-buffer-source (prompter:source) ((prompter:name "Panel buffers") (window :accessor window :initarg :window) (p...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/cdcb32c396b6b2907a81204c334e2300f054eb56/source/panel.lisp
lisp
TODO: Quite some code could be factored with `internal-page'. TODO: Add define-panel?
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt) (define-class panel-buffer-source (prompter:source) ((prompter:name "Panel buffers") (window :accessor window :initarg :window) (prompter:enable-marks-p t) (prompter:constructor (lambda (sourc...
eb2bd66dea304aeabbda66a03080fb119267137beec9cec6f4e46c9ac17f640b
basho/riak_pipe
riak_pipe_sup.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2011 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_pipe/a341b653408bd1517ccdd0f54ec27be1005dbeba/src/riak_pipe_sup.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 ) 2011 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(riak_pipe_sup). -beha...
6918613e564989459ea266e168559b19a872d69f6960bb48648ee6d0ed432233
ChrisPenner/rasa
Rasa.hs
# language ExistentialQuantification , Rank2Types , ScopedTypeVariables # module Rasa (rasa) where import Eve import Rasa.Internal.Listeners import Control.Monad -- | The main function to run rasa. -- @rasa eventProviders extensions@ -- -- This should be imported by a user-config with and called with an 'Action' -...
null
https://raw.githubusercontent.com/ChrisPenner/rasa/a2680324849088ee92f063fab091de21c4c2c086/rasa/src/Rasa.hs
haskell
| The main function to run rasa. This should be imported by a user-config with and called with an 'Action' containing any extensions which have event listeners. > rasa $ do > cursor > vim > slate
# language ExistentialQuantification , Rank2Types , ScopedTypeVariables # module Rasa (rasa) where import Eve import Rasa.Internal.Listeners import Control.Monad @rasa eventProviders extensions@ rasa :: App () -> IO () rasa initialization = void $ eve (initialization >> hooks) where hooks = beforeEvent_ $ do ...
1b1d16e9de47e083cccbda517fd4b86cfef935ebe5c6bf007d69fcd08022ef40
dyoo/whalesong
rain-world-program.rkt
#lang whalesong (require whalesong/world whalesong/image whalesong/js) ;; Occupy the whole screen. (void (call-method body "css" "margin" 0)) (void (call-method body "css" "padding" 0)) (void (call-method body "css" "overflow" "hidden")) ;; Rain falls down the screen. (define GRAVITY-FACTOR 1) ...
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/examples/rain-world-program.rkt
racket
Occupy the whole screen. Rain falls down the screen. A drop particle describes where it is on screen, what color it is, and how large it is. random-drop-particle: drop Generates a random particle. Get it falling at some random velocity with some random size Picks a random element of elts. The world consists o...
#lang whalesong (require whalesong/world whalesong/image whalesong/js) (void (call-method body "css" "margin" 0)) (void (call-method body "css" "padding" 0)) (void (call-method body "css" "overflow" "hidden")) (define GRAVITY-FACTOR 1) (define-struct posn (x y)) (define-struct drop (posn velo...
f0fb9c99b515c5efb544cc1dd1130606415565292c818f2e8c32fe442fff2288
lokedhs/containers
atomic.lisp
(in-package :receptacle) (defclass atomic-variable () ((value :type t :initarg :value :initform (error "~s not supplied when creating ~s" :value 'atomic-variable) :accessor atomic-variable/value) (lock :type t :initform (bordeaux-threads:make-lock "Atomic variable lock") ...
null
https://raw.githubusercontent.com/lokedhs/containers/5d4ce688bddd51ee34a4259e37b698b84f650bdf/src/atomic.lisp
lisp
(in-package :receptacle) (defclass atomic-variable () ((value :type t :initarg :value :initform (error "~s not supplied when creating ~s" :value 'atomic-variable) :accessor atomic-variable/value) (lock :type t :initform (bordeaux-threads:make-lock "Atomic variable lock") ...
d178ffa3f34bb1632aa7850766a1d260d27761bd6541e82a1b440a4f63b131c4
haskell-hvr/regex-tdfa
Engine_FA.hs
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 902 # OPTIONS_GHC -Wno - incomplete - uni - patterns # #endif -- | This is the code for the main engine. This captures the posix -- subexpressions. There is also a non-capturing engine, and a -- testing engine. -- It is polymorphic over the internal Uncons type class , ...
null
https://raw.githubusercontent.com/haskell-hvr/regex-tdfa/9a84354663cd80ebdf45d4cb2a57346ef1f636c1/lib/Text/Regex/TDFA/NewDFA/Engine_FA.hs
haskell
| This is the code for the main engine. This captures the posix subexpressions. There is also a non-capturing engine, and a testing engine. specialized to produce the needed variants. import Debug.Trace trace :: String -> a -> a trace _ a = a # INLINE (!!) # # INLINE set # # SCC "matchHere.comp" # # SCC "goNex...
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 902 # OPTIONS_GHC -Wno - incomplete - uni - patterns # #endif It is polymorphic over the internal Uncons type class , and module Text.Regex.TDFA.NewDFA.Engine_FA(execMatch) where import Data.Array.Base(unsafeRead,unsafeWrite,STUArray(..)) import GHC.Arr(STArray(..)) im...
fa029e2c95bdd1cb1c83bcc56a7e54e63b4b88b8361628c0a75e8067f1447003
Shirakumo/kandria
walkntalk.lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass walk-textbox (alloy:label) ((markup :initarg :markup :initform () :accessor markup))) (presentations:define-realization (ui walk-textbox) ((:bg simple:rectangle) (alloy:margins) :pattern (colored:color 0 0 0 0.8)) ((:label simple:text) (alloy:margins ...
null
https://raw.githubusercontent.com/Shirakumo/kandria/94fd727bd93e302c6a28fae33815043d486d794b/ui/walkntalk.lisp
lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass walk-textbox (alloy:label) ((markup :initarg :markup :initform () :accessor markup))) (presentations:define-realization (ui walk-textbox) ((:bg simple:rectangle) (alloy:margins) :pattern (colored:color 0 0 0 0.8)) ((:label simple:text) (alloy:margins ...
c2dff446a893d2793b9cf7fea973feb81f5263cf6c7ec0e60184988ae6778739
Dimercel/listopia
indexing-lists.lisp
(defpackage listopia-bench.indexing-lists (:use :cl :prove :listopia-bench.utils) (:import-from :listopia :elem-index :find-index :find-indices :elem-indices)) (in-package :listopia-bench.indexing-lists) (plan nil) (ok (bench "elem-i...
null
https://raw.githubusercontent.com/Dimercel/listopia/2d2a1a3c35580252ca0085e15ebf625f73230d60/bench/indexing-lists.lisp
lisp
(defpackage listopia-bench.indexing-lists (:use :cl :prove :listopia-bench.utils) (:import-from :listopia :elem-index :find-index :find-indices :elem-indices)) (in-package :listopia-bench.indexing-lists) (plan nil) (ok (bench "elem-i...
ab727ac665d9b5992f99bb0d1ee57be4c2f553d2afb5d21d4c3b7bfb77a202d6
jakemcc/sicp-study
test_ex3_19.clj
(ns test_ex3_19 (:use clojure.test mypair ex3_19)) (def has-cycle-odd (let [a (make-pair :a) b (make-pair :b) c (make-pair :c)] (set-cdr! a b) (set-cdr! b c) (set-cdr! c a) a)) (def has-cycle-even (let [a (make-pair :a) b (make-pair :b) d (make-pair :d) ...
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section3.3/test/test_ex3_19.clj
clojure
(ns test_ex3_19 (:use clojure.test mypair ex3_19)) (def has-cycle-odd (let [a (make-pair :a) b (make-pair :b) c (make-pair :c)] (set-cdr! a b) (set-cdr! b c) (set-cdr! c a) a)) (def has-cycle-even (let [a (make-pair :a) b (make-pair :b) d (make-pair :d) ...
b4dca2e02f1d14717939a20cc558b7b25e40367476d94bba75e3e4985b0ec33e
erlyaws/yaws
cache_appmod_test.erl
-module(cache_appmod_test). -export([out/1]). -include("yaws_api.hrl"). out(Arg) -> {abs_path, Path} = (Arg#arg.req)#http_request.path, Opts0 = case yaws_api:queryvar(Arg, "no-cache") of {ok, "1"} -> [{disable_cache, true}]; _ -> [] end, Opts1 = [{header, ...
null
https://raw.githubusercontent.com/erlyaws/yaws/da198c828e9d95ca2137da7884cddadd73941d13/testsuite/main_SUITE_data/cache_appmod_test.erl
erlang
-module(cache_appmod_test). -export([out/1]). -include("yaws_api.hrl"). out(Arg) -> {abs_path, Path} = (Arg#arg.req)#http_request.path, Opts0 = case yaws_api:queryvar(Arg, "no-cache") of {ok, "1"} -> [{disable_cache, true}]; _ -> [] end, Opts1 = [{header, ...
32e5eccc15711847fe0cfdcd93f097c222db3131d2af770727d21d2a04b288e1
Happstack/happstack-server
Types.hs
module Happstack.Server.Types (Request(..), Response(..), RqBody(..), Input(..), HeaderPair(..), takeRequestBody, readInputsBody, rqURL, mkHeaders, getHeader, getHeaderBS, getHeaderUnsafe, hasHeader, hasHeaderBS, hasHeaderUnsafe, setHeader, setHeaderBS, setHeaderUnsafe, addHeader, addH...
null
https://raw.githubusercontent.com/Happstack/happstack-server/d9cdb9af5635b1ebd9db0801b66dbf4e58aba66b/src/Happstack/Server/Types.hs
haskell
redirect_, redirect', redirect'_,
module Happstack.Server.Types (Request(..), Response(..), RqBody(..), Input(..), HeaderPair(..), takeRequestBody, readInputsBody, rqURL, mkHeaders, getHeader, getHeaderBS, getHeaderUnsafe, hasHeader, hasHeaderBS, hasHeaderUnsafe, setHeader, setHeaderBS, setHeaderUnsafe, addHeader, addH...
9fa3dc1eb4ac69052dea6a49bfa04585113b76181e9beaaef16dd6adc7a9b948
mejgun/haskell-tdlib
GetInstalledStickerSets.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.GetInstalledStickerSets where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.StickerType as StickerType import qualified Utils as U -- | Returns a list of installed sticker sets @sticker_type Type of the stick...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/cf563ece2c2270b2079e233c73cbc7dfd2f70281/src/TD/Query/GetInstalledStickerSets.hs
haskell
# LANGUAGE OverloadedStrings # | | |
module TD.Query.GetInstalledStickerSets where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.StickerType as StickerType import qualified Utils as U Returns a list of installed sticker sets @sticker_type Type of the sticker sets to return data GetInstalledStickerSet...
ed9d1732de6cd2c6b2a61c004ba8daba11794c7ced88b01878e6e8d3fb687b5f
MinaProtocol/mina
priced_proof.ml
open Core_kernel open Mina_base [%%versioned module Stable = struct [@@@no_toplevel_latest_type] module V1 = struct type 'proof t = 'proof Mina_wire_types.Network_pool.Priced_proof.V1.t = { proof : 'proof; fee : Fee_with_prover.Stable.V1.t } [@@deriving compare, fields, sexp, yojson, hash] end end...
null
https://raw.githubusercontent.com/MinaProtocol/mina/7a380064e215dc6aa152b76a7c3254949e383b1f/src/lib/network_pool/priced_proof.ml
ocaml
open Core_kernel open Mina_base [%%versioned module Stable = struct [@@@no_toplevel_latest_type] module V1 = struct type 'proof t = 'proof Mina_wire_types.Network_pool.Priced_proof.V1.t = { proof : 'proof; fee : Fee_with_prover.Stable.V1.t } [@@deriving compare, fields, sexp, yojson, hash] end end...
038fd5a52cdc012e7a8ade73d2b6cac54f07130a7cecf2c2d78b62ed3e206ea4
mirage/irmin
types.ml
* Copyright ( c ) 2018 - 2022 Tarides < > * * 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...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/libirmin/types.ml
ocaml
* Copyright ( c ) 2018 - 2022 Tarides < > * * 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...
8d714733a08bad260b1822da01f8e16812e5e233955c6a910c3ee26bf51abd43
ds-wizard/engine-backend
Detail_PUT.hs
module Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_PUT where import qualified Data.UUID as U import Servant import Shared.Api.Handler.Common import Shared.Model.Context.TransactionState import Shared.Model.DocumentTemplate.DocumentTemplate import Shared.Model.DocumentTemplate.DocumentTemplateJM () import Wiz...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Handler/DocumentTemplateDraft/File/Detail_PUT.hs
haskell
module Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_PUT where import qualified Data.UUID as U import Servant import Shared.Api.Handler.Common import Shared.Model.Context.TransactionState import Shared.Model.DocumentTemplate.DocumentTemplate import Shared.Model.DocumentTemplate.DocumentTemplateJM () import Wiz...
e2e4eb2bba0e7cd84226783aa7e01dcff6fc3239cef9d89a2df7a0e36852742e
suvash/one-time
qrgen.clj
(ns one-time.qrgen (:require [one-time.uri :as uri]) (:import net.glxn.qrgen.core.image.ImageType net.glxn.qrgen.javase.QRCode)) (def ^:private image-types {:JPG ImageType/JPG :GIF ImageType/GIF :PNG ImageType/PNG :BMP ImageType/BMP}) (defn totp-stream "Returns a java.io.ByteArrayOutputStr...
null
https://raw.githubusercontent.com/suvash/one-time/63981bbe1a27eaac80a2bda1b1887c4262c2a61f/src/one_time/qrgen.clj
clojure
(ns one-time.qrgen (:require [one-time.uri :as uri]) (:import net.glxn.qrgen.core.image.ImageType net.glxn.qrgen.javase.QRCode)) (def ^:private image-types {:JPG ImageType/JPG :GIF ImageType/GIF :PNG ImageType/PNG :BMP ImageType/BMP}) (defn totp-stream "Returns a java.io.ByteArrayOutputStr...
216db0e0cca50e80ef8d519893b857251d5256df7943e754197d0898b002e294
ocaml-multicore/tezos
generators.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_plugin/test/generators.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
185c8a3a697c65cfd6f5861153f2987bfa36b689e0334972e9e240309a7fe9b2
basvandijk/scientific
Internal.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE BangPatterns #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE UnboxedTuples # # LANGUAGE PatternGuards # module Data.Scientific.Internal ( Scientific -- * Construction , scientific , unsafeScientificFromNormalized , unsafeScientifi...
null
https://raw.githubusercontent.com/basvandijk/scientific/7071b9b9b3c7317218dce2c4a1c613d1c21431e8/src/Data/Scientific/Internal.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE BangPatterns # * Construction * Projections * Predicates * Conversions ** Rational ** Floating & integer * Parsing * Pretty printing * Normalization -------------------------------------------------------------------- Imports -----------------------------------------...
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # # LANGUAGE UnboxedTuples # # LANGUAGE PatternGuards # module Data.Scientific.Internal ( Scientific , scientific , unsafeScientificFromNormalized , unsafeScientificFromNonNormalized , coefficient , base10Exponent , isFloating , isInteg...
e85bd124f9b42de0656a8dd37f631e0db1c725ba8dcac3c2bedaa7600cfaf979
archaelus/rabbitmq-erlang-client
amqp_channel.erl
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 copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITH...
null
https://raw.githubusercontent.com/archaelus/rabbitmq-erlang-client/e2f507c4ab8b7f57c2c700dbabc8079861f5a0a4/src/amqp_channel.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. All Rights Reserved. @doc This module encapsulates the client's v...
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 Software distributed under the License is distributed on an " AS IS " The Original Code is the RabbitMQ Erlang Client . The Initial Developers of the Original Cod...
e755c173d84c0c8f61f4ddde0f287fd685ac5885fe607d549d286e8e9209df83
jwiegley/notes
Types.hs
mergeUpdateMaps :: (Maybe a -> Maybe a -> Maybe a) -> Map Prelude.FilePath a -> Map Prelude.FilePath a -> Map Prelude.FilePath a mergeUpdateMaps f x y = M.foldlWithKey' (\m k mx -> case mx of Nothing -> m Just x -> M.insert k x m) ...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/gists/f719a3d41696d48f6005/gists/6260766/Types.hs
haskell
mergeUpdateMaps :: (Maybe a -> Maybe a -> Maybe a) -> Map Prelude.FilePath a -> Map Prelude.FilePath a -> Map Prelude.FilePath a mergeUpdateMaps f x y = M.foldlWithKey' (\m k mx -> case mx of Nothing -> m Just x -> M.insert k x m) ...
288f7a7ff27cfb8be39c357417b98ccb820124f33cad0dac5d35b62f0f634258
sixohsix/tak
Editor.hs
# LANGUAGE NoImplicitPrelude # module Tak.Editor where import Prelude as P import qualified Data.Text as DT import qualified Data.Text.IO as DTIO import System.Directory (doesFileExist) import System.IO import Control.Arrow ( (>>>) ) import Control.Monad ( (>=>) ) import Control.Lens import Data.Map as Map import Ta...
null
https://raw.githubusercontent.com/sixohsix/tak/6310d19faa683156933dde38666c11dc087d79ea/src/Tak/Editor.hs
haskell
# LANGUAGE NoImplicitPrelude # module Tak.Editor where import Prelude as P import qualified Data.Text as DT import qualified Data.Text.IO as DTIO import System.Directory (doesFileExist) import System.IO import Control.Arrow ( (>>>) ) import Control.Monad ( (>=>) ) import Control.Lens import Data.Map as Map import Ta...
0ef6e5dba66577ee273dfaccd48646fa771fd13615fe0f9c095dd9d4a0f5d766
danielecapo/sfont
parametric.rkt
#lang racket (require "private/parametric/fontwriter.rkt" "private/parametric/path.rkt") (provide (all-from-out "private/parametric/fontwriter.rkt") (all-from-out "private/parametric/path.rkt"))
null
https://raw.githubusercontent.com/danielecapo/sfont/c854f9734f15f4c7cd4b98e041b8c961faa3eef2/sfont/parametric.rkt
racket
#lang racket (require "private/parametric/fontwriter.rkt" "private/parametric/path.rkt") (provide (all-from-out "private/parametric/fontwriter.rkt") (all-from-out "private/parametric/path.rkt"))
2b78b271c72429e7422e0425acf93bf547109f0be880566eb3a6b6a81ee86da6
slyrus/abcl
print.lisp
;;; print.lisp ;;; Copyright ( C ) 2004 - 2006 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . ;;...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/src/org/armedbear/lisp/print.lisp
lisp
print.lisp This program is free software; you can redistribute it and/or either version 2 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 ...
Copyright ( C ) 2004 - 2006 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . ...
d3fe2f89feac42820d2dbbd2f6666a4f28924f93ebe00a990be48a8240649567
jarvinet/scheme
init.scm
; This file is read on startup of my scheme implementation (define (fib n) (if (< n 2) n (+ (fib (- n 2)) (fib (- n 1)))))
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/old/try3/init.scm
scheme
This file is read on startup of my scheme implementation
(define (fib n) (if (< n 2) n (+ (fib (- n 2)) (fib (- n 1)))))
65ae5c59abe429c4d05897f5f3828a4da645d2973a79fbd989b70c6711c0153a
nuprl/gradual-typing-performance
world.rkt
#lang typed/racket (require "base-types.rkt") (require benchmark-util) (require/typed/check "bset.rkt" [blocks-union (-> BSet BSet BSet)] [blocks-max-x (-> BSet Real)] [blocks-min-x (-> BSet Real)] [blocks-max-y (-> BSet Real)]) (require/typed/check "tetras.rkt" [tetra-move (-> Real Real Tetra Tetra)] ...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/unsafe/tetris/typed/world.rkt
racket
and create a new tetra. Take the current tetra and move it down until it lands. Has the current tetra landed on blocks? Has the current tetra landed on the floor? Has the current tetra landed? Step the world, either touchdown or move the tetra down on step. Make a world with the new tetra *IF* if doesn't lie on...
#lang typed/racket (require "base-types.rkt") (require benchmark-util) (require/typed/check "bset.rkt" [blocks-union (-> BSet BSet BSet)] [blocks-max-x (-> BSet Real)] [blocks-min-x (-> BSet Real)] [blocks-max-y (-> BSet Real)]) (require/typed/check "tetras.rkt" [tetra-move (-> Real Real Tetra Tetra)] ...
f9323a4a7fab02a2e30ae1e6b4807b3b3a9256b8a8cdc78406f312bc789bff09
Clojure2D/clojure2d-examples
mutual_attraction_2_8.clj
(ns NOC.ch02.mutual-attraction-2-8 (:require [clojure2d.color :as c] [clojure2d.core :refer :all] [fastmath.vector :as v] [fastmath.core :as m] [fastmath.random :as r]) (:import fastmath.vector.Vec2)) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-b...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/NOC/ch02/mutual_attraction_2_8.clj
clojure
(ns NOC.ch02.mutual-attraction-2-8 (:require [clojure2d.color :as c] [clojure2d.core :refer :all] [fastmath.vector :as v] [fastmath.core :as m] [fastmath.random :as r]) (:import fastmath.vector.Vec2)) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-b...
86d9e84cf2e75cd65e555356397cb708bd83665ee547ca8059a0c07e176f005c
namin/logically
lf1.clj
(ns logically.exp.lf1 (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l])) (defn solve-for* [clause] (letfn [(solve [goals] (conde [(== goals ())] [(fresh [g gs c a b] (conso g gs goals) (== g [c a]) ...
null
https://raw.githubusercontent.com/namin/logically/49e814e04ff0f5f20efa75122c0b869e400487ac/src/logically/exp/lf1.clj
clojure
(ns logically.exp.lf1 (:refer-clojure :exclude [==]) (:use [clojure.core.logic :exclude [is] :as l])) (defn solve-for* [clause] (letfn [(solve [goals] (conde [(== goals ())] [(fresh [g gs c a b] (conso g gs goals) (== g [c a]) ...
75d30c7c529de83fbf2c19c99c5e60ac8876097c2bf98a88bd6a86616993cd7a
bhaskara/programmable-reinforcement-learning
cache.lisp
(defpackage cache (:documentation "Functions to do with caches. Types ----- <fifo-cache> Operations ---------- add lookup reset reset-stats size") (:use utils cl) (:export <fifo-cache> add size reset-stats reset lookup)) (in-package cache) (defclass <fifo-ca...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/data-struct/cache.lisp
lisp
search starting from search-ptr set the search-ptr to pos
(defpackage cache (:documentation "Functions to do with caches. Types ----- <fifo-cache> Operations ---------- add lookup reset reset-stats size") (:use utils cl) (:export <fifo-cache> add size reset-stats reset lookup)) (in-package cache) (defclass <fifo-ca...
6e9e7cc565c8a00685771ef11631ae39b171b0dec789525a41553003504e27a1
chaoxu/fancy-walks
A.hs
{-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Dat...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/code.google.com/codejam/Google%20Code%20Jam%202009/Round%202/A.hs
haskell
# OPTIONS_GHC -O2 #
import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as BS...
5129a34dc004521231844b7cfd52d24c201d7a30d3c0b16996fc96501991ab51
INRIA/zelus
basics.ml
let stdform_of_float pref suf f = Printf.sprintf (Scanf.format_from_string (Printf.sprintf "%%%d.%de" pref suf) "%e") f let output_line output_item out ss = let pr s = (output_string out "\t"; output_item out s) in if List.length ss = 0 then () else (output_item out (List.hd ss); List.ite...
null
https://raw.githubusercontent.com/INRIA/zelus/685428574b0f9100ad5a41bbaa416cd7a2506d5e/lib/std/basics.ml
ocaml
let stdform_of_float pref suf f = Printf.sprintf (Scanf.format_from_string (Printf.sprintf "%%%d.%de" pref suf) "%e") f let output_line output_item out ss = let pr s = (output_string out "\t"; output_item out s) in if List.length ss = 0 then () else (output_item out (List.hd ss); List.ite...