_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
c95a5139c7f7d9e4eca661fded6e11e94179b0830ad6652a4210f041833c2119
fdopen/ppx_cstubs
std.mli
This file is part of ppx_cstubs ( ) * Copyright ( c ) 2018 - 2019 fdopen * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version...
null
https://raw.githubusercontent.com/fdopen/ppx_cstubs/5d5ce9b7cf45d87bb71c046a76d30c17ec6075e5/src/internal/std.mli
ocaml
[%sig: ...] [%sigi: ...] broken for some Ocaml versions ...
This file is part of ppx_cstubs ( ) * Copyright ( c ) 2018 - 2019 fdopen * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version...
6ad0ff7ce31bf474cfaab0dba7a96d3e08cc6aaf887d5b1c154cd5095dbd01d7
deadpendency/deadpendency
Gemfile.hs
module DD.Effect.DetermineDependencies.Backend.LanguageFiles.Ruby.Gemfile ( GemfileInput (..), ) where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import Common.Model.Dependency.File.DependenciesFileType impo...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/dependency-determiner/src/DD/Effect/DetermineDependencies/Backend/LanguageFiles/Ruby/Gemfile.hs
haskell
module DD.Effect.DetermineDependencies.Backend.LanguageFiles.Ruby.Gemfile ( GemfileInput (..), ) where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import Common.Model.Dependency.File.DependenciesFileType impo...
a506283e8383f9126ff66499ca35d7acf647f81582fca06df7c24b8d162b3888
samrushing/irken-compiler
t_match9.scm
(include "lib/core.scm") ;; test <match> (define (frob n) (match (* n n) with 0 -> 'zed 1 -> 'one 4 -> 'two x -> (error "bad arg to frob"))) {a=(frob 0) b=(frob 1) c=(frob 2)}
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_match9.scm
scheme
test <match>
(include "lib/core.scm") (define (frob n) (match (* n n) with 0 -> 'zed 1 -> 'one 4 -> 'two x -> (error "bad arg to frob"))) {a=(frob 0) b=(frob 1) c=(frob 2)}
ab1ef48748f018dd5f71be7ecae97c73f71ee2722d2ef173a4ba2fbd7eed0db6
mbj/stratosphere
SamplingRule.hs
module Stratosphere.XRay.SamplingRule ( module Exports, SamplingRule(..), mkSamplingRule ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.XRay.SamplingRule.SamplingRuleProperty as Exports import {-# S...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/xray/gen/Stratosphere/XRay/SamplingRule.hs
haskell
# SOURCE # # SOURCE # # SOURCE # # SOURCE #
module Stratosphere.XRay.SamplingRule ( module Exports, SamplingRule(..), mkSamplingRule ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data SamplingRule = SamplingRu...
d58ee952edf23caeb29b43eb04e6d6b865c2778caf72ab53f1ce0041c3f716ba
ZHaskell/z-io
Manager.hs
| Module : Z.IO.UV.Manager Description : IO manager based on libuv Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable This is an internal module provides IO manager which bridge libuv 's async interface with ghc 's ligh...
null
https://raw.githubusercontent.com/ZHaskell/z-io/7b3cdcc6f07a4b4c5bc1baf39f85d7af88b444e5/Z/IO/UV/Manager.hs
haskell
* request based async function helper * concurrent helpers ------------------------------------------------------------------------------ # UNPACK # # UNPACK # ^ The uv loop refrerence # UNPACK # ^ Cached pointer to uv_loop_t's data field # UNPACK # ^ Only uv manager thread will modify this value, 'True' druing u...
| Module : Z.IO.UV.Manager Description : IO manager based on libuv Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable This is an internal module provides IO manager which bridge libuv 's async interface with ghc 's ligh...
7fef87b48d74cdf5ecf3aedfc6c4c8cf262a09948dcf89e6898374e18df3f3f2
bmeurer/ocaml-arm
kbmain.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/testsuite/tests/misc-kb/kbmain.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Terms open Equations open...
0ffe87c3e44f0f273d7149293f62df2a2f19bcb16ba29ae08fdbd1605fe677d8
johnelse/mkaudio
wav.ml
let write ~channels ~sample_rate ~samples ~generator ~output_file = let wav = new Mm.Audio.IO.Writer.to_wav_file channels sample_rate output_file in let buffer_length = 1024 in let buffer = Mm.Audio.create channels buffer_length in let rec write samples_left = if samples_left > 0 then begin let outp...
null
https://raw.githubusercontent.com/johnelse/mkaudio/172fc14443feafae2f0542948e53c1621f42bed2/lib/wav.ml
ocaml
let write ~channels ~sample_rate ~samples ~generator ~output_file = let wav = new Mm.Audio.IO.Writer.to_wav_file channels sample_rate output_file in let buffer_length = 1024 in let buffer = Mm.Audio.create channels buffer_length in let rec write samples_left = if samples_left > 0 then begin let outp...
47f7e535f5767ee3aa17d15a50b7b6a7a9a3a9877a0c12b192d87ae5d88a622f
clj-commons/seesaw
dynamic_layout.clj
(ns seesaw.test.examples.dynamic-layout (:use seesaw.core seesaw.test.examples.example)) ; Extremely basic example of a panel that changes what it shows based on ; whether it has enough room. ; ; Random thoughts: ; ; * Probably only works in a container like a grid where everything ; get the same space. Ot...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/examples/dynamic_layout.clj
clojure
Extremely basic example of a panel that changes what it shows based on whether it has enough room. Random thoughts: * Probably only works in a container like a grid where everything get the same space. Otherwise modifying what's shown would trigger a recursive layout cascade (probably?) * A card panel coul...
(ns seesaw.test.examples.dynamic-layout (:use seesaw.core seesaw.test.examples.example)) (defn make-dynamic-panel [i] (let [ extra (horizontal-panel :items [(label :text (str "Panel " i)) (button :text (str "Panel " i))]) full-size (bo...
05dfc921c5bc5655de071a449d2f5d77c70b0771acd12d4490fd6b76edbd0c17
GaloisInc/surveyor
BlockSelector.hs
module Surveyor.Brick.Widget.BlockSelector ( BlockSelector, emptyBlockSelector, blockSelector, handleBlockSelectorEvent, renderBlockSelector ) where import qualified Brick as B import Control.Monad.IO.Class ( liftIO ) import qualified Data.Text as T import qualified Data.Text.Zipper.Generic as ZG...
null
https://raw.githubusercontent.com/GaloisInc/surveyor/96b6748d811bc2ab9ef330307a324bd00e04819f/surveyor-brick/src/Surveyor/Brick/Widget/BlockSelector.hs
haskell
^ An action to call once a block is selected ^ An attribute to apply to the selected list item ^ A list of blocks containing the address
module Surveyor.Brick.Widget.BlockSelector ( BlockSelector, emptyBlockSelector, blockSelector, handleBlockSelectorEvent, renderBlockSelector ) where import qualified Brick as B import Control.Monad.IO.Class ( liftIO ) import qualified Data.Text as T import qualified Data.Text.Zipper.Generic as ZG...
c78d94683ba4340560e084ca203bec182162a5269461a5cbace95119b3374ec8
WhatsApp/eqwalizer
subtype_pos.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(subtype_pos). -compile([export_all, nowarn_export_all]). -type ab() :: a | b. -type pair_diff...
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/8017d486c025eaa5c35ced1481ad5bad0f665efa/eqwalizer/test_projects/check/src/subtype_pos.erl
erlang
the LICENSE file in the root directory of this source tree. When EQWALIZER_STRICT_INTEGERS is false,
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(subtype_pos). -compile([export_all, nowarn_export_all]). -type ab() :: a | b. -type pair_diff_elems() :: {a, b} | {b, a}. -type pair_ab() :: {ab(), ab()}...
44c5c5bd47bc997287d67a2a05b1116350aff243d4e593a56ad60520c715cef3
ucsd-progsys/nate
frx_lbutton.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/frx/frx_lbutton.mli
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
9f71b0725be23b8cf52fe268edbe0342428b1f60b26a97e404af9ada11f56317
janestreet/hardcaml_circuits
cordic.mli
* Coordinate rotation digital computer . CORDIC is an iterative shift - add algorithm for computing trig and hyperbolic functions like sin , cosh , atan etc . Generally it requires 3 adders , 2 barrel shifters and a fairly small lookup table . { b Gain } The [ x ] and [ y ] outputs fro...
null
https://raw.githubusercontent.com/janestreet/hardcaml_circuits/a2c2d1ea3e6957c3cda4767d519e94c20f1172b2/src/cordic.mli
ocaml
* Coordinate rotation digital computer . CORDIC is an iterative shift - add algorithm for computing trig and hyperbolic functions like sin , cosh , atan etc . Generally it requires 3 adders , 2 barrel shifters and a fairly small lookup table . { b Gain } The [ x ] and [ y ] outputs fro...
2df83b26516040fc95e1cbde723d1c34d9ac15bf9ebcba8f825da7c522b117fd
Blue-BigTech/SpaceTokens
SerialiseJSON.hs
# LANGUAGE ImportQualifiedPost # # LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} module SerialiseJSON (testR, testD) where import Data.Aeson as Json ( encode ) import Data.ByteString.Lazy qualified as LB import Cardano.Api ( scriptDataToJson, ScriptDataJsonSchema(ScriptDataJsonDetailedS...
null
https://raw.githubusercontent.com/Blue-BigTech/SpaceTokens/04c2af6d35dca88990736f1a3e698e91095e745e/src/SerialiseJSON.hs
haskell
# LANGUAGE OverloadedStrings # To use this enter `cabal repl` ; `:l src/SerialiseJSON.hs` ; `testR` or `testD` tx - in - redeemer - file This is an example to fill with real data Constructs the JSON file for the nftEx datum, used as input to --tx-in-datum-file
# LANGUAGE ImportQualifiedPost # # LANGUAGE NumericUnderscores # module SerialiseJSON (testR, testD) where import Data.Aeson as Json ( encode ) import Data.ByteString.Lazy qualified as LB import Cardano.Api ( scriptDataToJson, ScriptDataJsonSchema(ScriptDataJsonDetailedSchema) ) import Cardano.Api.Shelley...
a579d815463d6afb9262914b851c8e49121995b12feb850c41c7f2ef458830af
pveber/biotk
ucsc_genome_browser.ml
open Core open Printf type assembly = [ `dm3 | `droSim1 | `hg18 | `hg19 | `hg38 | `mm8 | `mm9 | `mm10 | `sacCer2 ] let string_of_assembly = function | `dm3 -> "dm3" | `droSim1 -> "droSim1" | `hg18 -> "hg18" | `hg19 -> "hg19" | `hg38 -> "hg38" | `mm8 -> "mm8" | `mm9 -> "mm9" | `mm10 -> "mm10" | `sacC...
null
https://raw.githubusercontent.com/pveber/biotk/0906a650a324f020c9caa3377233ac3a1f217921/lib/ucsc_genome_browser.ml
ocaml
open Core open Printf type assembly = [ `dm3 | `droSim1 | `hg18 | `hg19 | `hg38 | `mm8 | `mm9 | `mm10 | `sacCer2 ] let string_of_assembly = function | `dm3 -> "dm3" | `droSim1 -> "droSim1" | `hg18 -> "hg18" | `hg19 -> "hg19" | `hg38 -> "hg38" | `mm8 -> "mm8" | `mm9 -> "mm9" | `mm10 -> "mm10" | `sacC...
eaa0070326fc69b56b1f7c38cb39be1a5460d382cf2a94fede0f474d5191357b
unclebob/AdventOfCode2020
core_spec.clj
(ns day15.core-spec (:require [speclj.core :refer :all] [day15.core :refer :all])) (defn solve [n input] (let [tokens (clojure.string/split input #",") seeds (map #(Integer/parseInt %) tokens) seed-pairs (map vector seeds (range 1 (count seeds))) turn-map (into (hash-map) seed-p...
null
https://raw.githubusercontent.com/unclebob/AdventOfCode2020/fc4ba9ad042cbcc48dfa5947373ab46b750d89e5/day15/spec/day15/core_spec.clj
clojure
(ns day15.core-spec (:require [speclj.core :refer :all] [day15.core :refer :all])) (defn solve [n input] (let [tokens (clojure.string/split input #",") seeds (map #(Integer/parseInt %) tokens) seed-pairs (map vector seeds (range 1 (count seeds))) turn-map (into (hash-map) seed-p...
24012ba2ace079fb7767cc3e275c3b28f6c6da53ff8d743a26f0c8d290d869a7
alanzplus/EOPL
bst.rkt
#lang eopl ; constructs for binary search tree (define bst (lambda (val left-bst right-bst) (list val left-bst right-bst))) (define null-node? (lambda (node) (null? node))) (define val-of-node (lambda (node) (if (null-node? node) '() (car node)))) (define ltree (lambda (node) (cadr node))) ...
null
https://raw.githubusercontent.com/alanzplus/EOPL/d7b06392d26d93df851d0ca66d9edc681a06693c/EOPL/ch1/bst.rkt
racket
constructs for binary search tree
#lang eopl (define bst (lambda (val left-bst right-bst) (list val left-bst right-bst))) (define null-node? (lambda (node) (null? node))) (define val-of-node (lambda (node) (if (null-node? node) '() (car node)))) (define ltree (lambda (node) (cadr node))) (define rtree (lambda (node) ...
9e0d5bd42c17be1ea912c4c24590766ddc8c1ca6406f0931235281d81e55db0f
serokell/ariadne
Printer.hs
module Knit.Printer ( ComponentPrinter(..) , PrettyPrintValue , invalidOperatorApplication , ppLit , ppToken , ppExpr , ppValue , nameToDoc , text ) where import Data.List as List import Data.Semigroup ((<>)) import qualified Data.Text as T import D...
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/knit/src/Knit/Printer.hs
haskell
module Knit.Printer ( ComponentPrinter(..) , PrettyPrintValue , invalidOperatorApplication , ppLit , ppToken , ppExpr , ppValue , nameToDoc , text ) where import Data.List as List import Data.Semigroup ((<>)) import qualified Data.Text as T import D...
c91cb28f7d93b10348456feaff7de268efa5c77f7cffebcda4a6ffcc4045c8ec
onedata/op-worker
helpers_nif_monitoring_test.erl
%%%------------------------------------------------------------------- @author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc Test for helpers monitoring functional...
null
https://raw.githubusercontent.com/onedata/op-worker/f220870d18ec6a6d7201ca3f32b5d3b2e401e291/test/helpers_nif_monitoring_test.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Test for helpers monitoring functionality in helpers_nif module @end ------------------------------------------------------------------- ============================...
@author ( C ) 2017 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(helpers_nif_monitoring_test). -author("Bartek Kryza"). -ifdef(TEST). -include("global_definitions.hrl"). -include("modules/storage/helpers/helpers.hrl"). -include_lib("eunit/include/eunit....
d6265311b765f0a45cd45e0fca3ebf6d92bc440aa168b08b7ee525dfb1ddc4ea
cbaggers/rtg-math
consing.lisp
(in-package :rtg-math.projection) ;;------------------------------------------------------------ (defn orthographic ((frame-width single-float) (frame-height single-float) (near single-float) (far single-float)) mat4 (declare (optimize (speed 3) (safety 1) (debug 1))) (let ((left (- (/ fra...
null
https://raw.githubusercontent.com/cbaggers/rtg-math/29fc5b3d0028a4a11a82355ecc8cca62662c69e0/projection/orthographic/consing.lisp
lisp
------------------------------------------------------------ ------------------------------------------------------------
(in-package :rtg-math.projection) (defn orthographic ((frame-width single-float) (frame-height single-float) (near single-float) (far single-float)) mat4 (declare (optimize (speed 3) (safety 1) (debug 1))) (let ((left (- (/ frame-width 2.0))) (right (/ frame-width 2.0)) (to...
d94c043a1b336206debc707a0f3b83d3d93c6e9944998b8552800cfc7e71076d
borkdude/lein2deps
changelog.clj
#!/usr/bin/env bb (ns changelog (:require [clojure.string :as str])) (let [changelog (slurp "CHANGELOG.md") replaced (str/replace changelog #" #(\d+)" (fn [[_ issue after]] (format " [#%s]()%s" ...
null
https://raw.githubusercontent.com/borkdude/lein2deps/60e33d969f624143f03ebd3456a703e68c8b9ab7/script/changelog.clj
clojure
#!/usr/bin/env bb (ns changelog (:require [clojure.string :as str])) (let [changelog (slurp "CHANGELOG.md") replaced (str/replace changelog #" #(\d+)" (fn [[_ issue after]] (format " [#%s]()%s" ...
cacbcf7003381192485ebb057c0df16eb146b9c83612eaa9650953b5180de811
typedclojure/typedclojure
ctyp_284.clj
(ns clojure.core.typed.test.ctyp-284 (:require [clojure.test :refer :all] [typed.clj.checker.test-utils :refer :all])) (deftest transitive-no-reload (is (with-typed-load (and ; bad dep throws a type error (try (require 'clojure.core.typed.test.typed-load.bad-dep :r...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/1b791b9e5f3e907f9cf1d504a7798c9bf2a04e8f/typed/clj.checker/test/clojure/core/typed/test/ctyp_284.clj
clojure
bad dep throws a type error but isn't rechecked by transitive dep
(ns clojure.core.typed.test.ctyp-284 (:require [clojure.test :refer :all] [typed.clj.checker.test-utils :refer :all])) (deftest transitive-no-reload (is (with-typed-load (and (try (require 'clojure.core.typed.test.typed-load.bad-dep :reload) nil (catch ...
378f7c4497ad83372a878967a6d117cc4a5b8e5e51b1e1e5219790e75a6e7f6b
adobe/Chronikis
StanASTSpec.hs
Copyright 2019 Adobe . All rights reserved . This file is licensed 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 License at -2.0 Unless required by applicable law or agreed to in writing , sof...
null
https://raw.githubusercontent.com/adobe/Chronikis/b83b9e38341cdc1539fc7625c6355c6fd176d8a3/compiler/test/StanASTSpec.hs
haskell
remove The remaining tests are more like regression tests, as there is putStrLn $ compileStanAST st
Copyright 2019 Adobe . All rights reserved . This file is licensed 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 License at -2.0 Unless required by applicable law or agreed to in writing , sof...
62a30383e3c7fb1040aa349bacd00a416258a15ee7eeeb9c6bec1d5df56ee9cb
nixin72/shan
core.clj
(ns shan.core (:require [shan.parser :refer [run-cmd]] [shan.print :as p] [shan.config :as c] [shan.cache :as cache] [shan.commands.-options :as opts] [shan.commands.add-archive :as add-archive] [shan.commands.default :as default] [shan.commands.edit :as edit] [shan.commands.help :as help] ...
null
https://raw.githubusercontent.com/nixin72/shan/9d00a9ce01d89f95bd13c96621d9c414eeaaa9c7/src/shan/core.clj
clojure
If it looks like the user is trying to get help, help them Also help them if they provide no arguments Otherwise, just do what they want
(ns shan.core (:require [shan.parser :refer [run-cmd]] [shan.print :as p] [shan.config :as c] [shan.cache :as cache] [shan.commands.-options :as opts] [shan.commands.add-archive :as add-archive] [shan.commands.default :as default] [shan.commands.edit :as edit] [shan.commands.help :as help] ...
ad07f3268b18d81b6cee107ae0c6420b6942194767d464edd1871aa29a28d409
kdltr/chicken-core
renamed-reexport-bug.scm
;;;; this-works.scm ;; when using import-libraries, then this fails: ;; ;; (import foo2) ;; (fbar) ; <- expansion refers to `bar' (module foo (bar baz) (import scheme) (define-syntax bar (syntax-rules () ((_) (baz)))) (define-syntax baz (syntax-rules () ((_) (display "baz.\n"))))) (module foo2 () ...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/tests/renamed-reexport-bug.scm
scheme
this-works.scm when using import-libraries, then this fails: (import foo2) (fbar) ; <- expansion refers to `bar'
(module foo (bar baz) (import scheme) (define-syntax bar (syntax-rules () ((_) (baz)))) (define-syntax baz (syntax-rules () ((_) (display "baz.\n"))))) (module foo2 () (import scheme) (reexport (rename foo (bar fbar) (baz fbaz))))
53e4462530eb583525c762ae942705745d23c26299b26b10d791c37eb1d4ed8d
clash-lang/clash-compiler
Synchronizer.hs
| Copyright : ( C ) 2019 , Myrtle Software Ltd , License : BSD2 ( see the file LICENSE ) Maintainer : < > Synchronizer circuits for safe clock domain crossings Copyright : (C) 2019, Myrtle Software Ltd, License : BSD2 (see the file LICENSE) Maintainer : Christiaan Baaij <> Synch...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/1a02e0f9f379f43c0f0b8d58e0fe71db8ece904d/clash-prelude/src/Clash/Prelude/Synchronizer.hs
haskell
* Bit-synchronizers * Word-synchronizers * __NB__: This synchronizer can be used for __bit__-synchronization. * __NB__: Although this synchronizer does reduce metastability, it does not guarantee the proper synchronization of a whole __word__. For example, given that the output is sampled twice as fast as t...
| Copyright : ( C ) 2019 , Myrtle Software Ltd , License : BSD2 ( see the file LICENSE ) Maintainer : < > Synchronizer circuits for safe clock domain crossings Copyright : (C) 2019, Myrtle Software Ltd, License : BSD2 (see the file LICENSE) Maintainer : Christiaan Baaij <> Synch...
a0195c4bddd5ab449ad7bfe1c45fc6d17e1a7527119180197b665a29d11fc22e
janestreet/memtrace_viewer
rpc_implementations.ml
open! Core open! Async open Memtrace_viewer_common let init global_state = let f user_state () = User_state.reset global_state user_state; let data = User_state.data user_state in let serialized = Data.Serialized.serialize data in return serialized in Rpc.Rpc.implement Protocol.Init.t f ;; let u...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer/3411df1162ba1eec4987d580a50b38f626f202c6/server/src/rpc_implementations.ml
ocaml
open! Core open! Async open Memtrace_viewer_common let init global_state = let f user_state () = User_state.reset global_state user_state; let data = User_state.data user_state in let serialized = Data.Serialized.serialize data in return serialized in Rpc.Rpc.implement Protocol.Init.t f ;; let u...
94203e99602bb031ca87e79e86446d4fb07d50018dd84e0281df9dff12e3c527
marcelosousa/llvmvf
Util.hs
------------------------------------------------------------------------------- -- Module : Concurrent.Model.Encoder.Util Copyright : ( c ) 2012 ------------------------------------------------------------------------------- module Concurrent.Model.Encoder.Util where import Language.LLVMIR import Numeric im...
null
https://raw.githubusercontent.com/marcelosousa/llvmvf/c314e43aa8bc8bb7fd9c83cebfbdcabee4ecfe1b/src/Concurrent/Model/Encoder/Util.hs
haskell
----------------------------------------------------------------------------- Module : Concurrent.Model.Encoder.Util -----------------------------------------------------------------------------
Copyright : ( c ) 2012 module Concurrent.Model.Encoder.Util where import Language.LLVMIR import Numeric import Data.Char errormessage = error "enc type not supported" fstu (a,b,c) = a sndu (a,b,c) = b trdu (a,b,c) = c getIdxN :: Type -> [Int] getIdxN (TyArray ne ty) = (getBSize ne):(getIdxN ty) getIdxN (Ty...
81d28345808608bb6a965e85915221be700ff412d998e120d41df2222afc775e
xsc/peripheral
analysis.clj
(ns peripheral.system.analysis (:require [peripheral.system.using :refer [to-system-using]] [peripheral.utils :refer [is-class-name?]] [com.stuartsierra.dependency :as dep])) # # Analysis of System Body (defn- is-global? [value] (-> value meta :global)) (defn- collect-globals [depen...
null
https://raw.githubusercontent.com/xsc/peripheral/5eafb7d8fcb0afda1c81fa103a7467d486862203/src/peripheral/system/analysis.clj
clojure
(ns peripheral.system.analysis (:require [peripheral.system.using :refer [to-system-using]] [peripheral.utils :refer [is-class-name?]] [com.stuartsierra.dependency :as dep])) # # Analysis of System Body (defn- is-global? [value] (-> value meta :global)) (defn- collect-globals [depen...
cd8b92bee794d2876352978c81407efa6c411f2d8856d3d6333f9e4c68d6cdbb
degree9/uikit-hl
section.cljs
(ns uikit-hl.section (:require [hoplon.core :as hl] [uikit-hl.core :as core])) (def ^:dynamic *uk-section* "") (def ^:dynamic *default* nil) (def ^:dynamic *muted* nil) (def ^:dynamic *primary* nil) (def ^:dynamic *secondary* nil) (def ^:dynamic *media* nil) (def ^:dynamic *xsmall* n...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/docs/docs.html.out/uikit_hl/section.cljs
clojure
(ns uikit-hl.section (:require [hoplon.core :as hl] [uikit-hl.core :as core])) (def ^:dynamic *uk-section* "") (def ^:dynamic *default* nil) (def ^:dynamic *muted* nil) (def ^:dynamic *primary* nil) (def ^:dynamic *secondary* nil) (def ^:dynamic *media* nil) (def ^:dynamic *xsmall* n...
4404f8fdcb47c6caba124fb7c9e963e772e825dce61eefd86ca4d12611a03a42
tomjridge/kv-lite
lwt_example.ml
open Lwt open Lwt.Infix module Kv = Kv_lite.Impl_with_lwt open Kv open Kv_lite.Private.Util let slow_insert_n = 1_000 let batch_n = 100_000 let time () = Unix.time () let go () = begin Printf.printf "Test starts\n%!"; let t1 = time () in let fn = "test.db" in (* open db; create drops any existing...
null
https://raw.githubusercontent.com/tomjridge/kv-lite/502cee6e641cf71126edeba4ea481aa0efcebde3/bin/lwt_example.ml
ocaml
open db; create drops any existing db add some entries now a batch insert
open Lwt open Lwt.Infix module Kv = Kv_lite.Impl_with_lwt open Kv open Kv_lite.Private.Util let slow_insert_n = 1_000 let batch_n = 100_000 let time () = Unix.time () let go () = begin Printf.printf "Test starts\n%!"; let t1 = time () in let fn = "test.db" in Kv.create ~fn >>= Kv.error_to_exn >>=...
ab7d3e59dd49f5760136b85eabc11efc56947be606ac9f6d2282ec77364c9b16
dpiponi/Moodler
midi6.hs
do (x0, y0) <- mouse let (x, y) = quantise2 quantum (x0, y0) root <- currentPlane keyboard6 <- new' "input" alias "keyboard6" keyboard6 trigger6 <- new' "input" alias "trigger6" trigger6 container0 <- container' "panel_keyboard6.png" (x+456-456.0,y-36+36.0) (Inside root) out1 <- ...
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/scripts/midi6.hs
haskell
do (x0, y0) <- mouse let (x, y) = quantise2 quantum (x0, y0) root <- currentPlane keyboard6 <- new' "input" alias "keyboard6" keyboard6 trigger6 <- new' "input" alias "trigger6" trigger6 container0 <- container' "panel_keyboard6.png" (x+456-456.0,y-36+36.0) (Inside root) out1 <- ...
eb626fd07f7b3ee362a23ae0df949de76f7f0fc5930c7ef0e9ba0af8eca268e1
razum2um/clj-debugger
debug_args_test.clj
(ns debugger.debug-args-test (:require [debugger.debug-args :refer [dbg-defn dbg-fn]] [clojure.test :refer [deftest testing is]])) (deftest dbg-defn-test (testing "inserts println statement into single arity" (is (= '(defn debugger.debug-args-test/f1 [debugger.debug-args-test/arg1 deb...
null
https://raw.githubusercontent.com/razum2um/clj-debugger/22f8775193b13e799c3879f6d8443e65600ad503/test/debugger/debug_args_test.clj
clojure
(ns debugger.debug-args-test (:require [debugger.debug-args :refer [dbg-defn dbg-fn]] [clojure.test :refer [deftest testing is]])) (deftest dbg-defn-test (testing "inserts println statement into single arity" (is (= '(defn debugger.debug-args-test/f1 [debugger.debug-args-test/arg1 deb...
0f88070dca7d7bdc9f2f6bb90a41d9f381ba6c50a96b0c0f374349e7b63b1917
aelve/guide
Logger.hs
| A small logging framework for Guide , implemented as a wrapper over the -- "di" package. -- Used mostly in " Guide . Main " and " Guide . Api . Methods " . -- Some internals are exposed in modules under @Guider . Logger.*@ , but you -- shouldn't need them. If you do, consider exporting them from this module. mo...
null
https://raw.githubusercontent.com/aelve/guide/96a338d61976344d2405a16b11567e5464820a9e/back/src/Guide/Logger.hs
haskell
"di" package. shouldn't need them. If you do, consider exporting them from this module. * Creating loggers * Logging with 'LoggerT' ** Building log paths * Logging without a monad transformer ** Building log paths
| A small logging framework for Guide , implemented as a wrapper over the Used mostly in " Guide . Main " and " Guide . Api . Methods " . Some internals are exposed in modules under @Guider . Logger.*@ , but you module Guide.Logger ( withLogger, HasLogger, LoggerT, runLoggerT, logDebug, logInfo, logWarni...
86e8b4b5b99d623b8cad7f806e1f131a422aa21f522bb30e2f0767f131613d37
arachne-framework/arachne-core
run_test.clj
(ns arachne.run-test (:require [arachne.run :as run] [clojure.test :refer :all])) (deftest run-app (let [rt (run/-main ":test/test-app" ":test/rt")] (is (-> rt :system :test/component :started))))
null
https://raw.githubusercontent.com/arachne-framework/arachne-core/ef6f10e20939986292e4630adaef845a6a012d61/test/arachne/run_test.clj
clojure
(ns arachne.run-test (:require [arachne.run :as run] [clojure.test :refer :all])) (deftest run-app (let [rt (run/-main ":test/test-app" ":test/rt")] (is (-> rt :system :test/component :started))))
73e05585916cf111a5edb87ba0b4dafe036a23f2689f03a1d14e2f94c8fd1ad4
openbadgefactory/salava
routes.cljs
(ns salava.admin.ui.routes (:require [salava.core.ui.layout :as layout] [salava.core.i18n :as i18n :refer [t]] [salava.core.ui.helper :refer [base-path]] [salava.admin.ui.tickets :as t] [salava.admin.ui.userlist :as u] [salava.admin.ui.statistics :as s...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljs/salava/admin/ui/routes.cljs
clojure
(ns salava.admin.ui.routes (:require [salava.core.ui.layout :as layout] [salava.core.i18n :as i18n :refer [t]] [salava.core.ui.helper :refer [base-path]] [salava.admin.ui.tickets :as t] [salava.admin.ui.userlist :as u] [salava.admin.ui.statistics :as s...
7e53ca9301ecb6c64f1b68fbd6ef4ecc920a081d0d33579c870caea8eb1afc0d
gtk2hs/gtk2hs
CHSLexer.hs
C->Haskell Compiler : for CHS Files -- Author : Created : 13 August 99 -- Version $ Revision : 1.1 $ from $ Date : 2004/11/21 21:05:35 $ -- Copyright ( c ) [ 1999 .. 2004 ] -- -- This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
null
https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/tools/c2hs/chs/CHSLexer.hs
haskell
This file is free software; you can redistribute it and/or modify (at your option) any later version. This file 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 Pub...
C->Haskell Compiler : for CHS Files Author : Created : 13 August 99 Version $ Revision : 1.1 $ from $ Date : 2004/11/21 21:05:35 $ Copyright ( c ) [ 1999 .. 2004 ] it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the Li...
5e779ac2c18859c5656bd541b9fba020cd3938acc74e3b6325ae988104e379fa
justinethier/nugget
display.scm
(display #t)
null
https://raw.githubusercontent.com/justinethier/nugget/0c4e3e9944684ea83191671d58b5c8c342f64343/cyclone/tests/display.scm
scheme
(display #t)
5f72fea4d68dfaf81036417e928accb8cf9eba027f35521ca7309b7c5e3d16a6
mfikes/fifth-postulate
ns330.cljs
(ns fifth-postulate.ns330) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns330.cljs
clojure
(ns fifth-postulate.ns330) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
098da60c3d78f32738ebddfe4cacc3ed3387e1f7d2b65bf93c5869c0c0102bd9
rsnikhil/Forvis_RISCV-ISA-Spec
Forvis_Spec_I64.hs
Copyright ( c ) 2018 - 2019 -- See LICENSE for license details module Forvis_Spec_I64 where -- ================================================================ -- Part of: specification of all RISC-V instructions. This module is the specification of the RISC - V ' I ' ( Base ) instructions for RV64 -- ======...
null
https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/src/Forvis_Spec_I64.hs
haskell
See LICENSE for license details ================================================================ Part of: specification of all RISC-V instructions. ================================================================ Haskell lib imports For bit-wise 'and' (.&.) etc. Local imports Canonical ways for finish an instru...
Copyright ( c ) 2018 - 2019 module Forvis_Spec_I64 where This module is the specification of the RISC - V ' I ' ( Base ) instructions for RV64 import Bit_Utils import ALU import Arch_Defs import Machine_State import Forvis_Spec_I rd , rs1 , imm12 rd , rs1 , imm12 rs1 , rs2 , imm12 rd , rs...
c17fca3b0b8a932c0adffaa56e4db31d7bf56c6535842ff06f11f97eee053519
juspay/atlas
OnSearch.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Core/ACL/OnSearch.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
b192c8d2078c00e51d181c7f8348dc9edeab4f6944206986c57b692a98e043c4
kimim/re-echarts
core.cljs
(ns re-echarts.core (:require [react :as react] [reagent.core :as r] [echarts :as echarts])) (defn ECharts [options] (r/as-element (let [mychart (react/useRef nil)] (react/useEffect (fn [] (set! (.-chart js/document) (echarts/init (....
null
https://raw.githubusercontent.com/kimim/re-echarts/c5ee516e222095213be1a50d0139fa140742eb9f/src/re_echarts/core.cljs
clojure
(ns re-echarts.core (:require [react :as react] [reagent.core :as r] [echarts :as echarts])) (defn ECharts [options] (r/as-element (let [mychart (react/useRef nil)] (react/useEffect (fn [] (set! (.-chart js/document) (echarts/init (....
9b411f15cafc04d69819649683d796c3d87911adbf13e86fe06ab0351fbe6bfd
returntocorp/semgrep
Token_helpers_scala.ml
* * Copyright ( C ) 2021 R2C * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file license.txt...
null
https://raw.githubusercontent.com/returntocorp/semgrep/00f1e67bbb80f00e29db3381288fc00398b6868a/languages/scala/recursive_descent/Token_helpers_scala.ml
ocaml
*************************************************************************** Token Helpers *************************************************************************** newline has a meaning in the parser, so should not skip old: | Nl _ -> true ************************************************************************...
* * Copyright ( C ) 2021 R2C * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file license.txt...
680272c7f59fc30cb99b6c37f2d29e83b94f706b23e7b2a1f0bae44d3a2b98b4
dparis/gen-phzr
signal.cljs
(ns phzr.impl.accessors.signal) (def signal-get-properties {:active "active" :memorize "memorize"}) (def signal-set-properties {:active "active" :memorize "memorize"})
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/signal.cljs
clojure
(ns phzr.impl.accessors.signal) (def signal-get-properties {:active "active" :memorize "memorize"}) (def signal-set-properties {:active "active" :memorize "memorize"})
45ad769738ac3f74e89b70821192382790c6ac397e5807d54c2c4789c5a8290e
akazukin5151/kpxhs
BrowserUI.hs
{-# LANGUAGE OverloadedStrings #-} module UI.BrowserUI (drawBrowser) where import Brick.AttrMap (attrMapLookup) import qualified Brick.AttrMap as A import Brick.Markup (markup, (@?)) import Brick.Types (Padding (Pad), Widget) import qualified Brick.Widgets....
null
https://raw.githubusercontent.com/akazukin5151/kpxhs/74cb181b1cef2cc52928939639777a3c45fa8d57/src/kpxhs/UI/BrowserUI.hs
haskell
# LANGUAGE OverloadedStrings # lookups the current selection; the ones here has access to the text
module UI.BrowserUI (drawBrowser) where import Brick.AttrMap (attrMapLookup) import qualified Brick.AttrMap as A import Brick.Markup (markup, (@?)) import Brick.Types (Padding (Pad), Widget) import qualified Brick.Widgets.Border as B import qualified Brick....
53c212682254a04296e19e314f39bd1ae650c938a2e678499b32da541c5c7aa7
thegeez/clj-board
dev_system.clj
(ns dev-system (:require [ns-tracker.core :refer [ns-tracker]] [com.stuartsierra.component :as component] [io.pedestal.log :as log] [io.pedestal.http :as http] [net.thegeez.clj-board.system.server :as server] [net.thegeez.clj-board.system.messenger :as messe...
null
https://raw.githubusercontent.com/thegeez/clj-board/e162d6097ce7b66438f7529418bf48af66e34fa8/dev/clj/dev_system.clj
clojure
start with production configuration do not block thread that starts web server Routes can be a function that resolve routes, we can use this to set the routes to be reloadable all origins are allowed in dev mode
(ns dev-system (:require [ns-tracker.core :refer [ns-tracker]] [com.stuartsierra.component :as component] [io.pedestal.log :as log] [io.pedestal.http :as http] [net.thegeez.clj-board.system.server :as server] [net.thegeez.clj-board.system.messenger :as messe...
208cde4e4be903c701e6462a834aa04fed038c7dd8bef7ab016fcbb1af00961b
racket/typed-racket
subtype-tests.rkt
#lang racket/base (require "test-utils.rkt" typed-racket/types/subtype typed-racket/types/numeric-tower typed-racket/types/utils typed-racket/types/abbrev typed-racket/types/prop-ops typed-racket/rep/type-rep typed-racket/rep/values-rep typed-rack...
null
https://raw.githubusercontent.com/racket/typed-racket/d65ff8bd7146b15b79f31506f8aca410aed196e4/typed-racket-test/unit-tests/subtype-tests.rkt
racket
trivial (⊤) examples Reflexivity Error B Value Base Opaque Refinement [(make-Refinement t1a x1) (make-Refinement t1b x1)] [(make-Refinement t1a x1) t1b] evts recursive types and unions sexps vs list*s of nums simple list types not subtypes bugs found intersections The following currently are not subtyp...
#lang racket/base (require "test-utils.rkt" typed-racket/types/subtype typed-racket/types/numeric-tower typed-racket/types/utils typed-racket/types/abbrev typed-racket/types/prop-ops typed-racket/rep/type-rep typed-racket/rep/values-rep typed-rack...
f39f4c09f2088a15ac4a80580dd4bcb133009f1e4202c7e04a713dd2de945c29
erlangonrails/devdb
exmpp_bosh.erl
Copyright ProcessOne 2006 - 2010 . 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 Public License along with this s...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/exmpp-0.9.5/src/network/exmpp_bosh.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 online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the Licens...
Copyright ProcessOne 2006 - 2010 . 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 < > according to the BOSH p...
d0ed9b6c662892244fdde4b85c0aac94f5fcdf1984647f02f14338a6f017e712
danieljharvey/mimsa
Servant.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # module Server.Servant ( MimsaAPI, mimsaAPI, mimsaServer, ) where import Data.Proxy import Servant import Server.Endpoints.Compile import Server.Endpoints.Module import Server.Endpoints.Project import Server.Types type MimsaAPI = ProjectAPI :<|> Comp...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/fa7eefede23f4b37168566593fe48fe21c894545/server/server/Server/Servant.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # module Server.Servant ( MimsaAPI, mimsaAPI, mimsaServer, ) where import Data.Proxy import Servant import Server.Endpoints.Compile import Server.Endpoints.Module import Server.Endpoints.Project import Server.Types type MimsaAPI = ProjectAPI :<|> Comp...
a8254b363f0fa595e3c91d9f5d46752d256c31297987a070a56aff9fab0c7d5e
amnh/poy5
chromAli.mli
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/chromAli.mli
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
860e98263bec183255499ad080f0ed1b3116fb3d0231671ca1a1e4712c272d9e
kar7hik/mfcc
package.lisp
package.lisp (defpackage #:mfcc (:use #:cl #:iterate #:alexandria-2 #:petalisp #:lparallel ;#:bordeaux-fft #:napa-fft #:portaudio #:vgplot) (:shadowing-import-from #:iterate #:terminate #:in) (:shadowing-import-from #:alexandria-2 #:flatten) (:s...
null
https://raw.githubusercontent.com/kar7hik/mfcc/26852ec7e7ffb6cfd78fb11fbe64ddb0c390a406/src/package.lisp
lisp
#:bordeaux-fft
package.lisp (defpackage #:mfcc (:use #:cl #:iterate #:alexandria-2 #:petalisp #:lparallel #:napa-fft #:portaudio #:vgplot) (:shadowing-import-from #:iterate #:terminate #:in) (:shadowing-import-from #:alexandria-2 #:flatten) (:shadowing-import-from #:v...
64aac9caf3106b2bfb4584985e3975e65b747f2e9ff173313f229b2f54cf9bd3
kiselgra/chipotle
targets.lisp
(in-package :chipotle) ;;; ============================================== setup ;;; ============================================== (define-composition-system 3) ;;; ============================================== ;;; targets ;;; ============================================== (d...
null
https://raw.githubusercontent.com/kiselgra/chipotle/392525f14433c334f817ba71c7090fda05e41ef7/src/targets.lisp
lisp
============================================== ============================================== ============================================== targets ============================================== ============================================== ============================================== from...
(in-package :chipotle) setup (define-composition-system 3) (define-target default) (define-target cpu default) (define-target sse cpu) (define-target avx sse) (define-target cuda default) (define-target hipacc default) (define-target unsigned-char) (define-target floating-point) (define-tar...
299f1a0a0ed9ea29ad90dcb77d6f9830b11f14524c5482fa3575b4f70b7121ef
fujita-y/ypsilon
%3a23.scm
#!nobacktrace (library (srfi :23) (export error) (import (srfi srfi-23)))
null
https://raw.githubusercontent.com/fujita-y/ypsilon/44260d99e24000f9847e79c94826c3d9b76872c2/sitelib/srfi/%253a23.scm
scheme
#!nobacktrace (library (srfi :23) (export error) (import (srfi srfi-23)))
a2ccba9246361539e847dad4e297df707fbb293d2393656b24666696f21b6868
hadolint/hadolint
DL3040Spec.hs
module Hadolint.Rule.DL3040Spec (spec) where import Data.Default import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL3040 - `dnf clean all` missing after dnf command." $ do it "no ok without dnf clean all" $ do ruleCatches "DL3040" "RUN dnf install -y mariadb-1...
null
https://raw.githubusercontent.com/hadolint/hadolint/a7bbd3dc76a4d9c3da6150052c325d7fd0271d00/test/Hadolint/Rule/DL3040Spec.hs
haskell
module Hadolint.Rule.DL3040Spec (spec) where import Data.Default import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL3040 - `dnf clean all` missing after dnf command." $ do it "no ok without dnf clean all" $ do ruleCatches "DL3040" "RUN dnf install -y mariadb-1...
8844144341bee88bf7c451ad48b729f95b071b666cf63380d0897ecc23fd7e69
LeastAuthority/haskell-magic-wormhole
MagicWormhole.hs
-- | -- Description : A Magic Wormhole client. -- Magic Wormhole is a technology for getting things from one computer to another , safely . -- -- To use it, you must -- 1 . Start a ' Rendezvous . Session ' with the Rendezvous server , to allow peers to find each other ( ' Rendezvous.runClient ' ) -- 2. Negotiat...
null
https://raw.githubusercontent.com/LeastAuthority/haskell-magic-wormhole/781f915a87b3a9ed0cb34bae662de9c8825bbeeb/src/MagicWormhole.hs
haskell
| Description : A Magic Wormhole client. To use it, you must 2. Negotiate a shared 'Messages.Nameplate' so peers can find each other on the server ('Rendezvous.allocate', 'Rendezvous.list') 3. Use the shared 'Messages.Nameplate' to 'Rendezvous.open' a shared 'Messages.Mailbox' 4. Use a secret password sh...
Magic Wormhole is a technology for getting things from one computer to another , safely . 1 . Start a ' Rendezvous . Session ' with the Rendezvous server , to allow peers to find each other ( ' Rendezvous.runClient ' ) Rather , it is used to negotiate a session key using SPAKE2 , so that each message is encry...
db91c19d8a573d1a5641bbe423629559a506140b0ea907d75bb56579390a9b74
fmthoma/vty-workshop
Motions.hs
module Pong.Motions ( mvBall , mvLPlayer, mvRPlayer , reflectBallLeft, reflectBallRight, reflectBallVertically , addSpin , resetGame ) where import Lens.Micro import Lens.Micro.Extras import Pong.Types | Moves the ball @deltaX@ units right and @deltaY@ units down . -- -- @ -- mvBall delta...
null
https://raw.githubusercontent.com/fmthoma/vty-workshop/7e39ee78e059009a3caa1c4924e4517bda428902/code/src/Pong/Motions.hs
haskell
@ mvBall deltaX deltaY @ @ mvLPlayer deltaY @ @ mvRPlayer deltaY @ | Reflects the ball at the left paddle | Reflects the ball at the right paddle | Reflects the ball at the top or bottom bound @ addSpin deltaPhi @ | Returns @newGame@ with the score from @oldGame@ @ resetGame oldGame newGame @
module Pong.Motions ( mvBall , mvLPlayer, mvRPlayer , reflectBallLeft, reflectBallRight, reflectBallVertically , addSpin , resetGame ) where import Lens.Micro import Lens.Micro.Extras import Pong.Types | Moves the ball @deltaX@ units right and @deltaY@ units down . mvBall :: Double -> Dou...
a8b604a82b6115b961773b0fb211a94f6b93935e862ace88fa7f0efb2cf99c16
dmitryvk/sbcl-win32-threads
vm.lisp
;;;; miscellaneous VM definition noise for the x86-64 This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the p...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/x86-64/vm.lisp
lisp
miscellaneous VM definition noise for the x86-64 more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. size of a native memory address register specs (in the same file) depends on compile-time e...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") the size of an INTEGER representation of a SYSTEM - AREA - POINTER , i.e. (deftype sap-int () '(unsig...
34bd3073c3b0e96a141cec3512c5ad82ab9eec19bec5c70c289d79b60bcc1af0
admich/Doors
port.lisp
Copyright ( C ) 2020 , 2021 ;;;; ;;;; 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 2.1 of the License , or ( at your option ) any later version . ;;;; ;;;; Th...
null
https://raw.githubusercontent.com/admich/Doors/322cd234ee97a281832f1fbac72377bbf3341977/port.lisp
lisp
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( C ) 2020 , 2021 version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (in-package :clim-doors) (defparameter *wm-applicatio...
102b3914ee2f61be34f6e5489f63590f10244ec4fbbfce2278f6cc8e784a5dcb
kayhide/wakame
Row.hs
# LANGUAGE UndecidableInstances # module Wakame.Row ( FIELD -- * Keyed value type and function , V (..) , Keyed , keyed -- * Row type , Row , IsRow (..) -- * Re-export from Data.SOP.NP , NP (..) ) where import Prelude import Data.Kind import Data.Proxy import Data.SOP.NP (NP (..)) import GHC....
null
https://raw.githubusercontent.com/kayhide/wakame/4d16ecf2221655300b5db588c2775cfc0b8d92cd/src/Wakame/Row.hs
haskell
* Keyed value type and function * Row type * Re-export from Data.SOP.NP | Kind of field | * Helper functions * Row type | Typeclass of converting from/to @Row@
# LANGUAGE UndecidableInstances # module Wakame.Row ( FIELD , V (..) , Keyed , keyed , Row , IsRow (..) , NP (..) ) where import Prelude import Data.Kind import Data.Proxy import Data.SOP.NP (NP (..)) import GHC.Generics import GHC.TypeLits import Wakame.Utils (Fst, Snd) type FIELD = (Symbol, Typ...
f305852e230dc2d5bd610344f003060a7dc5e5435f450c0e255f14db16dc4eee
nboldi/c-parser-in-haskell
ToSourceTree.hs
# LANGUAGE LambdaCase , DefaultSignatures , TypeOperators , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , OverlappingInstances , ScopedTypeVariables # , FlexibleInstances, OverlappingInstances, ScopedTypeVariables #-} | transforms an ADT into a ' SourceTree ' module Sourc...
null
https://raw.githubusercontent.com/nboldi/c-parser-in-haskell/1a92132e7d1b984cf93ec89d6836cc804257b57d/SourceCode/ToSourceTree.hs
haskell
| Partition collected nodes into info nodes and subnodes with the node info of the original nodes. | Creates an intermediate version of the rose tree
# LANGUAGE LambdaCase , DefaultSignatures , TypeOperators , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , OverlappingInstances , ScopedTypeVariables # , FlexibleInstances, OverlappingInstances, ScopedTypeVariables #-} | transforms an ADT into a ' SourceTree ' module Sourc...
5b4e86ed77b98cdcf18493d4910482827c5c1e66cc1ca61460b91a97bca12c59
2600hz-archive/whistle
fixtures.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 , VoIP INC %%% @doc This will run through the Quickstart Guide steps as a test of the full Crossbar %%% system and modules %%% @end Created : 13 May 2011 by < > %%%-----------------------------------------------...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/whistle_apps/apps/crossbar/src/t/fixtures.erl
erlang
------------------------------------------------------------------- @doc system and modules @end -------------------------------------------------------------------
@author < > ( C ) 2011 , VoIP INC This will run through the Quickstart Guide steps as a test of the full Crossbar Created : 13 May 2011 by < > -module(fixtures). -export([test/0]). -include_lib("eunit/include/eunit.hrl"). -include_lib("whistle/include/wh_types.hrl"). -include("fixtures.hrl"). test() -...
2f3a98b7035949b1ca1cb596bb97f00f759dd542e1c5cfa1b483fe1906f9c868
marick/specter-book-code
select_both.clj
(ns book-code.ch1.select-both (:use midje.sweet commons.clojure.core)) (defn select-both [[x & xs :as selector] structure] (cond (empty? selector) (vector structure) (keyword? x) (select-both xs (get structure x)) (fn? x) (if (x structure) (select-both xs structu...
null
https://raw.githubusercontent.com/marick/specter-book-code/e416d4ce8164084057d36d29d89b17d114d1ab28/src/book_code/ch1/select_both.clj
clojure
(ns book-code.ch1.select-both (:use midje.sweet commons.clojure.core)) (defn select-both [[x & xs :as selector] structure] (cond (empty? selector) (vector structure) (keyword? x) (select-both xs (get structure x)) (fn? x) (if (x structure) (select-both xs structu...
5bbb78b5200620d1aa5b176d48dd25ce63f883070f5c820885fef22bbe023507
aconchillo/guile-xmlrpc
base64.scm
-*- mode : scheme ; coding : utf-8 -*- Copyright © 2009 , 2010 , 2012 , 2013 , 2018 < > ;; Permission is hereby granted, free of charge, to any person obtaining a ;; copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limit...
null
https://raw.githubusercontent.com/aconchillo/guile-xmlrpc/3f346aabaeb828346bc8f6cbb52c9971f8ece7e7/xmlrpc/industria/base64.scm
scheme
coding : utf-8 -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The ab...
Copyright © 2009 , 2010 , 2012 , 2013 , 2018 < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF...
d53773f1ddf0f2efca12298d5d59c5e53e7281a3fc24e2663bb6949d8b26ce34
mlabs-haskell/hydra-demo
App.hs
module HydraRPS.App (EnqueueCommand, HeadState (..), UserCommand (..), betConstant, withApiClient, UserCredentials, mkUserCredentials) where import Cardano.Api ( AddressInEra, AlonzoEra, BuildTxWith (BuildTxWith), CollateralSupportedInEra (CollateralInAlonzoEra), ExecutionUnits (ExecutionUnits, executionMemo...
null
https://raw.githubusercontent.com/mlabs-haskell/hydra-demo/e5efebe1adbb379be293550996500ece9f6aa242/src/HydraRPS/App.hs
haskell
This is the main function to use and create an API client. It will initialise a connection with a hydra node (given the state and parameters) and accept user input and relay output from the node. that is used to place events (from the node or from the user). Accepts a callback that is passed `enqueueUserCommand` a...
module HydraRPS.App (EnqueueCommand, HeadState (..), UserCommand (..), betConstant, withApiClient, UserCredentials, mkUserCredentials) where import Cardano.Api ( AddressInEra, AlonzoEra, BuildTxWith (BuildTxWith), CollateralSupportedInEra (CollateralInAlonzoEra), ExecutionUnits (ExecutionUnits, executionMemo...
eb7f5a442592e3b231dedd9110aa9f60855ca56f52929c49fceec933d6cd8526
phantomics/seed
test-core-systems.lisp
test-core-systems.lisp (in-package #:portal.demo1) tests of the seed.generate and seed.modulate systems are run in the portal , ;; because these systems are extended as part of the portal's build process. (defvar test-sprout) (defmacro test-core-systems () `(progn (princ (format nil "~%Tests for seed.gen...
null
https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/portal.demo1/test-core-systems.lisp
lisp
because these systems are extended as part of the portal's build process. atom must be within a list to pass the displayFormatPredicate
test-core-systems.lisp (in-package #:portal.demo1) tests of the seed.generate and seed.modulate systems are run in the portal , (defvar test-sprout) (defmacro test-core-systems () `(progn (princ (format nil "~%Tests for seed.generate:~%")) (portal.demo1::sprout :test-system :system (:descript...
d73c48443f9c4eac1c743f2d9fe5647399630f749a7eeff7ff1890081ffe0e9f
alonsodomin/groot
Config.hs
{-# LANGUAGE OverloadedStrings #-} module Groot.Config ( -- Default config values defaultSectionName , defaultConfigFile , defaultCredsFile Utilities , regionFromConfig ) where import Control.Applicative import Control.Monad.IO.Class import ...
null
https://raw.githubusercontent.com/alonsodomin/groot/040215db2797bef27b1c336ea826a58ddd45f8de/src/Groot/Config.hs
haskell
# LANGUAGE OverloadedStrings # Default config values
module Groot.Config ( defaultSectionName , defaultConfigFile , defaultCredsFile Utilities , regionFromConfig ) where import Control.Applicative import Control.Monad.IO.Class import Control.Monad.Trans.Except import Data.Ini import ...
cfaee8717e286cabe265d952c9a6de8d58a7db9aa6152bb20a716a91708cd72d
monadbobo/ocaml-core
raw_clock_event.ml
open Core.Std open Import module Ivar = Raw_ivar (* Clock events start in the [Uninitialized] state just for their creation (because of cyclic types), and then are immediately marked as [Waiting] or [Happened], depending on the time. A [Waiting] event will then either [Happen] at the appropriate time, or be...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/core/lib/raw_clock_event.ml
ocaml
Clock events start in the [Uninitialized] state just for their creation (because of cyclic types), and then are immediately marked as [Waiting] or [Happened], depending on the time. A [Waiting] event will then either [Happen] at the appropriate time, or be [Aborted] prior to when it would have [Happened]. ...
open Core.Std open Import module Ivar = Raw_ivar module T = struct type 'execution_context t = { mutable state : 'execution_context state; } and 'execution_context state = | Uninitialized | Aborted | Happened | Waiting of 'execution_context waiting and 'execution_context waiting = { event : ...
b6b843492d30d461a07022df9ff8cd3d71cfbc106145b44604c32406f442f972
appcanary/crustacean
utils.clj
(ns crustacean.utils (:require [puget.printer :as puget] [potemkin.namespaces :refer [import-vars]])) (defn entity-exists? "Checks that an entity returned by d/pull actually exists" [entity] (when (:db/id entity) entity)) ;; only used in norm-keys (defn normalize [k] (if (= (first (name k)...
null
https://raw.githubusercontent.com/appcanary/crustacean/63a084e8c6bcd1db3cf57a77d5cab6092e322732/src/crustacean/utils.clj
clojure
only used in norm-keys see below TODO: we use this in canary artifact, otherwise dead code
(ns crustacean.utils (:require [puget.printer :as puget] [potemkin.namespaces :refer [import-vars]])) (defn entity-exists? "Checks that an entity returned by d/pull actually exists" [entity] (when (:db/id entity) entity)) (defn normalize [k] (if (= (first (name k)) \_) (keyword (namesp...
4ca40df3f56ee2f2b0bca985d77962edfe24b4974862fca8928578b77d20895c
camllight/camllight
ouster-f17.3.ml
#open "tk";; let top = OpenTk() in let ok = button__create top [Text "OK"] and cancel = button__create top [Text "Cancel"] and help = button__create top [Text "Help"] in pack [ok; cancel; help] [Side Side_Left]; let act = let cnter = ref 0 in function _ -> incr cnter; match !c...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/camltk/books-examples/ouster-f17.3.ml
ocaml
#open "tk";; let top = OpenTk() in let ok = button__create top [Text "OK"] and cancel = button__create top [Text "Cancel"] and help = button__create top [Text "Help"] in pack [ok; cancel; help] [Side Side_Left]; let act = let cnter = ref 0 in function _ -> incr cnter; match !c...
3d30f8772479b3332b7afc76c699f7fd543c199011ff13031ab56f6c4db9d223
Denommus/monadic
list.ml
module MakeT (Wrapped : Monad.MONAD) = struct module WrappedInfix = Monad.MonadInfix (Wrapped) open WrappedInfix.Syntax module ListMonadPlus : Monad.MONAD_PLUS with type 'a t = 'a list Wrapped.t = struct type 'a t = 'a list Wrapped.t let pure v = [ v ] |> Wrapped.pure let map f x = let+ v =...
null
https://raw.githubusercontent.com/Denommus/monadic/7cbf9b309800303665a6712a9b57c1d9c66e75b8/library/list.ml
ocaml
module MakeT (Wrapped : Monad.MONAD) = struct module WrappedInfix = Monad.MonadInfix (Wrapped) open WrappedInfix.Syntax module ListMonadPlus : Monad.MONAD_PLUS with type 'a t = 'a list Wrapped.t = struct type 'a t = 'a list Wrapped.t let pure v = [ v ] |> Wrapped.pure let map f x = let+ v =...
0c3629d4886a2944e86ba6bc2a8c27358fe6569e1daf4e4f0663095523d6e212
diffusionkinetics/open
GapminderScatterplot.hs
module Main where import Dashdo.Examples.GapminderScatterplot main = gapMinderScatterPlot
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/dashdo-examples/exe/GapminderScatterplot.hs
haskell
module Main where import Dashdo.Examples.GapminderScatterplot main = gapMinderScatterPlot
94f2fdfb0a9be7b46e2b246961656b88b3705af3aa77f39aa802743c616b0dad
pepeiborra/arrowp
BackstateArrow.hs
# LANGUAGE QuasiQuotes # module TH.BackstateArrow where import Control.Arrow import Control.Arrow.QuasiQuoter import Control.Category import Prelude hiding (id, (.)) -- Generalizing the backwards state transformer monad mentioned in 's " The Essence of Func...
null
https://raw.githubusercontent.com/pepeiborra/arrowp/34ce776d4116468c250f20b85f7967f1856384e5/examples/TH/BackstateArrow.hs
haskell
Generalizing the backwards state transformer monad mentioned
# LANGUAGE QuasiQuotes # module TH.BackstateArrow where import Control.Arrow import Control.Arrow.QuasiQuoter import Control.Category import Prelude hiding (id, (.)) in 's " The Essence of Functional Programming " newtype BackStateArrow s a b c = BST (a (b...
d104a355ec017d838ba4de7ea0a63a62903a72a520c8cefdbb88ed4735d87a35
dongcarl/guix
shadow.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 < > Copyright © 2016 < > Copyright © 2020 Jan ( janneke ) Nieuwenhuizen < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistr...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/system/shadow.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 < > Copyright © 2016 < > Copyright © 2020 Jan ( janneke ) Nieuwenhuizen < > Copyright © 2020 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License a...
a570507bb36f230f630c8930daab3db2bee8e633fdbbf53b75e4c2f3eae07610
elukey/ErlangTW
runner.erl
% % This file is part of ErlangTW. ErlangTW 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 2 . % % This program is distributed in the hope that it will be useful, but WITHOUT % ANY WARRANTY; without...
null
https://raw.githubusercontent.com/elukey/ErlangTW/1ac00f179ee761c5a0c7512815b7a6b792614b79/src/runner.erl
erlang
This file is part of ErlangTW. ErlangTW is free software: you can redistribute it and/or modify it under the terms of the GNU General Public 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 ...
License as published by the Free Software Foundation , version 2 . You should have received a copy of the GNU General Public License along with this program ; if not , write to the Free Software Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA . Copyright 2012 , , , Computer Sci...
e82d80ba4569a426232e8597ec7b7d8208cd8bf417da2ba9731b93c8d5150901
engineyard/natter
natter_connection.erl
Copyright 2008 , Engine Yard , Inc. % % This file is part of Natter. % % Natter is free software: you can redistribute it and/or modify it under the % terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any % later ver...
null
https://raw.githubusercontent.com/engineyard/natter/ad9d0896057f459715ae83884f8cac48737e5838/src/natter_connection.erl
erlang
This file is part of Natter. Natter 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 later version. Natter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty o...
Copyright 2008 , Engine Yard , Inc. Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Lesser General Public License along with . If not , see < / > . -module(natter_connection). -author(""). -behaviour(supervisor). -include("types...
a749bbe9bbb22e09e70e1f65bfa943d2ca6794c5ee4721fb6055e9689de122f1
haskell-servant/servant
ContentTypesSpec.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE PackageImports #-} # LANGUAGE PolyKinds # # OPTIONS_GHC -fno - warn - orphans # module Servant.API....
null
https://raw.githubusercontent.com/haskell-servant/servant/036102af58c54d2237dfd6331dcc845e3f4b8f47/servant/test/Servant/API/ContentTypesSpec.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE PackageImports # The Left messages differ, so convert to Maybe To test multiple content types
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PolyKinds # # OPTIONS_GHC -fno - warn - orphans # module Servant.API.ContentTypesSpec where import Prelude () import Prelude.Compat import Data.Aeson (FromJSON, ToJSON (..), Va...
03bfcde8c2e44112fa79d3b92624f469dbbe451411fc04e2ccef706d3ddf2bb5
thheller/shadow-cljs
js_interop_test.cljs
(ns test.js-interop-test (:require [cljs.test :refer (deftest is)] ["./cjs.js" :as cjs] ["./es6.js" :as es6 :default es6-default] ["./es6.js$default" :as es6-default-sugar] ["./es6.js$nested.extra" :refer (bar)] ["./es6.js$nested.extra.bar" :as bar-direct] ["./converted-esm.js" :as convert...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/8169e663c0338ab01b31726b0cfcd7005563c581/test-project/src/main/test/js_interop_test.cljs
clojure
this fails, unsure what to do about this -cljs/issues/894 accessing a const from other import fails because const in eval has its own scope and other evals can't see it
(ns test.js-interop-test (:require [cljs.test :refer (deftest is)] ["./cjs.js" :as cjs] ["./es6.js" :as es6 :default es6-default] ["./es6.js$default" :as es6-default-sugar] ["./es6.js$nested.extra" :refer (bar)] ["./es6.js$nested.extra.bar" :as bar-direct] ["./converted-esm.js" :as convert...
36b8f4e9e2d19cd5f2857bbc62129e34e2683cba2c3f157e8d638cdc264928be
yuriy-chumak/ol
vectors.scm
(define (f x) (* x x)) (define y 7) (print []) (print [1]) (print [1 2 3]) (print [1 y 3]) (print [1 [2 3] 4]) (print [1 (f 3) 4]) (print [1 '(2 3) 4]) (print '[]) (print '[1]) (print '[1 2 3]) (print '[1 y 3]) (print '[1 [2 3] 4]) (print '[1 (f 3) 4]) (print '[1 '(2 3) 4]) (print `[]) (print `[1]) (print `[1 2 3]) ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/tests/vectors.scm
scheme
(define (f x) (* x x)) (define y 7) (print []) (print [1]) (print [1 2 3]) (print [1 y 3]) (print [1 [2 3] 4]) (print [1 (f 3) 4]) (print [1 '(2 3) 4]) (print '[]) (print '[1]) (print '[1 2 3]) (print '[1 y 3]) (print '[1 [2 3] 4]) (print '[1 (f 3) 4]) (print '[1 '(2 3) 4]) (print `[]) (print `[1]) (print `[1 2 3]) ...
ca7c6e0d2cb3170caaca77eb89fbe980d940da576958f612e056d001dd1d1c6e
ml4tp/tcoq
tactic_matching.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/tactics/tactic_matching.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * [match_term env sigma term rules] ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file extends Matching ...
6e7431e64bb4a66a53105144fb8dcc5a4c595fee78b0bc7e3cb2af21cb08e413
alexandergunnarson/quantum
bank_card.cljc
(ns quantum.validate.bank-card) ; (def NONE 0) ( def AMEX ( < < 1 0 ) ) ( def VISA ( < < 1 1 ) ) ( def MASTERCARD ( < < 1 2 ) ) ( def DISCOVER ( < < 1 3 ) ) ( def DINERS ( < < 1 4 ) ) ( def VPAY ( < < 1 5 ) ) ; (def card-types (atom [])) ( def LUHN_VALIDATOR nil # _ ( ...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/validate/bank_card.cljc
clojure
(def NONE 0) (def card-types (atom [])) TODO add (def AMEX_VALIDATOR (def DINERS_VALIDATOR (def DISCOVER_REGEX (RegexValidator. (def DISCOVER_VALIDATOR (def MASTERCARD_VALIDATOR (def VPAY_VALIDATOR "Create a new CreditCardValidator with default options." [] "Create a new CreditCardValidator wi...
(ns quantum.validate.bank-card) ( def AMEX ( < < 1 0 ) ) ( def VISA ( < < 1 1 ) ) ( def MASTERCARD ( < < 1 2 ) ) ( def DISCOVER ( < < 1 3 ) ) ( def DINERS ( < < 1 4 ) ) ( def VPAY ( < < 1 5 ) ) ( CodeValidator . " ^(3[47]\\\\d{13})$ " LUHN_VALIDATOR ) ) ( CodeValidat...
c50447848a273198d97ce324c12aea510445ce0d0349e9549ee319f8358e05b6
khafatech/rsc3
rsc3-sine-play.rkt
#lang racket (require rsc3) start udp SuperCollider server with : -u 57110 (with-sc3 (lambda (fd) (send fd (g-new1 1 add-to-tail 0)))) ;; play sin wave (audition (out 0 (mul (sin-osc ar 440 0) 0.1))) ;; reset ; (with-sc3 reset)
null
https://raw.githubusercontent.com/khafatech/rsc3/a25985dab29ad951893cd7afa6d86a9371315871/rsc3/examples/rsc3-sine-play.rkt
racket
play sin wave reset (with-sc3 reset)
#lang racket (require rsc3) start udp SuperCollider server with : -u 57110 (with-sc3 (lambda (fd) (send fd (g-new1 1 add-to-tail 0)))) (audition (out 0 (mul (sin-osc ar 440 0) 0.1)))
e705886cb0baaf9477f0a76854cbfda6116ff408801f1faa809a4a2e46196839
schemeorg-community/index.scheme.org
srfi.160.u8.scm
(((name . "make-u8vector") (signature case-lambda (((integer? size)) u8vector?) (((integer? size) (u8? fill)) u8vector?)) (tags pure)) ((name . "u8vector") (signature lambda ((u8? value) ...) u8vector?) (tags pure)) ((name . "u8?") (signature lambda (obj) boolean?) (tags pure predicate) (supert...
null
https://raw.githubusercontent.com/schemeorg-community/index.scheme.org/32e1afcfe423a158ac8ce014f5c0b8399d12a1ea/types/srfi.160.u8.scm
scheme
(((name . "make-u8vector") (signature case-lambda (((integer? size)) u8vector?) (((integer? size) (u8? fill)) u8vector?)) (tags pure)) ((name . "u8vector") (signature lambda ((u8? value) ...) u8vector?) (tags pure)) ((name . "u8?") (signature lambda (obj) boolean?) (tags pure predicate) (supert...
24e49ab53ece7d30e7028909033d0fb70e80bccc39f7c2d1b3851108b60ec7e9
GlideAngle/flare-timing
TestNewtypes.hs
module TestNewtypes where -- NOTE: Avoid orphan instance warnings with these newtypes. import Data.Ratio ((%)) import Test.SmallCheck.Series as SC import Test.Tasty.QuickCheck as QC import Data.UnitsOfMeasure.Internal (Quantity(..)) import Test.QuickCheck.Instances () import "flight-gap-math" Flight.Score (Hg, Pg) i...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/gap-stop/test-suite-stop/TestNewtypes.hs
haskell
NOTE: Avoid orphan instance warnings with these newtypes. | Stopped time from announced time. | Can score a stopped task. | Stopped task, score time window. | Stopped task, apply glide.
module TestNewtypes where import Data.Ratio ((%)) import Test.SmallCheck.Series as SC import Test.Tasty.QuickCheck as QC import Data.UnitsOfMeasure.Internal (Quantity(..)) import Test.QuickCheck.Instances () import "flight-gap-math" Flight.Score (Hg, Pg) import "flight-gap-lead" Flight.Score (TaskTime(..)) import "f...
7412aeee86ffca7814608e5d8c94db5c3fe84256be4e958596f784b1e14daffd
moby/datakit
cI_term.ml
open Datakit_github module Conv = Datakit_github_conv.Make (CI_utils.DK) module Metrics = struct let namespace = "DataKitCI" let subsystem = "term" let evals = let help = "Number of term evaluations" in Prometheus.Counter.v ~help ~namespace ~subsystem "evals_total" end module Context = struct (* The...
null
https://raw.githubusercontent.com/moby/datakit/e047e55a2dfa3aaec02398d7d7699f4f7afd2b47/ci/src/cI_term.ml
ocaml
The context in which a term is evaluated. We create a fresh context each time the term is evaluated. Call this to schedule a recalculation. When [ready] is done, call the then-current [recalc] function.
open Datakit_github module Conv = Datakit_github_conv.Make (CI_utils.DK) module Metrics = struct let namespace = "DataKitCI" let subsystem = "term" let evals = let help = "Number of term evaluations" in Prometheus.Counter.v ~help ~namespace ~subsystem "evals_total" end module Context = struct type t...
5340177b12fca2b46613736118caace86ff7bbde3cb13729e3178147b6506452
HugoDaniel/timerep
RFC3339.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeSynonymInstances #-} -- | -- Module : Data.Time.RFC3339 Copyright : ( c ) 2011 Hugo -- -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : GHC -- -- Support for reading and displa...
null
https://raw.githubusercontent.com/HugoDaniel/timerep/aeb792b7ec701634016021b188e01091e9bd10df/Data/Time/RFC3339.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeSynonymInstances # | Module : Data.Time.RFC3339 License : BSD-style Maintainer : Stability : experimental Support for reading and displaying time in the format specified by the RFC3339 <> Example of usage: > import Data.Time.LocalTime > > show...
# LANGUAGE FlexibleInstances # Copyright : ( c ) 2011 Hugo Portability : GHC > example1 = " 1985 - 04 - 12T23:20:50.52Z " > example2 = " 1996 - 12 - 19T16:39:57 - 08:00 " > example3 = " 1990 - 12 - 31T23:59:60Z " > example4 = " 1990 - 12 - 31T15:59:60 - 08:00 " > example5 = " 1937 - 01 - 01T12:00...
3c424c9d40163244448b3b5eef55058a672b806c29b4991d229c911ad7084302
namin/biohacker
finter.lisp
;; -*- Mode: Lisp; -*- Interface and toplevel definitions for the Fast Tiny Rule Engine Modified : forbus on Tue Apr 2 10:16:22 1996 Copyright ( c ) 1986 - 1992 , , Northwestern University , and , the Xerox Corporation . ;;; All rights reserved. ;;; See the file legal.txt for a paragraph stating sco...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/ftre/finter.lisp
lisp
-*- Mode: Lisp; -*- All rights reserved. See the file legal.txt for a paragraph stating scope of permission and disclaimer of warranty. The above copyright notice and that paragraph must be included in any separate copy of this file. Global default Evaluating code in a context Context introduction mechanis...
Interface and toplevel definitions for the Fast Tiny Rule Engine Modified : forbus on Tue Apr 2 10:16:22 1996 Copyright ( c ) 1986 - 1992 , , Northwestern University , and , the Xerox Corporation . (in-package :COMMON-LISP-USER) (defstruct (ftre (:PRINT-FUNCTION ftre-printer)) title (dbclass-ta...
8dc30c27a1d224967d6e81e60329f6b15ae0f387a318e7ffaa8f9223cc5fef3c
UCSD-PL/refscript
SSA.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TupleSections # module Language.Rsc.SSA.SSA (ssaTransform) where import Control.Monad import Data.Default import...
null
https://raw.githubusercontent.com/UCSD-PL/refscript/884306fef72248ac41ecdbb928bbd7b06ca71bd4/src/Language/Rsc/SSA/SSA.hs
haskell
# LANGUAGE ConstraintKinds # import qualified Data.Foldable as FO import Debug.Trace hiding (traceShow) -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ...
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE TupleSections # module Language.Rsc.SSA.SSA (ssaTransform) where import Control.Monad import Data.Default import Data.Function (on...
1fe1909ac73643bbbc88c060226964deee7bc48df168dd0dcadbd074f9d717b2
huangjs/cl
icamax.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l ,...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/share/lapack/blas/icamax.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 1.215 2009/04/07 22:05:21 rtoy Exp $ " " f2cl2.l , v 1.37 2008/02/22 22:19:33 rtoy Exp $ " " f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Exp $ " " f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Exp $ " " f2cl5.l , v 1.200 2009/01/19 02:38:17 rtoy Exp $ " " f2cl6.l , v 1.48 2008/08/24 00:56:27 rt...
43c05eaf5a6129ba5468c18b6bee2864703c36add093769a49dcb3b1bf72d6c0
ocaml-community/obus
test_validation.ml
* test_validation.ml * ------------------ * Copyright : ( c ) 2009 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * test_validation.ml * ------------------ * Copyright : (c) 2009, Jeremie Dimino <> * Licence : BSD3 * * This file is a part...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/tests/test_validation.ml
ocaml
* test_validation.ml * ------------------ * Copyright : ( c ) 2009 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * test_validation.ml * ------------------ * Copyright : (c) 2009, Jeremie Dimino <> * Licence : BSD3 * * This file is a part...
247ed0ce92df9076950313bf3df388ec082f9e21e82505728532d297fd743b7a
dharmatech/abstracting
source.scm
(define (make-eq-hashtable) (make-table test: eq?)) (define (make-hashtable hash-function equiv) (make-table hash: hash-function test: equiv)) (define hashtable-size table-length) (define hashtable-ref table-ref) (define hashtable-set! table-set!) (define (hashtable-delete! tbl key) (table-set! t...
null
https://raw.githubusercontent.com/dharmatech/abstracting/9dc5d9f45a9de03c6ee379f1928ebb393dfafc52/src/r6rs-hashtable/gambit/source.scm
scheme
(define (make-eq-hashtable) (make-table test: eq?)) (define (make-hashtable hash-function equiv) (make-table hash: hash-function test: equiv)) (define hashtable-size table-length) (define hashtable-ref table-ref) (define hashtable-set! table-set!) (define (hashtable-delete! tbl key) (table-set! t...
c72eb0b90eef258ed9874c3f34c535875b2a4dd5c4a8d28696b9f2b1073e7899
jtdaugherty/tracy
BenchMain.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE FlexibleInstances # module Main where import Criterion.Main import Control.DeepSeq (NFData(..)) import Control.Lens import Data.Monoid (mconcat) import qualified Data.Vector as V import Data.Colour import Linear (V3(V3)) import System.Random.MWC import Tracy.Types impo...
null
https://raw.githubusercontent.com/jtdaugherty/tracy/ad36ea16a3b9cda5071ca72374d6e1c1b415d520/programs/BenchMain.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE FlexibleInstances # module Main where import Criterion.Main import Control.DeepSeq (NFData(..)) import Control.Lens import Data.Monoid (mconcat) import qualified Data.Vector as V import Data.Colour import Linear (V3(V3)) import System.Random.MWC import Tracy.Types impo...
3c264f8191274fedc40c39974e3e7c34efe56c7187296ca26b4fa5577bb9faf0
etnt/gettext
gettext_validate_bad_stxt.erl
%% -*- coding: latin-1 -*- %% ------------------------------------------------------------------------- %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including %...
null
https://raw.githubusercontent.com/etnt/gettext/9ab211734cf59415617b47c06f77504dd442b40f/src/gettext_validate_bad_stxt.erl
erlang
-*- coding: latin-1 -*- ------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, following cond...
" Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to the in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " ,...
e8c8cf5a9e9d21ea3ac6b5faf48e6737066e831818676dafb5c1f1e1ad3b4168
joinr/spork
math3d.clj
A library for math operations performed in 3dimensional real space , ;;using homogeneous coordinates. (ns spork.geometry.math3d (:require [spork.util.vectors :refer :all] [spork.util [vecmath :as math]])) (defprotocol IMatrix3D) (defprotocol I3D (transform-3d [obj trans])) patterned off of a xna - sty...
null
https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/obe/geometry/math3d.clj
clojure
using homogeneous coordinates. if we have homogenous coordinates, our basis changes. an orthonormal set of basis vectors.
A library for math operations performed in 3dimensional real space , (ns spork.geometry.math3d (:require [spork.util.vectors :refer :all] [spork.util [vecmath :as math]])) (defprotocol IMatrix3D) (defprotocol I3D (transform-3d [obj trans])) patterned off of a xna - style math operations . (defprot...
5c6de7eb76245ef663199ff6f14bab286def493d664ae174aaacc175aeeb770a
marigold-dev/openapi-router
router.ml
open Core open Base.Poly let rewrite_path p = let components = String.split ~on:'/' p in let named_params = List.filter_map ~f:(String.chop_prefix ~prefix:"s") components in let max_anon = List.fold ~init:(-1) named_params ~f:(fun i s -> try Scanf.sscanf s "anon%d" (fun d -> if d > i then d els...
null
https://raw.githubusercontent.com/marigold-dev/openapi-router/941eb46176482aa931ac2dbe53f082b20d12fc8b/lib/router.ml
ocaml
open Core open Base.Poly let rewrite_path p = let components = String.split ~on:'/' p in let named_params = List.filter_map ~f:(String.chop_prefix ~prefix:"s") components in let max_anon = List.fold ~init:(-1) named_params ~f:(fun i s -> try Scanf.sscanf s "anon%d" (fun d -> if d > i then d els...
5053c049e73c8fca67db304d35201df39c47888eaedbb6fa1f7bef8be0ff5079
arttuka/reagent-material-ui
use_listbox.cljs
(ns reagent-mui.base.use-listbox "Imports @mui/base/useListbox as a React hook. Note: React hooks can't be used in regular Reagent components: -alpha2/doc/tutorials/react-features#hooks Original documentation is at -listbox/ ." (:require [reagent-mui.util :refer [wrap-js-function]] ["@mui/base/use...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/4fc4b44891919d2b84160eb411d52227dd89e0a5/src/core/reagent_mui/base/use_listbox.cljs
clojure
(ns reagent-mui.base.use-listbox "Imports @mui/base/useListbox as a React hook. Note: React hooks can't be used in regular Reagent components: -alpha2/doc/tutorials/react-features#hooks Original documentation is at -listbox/ ." (:require [reagent-mui.util :refer [wrap-js-function]] ["@mui/base/use...
512220415d89ef1c56eb4eeb0fe6f391f7a807650243b63c106fa6d16ed23fba
abakst/Brisk
rewrite2.hs
module Rewrite2 where < - m],Σ , D , x : ( ) = = > G , Σ , D;x:=m , skip p*:Fresh , G , Σ(P ) |- D;havoc(A ) ~~ > A(p * ) --------------------------------------- G , Σ |- for ( p :P ) do A(p ) end --------------------------------------- G , Π(p : P\p*).s(p ) |- A || s(p * ) ~~ > D G...
null
https://raw.githubusercontent.com/abakst/Brisk/3e4ce790a742d3e3b786dba45d36f715ea0e61ef/examples/rewrite2.hs
haskell
------------------------------------- ------------------------------------- ------------------------------------- -------------------------------------
module Rewrite2 where < - m],Σ , D , x : ( ) = = > G , Σ , D;x:=m , skip p*:Fresh , G , Σ(P ) |- D;havoc(A ) ~~ > A(p * ) G , Σ |- for ( p :P ) do A(p ) end G , Π(p : P\p*).s(p ) |- A || s(p * ) ~~ > D G[x <- m],Σ,D,x := recv() ==> G,Σ,D;x:=m,skip p*:Fresh,G,Σ(P) |- D;havoc(A) ~~> A(p*...
20b4ee7cb81d71bd282db7f1717a4be3aebfb67f21329c6cc45511ca843d4a61
timbod7/haskell-chart
Drawing.hs
----------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.Chart.Drawing Copyright : ( c ) 2006 , 2014 -- License : BSD-style (see chart/COPYRIGHT) -- -- This module contains basic types and functions used for drawing. -- Note that is used t...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/5768e1fa8b4f7b9ecc812404961cf024017b9369/chart/Graphics/Rendering/Chart/Drawing.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.Rendering.Chart.Drawing License : BSD-style (see chart/COPYRIGHT) This module contains basic types and functions used for drawing. (see 'Control.Lens') for each field of the following data types: * 'Po...
Copyright : ( c ) 2006 , 2014 Note that is used to derive accessor functions dropped . Hence for data field @f_::F@ in type @D@ , they have type # LANGUAGE TemplateHaskell # module Graphics.Rendering.Chart.Drawing PointShape(..) , PointStyle(..) , drawPoint , alignPath , alignFillPath , ...
f5d7f95911e397925f14b0e708b1573d72e174387b7274791d07ff3578b0ee6e
mhuebert/inside-out
test_notebook.cljc
^{:nextjournal.clerk/visibility {:code :hide :result :hide}} (ns inside-out.test-notebook (:require [nextjournal.clerk :as-alias clerk] [mhuebert.clerk-cljs :refer [show-cljs]] [inside-out.forms :as forms] [inside-out.reagent :refer [with-form]] [re-db.react :refer [use...
null
https://raw.githubusercontent.com/mhuebert/inside-out/f38b49e8b8f8242d2c0112932e11300ddb2bc47a/dev/inside_out/test_notebook.cljc
clojure
^{:nextjournal.clerk/visibility {:code :hide :result :hide}} (ns inside-out.test-notebook (:require [nextjournal.clerk :as-alias clerk] [mhuebert.clerk-cljs :refer [show-cljs]] [inside-out.forms :as forms] [inside-out.reagent :refer [with-form]] [re-db.react :refer [use...
eeb1f64d140b9a6ec67e89a24e1247f4ff7314d7433c4c43137a8621fd640d52
hammerlab/ppx_deriving_cmdliner
ppx_deriving_cmdliner.ml
open Ppxlib open Ast_helper module Ast_builder_default_loc = struct include Ppx_deriving.Ast_convenience let gen_def_loc f x = let loc = !Ast_helper.default_loc in f ~loc x let lid = gen_def_loc Ast_builder.Default.Located.lident let list = gen_def_loc Ast_builder.Default.elist let pstr = gen_def_l...
null
https://raw.githubusercontent.com/hammerlab/ppx_deriving_cmdliner/2a52f916e2ab1d28a48861e25920f1238fdf9b2a/src/ppx_deriving_cmdliner.ml
ocaml
^ Print inside a pretty box to ignore raw new lines in comments. The let binding sometimes ends up with a useless `rec`: nothing to do, since the constructor must be handled in original constructor declaration
open Ppxlib open Ast_helper module Ast_builder_default_loc = struct include Ppx_deriving.Ast_convenience let gen_def_loc f x = let loc = !Ast_helper.default_loc in f ~loc x let lid = gen_def_loc Ast_builder.Default.Located.lident let list = gen_def_loc Ast_builder.Default.elist let pstr = gen_def_l...
2a8c452274349281fc5288ff17af0c3a65f5eff6858d64841a585e9c9395d53e
GlideAngle/flare-timing
TaskZones.hs
module Flight.Zone.TaskZones ( StartGates(..) , Task(..) , TaskZones(..) , ToZoneKind , ToOpenZoneKind , raceZoneKinds , openZoneKinds ) where import Data.Maybe (isNothing) import Data.Foldable (asum) import Data.Aeson ( ToJSON(..), FromJSON(..), (.:), (.=) , object, withObject ...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/zone/library/Flight/Zone/TaskZones.hs
haskell
^ prolog ^ race ^ goal ^ prolog ^ race ^ race end ^ epilog ^ goal ^ prolog ^ mandatory ^ free ^ prolog ^ race ^ race end, if separate from goal ^ epilog ^ goal NOTE: Have not consumed all of the raw control zones. ^ prolog ^ mandatory ^ open NOTE: Have not consumed all of the raw control zones. | ...
module Flight.Zone.TaskZones ( StartGates(..) , Task(..) , TaskZones(..) , ToZoneKind , ToOpenZoneKind , raceZoneKinds , openZoneKinds ) where import Data.Maybe (isNothing) import Data.Foldable (asum) import Data.Aeson ( ToJSON(..), FromJSON(..), (.:), (.=) , object, withObject ...
69665bafbaca899a112f2d1bb27fde414a092eff4dcfb0b9d099eaad1af53ee4
astampoulis/makam
termlangbuiltin.ml
The metalanguage -- a tool for rapid language prototyping Copyright ( C ) 2011- This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option...
null
https://raw.githubusercontent.com/astampoulis/makam/bf7ed7592c21e0439484d7464e659eca5be3b2f9/termlang/termlangbuiltin.ml
ocaml
The metalanguage -- a tool for rapid language prototyping Copyright ( C ) 2011- This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option...