_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
c66c025e8d612f3a2c44bb508bfb6118ccf98909185c4364f7b50117071409b3
ejgallego/coq-lsp
workspace.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * INRIA , CNRS and contributors - Copyright 1999 - 2018 (* <O___,, * (see CREDITS file for the list of authors) *) \VV/ * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/8ba9284e6847c2abe61a7b3858e89aa433496b36/coq/workspace.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team <O___,, * (see CREDITS file for the list of authors) // * This file is distributed under the terms of the * (see LICENSE file for...
v * INRIA , CNRS and contributors - Copyright 1999 - 2018 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser General Public License Version 2.1 Copyright 2019 MINES ParisTech -- ...
0b61e0c3f8b5d2127107420841c25393f6130b1d92888972c0316a96e9a0ed75
dawidovsky/IIUWr
11.rkt
#lang racket ;; --------------------------------Sufiksy------------------------------------- (define/contract (suffixes xs) (let ([a (new-∀/c 'a)]) (-> (listof a) (listof (listof a)))) (if (null? xs) (list null) (cons xs (suffixes (cdr xs))))) ;; ------------------------------Sqrt----------------...
null
https://raw.githubusercontent.com/dawidovsky/IIUWr/73f0f65fb141f82a05dac2573f39f6fa48a81409/MP/Pracownia11_12/11.rkt
racket
--------------------------------Sufiksy------------------------------------- ------------------------------Sqrt------------------------------------------- ----------------------------Filter----------------------------------------- (define-values/invoke-unit/infer monoid-int@) ----------------------------Quickckeck-...
#lang racket (define/contract (suffixes xs) (let ([a (new-∀/c 'a)]) (-> (listof a) (listof (listof a)))) (if (null? xs) (list null) (cons xs (suffixes (cdr xs))))) (define/contract (dist x y) (-> number? number? number?) (abs (- x y))) (define/contract (average x y) (-> number? number? nu...
8e2dd462a1062f00b1efb003f711c0f98ba6e47ec8bba8e6f76f02c7d6ea28db
MassD/mongo
mongoUtils.ml
let print_buffer s = String.iter (fun c -> let i = Char.code c in if i < 10 then Printf.printf "\\x0%X" i else Printf.printf "\\x%X" i) s; print_endline "";; let cur_timestamp () = Int32.of_float (Unix.time());; let encode_int32 buf v = for i = 0 to 3 do let b = Int32.logand 255l (Int32.shift_right v (i*8...
null
https://raw.githubusercontent.com/MassD/mongo/054779d843a227d486b55dff6ebc915b44906b0d/src/mongoUtils.ml
ocaml
print_int high_byte;print_endline "";
let print_buffer s = String.iter (fun c -> let i = Char.code c in if i < 10 then Printf.printf "\\x0%X" i else Printf.printf "\\x%X" i) s; print_endline "";; let cur_timestamp () = Int32.of_float (Unix.time());; let encode_int32 buf v = for i = 0 to 3 do let b = Int32.logand 255l (Int32.shift_right v (i*8...
8c9654550d6a65cb09e0781ca0f2e1682beb78f12fe43045bea90d458654acdc
neongreen/haskell-ex
solve.hs
data Expr = Number Int | Add Expr Expr | Sub Expr Expr | Mul Expr Expr | Div Expr Expr deriving( Show ) sampleExpr = Mul (Number (-2)) ( Mul (Number 3) (Add (Number 5) (Number 7)) ) evalExpr :: Expr -> Int evalExpr ( Number n ) = n evalExpr ( Add l r ) = ( evalExpr l ) + ( evalExpr r ) evalExpr (...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week3/expr/balac/solve.hs
haskell
data Expr = Number Int | Add Expr Expr | Sub Expr Expr | Mul Expr Expr | Div Expr Expr deriving( Show ) sampleExpr = Mul (Number (-2)) ( Mul (Number 3) (Add (Number 5) (Number 7)) ) evalExpr :: Expr -> Int evalExpr ( Number n ) = n evalExpr ( Add l r ) = ( evalExpr l ) + ( evalExpr r ) evalExpr (...
4748fffbe4e9aac753fe3a888abf5f4ca4a4be664627fef9595349844d686128
goolord/ditto
Types.hs
# LANGUAGE BangPatterns , , DeriveFunctor , , , MultiParamTypeClasses , OverloadedStrings , PatternSynonyms , ExplicitForAll , TypeOperators # BangPatterns , DeriveFoldable , DeriveFunctor , DeriveTraversable , GeneralizedNewtypeDeriving , MultiParamTypeClasses , Ov...
null
https://raw.githubusercontent.com/goolord/ditto/eea0b642b143be8d0c9dea1d0d9dc47c6bbb1ed4/src/Ditto/Types.hs
haskell
| Types relevant to forms and their validation. * FormId * Form result types ---------------------------------------------------------------------------- FormId ---------------------------------------------------------------------------- | An ID used to identify forms # UNPACK # ^ Global prefix for the form # UNP...
# LANGUAGE BangPatterns , , DeriveFunctor , , , MultiParamTypeClasses , OverloadedStrings , PatternSynonyms , ExplicitForAll , TypeOperators # BangPatterns , DeriveFoldable , DeriveFunctor , DeriveTraversable , GeneralizedNewtypeDeriving , MultiParamTypeClasses , Ov...
6c27125674dbfe2551d156946e435600eaa749422585aacac435a2db9a455e69
exercism/clojurescript
example.cljs
(ns raindrops) (def ^:private n->P {3 "Pling" 5 "Plang" 7 "Plong"}) (defn- factors-of [n] (filter integer? (map (partial / n) (range 1 (inc (/ n 2)))))) (defn- one-of-them [nsq them] (filter them nsq)) (defn- P-of-nsq [nsq] (apply str (map n->P (reverse nsq)))) (defn- if-there-is-no-P [r n] (if (em...
null
https://raw.githubusercontent.com/exercism/clojurescript/7700a33e17a798f6320aad01fb59a637bd21e12b/exercises/practice/raindrops/.meta/src/example.cljs
clojure
(ns raindrops) (def ^:private n->P {3 "Pling" 5 "Plang" 7 "Plong"}) (defn- factors-of [n] (filter integer? (map (partial / n) (range 1 (inc (/ n 2)))))) (defn- one-of-them [nsq them] (filter them nsq)) (defn- P-of-nsq [nsq] (apply str (map n->P (reverse nsq)))) (defn- if-there-is-no-P [r n] (if (em...
fde6c8ca64be4c1d4d147335a7ce0d3f52af003decd9ab6ee5340e0606006474
cmahon/interactive-brokers
Requests-Simple.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - unused - do - bind # module Main where import Control.Concurrent (threadDelay) import Control.Monad import Control.Monad.IO.Class import Data.Default import Data.Time import System.IO ...
null
https://raw.githubusercontent.com/cmahon/interactive-brokers/cf6c1128b3f44559b868bc346e76354f8ca4add6/executable/Requests-Simple.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- Reference data ----------------------------------------------------------------------------- Requests ----------------------------------------------------------------------------- Main
# OPTIONS_GHC -fno - warn - unused - do - bind # module Main where import Control.Concurrent (threadDelay) import Control.Monad import Control.Monad.IO.Class import Data.Default import Data.Time import System.IO (stdout) import ...
d7b2759d9b857db761dcdb8424bdb271996489b7ec3a4b23fc27c2157b434347
tfausak/monadoc-5
ApplicationSpec.hs
module Monadoc.Server.ApplicationSpec where import Monadoc.Prelude import Test.Hspec spec :: Spec spec = describe "Monadoc.Server.Application" <| do it "needs tests" pending
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/test/Monadoc/Server/ApplicationSpec.hs
haskell
module Monadoc.Server.ApplicationSpec where import Monadoc.Prelude import Test.Hspec spec :: Spec spec = describe "Monadoc.Server.Application" <| do it "needs tests" pending
f9b4a57445bd211c9f367529409b97f0a90403abbccd920bee1466440f738028
satori-com/mzbench
4_add_cloud.erl
#!/usr/bin/env escript main([BenchDir]) -> StatusFile = filename:join(BenchDir, "status"), case file:consult(StatusFile) of {ok, [Status]} -> NewStatusContent = io_lib:format("~p.", [migrate(Status)]), ok = file:write_file(StatusFile, NewStatusContent); {error, enoent} -...
null
https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/migrations/4_add_cloud.erl
erlang
#!/usr/bin/env escript main([BenchDir]) -> StatusFile = filename:join(BenchDir, "status"), case file:consult(StatusFile) of {ok, [Status]} -> NewStatusContent = io_lib:format("~p.", [migrate(Status)]), ok = file:write_file(StatusFile, NewStatusContent); {error, enoent} -...
f619c7f794e6ecf8b020edd4623ea981607905760686bd91d63fb4a604786c0c
screenshotbot/screenshotbot-oss
mail.lisp
;; Copyright 2018-Present Modern Interpreters Inc. ;; This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (in-package :util) (markup:enable-reader) (defvar *disable-emails* nil) (defun parse-em...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/2372e102c5ef391ed63aa096f678e2ad1df36afe/src/util/mail.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (in-package :util) (markup:enable-reader) (defvar *disable-emails* nil) (defun parse-email-list (s) (cond ((stringp s) (mapcar 'st...
1f3fd1bb443f6660455229b21bea639350125b1fef0a3124df051a7d30066a45
gwkkwg/cl-markdown
framework.lisp
(in-package #:cl-markdown-test) ;;; from ASDF-Install #-:digitool (defun system-namestring (pathname) (namestring (truename pathname))) #+:digitool (defvar *start-up-volume* (second (pathname-directory (truename "ccl:")))) #+:digitool (defun system-namestring (pathname) ;; this tries to adjust the root direct...
null
https://raw.githubusercontent.com/gwkkwg/cl-markdown/098e89251adf3337578aacd0a7b029956efc1478/unit-tests/framework.lisp
lisp
from ASDF-Install this tries to adjust the root directory to eliminate the spurious volume name for the boot file system; it also avoids use of TRUENAME as some applications are for not yet existent files
(in-package #:cl-markdown-test) #-:digitool (defun system-namestring (pathname) (namestring (truename pathname))) #+:digitool (defvar *start-up-volume* (second (pathname-directory (truename "ccl:")))) #+:digitool (defun system-namestring (pathname) (let ((truename (probe-file pathname))) (unless truename ...
4c8c616b9b65aee14194bde763176c25592da15056f7f2176d463fc620d9b9e6
phantomics/seed
form.mode-shape-graph.lisp
;;;; form.mode-shape-graph.lisp (in-package #:seed.ui-model.react) (specify-components graph-shape-view-mode (graph-vector-renderer (:get-initial-state (lambda () (create point 0)) :container-element nil :display-format (lambda (graph index) (let ((index (if index index 0))) ;; (cl :gr gra...
null
https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/seed.ui-spec.form.mode-shape-graph/form.mode-shape-graph.lisp
lisp
form.mode-shape-graph.lisp (cl :gr graph) :permute (lambda (input) (if (and (@ window -drag-source) (@ window -drop-target)) (let* ((over-data nil) (collect-source (lambda (connect monitor) (create connect-drag-source (chain connect (drag-source)) connect-drag-preview (chain connect ...
(in-package #:seed.ui-model.react) (specify-components graph-shape-view-mode (graph-vector-renderer (:get-initial-state (lambda () (create point 0)) :container-element nil :display-format (lambda (graph index) (let ((index (if index index 0))) (chain graph (map (lambda (node) (setf (...
d887163fab5b3bc5da0f7166380910bcf451af634c0dd46e7b3f426f23bd2b91
esl/MongooseIM
mod_amp.erl
@doc MongooseIM / Ejabberd module for ( a subset of ) XEP-0079 support . This work was sponsored by Grindr LLC < a href=" / extensions / xep-0079.html">XEP-0079</a > @author < > 2014 Erlang Solutions , Ltd. -module(mod_amp). -behavior(gen_mod). -behaviour(mongoose_module_metrics). -xep([{xep, 79}, {versio...
null
https://raw.githubusercontent.com/esl/MongooseIM/997ce8cc01dacf8bf1f1f4e3a984ee10f0ce5dd6/src/mod_amp.erl
erlang
API @doc This may eventually be configurable, but for now we return a constant list. @doc hooks helpers
@doc MongooseIM / Ejabberd module for ( a subset of ) XEP-0079 support . This work was sponsored by Grindr LLC < a href=" / extensions / xep-0079.html">XEP-0079</a > @author < > 2014 Erlang Solutions , Ltd. -module(mod_amp). -behavior(gen_mod). -behaviour(mongoose_module_metrics). -xep([{xep, 79}, {versio...
90811dc04e716fe0cfe16e638a2ec0e7926d5055b31c8cf2ab89db735fa9c833
kongo2002/statser
statser_config.erl
Copyright 2017 - 2018 % Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the Li...
null
https://raw.githubusercontent.com/kongo2002/statser/1cb0498f56c97d8a010b979c5163dd2750064e98/src/statser_config.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2017 - 2018 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(statser_config). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -include("statser.hrl"). -export([load_config/0, l...
2099a79baba4a510a5ab4700adbd3aeefe78318d881d7818d0a3f1fc177fba5c
javalib-team/javalib
jCode.ml
* This file is part of Javalib * Copyright ( c)2007 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This software is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License ...
null
https://raw.githubusercontent.com/javalib-team/javalib/0699f904dbb17e87ec0ad6ed0c258a1737e60329/src/jCode.ml
ocaml
AConstNull Access to a local variable Constant loading / it corresponds to instructions *const* and ldc* Arithmetic Use an I/L argument Conversion Use `I of [`L | `F | `D] Conditional jump Unconditional jump Method invocation and return Exceptions and threads Other Exception handler. when a...
* This file is part of Javalib * Copyright ( c)2007 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This software is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License ...
46ce8086668a5f133285f618c0f6dc4e140c9414cd51cb4a03c5f12f355991de
huangz1990/SICP-answers
test-31-pi.scm
(load "test-manager/load.scm") (load "31-pi.scm") (define-each-check (>= 0.01 (abs (- 3.14 (pi 10000)))) ) (run-registered-tests)
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/test-31-pi.scm
scheme
(load "test-manager/load.scm") (load "31-pi.scm") (define-each-check (>= 0.01 (abs (- 3.14 (pi 10000)))) ) (run-registered-tests)
eb3d4a6653c75383907d29dba04fea9e0d13fc3a65d97efc72dd75956c3ca318
ashinn/chibi-scheme
process.scm
(cond-expand (plan9 (define (exit . o) (%exit (if (pair? o) (if (string? (car o)) (car o) (if (eq? #t (car o)) "" "chibi error")) "")))) (else (define (exit . o) (%exit (if (pair? o) (if (integer? (car o)) ...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/658244d64e07a266dd5e39457c24ed16af35d17e/lib/chibi/process.scm
scheme
TODO: get command-line arguments > Replaces the current process with a new image running the program > argument, by convention, should be the file name being executed - > an error is signaled if \var{args} is null. The command and > arguments may be symbols or numbers in addition to strings for we only arrive here i...
(cond-expand (plan9 (define (exit . o) (%exit (if (pair? o) (if (string? (car o)) (car o) (if (eq? #t (car o)) "" "chibi error")) "")))) (else (define (exit . o) (%exit (if (pair? o) (if (integer? (car o)) ...
f84d1c18981f83ea60416d73d0fd47a026f24283d404cacee79e2a71a64f3c3b
RyanGlScott/text-show
GenericSpec.hs
| Module : Spec . GenericSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ tests for ' ConType ' . Module: Spec.GenericSpec Copyright: (C) 2014-2017 Ryan Scott License: BSD-s...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/tests/Spec/GenericSpec.hs
haskell
| Module : Spec . GenericSpec Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ tests for ' ConType ' . Module: Spec.GenericSpec Copyright: (C) 2014-2017 Ryan Scott License: BSD-s...
ee2e64a6f69ca50fb5a496f9c29bcf07898dea928a2281015f9dd0165a9a7aba
upgradingdave/cljs
dev.cljs
(ns up.cookies.dev (:require [devcards.core :as dc :include-macros true] [reagent.core :as r] [up.cookies.core :as c]) (:require-macros [devcards.core :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (deftest unit-tests (testing "Cookies" (is (= false (...
null
https://raw.githubusercontent.com/upgradingdave/cljs/1026b6db905214586fb7e04800df078da19b37cc/src/cljs/up/cookies/dev.cljs
clojure
(ns up.cookies.dev (:require [devcards.core :as dc :include-macros true] [reagent.core :as r] [up.cookies.core :as c]) (:require-macros [devcards.core :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (deftest unit-tests (testing "Cookies" (is (= false (...
6a0cc9c99787284ea26fbf9b491f7ca2e4ea2658e55655a219ed2d2a5b127382
beoliver/clj-arangodb
project.clj
(defproject beoliver/clj-arangodb "0.0.9" :description "A Clojure wrapper for ArangoDB" :url "-arangodb" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src/clojure"] :java-source-paths ["src/java"] :dependencies [[org.clojure/clojure "1.10.1"] [com.ar...
null
https://raw.githubusercontent.com/beoliver/clj-arangodb/a6b2c835278573e2fee3521c63917838e86703eb/project.clj
clojure
(defproject beoliver/clj-arangodb "0.0.9" :description "A Clojure wrapper for ArangoDB" :url "-arangodb" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src/clojure"] :java-source-paths ["src/java"] :dependencies [[org.clojure/clojure "1.10.1"] [com.ar...
df442cc8b644638901cec1f6d2d037c50cd212c2d432292569b6e018c6c236a7
jbclements/molis-hai
use-model.rkt
#lang typed/racket Copyright 2015 < > ;; generating text using a model (require "shared-types.rkt" "huffman.rkt" typed/rackunit) (provide (struct-out Generated) generated->sequence generate generate-sequence invert-tree) ;; represents a generated sequence...
null
https://raw.githubusercontent.com/jbclements/molis-hai/6a335ec73c144f9d8ac538752ca8e6fd0b3b3cce/molis-hai/use-model.rkt
racket
generating text using a model represents a generated sequence, including the chosen initial state and the sequence of transitions. Each is accompanied by the number of bits of entropy used by each decision. convert a generated to a sequence given a model and a list of booleans and a transition function, generate ...
#lang typed/racket Copyright 2015 < > (require "shared-types.rkt" "huffman.rkt" typed/rackunit) (provide (struct-out Generated) generated->sequence generate generate-sequence invert-tree) (define-struct (S T) Generated ([init-state : (List S Natural)] ...
bfecd9f19bf1a9cb1a4f16bfe01ed60f825373f62f25891f91f58f6e9c6c0f0b
rabbitmq/ra
ra_SUITE.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2017 - 2022 VMware , Inc. or its affiliates . All rights reserved . %% -module(ra_SUITE). -compile(nowarn_export_all). -...
null
https://raw.githubusercontent.com/rabbitmq/ra/8346090641d8bef5e4d3f81b40871933ffe456b0/test/ra_SUITE.erl
erlang
The dialyzer catches that the given reply mode is not included in the `ra_server:command_reply_mode()' type: ok = logger:set_application_level(ra, all), ok = logger:set_primary_config(level, all), here we are asserting on the order of received correlations correlations are transient so ok to reuse refs here w...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2017 - 2022 VMware , Inc. or its affiliates . All rights reserved . -module(ra_SUITE). -compile(nowarn_export_all). -compil...
f0ff18487356f84d1daa5eae891487a7c33a951dd7bb423c47654eb7d7d68ba9
nodew/haskell-realworld-example
Config.hs
# LANGUAGE DeriveGeneric # module Conduit.Config where import RIO import Data.Char (toLower) import System.Environment ( getEnv ) import Conduit.Util (exitWithErrorMessage) data Config = Config { cfgPort :: Int , cfgJwk :: Text , cfgConnectString :: ByteString , cfgPoolSize :: Int } deriving (Gen...
null
https://raw.githubusercontent.com/nodew/haskell-realworld-example/f8b9db18ed2229ccec216b1597d1de8de3da0718/src/Conduit/Config.hs
haskell
# LANGUAGE DeriveGeneric # module Conduit.Config where import RIO import Data.Char (toLower) import System.Environment ( getEnv ) import Conduit.Util (exitWithErrorMessage) data Config = Config { cfgPort :: Int , cfgJwk :: Text , cfgConnectString :: ByteString , cfgPoolSize :: Int } deriving (Gen...
fa4bbb6e7daacad5c3b258153f2a86077c1f7f77a1d3f3bc8dc0ea443e1bebc2
jixiuf/helloerlang
mochiweb_comet_chat_app.erl
@author Mochi Media < > mochiweb_comet_chat Mochi Media < > %% @doc Callbacks for the mochiweb_comet_chat application. -module(mochiweb_comet_chat_app). -author("Mochi Media <>"). -behaviour(application). -export([start/2,stop/1]). , _ ) - > ServerRet %% @doc application start callback for mochiweb_com...
null
https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/mochiweb_comet_chat/src/mochiweb_comet_chat_app.erl
erlang
@doc Callbacks for the mochiweb_comet_chat application. @doc application start callback for mochiweb_comet_chat. @doc application stop callback for mochiweb_comet_chat.
@author Mochi Media < > mochiweb_comet_chat Mochi Media < > -module(mochiweb_comet_chat_app). -author("Mochi Media <>"). -behaviour(application). -export([start/2,stop/1]). , _ ) - > ServerRet start(_Type, _StartArgs) -> mochiweb_comet_chat_deps:ensure(), mochiweb_comet_chat_sup:start_link(). ...
019f8b76067f0059da48ecca670c6c289b5b9be8597c58da1bf856b64961fc75
willowtreeapps/wombats-api
finalizers.clj
(ns wombats.game.finalizers (:require [clj-time.core :as t] [clj-time.coerce :as c] [wombats.arena.core :refer [generate-arena]])) (defn- update-cell-metadata [{:keys [meta] :as cell}] (let [meta-update (reduce (fn [meta-acc meta-item] (if (or (not (boolean (...
null
https://raw.githubusercontent.com/willowtreeapps/wombats-api/738e4cc8d7011998695ec85e663f650be71f60ae/src/wombats/game/finalizers.clj
clojure
Always update the frames played stat if they are alive after the round If the wombat is blinded by smoke, update stats Add intermission to current time Decrement the round-number so it stores the last processed round
(ns wombats.game.finalizers (:require [clj-time.core :as t] [clj-time.coerce :as c] [wombats.arena.core :refer [generate-arena]])) (defn- update-cell-metadata [{:keys [meta] :as cell}] (let [meta-update (reduce (fn [meta-acc meta-item] (if (or (not (boolean (...
c32303e20553ad75eb607841c885f4be2518ddf434f5d3fc0964b2a75361e320
Spin1Half/Advent-Of-Coalton-2022
aoc2.lisp
(in-package :coalton-user) " If you can hardcode it in 9 lines , you might as well " -Parker AOC 2022 ;; #+part1 (coalton-toplevel (declare value (String -> Integer)) (define (value str) (cond ((== str "A X") (+ 1 3)) ((== str "A Y") (+ 2 6)) ((== str "A Z") (+ 3 0)) ((== str "B ...
null
https://raw.githubusercontent.com/Spin1Half/Advent-Of-Coalton-2022/51fbd20bdfe4f591e92604f6538add5755137301/aoc2.lisp
lisp
(in-package :coalton-user) " If you can hardcode it in 9 lines , you might as well " -Parker AOC 2022 #+part1 (coalton-toplevel (declare value (String -> Integer)) (define (value str) (cond ((== str "A X") (+ 1 3)) ((== str "A Y") (+ 2 6)) ((== str "A Z") (+ 3 0)) ((== str "B X")...
c4dd1f25bad9fa1f44469f30714ba55145683880f8559dd81ab75d47a6cb9f48
the-dr-lazy/cascade
Monoid.hs
| Module : Cascade . Type . Monoid Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Modul...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-prelude/src/Cascade/Type/Monoid.hs
haskell
| Module : Cascade . Type . Monoid Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Modul...
54a3b24c9d966f25d1374979839dc72a1d6936d073903bcec493061c512ddbe6
brunjlar/simple-plutus
Fungible.hs
{-# LANGUAGE OverloadedStrings #-} module Examples.Fungible where import Plutus -- | Monetary policy for a simple fungible token that can only minted once. fungibleScript :: OutputPtr -- ^ unique output to consume during minting -> Natural -- ^ total supply to be minted -> String ...
null
https://raw.githubusercontent.com/brunjlar/simple-plutus/20fe63533cb5006e4dabce09ef02c3bd960fd3bb/src/Examples/Fungible.hs
haskell
# LANGUAGE OverloadedStrings # | Monetary policy for a simple fungible token that can only minted once. ^ unique output to consume during minting ^ total supply to be minted ^ token name make sure the specified output is consumed make sure the right amount is minted | RESULT : () outputs: <BLANKLINE> TxId...
module Examples.Fungible where import Plutus -> Script fungibleScript ptr supply name = do tx <- txS assertS (anyOf (txInputs % each % iOutputPtr) (== ptr) tx) $ "output " ++ show ptr ++ " not consumed" sid <- ownScriptId let actualSupply = tx ^. txForge % to (tokenAmount $ T...
b095e00efc5c5fa1b051207481172cebfd4d6754ef938d306b74eed4ade9abb7
antoniogarrote/clojure-grizzly-trial
logger.clj
(comment "A multithreaded logger" ) ;; @author ;; (ns com.agh.webserver.framework.logger) (use 'com.agh.utils) (import '(java.io File FileWriter)) (def *logger* (agent {:level 1 :output *out*})) (defn level-name-to-int "Returns a numeric identifier for the levels of the logger" ([level] (let [le...
null
https://raw.githubusercontent.com/antoniogarrote/clojure-grizzly-trial/9282179818cc5247b796dd6eb9ab6ccb721100a3/com/agh/webserver/framework/logger.clj
clojure
(comment "A multithreaded logger" ) @author (ns com.agh.webserver.framework.logger) (use 'com.agh.utils) (import '(java.io File FileWriter)) (def *logger* (agent {:level 1 :output *out*})) (defn level-name-to-int "Returns a numeric identifier for the levels of the logger" ([level] (let [levels {...
e363f5bcf00fb501291c64696e49f87b12dcecbc7be8d2561d38e86fe6cb10ec
janestreet/universe
test_variants_more.ml
open Base [@@@warning "-37"] module Nested_inside_variant = struct type t = A of [ `A of int ] [@@deriving_inline sexp_grammar] let _ = fun (_ : t) -> () let (t_sexp_grammar : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.t) = let (_the_generic_group : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.generic_gr...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/ppx_sexp_conv/test/expect/test_variants_more.ml
ocaml
open Base [@@@warning "-37"] module Nested_inside_variant = struct type t = A of [ `A of int ] [@@deriving_inline sexp_grammar] let _ = fun (_ : t) -> () let (t_sexp_grammar : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.t) = let (_the_generic_group : Ppx_sexp_conv_lib.Sexp.Private.Raw_grammar.generic_gr...
a2d685e43053e751e9f786c6c29230b0b69a7b7637be352843049390de2e4f0b
korya/efuns
env.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/ocamlsrc/compat/3.00/include/env.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : env.mli , v 1.1 2000/05/22 08...
96f9c97b7a6ed646f0fa3ed4bd847faf762fc03a4951235389cc34717ea713f6
binsec/haunted
inputFromFiles.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 (* VERIMAG...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/dse/path_exploration/inputFromFiles.ml
ocaml
************************************************************************ VERIMAG you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 Lesser General Public License as published by the Free Software Foundation , version 2.1 . See the GNU Le...
6465b2b4e2e5ef8d07f184349303eb2d084a90f49d6d8a5a267f01560c082686
clojure/data.zip
xml_test.clj
(ns clojure.data.zip.xml-test (:use [clojure.test] [clojure.data.zip.xml]) (:require [clojure.xml :as xml] [clojure.zip :as zip])) (defn parse-str [s] (zip/xml-zip (xml/parse (new org.xml.sax.InputSource (new java.io.StringReader s))))) (def atom1 (parse-str "...
null
https://raw.githubusercontent.com/clojure/data.zip/552be2917f51f18f3c5fe72a6bb1344a6262ec5c/src/test/clojure/clojure/data/zip/xml_test.clj
clojure
This was in the original code under a comment, but is fails
(ns clojure.data.zip.xml-test (:use [clojure.test] [clojure.data.zip.xml]) (:require [clojure.xml :as xml] [clojure.zip :as zip])) (defn parse-str [s] (zip/xml-zip (xml/parse (new org.xml.sax.InputSource (new java.io.StringReader s))))) (def atom1 (parse-str "...
06a44153f0b9d8e6acdecac5deb15321d30c162906aa174c970966ac3ec113cf
ferdinand-beyer/init
build.clj
(ns build (:refer-clojure :exclude [test]) (:require [clojure.string :as str] [clojure.tools.build.api :as b] [org.corfield.build :as bb])) (def lib 'com.fbeyer/init) (def base-version "0.2") (defn- git [& args] (let [{:keys [exit out]} (b/process {:command-args (into ["git"] arg...
null
https://raw.githubusercontent.com/ferdinand-beyer/init/9f986feea3f49c407c9ae58e6cb97553b349fd29/build.clj
clojure
(ns build (:refer-clojure :exclude [test]) (:require [clojure.string :as str] [clojure.tools.build.api :as b] [org.corfield.build :as bb])) (def lib 'com.fbeyer/init) (def base-version "0.2") (defn- git [& args] (let [{:keys [exit out]} (b/process {:command-args (into ["git"] arg...
39ed25d069df72253cc0cc6ce3b797ca72242f67145635d2ee5d648b076f70ae
videolang/interactive-syntax
test.rkt
#lang racket/base (provide test-window editor-canvas% editor->string editor->sexp) (require racket/class racket/port (prefix-in gui: racket/gui/base) "private/context.rkt" "private/read-editor.rkt") (define (test-window editor) (define f (new gui:frame%...
null
https://raw.githubusercontent.com/videolang/interactive-syntax/8c13d83ac0f5dbd624d59083b32f765952d1d440/editor/test.rkt
racket
#lang racket/base (provide test-window editor-canvas% editor->string editor->sexp) (require racket/class racket/port (prefix-in gui: racket/gui/base) "private/context.rkt" "private/read-editor.rkt") (define (test-window editor) (define f (new gui:frame%...
b562fd369d479b0cff3779bd229c142e0715f126d0f5c2244ac6c9ed0272e8fd
ghuysmans/api-cohttp-lwt
client.ml
open Js_of_ocaml module M = Ojt_browser let _ = Dom_events.(listen Dom_html.document Typ.domContentLoaded) @@ fun _ _ -> match Dom_html.getElementById_coerce "l" Dom_html.CoerceTo.ul with | None -> failwith "l" | Some ul -> Lwt.async (fun () -> Lwt.catch (fun () -> let%lwt l = M.list () in l |> ...
null
https://raw.githubusercontent.com/ghuysmans/api-cohttp-lwt/4edfcb4d24deeeaca5786cb0e440fe295ef05b6f/demo/web/client.ml
ocaml
open Js_of_ocaml module M = Ojt_browser let _ = Dom_events.(listen Dom_html.document Typ.domContentLoaded) @@ fun _ _ -> match Dom_html.getElementById_coerce "l" Dom_html.CoerceTo.ul with | None -> failwith "l" | Some ul -> Lwt.async (fun () -> Lwt.catch (fun () -> let%lwt l = M.list () in l |> ...
099c5f51b55b1c6217236d5943139e5326d08c150af095cb70b0b3899ade6d7d
thheller/shadow-experiments
local.cljs
(ns shadow.experiments.grove.local "runtime meant to run in the main browser thread" (:require [shadow.experiments.grove :as-alias sg] [shadow.experiments.grove.runtime :as rt] [shadow.experiments.grove.protocols :as gp] [shadow.experiments.grove.events :as ev] [shadow.experiments.grove.db :as d...
null
https://raw.githubusercontent.com/thheller/shadow-experiments/a54b099d2e7aebae7e91a61d1157e073225b05cb/src/main/shadow/experiments/grove/local.cljs
clojure
microtask or goog.async.run don't do what we want we want the browser to prioritise rendering stuff work until all work is done, immediately work off new tasks remember this even if query is still loading if query is still loading don't send to main empty result likely means the query is no longer valid eg. dele...
(ns shadow.experiments.grove.local "runtime meant to run in the main browser thread" (:require [shadow.experiments.grove :as-alias sg] [shadow.experiments.grove.runtime :as rt] [shadow.experiments.grove.protocols :as gp] [shadow.experiments.grove.events :as ev] [shadow.experiments.grove.db :as d...
a0be5b04a2ede30242ebb5fbf89a9361e8e7f496504b26358729ca4344efd8ab
skroutz/clj-skroutz
oauth.clj
(ns clj_skroutz.oauth (require [clj-http.client :as client]) (require [cheshire.core :as json]) (require [clj_skroutz.core]) (require [ring.util.codec :refer (url-decode)])) (defn app-token "Posts request for application token given client-id and client-secret." [& {:keys [client-id client-secret redirec...
null
https://raw.githubusercontent.com/skroutz/clj-skroutz/25c6c32f5ac8d5ea082ef4dbede6720f74d15ef0/src/clj_skroutz/oauth.clj
clojure
(ns clj_skroutz.oauth (require [clj-http.client :as client]) (require [cheshire.core :as json]) (require [clj_skroutz.core]) (require [ring.util.codec :refer (url-decode)])) (defn app-token "Posts request for application token given client-id and client-secret." [& {:keys [client-id client-secret redirec...
bddf13a1a817ad54b22776ccf38b3b99d7853bd6168999d766121aab469a36fc
tatut/xtdb-inspector
util.clj
(ns xtdb-inspector.util (:import (java.net URLEncoder)) (:require [clojure.string :as str])) (defn enc "URLEncode a thing" [x] (-> x URLEncoder/encode (str/replace "+" "%20"))) (def root-path (or (System/getenv "XTDB_INSPECTOR_URI_PREFIX") "")) (defn ->route [s] (str root-path s))
null
https://raw.githubusercontent.com/tatut/xtdb-inspector/293a24fa4e6086afae9ab792d390a18c9b8f4391/src/xtdb_inspector/util.clj
clojure
(ns xtdb-inspector.util (:import (java.net URLEncoder)) (:require [clojure.string :as str])) (defn enc "URLEncode a thing" [x] (-> x URLEncoder/encode (str/replace "+" "%20"))) (def root-path (or (System/getenv "XTDB_INSPECTOR_URI_PREFIX") "")) (defn ->route [s] (str root-path s))
78d3554a36859869ea39cf9bcd4956a44a5ab11cfa0264009adc9da040f5056d
mattmundell/nightshade
htext2.lisp
;;; Text-manipulation functions: regions and movement. (in-package "EDI") (export '(region-to-string string-to-region line-to-region previous-character next-character count-lines count-characters word-start word-end line-start line-end buffer-start buffer-end move-mark mark-before mark-after character-offset...
null
https://raw.githubusercontent.com/mattmundell/nightshade/7a67f9eac96414355de1463ec251b98237cb4009/src/ed/htext2.lisp
lisp
Text-manipulation functions: regions and movement. FIX consider n arg eg (next-character mark 2) for char after next char character to or from a newline, we must be prepared to split and join because the marks would not be right. The mark is at the end of the line. lines together. The char is being changed to...
(in-package "EDI") (export '(region-to-string string-to-region line-to-region previous-character next-character count-lines count-characters word-start word-end line-start line-end buffer-start buffer-end move-mark mark-before mark-after character-offset line-offset region-bounds set-region-bounds *print-...
b55f47f7a5a41a6891cea9a2f9cc88700236ec5ead36e3e99baee0116d3cbace
opencog/opencog
getNumberNode_ParseNode.scm
Returning the NumberNode of a ParseNode . (define getNumberNode_ParseNode (BindLink (VariableList (VariableNode "$target") (VariableNode "$sentence") (VariableNode "$number") ) (AndLink (ListLink (AnchorNode "CurrentTarget") ...
null
https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/anaphora/rules/getNumberNode_ParseNode.scm
scheme
Returning the NumberNode of a ParseNode . (define getNumberNode_ParseNode (BindLink (VariableList (VariableNode "$target") (VariableNode "$sentence") (VariableNode "$number") ) (AndLink (ListLink (AnchorNode "CurrentTarget") ...
3c60be414a5b04ba0d248a2c49847a909ec58561132618a44135ca6be8c8f35a
swarm-game/swarm
ScenarioInfo.hs
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # {-# OPTIONS_GHC -Wno-partial-fields #-} -- -Wno-orphans is for the Eq/Ord Time instances -- | SPDX - License - Identifier : BSD-3 - Clause -- -- Saving and loading info about scenarios (status, path, etc.) as -- well as loading recursive scenario collectio...
null
https://raw.githubusercontent.com/swarm-game/swarm/affc8668b77b7e85d3d23c182a5159df36d17306/src/Swarm/Game/ScenarioInfo.hs
haskell
# OPTIONS_GHC -Wno-partial-fields # -Wno-orphans is for the Eq/Ord Time instances | Saving and loading info about scenarios (status, path, etc.) as well as loading recursive scenario collections. * Scenario info * Scenario collection * Loading and saving scenarios * Re-exports | A @ScenarioStatus@ stores the ...
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # SPDX - License - Identifier : BSD-3 - Clause module Swarm.Game.ScenarioInfo ( ScenarioStatus (..), _NotStarted, _InProgress, _Complete, ScenarioInfo (..), scenarioPath, scenarioStatus, scenarioBestTime, scenarioBestTicks, updateScenario...
796deb395ceb21b8b0628d7423089f4c1d6ad1654e5b04b935b3833958c5cf82
raydeejay/cl-microvm
assembler.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- (in-package #:cl-microvm) (defun assemble% (instructions) (macrolet ((assemble-operand (instructions) `(let ((arg (car ,instructions))) (when (keywordp arg) ;; record the address of the refere...
null
https://raw.githubusercontent.com/raydeejay/cl-microvm/65e1d11c251f28198ed199bd2d66aa3cdd34a7c8/assembler.lisp
lisp
Syntax : ANSI - Common - Lisp ; Coding : utf-8 -*- record the address of the reference to a label reserve space for the actual address keep track of the labels go ahead and try to determine the opcode begin with an empty instruction stop when we reach the end of the code move to the next symbol if we find a ke...
(in-package #:cl-microvm) (defun assemble% (instructions) (macrolet ((assemble-operand (instructions) `(let ((arg (car ,instructions))) (when (keywordp arg) (push (+ (length bytes) (length instr)) (gethash arg references)) ...
522a0c1e9041f1008fb5b1dc1643e009cbd57bfceacd8722700fa0aeb4b7e5b5
dakk/bitcoinml
psbt.mli
open Stdint open Bitstring type t = { version : int } val create : unit - > t val set_lock_time : t - > uint32 - > t val set_version : t - > int - > t val add_input : t - > Hash.t - > int - > int - > Script.t - > t : t - > string - > uint32 - > t val sign : t - > int - > Ke...
null
https://raw.githubusercontent.com/dakk/bitcoinml/16a09393f4b10961db91f30200e2926f03a8716c/src/experimental/psbt.mli
ocaml
open Stdint open Bitstring type t = { version : int } val create : unit - > t val set_lock_time : t - > uint32 - > t val set_version : t - > int - > t val add_input : t - > Hash.t - > int - > int - > Script.t - > t : t - > string - > uint32 - > t val sign : t - > int - > Ke...
c4d4470055afb3e016802b126b0637743ae8d02367d776af3d8127722d99a006
gonzojive/parenscript
js-dom-symbol-exports.lisp
(in-package #:cl) These are convenience packages that export JS and browser DOM symbols . If you : use the packages in a package FOO and then obfuscate FOO , it will prevent the JS symbols from getting ;; mangled. For most web development tasks , you want to import PS - JS - SYMBOLS , PS - WINDOW - WD - SYM...
null
https://raw.githubusercontent.com/gonzojive/parenscript/5d4772369e28c33cd3522ad46d3de357f7cacf70/src/js-dom-symbol-exports.lisp
lisp
mangled. methods document interface attributes methods node interface attributes methods nodelist interface methods attributes namednodemap methods attributes attributes methods attr attributes element attributes methods text methods Level 1 extended interfaces (XML) attributes notation attri...
(in-package #:cl) These are convenience packages that export JS and browser DOM symbols . If you : use the packages in a package FOO and then obfuscate FOO , it will prevent the JS symbols from getting For most web development tasks , you want to import PS - JS - SYMBOLS , PS - WINDOW - WD - SYMBOLS ( which...
d5fcf5c3aba65d4ccf55cad42ab669395b4e4b96b635cc3e472577c4fe9d6797
kloimhardt/clj-tiles
tutorials_katas.cljs
(ns cljtiles.tutorials-katas) (def content {:chapnames ["Higher order"] :chaps [21] #_(count (:tutorials content)) :tutorials [{:lable :higher-order :blockpos [[0 0] [100 0] [200 0] [300 0] [0 100]] :code ['(:tiles/vert (let :tiles/slot :tiles/slot)) [:tiles/slot :tiles/slot] ...
null
https://raw.githubusercontent.com/kloimhardt/clj-tiles/bbcd192cd0a6ebc5bb2e621566b1b4554679a52d/src/cljtiles/tutorials_katas.cljs
clojure
(ns cljtiles.tutorials-katas) (def content {:chapnames ["Higher order"] :chaps [21] #_(count (:tutorials content)) :tutorials [{:lable :higher-order :blockpos [[0 0] [100 0] [200 0] [300 0] [0 100]] :code ['(:tiles/vert (let :tiles/slot :tiles/slot)) [:tiles/slot :tiles/slot] ...
2c47c78a3a5462bd5b0d2644ed7a206707c406f4043ae8337f89d43fec0abc1c
mmontone/cl-gradual
clos.lisp
(in-package :gradual) TODO : try the MOP to define typed instances of classes , generic functions and methods ;; as an alternative to macro expansion ;; Example: (defclass person () ;; ((name :accessor name ;; :type string)) ;; (:metaclass typed-class)) ;; ...
null
https://raw.githubusercontent.com/mmontone/cl-gradual/f8c0d992e2886a3fa37e49d9de772391961f234c/clos.lisp
lisp
as an alternative to macro expansion Example: (defclass person () ((name :accessor name :type string)) (:metaclass typed-class)) (:return-type string) (:generic-function-class typed-generic-function)) Ideas for polymorphism: (typed-def...
(in-package :gradual) TODO : try the MOP to define typed instances of classes , generic functions and methods ( ( person ) ( ( elems : initform nil : accessor elems ( setf ( elems queue ) ( cl : push elem ( elems queue ) ) ) ( cl : pop ( elems queue ) ) ) (defmethod make-instan...
23c5cae678ddc6c3ecb80cf10674dee8ba8e0cc8a67712a142638fd9a127e138
PDP-10/panda
phas1.lsp
PHAS1 -*-LISP-*- ;;; ************************************************************** * * * * * * * * * * LISP COMPILER ( PHASE 1 ) * * * * * * * * * * * * * * * * * * ;;; ************************************************************** * * ( C ) Copyright 1981 Massachusetts Institute of Te...
null
https://raw.githubusercontent.com/PDP-10/panda/522301975c062914ea3d630a1daefde261ddf590/files/maclisp/phas1.lsp
lisp
************************************************************** ************************************************************** ****** This is a Read-Only file! (All writes reserved) ******* ************************************************************** Certain QUOTEs are trivial Placeholder for pseudo-S...
PHAS1 -*-LISP-*- * * * * * * * * * * LISP COMPILER ( PHASE 1 ) * * * * * * * * * * * * * * * * * * * * ( C ) Copyright 1981 Massachusetts Institute of Technology * * (SETQ PHAS1VERNO '#.(let* ((file (caddr (truename infile))) (x (readlist (exploden file)))) (setq |verno| (c...
400a2337f09319eb92142a6c55b96aae034ce33b4946832bc4a6e8046e84f602
reborg/clojure-essential-reference
9.clj
import clojure.lang.RT; import clojure.lang.IFn; import clojure.lang.Var; import clojure.lang.AFunction; public final class user$eval30 extends AFunction { public static final Var const__0; public static final Object const__1; public static final Object const__2; static { // < 1 > const__1 =...
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/9a3eb82024c8e5fbe17412af541c2cd30820c92e/DynamicVariablesintheStandardLibrary/*compiler-options*/9.clj
clojure
public final class user$eval30 extends AFunction { static { // < 1 > } public static Object invokeStatic() { return ((IFn)user$eval30.const__0.getRawRoot()) // <2> .invoke(user$eval30.const__1, } public Object invoke() { } }
bf81cb5077c939e60420eecfd83f3b8127441fef1470e4c4319d357863408828
intermine/im-tables-3
main.cljs
(ns im-tables.views.dashboard.manager.relationships.main (:require [re-frame.core :refer [subscribe dispatch]] [reagent.core :refer [atom]] [clojure.string :refer [join includes?]] [inflections.core :refer [plural]] [imcljs.path :as path] [oops.core :refer [...
null
https://raw.githubusercontent.com/intermine/im-tables-3/1a769d4055611a5c6a098b1b6a085594ea37baf0/src/im_tables/views/dashboard/manager/relationships/main.cljs
clojure
You may ask why there are so many invisible icons here - it's (unfortunately) a hack to keep things visually aligned when switching from selected to unselected. We need the checkmarks to indicate clearly which is selected! (try removing the check icons if you like; it becomes really hard to see which option is acti...
(ns im-tables.views.dashboard.manager.relationships.main (:require [re-frame.core :refer [subscribe dispatch]] [reagent.core :refer [atom]] [clojure.string :refer [join includes?]] [inflections.core :refer [plural]] [imcljs.path :as path] [oops.core :refer [...
e997b77794e78f1f3eb4a7fb68f184368736152679dd5ccc16aef7a8c9583539
LPCIC/matita
libraryMisc.mli
Copyright ( C ) 2004 - 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of ...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/library/libraryMisc.mli
ocaml
only for local uris
Copyright ( C ) 2004 - 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of ...
f15ea2c89464887e1ae5d6ffb122aad29c761256de53fd6863e1289496fdf757
tweag/ormolu
existential-multiline.hs
# LANGUAGE ExistentialQuantification # data Foo = forall a. MkFoo a (a -> Bool) | forall a. Eq a => MkBar a data Bar = forall x y. Bar x y x y data Baz = forall x y. Baz x y x y
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/data/existential-multiline.hs
haskell
# LANGUAGE ExistentialQuantification # data Foo = forall a. MkFoo a (a -> Bool) | forall a. Eq a => MkBar a data Bar = forall x y. Bar x y x y data Baz = forall x y. Baz x y x y
391c6f3072190fc18818df6bc154045118fd2b4ef33c6bd14d2871cd2d10363c
philnguyen/soft-contract
def-utils.rkt
#lang racket/base (provide (all-defined-out)) (require racket/base racket/match racket/bool racket/list racket/set racket/extflonum racket/syntax racket/contract racket/function racket/splicing syntax/parse syntax/parse...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/primitives/def-utils.rkt
racket
only used for seals FIXME not really. Vector and other mutable stuff always higher-order
#lang racket/base (provide (all-defined-out)) (require racket/base racket/match racket/bool racket/list racket/set racket/extflonum racket/syntax racket/contract racket/function racket/splicing syntax/parse syntax/parse...
20da29cad7db74ac057fd65f73417cc205f3cd853aef16a73cf32fb9a6b29a63
protz/mezzo
myocamlbuild.pre.ml
(*****************************************************************************) (* Mezzo, a programming language based on permissions *) Copyright ( C ) 2011 , 2012 and (* *) (* This program is free softwar...
null
https://raw.githubusercontent.com/protz/mezzo/4e9d917558bd96067437116341b7a6ea02ab9c39/myocamlbuild.pre.ml
ocaml
*************************************************************************** Mezzo, a programming language based on permissions This program is free software: you can redistribute it and/or modify (at your optio...
Copyright ( C ) 2011 , 2012 and 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 open Ocamlbuild_plugin;; open Command...
0a4f84c7f3591c6d0481d37a9b8d87a948657da7cd70c3ca7e27411b774e4a3b
sharplispers/ironclad
digests.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- (in-package :crypto-tests) (rtest:deftest make-digest.error (handler-case (crypto:make-digest :error) (crypto:unsupported-digest () :ok) (:no-error () :error)) :ok) (rtest:deftest digest-length.error (handler-case (crypto:digest-length :error) (crypto:u...
null
https://raw.githubusercontent.com/sharplispers/ironclad/6cc4da8554558ee2e89ea38802bbf6d83100d4ea/testing/test-vectors/digests.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- Ideally, here we'd also test that'd we'd properly copied everything (we would probably also UPDATE-DIGEST ORIGINAL a bit tests for every digest we support. Ugh--at least for the latter. Make sure we return the object getting passed in. Ideally, here we'd also test that...
(in-package :crypto-tests) (rtest:deftest make-digest.error (handler-case (crypto:make-digest :error) (crypto:unsupported-digest () :ok) (:no-error () :error)) :ok) (rtest:deftest digest-length.error (handler-case (crypto:digest-length :error) (crypto:unsupported-digest () :ok) (:no-error () :er...
1a25e7c63fa60abb4db59b3c56c135916684d2e20eddbb26031495b6c08e4440
xapi-project/xenvm
daemon.ml
This function is largely taken from the Lwt_daemon module , but extended such that the parent process will wait until the child confirms it has completely set up correctly such that the parent process will wait until the child confirms it has completely set up correctly *) let daemonize () = Unix.c...
null
https://raw.githubusercontent.com/xapi-project/xenvm/401754dfb05376b5fc78c9290453b006f6f38aa1/idl/daemon.ml
ocaml
The input end of the pipe is handled by the parent, which will read the exit code from it. the output end is given to the child, which will write the exit code when it knows what it should be. Exit the parent, and continue in the child: Do not run exit hooks in the parent. Redirection of standard...
This function is largely taken from the Lwt_daemon module , but extended such that the parent process will wait until the child confirms it has completely set up correctly such that the parent process will wait until the child confirms it has completely set up correctly *) let daemonize () = Unix.c...
cb5137f1931b6c158e800734a010286ef6310b83f6e1c997b98064869014fe27
luontola/varjocafe
system_test.clj
(ns varjocafe.system-test (:use midje.sweet varjocafe.testutil) (:require [org.httpkit.client :as http] [varjocafe.system :as system] [varjocafe.settings :as settings])) (defn with-system [f] (let [port 8082 system (-> settings/dev-settings (assoc-in [:s...
null
https://raw.githubusercontent.com/luontola/varjocafe/cb4c68dce0ef5dd2031ba379dd63b63e8b9433b7/test/varjocafe/system_test.clj
clojure
TODO: no sleep
(ns varjocafe.system-test (:use midje.sweet varjocafe.testutil) (:require [org.httpkit.client :as http] [varjocafe.system :as system] [varjocafe.settings :as settings])) (defn with-system [f] (let [port 8082 system (-> settings/dev-settings (assoc-in [:s...
5e6dcb0c92a5718f8cb050db4106e207108034a5ff26125f1002af10eae25a74
acharal/wam
WAM.hs
module WAM ( module WAM.Instruction ) where import WAM.Instruction
null
https://raw.githubusercontent.com/acharal/wam/60782140c1224ed97062ace93e2fb7c7de2d74ee/src/WAM.hs
haskell
module WAM ( module WAM.Instruction ) where import WAM.Instruction
16fae2bb12cd340b854b55bf13dc0a0736a2bee327286e162dcb01ae56b0e812
synrc/rpc
bert_sample.erl
-module(bert_sample). -include("bert.hrl"). -include("sample.hrl"). -compile({parse_transform, bert_javascript}). %-compile({parse_transform, bert_google}). %-compile({parse_transform, bert_validator}).
null
https://raw.githubusercontent.com/synrc/rpc/caa55daa8f21a062248238ec5b725b33df621d92/src/bert_sample.erl
erlang
-compile({parse_transform, bert_google}). -compile({parse_transform, bert_validator}).
-module(bert_sample). -include("bert.hrl"). -include("sample.hrl"). -compile({parse_transform, bert_javascript}).
2e165e553d0753fa4430ab0a174fc6b1d90b9a2ff87135829aee663ded54af99
PearsonEducation/subpub
pe_util.erl
SubPub - Copyright ( c ) 2013 Pearson . 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. -module(pe_util). -export([ to_binary/1, create_signature/3, verify_signature/4, generate_...
null
https://raw.githubusercontent.com/PearsonEducation/subpub/f2275c5da24d8860d206cff81d1ce87ecd956c72/src/pe_util.erl
erlang
you may not use this file except in compliance with the License. unhex(HexString) -> hex:hexstr_to_bin(HexString). Digest = crypto:md5(WhatToSign), Digest = sha2:hexdigest256(WhatToSign),
SubPub - Copyright ( c ) 2013 Pearson . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; -module(pe_util). -export([ to_binary/1, create_signature/3, verify_signature/4, generate_key/0, serialize_message/7, serialize_message/8, serialize_message...
6843b7517bbeb47831bf1c3e0f8479755a28fd196e7f11ff6c06007f2b033e38
scalar-labs/scalar-jepsen
elle_append_test.clj
(ns scalardb.elle-append-test (:require [clojure.test :refer :all] [jepsen.client :as client] [scalardb.core :as scalar] [scalardb.elle-append :as elle-append] [spy.core :as spy]) (:import (com.scalar.db.api DistributedTransaction Get ...
null
https://raw.githubusercontent.com/scalar-labs/scalar-jepsen/7b0c6bc37457fac4e2a23ca8bde4493ca0398996/scalardb/test/scalardb/elle_append_test.clj
clojure
setup isn't executed
(ns scalardb.elle-append-test (:require [clojure.test :refer :all] [jepsen.client :as client] [scalardb.core :as scalar] [scalardb.elle-append :as elle-append] [spy.core :as spy]) (:import (com.scalar.db.api DistributedTransaction Get ...
3c05519bde0c3b27a3df139f3806d3a00fb5bf9b7daa945dd10f48e26cd205a0
Stratus3D/programming_erlang_exercises
adapter_db1.erl
%% --- Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . %% Copyrights apply to this code. It may not be used to create training material, %% courses, books, articles, and the like. Contact us if you are in doubt. %% We make no guarantees that this code is fit for ...
null
https://raw.githubusercontent.com/Stratus3D/programming_erlang_exercises/e4fd01024812059d338facc20f551e7dff4dac7e/chapter_24/exercise_3/adapter_db1.erl
erlang
--- Copyrights apply to this code. It may not be used to create training material, courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. --- API gen_server callbacks ==============================...
Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . -module(adapter_db1). -behaviour(gen_server). -export([start_link/0, put/3, lookup/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_ch...
c92675f6319cb20600a6f68a1893f61dc083a7770cb850ce5f96a6ffa47fdf59
logseq/logseq
encryption.cljs
(ns frontend.components.encryption (:require [clojure.string :as string] [frontend.context.i18n :refer [t]] [frontend.handler.notification :as notification] [frontend.fs.sync :as sync] [frontend.state :as state] [frontend.ui :as ui] [frontend.uti...
null
https://raw.githubusercontent.com/logseq/logseq/91550838efdeaf02c5ada2919406f148c2d3dad1/src/main/frontend/components/encryption.cljs
clojure
try to close tour tips TODO: it's better if based on sync state setup mode unlock mode secure this remote graph password strength checker
(ns frontend.components.encryption (:require [clojure.string :as string] [frontend.context.i18n :refer [t]] [frontend.handler.notification :as notification] [frontend.fs.sync :as sync] [frontend.state :as state] [frontend.ui :as ui] [frontend.uti...
3f5a856e59b2537b95d8f6fa80cd91f0c443db3010035945275b183530b31b4e
ConsumerDataStandardsAustralia/validation-prototype
AccountDirectDebit.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module Web.ConsumerData.Au.Api.Types.Banking.Common.AccountDirectDebit ( module Web.ConsumerData.Au.Api.Types.Banking.Common.Accou...
null
https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-api-types/src/Web/ConsumerData/Au/Api/Types/Banking/Common/AccountDirectDebit.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # module Web.ConsumerData.Au.Api.Types.Banking.Common.AccountDirectDebit ( module Web.ConsumerData.Au.Api.Types.Banking.Common.AccountDirectDebit ) where import Waargonaut.Decode (Decoder) import qualified Waargona...
ac6d49862307c99f78a57cc06786b27c486fe5f7beafc92bc454eb2a4793b322
gafiatulin/codewars
Caesar2.hs
-- Second Variation on Caesar Cipher -- / module Codewars.Kata.Caesar2 (encodeStr, decode) where import Data.Char (chr, ord, toLower) import Data.List.Split (chunksOf) encodeStr :: String -> Int -> [String] encodeStr str s = chunksOf (ceiling . (/5) . (+2) . fromIntegral . length $ str) (prefix ++ map (f s) str) ...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/5%20kyu/Caesar2.hs
haskell
Second Variation on Caesar Cipher /
module Codewars.Kata.Caesar2 (encodeStr, decode) where import Data.Char (chr, ord, toLower) import Data.List.Split (chunksOf) encodeStr :: String -> Int -> [String] encodeStr str s = chunksOf (ceiling . (/5) . (+2) . fromIntegral . length $ str) (prefix ++ map (f s) str) where prefix = (\c -> [c, f s c]) . toLow...
8f742f61eb649b136f22374f27bafe4ca5ff2703170ce485533f380ed3a75b47
ocaml-ppx/ppx
pp.mli
(** Pretty printers *) (** A document that is not yet rendered. The argument is the type of tags in the document. For instance tags might be used for styles. *) type +'tag t * { 1 Basic combinators } (** A pretty printer that prints nothing *) val nop : _ t (** [seq x y] prints [x] and then [y] *) val seq :...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/stdppx/pp.mli
ocaml
* Pretty printers * A document that is not yet rendered. The argument is the type of tags in the document. For instance tags might be used for styles. * A pretty printer that prints nothing * [seq x y] prints [x] and then [y] * [concat ?sep l] prints elements in [l] separated by [sep]. [sep] defaults to...
type +'tag t * { 1 Basic combinators } val nop : _ t val seq : 'a t -> 'a t -> 'a t val concat : ?sep:'a t -> 'a t list -> 'a t * Convenience function for [ List.map ] followed by [ concat ] val concat_map : ?sep:'a t -> 'b list -> f:('b -> 'a t) -> 'a t val verbatim : string -> _ t val char : char -> _ t val ...
7aa7e7f480cd884f24e42134e2653a657282d6037d3d09154253c5f9fcdd7ff6
fccm/glMLite
aapoly.ml
Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. * ALL RIGHTS RESERVED * Permission to use , copy , modify , and distribute this software for * any purpose and without fee is hereby granted , provided that the above * copyright notice appear in all copies and that both the copyright notice * and t...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/RedBook-Samples/aapoly.ml
ocaml
aapoly.ml * This program draws filled polygons with antialiased * edges. The special GL_SRC_ALPHA_SATURATE blending * function is used. * Pressing the 't' key turns the antialiasing on and off. indices of front, top, left, bottom, right, back faces Note: polygons must be drawn from front to back * ...
Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. * ALL RIGHTS RESERVED * Permission to use , copy , modify , and distribute this software for * any purpose and without fee is hereby granted , provided that the above * copyright notice appear in all copies and that both the copyright notice * and t...
42794f549b069cf7e39b53b2de7a36ed4fda360422fae74e7e3af6ef7a28da5b
victornicolet/parsynt
Sketching.ml
open Base open Lang.Term open Lang.AcTerm open Lang.Analyze open Lang.TermPp open Lang.Typ open Lang.SolutionDescriptors open Option.Let_syntax let make_base_choice_of_var (x : variable) = match x.vtype with | TInt -> mk_vt x | TBool -> mk_vt x | TStruct (s, fields) -> ( let choices = List.map fields ~f:...
null
https://raw.githubusercontent.com/victornicolet/parsynt/d3f530923c0c75537b92c2930eb882921f38268c/src/solve/Sketching.ml
ocaml
if k = 0 then mk_true else Don't go from linear function to non-linear sketch!
open Base open Lang.Term open Lang.AcTerm open Lang.Analyze open Lang.TermPp open Lang.Typ open Lang.SolutionDescriptors open Option.Let_syntax let make_base_choice_of_var (x : variable) = match x.vtype with | TInt -> mk_vt x | TBool -> mk_vt x | TStruct (s, fields) -> ( let choices = List.map fields ~f:...
33e2e20f859e5c77da9c5c34b2149402120500543dc50d1e5251828dbb7c6c63
SquidDev/urn
binders.lisp
(import core/base (defmacro if not when car and or cdr and print /= get-idx defun = n >= error progn gensym for list + else ..)) (import core/base b) (import core/type (list? empty?)) (import core/list (cars cadrs caar cadar map cadr cdar cddr caddar snoc push! nth)) (import lua/b...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/lib/core/binders.lisp
lisp
Pre-declare variable and define it, allowing recursive functions to exist
(import core/base (defmacro if not when car and or cdr and print /= get-idx defun = n >= error progn gensym for list + else ..)) (import core/base b) (import core/type (list? empty?)) (import core/list (cars cadrs caar cadar map cadr cdar cddr caddar snoc push! nth)) (import lua/b...
c0abd11e0985f7d96043c2c181e2b18ecf260377cb89301e8e6d99f9f18fd221
nikita-volkov/rebase
Unique.hs
module Rebase.Data.Unique ( module Data.Unique ) where import Data.Unique
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/Unique.hs
haskell
module Rebase.Data.Unique ( module Data.Unique ) where import Data.Unique
fabbaae23469634902c80a4dee3363075b8f763183820cf65aeed97c81b58ab7
Smoltbob/Caml-Est-Belle
let4.ml
let x = y in ()
null
https://raw.githubusercontent.com/Smoltbob/Caml-Est-Belle/3d6f53d4e8e01bbae57a0a402b7c0f02f4ed767c/tests/typechecking/invalid/let4.ml
ocaml
let x = y in ()
069c7ea232a07035a25fc38b4047c142e3d2b7d027f8424a8aefb54961d3771e
nathell/smyrna
core.cljs
(ns smyrna.core (:require [re-frame.core :as re-frame :refer [reg-event-fx reg-event-db dispatch dispatch-sync subscribe]] [reagent.dom :as rdom] [smyrna.task :as task] [smyrna.utils :refer [reg-accessors]] [smyrna.corpora :refer [corpora] :as corpora] [smyr...
null
https://raw.githubusercontent.com/nathell/smyrna/eb4247afeaf9138172fb274dbd219e083a9e19c0/src/cljs/smyrna/core.cljs
clojure
(ns smyrna.core (:require [re-frame.core :as re-frame :refer [reg-event-fx reg-event-db dispatch dispatch-sync subscribe]] [reagent.dom :as rdom] [smyrna.task :as task] [smyrna.utils :refer [reg-accessors]] [smyrna.corpora :refer [corpora] :as corpora] [smyr...
c8a8066beae59db0d82671f7f6dbb845c15de0bb051ad5d9ba60453ebe9dcf65
mzp/coq-ide-for-ios
auto_ind_decl.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/toplevel/auto_ind_decl.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Build boolean equality of a block o...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Names open Lib...
2682f5fe6c4fdda8a529d868fa3460d358a90e4f2cee08e8e1376157e7619fa5
seancorfield/deps-new
impl_test.clj
copyright ( c ) 2021 - 2023 , all rights reserved (ns org.corfield.new.impl-test (:require [clojure.string :as str] [clojure.tools.build.api :as b] [expectations.clojure.test :refer [defexpect expect expecting from-each more more-> more-of side-effects]] ...
null
https://raw.githubusercontent.com/seancorfield/deps-new/ede3fd25580258d4bb0fa7501b4ce9f5badd15e0/test/org/corfield/new/impl_test.clj
clojure
#'sut/substitute #'sut/deconstruct-project-name
copyright ( c ) 2021 - 2023 , all rights reserved (ns org.corfield.new.impl-test (:require [clojure.string :as str] [clojure.tools.build.api :as b] [expectations.clojure.test :refer [defexpect expect expecting from-each more more-> more-of side-effects]] ...
0b893951b2a6fe8b6a5700fe3a917d87d5e487ea001777bf53406185646ce6bf
acieroid/scala-am
meta-circ.scm
Utilities . (define (map f lst) (if (pair? lst) (cons (f (car lst)) (map f (cdr lst))) '())) (define (for-each f lst) (begin (if (pair? lst) (cons (f (car lst)) (map f (cdr lst))) '()) (void))) (define (string->list s) (define (f i) (if (< ...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/R5RS/WeiChenRompf2019/meta-circ.scm
scheme
gensym-count : integer gensym : symbol -> symbol in case it's a three-d s-expression tagged-list? : symbol s-exp -> boolean singlet? : list -> boolean partition-k : Definition types. Expression types. if quote lambda begin application binding letrec let let* or and cond set! macro Special values...
Utilities . (define (map f lst) (if (pair? lst) (cons (f (car lst)) (map f (cdr lst))) '())) (define (for-each f lst) (begin (if (pair? lst) (cons (f (car lst)) (map f (cdr lst))) '()) (void))) (define (string->list s) (define (f i) (if (< ...
23b067f37dbdfe9f0e17a78bef81b298aa5e41d51415a840e47dacffa93540d3
nuprl/gradual-typing-performance
main.rkt
#lang typed/racket/base (require benchmark-util "../base/array-types.rkt" "synth-types.rkt" "array-struct-adapted.rkt") (require/typed/check "sequencer.rkt" [note (-> Symbol Natural Natural (Pairof Natural Natural))] [sequence (-> Natural (Listof (Pairof (U Natural #f) Natural)) Natural...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/postmortem/experiments/adaptor/many-adaptor/synth/typed/main.rkt
racket
Small test, for development (note 'D 11 1) (mid-test) ;; 37ms ; 3ms (require/typed contract-profile [contract-profile-thunk (-> (-> Void) Void)]) (contract-profile-thunk main)
#lang typed/racket/base (require benchmark-util "../base/array-types.rkt" "synth-types.rkt" "array-struct-adapted.rkt") (require/typed/check "sequencer.rkt" [note (-> Symbol Natural Natural (Pairof Natural Natural))] [sequence (-> Natural (Listof (Pairof (U Natural #f) Natural)) Natural...
15937779b3cc74f47ef3d395a1d9b83d1e865685290e1b34afb9067cb4387311
graninas/Hydra
ConsoleOptions.hs
module Astro.ConsoleOptions ( ConsoleOptions (..) , Command (..) , ServerOptions (..) , ClientOptions (..) , RelDbOptions , DIApproach (..) , ReportChannel (..) , parseConsoleOptions , clientOptionParser ) where import Hydra.Prelude import qualified Prelude import ...
null
https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/app/astro/src/Astro/ConsoleOptions.hs
haskell
module Astro.ConsoleOptions ( ConsoleOptions (..) , Command (..) , ServerOptions (..) , ClientOptions (..) , RelDbOptions , DIApproach (..) , ReportChannel (..) , parseConsoleOptions , clientOptionParser ) where import Hydra.Prelude import qualified Prelude import ...
793ebf76b05ddba54d4d87aaaa7274e56a62d252fab3a33a4fb9735cf3cdc992
zellige/hs-geojson
GeometryTests.hs
{-# LANGUAGE OverloadedStrings #-} module Data.Geospatial.Internal.GeometryTests where import qualified Data.Aeson as A import qualified Data.ByteString.Lazy.Char8 as BS -- Local import Data.Geospatial.Internal.Geometry import Fixture import Test.Hspec ( Spec, context, describe, it, shouldBe, ) im...
null
https://raw.githubusercontent.com/zellige/hs-geojson/63d89670c5daaa7b5093c6d638e34846a44e0f12/test/Data/Geospatial/Internal/GeometryTests.hs
haskell
# LANGUAGE OverloadedStrings # Local Tests >>> decode' lShapedPolyJSON == Just lShapedPoly True >>> decode' emptyPolyJSON == Just emptyPoly True >>> decode' emptyMultiPolyJSON == Just emptyMultiPoly True >>> decode' singleLineMultiLineJSON == Just singleLineMultiLine True >>> decode' multiLineJSON == Jus...
module Data.Geospatial.Internal.GeometryTests where import qualified Data.Aeson as A import qualified Data.ByteString.Lazy.Char8 as BS import Data.Geospatial.Internal.Geometry import Fixture import Test.Hspec ( Spec, context, describe, it, shouldBe, ) import Test.Tasty import Test.Tasty.Hspec ( ...
f272fb65b521474b80a9bea349571b64cae9b367a5c1c79e9d4e5a385dfce941
input-output-hk/cardano-sl
Types.hs
# LANGUAGE RecordWildCards # -- | Types which are stored in memory. module Pos.DB.Update.MemState.Types ( MemPool (..) , UpdateProposals , LocalVotes , MemState (..) , MemVar (..) , newMemVar ) where import Universum import Data.Default (Default ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/db/src/Pos/DB/Update/MemState/Types.hs
haskell
| Types which are stored in memory. relayed to other nodes. ^ Slot for which data is valid. overgeneralize things. ^ Tip for which data is valid. ^ Pool of data to be included into block. ^ Modifier of GState corresponding to 'msPool'. | Create new 'MemVar' using slotting and read-only access to DB.
# LANGUAGE RecordWildCards # module Pos.DB.Update.MemState.Types ( MemPool (..) , UpdateProposals , LocalVotes , MemState (..) , MemVar (..) , newMemVar ) where import Universum import Data.Default (Default (def)) import Serokell.Data.M...
9e486bd1e04b920c3bf6969ea82c0ea3b93b3d78d7fae5f9ff43d87c0657074f
ucsd-progsys/nate
thread.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) and , projet Cris...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/systhreads/thread.mli
ocaml
********************************************************************* Objective Caml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1995 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : thread.mli , v 1.20.10.1 2007/10/25 08:...
ad8ad4cd74a2b531dc845f6d0d0177fbeaa1efbb5a1efe5b131f306e8e814d6a
ztellman/penumbra
switch.clj
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 software in any fashion, you are agreeing to be bound by...
null
https://raw.githubusercontent.com/ztellman/penumbra/db43d01c280305beab26d1004ae78b1777ab3fc7/test/example/app/switch.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns example.app.switch (:use [penumbra opengl text]) (:require [penumbra.app :as app])) (declare apps) (defn switch [a] (loop [app (apps a)] (when app (recur (-> app app/start deref :goto apps))))) Controller (defn controller-init [state] (switch :f...
db4064ab54bf9e74c5cdb3c64d8cbf30f89059cb3cc775280cf47f0ad298a159
Relph1119/sicp-solutions-manual
p1-46-sqrt.scm
(load "src/practices/ch01/p1-46-iterative-improve.scm") (define (sqrt x) (define dx 0.00001) (define (close-enough? v1 v2) (< (abs (- v1 v2)) dx)) (define (improve guess) (define (average x y) (/ (+ x y) 2)) (average guess (/ x guess))) ((iterative-improve close-enou...
null
https://raw.githubusercontent.com/Relph1119/sicp-solutions-manual/f2ff309a6c898376209c198030c70d6adfac1fc1/src/practices/ch01/p1-46-sqrt.scm
scheme
(load "src/practices/ch01/p1-46-iterative-improve.scm") (define (sqrt x) (define dx 0.00001) (define (close-enough? v1 v2) (< (abs (- v1 v2)) dx)) (define (improve guess) (define (average x y) (/ (+ x y) 2)) (average guess (/ x guess))) ((iterative-improve close-enou...
df14312b699640c2fb0e494331c82dc67cf20d8436135d17d51d64fd23be641c
aratare-jp/shinsetsu
project.clj
Empty file to play nice with heroku 's Clojure buildpack . This should n't be needed once -buildpack-clojure/issues/75 is fixed .
null
https://raw.githubusercontent.com/aratare-jp/shinsetsu/6e0bd5455ea6e136ecedfc7716533637174a8582/project.clj
clojure
Empty file to play nice with heroku 's Clojure buildpack . This should n't be needed once -buildpack-clojure/issues/75 is fixed .
bcdf92ac29953d0bff01c73fefc2557dec85c75442dfbe28273a2f0ece060c8a
ocamllabs/ocaml-modular-implicits
t330-compact-3.ml
open Lib;; let rec f n = if n <= 0 then [] else n :: f (n-1) in let l = f 300 in Gc.compact (); if List.fold_left (+) 0 l <> 301 * 150 then raise Not_found ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 BRANCH 746 11 RESTART 12 GRAB ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/tool-ocaml/t330-compact-3.ml
ocaml
open Lib;; let rec f n = if n <= 0 then [] else n :: f (n-1) in let l = f 300 in Gc.compact (); if List.fold_left (+) 0 l <> 301 * 150 then raise Not_found ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 BRANCH 746 11 RESTART 12 GRAB ...
34c145f1e8fa0fd8046c95e80bc63eff4a004e3f862c8210575df372a3b77938
soulomoon/SICP
Exercise5.09.scm
Exercise 5.9 : The treatment of machine operations above permits them to operate on labels as well as on constants and the contents of registers . Modify the expression - processing procedures to enforce the condition that operations can be used only with registers and constants . (load "/Users/soulomoon/git/SICP/Chapt...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter5/Exercise5.09.scm
scheme
memory limit : 128 MB . (REGISTER SIMULATOR LOADED) 'done . . make-operation-exp : not const or register : "" (label here) "" >
Exercise 5.9 : The treatment of machine operations above permits them to operate on labels as well as on constants and the contents of registers . Modify the expression - processing procedures to enforce the condition that operations can be used only with registers and constants . (load "/Users/soulomoon/git/SICP/Chapt...
dab103d4d2c7b9e7994f2b018f5f90715b42e05e9a77d4d7fc9eb2013f7b88f6
nebularis/systest
systest_timetraps_SUITE.erl
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ---------------------------------------------------------------------------- %% Copyright ( c ) 2005 - 2012 Nebularis . %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this ...
null
https://raw.githubusercontent.com/nebularis/systest/fbef181fd0203137f9f6ca6a471c75ca180ec375/test/systest_timetraps_SUITE.erl
erlang
ex: ts=4 sw=4 et ---------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), deal to use, copy, modify, merge, publish, distribute, sublicense, and/o...
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- Copyright ( c ) 2005 - 2012 Nebularis . in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the ...
d5df747060ced8d421cadc394d5b4602937e9e0f38c6474b5a87fe47b7a9be9d
ekmett/linear
Binary.hs
----------------------------------------------------------------------------- -- | Copyright : ( C ) 2013 - 2015 and -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : experimental -- Portability : non-portable -- -- Serialization of statically-sized types with...
null
https://raw.githubusercontent.com/ekmett/linear/3efe225e20948703f5b62039b38018f1ffa8a652/src/Linear/Binary.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable Serialization of statically-sized types with the "Data.Binary" library. ----------------------------------------------------------...
Copyright : ( C ) 2013 - 2015 and Maintainer : < > module Linear.Binary ( putLinear , getLinear ) where import Data.Binary import Data.Foldable (traverse_) | Serialize a linear type . putLinear :: (Binary a, Foldable t) => t a -> Put putLinear = traverse_ put getLinear :: (Binary a, Appli...
1bd29601fe37bb98984f25964aafec82d715136a3ad8ebfd70cd4f60bbb86200
montelibero-org/veche
Pretty.hs
# LANGUAGE BlockArguments # # LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Pretty (prettyEnvelope) where -- prelude import Import hiding (Key) import Network.Stellar.TransactionXdr hiding (Int64) -- global import Da...
null
https://raw.githubusercontent.com/montelibero-org/veche/bcc352d5fa30d8ffa6d1c24f779f3f89b2769018/veche-web/src/Pretty.hs
haskell
# LANGUAGE OverloadedStrings # prelude global
# LANGUAGE BlockArguments # # LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # module Pretty (prettyEnvelope) where import Import hiding (Key) import Network.Stellar.TransactionXdr hiding (Int64) import Data.Aeson (Key, Object, Value (Null, Object, String), toJ...
abd0d7e42a1d1b8cb4a52efd6a3823b422610e9dc2a45ac073231330dd3b3f69
wdebeaum/step
localize.lisp
;;;; ;;;; w::localize ;;;; ; note: similar file for "localise" (define-words :pos W::v :words ( (w::localize (wordfeats (W::morph (:forms (-vb) :nom w::localization ))) (senses ( (LF-PARENT ONT::sit) ;be-at-loc) (TEMPL NEUTRAL-LOCATION-XP-TEMPL (xp (% W::pp (W::ptype (? xxx W::to w::on w::in...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/localize.lisp
lisp
w::localize note: similar file for "localise" be-at-loc) be-at-loc) be-at-loc)
(define-words :pos W::v :words ( (w::localize (wordfeats (W::morph (:forms (-vb) :nom w::localization ))) (senses ( (TEMPL NEUTRAL-LOCATION-XP-TEMPL (xp (% W::pp (W::ptype (? xxx W::to w::on w::in w::into w::at))))) (example "the protein localizes in/to the nucleus") ) ( (TEM...
19dcce97a0bdcfe334e27a31241b9b37736efa6b8ebb6fb01327c81f36307851
BenjaminVanRyseghem/great-things-done
core.cljs
Copyright ( c ) 2015 , . 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 software in any fashion, you are agreeing to be bound by ; t...
null
https://raw.githubusercontent.com/BenjaminVanRyseghem/great-things-done/1db9adc871556a347426df842a4f5ea6b3a1b7e0/src/electron/electron/core.cljs
clojure
The use and distribution terms for this software are covered by the 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 this notice, or any other, from this software. Hid...
Copyright ( c ) 2015 , . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns electron.core) (def app (js/require "app")) (def browser-window (js/require "browser-window")) (def crash-reporter (js/require "crash-reporter")) (def ^:private main-window (atom nil)) (defn- init-browser []...
66683b499ebc986e12060412a03a6c5fb8391b520a0660bfcd7bc28a4c6a9d7a
anacrolix/transcoder
Progress.hs
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Progress where import Control.Lens import Data.Aeson import Data.Aeson.Types () import Data.Char import Data.List import Data.Maybe import GHC.Generics data Progress = Progress { ...
null
https://raw.githubusercontent.com/anacrolix/transcoder/56b60b4da2bebdf34c9e870da61c8278ad30148e/Progress.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Progress where import Control.Lens import Data.Aeson import Data.Aeson.Types () import Data.Char import Data.List import Data.Maybe import GHC.Generics data Progress = Progress { ...
913ab4fbfd476269c2786aac45a2c30404e7c16c500fd7142bc6a8b7e407d3de
zalando-stups/essentials
core_test.clj
(ns org.zalando.stups.essentials.core-test (:require [midje.sweet :refer :all] [clojure.test :refer :all] [org.zalando.stups.essentials.core :refer :all] [org.zalando.stups.essentials.utils :as u] [org.zalando.stups.essentials.test-utils :as tu] [com.stuarts...
null
https://raw.githubusercontent.com/zalando-stups/essentials/f61111a0b76e9d90d161abdc6cbe9c280c717edb/test/org/zalando/stups/essentials/core_test.clj
clojure
(ns org.zalando.stups.essentials.core-test (:require [midje.sweet :refer :all] [clojure.test :refer :all] [org.zalando.stups.essentials.core :refer :all] [org.zalando.stups.essentials.utils :as u] [org.zalando.stups.essentials.test-utils :as tu] [com.stuarts...
61ebfd772d3a2bbae8c29e778ec581695d9630cd953799832ddbeafdd2a6f79a
Mercerenies/net-game
base.lisp
(in-package #:net-game) (defclass damageable () ((hp :accessor hp :initform 1 :initarg :hp)) (:documentation "A base class for objects that have a concept of health.")) (defclass attacking () ((atk :accessor atk :initform 1 :initarg :atk)) (:documentation "A base class for object...
null
https://raw.githubusercontent.com/Mercerenies/net-game/da30ca36a7f468e6f9c062fd7bc5e4fed4ee95f9/lisp/base.lisp
lisp
This will be a plist Will be an ID value Don't use this function; use the new version below Returns the "nature" of an object; this will only be used for debugging purposes (entity person item creature location unknown) are a few recommended values for object-nature, but any interned, non-keyword symbol can be ...
(in-package #:net-game) (defclass damageable () ((hp :accessor hp :initform 1 :initarg :hp)) (:documentation "A base class for objects that have a concept of health.")) (defclass attacking () ((atk :accessor atk :initform 1 :initarg :atk)) (:documentation "A base class for object...
5c786319eb8e0152c4a3cda2dcd12f73a7560921ce8129924f8ecbed27b0d39e
nbouscal/poker.hs
Main.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # ------------------------------------------------------------------------------ import Control.Arrow import Control.Lens import Control.Monad.State import Control.Monad.Loops -------------------------------...
null
https://raw.githubusercontent.com/nbouscal/poker.hs/6ece5ee79fa6210867221f5eb35de8ff65bcaae9/src/Main.hs
haskell
# LANGUAGE FlexibleContexts # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
# LANGUAGE MultiParamTypeClasses # import Control.Arrow import Control.Lens import Control.Monad.State import Control.Monad.Loops import Poker.Betting import Poker.Game import Poker.Hands import Poker.Types initialState :: Game initialSta...
fda2f5ae829e0725be6df93838ed7ab679c019cdb0de6c9beb104a158f51b4c4
oblivia-simplex/roper
evolution.lisp
(in-package :roper) ;; put the evolutionary process in here.
null
https://raw.githubusercontent.com/oblivia-simplex/roper/7714ccf677359126ca82446843030fac89c6655a/lisp/roper/evolution.lisp
lisp
put the evolutionary process in here.
(in-package :roper)
144d034d01fa44a41cb7aefa5ae678b32a82fa7db5e20968f34bfc1d949619dc
webyrd/mediKanren
ex_cohd.rkt
#lang racket/base (require "base.rkt" (except-in racket/match ==) racket/list racket/pretty) Command line usage : racket ex_cohd.rkt cohd - v2 (define argv (current-command-line-arguments)) (define argv-expected '#(DB_NAME)) (when (not (= (vector-length argv-expected) (vector-length argv))) (err...
null
https://raw.githubusercontent.com/webyrd/mediKanren/a2b80ea94f66bcdd4305b9369ad4184c2afe9829/medikanren2/ex_cohd.rkt
racket
Input (subject object) doesn't work well currently ~4x faster retrieval; ~400x slower loading (define-relation/table concept `((path . ,(db-path "concept")) (retrieval-type . bytes))) ~6000x slower loading (define-relation/table concept `((path . ,(db-path "concept")) (retrieval-type . scm))) baseline; includi...
#lang racket/base (require "base.rkt" (except-in racket/match ==) racket/list racket/pretty) Command line usage : racket ex_cohd.rkt cohd - v2 (define argv (current-command-line-arguments)) (define argv-expected '#(DB_NAME)) (when (not (= (vector-length argv-expected) (vector-length argv))) (err...
32c7c82ee671197f38ac09e122ef7aac08c82464e8d8df7e4ab03e3e36725d28
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("gui-lib" "gui-doc"))) (define implies (quote ("gui-lib" "gui-doc"))) (define pkg-desc "Graphical user interface toolkit") (define pkg-authors (quote (mflatt robby))) (define license (quote (Apache-2.0 OR MIT)))))
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/gui/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("gui-lib" "gui-doc"))) (define implies (quote ("gui-lib" "gui-doc"))) (define pkg-desc "Graphical user interface toolkit") (define pkg-authors (quote (mflatt robby))) (define license (quote (Apache-2.0 OR MIT)))))
48da42caae20b26c06be63d68da77a783d770c5f898d67df137df740cf6189eb
rd--/hsc3
rmShelf.help.hs
-- rmShelf2 ; default parameters ; rm=regalia-mitra freq=cut-off frequency (hz) k=gain (db) X.rmShelf2 ar (whiteNoiseId 'α' ar * 0.1) 440 0 -- rmShelf2 ; freq=mouse-x let freq = mouseX kr 55 3520 Exponential 0.2 in X.rmShelf2 ar (whiteNoiseId 'α' ar * 0.1) freq 0 -- rmShelf2 ; k=mouse-y let freq = mouseX kr 55 3520 E...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/rmShelf.help.hs
haskell
rmShelf2 ; default parameters ; rm=regalia-mitra freq=cut-off frequency (hz) k=gain (db) rmShelf2 ; freq=mouse-x rmShelf2 ; k=mouse-y
X.rmShelf2 ar (whiteNoiseId 'α' ar * 0.1) 440 0 let freq = mouseX kr 55 3520 Exponential 0.2 in X.rmShelf2 ar (whiteNoiseId 'α' ar * 0.1) freq 0 let freq = mouseX kr 55 3520 Exponential 0.2 k = mouseY kr (-12) 12 Linear 0.2 in X.rmShelf2 ar (whiteNoiseId 'α' ar * 0.1) freq k * 0.1
1b8c822187bc6a3d6c5afdb822410a12a665fdb7e895ffed973d02122c10e1b1
melange-re/melange
single_module_alias.ml
module L = List
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/single_module_alias.ml
ocaml
module L = List
4495666755acf429c40cef66d5f03c49ff8b2032389c007e7db2634f3032fb23
agda/agda
Impossible.hs
------------------------------------------------------------------------ -- | An interface for reporting \"impossible\" errors ------------------------------------------------------------------------ module Agda.Utils.Impossible where import Control.Exception (Exception(..), throw, catchJust) import Control.DeepSeq ...
null
https://raw.githubusercontent.com/agda/agda/f50c14d3a4e92ed695783e26dbe11ad1ad7b73f7/src/full/Agda/Utils/Impossible.hs
haskell
---------------------------------------------------------------------- | An interface for reporting \"impossible\" errors ---------------------------------------------------------------------- | \"Impossible\" errors, annotated with a file name and a line number corresponding to the source code location of the error...
module Agda.Utils.Impossible where import Control.Exception (Exception(..), throw, catchJust) import Control.DeepSeq import Agda.Utils.CallStack.Base ( CallStack , HasCallStack , prettyCallStack , withCallerCallStack ) data Impossible = Impossible CallStack | Unreachable CallStack | Im...