_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
8cb0a8b57cde6e8daef6037ba68e164952d0f9a0a010758bdfe4db853c1acca1
haskell/vector
Main.hs
module Main where import Testsuite.Stream as Stream import Testsuite.Vector as Vector import Testsuite.Utils.Test main = do (_, s) <- execTestM tests mapM_ putStrLn (summarise s) where tests = mapM_ runTest [Stream.tests, Vector.tests]
null
https://raw.githubusercontent.com/haskell/vector/4c87e88f07aad166c6ae2ccb94fa539fbdd99a91/old-testsuite/Main.hs
haskell
module Main where import Testsuite.Stream as Stream import Testsuite.Vector as Vector import Testsuite.Utils.Test main = do (_, s) <- execTestM tests mapM_ putStrLn (summarise s) where tests = mapM_ runTest [Stream.tests, Vector.tests]
61ebb299c4108b38aea4bcd46516189706d79bd2fe00aa840c2297e81dc2137f
janestreet/ecaml
buffer_local_intf.ml
* A buffer - local is a variable that can have a different value associated with each buffer . [ Buffer_local ] is like [ ] , with the additional guarantee that the variable is buffer local . Where a module defines a type [ t ] and a value of type [ t Buffer_local.t ] , the conventional...
null
https://raw.githubusercontent.com/janestreet/ecaml/bd95b93799ccf809be26436b8379410c29282c4f/src/buffer_local_intf.ml
ocaml
* [defvar] defines a buffer-local variable using [Defvar.defvar], and calls [Var.make_buffer_local_always]. * default is [false] * Idiomatic usage of [Wrap] looks like: {[ Buffer_local.Wrap.(SYMBOL_NAME <: TYPE) ]} For example: {[ Buffer_local.Wrap.("default-directory" <: string) ]} ...
* A buffer - local is a variable that can have a different value associated with each buffer . [ Buffer_local ] is like [ ] , with the additional guarantee that the variable is buffer local . Where a module defines a type [ t ] and a value of type [ t Buffer_local.t ] , the conventional...
490b40ee493de88dc6164e6dc77d201835935047649c1240a74c7f4353708ad9
haskell-repa/repa
Load.hs
module Data.Array.Repa.Eval.Load ( Load (..) , LoadRange (..)) where import Data.Array.Repa.Eval.Target import Data.Array.Repa.Shape import Data.Array.Repa.Base -- Load ----------------------------------------------------------------------- -- | Compute all elements defined by an array and write ...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa/Data/Array/Repa/Eval/Load.hs
haskell
Load ----------------------------------------------------------------------- | Compute all elements defined by an array and write them to a manifest target representation. Note that instances require that the source array to have a delayed representation such as `D` or `C`. If you want to use a pre-existi...
module Data.Array.Repa.Eval.Load ( Load (..) , LoadRange (..)) where import Data.Array.Repa.Eval.Target import Data.Array.Repa.Shape import Data.Array.Repa.Base manifest array as the source then ` delay ` it first . class (Source r1 e, Shape sh) => Load r1 sh e where loadS :: Target...
ff35851031ab5bd063e46c5129689b1d134fea8435741c57d0d1983144855b69
BranchTaken/Hemlock
test_inter.ml
open! Basis.Rudiments open! Basis open Set let test () = let test ms0 ms1 = begin let set0 = of_list (module Uns) ms0 in let set1 = of_list (module Uns) ms1 in let set = inter set0 set1 in let ms = to_list set in List.iter ms0 ~f:(fun m -> assert ((mem m set) || (not (mem m set1)))); List.ite...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/07922d4658ca6ecf37dfd46f5aca31c8b58e06e4/bootstrap/test/basis/set/test_inter.ml
ocaml
open! Basis.Rudiments open! Basis open Set let test () = let test ms0 ms1 = begin let set0 = of_list (module Uns) ms0 in let set1 = of_list (module Uns) ms1 in let set = inter set0 set1 in let ms = to_list set in List.iter ms0 ~f:(fun m -> assert ((mem m set) || (not (mem m set1)))); List.ite...
7e2b54d1df939efe86dbc084be1c75812293e4eb7a49ec2f184eb9a71e001ba8
strint/sicpAns
1040_cubic.scm
(define (cubic a b c) (lambda (x) (+ (* x x x) (* a x x) (* b x) c))) (define (derive g) (define dx 0.00001) (lambda (x) (/ (- (g (+ x dx)) (g x)) dx))) (define (newton-transform g) (lambda (x) (- x (/ (g x) ((derive g) x))))) (define (fixed-point f first-guess) (define tolerance 0.0...
null
https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/1.3.4-_ProcedureFirstClassStatus/1040_cubic.scm
scheme
(define (cubic a b c) (lambda (x) (+ (* x x x) (* a x x) (* b x) c))) (define (derive g) (define dx 0.00001) (lambda (x) (/ (- (g (+ x dx)) (g x)) dx))) (define (newton-transform g) (lambda (x) (- x (/ (g x) ((derive g) x))))) (define (fixed-point f first-guess) (define tolerance 0.0...
c01d36c546c54eeb6b0d89923b4edcb8323ca0773f15227ccfbaefb118ad7684
metosin/komponentit
highlight.cljs
(ns example.highlight (:require [komponentit.highlight :refer [highlight-string]] [komponentit.autocomplete :as ac] [reagent.core :as r] [cljs.test :refer-macros [is]] [devcards.core :as dc :include-macros true] [example.core :as e])) (defn wrapper [s] [:...
null
https://raw.githubusercontent.com/metosin/komponentit/d962ce1d69ccc3800db0d6b4fc18fc2fd30b494a/example-src/cljs/example/highlight.cljs
clojure
`."))
(ns example.highlight (:require [komponentit.highlight :refer [highlight-string]] [komponentit.autocomplete :as ac] [reagent.core :as r] [cljs.test :refer-macros [is]] [devcards.core :as dc :include-macros true] [example.core :as e])) (defn wrapper [s] [:...
0c745cfb2ff1030c0e2990679c8ad9f20102c2863fa4d6bbb3aeb0bdb30bcab6
synsem/texhs
MultiFile.hs
---------------------------------------------------------------------- -- | -- Module : Text.Doc.Filter.MultiFile Copyright : 2015 - 2017 , 2015 - 2016 Language Science Press . -- License : GPL-3 -- -- Maintainer : -- Stability : experimental Portability : GHC -- -- Split ...
null
https://raw.githubusercontent.com/synsem/texhs/9e2dce4ec8ae0b2c024e1883d9a93bab15f9a86f/src/Text/Doc/Filter/MultiFile.hs
haskell
-------------------------------------------------------------------- | Module : Text.Doc.Filter.MultiFile License : GPL-3 Maintainer : Stability : experimental Split a document into multiple physical files. -------------------------------------------------------------------- * Types * Documen...
Copyright : 2015 - 2017 , 2015 - 2016 Language Science Press . Portability : GHC module Text.Doc.Filter.MultiFile MultiFileDoc(..) , ContentFile(..) , FileMap , toMultiFileDoc , splitDoc , mkAnchorFileMap , extractAnchors ) where import Data.Map.Strict (Map) import qualified D...
64ec3f7d30b99b88c85fe666e6a7ce67486e2d49fdb79a63d7c5fddf6bc0145a
typelead/etlas
Field.hs
# LANGUAGE DeriveFunctor # | Cabal - like file AST types : ' Field ' , ' Section ' etc -- -- These types are parametrized by an annotation. module Distribution.Parsec.Types.Field ( * file Field (..), fieldAnn, FieldLine (..), SectionArg (..), sectionArgAnn, -- * Name Name (..), mkNa...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/Parsec/Types/Field.hs
haskell
These types are parametrized by an annotation. * Name ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- A field may contain multiple lines. | Section arguments, e.g. name of the library ^ identifier ^ quote...
# LANGUAGE DeriveFunctor # | Cabal - like file AST types : ' Field ' , ' Section ' etc module Distribution.Parsec.Types.Field ( * file Field (..), fieldAnn, FieldLine (..), SectionArg (..), sectionArgAnn, Name (..), mkName, getName, nameAnn, ) where import Prelude...
2b86abdaa5e7e562348a7fe2e3e524111ff800fef577f7d3afea627937227139
AndrasKovacs/ELTE-func-lang
Ora7Gyakorlas.hs
# LANGUAGE DeriveFunctor , DeriveFoldable , InstanceSigs # {-# OPTIONS_GHC -Wincomplete-patterns #-} module Ora7Gyakrolas where import Prelude hiding (NonEmpty(..)) import Control.Monad import Control.Applicative import Data.Char import Data.List automatikusan mindig inorder data One a = One a ...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/769ab4b503ed0a0242d61cdcfeae012eda968efc/2022-23-1/gyak2/Ora7Gyakorlas.hs
haskell
# OPTIONS_GHC -Wincomplete-patterns # State $ join (,) do s <- get put (f s) FELADATOK KEZDETE Írjunk a fenti típusokra Traversable instance-ot! Tipp: Minden Alternative egy Applicative is State-es feladatok Parserek a+b*c?d{4}e{5,} alm(a|ák)|banán(ok)? digitsToNum [] == 0 emlékeztető: digit...
# LANGUAGE DeriveFunctor , DeriveFoldable , InstanceSigs # module Ora7Gyakrolas where import Prelude hiding (NonEmpty(..)) import Control.Monad import Control.Applicative import Data.Char import Data.List automatikusan mindig inorder data One a = One a deriving (Eq, Show, Foldab...
15aaca6117edfdac598a4b68fc233125086db8c4df6bb43935ae884278aac068
karen/haskell-book
ch21.hs
# LANGUAGE FlexibleInstances # import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Data.Monoid import Control.Applicative (liftA3) data Query = Query data SomeObj = SomeObj data IoOnlyObj = IoOnlyObj data Err = Err decodeFn :: String -> Either Err SomeObj decodeFn = undefined...
null
https://raw.githubusercontent.com/karen/haskell-book/90bb80ec3203fde68fc7fda1662d9fc8b509d179/src/ch21/ch21.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----...
# LANGUAGE FlexibleInstances # import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes import Data.Monoid import Control.Applicative (liftA3) data Query = Query data SomeObj = SomeObj data IoOnlyObj = IoOnlyObj data Err = Err decodeFn :: String -> Either Err SomeObj decodeFn = undefined...
9c77e8d62f0a8ba55f33836ea76a0edf0e85d497420724371bc5ee4622c6c3c4
rd--/hsc3
pv_BufRd.help.hs
pv_BufRd ; play analysis back ; c.f . pv_RecordBuf help file let rec_buf = control kr "rec" 10 fft_buf = localBufId 'α' 1 1024 x = mouseX kr 0 1 Linear 0.2 c0 = X.pv_BufRd fft_buf rec_buf x in ifft c0 1 0
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/pv_BufRd.help.hs
haskell
pv_BufRd ; play analysis back ; c.f . pv_RecordBuf help file let rec_buf = control kr "rec" 10 fft_buf = localBufId 'α' 1 1024 x = mouseX kr 0 1 Linear 0.2 c0 = X.pv_BufRd fft_buf rec_buf x in ifft c0 1 0
2c9a20a2704e3782fb0440ef08e6a9f50957dd79e76b9c5986091007ca7ccaec
ktakashi/sagittarius-scheme
key-manager.scm
-*- mode : scheme;coding : utf-8 -*- ;;; ;;; net/http-client/key-manager.scm - Client private key manager ;;; Copyright ( c ) 2021 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/6aab4b20310d83193274a66759e9eacc7746ac18/sitelib/net/http-client/key-manager.scm
scheme
coding : utf-8 -*- net/http-client/key-manager.scm - Client private key manager Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright ...
Copyright ( c ) 2021 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING #!nounbound (library (net http-client key-manager) ...
42b094b7e1b0d003af8866e35187e21e1637632ade1d88795a3bff07550c4362
Opetushallitus/ataru
application_email_jobs.clj
(ns ataru.email.application-email-jobs "Application-specific email confirmation init logic" (:require [ataru.background-job.email-job :as email-job] [ataru.background-job.job :as job] [ataru.db.db :as db] [ataru.email.email-store :as email-store] [clojure.java.jdbc :a...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/e573c5f1251b413d46337098c902dd9a99bfb3c2/src/clj/ataru/email/application_email_jobs.clj
clojure
(ns ataru.email.application-email-jobs "Application-specific email confirmation init logic" (:require [ataru.background-job.email-job :as email-job] [ataru.background-job.job :as job] [ataru.db.db :as db] [ataru.email.email-store :as email-store] [clojure.java.jdbc :a...
f677fae16a1978d77cd2480e996647f71e79320910bf900e6dfc84b809a9a1ca
vrnithinkumar/ETC
arithmetic.erl
-module (arithmetic). % simple (straight forward) arithmetic ) - > + X. % nneg(X) -> - X. nadd(X, Y) -> X + Y. nsub(X, Y) -> (X - Y). nmul(X, Y) -> (X * Y). ndiv(X, Y) -> X / Y. % ibnot(X) -> bnot X. idiv(X, Y) -> X div Y. irem(X, Y) -> X rem Y. iband(X,Y) -> X band Y. ibor(X,Y) -> X bor Y. ibxor(X,Y) -...
null
https://raw.githubusercontent.com/vrnithinkumar/ETC/34e8b3f98973f49582bb68c46822dbe94f1f9c61/btc_test_suit/test_cases/arithmetic.erl
erlang
simple (straight forward) arithmetic nneg(X) -> - X. ibnot(X) -> bnot X.
-module (arithmetic). ) - > + X. nadd(X, Y) -> X + Y. nsub(X, Y) -> (X - Y). nmul(X, Y) -> (X * Y). ndiv(X, Y) -> X / Y. idiv(X, Y) -> X div Y. irem(X, Y) -> X rem Y. iband(X,Y) -> X band Y. ibor(X,Y) -> X bor Y. ibxor(X,Y) -> X bxor Y. ibsl(X,Y) -> X bsl Y. ibsr(X,Y) -> X bsr Y.
1f7be79c2b2839dbc00d9a74202bf75856fe545d5cd3644466e1b2e615c0ef3f
volhovm/orgstat
Parser.hs
-- | Org-mode format parsing. module OrgStat.Parser ( ParsingException (..) , parseOrg , runParser ) where import Universum import qualified Data.Attoparsec.Text as A import Data.Char (isSpace) import qualified Data.OrgMode.Parse as O import qualified Data.OrgMode.Types as O import qualif...
null
https://raw.githubusercontent.com/volhovm/orgstat/92d55971be73d82f2e94435488654d7a14a12c0f/src/OrgStat/Parser.hs
haskell
| Org-mode format parsing. -------------------------------------------------------------------------- Exceptions -------------------------------------------------------------------------- -------------------------------------------------------------------------- Parsing ----------------------------------------------...
module OrgStat.Parser ( ParsingException (..) , parseOrg , runParser ) where import Universum import qualified Data.Attoparsec.Text as A import Data.Char (isSpace) import qualified Data.OrgMode.Parse as O import qualified Data.OrgMode.Types as O import qualified Data.Text as T import Data...
675c995ad825fc57dadb05b3b967a85aa5ef03c11f941b8f388c18ba7d28f250
kiranshila/cybermonday
core_test.cljc
(ns cybermonday.core-test (:require [clojure.test :as t] [cybermonday.core :as cm] [cybermonday.ir :as ir])) (t/deftest ir (t/testing "Parsing to IR" (t/testing "Paragraphs" (t/is (= [:div {} [:p {} "aaa"] [:p {} "bbb"]] (ir/md-to-ir "aaa\n\nbbb"))) (t/is (= [:div {} [:p {} "aaabbb"]] (ir/...
null
https://raw.githubusercontent.com/kiranshila/cybermonday/ff56da3adcc6c5cc1319950a4052815a5c206358/test/cybermonday/core_test.cljc
clojure
TODO - Run all the commonmark tests
(ns cybermonday.core-test (:require [clojure.test :as t] [cybermonday.core :as cm] [cybermonday.ir :as ir])) (t/deftest ir (t/testing "Parsing to IR" (t/testing "Paragraphs" (t/is (= [:div {} [:p {} "aaa"] [:p {} "bbb"]] (ir/md-to-ir "aaa\n\nbbb"))) (t/is (= [:div {} [:p {} "aaabbb"]] (ir/...
1c7bd6e430cd5e6850a9d828e45aa16e9379ec8b57c6762f30c024c8a85666c3
Frama-C/Frama-C-snapshot
visitor_behavior.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/kernel_services/visitors/visitor_behavior.mli
ocaml
************************************************************************ alternatives) Automatique) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en Lesser General Pu...
8bee9d38816f7707f32884fbd6d14146ca3f7f511018873b20125294351c8dd2
wavejumper/boonmee
core.cljs
(ns tonal.core (:require ["@tonaljs/tonal" :refer [Midi]])) (Midi/m ) (Midi/midiToFreq 400)
null
https://raw.githubusercontent.com/wavejumper/boonmee/fc0946568bfc53830717d2b68982872972bd532d/dev-resources/tonal/src/tonal/core.cljs
clojure
(ns tonal.core (:require ["@tonaljs/tonal" :refer [Midi]])) (Midi/m ) (Midi/midiToFreq 400)
2e67017c31c53a25fc27fa8f9dba7b2e4c64d3cbd67b5be8cf5e5bf6c65aaeea
janestreet/async_unix
test_thread_safe_pipe.ml
open! Core open Poly open! Async open! Thread_safe_pipe let%expect_test "Thread_safe_pipe" = let module P = Thread_safe_pipe in let r, p = P.create () in assert ( try P.write p 13 ~if_closed:Raise; false with | _ -> true); let throttle = Throttle.create ~continue_on_error:false ~max_con...
null
https://raw.githubusercontent.com/janestreet/async_unix/2562a6b9316d7c6757726305482380bd7e6dba06/thread_safe_pipe/test/test_thread_safe_pipe.ml
ocaml
[write] raises if we're in Async.
open! Core open Poly open! Async open! Thread_safe_pipe let%expect_test "Thread_safe_pipe" = let module P = Thread_safe_pipe in let r, p = P.create () in assert ( try P.write p 13 ~if_closed:Raise; false with | _ -> true); let throttle = Throttle.create ~continue_on_error:false ~max_con...
d71d1eef62e3754922c679a47f30a9e1c56e262e7ca64882636b18ac834bb518
xvw/ocamlectron
Os.ml
open Js_of_ocaml type t = | Aix | Darwin | FreeBSD | Linux | OpenBSD | SunOS | Win32 | Unknown of string let to_string = function | Aix -> "aix" | Darwin -> "darwin" | FreeBSD -> "freebsd" | Linux -> "linux" | OpenBSD -> "openbsd" | SunOS -> "sunos" | Win32 -> "win32" | Unknown...
null
https://raw.githubusercontent.com/xvw/ocamlectron/3e0cb9575975e69ab34cb7e0e3549d31c07141c2/lib/electron_api/Os.ml
ocaml
open Js_of_ocaml type t = | Aix | Darwin | FreeBSD | Linux | OpenBSD | SunOS | Win32 | Unknown of string let to_string = function | Aix -> "aix" | Darwin -> "darwin" | FreeBSD -> "freebsd" | Linux -> "linux" | OpenBSD -> "openbsd" | SunOS -> "sunos" | Win32 -> "win32" | Unknown...
d7380676a8d2f2a355776a9ab9bffd09370814d9125f22a07c8f4104a475fab0
PLTools/GT
test000.ml
open GT @type tree = Node of int * tree list class ['a, 'b] tree_gmap_t f fself = object inherit ['a, 'b, _] @tree method c_Node _ _ n l = Node (f () n, List.map (fself ()) l) end class ['a, 'b, 'extra] tree_fold_t f fself = object inherit ['a, 'extra, 'b] @tree method c_Node acc _ n l = List....
null
https://raw.githubusercontent.com/PLTools/GT/62d1a424a3336f2317ba67e447a9ff09d179b583/regression/test000.ml
ocaml
open GT @type tree = Node of int * tree list class ['a, 'b] tree_gmap_t f fself = object inherit ['a, 'b, _] @tree method c_Node _ _ n l = Node (f () n, List.map (fself ()) l) end class ['a, 'b, 'extra] tree_fold_t f fself = object inherit ['a, 'extra, 'b] @tree method c_Node acc _ n l = List....
ca44420666ccf1954123fe0f8833a61a2099d0bde5d7375439c1e3565a7c1753
phadej/staged
Decoder.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE LambdaCase #-} {-# LANGUAGE MultiWayIf #-} # LANGUAGE TemplateHaskell # module Unicode.UTF8.Decoder ( utf8decoder, ) where import Data.Bits (shiftL, (.&.), (.|.)) import Data.SOP (SOP) import Data.Word (Word...
null
https://raw.githubusercontent.com/phadej/staged/08035ac187ee67a09deb2f858555c651fb01b5e8/staged-streams-unicode/src/Unicode/UTF8/Decoder.hs
haskell
# LANGUAGE LambdaCase # # LANGUAGE MultiWayIf # ----------------------------------------------------------------------------- -----------------------------------------------------------------------------
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # module Unicode.UTF8.Decoder ( utf8decoder, ) where import Data.Bits (shiftL, (.&.), (.|.)) import Data.SOP (SOP) import Data.Word (Word32, Word8) import Staged.Stream.Fallible.Step (FallibleStep (..)) ...
0edd6d091f780f1c88642d9220ad5294e324a28b4d3dac539f40b0cd11b4e162
slipstream/SlipStreamServer
module_image.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.module-image (:require [clojure.spec.alpha :as s] [com.sixsq.slipstream.ssclj.resources.spec.common :as c] [com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core] [com.sixsq.slipstream.ssclj.resources.spec.module :as module] [com.sixsq.slipstrea...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/src/com/sixsq/slipstream/ssclj/resources/spec/module_image.cljc
clojure
(ns com.sixsq.slipstream.ssclj.resources.spec.module-image (:require [clojure.spec.alpha :as s] [com.sixsq.slipstream.ssclj.resources.spec.common :as c] [com.sixsq.slipstream.ssclj.resources.spec.core :as cimi-core] [com.sixsq.slipstream.ssclj.resources.spec.module :as module] [com.sixsq.slipstrea...
7d4719af13076d8bb4261cfa88da95206c16cc345d41bc29015bf1a4658c36ae
binaryage/chromex
bluetooth_private.clj
(ns chromex.app.bluetooth-private "Use the chrome.bluetoothPrivate API to control the Bluetooth adapter state and handle device pairing. NOTE: This IDL is dependent on bluetooth.idl. * available since Chrome 36" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex....
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps_private/chromex/app/bluetooth_private.clj
clojure
-- events ----------------------------------------------------------------------------------------------------------------- docs: /#tapping-events -- convenience ------------------------------------------------------------------------------------------------------------ --------------------------------------------...
(ns chromex.app.bluetooth-private "Use the chrome.bluetoothPrivate API to control the Bluetooth adapter state and handle device pairing. NOTE: This IDL is dependent on bluetooth.idl. * available since Chrome 36" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex....
726661afb971d5ca591f1494b0ed7b7fc5955186a32a438f368c33c6ae08e16b
40ants/cl-hamcrest
utils.lisp
(uiop:define-package #:hamcrest/utils (:use #:cl #:iterate) (:import-from #:split-sequence #:split-sequence) (:import-from #:cl-ppcre #:regex-replace-all) (:export #:alistp #:deindent #:shift-rest-lines #:indent)) (in-package #:hamcrest/ut...
null
https://raw.githubusercontent.com/40ants/cl-hamcrest/9abb4978271907e11c21411ba350b0d6d7d9cb12/src/utils.lisp
lisp
remove empty lines at beginning calculate common indentation remove common indentation from lines now join lines together and separate them with new-lines
(uiop:define-package #:hamcrest/utils (:use #:cl #:iterate) (:import-from #:split-sequence #:split-sequence) (:import-from #:cl-ppcre #:regex-replace-all) (:export #:alistp #:deindent #:shift-rest-lines #:indent)) (in-package #:hamcrest/ut...
f3fce179d67b2f9831bbd87c3c74bc74697a37d77a2a9e4df8e98f7bdf5bf5e3
chrisdone/jl
Serializer.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # -- | module JL.Serializer where import Data.Aeson import Data.Aeson.KeyMap import Data.Scientific import Data.Text (Text) import qualified Data.Text as T import qualified Data.Vector as V import JL.Printer im...
null
https://raw.githubusercontent.com/chrisdone/jl/f4405aaf43add3b574d7d138a3e383607fe786a0/src/JL/Serializer.hs
haskell
# LANGUAGE OverloadedStrings # |
# LANGUAGE LambdaCase # module JL.Serializer where import Data.Aeson import Data.Aeson.KeyMap import Data.Scientific import Data.Text (Text) import qualified Data.Text as T import qualified Data.Vector as V import JL.Printer import JL.Types coreToNumber ::...
0b9614d3c9925b778bb5a511d0f663d2cf4fea995651e8acb366d29249056e58
ocaml-ppx/ocamlformat
ocamldoc.ml
* From -ocaml-4.00/manual029.html#htoc172 The first special comment of the file is the comment associated with the whole module . The first special comment of the file is the comment associated with the whole module.*) (** Special comments can be placed between elements and are kept by the OCa...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/3d1c992240f7d30bcb8151285274f44619dae197/test/failing/tests/ocamldoc.ml
ocaml
* Special comments can be placed between elements and are kept by the OCamldoc tool, but are not associated to any element. @-tags in these comments are ignored. ***************************************************************** * The comment for function f. * The continuation of the comment for function f. * ...
* From -ocaml-4.00/manual029.html#htoc172 The first special comment of the file is the comment associated with the whole module . The first special comment of the file is the comment associated with the whole module.*) * Comments like the one above , with more than two asterisks , are ignor...
d19ff469951ed850976005abdd1c89ef12b26b4cd6ac2a082af8eaa3ad247932
argp/bap
piqi_server.ml
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 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 ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/libtracewrap/libtrace/piqi/piqi/piqi-tools/piqi_server.ml
ocaml
mutable placeholder for the current convert options; we use it to avoid * allocation of a new structure on each call "convert" call handler common error handler "add-piqi" call handler have to close all channels explicilty to prevent getting an uncaught * sigpipe during execution of at_exit XXX: disabl...
pp camlp4o -I ` ocamlfind query piqi.syntax ` pa_labelscope.cmo pa_openin.cmo Copyright 2009 , 2010 , 2011 , 2012 , 2013 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 ...
f82c02052b3ba1a179f23c2bdd7495f4e91672060a2939c501261f0c9d91268a
mejgun/haskell-tdlib
GetMessageViewers.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.GetMessageViewers where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | -- Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, o...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/GetMessageViewers.hs
haskell
# LANGUAGE OverloadedStrings # | | Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.can_get_viewers == true | Identifier of the message | Chat identifier
module TD.Query.GetMessageViewers where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U data GetMessageViewers = GetMessageViewers message_id :: Maybe Int, chat_id :: Maybe Int } deriving (Eq) instance Show GetMessageViewers where show GetMessage...
eee6ffaa87346393079d03e37a2f23cf1336cf25156a92267de50ea5e3d576a4
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.SV.Corpus ( corpus ) where import Data.String ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/SV/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.SV.Corpus ( corpus ) where import Data.String import Prelude import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types hiding (examples) import Duckling.Time.Corpus import Duckling.Time.Types hiding (Month) import Duckli...
e9000659dfba7da8c45bf0d90c759f73e70ed3f96c765f66d9a70ee5311944fe
maximk/spawnpool
notifier_handler.erl
-module(notifier_handler). -export([init/3]). -export([handle/2,terminate/3]). init({tcp,http}, Req, []) -> {ok,Req,[]}. handle(Req, St) -> {<<"POST">>,_} = cowboy_req:method(Req), {[DomName],_} = cowboy_req:path_info(Req), {{IpAddr,_Port},_} = cowboy_req:peer(Req), gen_server:cast(nominator, {ready,DomName,IpAd...
null
https://raw.githubusercontent.com/maximk/spawnpool/f6a36a7634e0d08a6ab48d7bdaa5d2b548d96bcc/src/notifier_handler.erl
erlang
-module(notifier_handler). -export([init/3]). -export([handle/2,terminate/3]). init({tcp,http}, Req, []) -> {ok,Req,[]}. handle(Req, St) -> {<<"POST">>,_} = cowboy_req:method(Req), {[DomName],_} = cowboy_req:path_info(Req), {{IpAddr,_Port},_} = cowboy_req:peer(Req), gen_server:cast(nominator, {ready,DomName,IpAd...
0617762cd352aec88a4ccfcc2e46c0d8ee92d0cd01b5ddfd2f0dfa0887d193ce
csabahruska/jhc-components
KindInfer.hs
Generated by DrIFT ( Automatic class derivations for ) # LINE 1 " src / FrontEnd / " # {-# OPTIONS -funbox-strict-fields #-} -- | -- This module implements the Kind Inference algorithm, and the routines which -- use the product of kind inference to convert haskell source types into the simplified kind annotated t...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/jhc-frontend/src/FrontEnd/KindInfer.hs
haskell
# OPTIONS -funbox-strict-fields # | This module implements the Kind Inference algorithm, and the routines which use the product of kind inference to convert haskell source types into the !derive: Monoid ! ------------------------------------------------------------------------------ The kind inference monad useful...
Generated by DrIFT ( Automatic class derivations for ) # LINE 1 " src / FrontEnd / " # simplified kind annotated types used by the rest of the FrontEnd . module FrontEnd.KindInfer ( kiDecls, KindEnv(), hsQualTypeToSigma, hsAsstToPred, kiHsQualType, kindOfClass, kindOf, restrictKin...
85132d4332f4434b2ea6838c7c244521c41e509c431bc77304ee5112ef9c58ca
ankushdas/Nomos
infer.ml
module T = Typecheck module P = Print module U = Unify let rec getType (ctx : T.context) (x : string) = match ctx with [] -> raise (T.TypeError (Printf.sprintf "Unbound variable %s" x)) | (y, tp)::xs -> if x = y then tp else getType xs x let var = ref 0 let fresh () : Ast.ocam...
null
https://raw.githubusercontent.com/ankushdas/Nomos/db678f3981e75a1b3310bb55f66009bb23430cb1/redundant/functional/infer.ml
ocaml
module T = Typecheck module P = Print module U = Unify let rec getType (ctx : T.context) (x : string) = match ctx with [] -> raise (T.TypeError (Printf.sprintf "Unbound variable %s" x)) | (y, tp)::xs -> if x = y then tp else getType xs x let var = ref 0 let fresh () : Ast.ocam...
2e87e4336650f85c551513461286214dad73a9b9330679097100b759d89fef5a
jimweirich/sicp-study
ex2_63.scm
SICP 2.63 Exercise 2.63 . Each of the following two procedures converts a ;; binary tree to a list. (define (tree->list-1 tree) (if (null? tree) '() (append (tree->list-1 (left-branch tree)) (cons (entry tree) (tree->list-1 (right-branch tree)))))) (define (tree->...
null
https://raw.githubusercontent.com/jimweirich/sicp-study/bc5190e04ed6ae321107ed6149241f26efc1b8c8/scheme/chapter2/ex2_63.scm
scheme
binary tree to a list. number of steps required to convert a balanced tree with n elements ANSWER ------------------------------------------------------------ produces (1 2 3 4 5 6 7) is empty. Also, it does not build an intermediate list that gets appended for the final result. --------------------------------...
SICP 2.63 Exercise 2.63 . Each of the following two procedures converts a (define (tree->list-1 tree) (if (null? tree) '() (append (tree->list-1 (left-branch tree)) (cons (entry tree) (tree->list-1 (right-branch tree)))))) (define (tree->list-2 tree) (define (co...
550e4fcf148cdef46f64f89072290337f87e610effa4efe852728dd707b8af39
clj-kondo/hooks-workshop-clojured-2022
macros.clj
(ns hooks-workshop.macros) part 1 (defmacro when-let* "Nested `when-let`." ([bindings & body] (if (seq bindings) `(when-let [~(first bindings) ~(second bindings)] (when-let* ~(drop 2 bindings) ~@body)) `(do ~@body)))) (defmacro kdefn "A contrived `defn` with keyword arguments." [sym kar...
null
https://raw.githubusercontent.com/clj-kondo/hooks-workshop-clojured-2022/554709149dc60ad0fbc2a693bff0d5edba9d795a/src/hooks_workshop/macros.clj
clojure
(ns hooks-workshop.macros) part 1 (defmacro when-let* "Nested `when-let`." ([bindings & body] (if (seq bindings) `(when-let [~(first bindings) ~(second bindings)] (when-let* ~(drop 2 bindings) ~@body)) `(do ~@body)))) (defmacro kdefn "A contrived `defn` with keyword arguments." [sym kar...
34fb439497044651e7072f9c25569122a8259407bc3a94c370080d16beaf580e
dimitaruzunov/fp-2018
prime-sum-pairs.scm
(require rackunit rackunit/text-ui) (define (enumerate-interval from to) (if (> from to) '() (cons from (enumerate-interval (+ from 1) to)))) (define (flatmap f l) (foldr append '() (map f l))) (define (prime? n) (define (count-divisors n) (define (divides? k n) (= (remainder ...
null
https://raw.githubusercontent.com/dimitaruzunov/fp-2018/f75f0cd009cc7f41ce55a5ec71fb4b8eadafc4eb/exercises/05/prime-sum-pairs.scm
scheme
(require rackunit rackunit/text-ui) (define (enumerate-interval from to) (if (> from to) '() (cons from (enumerate-interval (+ from 1) to)))) (define (flatmap f l) (foldr append '() (map f l))) (define (prime? n) (define (count-divisors n) (define (divides? k n) (= (remainder ...
2b6ac546d0bd893799271ee442031af6a7bdc2ee0ceb913c79291363a35b725b
nwf/xconfig
SLS.hs
--------------------------------------------------------------- Headers {{{ {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternGuards # --------------------------------------------------------------------------- -- | -- ...
null
https://raw.githubusercontent.com/nwf/xconfig/208e6d6ce48fba45ec30bb1df1389f9ff2263edd/xmonad/lib/XMonad/Layout/SLS.hs
haskell
------------------------------------------------------------- Headers {{{ # LANGUAGE DeriveDataTypeable # ------------------------------------------------------------------------- | Module : XMonad.Layout.SLS License : BSD Stability : unstable Portability : unportable This module provides a scree...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternGuards # Copyright : ( C ) < > Maintainer : < > module XMonad.Layout.SLS ( SetPred(..), SLS, mksls) where import XMonad import qualified XMonad.Layout.LayoutModif...
90d1a3c6f0b0b262f92ed0c01815da4e59902aa8203501b7e8249554513d38e4
falsetru/htdp
14.2.1.scm
(define-struct node (ssn name left right)) (define (contains-bt number bt) (cond [(false? bt) false] [(= (node-ssn bt) number) true] [else (or (contains-bt number (node-left bt)) (contains-bt number (node-right bt)))])) (require rackunit) (require rackunit/text-ui) (define contain...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/14/14.2.1.scm
scheme
(define-struct node (ssn name left right)) (define (contains-bt number bt) (cond [(false? bt) false] [(= (node-ssn bt) number) true] [else (or (contains-bt number (node-left bt)) (contains-bt number (node-right bt)))])) (require rackunit) (require rackunit/text-ui) (define contain...
1cb86556c8a6a60911acf22fa9f969b4e2c95643f7bc3a6bde23419d8cb9f686
clj-kondo/clj-kondo
utils.clj
(ns clj-kondo.impl.types.utils {:no-doc true} (:require [clj-kondo.impl.utils :as utils :refer [resolve-call*]])) (defn union-type ([] #{}) ([x y] (let [ret (cond (or (identical? x :any) (identical? y :any) (identical? (:tag x) :any) (iden...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/4bd9cca90b235e9e4553d980644cc41d1614a2e3/src/clj_kondo/impl/types/utils.clj
clojure
should we have added this location info before? (prn arg-type '-> tag) `kw-calls` exists for dynamic types when using keyword calls. `kw-calls` is introduced. resolved-tag may be a :call that still needs resolving
(ns clj-kondo.impl.types.utils {:no-doc true} (:require [clj-kondo.impl.utils :as utils :refer [resolve-call*]])) (defn union-type ([] #{}) ([x y] (let [ret (cond (or (identical? x :any) (identical? y :any) (identical? (:tag x) :any) (iden...
98fc6c48e32bdcc13c54f961a98461af61bb5d61a28be341d4e91680b826d9da
webyrd/n-grams-for-synthesis
vector-edit-test.scm
;;;; `vector-edit' tests ;;; Copyright MMIV-MMXV Arthur A. Gleckler. All rights reserved. ;; 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 l...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-146/srfi/hamt/vector-edit-test.scm
scheme
`vector-edit' tests Copyright MMIV-MMXV Arthur A. Gleckler. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublic...
files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (define (run-vector-edit-tests) (test-begin "ve...
9c6e4e59976d47918782a64d6f35b2dc021aa4699e4a28d0cf87937e206fc17f
penpot/penpot
guides.cljs
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) KALEIDOS INC (ns app.main.data.workspace.guides (:require [app.common.geom.point :as gpt] [app.common.geom.shapes :...
null
https://raw.githubusercontent.com/penpot/penpot/9e30f974efecc20b918d5b6806cabccbbb5a08e6/frontend/src/app/main/data/workspace/guides.cljs
clojure
Copyright (c) KALEIDOS 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 /. (ns app.main.data.workspace.guides (:require [app.common.geom.point :as gpt] [app.common.geom.shapes :as gsh] [app.common.pages.chan...
59293625b14cdaeb3d1dd205e85d8c55e50656f5a831c2552759d0b27d46e676
eltonlaw/donkeyblend
test_utils.clj
(ns donkeyblend.test-utils (:require [clojure.string :as str] [clojure.test :refer [deftest is testing]])) (defmacro is-str= "Provides slightly better error messages by showing where the string mismatch occurs Lays out each arg character by character by character along side each other making the f...
null
https://raw.githubusercontent.com/eltonlaw/donkeyblend/563812a80c63d2ccfa4bb5f203bc63814795f922/dev/donkeyblend/test_utils.clj
clojure
(ns donkeyblend.test-utils (:require [clojure.string :as str] [clojure.test :refer [deftest is testing]])) (defmacro is-str= "Provides slightly better error messages by showing where the string mismatch occurs Lays out each arg character by character by character along side each other making the f...
50fd64eddd03818def18d8e38a6cb1705271a855716b887201b0cffcbd273969
amnh/phylocaml
mlModelTest.ml
open OUnit2 open TestInternal (* A list of branch length to compose a model for *) let bls = [ min_float; ~-.1.0; 0.0; 1.0; 100.0; max_float ] (* A list if the above bls should compose to a matrix *) and bfs = [ true; false; true; true; true; false ] let all_spec : MlModel.s list = let rec loop_ f acc =...
null
https://raw.githubusercontent.com/amnh/phylocaml/86aebc4f2664752668b16707214b3cad099434c0/test/mlModelTest.ml
ocaml
A list of branch length to compose a model for A list if the above bls should compose to a matrix
open OUnit2 open TestInternal let bls = [ min_float; ~-.1.0; 0.0; 1.0; 100.0; max_float ] and bfs = [ true; false; true; true; true; false ] let all_spec : MlModel.s list = let rec loop_ f acc = match f () with | None -> acc | Some x -> loop_ f (x::acc) in loop_ (MlModel.enum_models None Alp...
4a5f008d6a67e2e59979c43a1e24667fd27b4f694276a9501fdfe43d896c15c1
basho/riak_function_contrib
save_reduce.erl
%% ------------------------------------------------------------------- %% %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the License at %% %% -2.0 %% %% Unless required by app...
null
https://raw.githubusercontent.com/basho/riak_function_contrib/bad124ac39c72eb6ed85e6f30cfc779515e4e612/mapreduce/erlang/save_reduce.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permission...
This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(reduce_functions). -export([save_reduce/2]). save_reduce([Data | _], ...
e433b8b541f4ca43ba5fa7124dee956e78440cd8131712d801659ab8f9d5c2c2
kframework/semantic-approaches
Imp_Bigstep.hs
-- This module defines imp in bigstep semantics along with increment module Imp_Bigstep (execute, Configuration (ConfPgm)) where import Imp_Syntax import Imp_State import qualified Data.Map.Strict as Map import qualified Data.List as List type State = (Map.Map String Integer) data Configuration...
null
https://raw.githubusercontent.com/kframework/semantic-approaches/6f64eac09e005fe4eae7141e3c0e0f5711da0647/haskell/imp/4-imp-threads/1-imp-bigstep/Imp_Bigstep.hs
haskell
This module defines imp in bigstep semantics along with increment Remove any remaining duplicate states Remove equivalent configurations early to prevent blowup NEW
module Imp_Bigstep (execute, Configuration (ConfPgm)) where import Imp_Syntax import Imp_State import qualified Data.Map.Strict as Map import qualified Data.List as List type State = (Map.Map String Integer) data Configuration = ConfAExp AExp State | ConfBExp BExp ...
be0ee0a950818794a04404bdb93e2c14c1559210a21b7eb6323a2c810141d43c
glv2/cl-monero-tools
transaction.lisp
;;;; This file is part of monero-tools Copyright 2016 - 2018 Distributed under the GNU GPL v3 or later . ;;;; See the file LICENSE for terms of use and distribution. (in-package :monero-tools) (defun compute-transaction-hash (transaction) "Return the hash of a TRANSACTION. The TRANSACTION must be in alist ...
null
https://raw.githubusercontent.com/glv2/cl-monero-tools/ab972ac3a7c5489cf23e3bdaa5d390d5cff1732b/monero-tools/blockchain/transaction.lisp
lisp
This file is part of monero-tools See the file LICENSE for terms of use and distribution.
Copyright 2016 - 2018 Distributed under the GNU GPL v3 or later . (in-package :monero-tools) (defun compute-transaction-hash (transaction) "Return the hash of a TRANSACTION. The TRANSACTION must be in alist format." (let* ((prefix (geta transaction :prefix)) (version (geta prefix :version))) ...
a71e20249bc7d3494fcd77436f496a740f78e9b70785ad2229bf242c4e66c047
michaelw/regex
regex.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : REGEX ; Base : 10 -*- (in-package "REGEX") ; ; Rewrite to use parse-tree functions. ; Separate optimization from parsing. ; Add separate canonicalization and rewrite passes. ; ; Partly because I'm about to allow the caller to manipulate ; the parse trees himself...
null
https://raw.githubusercontent.com/michaelw/regex/fbc9a9f313b9edc1788f33d4b23a29151635ae22/regex.lisp
lisp
Syntax : COMMON - LISP ; Package : REGEX ; Base : 10 -*- Rewrite to use parse-tree functions. Separate optimization from parsing. Add separate canonicalization and rewrite passes. Partly because I'm about to allow the caller to manipulate the parse trees himself, so I can't depend on the parse tree being in an...
(in-package "REGEX") pass 1 . Lexical analysis pass 2 . Parsing pass 3 . parse tree ( needed because we allow pass 4 . Instruction selection ( fast - xxx ops ) pass 5 . CPS conversion to tuple list . pass 6 . Code ( closure ) generation . pass 7 . Linking ( resolve target labels to functions ) . Fo...
e0a83dc6630216f5682acba7e520afd8baa0c256a583d6a21ae5aeccbb3137ea
juxt/roll
tf.cljs
(ns roll.tf (:require [cljs.reader :as reader] [cljs.nodejs :as nodejs] [roll.core])) (def fs (nodejs/require "fs")) (defn- write-tf [data output-file] (let [output-file (or output-file "deployment.tf.json")] (println "Reading" output-file) (fs.writeFileSync output-file data))) (d...
null
https://raw.githubusercontent.com/juxt/roll/1ef07d72f05b5604eec4f7d6a5dbf0d21ec3c8b3/src/roll/tf.cljs
clojure
(ns roll.tf (:require [cljs.reader :as reader] [cljs.nodejs :as nodejs] [roll.core])) (def fs (nodejs/require "fs")) (defn- write-tf [data output-file] (let [output-file (or output-file "deployment.tf.json")] (println "Reading" output-file) (fs.writeFileSync output-file data))) (d...
bbfd68a652ae610d35960bdcc0a43da50418f685f764f80f8a870de7e273ead0
nvim-treesitter/nvim-treesitter
highlights.scm
[ "=" "^^" "||" "&&" "+" "-" "*" "/" "%" "|" "^" "==" "!=" ">" ">=" "<=" "<" "<<" ">>" ".." "--" "++" "+" "-" "~" "!" "&" "->" "*" ] @operator [ "(" ")" "{" "}" "[" "]" ] @punctuation.bracket [ "," "." ";" ] @punctuation.delimiter [ (access_clas...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/9efc2dffc3367e0c724b628675ca7cac13357dc6/queries/t32/highlights.scm
scheme
Commands Returns Subroutine calls Variables, constants and labels Parameter declarations Control flow
[ "=" "^^" "||" "&&" "+" "-" "*" "/" "%" "|" "^" "==" "!=" ">" ">=" "<=" "<" "<<" ">>" ".." "--" "++" "+" "-" "~" "!" "&" "->" "*" ] @operator [ "(" ")" "{" "}" "[" "]" ] @punctuation.bracket [ "," "." ";" ] @punctuation.delimiter [ (access_clas...
ce4f06d5565c04a69a6bb63d69561ce66283025537a668e52370cc020add456f
jonatack/cl-kraken
globals.lisp
;;;; cl-kraken/src/globals.lisp (in-package #:cl-user) (defpackage #:cl-kraken/src/globals (:documentation "CL-Kraken global parameters, variables and constants.") (:use #:cl)) (in-package #:cl-kraken/src/globals) ;;; User API key and secret (defparameter *api-key* "J9G291yReQZ4k7JKqaSsSwKCwcQBDdwzQq92z/I8MOu5...
null
https://raw.githubusercontent.com/jonatack/cl-kraken/e5b438eb821bf7dc3514a44ff84f15f393b4e393/src/globals.lisp
lisp
cl-kraken/src/globals.lisp User API key and secret Global Parameters
(in-package #:cl-user) (defpackage #:cl-kraken/src/globals (:documentation "CL-Kraken global parameters, variables and constants.") (:use #:cl)) (in-package #:cl-kraken/src/globals) (defparameter *api-key* "J9G291yReQZ4k7JKqaSsSwKCwcQBDdwzQq92z/I8MOu5j3g3SAAJo04c" "This is an empty account for testing. Repla...
bc78cc8ae950632d9b7944c6687aa4a61623aa0888e5384578c154a849b7aade
zcaudate/hara
inheritance_test.clj
(ns hara.core.base.inheritance-test (:use hara.test) (:require [hara.core.base.inheritance :refer :all])) ^{:refer hara.core.base.inheritance/ancestor-list :added "3.0"} (fact "Lists the direct ancestors of a class" (ancestor-list clojure.lang.PersistentHashMap) => [clojure.lang.PersistentHashMap clojure...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/core/base/inheritance_test.clj
clojure
(ns hara.core.base.inheritance-test (:use hara.test) (:require [hara.core.base.inheritance :refer :all])) ^{:refer hara.core.base.inheritance/ancestor-list :added "3.0"} (fact "Lists the direct ancestors of a class" (ancestor-list clojure.lang.PersistentHashMap) => [clojure.lang.PersistentHashMap clojure...
038a44cea347e6f3e65d7c3efca3978bd79948cf89b39bedec0c3b370dd41608
Vortecsmaster/EmurgoAcademyPlutusExamples
Paths_MathBounty.hs
# LANGUAGE CPP # # LANGUAGE NoRebindableSyntax # # OPTIONS_GHC -fno - warn - missing - import - lists # # OPTIONS_GHC -w # module Paths_MathBounty ( version, getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getDataFileName, getSysconfDir ) where import qualified Control.Exception as Except...
null
https://raw.githubusercontent.com/Vortecsmaster/EmurgoAcademyPlutusExamples/3d2da9c5c83cd6226d6be023461cb778a6c97aa6/preVasil_V1/JustValidators/dist-newstyle/build/x86_64-linux/ghc-8.10.4.20210212/MathBounty-0.1.0.0/build/autogen/Paths_MathBounty.hs
haskell
# LANGUAGE CPP # # LANGUAGE NoRebindableSyntax # # OPTIONS_GHC -fno - warn - missing - import - lists # # OPTIONS_GHC -w # module Paths_MathBounty ( version, getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getDataFileName, getSysconfDir ) where import qualified Control.Exception as Except...
5a3681016be9886330355caae74a0a45e331a87e0b9d192fa65b491caa2ef52a
clj-commons/citrus
project.clj
(defproject clj-commons/citrus (or (System/getenv "PROJECT_VERSION") "3.3.0") :description "State management library for Rum" :url "-commons/citrus" :license {:name "Eclipse Public License" :url "-v10.html"} :deploy-repositories [["clojars" {:url "" :username :en...
null
https://raw.githubusercontent.com/clj-commons/citrus/2011fd193dab454c0d523a7495c0ad992d685bdd/project.clj
clojure
(defproject clj-commons/citrus (or (System/getenv "PROJECT_VERSION") "3.3.0") :description "State management library for Rum" :url "-commons/citrus" :license {:name "Eclipse Public License" :url "-v10.html"} :deploy-repositories [["clojars" {:url "" :username :en...
51aa86a974976cfb8b3ed715a5748bce706679ef190e89443c3f46a2530f3813
Workiva/eva
storage.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/dev/src/eva/datastructures/test_version/logic/storage.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.datastructures.test-version.logic.storage (:require [eva.datastructures.test-version.logic.state :as state] [eva.datastructures.test-version.logic.nodes :as nodes] [eva.datastru...
3d7330fb4e63c10363b9af978480f5692ede3d240fea2f0f9ab7dd3a07b06c6f
mariari/Misc-Lisp-Scripts
chapter2.lisp
2.2 A straightfoward solution------------------------------------------------------- (defun sentence () (append (noun-phrase) (verb-phrase))) (defun noun-phrase () (append (article) (Noun))) (defun PP () (append (Prep) (noun-phrase))) (defun Adj () (one-of '(big little blue green adiabatic))) (defun Prep () (one-o...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/acecadc75fcbe15e6b97e084d179aacdbbde06a8/Books/Paradigms-of-AI/chapter2.lisp
lisp
Same thing but we want this in a list form Need to use simple grammar or the code will break due to recursive
2.2 A straightfoward solution------------------------------------------------------- (defun sentence () (append (noun-phrase) (verb-phrase))) (defun noun-phrase () (append (article) (Noun))) (defun PP () (append (Prep) (noun-phrase))) (defun Adj () (one-of '(big little blue green adiabatic))) (defun Prep () (one-o...
a1dc8e4c077f8689ebdb2b097a45e5d55ff94bfd53cf315a7790744a58c4c851
prestancedesign/pingcrm-clojure
contacts.cljs
(ns pingcrm.pages.contacts (:require ["@inertiajs/inertia" :refer [Inertia]] ["@inertiajs/inertia-react" :refer [InertiaLink useForm Head]] [applied-science.js-interop :as j] [pingcrm.shared.buttons :refer [loading-button delete-button]] [pingcrm.shared.form-input :refe...
null
https://raw.githubusercontent.com/prestancedesign/pingcrm-clojure/83cad91a38f9209739eeb7695269164aca6fbe8d/src/cljs/pingcrm/pages/contacts.cljs
clojure
(ns pingcrm.pages.contacts (:require ["@inertiajs/inertia" :refer [Inertia]] ["@inertiajs/inertia-react" :refer [InertiaLink useForm Head]] [applied-science.js-interop :as j] [pingcrm.shared.buttons :refer [loading-button delete-button]] [pingcrm.shared.form-input :refe...
a5cc5dcdfa203ebdace08568dfad83c3a7f63f9fa42adb868f04ec43f623d187
well-typed/gp-zurihac-2020
GP.hs
module GP where import Data.Coerce import Data.Functor.Const import Data.Functor.Identity import Data.Kind import Data.Proxy import Data.Void import GHC.TypeLits data Tree a = Leaf a | Node (Tree a) (Tree a) class Generic a where type Rep a :: Type from :: a -> Rep a to :: Rep a -> a newtype Wrap a = Wrap a ...
null
https://raw.githubusercontent.com/well-typed/gp-zurihac-2020/c7b3026fc8df1c33e54cedcf6714d2f7b42998f5/GP.hs
haskell
module GP where import Data.Coerce import Data.Functor.Const import Data.Functor.Identity import Data.Kind import Data.Proxy import Data.Void import GHC.TypeLits data Tree a = Leaf a | Node (Tree a) (Tree a) class Generic a where type Rep a :: Type from :: a -> Rep a to :: Rep a -> a newtype Wrap a = Wrap a ...
65faa0c31a204d844d2e867388b841352a001929ffc82760ef32074665f48dc8
clojure-interop/java-jdk
SliderUI.clj
(ns javax.swing.plaf.SliderUI "Pluggable look and feel interface for JSlider." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf SliderUI])) (defn ->slider-ui "Constructor." (^SliderUI [] (new SliderUI )))
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/SliderUI.clj
clojure
(ns javax.swing.plaf.SliderUI "Pluggable look and feel interface for JSlider." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf SliderUI])) (defn ->slider-ui "Constructor." (^SliderUI [] (new SliderUI )))
4c67931e629ecabdde4091f5d9a739a24a7fa44283f7d8c91891ff36ecfd2d19
coq/coq
mod_subst.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/b35a11aacc47210c9d1ec5242716da97da756ac0/kernel/mod_subst.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
44c0e94c6b3a242c7b7d04ba26a3ad8524aa8725cc59781a3782b1db206dced5
turquoise-hexagon/euler
solution.scm
(import (euler) (srfi 1)) (define (solve n) (apply + (remove (lambda (i) (= (modular-expt 10 #e1e16 (* 9 i)) 1)) (primes n)))) (let ((_ (solve #e1e5))) (print _) (assert (= _ 453647705)))
null
https://raw.githubusercontent.com/turquoise-hexagon/euler/d2ae9c832818700d65ea0f1f2dae8e8b125a2f86/src/spoilers/133/solution.scm
scheme
(import (euler) (srfi 1)) (define (solve n) (apply + (remove (lambda (i) (= (modular-expt 10 #e1e16 (* 9 i)) 1)) (primes n)))) (let ((_ (solve #e1e5))) (print _) (assert (= _ 453647705)))
f85367a5fa21a584106eaf8560ca529d5b4fa69a0c6184a4e42af140fdbf29f2
xapi-project/xen-api
main.ml
open! Cmdliner let gen_markdown path = let open Xapi_storage in let open Files in List.iter (fun api -> with_output_file (Printf.sprintf "%s/%s.html.md" path api.Codegen.Interfaces.name) (fun oc -> let p = Markdowngen.to_string api in output_string oc "---\n" ; ...
null
https://raw.githubusercontent.com/xapi-project/xen-api/8d17b53bc236e23aa1ec455137773f7367665d83/ocaml/xapi-storage/generator/src/main.ml
ocaml
open! Cmdliner let gen_markdown path = let open Xapi_storage in let open Files in List.iter (fun api -> with_output_file (Printf.sprintf "%s/%s.html.md" path api.Codegen.Interfaces.name) (fun oc -> let p = Markdowngen.to_string api in output_string oc "---\n" ; ...
157925bfc1b96fb65f19ebc90b4582a71a4c19e66f7b3e382724456653fdfaf9
tonyrog/pacman
pacman_app.erl
-module(pacman_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %% =================================================================== %% Application callbacks %% =================================================================== start(_StartType, _StartArgs) -> pacman_sup:st...
null
https://raw.githubusercontent.com/tonyrog/pacman/39f32a55612666ea6f1f82d6b8aa94e263026627/src/pacman_app.erl
erlang
Application callbacks =================================================================== Application callbacks ===================================================================
-module(pacman_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> pacman_sup:start_link(). stop(_State) -> ok.
420c8835f80a3fc93e6cdf104e4d4bf00365e8d253c9e64e2d48a783bc5f1a79
DATX02-17-26/DATX02-17-26
ASTUnitypeUtils.hs
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
null
https://raw.githubusercontent.com/DATX02-17-26/DATX02-17-26/f5eeec0b2034d5b1adcc66071f8cb5cd1b089acb/libsrc/CoreS/ASTUnitypeUtils.hs
haskell
(`dependsOn y x` is `True` if `y` depends on `x` if `dependsOn y x == False` then `y; x;` and `x; y;` should be semantically identical should the identifier parts of the name be in here? switchLabels contains expressions, which may include names, maybe just find the expression and convert to unitype? (ClassDecl...
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
228915a7df752446e2fdb027486c002533a92deb3d64e559d976b6f0f3653aba
ryukzak/nitta
Functions.hs
{-# OPTIONS -fno-warn-orphans #-} | Module : NITTA.Intermediate . Tests . Functions Description : Copyright : ( c ) , 2020 License : : Stability : experimental Module : NITTA.Intermediate.Tests.Functions Description : Copyright : (c) Aleksandr Penskoi, 2020 Licens...
null
https://raw.githubusercontent.com/ryukzak/nitta/6d5cab0465ff5bcccfe419b8d8553266c530f7b7/test/NITTA/Intermediate/Tests/Functions.hs
haskell
# OPTIONS -fno-warn-orphans # FIXME: Sometimes the algorithm can generate the following function: "qqq = singleton.
| Module : NITTA.Intermediate . Tests . Functions Description : Copyright : ( c ) , 2020 License : : Stability : experimental Module : NITTA.Intermediate.Tests.Functions Description : Copyright : (c) Aleksandr Penskoi, 2020 License : BSD3 Maintainer : Stab...
5a16c60d042fb66a58beb61429d999bcf086de4231a745186b51c8b6414a760a
netguy204/clojure-gl
geometry.clj
(ns clojure-gl.geometry (:use (clojure-gl buffers)) (:import ())) (defn create-unit-quad [] (let [verts (gl-point-buffer 3 [[-0.5 -0.5 0.0] [-0.5 0.5 0.0] [0.5 0.5 0.0] [0.5 -0.5 0.0]]) texcoords (gl-poi...
null
https://raw.githubusercontent.com/netguy204/clojure-gl/055f73baf1af0149191f3574ad82f35017c532fc/src/clojure_gl/geometry.clj
clojure
(ns clojure-gl.geometry (:use (clojure-gl buffers)) (:import ())) (defn create-unit-quad [] (let [verts (gl-point-buffer 3 [[-0.5 -0.5 0.0] [-0.5 0.5 0.0] [0.5 0.5 0.0] [0.5 -0.5 0.0]]) texcoords (gl-poi...
3b1717f231e7378418e25c841a9ebbd31bb982666d0b4ab2e6e73592cb112a1f
simingwang/emqx-plugin-kafkav5
hex_pb_names.erl
-*- coding : utf-8 -*- @private %% Automatically generated, do not edit Generated by gpb_compile version 4.17.6 %% Version source: file -module(hex_pb_names). -export([encode_msg/2, encode_msg/3]). -export([decode_msg/2, decode_msg/3]). -export([merge_msgs/3, merge_msgs/4]). -export([verify_msg/2, verify_msg/3])...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/hex_core/src/hex_pb_names.erl
erlang
Automatically generated, do not edit Version source: file enumerated types message types Like skipping over fields, but record the total length, Record the length because varints may be non-optimally encoded. because group field numbers are shared with the rest of the fields numbers. Thus we can search just fo...
-*- coding : utf-8 -*- @private Generated by gpb_compile version 4.17.6 -module(hex_pb_names). -export([encode_msg/2, encode_msg/3]). -export([decode_msg/2, decode_msg/3]). -export([merge_msgs/3, merge_msgs/4]). -export([verify_msg/2, verify_msg/3]). -export([get_msg_defs/0]). -export([get_msg_names/0]). -export...
0cfe1d8f8abdb97c40ce5a3a5905cf019d9fb481c1dc8478b9d75953eaa0d9fb
patricoferris/ocaml-multihash
multihash.mli
* { 1 : Self - describing Hash Functions } The multihash library allows you to create hash functions that self - describe . This means that just given the digest , the multihash library can tell you the length of the digest along with the kind of hash it is ( one of { ! Multicodec.multihash } ) ....
null
https://raw.githubusercontent.com/patricoferris/ocaml-multihash/24c27ffe237bce9720ad86e8d7a89bdaff3f104a/src/multihash/multihash.mli
ocaml
* Unsigned Variable Length Integers
* { 1 : Self - describing Hash Functions } The multihash library allows you to create hash functions that self - describe . This means that just given the digest , the multihash library can tell you the length of the digest along with the kind of hash it is ( one of { ! Multicodec.multihash } ) ....
e6b0fb0444ee4167ed40e792ad92f39a6776e68331538964246e88de9178c253
brandonchinn178/persistent-migration
Sql.hs
| Module : Database . Persist . Migration . Utils . Maintainer : < > Stability : experimental Portability : portable Defines helper functions for writing SQL queries . Module : Database.Persist.Migration.Utils.Sql Maintainer : Brandon Chinn <> Stability : experimental Port...
null
https://raw.githubusercontent.com/brandonchinn178/persistent-migration/d71c804abead8eb71a044694d7f05629fc26f225/src/Database/Persist/Migration/Utils/Sql.hs
haskell
# LANGUAGE OverloadedStrings # | Split the given line by commas, ignoring commas within parentheses. > commas "a,b,c" == ["a", "b", "c"] > commas "a,b,c (d,e),z" == ["a", "b", "c (d,e)", "z"] | Join the given Text with commas separating each item. | Join the given Text with commas separating each item and quoting...
| Module : Database . Persist . Migration . Utils . Maintainer : < > Stability : experimental Portability : portable Defines helper functions for writing SQL queries . Module : Database.Persist.Migration.Utils.Sql Maintainer : Brandon Chinn <> Stability : experimental Port...
27fa1c26255795bc8fbae7bc9cf16bd5d5d75726f16fd696ec6d2dd1f94a7429
mzp/coq-ide-for-ios
refiner.ml
(************************************************************************) 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/proofs/refiner.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Getting env debug [frontier : p...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : refiner.ml 13323 20...
f7149bedc67101be82cd16397b4128b1e073cb892a1e979ef6e8869b669cc289
dongcarl/guix
guix.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2014 < > ;;; ;;; 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 License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/guix.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 © 2012 , 2014 < > 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 (guix)) (eval-when (eval load compile) (begin (define %public-modules '(base32...
98dc7d7565e68fb4e8f2939f7770874f2d468923720fb5a6586729e9ec0ef745
duct-framework/module.ataraxy
project.clj
(defproject duct/module.ataraxy "0.3.0" :description "Duct module and router for the Ataraxy routing library" :url "-framework/module.ataraxy" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [ataraxy "0.4.2"] ...
null
https://raw.githubusercontent.com/duct-framework/module.ataraxy/d347c4cef5ba173cb026f8ea0e84a2a57016134e/project.clj
clojure
(defproject duct/module.ataraxy "0.3.0" :description "Duct module and router for the Ataraxy routing library" :url "-framework/module.ataraxy" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.0"] [ataraxy "0.4.2"] ...
873e9e58fc5534a0aec2cc4c6b32abc145ef9c66be4cda51c67cb5417ddb502a
arttuka/reagent-material-ui
drawer.cljs
(ns reagent-mui.material.drawer "Imports @mui/material/Drawer as a Reagent component. Original documentation is at -ui/api/drawer/ ." (:require [reagent.core :as r] ["@mui/material/Drawer" :as MuiDrawer])) (def drawer (r/adapt-react-class (.-default MuiDrawer)))
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/drawer.cljs
clojure
(ns reagent-mui.material.drawer "Imports @mui/material/Drawer as a Reagent component. Original documentation is at -ui/api/drawer/ ." (:require [reagent.core :as r] ["@mui/material/Drawer" :as MuiDrawer])) (def drawer (r/adapt-react-class (.-default MuiDrawer)))
6475007daedc02a09c3012dbfc605d5d3bb5c5b9e241052da1de05741fbf33a9
corecursive/sicp-study-group
representation.scm
(define (make-rat n d) (define g (gcd n d)) (cons (/ n g) (/ d g))) (define (numer x) (car x)) (define (denom x) (cdr x))
null
https://raw.githubusercontent.com/corecursive/sicp-study-group/82b92a9759ed6c72d15cf955c806ce2a94336f83/wulab/lecture-4b/generic-operation/rational-package/representation.scm
scheme
(define (make-rat n d) (define g (gcd n d)) (cons (/ n g) (/ d g))) (define (numer x) (car x)) (define (denom x) (cdr x))
f56dc1d96fc01825ba73e56355dff1975f75f2999a66ca0b535d300766f5c054
LCBH/UKano
simplify.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/src/simplify.mli
ocaml
Table of names -> function symbol representing that name, used in pitsyntax.ml [verify_process l p] verifies that all free variables of [p] are in the list [l]. In particular, [verify_process [] p] verifies that the process [p] is closed.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
f0a61c72bb2b5bb38d1ef56c0b856b5599d6dc7a4c63f70a0ce909733e634b47
ruricolist/cloture
walk.lisp
(in-package #:cloture) (in-readtable clojure-shortcut) (deftype traversable () '(or list seq map set map-entry sy:tree-map)) (defun-1 #_postwalk (f form) (fbind ((f (ifn-function f))) (labels ((postwalk (form) (typecase-of traversable form (list (f (mapcar #'postwal...
null
https://raw.githubusercontent.com/ruricolist/cloture/623c15c8d2e5e91eb87f46e3ecb3975880109948/clojure/walk.lisp
lisp
(in-package #:cloture) (in-readtable clojure-shortcut) (deftype traversable () '(or list seq map set map-entry sy:tree-map)) (defun-1 #_postwalk (f form) (fbind ((f (ifn-function f))) (labels ((postwalk (form) (typecase-of traversable form (list (f (mapcar #'postwal...
65f485a41a8903772ab30048932b2c8d01ce6a061952b740d92ae697a49d7ad8
conjure-cp/conjure
MakeTable.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.MakeTable where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common import qualified Data.Aeson as JSON -- aeson import qualified Data.HashMap.Strict as M ...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/MakeTable.hs
haskell
aeson unordered-containers vector
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.MakeTable where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common data OpMakeTable x = OpMakeTable x deriving (Eq, Ord, Show, Data, Functor, Traversable, Foldable...
04c65d093e41446424a5a72e6418fdf86085c30a01cce6dfb25a0fe529180158
TheLortex/mirage-monorepo
parse.ml
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/754836818dc5c861bf3b0a78029315a065a543cc/duniverse/httpaf/lib/parse.ml
ocaml
The commented-out ' ' and '\t' are not necessary because of the range at * the top of the match. | ' ' | '\t' XXX(seliopou): The [eol] in this parser should really parse a collection * of "chunk extensions", as defined in RFC7230§4.1. These do not show up * in the wild very frequently, and the httpa...
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
ca18713e35d311f6a69001fe112a5e9fa25cb78382e8f1aabaca419b6369203f
rmculpepper/gamble
slice.rkt
Copyright ( c ) 2014 Released under the terms of the 2 - clause BSD license . ;; See the file COPYRIGHT for details. #lang racket/base (require racket/class (rename-in racket/match [match-define defmatch]) "db.rkt" "../interfaces.rkt" "../dist.rkt" "base.rkt") (provid...
null
https://raw.githubusercontent.com/rmculpepper/gamble/a5231e2eb3dc0721eedc63a77ee6d9333846323e/gamble/private/mh/slice.rkt
racket
See the file COPYRIGHT for details. ============================================================ (U 'step 'double 'unimodal) slice search width max # of widths to grow slice by limit of small-dist optimization, 0 to disable ---------------------------------------- Entry point inclusive bounds ----------------...
Copyright ( c ) 2014 Released under the terms of the 2 - clause BSD license . #lang racket/base (require racket/class (rename-in racket/match [match-define defmatch]) "db.rkt" "../interfaces.rkt" "../dist.rkt" "base.rkt") (provide (all-defined-out)) (define slice-mh...
936b4dfb7f237bd5132a19d3de3fd4f3556ede12f5a34c9b99c272c87d87a8ad
racket/web-server
servlet-env.rkt
; Derived from plai/web/server, which was based on an older version of this ; Also derived from planet/untyped/instaservlet #lang racket/base (require racket/contract racket/list racket/serialize racket/runtime-path (only-in racket/tcp listen-port-number?) (for-syntax racket...
null
https://raw.githubusercontent.com/racket/web-server/d9b8fe5c4adec0493b7e2f9af46215305f34c8f1/web-server-lib/web-server/servlet-env.rkt
racket
Derived from plai/web/server, which was based on an older version of this Also derived from planet/untyped/instaservlet utility for conveniently chaining dispatchers
#lang racket/base (require racket/contract racket/list racket/serialize racket/runtime-path (only-in racket/tcp listen-port-number?) (for-syntax racket/base)) (require net/url web-server/managers/lru web-server/managers/manager web-server/configura...
a81652f62e82327cd258b4d2e9e23dbd95f4fb3e77929a3e707f8fcdadcafd57
erlyvideo/publisher
rtmp_stat_collector.erl
@author < > [ ] 2010 %%% @doc RTMP statistics collector %%% @reference See <a href="/" target="_top">/</a> for more information %%% @end %%% %%% This file is part of erlyvideo. %%% %%% erlyvideo is free software: you can redistribute it and/or modify it under the terms of the GNU General Pu...
null
https://raw.githubusercontent.com/erlyvideo/publisher/5bb2dfa6477c46160dc5fafcc030fc3f5340ec80/apps/rtmp/src/rtmp_stat_collector.erl
erlang
@doc RTMP statistics collector @reference See <a href="/" target="_top">/</a> for more information @end This file is part of erlyvideo. erlyvideo is free software: you can redistribute it and/or modify (at your option) any later version. erlyvideo is distributed in the hope that it will be useful, b...
@author < > [ ] 2010 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 -module(rtmp_stat_collector). -author('Max Lapshin <>'). -behaviour(gen_...
5866b4e982d44a8a280f5433a2b1aa380d77ed1949abab013185452190218740
PascalLG/nubo-hs
CmdAuth.hs
----------------------------------------------------------------------------- Nubo Client Application Copyright ( c ) 2017 , -- -- 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...
null
https://raw.githubusercontent.com/PascalLG/nubo-hs/390212b73c31746f4ff03a3e341f92d657db0223/Client/src/CmdAuth.hs
haskell
--------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished ...
Nubo Client Application Copyright ( c ) 2017 , 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 Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ...
0fba2cbfd6b9c918d04657ac4be01b46e99b7426e78c31d4e24763f0306a62cd
thelema/ocaml-community
path.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/typing/path.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . type t = Pident of Ident.t | Pdo...
adc2cecc82a9344b5474be6f39444744593ec73c8eb66058fbeacd2f21cdeabb
UU-ComputerScience/js-asteroids
EvtHandler.hs
module Graphics.UI.WXCore.EvtHandler ( module Graphics.UI.WXCore.EvtHandlerClass ,evthandler ) where import Graphics.UI.WXCore.EventClass import Graphics.UI.WXCore.EvtHandlerClass import Graphics.UI.WXCore.Types import LightOO import Data.IORef a `onlyIf` b = do a' <- a if a' then b else return False look...
null
https://raw.githubusercontent.com/UU-ComputerScience/js-asteroids/b7015d8ad4aa57ff30f2631e0945462f6e1ef47a/wxasteroids/src/Graphics/UI/WXCore/EvtHandler.hs
haskell
set callback data
module Graphics.UI.WXCore.EvtHandler ( module Graphics.UI.WXCore.EvtHandlerClass ,evthandler ) where import Graphics.UI.WXCore.EventClass import Graphics.UI.WXCore.EvtHandlerClass import Graphics.UI.WXCore.Types import LightOO import Data.IORef a `onlyIf` b = do a' <- a if a' then b else return False look...
fd6ddcea84f38ba975d44be6a5e12f923493314ebf105fe90985860409736409
xxyzz/SICP
Exercise_3_74.rkt
#lang racket/base (require racket/stream) (define (stream-map proc . argstreams) (if (stream-empty? (car argstreams)) empty-stream (stream-cons (apply proc (map stream-first argstreams)) (apply stream-map (cons proc (map stream-rest argstreams)))))) (define (sign-change-detec...
null
https://raw.githubusercontent.com/xxyzz/SICP/e26aea1c58fd896297dbf5406f7fcd32bb4f8f78/3_Modularity_Objects_and_State/3.5_Streams/Exercise_3_74.rkt
racket
Ator's code:
#lang racket/base (require racket/stream) (define (stream-map proc . argstreams) (if (stream-empty? (car argstreams)) empty-stream (stream-cons (apply proc (map stream-first argstreams)) (apply stream-map (cons proc (map stream-rest argstreams)))))) (define (sign-change-detec...
5155d3f35051ed2756849f77fff78150f34c069f517d4bd1119e7dbfe48a1490
ekmett/stable-maps
Map.hs
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 708 # LANGUAGE Trustworthy # #elif __GLASGOW_HASKELL__ >= 702 # LANGUAGE Unsafe # #endif module System.Mem.StableName.Map ( Map , Representational , empty , null , singleton , member , notMember , insert , insertWith , insertWith' ,...
null
https://raw.githubusercontent.com/ekmett/stable-maps/7d3b9c16b4ff4fd4bda9a07436b0fc6a95e63444/System/Mem/StableName/Map.hs
haskell
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 708 # LANGUAGE Trustworthy # #elif __GLASGOW_HASKELL__ >= 702 # LANGUAGE Unsafe # #endif module System.Mem.StableName.Map ( Map , Representational , empty , null , singleton , member , notMember , insert , insertWith , insertWith' ,...
9852cb84d9d04304bbde260651768c841ab9adb0631a4e867bf86bf52e0d8153
ilmotta/clojure-ants-simulation
world.clj
(ns demo.world (:require [demo.util :as util])) (def direction-delta {0 [0 -1] 1 [1 -1] 2 [1 0] 3 [1 1] 4 [0 1] 5 [-1 1] 6 [-1 0] 7 [-1 -1]}) (defn delta-location [config location direction] (->> direction (util/bound 8) (direction-delta) (map + location) (map (p...
null
https://raw.githubusercontent.com/ilmotta/clojure-ants-simulation/4835880cc4890bd65ad122c6a7898cd775cd94d6/src/demo/world.clj
clojure
(ns demo.world (:require [demo.util :as util])) (def direction-delta {0 [0 -1] 1 [1 -1] 2 [1 0] 3 [1 1] 4 [0 1] 5 [-1 1] 6 [-1 0] 7 [-1 -1]}) (defn delta-location [config location direction] (->> direction (util/bound 8) (direction-delta) (map + location) (map (p...
e2c0bd5cf75cd5c8ee53189eb83607a53f46d9629fed406613996c3d3f951d7d
mathematical-systems/clml
random-bug.lisp
(in-package :cl-user) (defun optimized () (declare (optimize (speed 3) (safety 0))) (random 1d0)) (defun not-one () (declare (optimize (speed 3) (safety 0))) (/ (random 2d0) 2d0)) (defun non-optimized () (random 1d0)) (defun use-single-float () (declare (optimize (speed 3) (safety 0))) (random 1f0)) ...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/distribution/rand/random-bug.lisp
lisp
Loading /home/roy/rand/random-bug.lisp formals: constant vector: *RANDOM-STATE* EXCL::FAST-RANDOM-DOUBLE-FLOAT SYS::NEW-DOUBLE-FLOAT formals: constant vector: code start: #x1000c319e8: 2.0d0 *RANDOM-STATE* EXCL::NEW-RANDOM-DOUBLE-FLOAT 2.0d0 SYS::NEW-DOUBLE-FLOAT formals: constant vector: code start...
(in-package :cl-user) (defun optimized () (declare (optimize (speed 3) (safety 0))) (random 1d0)) (defun not-one () (declare (optimize (speed 3) (safety 0))) (/ (random 2d0) 2d0)) (defun non-optimized () (random 1d0)) (defun use-single-float () (declare (optimize (speed 3) (safety 0))) (random 1f0)) ...
33eb4cf4e0ecb2bac0c151ea9e49f2f901f299f0f115e53c28aebf90108cbcf8
igorhvr/bedlam
sxml-tree-trans.scm
; XML/HTML processing in Scheme SXML expression tree transformers ; ; IMPORT ; A prelude appropriate for your Scheme system ; (myenv-bigloo.scm, myenv-mit.scm, etc.) ; ; EXPORT ( provide : send - reply ; post-order pre-post-order replace-range) ; ; See vSXML-tree-trans.scm for the validation code, which also ...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/opt/sxml/scm/sxml/sxml-tree-trans.scm
scheme
XML/HTML processing in Scheme IMPORT A prelude appropriate for your Scheme system (myenv-bigloo.scm, myenv-mit.scm, etc.) EXPORT post-order pre-post-order replace-range) See vSXML-tree-trans.scm for the validation code, which also serves as usage examples. Output the 'fragments' The fragments are a li...
SXML expression tree transformers ( provide : send - reply $ I d : sxml - tree - trans.scm , v 1.2 2005/11/25 20:46:38 acolomba Exp $ but causes the result of : send - reply to be # t (define (SRV:send-reply . fragments) (let loop ((fragments fragments) (result #f)) (cond ((null? fragments) re...
ec905f48365999179303856128a9db78afc0859b90886f85d1bc3d4930a3e5d5
richcarl/erlguten
eg_pdf_assemble.erl
%%========================================================================== Copyright ( C ) 2003 , %% %% 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 , includ...
null
https://raw.githubusercontent.com/richcarl/erlguten/debd6120907e5e18b4bca5fbd5bdd9cb653f282d/src/eg_pdf_assemble.erl
erlang
========================================================================== Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, following conditions: The above cop...
Copyright ( C ) 2003 , " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to the in all copies or substantial portions of the Software . THE SOF...
5dd0c08691d8ddbd4c94f3f22e7e81d1ea04eb2329df5a8c46bc93aafe66fb61
input-output-hk/cardano-sl
Spec.hs
# LANGUAGE DataKinds # module Cardano.Cluster.Util.Spec ( -- * Miscellaneous prop_AlternativeDefault , prop_runAsync -- * List , prop_stripFilterPrefix , prop_sizedSubsequenceLength , prop_sizedSubsequenceInclusion -- * String , prop_sToKkToSRoundTrip , prop_kToSsToKRoun...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/cluster/test/Cardano/Cluster/Util/Spec.hs
haskell
* Miscellaneous * List * String * Internal * Miscellaneous | Resulting value of (f |> a) is never empty * String | Like '/=', but prints a counterexample when it fails. | Approximately measure time taken by an IO action, in microseconds
# LANGUAGE DataKinds # module Cardano.Cluster.Util.Spec ( prop_AlternativeDefault , prop_runAsync , prop_stripFilterPrefix , prop_sizedSubsequenceLength , prop_sizedSubsequenceInclusion , prop_sToKkToSRoundTrip , prop_kToSsToKRoundTrip , prop_splitRoundTrip , (=/=) , ti...
19b63d1bbb4ef2e99c84f5dba5ad7c3c378a31b5a729f0a81bdceb2c3534a5b8
momohatt/hscaml
Parser.hs
module Parser ( parseCmd ) where import Control.Applicative (pure, (*>), (<$>), (<$), (<*), (<*>)) import Control.Monad.Combinators.Expr import Data.Functor (($>)) import Data.Maybe (isJust) import Data.Void import Tex...
null
https://raw.githubusercontent.com/momohatt/hscaml/00a2251d6f247dfd63bdd9252d6bc248dafac2af/src/Parser.hs
haskell
Tokens
module Parser ( parseCmd ) where import Control.Applicative (pure, (*>), (<$>), (<$), (<*), (<*>)) import Control.Monad.Combinators.Expr import Data.Functor (($>)) import Data.Maybe (isJust) import Data.Void import Tex...
6c77c1e5d81a6d030eed3e057d80e124921539a5e8ea40cf55aa7ee91ada2118
guicho271828/eazy-documentation
1definition.lisp
(in-package :eazy-documentation) (deftype name () `(or symbol (cons (eql setf) (cons symbol null)))) (eval-when (:compile-toplevel :load-toplevel :execute) (defclass def () ((doctype :accessor doctype :initarg :doctype :type symbol) (name :accessor name :initarg :name :type na...
null
https://raw.githubusercontent.com/guicho271828/eazy-documentation/2f68d45a04a8f1d6776a85abefa5f1b3d1ad4665/src/1definition.lisp
lisp
WARNING: def= must imply def~, and def~ must imply def~doc . note: this is not let* (break "~@{~a ~}" a b) different name, but same docstring, args, package same package different doctype, but same docstring, args different name, but same docstring, args, package
(in-package :eazy-documentation) (deftype name () `(or symbol (cons (eql setf) (cons symbol null)))) (eval-when (:compile-toplevel :load-toplevel :execute) (defclass def () ((doctype :accessor doctype :initarg :doctype :type symbol) (name :accessor name :initarg :name :type na...
e2f0479de55fe45ae4ebc4091068254737f660a49e2a838a023b4efc78cfa377
fractalide/fractalide
delete.rkt
#lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "controls" ${gui.vertical-panel}) (edge-out "controls" "out" "dynamic-out") (node "toggle" ${gui.check-box}) (edge "toggle" "out" _ "controls" "place" 0) (mesg "toggle" "in" '(init . ((label . "Please make sure you have access ...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/cardano-wallet/wsettings/delete/delete.rkt
racket
#lang racket (require fractalide/modules/rkt/rkt-fbp/graph) (define-graph (node "controls" ${gui.vertical-panel}) (edge-out "controls" "out" "dynamic-out") (node "toggle" ${gui.check-box}) (edge "toggle" "out" _ "controls" "place" 0) (mesg "toggle" "in" '(init . ((label . "Please make sure you have access ...
a9c18739d88503b7a0913f45700e6da4d3bf85e5ecfb5de863a424d982ea27e4
TempusMUD/cl-tempus
abandoned-cavern.lisp
(in-package #:tempus) (defparameter +rubble-vnum+ 16151) (defparameter *cavern-zones* (make-hash-table)) (define-special abandoned-cavern (trigger self ch command vars) (+spec-rm+) (declare (ignore command vars)) (when (and (eql trigger 'command) (not (immortalp ch)) (not (aff-flagged ch...
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/specials/abandoned-cavern.lisp
lisp
(in-package #:tempus) (defparameter +rubble-vnum+ 16151) (defparameter *cavern-zones* (make-hash-table)) (define-special abandoned-cavern (trigger self ch command vars) (+spec-rm+) (declare (ignore command vars)) (when (and (eql trigger 'command) (not (immortalp ch)) (not (aff-flagged ch...
d5e537b1df77e075df5d1ad1d1e0b42a9be4ce59193dc7382989e8ab8221a6c4
egraphdb/egraphdb
egraph_fast_write_store.erl
%%%------------------------------------------------------------------- @author neerajsharma ( C ) 2017 , < > %%% @doc %%% %%% This is an in-memory key value store, which is allows simultaneous %%% read along with write or delete. This can have some %%% useful properties in lieu of more memory requirement. %%% %...
null
https://raw.githubusercontent.com/egraphdb/egraphdb/41a0131be227f7f0a35ba0e2c1cb23d70cd86b03/src/egraph_fast_write_store.erl
erlang
------------------------------------------------------------------- @doc This is an in-memory key value store, which is allows simultaneous read along with write or delete. This can have some useful properties in lieu of more memory requirement. @end %CopyrightBegin% you may not use this file except in compl...
@author neerajsharma ( C ) 2017 , < > Copyright < > 2017 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(egraph_fast_write_store). -behaviour(gen_server). -export([start_link/1...
d325deaa3d2754515f2bceb93b3daec9c4d304c82f5abc0affa4fc0f1a77151a
graninas/Hydra
Language.hs
{-# LANGUAGE GADTs #-} # LANGUAGE TemplateHaskell # module Hydra.Core.State.Language where import Hydra.Prelude import qualified Hydra.Core.Domain as D import qualified Hydra.Core.Logger.Language as L import qualified Hydra.Core.Logger.Class as C import qualified Hydra....
null
https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/lib/hydra-church-free/src/Hydra/Core/State/Language.hs
haskell
# LANGUAGE GADTs # | Create variable. | Read variable. | Write variable. | Retry until some variable is changed in this atomic block. | Eval "delayed" logger: it will be written after successfull state operation.
# LANGUAGE TemplateHaskell # module Hydra.Core.State.Language where import Hydra.Prelude import qualified Hydra.Core.Domain as D import qualified Hydra.Core.Logger.Language as L import qualified Hydra.Core.Logger.Class as C import qualified Hydra.Core.State.Class as C ...
5eb0102ee4e0e5226e962e1e28f52373be9e2a1da0ddfeee2dce00d76c003bb9
ndmitchell/uniplate
Generate.hs
module Generate(generateExpr, generateStm,generatePar) where import Data import Control.Monad import System.Random import Test.QuickCheck generateExpr :: Int -> IO [Expr] generateExpr n = generateList n generateStm :: Int -> IO [Stm] generateStm n = generateList n generatePar :: Int -> IO [Company] generatePar n ...
null
https://raw.githubusercontent.com/ndmitchell/uniplate/7d3039606d7a083f6d77f9f960c919668788de91/Uniplate/BenchmarkOld/Generate.hs
haskell
module Generate(generateExpr, generateStm,generatePar) where import Data import Control.Monad import System.Random import Test.QuickCheck generateExpr :: Int -> IO [Expr] generateExpr n = generateList n generateStm :: Int -> IO [Stm] generateStm n = generateList n generatePar :: Int -> IO [Company] generatePar n ...
3be5e3af4746e7f0b7626cd202745d80e02516b2e3743ed9b2eb64082b72cc31
hstreamdb/hstream
MathSpec.hs
# LANGUAGE BlockArguments # # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module HStream.SQL.Codegen.MathSpec where import qualified Data.Aeson as A import Data.Function import Data.Scientific import HStrea...
null
https://raw.githubusercontent.com/hstreamdb/hstream/75997ecc31d4849bd074af206e55f971536629de/hstream-sql/test/HStream/SQL/Codegen/MathSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE BlockArguments # # LANGUAGE OverloadedLists # # LANGUAGE ScopedTypeVariables # module HStream.SQL.Codegen.MathSpec where import qualified Data.Aeson as A import Data.Function import Data.Scientific import HStream.SQL.AST import HStream.SQ...
4f854e47b10f6fff363b0a28dc602a515c668161176c784c058d38561f622654
effectfully/tiny-lang
Var.hs
# LANGUAGE UndecidableInstances # module TinyLang.Var ( Unique (..) , SupplyT (..) , Supply , MonadSupply (..) , runSupplyT , runSupply , supplyFromAtLeast , freshUnique , freeUniqueIntMap , freeUniqueFoldable , Var (..) , varUniq , freshVar ) where import ...
null
https://raw.githubusercontent.com/effectfully/tiny-lang/3dbb730d3595a76f087a33da3b353783ff2a27e9/common/TinyLang/Var.hs
haskell
TODO: Use a library. in the variable.
# LANGUAGE UndecidableInstances # module TinyLang.Var ( Unique (..) , SupplyT (..) , Supply , MonadSupply (..) , runSupplyT , runSupply , supplyFromAtLeast , freshUnique , freeUniqueIntMap , freeUniqueFoldable , Var (..) , varUniq , freshVar ) where import ...
7dbdb7f84865ec59d7eeea47f59d58b8667692b2c89887dfb52bfe50f3f33d19
facebook/pyre-check
abstractElementSetDomain.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/10c375bea52db5d10b71cb5206fac7da9549eb0c/source/domains/abstractElementSetDomain.mli
ocaml
Called after widen steps to further simplify the set. A set of abstract elements where elements can be related
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...