_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
8569011d2d1a3b68c30db3d0d966686f011738b707289a543057345a75e9a76b
adomokos/haskell-katas
Ex49_MonadsCalculateBirthYearSpec.hs
module Solutions.Ex49_MonadsCalculateBirthYearSpec ( spec ) where import Test.Hspec import Text.Read (readMaybe) Calculate how old will someone be by the year 2020 Use just ` read ` to convert String - > Int Calculate how old will someone be by the year 2020 Use just `read` to convert String...
null
https://raw.githubusercontent.com/adomokos/haskell-katas/be06d23192e6aca4297814455247fc74814ccbf1/test/Solutions/Ex49_MonadsCalculateBirthYearSpec.hs
haskell
when nothing - "Provided invalid year" calls yearToAge for real value calculateAge should use case of
module Solutions.Ex49_MonadsCalculateBirthYearSpec ( spec ) where import Test.Hspec import Text.Read (readMaybe) Calculate how old will someone be by the year 2020 Use just ` read ` to convert String - > Int Calculate how old will someone be by the year 2020 Use just `read` to convert String...
3c16c1918db44de7c034648e76bf2776f612955638902107b51947c614b6ba1e
ocaml-multicore/ocaml-tsan
finaliser_handover.ml
(* TEST *) ocaml - multicore issues 528 and 468 let tree_size = try int_of_string Sys.argv.(1) with _ -> 9 let iterations = try int_of_string Sys.argv.(2) with _ -> 10 let num_domains = try int_of_string Sys.argv.(3) with _ -> 4 type 'a tree = Empty | Node of 'a tree * 'a tree let rec make d = if d = 0 then Nod...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/f54002470cc6ab780963cc81b11a85a820a40819/testsuite/tests/weak-ephe-final/finaliser_handover.ml
ocaml
TEST
ocaml - multicore issues 528 and 468 let tree_size = try int_of_string Sys.argv.(1) with _ -> 9 let iterations = try int_of_string Sys.argv.(2) with _ -> 10 let num_domains = try int_of_string Sys.argv.(3) with _ -> 4 type 'a tree = Empty | Node of 'a tree * 'a tree let rec make d = if d = 0 then Node(Empty, Em...
54c5202c6ee61c74fa527a6b2745e1a5a93ad556c4c80e5fcb611f89183e8726
mwand/eopl3
unifier.scm
(module unifier (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "substitutions.scm") ;; this provides a new view of substitutions, in which unifier ;; replaces extend-env as a constructor. (provide unifier substitution? empty-subst apply...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter7/inferred/unifier.scm
scheme
this provides a new view of substitutions, in which unifier replaces extend-env as a constructor. we'll maintain the invariant that no variable bound in the substitution occurs in any of the right-hand sides of the substitution. the unifier ;;;;;;;;;;;;;;;; unifier : Type * Type * Subst * Exp -> Subst OR Fails ...
(module unifier (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "substitutions.scm") (provide unifier substitution? empty-subst apply-subst-to-type) Page : 264 (define unifier (lambda (ty1 ty2 subst exp) (let ((ty1 (apply-s...
324606e4dd51ea420ac76a9ba5f1a092a3f921d52dcefb9462f536c80302bb51
rd--/hsc3
combC.help.hs
combC ; c.f . combN let n = whiteNoiseId 'α' ar * 0.02 dt = xLine kr 0.0001 0.01 20 RemoveSynth in combC n 0.01 dt 0.2 -- combC ; with negative feedback let n = whiteNoiseId 'α' ar * 0.02 dt = xLine kr 0.0001 0.01 20 RemoveSynth in combC n 0.01 dt (-0.2) -- combC ; as an echo let d = dustId 'α' ar 1 n =...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/combC.help.hs
haskell
combC ; with negative feedback combC ; as an echo
combC ; c.f . combN let n = whiteNoiseId 'α' ar * 0.02 dt = xLine kr 0.0001 0.01 20 RemoveSynth in combC n 0.01 dt 0.2 let n = whiteNoiseId 'α' ar * 0.02 dt = xLine kr 0.0001 0.01 20 RemoveSynth in combC n 0.01 dt (-0.2) let d = dustId 'α' ar 1 n = whiteNoiseId 'β' ar * 0.1 i = decay d 0.2 * n in co...
c4ceda35a3382208a901ba2847fd35f73dfec2c968041fd3089ed833b2b12c13
dpom/clj-duckling
edn.clj
(ns clj-duckling.engine.edn "The edn format rules engine" (:require [integrant.core :as ig] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.edn :as edn] [clojure.string :as str] [duct.logger :refer [log Logger]] [nlpcore.protocols :as core] [nlpcore.spec :as nsp] [clj-ducklin...
null
https://raw.githubusercontent.com/dpom/clj-duckling/8728f9a99b4b002e9ce2ea62b3a82a61b0cdac06/src/clj_duckling/engine/edn.clj
clojure
Lookup and basic matching functions, used by patterns in rules FIXME brute force approach that could be improved! note that position is ignored at this point, adjacent? will need to do the job this fn does not do much and could be avoided... but might be more complex later Rules parsing (println (format "rule-rea...
(ns clj-duckling.engine.edn "The edn format rules engine" (:require [integrant.core :as ig] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.edn :as edn] [clojure.string :as str] [duct.logger :refer [log Logger]] [nlpcore.protocols :as core] [nlpcore.spec :as nsp] [clj-ducklin...
b51e550b1904d09bac70321f5aaa81d2e6fd4ba0ad3b6b09dd3d38af080e5c32
clojurecup2014/parade-route
repl.clj
(ns unity.repl (:refer-clojure :exclude [with-bindings]) (:require [clojure.main :as main]) (:import [UnityEngine Debug] [System.IO EndOfStreamException] [System.Collections Queue] [System.Net IPEndPoint IPAddress] [System.Net.Sockets UdpClient] [System.Threading Thread ThreadStart] [S...
null
https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Libraries/unity/repl.clj
clojure
need some stuff in here about read-eval maybe not sure about this
(ns unity.repl (:refer-clojure :exclude [with-bindings]) (:require [clojure.main :as main]) (:import [UnityEngine Debug] [System.IO EndOfStreamException] [System.Collections Queue] [System.Net IPEndPoint IPAddress] [System.Net.Sockets UdpClient] [System.Threading Thread ThreadStart] [S...
b280b9d3e1cc1461e2c96983052a43bd3ac4f7668d5ae9c25c6e84c2587d434e
tcsprojects/pgsolver
basics.ml
let message_ch = ref stdout Verbosity levels : 0 = quiet , no messages at all * 1 = normal , result and timing information * 2 = alert , some more statistics * 3 = debug , swamp the user * 1 = normal, result and timing information ...
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/pgsolver/basics.ml
ocaml
let message_ch = ref stdout Verbosity levels : 0 = quiet , no messages at all * 1 = normal , result and timing information * 2 = alert , some more statistics * 3 = debug , swamp the user * 1 = normal, result and timing information ...
680f438d74bbc30a1eab33ba30677879dc278467d4511cba5ed8f96538b2d5fa
footprintanalytics/footprint-web
permissions_test.clj
(ns metabase.query-processor.middleware.permissions-test "Tests for the middleware that checks whether the current user has permissions to run a given query." (:require [clojure.test :refer :all] [metabase.api.common :as api] [metabase.models :refer [Card Collection Database Table]] ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/query_processor/middleware/permissions_test.clj
clojure
query should be returned by middleware unchanged query should be returned by middleware unchanged query should be returned by middleware unchanged query should be returned by middleware unchanged query should be returned by middleware unchanged Since the collection derives from the root collection this grant shou...
(ns metabase.query-processor.middleware.permissions-test "Tests for the middleware that checks whether the current user has permissions to run a given query." (:require [clojure.test :refer :all] [metabase.api.common :as api] [metabase.models :refer [Card Collection Database Table]] ...
bd2642ac9d1c5bc48ae65fad5c60c0e6206ebb8de7e79095d9cc2332768bdf36
AlexKnauth/music
frequency.rkt
#lang agile (provide with-volume with-onset/beat tone tones tone-fade bell bells bell-fade ) (require racket/math rsound) frames per second (define sample-rate 44100) ;; ------------------------------------------------------------------------ (define (fader/on-off t0 ...
null
https://raw.githubusercontent.com/AlexKnauth/music/b4489c27d7c0f7116d769344c787fa76b479e5fa/music/notation/rsound/frequency.rkt
racket
------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------------------ -----------------------...
#lang agile (provide with-volume with-onset/beat tone tones tone-fade bell bells bell-fade ) (require racket/math rsound) frames per second (define sample-rate 44100) (define (fader/on-off t0 duration fade-frames) (let ([p (expt 0.001 (/ 1 fade-frames))] [en...
1f1f9592d936e8671692ad610288558c582b7f06e7791765074c5a7105cdf448
erikd/exceptT-demo
Cat.hs
module Naive.Cat ( Cat (..) , parseCat ) where import Data.ByteString (ByteString) -- A trivial Cat data type data Cat = Cat -- A trival parser for a Cat data type. -- This can't fail, but obviously a real parser could. parseCat :: ByteString -> Cat parseCat = const Cat
null
https://raw.githubusercontent.com/erikd/exceptT-demo/ceadf646000bfa27c3dfea81064caa21747c6ab5/Naive/Cat.hs
haskell
A trivial Cat data type A trival parser for a Cat data type. This can't fail, but obviously a real parser could.
module Naive.Cat ( Cat (..) , parseCat ) where import Data.ByteString (ByteString) data Cat = Cat parseCat :: ByteString -> Cat parseCat = const Cat
1b3066c1a19e7a55c21939071df91560ebcafa2571f22462d9c8892493c35ed1
startalkIM/ejabberd
message_pb.erl
-file("src/message_pb.erl", 1). -module(message_pb). -export([encode_xmppmessage/1, decode_xmppmessage/1, delimited_decode_xmppmessage/1, encode_presencemessage/1, decode_presencemessage/1, delimited_decode_presencemessage/1, encode_iqmessage/1, decode_iq...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/bdea190b01d90c51a80dcd2d85a66ed9ee01a968/src/message_pb.erl
erlang
-file("src/message_pb.erl", 1). -module(message_pb). -export([encode_xmppmessage/1, decode_xmppmessage/1, delimited_decode_xmppmessage/1, encode_presencemessage/1, decode_presencemessage/1, delimited_decode_presencemessage/1, encode_iqmessage/1, decode_iq...
a65cd9ac75a17bb12968e462bf6f3ae1c3853158ebd14273542eabbbf24a6c84
fission-codes/fission
Types.hs
module Fission.Key.EncryptedWith.Types (EncryptedWith (..)) where import qualified RIO.ByteString.Lazy as Lazy import Crypto.Cipher.AES (AES256) import qualified Crypto.PubKey.RSA as RSA import Fission.Prelude import qualified Fission.Key.Symmetric.Types as Symmetric ...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-core/library/Fission/Key/EncryptedWith/Types.hs
haskell
module Fission.Key.EncryptedWith.Types (EncryptedWith (..)) where import qualified RIO.ByteString.Lazy as Lazy import Crypto.Cipher.AES (AES256) import qualified Crypto.PubKey.RSA as RSA import Fission.Prelude import qualified Fission.Key.Symmetric.Types as Symmetric ...
d9944041104b1bed3535e475b1aa6962189b35dba7d21d79588542b56c49b449
tenpureto/tenpureto
TemplaterTest.hs
# LANGUAGE QuasiQuotes # module Tenpureto.TemplaterTest where import Test.Tasty import Test.Tasty.HUnit import Polysemy import Polysemy.Error import qualified Control.Exception as E import qualified Data.Set as Set import Path impo...
null
https://raw.githubusercontent.com/tenpureto/tenpureto/886df860200e1a6f44ce07c24a5e7597009f71ef/test/Tenpureto/TemplaterTest.hs
haskell
# LANGUAGE QuasiQuotes # module Tenpureto.TemplaterTest where import Test.Tasty import Test.Tasty.HUnit import Polysemy import Polysemy.Error import qualified Control.Exception as E import qualified Data.Set as Set import Path impo...
3048e622a04659d4c40f25ac3d8a7352ec923a278b825a77e4314f36e6610dd7
babashka/cli
project.clj
(defproject org.babashka/cli "0.2.10" :description "Turn Clojure functions into CLIs!" :url "" :scm {:name "git" :url ""} :license {:name "MIT" :url ""} :source-paths ["src"] :dependencies [[org.clojure/clojure "1.11.1"]] :deploy-repositories [["clojars" {:url "" ...
null
https://raw.githubusercontent.com/babashka/cli/2189d84201942005a220dcaa3b1258acd2eb88f8/project.clj
clojure
(defproject org.babashka/cli "0.2.10" :description "Turn Clojure functions into CLIs!" :url "" :scm {:name "git" :url ""} :license {:name "MIT" :url ""} :source-paths ["src"] :dependencies [[org.clojure/clojure "1.11.1"]] :deploy-repositories [["clojars" {:url "" ...
80eaddbb7929684dcf1d9e4034666dd37a1b31d6df401f2ba3ef200a6232ced2
yesodweb/persistent
Sqlite.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternGuards # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE Templ...
null
https://raw.githubusercontent.com/yesodweb/persistent/6fdbf84b182c5aae58e79f82e8655ebd4aa6b0c6/persistent-sqlite/Database/Persist/Sqlite.hs
haskell
# LANGUAGE OverloadedStrings # | A sqlite backend for persistent. Note: If you prepend @WAL=off @ to your connection string, it will disable the write-ahead log. This functionality is now deprecated in favour of using SqliteConnectionInfo. Note that this should not be used with the @:memory:@ connection string, a...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternGuards # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSectio...
becec0ed98f08f10f3e441f712d71e4aae7b4e271c20801ee17c79b039183b5a
janestreet/bonsai
bonsai_web_ui_search_bar.mli
open! Core open Bonsai_web * This library provides an alternative to an HTML select . Notable features : - Allows users to type in text to filter results - Bounded number of DOM appends per search - Autocomplete can display the choice as well as associated metadata Notable features : ...
null
https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/web_ui/search_bar/src/bonsai_web_ui_search_bar.mli
ocaml
* Controls how items are displayed in the autocomplete box. * Controls whether an item is considered to match a given search text. The default is [String.is_substring (Item.to_string item) ~prefix:input_text]. * If at any point the user enters a string s such that [of_string s = Some item], then [item] is...
open! Core open Bonsai_web * This library provides an alternative to an HTML select . Notable features : - Allows users to type in text to filter results - Bounded number of DOM appends per search - Autocomplete can display the choice as well as associated metadata Notable features : ...
050af0ee5288de3c27458b2689391802abca1689881188e27c405a2ea7ecaae8
sol/interpolate
Interpolate.hs
# LANGUAGE TemplateHaskell # module Data.String.Interpolate ( -- * String interpolation done right -- | -- The examples in this module use `QuasiQuotes`. Make sure to enable the -- corresponding language extension. -- -- >>> :set -XQuasiQuotes -- >>> import Data.String.Interpolate i ) where import Languag...
null
https://raw.githubusercontent.com/sol/interpolate/a31cd1322665b10a6d901d6d70dd7bc35b71035d/src/Data/String/Interpolate.hs
haskell
* String interpolation done right | The examples in this module use `QuasiQuotes`. Make sure to enable the corresponding language extension. >>> :set -XQuasiQuotes >>> import Data.String.Interpolate | A `QuasiQuoter` for string interpolation. Expression enclosed within @#{...}@ are interpolated, the result ...
# LANGUAGE TemplateHaskell # module Data.String.Interpolate ( i ) where import Language.Haskell.TH.Quote (QuasiQuoter(..)) import Language.Haskell.Meta.Parse (parseExp) import Data.String.Interpolate.Internal.Util import Data.String.Interpolate.Parse import Language...
92338b6bda60ba9ca67407002de21c1354a4465331942f101043c1415514c65e
LeventErkok/sbv
Bitwuzla.hs
----------------------------------------------------------------------------- -- | Module : Data . SBV.Provers . Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- The connection to the Bitwuzla SMT solver -------------------------------------------------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/8f08de144b4a728ab31ce2bd1119ce37051a54b6/Data/SBV/Provers/Bitwuzla.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror #
Module : Data . SBV.Provers . Copyright : ( c ) The connection to the Bitwuzla SMT solver module Data.SBV.Provers.Bitwuzla(bitwuzla) where import Data.SBV.Core.Data import Data.SBV.SMT.SMT | The description of the Bitwuzla SMT solver The default executable is @\"bitwuzla\"@ , which must be in your ...
6e5643d52a5437b8ca7ab9784b032194c8359039288fa1a4d548a8635c95451e
ardumont/haskell-lab
ch12.hs
module C12 where fibo :: [Integer] fibo = 0:1:[ x+y | (x,y) <- zip fibo (tail fibo)] * C12 > take 20 fibo -- [0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181] fibs :: Int -> Integer fibs n = fibo !! n -- *C12> fibs 10 34 -- *C12> fibs 100 218922995834555169026 * C12 > fibs 101 354224848179...
null
https://raw.githubusercontent.com/ardumont/haskell-lab/6d1f130300f33dc982c9a6b5d0b6a63af2c2666d/src/programming-in-haskell/ch12.hs
haskell
[0,1,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181] *C12> fibs 10 *C12> fibs 100 *C12> p $ takeTree 3 (repeatTree 0) --0 |--0 | |--0 | | |-- /- | | `-- /- | `--0 | |-- /- | `-- /- `--0 0 | |-- /- | `-- /- `--0 |-- /- `-- /- ...
module C12 where fibo :: [Integer] fibo = 0:1:[ x+y | (x,y) <- zip fibo (tail fibo)] * C12 > take 20 fibo fibs :: Int -> Integer fibs n = fibo !! n 34 218922995834555169026 * C12 > fibs 101 354224848179261915075 * C12 > head . ( < = 1000 ) $ fibo 1597 data Tree a = Leaf | Node (Tree a) a (Tree a) d...
fbe536a4b92fcff397c45eb51ec57e9dc15f12d0360279be0aa7570f1a20d74e
rpav/ninja-sphere
game-mob.lisp
(in-package :ninja-sphere) (defclass game-mob () ((properties :initform nil :initarg :properties) (sprite :initform nil) (sprite-anims :initform nil) (pos :initform nil) (removep :initform nil :reader item-remove-p) (remove-body :initform nil :reader item-remove-cmd) (body :initform nil) (dead...
null
https://raw.githubusercontent.com/rpav/ninja-sphere/f6708d9ab209a831c7e7df3f12d32ecc4afe0426/src/game-mob.lisp
lisp
(in-package :ninja-sphere) (defclass game-mob () ((properties :initform nil :initarg :properties) (sprite :initform nil) (sprite-anims :initform nil) (pos :initform nil) (removep :initform nil :reader item-remove-p) (remove-body :initform nil :reader item-remove-cmd) (body :initform nil) (dead...
d7a27d05ada990947c0d52b66c15053090df53c648c384dae932609851120168
rcherrueau/APE
letrec-syntax_and*.rkt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Writing Hygienic Macros in Scheme with Syntax - case Technical Report # 356 ;; page 7 - 8 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #lang racket (require "print-test.rkt") ; Local macro u...
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/hygienic_macros/letrec-syntax_and*.rkt
racket
Local macro using let-syntax and letrec-syntax. Here, `letREC-syntax' form is important because macro is recursively-defined. `and*' macro appears in the `syntax' form of the last clause. For this reason, `letREC-syntax' has to be used instead of `let-syntax'. Base case clause. Recursive case clause. See the ...
Writing Hygienic Macros in Scheme with Syntax - case Technical Report # 356 page 7 - 8 #lang racket (require "print-test.rkt") (letrec-syntax ([and* (lambda (x) (syntax-case x () [(_) #'#t] [(_ e) #'e] [(_...
a66c227eb45d3525674b8e837fbf12770b8a076d9bcf1daae7bec813beace4fe
tatut/tuck
debug.cljs
(ns tuck.debug "Time traveling debugger for Tuck" (:require [reagent.core :as r] [tuck.core :as tuck :refer-macros [define-event]] [cljs.reader :refer [read-string]] [clojure.string :as str]) (:require-macros [tuck.intercept :refer [intercept]])) (def ^:dynamic *debugger-state...
null
https://raw.githubusercontent.com/tatut/tuck/f053d3ac50bc623cbd44397cea2387a28c0cf82e/src/tuck/debug.cljs
clojure
set state to index n (0 for beginning of time) invoke client event toggle playing/pause play next event (.log js/console "STATES AFTER: " (pr-str (:states d))) Keep track of whether events are allowed. Some components send events when they are created to initialize stuff. Disallow events when rendering a histor...
(ns tuck.debug "Time traveling debugger for Tuck" (:require [reagent.core :as r] [tuck.core :as tuck :refer-macros [define-event]] [cljs.reader :refer [read-string]] [clojure.string :as str]) (:require-macros [tuck.intercept :refer [intercept]])) (def ^:dynamic *debugger-state...
7c89d720439d1fcba4cf70e2b4889c51365e3ac1dada7d6ac1a955b1b16842d1
BranchTaken/Hemlock
test_fmt_p.ml
open! Basis.Rudiments open! Basis open Real (* The test output is quite large, so only its hash is printed by default. Set verbose to true * while modifying the test or diagnosing regressions. *) let verbose = false let test () = let rec fn xs formatter = match xs with | [] -> formatter | x :: xs' -> ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/real/test_fmt_p.ml
ocaml
The test output is quite large, so only its hash is printed by default. Set verbose to true * while modifying the test or diagnosing regressions.
open! Basis.Rudiments open! Basis open Real let verbose = false let test () = let rec fn xs formatter = match xs with | [] -> formatter | x :: xs' -> List.fold ~init:( formatter |> fmt ~alt:true ~radix:Radix.Hex x |> Fmt.fmt "\n" ) [Radix.Bin; Radix.Oct; Radix.Hex] ~f...
bb024f629e7ed4884ac0d3b97569bc63c8564fb6598bceab250462d7e0c22a08
Opetushallitus/ataru
postal_code.cljc
(ns ataru.fixtures.postal-code) (def postal-code-list {nil false "" false "0" false "00" false "001" false "0010" false "00100" true "a0000...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/test/cljc/unit/ataru/fixtures/postal_code.cljc
clojure
(ns ataru.fixtures.postal-code) (def postal-code-list {nil false "" false "0" false "00" false "001" false "0010" false "00100" true "a0000...
be617cf0a4d4a0e9ad25fb4db99556e1c8680f2421ae53d0f49a4c5346a7536d
HumbleUI/HumbleUI
stack.clj
(ns examples.stack (:require [io.github.humbleui.paint :as paint] [io.github.humbleui.ui :as ui])) (def ui (ui/center (ui/stack (ui/center (ui/rect (paint/fill 0xFFCCCCCC) (ui/gap 200 200))) (ui/center (ui/padding 100 (ui/label "Stack"))) (ui/center...
null
https://raw.githubusercontent.com/HumbleUI/HumbleUI/937a7232fe4f00a781970c7bd6fb853d9a82a939/dev/examples/stack.clj
clojure
(ns examples.stack (:require [io.github.humbleui.paint :as paint] [io.github.humbleui.ui :as ui])) (def ui (ui/center (ui/stack (ui/center (ui/rect (paint/fill 0xFFCCCCCC) (ui/gap 200 200))) (ui/center (ui/padding 100 (ui/label "Stack"))) (ui/center...
b719ccfffef5d3e4c0bf864f36faea0ce7006bf1dfae877337262ecde1574dad
AccelerateHS/accelerate-cuda
Foreign.hs
-- | -- Module : Data.Array.Accelerate.CUDA.Foreign Copyright : [ 2013 .. 2014 ] , , , -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- module Data.Array.Accelerate.CUDA.Foreign ( module Data.Array.Accelerate...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-cuda/6285f87859788628ce68d1ff76ce7b348f585f9e/Data/Array/Accelerate/CUDA/Foreign.hs
haskell
| Module : Data.Array.Accelerate.CUDA.Foreign License : BSD3 Stability : experimental
Copyright : [ 2013 .. 2014 ] , , , Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.CUDA.Foreign ( module Data.Array.Accelerate.CUDA.Foreign.Export, module Data.Array.Accelerate.CUDA.Foreign.Import, ) where import Data.Array.Accelerate.CU...
1b29590fa7b0a79cf65e8d1dbb15189cdd4ed658f90a0fd02c1d596f2b41dae3
Eduap-com/WordMat
solvds.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/hompack/lisp/solvds.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp snapshot-2020-04 (21D Unicode) 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 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
921d7447a5094dd077dc2379f107b5a80c64ebd161def7f5b851c5f5b5e9e880
Clozure/ccl
serial-streams.lisp
-*-Mode : LISP ; Package : CCL -*- ;;; Copyright 1994 - 2010 Clozure Associates ;;; 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 appli...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/library/serial-streams.lisp
lisp
Package : CCL -*- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific la...
Copyright 1994 - 2010 Clozure Associates distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (defclass serial-stream (fd-stream buffered-binary-io-stream-mixin buffered-character-io-stream-mixin) ()) (defmethod select-stre...
81b6c488757a43b7f40909996cee3c64fd49696203b92b5df44085976f78e050
alexbs01/OCaml
test.ml
let crono f x = let t = Sys.time () in let y = f x in y, Sys.time () -. t;; let test i = let sol, t = crono Queens.all_queens i in let i_s = string_of_int i and ns = string_of_int (List.length sol) and ts = string_of_float t in print_endline ("TABLERO " ^ i_s ^ " x " ^ i_s); p...
null
https://raw.githubusercontent.com/alexbs01/OCaml/b5f6b2dac761cf3eb99ba55dfe7de85f7e3c4f48/queens/test.ml
ocaml
let crono f x = let t = Sys.time () in let y = f x in y, Sys.time () -. t;; let test i = let sol, t = crono Queens.all_queens i in let i_s = string_of_int i and ns = string_of_int (List.length sol) and ts = string_of_float t in print_endline ("TABLERO " ^ i_s ^ " x " ^ i_s); p...
e45499d1e793bb29c722a590819ac4e32a98185310a64dd4bd5e5a26c7201b0e
jellelicht/guix
webkit.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2015 , 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/webkit.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 © 2015 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2015 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages...
490b2d5fd3fbc1676232ec354190a44b7a917198745aa059513a5274401b8455
helium/blockchain-http
bh_sup.erl
-module(bh_sup). -behaviour(supervisor). -include("bh_db_worker.hrl"). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -define(SERVER, ?MODULE). -define(WORKER(I, Args), #{ id => I, start => {I, start_link, Args}, restart => permanent, shutdown => 5000, type => worke...
null
https://raw.githubusercontent.com/helium/blockchain-http/080253037735f84e22e031d5b752859ac5c66494/src/bh_sup.erl
erlang
API Supervisor callbacks {bh_middleware_cursor, []},
-module(bh_sup). -behaviour(supervisor). -include("bh_db_worker.hrl"). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). -define(WORKER(I, Args), #{ id => I, start => {I, start_link, Args}, restart => permanent, shutdown => 5000, type => worker, modules => [I] }). star...
6131ccfb129173f759213e03ebc6614938c5ba0d69a555db7b4d2d698eff0535
acl2/acl2
symbol-alist-listp.lisp
; Recognizing lists of symbol-alists ; Copyright ( C ) 2023 Kestrel Institute ; License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "ACL2") ;; Also appears elsewhere in the books....
null
https://raw.githubusercontent.com/acl2/acl2/2790a294db676f428d72175afcfa5dfff2b05979/books/kestrel/typed-lists-light/symbol-alist-listp.lisp
lisp
Recognizing lists of symbol-alists Also appears elsewhere in the books.
Copyright ( C ) 2023 Kestrel Institute License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . Author : ( ) (in-package "ACL2") (defund symbol-alist-listp (lst) (declare (xargs :guard t)) (if (atom lst) (null lst) (and (symbol-alistp (car lst)) (symbol-alist-listp (cd...
aab820ae2150a3ec53a4b26d7783c37917ac6bef4760f92f8f018b6a773b75b6
janestreet/ecaml
valueable.ml
open! Core open! Import include Valueable_intf module Make (M : Type) = struct include M let of_value_exn = Value.Type.of_value_exn type_ let to_value = Value.Type.to_value type_ let t = type_ end
null
https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/ecaml_value/src/valueable.ml
ocaml
open! Core open! Import include Valueable_intf module Make (M : Type) = struct include M let of_value_exn = Value.Type.of_value_exn type_ let to_value = Value.Type.to_value type_ let t = type_ end
099c5e97b91006f98bc04a236a1fe6bc4cda80797bf97844466b0a007ac5e6f5
alexeispirit/AutoCAD-Utils
utils-system.lsp
;;;<LISPDOC> ;;;<SUBR>(system-computer-name)</SUBR> ;;;<DESC>Reveal computer name</DESC> ;;;<RET>computername string</RET> ;;;</LISPDOC> (defun system-computer-name () (getenv "COMPUTERNAME")) ;;;<LISPDOC> ;;;<SUBR>(system-user-name)</SUBR> ;;;<DESC>Reveal user name</DESC> ;;;<RET>username string</RET> ...
null
https://raw.githubusercontent.com/alexeispirit/AutoCAD-Utils/852ddebaa66ff4fb77be99317e6180d5b5dfcc49/utils/utils-system.lsp
lisp
<LISPDOC> <SUBR>(system-computer-name)</SUBR> <DESC>Reveal computer name</DESC> <RET>computername string</RET> </LISPDOC> <LISPDOC> <SUBR>(system-user-name)</SUBR> <DESC>Reveal user name</DESC> <RET>username string</RET> </LISPDOC> <LISPDOC> <SUBR>(system-computer-stp-name pc)</SUBR> <DESC>Convert computern...
(defun system-computer-name () (getenv "COMPUTERNAME")) (defun system-user-name () (getenv "USERNAME")) (defun system-computer-stp-name (pc /) (string-regexp-replace-fast "\\d+" "" (strcase (substr pc 1 (string-search-reverse "-" pc))))) < DESC > Check whether system is x64 or (...
9a6a40e80f057375a374b646db5b9e7f3239c31ac8b1b5749d479918d059f4e9
mfoemmel/erlang-otp
snmp_app_sup.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2003 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pu...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/snmp/src/app/snmp_app_sup.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limit...
Copyright Ericsson AB 2003 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmp_app_sup). -include("snmp_debu...
1fe464db9952c0c5899c764696004c4f77aedeaf0fffb4a8ca32dffa109dddf9
racket/racket7
already-expanded.rkt
#lang racket/base ;; Defines a struct type for an expression that has been ;; expanded already by `local-expand-expression` (provide (struct-out already-expanded)) (struct already-expanded (s binding-layer) #:reflection-name 'expanded-syntax)
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/expand/already-expanded.rkt
racket
Defines a struct type for an expression that has been expanded already by `local-expand-expression`
#lang racket/base (provide (struct-out already-expanded)) (struct already-expanded (s binding-layer) #:reflection-name 'expanded-syntax)
7fb6d6331bf4f733876379fe697303e31eed9601480e0df14f1bd07fbe522e68
fragnix/fragnix
Network.Wai.Middleware.Autohead.hs
{-# LANGUAGE Haskell2010, OverloadedStrings #-} # LINE 1 " Network / Wai / Middleware / Autohead.hs " # # LANGUAGE CPP # | Automatically produce responses to HEAD requests based o...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Network.Wai.Middleware.Autohead.hs
haskell
# LANGUAGE Haskell2010, OverloadedStrings # applications GET response.
# LINE 1 " Network / Wai / Middleware / Autohead.hs " # # LANGUAGE CPP # | Automatically produce responses to HEAD requests based on the underlying module Network.Wai.Middleware.A...
15e00ae1430c00002221ae764d17389231500dac4d4fe4bc7a67136754afad51
gildor478/ocaml-fileutils
UnixPath.ml
(******************************************************************************) (* ocaml-fileutils: files and filenames common operations *) (* *) Copyright ( C ) 2003 - 2014 , (* ...
null
https://raw.githubusercontent.com/gildor478/ocaml-fileutils/9ad8d2ee342c551391f2a9873de01982d24b36d5/src/lib/fileutils/UnixPath.ml
ocaml
**************************************************************************** ocaml-fileutils: files and filenames common operations This libra...
Copyright ( C ) 2003 - 2014 , the Free Software Foundation ; either version 2.1 of the License , or ( at You should have received a copy of the GNU Lesser General Public License along with this library ; if not , write to the Free Software Foundation , Inc. , 51 Franklin St , Fifth Floor , Bo...
ae811546154a0fc73bf451ba4b04ee2c502086e549362d58af0017d989bce6b0
SHoltzen/dice
ExternalGrammar.ml
(** Public-facing grammar. This is the parser target. *) open Core open Sexplib.Std open Bignum type typ = TBool | TInt of int (* sz *) | TTuple of typ * typ | TList of typ | TFunc of typ List.t * typ [@@deriving sexp_of] type arg = String.t * typ [@@deriving sexp_of] (* this syntax is a bit weird; i...
null
https://raw.githubusercontent.com/SHoltzen/dice/83a52ead59f6c7c13c5c0f79dbd89eeb4e4e581a/lib/ExternalGrammar.ml
ocaml
* Public-facing grammar. This is the parser target. sz this syntax is a bit weird; it is necessary because Lexing.position does not by default derive sexp. value, size * type environment
open Core open Sexplib.Std open Bignum type typ = TBool | TTuple of typ * typ | TList of typ | TFunc of typ List.t * typ [@@deriving sexp_of] type arg = String.t * typ [@@deriving sexp_of] type lexing_position = Lexing.position = { pos_fname : string ; pos_lnum : int ; pos_bol : int ; pos_cnum :...
04e116b0f57bd7aba39b0e51f82d6efb7e68fee38b3d76a3dc354054a045459d
nikita-volkov/rebase
Fix.hs
module Rebase.Control.Monad.Fix ( module Control.Monad.Fix ) where import Control.Monad.Fix
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Control/Monad/Fix.hs
haskell
module Rebase.Control.Monad.Fix ( module Control.Monad.Fix ) where import Control.Monad.Fix
f4ce8fd65c051586919d230a56e980356b35d857ae81af093c30b81e527e5dcb
pfdietz/ansi-test
subtypep-eql.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Feb 15 11:58:43 2003 Contains : Tests for subtype relationships on EQL types (in-package :cl-test) (deftest subtypep.eql.1 (let ((s1 (copy-seq "abc")) (s2 (copy-seq "abc"))) (let ((t1 `(eql ,s1)) (t2 `(eql ,s2))) (cond ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/types-and-classes/subtypep-eql.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Sat Feb 15 11:58:43 2003 Contains : Tests for subtype relationships on EQL types (in-package :cl-test) (deftest subtypep.eql.1 (let ((s1 (copy-seq "abc")) (s2 (copy-seq "abc"))) (let ((t1 `(eql ,s1)) (t2 `(eql ,s2))) (cond ((subtypep t1 t2) "T1 is...
f78504320356d02448633a2dcc3b2602048848c10a7b3c3607724d0bd682b7c8
janestreet/core
span_ns.mli
open! Import include Time_ns_intf.Span module Stable : sig module V1 : sig type nonrec t = t [@@deriving hash, equal] include Stable_int63able.With_stable_witness.S with type t := t end module Option : sig module V1 : Stable_int63able.With_stable_witness.S with type t = t module V2 : Stable_int...
null
https://raw.githubusercontent.com/janestreet/core/f382131ccdcb4a8cd21ebf9a49fa42dcf8183de6/core/src/span_ns.mli
ocaml
open! Import include Time_ns_intf.Span module Stable : sig module V1 : sig type nonrec t = t [@@deriving hash, equal] include Stable_int63able.With_stable_witness.S with type t := t end module Option : sig module V1 : Stable_int63able.With_stable_witness.S with type t = t module V2 : Stable_int...
0558c0e13c2f139285a4cce423580243b65a2c98ad662879e5bc3866048b67cd
xh4/web-toolkit
node.lisp
(in-package :dom) (defconstant element-node 1) (defconstant attribute-node 2) (defconstant text-node 3) (defconstant cdata-section-node 4) (defconstant entity-reference-node 5) (defconstant entity-node 6) (defconstant processing-instruction-node 7) (defconstant comment-node 8) (defconstant document-node 9) (defconstan...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/dom/node.lisp
lisp
(in-package :dom) (defconstant element-node 1) (defconstant attribute-node 2) (defconstant text-node 3) (defconstant cdata-section-node 4) (defconstant entity-reference-node 5) (defconstant entity-node 6) (defconstant processing-instruction-node 7) (defconstant comment-node 8) (defconstant document-node 9) (defconstan...
1998e122fd9b848251ab631c7702d43df152a0d5cba4280ab278ac2ffb308608
clojure-lsp/clojure-lsp
a.clj
(ns sample-test.src.sample-test.cursor-info.a) (defn some-public-func [a] a)
null
https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/fe232a719707258ee53d72bf44166d5149e6ee0b/cli/integration-test/sample-test/src/sample_test/cursor_info/a.clj
clojure
(ns sample-test.src.sample-test.cursor-info.a) (defn some-public-func [a] a)
29e2872ce6eeb0382551cf1d9da2930601bcb4c058ec1dbc09743dd44abd4249
rbuchmann/samak
nodes_test.cljc
(ns samak.nodes-test (:require [clojure.test :refer [deftest is]] [samak.api :as api] [samak.core :as core] [samak.lisparser :as lp] [samak.nodes :as n])) (def eval-string (comp n/eval-node first :value lp/parse-all)) (deftest eval-literals (let [i...
null
https://raw.githubusercontent.com/rbuchmann/samak/ab98d1a180ee02c6cd784962b3c03e473a6d481b/test/samak/nodes_test.cljc
clojure
(ns samak.nodes-test (:require [clojure.test :refer [deftest is]] [samak.api :as api] [samak.core :as core] [samak.lisparser :as lp] [samak.nodes :as n])) (def eval-string (comp n/eval-node first :value lp/parse-all)) (deftest eval-literals (let [i...
44dfd3a90c5711bb7fbfb7b90561c36145cba974ed422b29548f7e9ced89380b
pavlobaron/DevRoulette
make_boot.erl
-module(make_boot). -export([write_scripts/1]). write_scripts(Args) -> [Name] = Args, io:format("write_scripts for ~p~n", [Name]), Erts = erlang:system_info(version), application:load(sasl), Version = "0.1", {value, {kernel, _, Kernel}} = lists:keysearch(kernel, 1, application:loaded_appli...
null
https://raw.githubusercontent.com/pavlobaron/DevRoulette/2aaa582f65645c7178e98dce08a4535dabf59793/src/make_boot.erl
erlang
-module(make_boot). -export([write_scripts/1]). write_scripts(Args) -> [Name] = Args, io:format("write_scripts for ~p~n", [Name]), Erts = erlang:system_info(version), application:load(sasl), Version = "0.1", {value, {kernel, _, Kernel}} = lists:keysearch(kernel, 1, application:loaded_appli...
54cd878a95dff0f51680ae6f87234074a1babe4a051f5eef5ad8e556a88b84b8
footprintanalytics/footprint-web
share_test.clj
(ns metabase.query-processor-test.share-test "Tests for the `:share` aggregation." (:require [clojure.test :refer :all] [metabase.driver :as driver] [metabase.models.metric :refer [Metric]] [metabase.models.segment :refer [Segment]] [metabase.test :as mt])) (deftest ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/query_processor_test/share_test.clj
clojure
(ns metabase.query-processor-test.share-test "Tests for the `:share` aggregation." (:require [clojure.test :refer :all] [metabase.driver :as driver] [metabase.models.metric :refer [Metric]] [metabase.models.segment :refer [Segment]] [metabase.test :as mt])) (deftest ...
d8fd07eaab7e080ff187aa5d959835c91d5505e7d0d705d2d658838f60e19a90
clojure-interop/java-jdk
SOAPException.clj
(ns javax.xml.soap.SOAPException "An exception that signals that a SOAP exception has occurred. A SOAPException object may contain a String that gives the reason for the exception, an embedded Throwable object, or both. This class provides methods for retrieving reason messages and for retrieving the embedded...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/soap/SOAPException.clj
clojure
(ns javax.xml.soap.SOAPException "An exception that signals that a SOAP exception has occurred. A SOAPException object may contain a String that gives the reason for the exception, an embedded Throwable object, or both. This class provides methods for retrieving reason messages and for retrieving the embedded...
18d77dec375b105befbdb3bb28c3faa89dce594cd9c301995a21c48fbadfa93c
hyperfiddle/electric
oklab.cljc
(ns contrib.oklab "A perceptual color space. / Specified by CSS Color Module Level 4. Available natively in Safari. " (:require [hyperfiddle.rcf :refer [tests]])) (defn deg->rad [alpha] (/ (* alpha Math/PI) 180)) (defn oklch->oklab [[l c h]] [l (* c (Math/cos (deg->rad h))) (* c (Math/sin (deg->rad...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/src/contrib/oklab.cljc
clojure
/#converting-from-linear-srgb-to-oklab
(ns contrib.oklab "A perceptual color space. / Specified by CSS Color Module Level 4. Available natively in Safari. " (:require [hyperfiddle.rcf :refer [tests]])) (defn deg->rad [alpha] (/ (* alpha Math/PI) 180)) (defn oklch->oklab [[l c h]] [l (* c (Math/cos (deg->rad h))) (* c (Math/sin (deg->rad...
15fb24b5d5fbf5498d094fe9e90eb9bfa5c5c6497f091e68effac5576aa199df
hlship/cli-tools
cli_tools.clj
(ns net.lewisship.cli-tools "Utilities for create CLIs around functions, and creating tools with multiple sub-commands." (:require [net.lewisship.cli-tools.impl :as impl] [clojure.string :as str])) (defn exit "An indirect call to System/exit, passing a numeric status code (0 for success, non-zero for...
null
https://raw.githubusercontent.com/hlship/cli-tools/4949afcd16f23e86ff08a89a0c571c57c18267ea/src/net/lewisship/cli_tools.clj
clojure
instead, an exception is thrown, partially generated by clojure.tools.cli, and then the input value is split on `-` and turned into `z` matches nothing and returns nil, as would this is part of the `-h` / `--help` summary. Keys actually used by parse-cli and print-summary args# is normally a seq of strings, from...
(ns net.lewisship.cli-tools "Utilities for create CLIs around functions, and creating tools with multiple sub-commands." (:require [net.lewisship.cli-tools.impl :as impl] [clojure.string :as str])) (defn exit "An indirect call to System/exit, passing a numeric status code (0 for success, non-zero for...
9fc328cd6a9666fbc91368a485297157ed31c9d72ef63e029ef7a429a7dd0166
processone/tsung
rabbit_binary_parser.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/processone/tsung/e9babe2acfb4298e3b51bd56886561b052979884/src/lib/rabbit_binary_parser.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ----------------...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is VMware , Inc. Copyright ( c ) 2007 - 2012 VMware , Inc. All rights reserved . -module(rabbi...
5d0cd26782f64809175ce98965587cc49cfad83a532045120b619f63e7b137b1
pirapira/coq2rust
formula.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/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/plugins/firstorder/formula.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** exception Is_atom of constr
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Con...
25d57a51b69f961e4de485eddbd8aac9a6e9e9716943f70c3a1cd8730a5378bc
kappamodeler/kappa
views.ml
06/09/2008 (* Views database handler for ODE generation *) pour PlectiX (* views.ml *) open Data_structures open Pb_sig open Tools open Annotated_contact_map open Ode_print_sig open Ode_print open Error_handler let explicit = false let debug = false let log_step = false let memory = true let print_debug ...
null
https://raw.githubusercontent.com/kappamodeler/kappa/de63d1857898b1fc3b7f112f1027768b851ce14d/complx_rep/ODE/views.ml
ocaml
Views database handler for ODE generation views.ml let _ = List.iter (fun (n,expr) -> let _ = pprint_obs print (print_sb ode_handler) n expr pb in () ) l in * this primitives computes the set of valuated subviews In translate_classes_into_views ode_handler subviews rep, ode_ha...
06/09/2008 pour PlectiX open Data_structures open Pb_sig open Tools open Annotated_contact_map open Ode_print_sig open Ode_print open Error_handler let explicit = false let debug = false let log_step = false let memory = true let print_debug = if debug then print_string else (fun x -> ()) let error i...
9c6c35c524ab117f36157ab226fe12f43dd01cc207190d6cc2bdf8388ca95240
marcelosousa/llvmvf
Paths_demangler.hs
module Paths_demangler ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) where import qualified Control.Exception as Exception import Data.Version (Version(..)) import System.Environment (getEnv) import Prelude catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a catchI...
null
https://raw.githubusercontent.com/marcelosousa/llvmvf/c314e43aa8bc8bb7fd9c83cebfbdcabee4ecfe1b/tests/cppdem/dist/build/autogen/Paths_demangler.hs
haskell
module Paths_demangler ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) where import qualified Control.Exception as Exception import Data.Version (Version(..)) import System.Environment (getEnv) import Prelude catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a catchI...
dc22f50907a9a8290050a44a7dccfc257be70a8a1dc15e2a3461c3ef0b827a46
calyau/maxima
sumcon.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/calyau/maxima/9352a3f5c22b9b5d0b367fddeb0185c53d7f4d02/src/sumcon.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; e is assumed ...
(in-package :maxima) (macsyma-module sumcon) (declare-top (special $genindex $niceindicespref $sumexpand)) (cond ((atom e) e) ((eq (caar e) 'mplus) (do ((x (cdr e) (cdr x)) (sums) (notsums) (car-x)) ((null x) (cond ((null sums) (subst0 (cons '(mplus) (nreverse notsums)) e)) ...
8c4cc936fd8a141bfb437784e03f8bc13004575b2a2e89b53e3845202c208032
dbtoaster/dbtoaster-a5
Database.ml
Databases . * * Databases are persistent stores of values and maps for M3 / K3 programs . * We have two types of databases , consisting of different types of maps : * i. M3DBs have 1 - level maps and 2 - level maps . * ii . K3DBs contain maps whose values and keys may be arbitrarily nested . * ...
null
https://raw.githubusercontent.com/dbtoaster/dbtoaster-a5/b59e2837950023f32807bb1f21f57058f4f0b3e2/src/lib/Database.ml
ocaml
************************** * DB Name parameterization ************************** Maps can be accessed by name or unique id in generated code Implementations initializer Implementation: * -- M3 map with single and double maps as SliceableMaps */* */* ***************** * K3 databases ***************** */* *...
Databases . * * Databases are persistent stores of values and maps for M3 / K3 programs . * We have two types of databases , consisting of different types of maps : * i. M3DBs have 1 - level maps and 2 - level maps . * ii . K3DBs contain maps whose values and keys may be arbitrarily nested . * ...
1c5d3b6ec5d832bb8234ab5554f352ac91e8a404886b97414b21b21aad313aa4
solbloch/stumpwm-configs
echo.lisp
(in-package :stumpwm) (defun echo-key-seq (key key-seq cmd) (declare (ignore key cmd)) (message "~a" (print-key-seq (reverse key-seq)))) (defcommand echo-key-seq-mode () () "Toggle which-key-mode" (if (find 'echo-key-seq *key-press-hook*) (remove-hook *key-press-hook* 'echo-key-seq) (add-hook *key...
null
https://raw.githubusercontent.com/solbloch/stumpwm-configs/687118d5202e3e3c8317ba1ba8404034a5bca667/echo.lisp
lisp
(in-package :stumpwm) (defun echo-key-seq (key key-seq cmd) (declare (ignore key cmd)) (message "~a" (print-key-seq (reverse key-seq)))) (defcommand echo-key-seq-mode () () "Toggle which-key-mode" (if (find 'echo-key-seq *key-press-hook*) (remove-hook *key-press-hook* 'echo-key-seq) (add-hook *key...
028119506bf07622e62d68e49b9686405afa7b6ad3b3e37cbd0c443f78150f3b
cyverse-archive/DiscoveryEnvironmentBackend
send_mail.clj
(ns iplant-email.send-mail (:use [iplant-email.exceptions]) (:require [clojure.tools.logging :as log] [cheshire.core :as cheshire] [iplant-email.config :as cfg] [iplant-email.json-validator :as jv] [iplant-email.templatize :as tmpl]) (:import [javax.mail Session Mes...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/iplant-email/src/iplant_email/send_mail.clj
clojure
(ns iplant-email.send-mail (:use [iplant-email.exceptions]) (:require [clojure.tools.logging :as log] [cheshire.core :as cheshire] [iplant-email.config :as cfg] [iplant-email.json-validator :as jv] [iplant-email.templatize :as tmpl]) (:import [javax.mail Session Mes...
ba337c2593a28e198220a2ee086bc4bcc90b8457f5273248889acbc9f83a5ae8
gsakkas/rite
2533.ml
let rec wwhile (f,b) = let rec wwhelper f b = let (b',c') = f b in if c' = false then b' else wwhelper f b' in wwhelper f b;; let fixpoint (f,b) = wwhile ((let helper x = ((f x), (x != (f x))) in helper b), b);; fix let rec wwhile ( f , b ) = let rec wwhelper f b = let ( b',c ' ) = f b in i...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14_min/2533.ml
ocaml
let rec wwhile (f,b) = let rec wwhelper f b = let (b',c') = f b in if c' = false then b' else wwhelper f b' in wwhelper f b;; let fixpoint (f,b) = wwhile ((let helper x = ((f x), (x != (f x))) in helper b), b);; fix let rec wwhile ( f , b ) = let rec wwhelper f b = let ( b',c ' ) = f b in i...
c519b1fbb9181c6c3d3b6c822463d152f94196beafbbc54bb40dba02b2630886
softwarelanguageslab/maf
R5RS_scp1_calc-e-and-cos-1.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 ; * swapped branches: 0 * calls to i d fun : 1 (letrec ((calc-e-iter (lambda (n) (letrec ((iter (lambda (ctr res fac-prev) (<change> ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_calc-e-and-cos-1.scm
scheme
Changes: * swapped branches: 0
* removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 * calls to i d fun : 1 (letrec ((calc-e-iter (lambda (n) (letrec ((iter (lambda (ctr res fac-prev) (<change> () ...
6ca43fb40774beca2af0fba37c9df909a3efcbdbd3c6925e7e1c54ad14e63701
soegaard/bracket
root-finding.rkt
#lang racket (require racket/flonum) (require (only-in (planet williams/science:4:5/science) finite? double-epsilon)) ;;; SOLVER (define-struct solver-type (name iterator make-initial-state)) ; Bracketing (provide/contract (find-root (solver-type? (inexact-real? . -> . inexact-real?) ...
null
https://raw.githubusercontent.com/soegaard/bracket/3d0ace16cf0dbcee4952fd729796e4362e27faa0/numeric/root-finding.rkt
racket
SOLVER Bracketing root testers - root bracketing - root polishing Root Bracketing: - guarantee of convergence - begins with bounded region known to contain root - region reduced until root within tolerance is found Root Polishing: - an initial guess is iteratively improved to find root - given a good...
#lang racket (require racket/flonum) (require (only-in (planet williams/science:4:5/science) finite? double-epsilon)) (define-struct solver-type (name iterator make-initial-state)) (provide/contract (find-root (solver-type? (inexact-real? . -> . inexact-real?) inexact-real? in...
424c6e5eac47145ad09fef4627729f7ec71440731b46100e4ffcef678c345322
braidchat/braid
tag_results.cljs
(ns braid.search.ui.tag-results (:require [braid.core.client.ui.views.tag-hover-card :as tag-card] [braid.core.client.ui.styles.hover-cards :as card-styles])) (defn search-tags-view [_ tags] [:div.result.tag [:div.description (str (count tags) " tags" (when (not= (count tags) 1) "s"))] [:div.tags...
null
https://raw.githubusercontent.com/braidchat/braid/e9e5cefc13f73814bd69fc8d50849fd63925fee7/src/braid/search/ui/tag_results.cljs
clojure
would like to just do "flex-wrap: wrap" but apparently a flex-direction: column + flex-wrap: wrap doesn't grow the width of the parent when it wraps, so then this ends up overlapping with the search results next to it
(ns braid.search.ui.tag-results (:require [braid.core.client.ui.views.tag-hover-card :as tag-card] [braid.core.client.ui.styles.hover-cards :as card-styles])) (defn search-tags-view [_ tags] [:div.result.tag [:div.description (str (count tags) " tags" (when (not= (count tags) 1) "s"))] [:div.tags...
46a0077374b5d7cac0aa8357a26480e024d324f98c862b7beb3fbd74bd89fc18
clojurecup2014/parade-route
dispatch.clj
dispatch.clj -- part of the pretty printer for Clojure Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this so...
null
https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/pprint/dispatch.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
dispatch.clj -- part of the pretty printer for Clojure Copyright ( c ) . All rights reserved . Author : April 3 , 2009 (in-ns 'clojure.pprint) (defn- use-method "Installs a function as a new method of multimethod associated with dispatch-value. " [multifn dispatch-val func] (. multifn addMetho...
dc0ca4d2460216b59d1954884204eb689916224a5bd522b28f781dbef3393edb
chetmurthy/ensemble
chk_causal.ml
(**************************************************************) CHK_CAUSAL.ML : Checking causal ordering properties Author : Ohad Rodeh , 12/96 Last update : 7/97 (**************************************************************) * General description * ------------------- * This layer checks the causal...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/layers/debug/chk_causal.ml
ocaml
************************************************************ ************************************************************ ************************************************************ ************************************************************ ************************************************************ locally genera...
CHK_CAUSAL.ML : Checking causal ordering properties Author : Ohad Rodeh , 12/96 Last update : 7/97 * General description * ------------------- * This layer checks the causal order . It can work with or * without self delivery . It ignores messages recieved which * are self - delivered . * I...
40e13d8f971f202b9315da140a01dda2dc39b3fea54b8dc1c5487f34d46fdbdb
may-liu/qtalk
management_cmd.erl
-module(management_cmd). -export([get_user_num/2,get_muc_opts/2,update_muc_opts/2,stop_muc/2,start_muc/2,remove_muc_user/2]). -export([judge_muc_online/2,destroy_muc/2,get_online_status/2,kick_user/2,get_user_mac_key/2]). -export([update_user_info/2,delete_user/2,restart_pgsql_odbc/2,get_user_registed_muc_num/2]). -exp...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/management_cmd.erl
erlang
-------------------------------------------------------------------- 获取当前用户数 qunar.com -------------------------------------------------------------------- -------------------------------------------------------------------- qunar.com -------------------------------------------------------------------- -------------...
-module(management_cmd). -export([get_user_num/2,get_muc_opts/2,update_muc_opts/2,stop_muc/2,start_muc/2,remove_muc_user/2]). -export([judge_muc_online/2,destroy_muc/2,get_online_status/2,kick_user/2,get_user_mac_key/2]). -export([update_user_info/2,delete_user/2,restart_pgsql_odbc/2,get_user_registed_muc_num/2]). -exp...
543edd1d029e6461fcffed69e040d63e7bfdf1d9b2abf1e7174d70885ab631d7
stumpwm/stumpwm
debug.lisp
Copyright ( C ) 2003 - 2008 ;; This file is part of stumpwm . ;; stumpwm is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 , or ( at your option ) ;; any later version. stumpwm is ...
null
https://raw.githubusercontent.com/stumpwm/stumpwm/7fe59c00810b35843139194525db444a2c26aa72/debug.lisp
lisp
you can redistribute it and/or modify either version 2 , or ( at your option ) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. along with this software; see the file COPY...
Copyright ( C ) 2003 - 2008 This file is part of stumpwm . it under the terms of the GNU General Public License as published by stumpwm is distributed in the hope that it will be useful , You should have received a copy of the GNU General Public License This file contains the code for debugging stumpw...
db8c9ed22ecc62915a9b1f01def34a0a2661dd27f869f8c60748891c47c20f92
basho/riak_shell
shell_EXT.erl
%% ------------------------------------------------------------------- %% %% The main shell extention file for riak_shell %% Copyright ( c ) 2007 - 2016 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this f...
null
https://raw.githubusercontent.com/basho/riak_shell/afc4b7c04925f8accaa5b32ee0253d8c0ddc5000/src/shell_EXT.erl
erlang
------------------------------------------------------------------- The main shell extention file for riak_shell Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License...
Copyright ( c ) 2007 - 2016 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -...
584c760ed93fbc63e263cec7696f659670ee8486b5fdc921812cceb1707e02cf
skanev/playground
36.scm
SICP exercise 2.36 ; ; The procedure accumulate-n is similar to accumulate except that it takes as its third argument a sequence of sequences , which are all assumed to have the ; same number of elements. It applies the designated accumulation procedure to combine all the first elements of the sequences , all the...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/36.scm
scheme
The procedure accumulate-n is similar to accumulate except that it takes as same number of elements. It applies the designated accumulation procedure to the sequences, and so on, and returns a sequence of the results. For following definition of accumulate-n: nil (cons (accumulate op init <??>) ...
SICP exercise 2.36 its third argument a sequence of sequences , which are all assumed to have the combine all the first elements of the sequences , all the second elements of instance , if s is a sequence containing four sequences , ( ( 1 2 3 ) ( 4 5 6 ) ( 7 8 9 ) ( 10 11 12 ) ) , then the value of ( accumula...
e8541d21f5a6e84998728096471bdf7a770b06233323559cb67d22832ffd5cd7
TokTok/hs-toxcore-c
groupbot.hs
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE StrictData # module Main (main) where import Control.Concurrent (threadDelay) import Control.Exception (AsyncException (UserInterrupt), catch, throwIO) import C...
null
https://raw.githubusercontent.com/TokTok/hs-toxcore-c/afe85eb05810abc8d43ca17e31f49b643f7bc89a/tools/groupbot.hs
haskell
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE StrictData # module Main (main) where import Control.Concurrent (threadDelay) import Control.Exception (AsyncException (UserInterrupt), catch, throwIO) import C...
98e618a1c89b04ab36a2d1ad1f81d63024e858284f658ef14c4f8679ebf87570
sharplispers/linedit
terminal-glue.lisp
Copyright ( c ) 2016 ;; ;; 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 limitation the rights to use, copy, modify, merge, publish, dist...
null
https://raw.githubusercontent.com/sharplispers/linedit/0561c97dfca2f5854fcc66558a567a9875ddcb8f/terminal-glue.lisp
lisp
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, the following conditions: The above copyright notice and this permission notice shall be included EXPRESS OR ...
Copyright ( c ) 2016 " 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 in all copies or substantial portions of the Software . THE SOFTWARE IS...
e125626888ca13fbe7999480c5b7a06091d8b34a0b64bada4c4918f0bd93b61b
linoscope/okasaki-book-ocaml
explicit_min.mli
module Make (Heap : Heap_intf.S) : Heap_intf.S with module Elm = Heap.Elm
null
https://raw.githubusercontent.com/linoscope/okasaki-book-ocaml/e5fc95abe3171621f922b37090e43bf36c366bc3/src/ch3/explicit_min.mli
ocaml
module Make (Heap : Heap_intf.S) : Heap_intf.S with module Elm = Heap.Elm
800643278f39c6417ba1d6ff3a75778f06c88af01e08eb3c000d14fdc5c72077
didierverna/focus
quotation.lisp
;;; quotation.lisp --- Quotation function definition Copyright ( C ) 2015 Author : < > This file is part of FoCus . ;; Copying and distribution of this file, with or without modification, ;; are permitted in any medium without royalty provided the copyright ;; notice and this notice are preserved. This ...
null
https://raw.githubusercontent.com/didierverna/focus/bf2da0220ad0d0a08b52f88a1c843dcb4fb3fbf8/demos/quotation/quotation.lisp
lisp
quotation.lisp --- Quotation function definition Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty. Commentary: Code:
Copyright ( C ) 2015 Author : < > This file is part of FoCus . (in-package :net.didierverna.focus.demos.quotation) (in-format-table :net.didierverna.focus.demos.quotation) (defun quotation (who quotation) (format t "As ~A would say: ~`.~%" who quotation)) quotation.lisp ends here
ab00f558c23bd22e3d12b17aed0b9d6b4916ed98c701945b4d53f80a8552212f
codinuum/cca
ulexer.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/langs/verilog/parsing/src/ulexer.ml
ocaml
"`protected", PP_PROTECTED; "`endprotected", PP_ENDPROTECTED; SV2005 SV2005 SV2005 SV2005 SV2005 SV2005 SV2009 SV2005 SV2005 SV2005 SV2005 SV2005 SV2005 V2001 SV2005 SV2005 SV2005 SV2005 SV2005 SV2005 SV2005 V2001 SV2005 SV2009 SV2005 SV2005 V...
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
3e71a32e4e1b09e36692205de446c4c3c9dc78be890901334436816801e4379c
wilkerlucio/pathom
typicons.cljs
(ns com.wsscode.fulcro.ui.icons.typicons (:refer-clojure :exclude [divide filter key map time]) (:require ["react-icons/lib/ti" :as ti] [fulcro.client.dom :as dom] [com.wsscode.fulcro.ui.core :as uc])) (def adjust-brightness (uc/wrap-simple ti/TiAdjustBrightness)) (def adjust-contrast (uc/w...
null
https://raw.githubusercontent.com/wilkerlucio/pathom/4ec25055d3d156241e9174d68ec438c93c971b9b/workspaces/src/com/wsscode/fulcro/ui/icons/typicons.cljs
clojure
(ns com.wsscode.fulcro.ui.icons.typicons (:refer-clojure :exclude [divide filter key map time]) (:require ["react-icons/lib/ti" :as ti] [fulcro.client.dom :as dom] [com.wsscode.fulcro.ui.core :as uc])) (def adjust-brightness (uc/wrap-simple ti/TiAdjustBrightness)) (def adjust-contrast (uc/w...
d37c332a08422b2c865410c3af0f1b7a8002dbbc81666d7a3bae561e4ef0da0d
rowangithub/DOrder
apache-get-tag.ml
let rec loopb t tagbuf_len = if t = tagbuf_len then let _ = assert (0 <= t) in let _ = assert (t <= tagbuf_len) in () else if (Random.bool ()) then if (Random.bool ()) then let _ = assert (0 <= t) in let _ = assert (t <= tagbuf_len) in let t = t + 1 in if t = tagbuf_len then let _ = assert (0...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/icfp/apache-get-tag.ml
ocaml
let rec loopb t tagbuf_len = if t = tagbuf_len then let _ = assert (0 <= t) in let _ = assert (t <= tagbuf_len) in () else if (Random.bool ()) then if (Random.bool ()) then let _ = assert (0 <= t) in let _ = assert (t <= tagbuf_len) in let t = t + 1 in if t = tagbuf_len then let _ = assert (0...
38000fcf322f59b483d3156bfab882574073e328082b126afc349c7ecd7ac878
hiroshi-unno/coar
dimReducer.ml
open Core open Common open Common.Ext open Ast open Ast.LogicOld module Make (Verbose : Debug.Config.ConfigType) = struct module Debug = Debug.Make (Verbose) type clause = Atom.t Set.Poly.t * Atom.t Set.Poly.t * Formula.t * (Ident.tvar, int) Hashtbl.Poly.t(* ns * ps * phi * tvar_occur_times *) type erasure = ...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/PCSat/dimReducer.ml
ocaml
ns * ps * phi * tvar_occur_times Debug.print @@ lazy (sprintf "src_id_of: %d" id); Debug.print @@ lazy (sprintf "step:%d i:%d" step i); note that phis may contain variables with the same name but different types
open Core open Common open Common.Ext open Ast open Ast.LogicOld module Make (Verbose : Debug.Config.ConfigType) = struct module Debug = Debug.Make (Verbose) type erasure = (Ident.pvar, (int * int) Set.Poly.t) Map.Poly.t type direct = RAF | FAR let enable = true let id = ref None let is_raf = function ...
9c3d3a9696f8f087c594e2e912cd2fee7fb35013a0920ee663ffcba2c7296bda
haskell-gi/haskell-gi
Type.hs
{-# LANGUAGE RecordWildCards, PatternGuards #-} -- | Parsing type information from GIR files. module Data.GI.GIR.Type ( parseType , queryCType , parseCType , queryElementCType , parseOptionalType ) where import Data.Maybe (catMaybes) #if !MIN_VERSION_base(4,11,0) import Data.Monoid ((<>)) #endi...
null
https://raw.githubusercontent.com/haskell-gi/haskell-gi/fa7628d3d56c3b95f9730cbea2ee395b176d6e9c/lib/Data/GI/GIR/Type.hs
haskell
# LANGUAGE RecordWildCards, PatternGuards # | Parsing type information from GIR files. Data.GI.GIR.BasicTypes), if possible. | The different array types. | A C array | A hash table. | Parse a `GClosure` declaration. the type of the elements. In these cases we report them as pointers. A TInterface type (basical...
module Data.GI.GIR.Type ( parseType , queryCType , parseCType , queryElementCType , parseOptionalType ) where import Data.Maybe (catMaybes) #if !MIN_VERSION_base(4,11,0) import Data.Monoid ((<>)) #endif import Data.Text (Text) import qualified Data.Text as T import Foreign.Storable (sizeOf) imp...
161ad6e6b717e73e37dfafc1a7cc4a50062e88b04b1676932e1407a05ebfd43f
returntocorp/semgrep
Skip_code.mli
type skip = (* mostly to avoid parsing errors messages *) | Dir of Common.dirname | File of Common.filename | DirElement of Common.dirname | SkipErrorsDir of Common.dirname val load : Common.filename -> skip list (* Return selected paths (unchanged) and excluded files (real paths including the root). ...
null
https://raw.githubusercontent.com/returntocorp/semgrep/dea6ebd8e95d696c04b53c10e019f72dd8908a83/libs/lib_parsing/Skip_code.mli
ocaml
mostly to avoid parsing errors messages Return selected paths (unchanged) and excluded files (real paths including the root). root root returns true if we should skip the file for errors readable
type skip = | Dir of Common.dirname | File of Common.filename | DirElement of Common.dirname | SkipErrorsDir of Common.dirname val load : Common.filename -> skip list val filter_files : skip list -> Common.filename list -> Common.filename list * Common.filename list TODO : explain why ' root ' is ...
938ea1fe11a15765216b3660badf8ba01b83fe48fd3916b7f63a2e166214d012
agda/agda
ToTreeless.hs
module Agda.Compiler.ToTreeless ( toTreeless , closedTermToTreeless ) where import Prelude hiding ((!!)) import Control.Arrow ( first ) import Control.Monad ( filterM, foldM, forM, zipWithM ) import Control.Monad.Reader ( MonadReader(..), asks, ReaderT, runReaderT ) import Control.Monad.Trans ( ...
null
https://raw.githubusercontent.com/agda/agda/bbd5314e1cf90c8d84f48cbb2d2443190c80a098/src/full/Agda/Compiler/ToTreeless.hs
haskell
| Recompile clauses with forcing translation turned on. | Converts compiled clauses to treeless syntax. Note: Do not use any of the concrete names in the returned term for identification purposes! If you wish to do so, transformation. so recursive inlining doesn't loop, but not for always inlined functions, sin...
module Agda.Compiler.ToTreeless ( toTreeless , closedTermToTreeless ) where import Prelude hiding ((!!)) import Control.Arrow ( first ) import Control.Monad ( filterM, foldM, forM, zipWithM ) import Control.Monad.Reader ( MonadReader(..), asks, ReaderT, runReaderT ) import Control.Monad.Trans ( ...
0956d36c1c26af65c88f30bc13c0b1e1edf490f4fb5d2df715cfc2efac92a158
monadfix/tagged-aeson
Tagged.hs
module Data.Aeson.Tagged ( -- * Classes FromJSON(..), ToJSON(..), * Interop between aeson and tagged - aeson Aeson, TaggedAeson(..), fromTaggedAeson, -- * Template Haskell deriveJSON, deriveFromJSON, deriveToJSON, -- * 'using' Using(..), -- * Parsing combinators ...
null
https://raw.githubusercontent.com/monadfix/tagged-aeson/230f0a813d7caa48b70762c091657cc67fbdde67/lib/Data/Aeson/Tagged.hs
haskell
* Classes * Template Haskell * 'using' * Parsing combinators * Encoding combinators * Instance-less ** Lists ** 'NE.NonEmpty' ** 'V.Vector' ** 'S.Set' * Patterns * Internals TODO: add decode and friends
module Data.Aeson.Tagged ( FromJSON(..), ToJSON(..), * Interop between aeson and tagged - aeson Aeson, TaggedAeson(..), fromTaggedAeson, deriveJSON, deriveFromJSON, deriveToJSON, Using(..), (.:), (.:?), (.:!), withObject, withText, withArray, withScientific, withBool, (...
7f96e959264374014f623613290d09582571013e31ee87be25aebdfabd24740e
clash-lang/clash-compiler
TopEntityGeneration.hs
# OPTIONS_GHC -Wwarn # # LANGUAGE CPP # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Clash.Tests.TopEntityGeneration where import Language.Haskell.TH.Syntax (unTypeQ) import Test.Tasty import Test.Tasty.HUnit import Clash.Prelude hiding (undefin...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/clash-prelude/tests/Clash/Tests/TopEntityGeneration.hs
haskell
# LANGUAGE GADTs # This splice is needed to make sure TH.names are in the type environment during reify for the expected failure cases.
# OPTIONS_GHC -Wwarn # # LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Clash.Tests.TopEntityGeneration where import Language.Haskell.TH.Syntax (unTypeQ) import Test.Tasty import Test.Tasty.HUnit import Clash.Prelude hiding (undefined) import Clash.Annota...
b78e1ef248df6b69d4650273fee3b6ae5406d4cf7a88d4df8e8c3ad0cb178fae
tonyg/rmacs
editor.rkt
#lang racket/base (provide (except-out (struct-out editor) editor) make-editor configure-fresh-buffer! find-buffer window-layout open-window close-other-windows close-window resize-window select-window windows-for-buffer ...
null
https://raw.githubusercontent.com/tonyg/rmacs/8c99dd5dfa22f1f34707bbe957de268dc6a7a632/rmacs/editor.rkt
racket
Tty (Option Window) (Option (List Layout)) Buffer Window (Option Buffer) buffers tty windows active-window running? default-modeset layout last-command echo-area mini-window active-events recursive-edit locals can't scale fixed-size windows Answers #t if it waited the full length of time. It is sa...
#lang racket/base (provide (except-out (struct-out editor) editor) make-editor configure-fresh-buffer! find-buffer window-layout open-window close-other-windows close-window resize-window select-window windows-for-buffer ...
d4e138e02f5bf0329b5dec05a51cb7b386831dd6980f3002c090b47a6709f337
sirherrbatka/statistical-learning
types.lisp
(cl:in-package #:statistical-learning.omp) (defclass parameters (sl.ensemble:fundamental-pruning-algorithm) ((%number-of-trees-selected :initarg :number-of-trees-selected :reader number-of-trees-selected) (%sample-size :initarg :sample-size :initform nil ...
null
https://raw.githubusercontent.com/sirherrbatka/statistical-learning/d92651a2391edc15658dbaef5517bac91b084ec0/source/omp/types.lisp
lisp
(cl:in-package #:statistical-learning.omp) (defclass parameters (sl.ensemble:fundamental-pruning-algorithm) ((%number-of-trees-selected :initarg :number-of-trees-selected :reader number-of-trees-selected) (%sample-size :initarg :sample-size :initform nil ...
8cbd36591fd1dc927c32af72f1a39a259787ba8dbf3653bbeebbb0052297fa7a
liamoc/wizards
LinePrewritten.hs
# LANGUAGE FlexibleInstances , FlexibleContexts , UndecidableInstances , MultiParamTypeClasses , Trustworthy # module System.Console.Wizard.Shim.LinePrewritten ( -- $module ) where import System.Console.Wizard.Internal -- $module -- This module exports a shim in...
null
https://raw.githubusercontent.com/liamoc/wizards/55795fdadda0b5a5c1769535bc682e3683d27340/System/Console/Wizard/Shim/LinePrewritten.hs
haskell
$module $module This module exports a shim instance of 'Run' to make all back-ends that support 'Line' support 'LinePrewritten' simply by ignoring the default text. Don't import this if you're using a back-end that already supports 'LinePrewritten'.
# LANGUAGE FlexibleInstances , FlexibleContexts , UndecidableInstances , MultiParamTypeClasses , Trustworthy # ) where import System.Console.Wizard.Internal instance (Run m Line) => Run m LinePrewritten where runAlgebra (LinePrewritten p s1 s2 w) = runAlgebra (Line ...
5005a3fbdb595e3a44ab0f026bab44b57e5e72373acbc65083d0f6fba1d2eb27
klutometis/clrs
linked-hash.scm
(define-record-type :lh-table (make-lh-table/internal table hash free) lh-table? (table lh-table) (hash lh-table-hash) (free lh-table-free set-lh-table-free!)) (define-record-type :lh-slot (make-lh-slot flag p1 p2) lh-slot? (flag lh-slot-flag set-lh-slot-flag!) (p1 lh-slot-p1 set-lh-slot-p1!) (p2 l...
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/11.2/linked-hash.scm
scheme
(define-record-type :lh-table (make-lh-table/internal table hash free) lh-table? (table lh-table) (hash lh-table-hash) (free lh-table-free set-lh-table-free!)) (define-record-type :lh-slot (make-lh-slot flag p1 p2) lh-slot? (flag lh-slot-flag set-lh-slot-flag!) (p1 lh-slot-p1 set-lh-slot-p1!) (p2 l...
b4d33198e88c05426521bed127f424de4c09b8604a4fa1f50c2ae635f746ed23
nervous-systems/chemtrack-example
template.cljs
(ns chemtrack.frontend.template (:require [clojure.walk :as walk])) (def substitute walk/prewalk-replace) (def form-element [:li.list-group-item.periodic {:key :chem/value} :chem/name]) (def sighting-element [:div.col-xs-1.periodic {:key :chem/value} :chem/name]) (def form [:div.modal.fade.form-modal {:tabI...
null
https://raw.githubusercontent.com/nervous-systems/chemtrack-example/b547a0a42c678704a68a9889d22900e5490cdcf0/frontend/chemtrack/frontend/template.cljs
clojure
(ns chemtrack.frontend.template (:require [clojure.walk :as walk])) (def substitute walk/prewalk-replace) (def form-element [:li.list-group-item.periodic {:key :chem/value} :chem/name]) (def sighting-element [:div.col-xs-1.periodic {:key :chem/value} :chem/name]) (def form [:div.modal.fade.form-modal {:tabI...
25ca294a3969a11b1ff0bc5a2780192896d967722e3933d04b527718a00bc29c
nathell/clj-tagsoup
tagsoup.clj
(ns pl.danieljanus.tagsoup (:require [clojure.zip :as zip] [clojure.xml :as xml] [clojure.data.xml :as lazy-xml]) (:import (org.ccil.cowan.tagsoup Parser) (java.net URI URL MalformedURLException Socket) (java.io InputStream File FileInputStream ByteArrayInputStream Buff...
null
https://raw.githubusercontent.com/nathell/clj-tagsoup/358358493f8c96b41e8fd30ad70becf146a310aa/src/pl/danieljanus/tagsoup.clj
clojure
(ns pl.danieljanus.tagsoup (:require [clojure.zip :as zip] [clojure.xml :as xml] [clojure.data.xml :as lazy-xml]) (:import (org.ccil.cowan.tagsoup Parser) (java.net URI URL MalformedURLException Socket) (java.io InputStream File FileInputStream ByteArrayInputStream Buff...
43ba877893d36e45258dc03b69acd5628ddf6f6b774e7597d44db94042eb96b3
huangz1990/SICP-answers
test-23-next.scm
(load "test-manager/load.scm") (load "23-next.scm") (define-each-check (= 3 (next 2)) (= 5 (next 3)) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/test-23-next.scm
scheme
(load "test-manager/load.scm") (load "23-next.scm") (define-each-check (= 3 (next 2)) (= 5 (next 3)) ) (run-registered-tests)
a388c9344ae74ab2fc26e05982888f6c29c9251ee18349037d388c25e9d1d785
erlang/otp
ssh_daemon_channel.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2013 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/eccc556e79f315d1f87c10fb46f2c4af50a63f20/lib/ssh/src/ssh_daemon_channel.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2013 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , over SSH -module(ssh_daemon_channel). API to server side channel that can be plugged into the erlang ssh daeme...
151de0ea2fb939843eb72e863f44e6873cacbbdcc9eddd0247be1eef72f02c00
endobson/racket-grpc
alarm.rkt
#lang racket/base (require "base-lib.rkt" "timespec.rkt" (submod "timespec.rkt" unsafe) "completion-queue.rkt" (submod "completion-queue.rkt" unsafe) ffi/unsafe ffi/unsafe/alloc (rename-in racket/contract [-> c:->])) (provide (contract-out ;; Grpc alarms [grpc-alarm-create (c:-> grpc...
null
https://raw.githubusercontent.com/endobson/racket-grpc/7f3cca4b66f71490236c8db40f0011595f890fa0/ffi/alarm.rkt
racket
Grpc alarms Completion alarm The event, and a reference to the original alarm to ensure that it isn't destroyed until it fires.
#lang racket/base (require "base-lib.rkt" "timespec.rkt" (submod "timespec.rkt" unsafe) "completion-queue.rkt" (submod "completion-queue.rkt" unsafe) ffi/unsafe ffi/unsafe/alloc (rename-in racket/contract [-> c:->])) (provide (contract-out [grpc-alarm-create (c:-> grpc-completion-queue? ...
8589654e37a03402d2c56f1876f02c9a52f4951f979ff70665aacb9245dff320
dryewo/cyrus
project.clj
(defproject {{raw-name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [cyrus/dovetail "0.3.0"] [cheshire "5.8.1"] [function...
null
https://raw.githubusercontent.com/dryewo/cyrus/880c842e0baa11887854ec3d912c044a2a500449/resources/leiningen/new/cyrus/project.clj
clojure
(defproject {{raw-name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [cyrus/dovetail "0.3.0"] [cheshire "5.8.1"] [function...
fa5fd32891668314d78f31c1e5ba5333e837aa4e6dc197c4c8500bd46bbb5dfd
ku-fpg/blank-canvas
Rotate_Transform.hs
{-# LANGUAGE OverloadedStrings #-} module Rotate_Transform where import Graphics.Blank ( 578,200 ) main :: IO () main = blankCanvas 3000 $ \ context -> do send context $ do let rectWidth = 150; let rectHeight = 75; translate(width context / 2, height context / 2); rotate (pi/4); ...
null
https://raw.githubusercontent.com/ku-fpg/blank-canvas/39915c17561106ce06e1e3dcef85cc2e956626e6/wiki-suite/Rotate_Transform.hs
haskell
# LANGUAGE OverloadedStrings #
module Rotate_Transform where import Graphics.Blank ( 578,200 ) main :: IO () main = blankCanvas 3000 $ \ context -> do send context $ do let rectWidth = 150; let rectHeight = 75; translate(width context / 2, height context / 2); rotate (pi/4); fillStyle "blue"; ...
6fc15417d6fd7aaa509a8ec80a2448cbad84d540971e429f794317a51c35ed2a
jay-kumogata/MonadChip8
CPU.hs
-- ----------------------------------------------------------------- -- -- -- CPU.hs : CHIP-8 -- -- -- 2010/12/17 jay1905 ( based on 's implementation , -- ...
null
https://raw.githubusercontent.com/jay-kumogata/MonadChip8/4af38bd6c678ba367d1c5afeff142caea41d62ec/CPU.hs
haskell
----------------------------------------------------------------- -- -- -- -- --------------------------...
module CPU ( CPU, initCPU, execCPU, execCPU10, memRead, memWrite, ioPPU, ioIOU, ) where import Data.Bits import Data.Int import Data.Word import Data.Array import Control.Monad import Text.Printf import System.IO import System.Random import Data.ByteString.Internal import PPU i...
0635357639f845ef578b9cccc8da696c1923320018faff43ee5023c010be9d6d
emnh/glsl-graph
core.cljs
(ns ^:figwheel-always glsl-graph.core (:require-macros [glsl-graph.macros :as macros :refer [defcom]] ) (:require [clojure.set :as cset] [cats.core :as m] [com.stuartsierra.component :as component] [javelin.core :refer [cell] :refer-macros [cell= dosync]] [jayq.core :as jayq :refer [$]]...
null
https://raw.githubusercontent.com/emnh/glsl-graph/a2739cdc8c18957cae6fa877e42508e11defe3b8/src/glsl_graph/core.cljs
clojure
JS Libraries COMMON (stop [component] (assoc component :data nil))) COMPONENTS Make easier range. Had problems with float values in dat.gui. update velocities update positions swap buffers and iterate rotate scene render to screen swap buffers and iterate (def graph-url "") x fixed ...
(ns ^:figwheel-always glsl-graph.core (:require-macros [glsl-graph.macros :as macros :refer [defcom]] ) (:require [clojure.set :as cset] [cats.core :as m] [com.stuartsierra.component :as component] [javelin.core :refer [cell] :refer-macros [cell= dosync]] [jayq.core :as jayq :refer [$]]...
3b8575dde90ae3dec7c4e8c95fd31e40d83cd42abb751bfd9b1177dd0836935b
quchen/prettyprinter
String.hs
module Prettyprinter.Render.String ( renderString, renderShowS, ) where import Prettyprinter.Internal (SimpleDocStream, renderShowS) -- | Render a 'SimpleDocStream' to a 'String'. renderString :: SimpleDocStream ann -> String renderString s = renderShowS s ""
null
https://raw.githubusercontent.com/quchen/prettyprinter/11e8bf12aed2f698e619c3a8c07eca3af4da1aed/prettyprinter/src/Prettyprinter/Render/String.hs
haskell
| Render a 'SimpleDocStream' to a 'String'.
module Prettyprinter.Render.String ( renderString, renderShowS, ) where import Prettyprinter.Internal (SimpleDocStream, renderShowS) renderString :: SimpleDocStream ann -> String renderString s = renderShowS s ""
7aef789d3691105589ada13449640390e06de13f75496ece0e7ecc48dd1a8f73
tfausak/strive
Authentication.hs
# LANGUAGE TemplateHaskell # -- | </> module Strive.Types.Authentication ( TokenExchangeResponse (..), DeauthorizationResponse (..), ) where import Data.Aeson.TH (deriveFromJSON) import Data.Text (Text) import Strive.Internal.TH (options) import Strive.Types.Athletes (AthleteSummary) -- | </#example-response...
null
https://raw.githubusercontent.com/tfausak/strive/82294daca85ca624ca1e746d7aa4c01d57233356/source/library/Strive/Types/Authentication.hs
haskell
| </> | </#example-response> | </#example-response-1>
# LANGUAGE TemplateHaskell # module Strive.Types.Authentication ( TokenExchangeResponse (..), DeauthorizationResponse (..), ) where import Data.Aeson.TH (deriveFromJSON) import Data.Text (Text) import Strive.Internal.TH (options) import Strive.Types.Athletes (AthleteSummary) data TokenExchangeResponse = Toke...
d009201435b5a100e31439efd88c04db50ff5bf353219d4dff3da00eeb5ed834
dedbox/racket-neuron
tcp.rkt
#lang racket/base (require neuron/codec neuron/evaluation neuron/event neuron/process neuron/process/control neuron/process/messaging neuron/socket neuron/syntax racket/contract/base racket/function racket/tcp) (provide (contract-out [tcp-socket? predicate/c] [tcp-socket (-> input-port? output-port? t...
null
https://raw.githubusercontent.com/dedbox/racket-neuron/a8ecafec0c6398c35423348cb02ec229869c8b15/neuron-lib/network/tcp.rkt
racket
#lang racket/base (require neuron/codec neuron/evaluation neuron/event neuron/process neuron/process/control neuron/process/messaging neuron/socket neuron/syntax racket/contract/base racket/function racket/tcp) (provide (contract-out [tcp-socket? predicate/c] [tcp-socket (-> input-port? output-port? t...
4a354036a8cf273703cf801e32ec4133b8dacfd98a934a3be10cdf1a409362e3
turquoise-hexagon/euler
solution.scm
(import (chicken fixnum)) (define (solve n m) (let-values (((lim _) (exact-integer-sqrt n))) (let ((mem (make-vector (+ lim 1) 1))) (vector-set! mem 0 0) (let loop ((i lim)) (unless (fx= i 0) (let loop ((t 2) (acc 0)) (if (fx> t (fx/ lim i)) (vector-set! ...
null
https://raw.githubusercontent.com/turquoise-hexagon/euler/4c40455b3f78b4b6bb7409e8fe7323dda74b2a63/src/spoilers/745/solution.scm
scheme
(import (chicken fixnum)) (define (solve n m) (let-values (((lim _) (exact-integer-sqrt n))) (let ((mem (make-vector (+ lim 1) 1))) (vector-set! mem 0 0) (let loop ((i lim)) (unless (fx= i 0) (let loop ((t 2) (acc 0)) (if (fx> t (fx/ lim i)) (vector-set! ...
e192b0c864bae1d4423c7b54adf9eea122d9838580bd7bc0501b3fcc848baf69
SahilKang/cl-rdkafka
posix-grovel.lisp
Copyright ( C ) 2018 - 2020 < > ;;; ;;; This file is part of cl-rdkafka. ;;; ;;; cl-rdkafka 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) any l...
null
https://raw.githubusercontent.com/SahilKang/cl-rdkafka/4d0b6f7f9b102769cb91a020e4e192a2ea066e0b/src/high-level/event-io/posix-grovel.lisp
lisp
This file is part of cl-rdkafka. cl-rdkafka is free software: you can redistribute it and/or modify (at your option) any later version. cl-rdkafka 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 PURPOS...
Copyright ( C ) 2018 - 2020 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package #:cl-rdkafka) (include "poll.h") (include "errno.h") (const...
e53c72253edfab6368cd0c4e6c0e56aea83ac4ff43f3b989c5d5fcac72e3067f
sir4ur0n/blog
User.hs
module PolysemyFullExample.User where import Data.Aeson import Database.SQLite.Simple import GHC.Generics data User = User { name :: String, age :: Int, email :: String } deriving (Eq, Show, Generic) instance ToJSON User instance FromJSON User instance FromRow User where fromRow = User <$> field <*...
null
https://raw.githubusercontent.com/sir4ur0n/blog/789d695ae266f953952fb19f1b85098d588bd793/code-examples/src/PolysemyFullExample/User.hs
haskell
module PolysemyFullExample.User where import Data.Aeson import Database.SQLite.Simple import GHC.Generics data User = User { name :: String, age :: Int, email :: String } deriving (Eq, Show, Generic) instance ToJSON User instance FromJSON User instance FromRow User where fromRow = User <$> field <*...