_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
b64782059b7f111c832ef6c76ff00a4a99d8c5a82485c65d893d936fb1503e4f
potapenko/playphraseme-site
nlp.cljs
(ns playphraseme.common.nlp (:require [clojure.string :as string])) (def test-text " ") (def one-dot-mark "#one#") (def one-question-mark "#question#") (def one-exclamation-mark "#exclamation#") (def sentence-separator "#S#") (def synthetic-sentence-separator "#L#") (def escape_dot "#escape_dot#") (def escape_dash ...
null
https://raw.githubusercontent.com/potapenko/playphraseme-site/d50a62a6bc8f463e08365dca96b3a6e5dde4fb12/src/cljs/playphraseme/common/nlp.cljs
clojure
(ns playphraseme.common.nlp (:require [clojure.string :as string])) (def test-text " ") (def one-dot-mark "#one#") (def one-question-mark "#question#") (def one-exclamation-mark "#exclamation#") (def sentence-separator "#S#") (def synthetic-sentence-separator "#L#") (def escape_dot "#escape_dot#") (def escape_dash ...
3f1f4268236ef30e684ead45cee07db928e454dee4fd111bf5711940167ec7a5
commercialhaskell/stack
Main.hs
import Control.Monad (unless) import Data.List (isInfixOf) import StackTest main :: IO () main = do stack ["clean"] stack ["build"]
null
https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/3996-sublib-not-depended-upon/Main.hs
haskell
import Control.Monad (unless) import Data.List (isInfixOf) import StackTest main :: IO () main = do stack ["clean"] stack ["build"]
74c6903fcb4fa4b69e88671fd4d7c274b91bfa47635ef23e5c6112cc0592785f
GaloisInc/macaw
Monad.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # module Data.Macaw.RISCV.Disassemble.Monad ( -- * Instruct...
null
https://raw.githubusercontent.com/GaloisInc/macaw/82640e7a4b8f842f4da31d9dfab451c0c7288b3c/macaw-riscv/src/Data/Macaw/RISCV/Disassemble/Monad.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # * Instruction disassembly | To disassemble the instruction, we need access to the instruction, its size in bytes, and the integer it was decoded in by the caller, representing the register state in the context of the first, but it is not updated by 'setReg' and always rep...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # module Data.Macaw.RISCV.Disassemble.Monad DisInstM(..), runDisInstM , DisInstError(..) , DisInstState,...
2f34eb1539f115cfce25627a4c4eb77927a8b569587b77dc5b6e25f40215a267
heroku/cowboyku
rest_postonly_resource.erl
-module(rest_postonly_resource). -export([init/3, allowed_methods/2, content_types_accepted/2, from_text/2]). init(_Transport, _Req, _Opts) -> {upgrade, protocol, cowboyku_rest}. allowed_methods(Req, State) -> {[<<"POST">>], Req, State}. content_types_accepted(Req, State) -> {[{{<<"text">>, <<"plain">>, '*'}, fro...
null
https://raw.githubusercontent.com/heroku/cowboyku/ba7120bdb119ac676909e51f0738bde1d4fdd4ee/test/http_SUITE_data/rest_postonly_resource.erl
erlang
-module(rest_postonly_resource). -export([init/3, allowed_methods/2, content_types_accepted/2, from_text/2]). init(_Transport, _Req, _Opts) -> {upgrade, protocol, cowboyku_rest}. allowed_methods(Req, State) -> {[<<"POST">>], Req, State}. content_types_accepted(Req, State) -> {[{{<<"text">>, <<"plain">>, '*'}, fro...
72fe84ee64717a20bb3f44a9f736087dc1588de79ae75dd883dc4899fc692402
candera/vmt
noise.cljc
(ns weathergen.noise "Functions for generating pseudorandom noise fields") (defn low-bits [^long x n] (bit-and x (dec (bit-shift-left 1 n)))) (defn high-bits [^long x n] (bit-shift-right x (- 32 n))) (defn bit-rotate-right [^long x n] (unchecked-add (high-bits x (- 32 n)) (bit-shift-le...
null
https://raw.githubusercontent.com/candera/vmt/8cf450e6c34af87d748152afd7f547b92ae9b38e/src/weathergen/noise.cljc
clojure
(ns weathergen.noise "Functions for generating pseudorandom noise fields") (defn low-bits [^long x n] (bit-and x (dec (bit-shift-left 1 n)))) (defn high-bits [^long x n] (bit-shift-right x (- 32 n))) (defn bit-rotate-right [^long x n] (unchecked-add (high-bits x (- 32 n)) (bit-shift-le...
9f161d0318f473374452bdc65c5cd3237a67852b57762442b3c50df3ee7433b0
amnh/poy5
alphSpec.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/alphSpec.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
6c841a095c63fbc04da4ca000e0fe9763249517d9f7703260d573b770b2ff2c2
elastic/eui-cljs
range_ticks.cljs
(ns eui.range-ticks (:require ["@elastic/eui/lib/components/form/range/range_ticks.js" :as eui])) (def EuiRangeTicks eui/EuiRangeTicks)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/range_ticks.cljs
clojure
(ns eui.range-ticks (:require ["@elastic/eui/lib/components/form/range/range_ticks.js" :as eui])) (def EuiRangeTicks eui/EuiRangeTicks)
b5584dc17f3e411cd37c6d0a6090fa959c42cc7f2e361325fec8008b41df93d9
ericdrgn/drgn.nyxt
commands.lisp
(in-package #:nyxt-user) ;;runs shutdown -h now (define-command-global no-mercy () "shutdown, with no mercy." (uiop:run-program "~/.config/nyxt/scripts/shutdown.sh")) ;;shows current time (define-command-global current-time () "Show the current time." (echo "~a" (local-time:now))) ;;runs curl wttr.in/?format...
null
https://raw.githubusercontent.com/ericdrgn/drgn.nyxt/4e965502f99237207b4c02177baa6c6226cb552a/base/commands.lisp
lisp
runs shutdown -h now shows current time runs curl wttr.in/?format=3 runs script to open spotify and set the window currently cannot be last command in this list and won't show in commands list so setting a keybinding is necessary quit and clear history opens current url in different browser replace firefox with your br...
(in-package #:nyxt-user) (define-command-global no-mercy () "shutdown, with no mercy." (uiop:run-program "~/.config/nyxt/scripts/shutdown.sh")) (define-command-global current-time () "Show the current time." (echo "~a" (local-time:now))) (define-command-global show-weather () "Show the weather for current ...
c219cb5916d25b7fc22f82207f600fe6d37ff781ae2c9e349b14838f80916cf5
thegeez/w3a
twitter.clj
(ns net.thegeez.w3a.oauth.twitter (:require [clj-http.client :as client] [environ.core :as environ] [io.pedestal.interceptor :as interceptor] [io.pedestal.impl.interceptor :as impl-interceptor] [io.pedestal.log :as log] [net.thegeez.w3a.link :as link] ...
null
https://raw.githubusercontent.com/thegeez/w3a/186e507389628f20381d155d91058a1804d421e3/src/net/thegeez/w3a/oauth/twitter.clj
clojure
h/t -oauth request-token makes an http request to twitter access-token makes an http request to twitter :screen_name "thecljvector"}
(ns net.thegeez.w3a.oauth.twitter (:require [clj-http.client :as client] [environ.core :as environ] [io.pedestal.interceptor :as interceptor] [io.pedestal.impl.interceptor :as impl-interceptor] [io.pedestal.log :as log] [net.thegeez.w3a.link :as link] ...
1b21aa274c31b20e0bd7be1ebcdd49d8f28c6ccc268b438eb8576979586fcb51
UU-ComputerScience/uhc
List.hs
# LANGUAGE NoImplicitPrelude , CPP # # OPTIONS_GHC -XNoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Data.List Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Mainta...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/uhcbase/Data/List.hs
haskell
--------------------------------------------------------------------------- | Module : Data.List License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable --------------------------------------------------------------------------- * Bas...
# LANGUAGE NoImplicitPrelude , CPP # # OPTIONS_GHC -XNoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 Operations on lists . module Data.List ( #ifdef __NHC__ [] (..) , #endif : : ( a ) = > [ a ] - > a : : ( a ) = > [ a ] - > a : : ( a ) = > [ a ] - > a : ...
b48925f9a2d9032c80c1e3c13f52981a4167561ad321b73b7207d4e4c81d902a
NathanReb/ppx_yojson
test_utils.mli
val suite : unit Alcotest.test
null
https://raw.githubusercontent.com/NathanReb/ppx_yojson/085844cbbbc199689faeeee0c9bc1f4d9bc5f4f9/test/lib/test_utils.mli
ocaml
val suite : unit Alcotest.test
67bb273e7fced320e87f008150c116c7c70de3d231bd241d2330cf6d3005b7c4
aggelgian/erlang-algorithms
dijkstra.erl
@doc Dijkstra 's Algorithm %% %% <p>For examples you can check the <code>dijsktra_demo</code> module.</p> %% -module(dijkstra). -export([run/2]). -type open_set() :: gb_trees:tree(). -type closed_set() :: dict:dict(). -type parents() :: dict:dict(). %% ------------------------------------------------------...
null
https://raw.githubusercontent.com/aggelgian/erlang-algorithms/8ceee72146f2a6eff70a16e3e9a74d2ed072fa0a/src/dijkstra.erl
erlang
<p>For examples you can check the <code>dijsktra_demo</code> module.</p> ---------------------------------------------------------- Dijkstra Abstractions ---------------------------------------------------------- Graph Abstractions Heap (Open Set) Abstractions Visited (Closed Set) Abstractions Parents Abstr...
@doc Dijkstra 's Algorithm -module(dijkstra). -export([run/2]). -type open_set() :: gb_trees:tree(). -type closed_set() :: dict:dict(). -type parents() :: dict:dict(). -define(EDGE_WEIGHT(Graph, Edge), graph:edge_weight(Graph, Edge)). -define(GET_NEIGHBOURS(Vertex, Graph), graph:out_neighbours(Graph, Vertex...
ccc858b41150c87f95c66508c72e0643a6eb2b6c6f98b3209b3a09ee1a4b284f
input-output-hk/cardano-rest
GenesisSummary.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} module Explorer.Web.Api.Legacy.GenesisSummary ( genesisSummary ) where import Cardano.Db ( EntityField (..), txOutSpentP ) import Control.Monad.IO.Class ( MonadIO ) import Data.Fixed ( Fixed (..), Uni ) import Data.Maybe ( listToMaybe ) imp...
null
https://raw.githubusercontent.com/input-output-hk/cardano-rest/040b123b45af06060aae04479d92fada68820f12/explorer-api/src/Explorer/Web/Api/Legacy/GenesisSummary.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # module Explorer.Web.Api.Legacy.GenesisSummary ( genesisSummary ) where import Cardano.Db ( EntityField (..), txOutSpentP ) import Control.Monad.IO.Class ( MonadIO ) import Data.Fixed ( Fixed (..), Uni ) import Data.Maybe ( listToMaybe ) import Database.Esqueleto ( InnerJ...
5b47998e970c9b3446650472323384e4c8ac26d12d66de18894f6299a3c0c1a7
darkleaf/publicator
update.clj
(ns publicator.web.responders.post.update (:require [publicator.use-cases.interactors.post.update :as interactor] [publicator.web.responders.base :as responders.base] [publicator.web.responses :as responses] [publicator.web.forms.post.params :as form])) (defmethod responders.base/result->resp ::interacto...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/web/src/publicator/web/responders/post/update.clj
clojure
(ns publicator.web.responders.post.update (:require [publicator.use-cases.interactors.post.update :as interactor] [publicator.web.responders.base :as responders.base] [publicator.web.responses :as responses] [publicator.web.forms.post.params :as form])) (defmethod responders.base/result->resp ::interacto...
9de1da4f6125e7d37e5babbca1245a8e2a6925ce447ad9202f8fa1ebf04eaf95
abcdw/rde
docker.scm
;;; rde --- Reproducible development environment. ;;; Copyright © 2021 , 2022 < > ;;; ;;; This file is part of rde. ;;; ;;; rde is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lic...
null
https://raw.githubusercontent.com/abcdw/rde/b57387f29ed1ef835b500ca8beca312b2233117d/src/rde/features/docker.scm
scheme
rde --- Reproducible development environment. This file is part of rde. rde is free software; you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. rde is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the im...
Copyright © 2021 , 2022 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define-module (rde features docker) #:use-module (rde features) #:use-module (rde features emacs) #:use-module (gnu packages docker) #:use-mo...
de1f0c8b2aff0203eee980cc39b593e702c377879e0e7c27f0490b2d6fe290a9
JKTKops/cspim
Parser.hs
# LANGUAGE FlexibleContexts # module Parser.Parser (parseC) where import TAC.Program as TAC hiding (NoChange, globalVars) import qualified TAC.Program as Program This is a complex problem because MIPS registers being tied to the MemLoc type makes it harder to target x86 later . I think it might be possible to ma...
null
https://raw.githubusercontent.com/JKTKops/cspim/0218d88ee774023eecef2c4a0733c3cf1184f443/src/Parser/Parser.hs
haskell
parameterized over the _type_ of registers it contains. ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------ DeferOutOfScopeErrors tells us to turn errors to warnings, but we have warnings and want ...
# LANGUAGE FlexibleContexts # module Parser.Parser (parseC) where import TAC.Program as TAC hiding (NoChange, globalVars) import qualified TAC.Program as Program This is a complex problem because MIPS registers being tied to the MemLoc type makes it harder to target x86 later . I think it might be possible to ma...
52d9005b4c17de0745f5c27cdb9fe71fc1175fcb239ccff705eb2955cd4997ff
orionsbelt-battlegrounds/obb-rules
action_test.cljc
(ns obb-rules.action-test (:require [obb-rules.board :as board] [obb-rules.action :as action] [obb-rules.result :as result] #?(:clj [clojure.test :refer [deftest testing is run-tests]] :cljs [cljs.test :refer-macros [deftest testing is run-tests]]))) (defn- loader-check "Checks if an action ...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/test/obb_rules/action_test.cljc
clojure
(ns obb-rules.action-test (:require [obb-rules.board :as board] [obb-rules.action :as action] [obb-rules.result :as result] #?(:clj [clojure.test :refer [deftest testing is run-tests]] :cljs [cljs.test :refer-macros [deftest testing is run-tests]]))) (defn- loader-check "Checks if an action ...
570b779e42712b086ff165bdd4780f8d563047f6bb980af3f4f617c162814a81
Licenser/ecrdt
vorsetg.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2013 , Heinz Nikolaus Gies %%% @doc %%% This is an extention of the standard OR Set implementation that adds the GC interface and functionality as descrived here : %%% -garbage-collection-with-crdts/ %%% @end Created :...
null
https://raw.githubusercontent.com/Licenser/ecrdt/2024b465f4fdf3fb3d2a16679f9aee6c06e62ea4/src/vorsetg.erl
erlang
------------------------------------------------------------------- @doc This is an extention of the standard OR Set implementation that -garbage-collection-with-crdts/ @end ------------------------------------------------------------------- =================================================================== Imple...
@author < > ( C ) 2013 , Heinz Nikolaus Gies adds the GC interface and functionality as descrived here : Created : 1 Jun 2013 by < > -module(vorsetg). -behaviour(ecrdt). -ifdef(TEST). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). -endif. -export([ typ...
32c7cd826cd8217c29f7a06af6c2fb66d8599a245dcefccb2b657a6b7ff8fee5
diku-dk/futhark
Defunctionalise.hs
| Defunctionalization of typed , monomorphic programs without modules . module Futhark.Internalise.Defunctionalise (transformProg) where import Control.Monad.Identity import Control.Monad.Reader import Control.Monad.State import Data.Bifunctor import Data.Bitraversable import Data.Foldable import Data.List (partiti...
null
https://raw.githubusercontent.com/diku-dk/futhark/b562f0c340748cfbd200ee823201bf727fc76270/src/Futhark/Internalise/Defunctionalise.hs
haskell
| A static value stores additional information about the result of defunctionalization of an expression, aside from the residual expression. | The Env is the lexical closure of the lambda. | The constructor that is actually present, plus the others that are not. body. (Don't trust this too much, my understanding ...
| Defunctionalization of typed , monomorphic programs without modules . module Futhark.Internalise.Defunctionalise (transformProg) where import Control.Monad.Identity import Control.Monad.Reader import Control.Monad.State import Data.Bifunctor import Data.Bitraversable import Data.Foldable import Data.List (partiti...
5fbbf63ef1266616b117932413b098402b39b2f6c11d36a31fbf4c79a7cb0391
yesodweb/yesod
FeedTypes.hs
module Yesod.FeedTypes ( Feed (..) , FeedEntry (..) , EntryEnclosure (..) , EntryCategory (..) ) where import Text.Hamlet (Html) import Data.Time.Clock (UTCTime) import Data.Text (Text) -- | The overall feed data Feed url = Feed { feedTitle :: Text , feedLinkSelf :: u...
null
https://raw.githubusercontent.com/yesodweb/yesod/c59993ff287b880abbf768f1e3f56ae9b19df51e/yesod-newsfeed/Yesod/FeedTypes.hs
haskell
| The overall feed | note: currently only used for Rss | note: currently only used for Rss, possible values: <-language-codes> This represents the enclosed content. Atom feeds ignore 'enclosedSize' and 'enclosedMimeType'. ^ Specified in bytes * [Atom category](#section-4.2.2) RSS feeds ignore 'categoryL...
module Yesod.FeedTypes ( Feed (..) , FeedEntry (..) , EntryEnclosure (..) , EntryCategory (..) ) where import Text.Hamlet (Html) import Data.Time.Clock (UTCTime) import Data.Text (Text) data Feed url = Feed { feedTitle :: Text , feedLinkSelf :: url , feedLinkHome ...
1210a40369eb1d06dd43995e42b4c0d248e7dc72c5091f1b52bfe982a254cded
janestreet/camlp4-to-ppx
main.ml
let () = Pa_macro.linkme let () = Pa_ounit.linkme let () = Pa_bench.linkme let () = Pa_type_conv.linkme let () = Pa_js.linkme let () = Camlp4_to_ppx.main ()
null
https://raw.githubusercontent.com/janestreet/camlp4-to-ppx/5dc1cf5a3dc9e1d206d07c91a2468fd31df01e05/bin/main.ml
ocaml
let () = Pa_macro.linkme let () = Pa_ounit.linkme let () = Pa_bench.linkme let () = Pa_type_conv.linkme let () = Pa_js.linkme let () = Camlp4_to_ppx.main ()
d71780eda9661ccb44e89d9dbcbf894c0713a3acc8187a625dbfc696c52c3f2e
barrucadu/dejafu
DPOR.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # -- | Module : Test . DejaFu . SCT.Internal . DPOR Copyright : ( c ) 2015 - -2020 License : MIT Maintainer : < > -- Stability : experimental Portability : , DeriveGeneric ...
null
https://raw.githubusercontent.com/barrucadu/dejafu/f805783398e2be60ebabb56fce9f23506b9d1879/dejafu/Test/DejaFu/SCT/Internal/DPOR.hs
haskell
# LANGUAGE DeriveAnyClass # | Stability : experimental reduction. This module is NOT considered to form part of the public interface of this library. ----------------------------------------------------------------------------- * Dynamic partial-order reduction by the decisions that lead to that state. ^ Wha...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # Module : Test . DejaFu . SCT.Internal . DPOR Copyright : ( c ) 2015 - -2020 License : MIT Maintainer : < > Portability : , DeriveGeneric , FlexibleContexts , ViewPatterns Internal types and functions fo...
e50ce778bfaa2f8369af9b6d3e6a819ff34a4fef4b27864a41f1cdf7f4895577
bluejay77/MRS-NOVEL9
demons.lisp
;;; -*- Mode: Common-LISP -*- ;;; DEMONS.LSP 0.4 18 - Mar-83 0129 000 1 ML E 18 - Mar-83 ;;; DEMON related functions (forward chaining?) ;;; perm filename DEMONS.LSP[MRS , LSP ] blob sn#702117 filedate 1983 - 03 - 18 generic text , type C , neo UTF8 ;;; COMMENT ⊗ VALID 00003 PAGES C REC PAGE D...
null
https://raw.githubusercontent.com/bluejay77/MRS-NOVEL9/3a2d7a9c52b711125521444bb3eb6df7fb727017/demons.lisp
lisp
-*- Mode: Common-LISP -*- DEMON related functions (forward chaining?) C00001 00001 C00002 00002 C⊗; ; ; ; ; ------------------------------------------------------------ ------------------------------------------------------------ (declare (special agenda)) General compilation of applicability relies on...
DEMONS.LSP 0.4 18 - Mar-83 0129 000 1 ML E 18 - Mar-83 perm filename DEMONS.LSP[MRS , LSP ] blob sn#702117 filedate 1983 - 03 - 18 generic text , type C , neo UTF8 COMMENT ⊗ VALID 00003 PAGES C REC PAGE DESCRIPTION C00005 00003 C00007 ENDMK Dr 2015 - 05 - 10 ( if ( applicable ...
ab2aeb3a11e0556ed6cb6f494d89d854a9972b851d7451150f2deb2feb9889d1
project-oak/hafnium-verification
cAst_utils.mli
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/clang/cAst_utils.mli
ocaml
* Functions for transformations of ast nodes * returns sanitized, fully qualified name given name info * returns sanitized unqualified name given name info * returns qualified class name given member name info * looks up clang pointer to type and resolves any sugar around it. See get_type for more info and rest...
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
c3329ca1403f7a84e95a26f991edf2ca82f71c9ef8606e916373dae5552df807
haskell-foundation/foundation
ByteString.hs
-- | Module : Foundation . Compat . ByteString -- License : BSD-style -- Maintainer : Foundation -- Stability : experimental -- Portability : portable -- Module to convert bytestring 's ByteString type # LANGUAGE ViewPatterns # module Foundation.Compat.ByteString ( fromByteString , toByteString...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/edge/Foundation/Compat/ByteString.hs
haskell
| License : BSD-style Maintainer : Foundation Stability : experimental Portability : portable without re-allocating or copying anything all the bytes are copied to a brand new memory chunk
Module : Foundation . Compat . ByteString Module to convert bytestring 's ByteString type # LANGUAGE ViewPatterns # module Foundation.Compat.ByteString ( fromByteString , toByteString ) where import Data.ByteString (ByteString) import Data.ByteString.Internal (toForeignPtr, unsafeCreate, memcpy) ...
38fcb4ef10358e494a50b765fa6ad130a99ec7eaa767cb232a0fbaaad3df8db1
solita/mnt-teet
geo.clj
(ns teet.util.geo "Geometrical calculation utilities" (:require [clojure.string :as str])) (defn distance "Calculates the distance between two points." [[x1 y1] [x2 y2]] (let [dx (- x1 x2) dy (- y1 y2)] (Math/sqrt (+ (* dx dx) (* dy dy))))) (defn line-string-length "Calculates the total length...
null
https://raw.githubusercontent.com/solita/mnt-teet/247253739c33aadbc34529cb62b63e87e0dea9b8/app/backend/src/clj/teet/util/geo.clj
clojure
closer to right offset point, positive offset closet to left offset point, negative offset
(ns teet.util.geo "Geometrical calculation utilities" (:require [clojure.string :as str])) (defn distance "Calculates the distance between two points." [[x1 y1] [x2 y2]] (let [dx (- x1 x2) dy (- y1 y2)] (Math/sqrt (+ (* dx dx) (* dy dy))))) (defn line-string-length "Calculates the total length...
e6959e77fe80f5e222ab39ae67425646b947882bdf5ba9373159a453d6e0f742
irastypain/sicp-on-language-racket
test_exercise_1_41.rkt
#lang racket (require rackunit "../../src/lib/base.rkt" "../../src/chapter01/exercise_1_41.rkt") (check-equal? (((double (double double)) inc) 5) 21 (printf "test#1 1.41 passed\n")) (check-equal? ((double square) 5) 625 (printf "test#2 1.41 passed\n"))
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/test/chapter01/test_exercise_1_41.rkt
racket
#lang racket (require rackunit "../../src/lib/base.rkt" "../../src/chapter01/exercise_1_41.rkt") (check-equal? (((double (double double)) inc) 5) 21 (printf "test#1 1.41 passed\n")) (check-equal? ((double square) 5) 625 (printf "test#2 1.41 passed\n"))
270a110f4b0cdcaa2c3eecd8bed421826a3e2e09f40b4aa8fd379f33f5c28b1f
ocaml-multicore/parafuzz
when_test.ml
(* TEST * toplevel *) effect E : unit;; let () = (match perform E with | v -> v | effect E k when (continue k (); false) -> assert false | effect E k' -> continue k' ()) ;;
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/effects-disallowed/when_test.ml
ocaml
TEST * toplevel
effect E : unit;; let () = (match perform E with | v -> v | effect E k when (continue k (); false) -> assert false | effect E k' -> continue k' ()) ;;
197a1ff64dcf80f0f671222fef6cb9f0938302b86a780b1967892cafa846fc19
cljdoc/cljdoc
doc_tree_test.clj
(ns cljdoc.doc-tree-test (:require [cljdoc.doc-tree :as doctree] [clojure.test :as t] [clojure.test.check.clojure-test :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clojure.spec.test.alpha :as st] [cloj...
null
https://raw.githubusercontent.com/cljdoc/cljdoc/4fb796f87c9f431b83ca00e7805c5b143e23b164/test/cljdoc/doc_tree_test.clj
clojure
generated (neighbours are found based on the slug-path) encourage generation of unique slugs across siblings. this matches reality and avoids duplicate slug-paths generated tree can be large, don't need to test it all
(ns cljdoc.doc-tree-test (:require [cljdoc.doc-tree :as doctree] [clojure.test :as t] [clojure.test.check.clojure-test :as tc] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clojure.spec.test.alpha :as st] [cloj...
aad1163d1f2ee7f7e34aed066cbca5981097de2dd1de4c2b1f4382b71f1b13af
bravit/hid-examples
BenchParseIP.hs
module BenchParseIP where import Criterion.Main import ParseIP import NFUtils () import Data bench_parseIP :: [Benchmark] bench_parseIP = [ bench "parseIP/current" $ nf (map parseIP) iptexts , bgroup "parseIP" [ bench "monadic" $ nf (map parseIPMonadic) iptexts , bench "iterative" $ nf (map parseIPI...
null
https://raw.githubusercontent.com/bravit/hid-examples/913e116b7ee9c7971bba10fe70ae0b61bfb9391b/benchmarks/iplookup/BenchParseIP.hs
haskell
module BenchParseIP where import Criterion.Main import ParseIP import NFUtils () import Data bench_parseIP :: [Benchmark] bench_parseIP = [ bench "parseIP/current" $ nf (map parseIP) iptexts , bgroup "parseIP" [ bench "monadic" $ nf (map parseIPMonadic) iptexts , bench "iterative" $ nf (map parseIPI...
534c0f55e1be3fe46da144f03b8471163c9642280b5bbe849fb61dd5c9f132a2
racket/typed-racket
nested-pair1.rkt
#;#; #<<END TR opt: nested-pair1.rkt 2:0 (car (cdr (quote (1 2)))) -- pair TR opt: nested-pair1.rkt 2:5 (cdr (quote (1 2))) -- pair END #<<END 2 END #lang typed/scheme #:optimize #reader typed-racket-test/optimizer/reset-port (car (cdr '(1 2)))
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/optimizer/tests/nested-pair1.rkt
racket
#;
#<<END TR opt: nested-pair1.rkt 2:0 (car (cdr (quote (1 2)))) -- pair TR opt: nested-pair1.rkt 2:5 (cdr (quote (1 2))) -- pair END #<<END 2 END #lang typed/scheme #:optimize #reader typed-racket-test/optimizer/reset-port (car (cdr '(1 2)))
3142f713cc5e1a3e0bd5db105cf21e1468dba98f094a83a7ada3a7b6afbea26d
Ptival/chick
HasNonBindingPattern.hs
# LANGUAGE AllowAmbiguousTypes # module PrettyPrinting.HasNonBindingPattern ( HasNonBindingPattern (..), ) where import Language (Language (..)) class HasNonBindingPattern (l :: Language) where nonBindingPattern :: String instance HasNonBindingPattern 'Chick where nonBindingPattern = "_"
null
https://raw.githubusercontent.com/Ptival/chick/5f21b154acbc04f6572692ad1d592a50c37a638e/backend/lib/PrettyPrinting/HasNonBindingPattern.hs
haskell
# LANGUAGE AllowAmbiguousTypes # module PrettyPrinting.HasNonBindingPattern ( HasNonBindingPattern (..), ) where import Language (Language (..)) class HasNonBindingPattern (l :: Language) where nonBindingPattern :: String instance HasNonBindingPattern 'Chick where nonBindingPattern = "_"
473bc2cba09796d1ce3e1fac8cf3255918c9fc5d0ae0050d8612b419bca0c477
mzp/coq-ruby
indrec.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/pretyping/indrec.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Errors related to recursors buildin...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : indrec.ml 11897 2...
89960900b907beb29aabf08d9975c87b04dc5928e9b1a83b28e5b567877f31a5
discus-lang/ddc
Witness.hs
{-# OPTIONS_HADDOCK hide #-} module DDC.Core.Check.Judge.Type.Witness -- (checkWit) where -- import DDC.Core.Check.Judge.Witness -- import DDC.Core.Check.Judge.Type.Base import qualified DDC.Type . Sum as Sum {- checkWit :: Checker a n checkWit !table !ctx _mode _demand (XWitness a w1) = d...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core/DDC/Core/Check/Judge/Type/Witness.hs
haskell
# OPTIONS_HADDOCK hide # (checkWit) import DDC.Core.Check.Judge.Witness import DDC.Core.Check.Judge.Type.Base checkWit :: Checker a n checkWit !table !ctx _mode _demand (XWitness a w1) = do let config = tableConfig table -- Check the witness. (w1', t1) <- checkWitnessM ...
module DDC.Core.Check.Judge.Type.Witness where import qualified DDC.Type . Sum as Sum
997be5476fc1b5303e412fdc8ed7664935c30e45e52daa6e656d5370d5da8643
weyrick/roadsend-php
signals.scm
(module gtk-signals (library php-runtime) (import (gtk-binding "cigloo/gtk.scm")) (export (reference obj) (dereference obj) (gtk-signal-connect obj::GtkObject* signal::bstring func::procedure #!optional after) (phpgtk-destroy-notify::obj data::procedure) (phpgtk-closure-invalidate::obj data...
null
https://raw.githubusercontent.com/weyrick/roadsend-php/d6301a897b1a02d7a85bdb915bea91d0991eb158/runtime/ext/gtk2/cigloo/signals.scm
scheme
we need to keep scheme data from being garbage collected signals returns the handler-id (gtk_signal_connect_full obj signal ;; we don't let gtk call the signal function directly ;; instead, we have our marshaller do it "phpgtk_signal_marshall") ;; we pass the actual callback...
(module gtk-signals (library php-runtime) (import (gtk-binding "cigloo/gtk.scm")) (export (reference obj) (dereference obj) (gtk-signal-connect obj::GtkObject* signal::bstring func::procedure #!optional after) (phpgtk-destroy-notify::obj data::procedure) (phpgtk-closure-invalidate::obj data...
9b63359f372294db2aba6068c67959c418c4b068f68a59c57614a52bcf5d2859
yakaz/yamerl
ex_6.22_global_tag_prefix.erl
-module('ex_6.22_global_tag_prefix'). -include_lib("eunit/include/eunit.hrl"). -define(FILENAME, "test/parsing/" ?MODULE_STRING ".yaml"). single_test_() -> ?_assertMatch( {yamerl_parser, {file,?FILENAME}, [], <<>>, 54, true, [], 0, 55, ...
null
https://raw.githubusercontent.com/yakaz/yamerl/0032607a7b27fa2b548fc9a02d7ae6b53469c0c5/test/parsing/ex_6.22_global_tag_prefix.erl
erlang
-module('ex_6.22_global_tag_prefix'). -include_lib("eunit/include/eunit.hrl"). -define(FILENAME, "test/parsing/" ?MODULE_STRING ".yaml"). single_test_() -> ?_assertMatch( {yamerl_parser, {file,?FILENAME}, [], <<>>, 54, true, [], 0, 55, ...
6e0b4b949d973ab2c02cba43399a9becf8d412eac50a80314a21baa019c08fa4
sarabander/p2pu-sicp
2.13.scm
Depends on the two preceding exercises ;; Let x, y and z be intervals. We will use the following prefixes with them: ;; l - lower-bound (e.g. lx is the lower-bound of x) ;; u - upper-bound ;; c - center of interval ;; w - width of interval (distance from center to either bound) ;; p - percentage tolerance ;; ...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/2.1/2.13.scm
scheme
Let x, y and z be intervals. We will use the following prefixes with them: l - lower-bound (e.g. lx is the lower-bound of x) u - upper-bound c - center of interval w - width of interval (distance from center to either bound) p - percentage tolerance w u - l u...
Depends on the two preceding exercises It follows that p = ─ ─ ─ ─ ─ , l = c - w and u = c + w Let 's construct a multiplication z = x⋅y . Assuming x > 0 and y > 0 ( see 2.11 ) , and expanding x , y and z to interval notation , we see that z = x⋅y = > [ lz , uz ] = [ lx , ux]⋅[ly , uy ] = [ lx⋅ly...
a5aadca4f64c787fd477570989457c8d8f189362918aa51dfddca544b506c32e
alphaHeavy/llvm-general-typed
Load.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module LLVM.General.Typed.Instructions.Load ( load ) where import Data.Proxy import Foreign.Ptr (Ptr) import qualified LLVM.General.AST as AST import LLVM.General.Typed.BasicBlock import LLVM.General.Typed.FreshName import LLVM...
null
https://raw.githubusercontent.com/alphaHeavy/llvm-general-typed/75c39111f7fc685aacb3eaf1b2948451e7222e0b/llvm-general-typed-pure/src/LLVM/General/Typed/Instructions/Load.hs
haskell
^ Is this a volatile load? ^ Source address
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module LLVM.General.Typed.Instructions.Load ( load ) where import Data.Proxy import Foreign.Ptr (Ptr) import qualified LLVM.General.AST as AST import LLVM.General.Typed.BasicBlock import LLVM.General.Typed.FreshName import LLVM...
9dab25422cceb3c79169209fedbdc8fc4c56b39907c9a73043e99f9577b541b8
nathell/smyrna
middleware.clj
(ns smyrna.middleware (:require [ring.middleware.defaults :refer [api-defaults wrap-defaults]])) (def defaults (-> api-defaults (assoc-in [:static :resources] "public"))) (defn wrap-middleware [handler] (wrap-defaults handler defaults))
null
https://raw.githubusercontent.com/nathell/smyrna/7ceb648d9ab9dfcf95f3197af27191b15a96d0e7/env/prod/clj/smyrna/middleware.clj
clojure
(ns smyrna.middleware (:require [ring.middleware.defaults :refer [api-defaults wrap-defaults]])) (def defaults (-> api-defaults (assoc-in [:static :resources] "public"))) (defn wrap-middleware [handler] (wrap-defaults handler defaults))
35c4b0c06f95af86e8f4f0ce0a606c7c65b672c6c8aeb19c7f1fab4b222f830a
gizmo385/discord.clj
commands.clj
(ns discord.interactions.commands (:require [clojure.walk :as w] [clojure.set :as s] [clojure.string :as st] [discord.config :as config] [discord.api.interactions :as interactions-api] [discord.interactions.core :as i] [discord.utils :as utils] [taoensso.timbre :as timbre])) ;;;;;;;;;...
null
https://raw.githubusercontent.com/gizmo385/discord.clj/79e293ace397431022313bc63f28f808ff6ef383/src/discord/interactions/commands.clj
clojure
Constants defined in the developer documentation Defining slash commands Handling slash command interactions
(ns discord.interactions.commands (:require [clojure.walk :as w] [clojure.set :as s] [clojure.string :as st] [discord.config :as config] [discord.api.interactions :as interactions-api] [discord.interactions.core :as i] [discord.utils :as utils] [taoensso.timbre :as timbre])) (def chat...
05937a66b2b8fac7c3497725f345caec9d02b732634fba4cfbee9b05eca103b1
racket/typed-racket
stx-cdr.rkt
#lang typed/racket/base/shallow (require typed/syntax/stx) ;; ... no idea whats wrong ;; - guarded never fails so far ;; - shallow passes with no cod-check ;; when type says (List ....) bun NOT when ( .... ) ;(: x (Syntaxof (Pairof Identifier (List Identifier)))) (: x (Syntaxof (Pairof Identifier (Listof Ident...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/stx-cdr.rkt
racket
... no idea whats wrong - guarded never fails so far - shallow passes with no cod-check when type says (List ....) (: x (Syntaxof (Pairof Identifier (List Identifier)))) (: y (List Identifier))
#lang typed/racket/base/shallow (require typed/syntax/stx) bun NOT when ( .... ) (: x (Syntaxof (Pairof Identifier (Listof Identifier)))) (define x #'(a b)) x (: y (Listof Identifier)) (define y (stx-cdr x)) y (and (list? y) (= 1 (length y)))
b75d7c8ff585aa24d72781ddebdec03bf50549848e46f546047597a9f9e92c8c
webnf/webnf
enlive.clj
(ns webnf.enlive (:import java.net.URLDecoder) (:require [clojure.tools.logging :as log] [clojure.java.io :as io] [clojure.core.cache :as cache] [net.cgrand.enlive-html :refer [set-attr clone-for html-resource at emit* content substitute select]])) (defprotocol HtmlSource (to-html [source]) (cache-...
null
https://raw.githubusercontent.com/webnf/webnf/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/enlive.clj/src/webnf/enlive.clj
clojure
(ns webnf.enlive (:import java.net.URLDecoder) (:require [clojure.tools.logging :as log] [clojure.java.io :as io] [clojure.core.cache :as cache] [net.cgrand.enlive-html :refer [set-attr clone-for html-resource at emit* content substitute select]])) (defprotocol HtmlSource (to-html [source]) (cache-...
bdf2dadd57c980488658bb6f1af16633927de8f18c1dc745f06b6a01e4567096
LauraVoinea/protocol-reengineering-implementation
services_expected.erl
-module(services_expected). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([act_s1/1, act_s2/1, callback_mode/0, init/1, start_link/0, state1/3, stop/0, terminate/3]). start_link() -> gen_statem:start_link({local, ?SERVER}, ?MODULE, [], []). ...
null
https://raw.githubusercontent.com/LauraVoinea/protocol-reengineering-implementation/23a8d99fe1663b249c4c46fdf03fd24cc01c060c/src/examples/payment/services_expected.erl
erlang
-module(services_expected). -behaviour(gen_statem). -define(SERVER, ?MODULE). -export([act_s1/1, act_s2/1, callback_mode/0, init/1, start_link/0, state1/3, stop/0, terminate/3]). start_link() -> gen_statem:start_link({local, ?SERVER}, ?MODULE, [], []). ...
91792f8f917a87b505dfa91e65f8a76eb39057c18f4d119eada9144708393c82
ozataman/snap-extras
CSRF.hs
{-# LANGUAGE OverloadedStrings #-} module Snap.Extras.CSRF where ------------------------------------------------------------------------------ import Control.Monad.Trans import qualified Data.ByteString.Char8 as B import Data.Text (Text) import qualified Data.Text.Encoding as T imp...
null
https://raw.githubusercontent.com/ozataman/snap-extras/15cd7a3f9d2b7e09db683e97e20d040fa7124902/src/Snap/Extras/CSRF.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- | A splice that makes the CSRF token available to templat...
module Snap.Extras.CSRF where import Control.Monad.Trans import qualified Data.ByteString.Char8 as B import Data.Text (Text) import qualified Data.Text.Encoding as T import Heist import Heist.Interpreted import Snap import Snap.Snaplet.Session...
2f842037770d0078fb8fc3240e811177f725fb8291e77f713c40953d9c86eba2
camlp4/camlp4
ErrorHandler.mli
(****************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/camlp4/camlp4/9b3314ea63288decb857239bd94f0c3342136844/camlp4/Camlp4/ErrorHandler.mli
ocaml
************************************************************************** OCaml ...
Copyright 2006 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with the special Authors : * - : initial version * - Nicolas Pouillard: initial version ...
4597e0727eb70666f44faa2fd40411d148904e954ee745b321fab552954fce2f
binaryage/chromex
onc.cljs
(ns chromex.app.networking.onc (:require-macros [chromex.app.networking.onc :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-properties* [config network-guid] (gen-wrap :function...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps/chromex/app/networking/onc.cljs
clojure
-- events -----------------------------------------------------------------------------------------------------------------
(ns chromex.app.networking.onc (:require-macros [chromex.app.networking.onc :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-properties* [config network-guid] (gen-wrap :function...
5b1bf1c08bcfa812592b30773b0935c9e253e574367c76996a6f91c4247777c2
haskell-tools/haskell-tools
Let.hs
module Refactor.GenerateTypeSignature.Let where x = let unit = () in ()
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/GenerateTypeSignature/Let.hs
haskell
module Refactor.GenerateTypeSignature.Let where x = let unit = () in ()
73ae6a22be2ceba3ddf0552fdbbd26ed6a18b7be7e7cdf60d6f4656270c77e0a
journeyman-cc/smeagol
include.clj
(ns ^{:doc "Functions related to the include of markdown-paged in a given markdown." :author "Michael Jerger"} smeagol.include (:require [clojure.string :as cs] [schema.core :as s] [com.stuartsierra.component :as component] [smeagol.include.parse :as parse] [smeagol.include.resolve :as r...
null
https://raw.githubusercontent.com/journeyman-cc/smeagol/a775ef7b831a2fbcf9c98380367edc16d39c4c6c/src/smeagol/include.clj
clojure
(ns ^{:doc "Functions related to the include of markdown-paged in a given markdown." :author "Michael Jerger"} smeagol.include (:require [clojure.string :as cs] [schema.core :as s] [com.stuartsierra.component :as component] [smeagol.include.parse :as parse] [smeagol.include.resolve :as r...
a889cf0eca1e07db68fea00de9635192629dfea1029cefc3752c577f21b47fee
let-def/cuite
qtGui_classes.ml
open Mlspec.Decl open QtCore_classes let qAccessibleEditableTextInterface = qclass "QAccessibleEditableTextInterface" let qAccessibleInterface = qclass "QAccessibleInterface" let qTextLength = qstruct "QTextLength" let qPaintEngine = qclass "QPaintEngine" let qTextBlock = qstruct "QTextBlock" let qTextOption = qclass ...
null
https://raw.githubusercontent.com/let-def/cuite/42629a91c573ecbf1b01f213f1bf35a456d2b1af/spec/qtGui_classes.ml
ocaml
let qPaintDevice = custom_type "pQPaintDevice" ~extend:qPaintEngineEx
open Mlspec.Decl open QtCore_classes let qAccessibleEditableTextInterface = qclass "QAccessibleEditableTextInterface" let qAccessibleInterface = qclass "QAccessibleInterface" let qTextLength = qstruct "QTextLength" let qPaintEngine = qclass "QPaintEngine" let qTextBlock = qstruct "QTextBlock" let qTextOption = qclass ...
ee960de3c8d768c4cfa13575ea0060a107b510e0329019ffc5ce59a36bc183cd
HaskellCNOrg/snap-web
Topic.hs
# LANGUAGE ExtendedDefaultRules # {-# LANGUAGE OverloadedStrings #-} module Models.Topic where import Control.Applicative ((<$>), (<*>)) import Control.Monad.CatchIO (throw) import Data.Baeson.Types import Data.Bson import qualified Data.Text as T i...
null
https://raw.githubusercontent.com/HaskellCNOrg/snap-web/f104fd9b8fc5ae74fc7b8002f0eb3f182a61529e/src/Models/Topic.hs
haskell
# LANGUAGE OverloadedStrings # | | A very empty @Topic@ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | Transform @Topic@ to mongoDB document. Nothing of id mean new topic thus empty "_id" let mong...
# LANGUAGE ExtendedDefaultRules # module Models.Topic where import Control.Applicative ((<$>), (<*>)) import Control.Monad.CatchIO (throw) import Data.Baeson.Types import Data.Bson import qualified Data.Text as T import Data.Time ...
b43acfa98a1049ef6a4d101cb71a28e95a1b0b9fa923633cb6c3cc72d8ff36c3
geophf/1HaskellADay
Exercise.hs
# LANGUAGE QuasiQuotes # module Y2018.M01.D15.Exercise where - Yesterday we looked at recording log entries . Today we 'll look at recording auditing information . What is auditing information ? When an application runs we 'd kind of like to know that it did run ( to completion or part - way and successf...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2018/M01/D15/Exercise.hs
haskell
} } the actions are: lookup table, so we actually save an Action' as we did for the log entry type. Hm. Sounds like we need a generalization here. now, an audit record is active when insert, and deactivates all other audit records when it is insert. That is to say: only the most recently inserted audit record is ...
# LANGUAGE QuasiQuotes # module Y2018.M01.D15.Exercise where - Yesterday we looked at recording log entries . Today we 'll look at recording auditing information . What is auditing information ? When an application runs we 'd kind of like to know that it did run ( to completion or part - way and successf...
8ad1f0843e0fd499ae6c4e081c531a77f22e1dd6d1816fa5e7df40b10bf8317e
andrenth/release
config_global.ml
open Printf type configuration = (string, (string, Config_values.t) Hashtbl.t) Hashtbl.t let configuration : configuration = Hashtbl.create 10 let configuration_errors : (string * int) Stack.t = Stack.create () let global_section = "#global" let current_section = ref global_section let section s = current_s...
null
https://raw.githubusercontent.com/andrenth/release/c88b472d8b142f7f306299d0f51cfd8add4a1a58/src/config_global.ml
ocaml
open Printf type configuration = (string, (string, Config_values.t) Hashtbl.t) Hashtbl.t let configuration : configuration = Hashtbl.create 10 let configuration_errors : (string * int) Stack.t = Stack.create () let global_section = "#global" let current_section = ref global_section let section s = current_s...
67287b285f7ca3d724516fe8d736108f6b0c1098b97fda34c02da2eea7968073
racket/rhombus-prototype
space-meta-clause.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse/pre enforest/transformer enforest/property enforest/proc-name "introducer.rkt" "realm.rkt" (for-syntax racket...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/2d7e044db8701ff06393922894bd4cb0edcdf299/rhombus/private/space-meta-clause.rkt
racket
#lang racket/base (require (for-syntax racket/base syntax/parse/pre enforest/transformer enforest/property enforest/proc-name "introducer.rkt" "realm.rkt" (for-syntax racket...
497d751b2cec5fa559369e83ad8732c7e5484aebe963f1fd4ae7b5e6c4e31985
erlang-lager/lager
zzzz_gh280_crash.erl
@doc This test is named because it has to be run first and tests are run in %% reverse alphabetical order. %% %% The problem we are attempting to detect here is when log_mf_h is installed as a handler for error_logger %% and lager starts up to replace the current handlers with its own. This causes a start up crash ...
null
https://raw.githubusercontent.com/erlang-lager/lager/8b87339a43721a382eabe35a71f4f1e0e664c0b3/test/zzzz_gh280_crash.erl
erlang
reverse alphabetical order. The problem we are attempting to detect here is when log_mf_h is installed as a handler for error_logger and lager starts up to replace the current handlers with its own. This causes a start up crash because see #L81 for an explanation of the init arguments to log_mf_h
@doc This test is named because it has to be run first and tests are run in OTP error logging modules do not have any notion of a lager - style log level . -module(zzzz_gh280_crash). -include_lib("eunit/include/eunit.hrl"). gh280_crash_test() -> {timeout, 30, fun() -> gh280_impl() end}. gh280_impl() -> ...
adcfa938720de877caa884d307d43953f4c9ca7e6fb6abf1011e9eb6b60717ba
devonzuegel/smallworld
home.cljs
(ns smallworld.screens.home (:require [clojure.string :as str] [reagent.core :as r] [reitit.frontend.easy :as rfe] [smallworld.decorations :as decorations] [smallworld.mapbox :as mapbox] [smallworld.session :as session] [smal...
null
https://raw.githubusercontent.com/devonzuegel/smallworld/6c8ba6d85713f9ae95ca1e0cd6100828918c8d1d/src/smallworld/screens/home.cljs
clojure
this should be called just once when the component is mounted makes the map not zoomable or draggable zoom out if they haven't provided a location TODO: lots of low-hanging fruit to improve performance don't fetch from the API if the input is blank this animation is essential with respect to prefers-reduced-motio...
(ns smallworld.screens.home (:require [clojure.string :as str] [reagent.core :as r] [reitit.frontend.easy :as rfe] [smallworld.decorations :as decorations] [smallworld.mapbox :as mapbox] [smallworld.session :as session] [smal...
5ba04adbf3cb8714b2c02458b43f4ca2c18e45da0f94c173912a0628a5bd8965
theobat/massalia
TestAPI.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PartialTypeSignatures # module MassaliaSchema.TestAPI where import GHC.Generics (Generic) import Massalia.HasqlExec (Pool) import Massalia.Morpheus (int...
null
https://raw.githubusercontent.com/theobat/massalia/015dd5048b16806bdfc37d9f72a646780fc955fe/dataseed/MassaliaSchema/TestAPI.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # data Mutation m = Mutation }
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PartialTypeSignatures # module MassaliaSchema.TestAPI where import GHC.Generics (Generic) import Massalia.HasqlExec (Pool) import Massalia.Morpheus (interpreter) import Data.Morpheus.Types ( GQLRequest, GQLRespons...
f7d36ea6a6397e43d37ba35dd24db58eef64ca9ed3c26653a0f543466f2e2ea9
achirkin/vulkan
PresentModeKHR.hs
# OPTIONS_HADDOCK ignore - exports # {-# LANGUAGE DataKinds #-} # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE Strict #-} module Graphics.Vulkan.Types.Enum.PresentModeKHR (VkPresentModeKHR(VkPresentModeKHR, VK_PRESENT_MODE_IMM...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Types/Enum/PresentModeKHR.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # | type = @enum@ <-extensions/html/vkspec.html#VkPresentModeKHR VkPresentModeKHR registry at www.khronos.org>
# OPTIONS_HADDOCK ignore - exports # # LANGUAGE GeneralizedNewtypeDeriving # module Graphics.Vulkan.Types.Enum.PresentModeKHR (VkPresentModeKHR(VkPresentModeKHR, VK_PRESENT_MODE_IMMEDIATE_KHR, VK_PRESENT_MODE_MAILBOX_KHR, VK_PRESENT_MODE_FIFO_KHR, VK_PRESENT_MODE...
94da6efc83a3b2deb154aaacf2224d5170028dc66f947f60c451065025f38138
sgbj/MaximaSharp
zs1s2.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " ;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/zs1s2.lisp
lisp
Compiled by f2cl version: "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $" Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':simple-array) (:array-slicing nil) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ " " macros.l , v fceac53...
c8d1802909fc68536a6e751a977d8b4a4e4ec0b2b234744d4448c1efb5391612
haskell-servant/servant
WithResource.hs
module Servant.API.WithResource (WithResource) where data WithResource res
null
https://raw.githubusercontent.com/haskell-servant/servant/751350ba9e82d4f06d31631205dc6e6b93164b13/servant/src/Servant/API/WithResource.hs
haskell
module Servant.API.WithResource (WithResource) where data WithResource res
8946be6f9a0549783608d08ba954adb04805ebc517c6086641c03e5a6a41af79
binsec/haunted
dse.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2019 (* VERIMAG...
null
https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/dse/path_exploration/dse.mli
ocaml
************************************************************************ VERIMAG you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2019 Lesser General Public License as published by the Free Software Foundation , version 2.1 . See the GNU Le...
7bac019434f1dcd1f9c4c4ee8f0706263f8e103b440d82878785fc0ec41d4606
gstamp/tween-clj
core.clj
(ns tween-clj-examples.core (:use [quil.core] [tween-clj.core :exclude [constrain]]) (import [java.util Date])) ;; Defines the current tweening movement. (defrecord Movement [from ; tween from this [x,y] to ; tween to this [x,y] start-time ; the...
null
https://raw.githubusercontent.com/gstamp/tween-clj/2024427002dab12d2d2069aaded7b1be13eefe16/examples/src/tween_clj_examples/core.clj
clojure
Defines the current tweening movement. tween from this [x,y] tween to this [x,y] the time the tween started the time it's scheduled to finish the transition function use to update. Where we start from in the animation The current movement state or nil if no animation in progress The current position of the ba...
(ns tween-clj-examples.core (:use [quil.core] [tween-clj.core :exclude [constrain]]) (import [java.util Date])) ]) (def starting-position [20 20]) (def movement-state (atom nil)) (def current-position (atom starting-position)) (def transition-names {"transition-linear" transition-lin...
64c5915f73845348d1b8b0722ac07978bf5c16f6967791f881a36eb0135ae69f
day8/re-frame-10x
stylesheet.cljc
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.stylesheet "Utility functions for CSS properties, directives and functions." (:require [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.util :as util] [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.color :as...
null
https://raw.githubusercontent.com/day8/re-frame-10x/d8dcb17e217449aba2cf64b9f843b0e9f86cfcb6/gen-src/day8/re_frame_10x/inlined_deps/garden/v1v3v10/garden/stylesheet.cljc
clojure
## At-rules
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.stylesheet "Utility functions for CSS properties, directives and functions." (:require [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.util :as util] [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.color :as...
20ac3e33fac78e02c13db2292815534f4975a0c8c40c6cdd85557ef5aa2550f7
qfpl/reflex-tutorial
Exercise.hs
# LANGUAGE CPP # module Ex04.Exercise where import qualified Data.Map as Map import Reflex #ifndef ghcjs_HOST_OS import Util.Run #endif import Ex04.Common import Ex04.Run ex04 :: Reflex t => Inputs t -> Outputs t ex04 (Inputs bMoney bCarrot bCelery bCucumber bSelected eBuy eRefund) = let eVend = ...
null
https://raw.githubusercontent.com/qfpl/reflex-tutorial/07c1e6fab387cbeedd031630ba6a5cd946cc612e/code/exercises/src/Ex04/Exercise.hs
haskell
# LANGUAGE CPP # module Ex04.Exercise where import qualified Data.Map as Map import Reflex #ifndef ghcjs_HOST_OS import Util.Run #endif import Ex04.Common import Ex04.Run ex04 :: Reflex t => Inputs t -> Outputs t ex04 (Inputs bMoney bCarrot bCelery bCucumber bSelected eBuy eRefund) = let eVend = ...
2a6b62ca5554cd3b2c68bbda9cd9d051db51b9fca6eb1b336df6af88a56975d4
nuprl/gradual-typing-performance
make-cards.rkt
#lang typed/racket/no-check (require typed/racket/class "require-typed-check.rkt" ; benchmark infrastructure "typed-base.rkt" (prefix-in mred: typed/racket/gui)) (require/typed/check (prefix-in card-class: "card-class.rkt") [(card% card-class:card%) Card%]) (provide ba...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/benchmarks/gofish/untyped/make-cards.rkt
racket
benchmark infrastructure contract & contract helper for make-card removed partial inline of list-hash.rkt here -----------------------------------
#lang typed/racket/no-check (require typed/racket/class "typed-base.rkt" (prefix-in mred: typed/racket/gui)) (require/typed/check (prefix-in card-class: "card-class.rkt") [(card% card-class:card%) Card%]) (: make-hash (All (a b) (-> (Hash a b)))) (define (make-hash) (box em...
79a1366b5abb203e879f173b802ed3303cb4c6118cde179038e063f793af26f2
deadpendency/deadpendency
RepoConfig.hs
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.RepoConfig where import Common.Model.RepoConfig.FileLoadPlan import Common.Model.RepoConfig.IgnoreDependenciesConfig import Common.Model.RepoConfig.RepoConfig import Common.Model.RepoConfig.Rules.FewYearlyCommitsConfig import Common.Mo...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common-test/src/CommonTest/Gen/Model/RepoConfig.hs
haskell
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.RepoConfig where import Common.Model.RepoConfig.FileLoadPlan import Common.Model.RepoConfig.IgnoreDependenciesConfig import Common.Model.RepoConfig.RepoConfig import Common.Model.RepoConfig.Rules.FewYearlyCommitsConfig import Common.Mo...
3b25fc64d21b0b35ffda4797c58b9c15b6bf6edb70d2698e308af524089c4bab
pascal-knodel/haskell-craft
E'4'29.hs
-- -- -- ----------------- Exercise 4.29 . ----------------- -- -- -- module E'4'29 where import E'4'26 ( column ) import E'4'27 ( row , rowBlackAt ) import PicturesSVG ( Picture , black , beside , white , above ) diagonalBoth :: Integer -> Picture diagonalBoth length | length < 1 = error "Leng...
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/_/links/E'4'29.hs
haskell
--------------- --------------- Other solution ... `beside` ( rowBlackAt (firstPosition - secondPosition) (length - secondPosition) ) Odd: Even:
Exercise 4.29 . module E'4'29 where import E'4'26 ( column ) import E'4'27 ( row , rowBlackAt ) import PicturesSVG ( Picture , black , beside , white , above ) diagonalBoth :: Integer -> Picture diagonalBoth length | length < 1 = error "Length is lesser than one." | length == 1 = black |...
d6c4281ab9154f205c095b452c065f8f84c320efc58d26c695bce4e71cb8317b
skanev/playground
38.scm
SICP exercise 1.38 ; In 1737 , the Swiss mathematician published a memoir De , which included a continued fraction expansion of e-2 , ; where e is the base of the natural logarithms. In this fraction, Nᵢ are all 1 , and the Dᵢ are successively 1 , 2 , 1 , 1 , 4 , 1 , 1 , 6 , 1 , 1 , 8 , … . Write a progra...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/01/38.scm
scheme
where e is the base of the natural logarithms. In this fraction, Nᵢ are all
SICP exercise 1.38 In 1737 , the Swiss mathematician published a memoir De , which included a continued fraction expansion of e-2 , 1 , and the Dᵢ are successively 1 , 2 , 1 , 1 , 4 , 1 , 1 , 6 , 1 , 1 , 8 , … . Write a program that uses your cont - frac procedure from exercise 1.37 to approximate e , b...
cfd576a0ccfd8526983f0958c836ee4b9ae3977f2b855fa134e5d0e17485f7ab
originrose/cortex
core.clj
(ns cortex-visualization.nn.core (:require [clojure.core.matrix :as m] [clojure.core.matrix.macros :refer [c-for]] [mikera.image.core :as image] [incanter.core :as inc-core] [incanter.charts :as inc-charts] [cortex.nn.execute :as execute] [think....
null
https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/examples/visualization/src/cortex_visualization/nn/core.clj
clojure
currently only works when there is a perfect squre separate each filter with a black bar get value range set to black
(ns cortex-visualization.nn.core (:require [clojure.core.matrix :as m] [clojure.core.matrix.macros :refer [c-for]] [mikera.image.core :as image] [incanter.core :as inc-core] [incanter.charts :as inc-charts] [cortex.nn.execute :as execute] [think....
65ead0594fce505e97a8ba8438cae7a8482ab31a45b28d007f9fc8532c185004
emina/rosette
roseunit.rkt
#lang racket Utilities for testing Rosette programs . (require rackunit rackunit/text-ui) (require rosette/base/core/result (only-in rosette clear-state! current-bitwidth with-vc with-terms terms solution? sat? unsat?)) (require (for-s...
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/rosette/lib/roseunit.rkt
racket
of which requires the specified modules and submodules. Given a set of relative paths containing modules with tests, Tests discovered by instantiating test-suite+. Each element of the list is a rosette-test-suite?. A test should only be run if the current-solver satisfies the test's feature list. Run all discove...
#lang racket Utilities for testing Rosette programs . (require rackunit rackunit/text-ui) (require rosette/base/core/result (only-in rosette clear-state! current-bitwidth with-vc with-terms terms solution? sat? unsat?)) (require (for-s...
28c188ce799153b5ab4e530ee70d4b6a6a189b060d84e2fdcae398d135e92082
Relph1119/sicp-solutions-manual
p1-37-golden-ratio.scm
(load "src/practices/ch01/p1-37-rec-cont-frac.scm") (define (golden-ratio k) (+ 1 (cont-frac (lambda (i) 1.0) (lambda (i) 1.0) k)))
null
https://raw.githubusercontent.com/Relph1119/sicp-solutions-manual/f2ff309a6c898376209c198030c70d6adfac1fc1/src/practices/ch01/p1-37-golden-ratio.scm
scheme
(load "src/practices/ch01/p1-37-rec-cont-frac.scm") (define (golden-ratio k) (+ 1 (cont-frac (lambda (i) 1.0) (lambda (i) 1.0) k)))
fc9ab65438df818faffe9aa92e97d8a9ca66cb3577a15b8ef8760f91ff2706f8
magnars/datoms-differ
api_test.cljc
(ns datoms-differ.api-test (:require [datoms-differ.api :as sut] [datoms-differ.datom :as d] [datoms-differ.impl.core-helpers :as ch] [clojure.test :refer [deftest is testing]] [me.tonsky.persistent-sorted-set :as set] [clojure.string :as str])) (def schema...
null
https://raw.githubusercontent.com/magnars/datoms-differ/b498b89bb0a2cc43209b28f0a9098111635b5a67/test/datoms_differ/api_test.cljc
clojure
(ns datoms-differ.api-test (:require [datoms-differ.api :as sut] [datoms-differ.datom :as d] [datoms-differ.impl.core-helpers :as ch] [clojure.test :refer [deftest is testing]] [me.tonsky.persistent-sorted-set :as set] [clojure.string :as str])) (def schema...
15a5879d6dfec19b531e2fd2084e54e4b46eb76a1a8aa143615e721f26df17c8
mzp/coq-for-ipad
odoc_exception.ml
(***********************************************************************) (* OCamldoc *) (* *) , projet Cristal , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/ocamldoc/odoc_exception.ml
ocaml
********************************************************************* OCamldoc ...
, projet Cristal , INRIA Rocquencourt Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : odoc_exception.ml 9547 2010 - 01...
18a755897776da0c7fca625d3f527edae8d7100abc356f5c43560663e79616c6
thoughtbot/carnival
Language.hs
module Language ( languageField , languageList ) where import Import languageField :: Field Handler Text languageField = selectFieldList languageList languageList :: [(Text, Text)] languageList = [ ("Afrikaans", "af") , ("Albanian", "sq") , ("Basque", "eu") , ("Belarusian", "be") , ("...
null
https://raw.githubusercontent.com/thoughtbot/carnival/1cd4bd02ea6884b86020029257ab69ec3892a168/Language.hs
haskell
module Language ( languageField , languageList ) where import Import languageField :: Field Handler Text languageField = selectFieldList languageList languageList :: [(Text, Text)] languageList = [ ("Afrikaans", "af") , ("Albanian", "sq") , ("Basque", "eu") , ("Belarusian", "be") , ("...
c36f504995371f5bd1f31ac3513bffc43c2aa4bda8ff2c5809e56e3bd9f122a8
abailly/dojo-nantes
Tests.hs
import Test.HUnit wordWrap :: String -> Int -> [ String ] wordWrap texte _ = let (premier, second) = break (== ' ') texte in if second == [] then [premier] else [premier, tail second] testDeRecette :: Test testDeRecette = word...
null
https://raw.githubusercontent.com/abailly/dojo-nantes/31600a7c74d540cb0c7d4b0c5cbe239f9a2104ac/2014-10-02/Tests.hs
haskell
testDeRecette,
import Test.HUnit wordWrap :: String -> Int -> [ String ] wordWrap texte _ = let (premier, second) = break (== ' ') texte in if second == [] then [premier] else [premier, tail second] testDeRecette :: Test testDeRecette = word...
43b9f5c093042ae9bef27400c57f0eb3804c9560dfcbe787d6e5ce7634e1e110
Mon-Ouie/blocky
console.lisp
console.lisp --- OS / device driver for BLOCKY Copyright ( C ) 2006 - 2013 Author : < > ;; Keywords: multimedia, games ;; This file 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...
null
https://raw.githubusercontent.com/Mon-Ouie/blocky/ebc4f4309a15603fb1ef3153050748c17a44e300/console.lisp
lisp
Keywords: multimedia, games This file is free software; you can redistribute it and/or modify either version 3 , or ( at your option ) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PA...
console.lisp --- OS / device driver for BLOCKY Copyright ( C ) 2006 - 2013 Author : < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License the Free Software Foundation , Inc. , 51 Franklin Street , Fifth Floor , ...
72160414a2c389c401e0db16a0a5e6c4eb466b095e8f97477a41b90dc1a4cc6f
thierry-martinez/stdcompat
oo.mli
val copy : (< .. > as 'a) -> 'a external id : < .. > -> int = "%field1" val new_method : string -> CamlinternalOO.label val public_method_label : string -> CamlinternalOO.label
null
https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.07/oo.mli
ocaml
val copy : (< .. > as 'a) -> 'a external id : < .. > -> int = "%field1" val new_method : string -> CamlinternalOO.label val public_method_label : string -> CamlinternalOO.label
51eefabcd46dece06b80e57111bbf538cec520e5cee6b85bf7bff32e9c8190ef
kupl/LearnML
original.ml
let rec iter ((n : int), (fn : 'a -> 'a)) x = if n > 1 then iter (n - 1, fn) (fn x) else fn x
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/iter/sub11/original.ml
ocaml
let rec iter ((n : int), (fn : 'a -> 'a)) x = if n > 1 then iter (n - 1, fn) (fn x) else fn x
f04af191e30292fe58c37cdbba2fca88840f698edb485d8d9fb75292abf41d4f
hadolint/hadolint
DL3022.hs
module Hadolint.Rule.DL3022 (rule) where import qualified Data.Set as Set import qualified Data.Text as Text import qualified Data.Text.Read as Read import Hadolint.Rule import Language.Docker.Syntax data Acc = Acc { count :: Int, names :: Set.Set Text.Text } | Empty deriving (Eq) rule :: Rule args rule = cust...
null
https://raw.githubusercontent.com/hadolint/hadolint/e12f4fae04d08fa57d8f9dd4597b8f509ea83aa2/src/Hadolint/Rule/DL3022.hs
haskell
module Hadolint.Rule.DL3022 (rule) where import qualified Data.Set as Set import qualified Data.Text as Text import qualified Data.Text.Read as Read import Hadolint.Rule import Language.Docker.Syntax data Acc = Acc { count :: Int, names :: Set.Set Text.Text } | Empty deriving (Eq) rule :: Rule args rule = cust...
fd42c7676ee46fcc42120d6a42c1982f112b664d270dded848033acc4944796d
byorgey/haskell-course
HW5Test.hs
module HW5Test where import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.QuickCheck import Test.HUnit import Control.Monad import Data.List import Calc import ExprT import Parser main = defaultMain tests test...
null
https://raw.githubusercontent.com/byorgey/haskell-course/f928cc8031aec2147f037949826134a484414ed6/weeks/05-type-classes/hw/HW5Test.hs
haskell
module HW5Test where import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.QuickCheck import Test.HUnit import Control.Monad import Data.List import Calc import ExprT import Parser main = defaultMain tests test...
1da7486d818a9a0b8ac17f3487ed01fd0ab1e4ef6dbdeb402c51ba7fc4751ede
SNePS/SNePS2
node2.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : , v 1.2 2013/08/28 19:07:25 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of this file are subject ...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/sneps/ds/node2.lisp
lisp
Syntax : Common - Lisp ; Package : SNEPS ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : , v 1.2 2013/08/28 19:07:25 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " AS IS " basis , WITHO...
6e6a2b446dbdb469a8690880d2b6e4e7dbe837964217542ec8f2db36eb20b55f
hanshuebner/bos
geometry.lisp
(in-package :geometry) ;; a point in this package is represented ;; as a list (x y) ;; a rectangle is represented ;; as a list (left top width height) (defmacro with-point (point &body body) (let* ((*package* (symbol-package point)) (x (intern (format nil "~A-X" (symbol-name point)))) (y (intern ...
null
https://raw.githubusercontent.com/hanshuebner/bos/ab5944cc46f4a5ff5a08fd8aa4d228c0f9cfc771/m2/geometry.lisp
lisp
a point in this package is represented as a list (x y) a rectangle is represented as a list (left top width height) maybe change this function to take a point as an argument? for fun... (defun point-in-circle-p-test () directions A direction can be represented either as one of the symbols: :down, :left, :ri...
(in-package :geometry) (defmacro with-point (point &body body) (let* ((*package* (symbol-package point)) (x (intern (format nil "~A-X" (symbol-name point)))) (y (intern (format nil "~A-Y" (symbol-name point))))) `(destructuring-bind (,x ,y) ,point ,@body))) (defmacro with-points ((&re...
33058b5b1ce56de36f3d4c1309e44724982743c4e96c69f88bbbb0f41f924e91
input-output-hk/project-icarus-importer
Configuration.hs
-- | Configuration of cryptographic primitives. {-# LANGUAGE RankNTypes #-} module Pos.Crypto.Configuration ( ProtocolMagic (..) , HasProtocolMagic , withProtocolMagic , protocolMagic ) where import Universum import Data.Reflection (Given (..), give, given) --...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/crypto/Pos/Crypto/Configuration.hs
haskell
| Configuration of cryptographic primitives. # LANGUAGE RankNTypes # | Magic number which should differ for different clusters. It's defined here, because it's used for signing. It also used for other | Protocol magic constant. Is put to block serialized version to distinguish different clusters. It's an example, ...
module Pos.Crypto.Configuration ( ProtocolMagic (..) , HasProtocolMagic , withProtocolMagic , protocolMagic ) where import Universum import Data.Reflection (Given (..), give, given) things ( it 's part of a serialized block ) . newtype ProtocolMagic = Prot...
2a6a81359af7d9afe0211a9fb23af0c4ff2e516a1f9db740a20b7edf765bc924
whalliburton/language
shtooka.lisp
(in-package :language) (defun parse-shtooka-tags (data) (with-input-from-string (stream data) (iter (for line = (read-line stream nil)) (while line) (when (and (plusp (length line)) (char= #\[ (char line 0))) (collect (list (subseq line 1 (1- (length line))) ...
null
https://raw.githubusercontent.com/whalliburton/language/d16ddf05c2b7e067f6f9ce74416c73f0b64b63c4/shtooka.lisp
lisp
(in-package :language) (defun parse-shtooka-tags (data) (with-input-from-string (stream data) (iter (for line = (read-line stream nil)) (while line) (when (and (plusp (length line)) (char= #\[ (char line 0))) (collect (list (subseq line 1 (1- (length line))) ...
c75be2733eabc0541518246a8baab5432bddd52d42b26480cf49e0f1013b9741
rudymatela/tankode
zigzagger.hs
import Tankode.Raw1 import Data.Maybe ident :: Id ident = Id { name = "zig-zagger" , bodyColour = "green1" , radarColour = "green1" , trackColour = "green2" , gunColour = "magenta9" , bulletColour = "magenta9" , scanColour = "magenta9" } zigZagger :: Tankode Bool zigZagger input = output { ...
null
https://raw.githubusercontent.com/rudymatela/tankode/299ec6f78a9a18a8fc902be911a556d0497c30e1/haskell/eg/zigzagger.hs
haskell
import Tankode.Raw1 import Data.Maybe ident :: Id ident = Id { name = "zig-zagger" , bodyColour = "green1" , radarColour = "green1" , trackColour = "green2" , gunColour = "magenta9" , bulletColour = "magenta9" , scanColour = "magenta9" } zigZagger :: Tankode Bool zigZagger input = output { ...
16b667d493110391480470b3eb8e5c7c0e4325470094ffe925b00c177972e6a1
a-sassmannshausen/guile-config
test-driver.scm
test-driver.scm - Guile test driver for Automake testsuite harness (define script-version "2019-01-15.13") ;UTC Copyright © 2015 , 2016 < > Copyright © 2019 < > ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published...
null
https://raw.githubusercontent.com/a-sassmannshausen/guile-config/b05957743ee8ab8d111683697a56e46a82429b6f/build-aux/test-driver.scm
scheme
UTC This program is free software; you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PA...
test-driver.scm - Guile test driver for Automake testsuite harness Copyright © 2015 , 2016 < > Copyright © 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License This script provides a test driver using the SRFI...
cdf599ae1ed7486019072412417edf6551ebe7c13e4dbcceabcfdbeb072fae88
mfikes/cljs-bean
project.clj
(defproject cljs-bean "1.9.0" :description "Clojure's bean function for ClojureScript" :url "-bean" :scm {:name "git" :url "-bean"} :license {:name "Eclipse Public License 1.0 (EPL-1.0)" :url "-1.0"} :dependencies [[org.clojure/clojurescript "1.10.520" :scope "provided"]])
null
https://raw.githubusercontent.com/mfikes/cljs-bean/28f72af5aa6a945c3463fd17564ae0d72c45eecb/project.clj
clojure
(defproject cljs-bean "1.9.0" :description "Clojure's bean function for ClojureScript" :url "-bean" :scm {:name "git" :url "-bean"} :license {:name "Eclipse Public License 1.0 (EPL-1.0)" :url "-1.0"} :dependencies [[org.clojure/clojurescript "1.10.520" :scope "provided"]])
cf0e9eee670944caa91901d8c8454a566bcb8812b47db470c6df57c14608df98
ANSSI-FR/xsvgen
stringdata.mli
(***********************************************************************) (* *) (* XML Schema Validator Generator *) (* *) ( SafeRive...
null
https://raw.githubusercontent.com/ANSSI-FR/xsvgen/3c2b5e43e7adcb856a3a2aa01bfc039bf3c6459b/lib/stringdata.mli
ocaml
********************************************************************* XML Schema Validator Generator ...
( SafeRiver ) Copyright 2012 , ANSSI and SafeRiver . $ I d : stringdata.mli 1662 2012 - 05 - 23 16:09:36Z maarek $ type t exception E_at of t * Error.t val of_in_channel : in_channel -> File_in.t -> t val of_string : string -> t v...
42aa8f2b10a43e14ee008ab390b1104d2bc13eef3aa6c90b30ef3f4794d38b27
RunOrg/RunOrg
sentMail.mli
(* © 2014 RunOrg *) open Std * Mail that is sent lives separately from the original . It is accessed in a different pattern ( by the receiver , rather than the server ) and needs to keep large amounts of statistics that are not relevant while drafting new mail . It is accessed in a different pat...
null
https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/sentMail.mli
ocaml
© 2014 RunOrg * The identifier of a wave --- a group of e-mails that were sent together to different contacts. * Start sending a specific e-mail to a group. This will actually cause the e-mails to be sent out. Creates a new wave and returns its identifier. * Start sending a specific e-mail to a list o...
open Std * Mail that is sent lives separately from the original . It is accessed in a different pattern ( by the receiver , rather than the server ) and needs to keep large amounts of statistics that are not relevant while drafting new mail . It is accessed in a different pattern (by the receive...
1c25f47591975631c9c2234e789535d9c614628a97f9e02f1c311dd51389a613
yoriyuki/Camomile
subText.ml
* Sub - texts , parts of original ( ur- ) texts . The signature and semantics matches those of UStorage . The signature and semantics matches those of UStorage. *) Copyright ( C ) 2002 , 2003 . distributed with LGPL (* This library is free software; you can redistribute it and/or *) (* modify it under th...
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/Camomile/public/subText.ml
ocaml
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License may link, statically or dynamically, a "work that uses this library" with a publicly distributed version of this library to produce an executable file containing portions of this lib...
* Sub - texts , parts of original ( ur- ) texts . The signature and semantics matches those of UStorage . The signature and semantics matches those of UStorage. *) Copyright ( C ) 2002 , 2003 . distributed with LGPL as published by the Free Software Foundation ; either version 2 of the License , or (...
3c88beb47752eca9f2b50a94785bc39e009264e8392c5c1f5490c5aac6db887c
finnishtransportagency/harja
kumousboksi.cljs
(ns harja.ui.kumousboksi (:require [reagent.core :as r] [reagent.core :refer [atom] :as r] [harja.ui.napit :as napit] [cljs.core.async :refer [<! timeout]] [harja.ui.komponentti :as komp] [harja.ui.dom :as dom] [harja.fmt :as fmt] [go...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/488b1e096f0611e175221d74ba4f2ffed6bea8f1/src/cljs/harja/ui/kumousboksi.cljs
clojure
(ns harja.ui.kumousboksi (:require [reagent.core :as r] [reagent.core :refer [atom] :as r] [harja.ui.napit :as napit] [cljs.core.async :refer [<! timeout]] [harja.ui.komponentti :as komp] [harja.ui.dom :as dom] [harja.fmt :as fmt] [go...
5ca8eda92e41cf3f41cc873b6b46d50a663147a20e10a30bef39e6e5ce09f0b9
exercism/scheme
example.scm
(import (rnrs)) (define (two-fer . maybe-name) (format #f "One for ~a, one for me." (if (pair? maybe-name) (car maybe-name) "you")))
null
https://raw.githubusercontent.com/exercism/scheme/aa880e6222a393fcf5d672decb5c5dd6fae286ff/exercises/practice/two-fer/.meta/example.scm
scheme
(import (rnrs)) (define (two-fer . maybe-name) (format #f "One for ~a, one for me." (if (pair? maybe-name) (car maybe-name) "you")))
2748cdefd2da5172a1b2842c116507e691d4e8551c9116d3c4fb3c3c63f294e0
sjoerdvisscher/free-functors
Internal.hs
# LANGUAGE CPP , GADTs , PolyKinds , RankNTypes , ViewPatterns , TypeOperators , DeriveFunctor , , , TemplateHaskell , , FlexibleInstances , ScopedTypeVariables , UndecidableInstances , QuantifiedConstraints , MultiParamTypeClasses , UndecidableSuperClasse...
null
https://raw.githubusercontent.com/sjoerdvisscher/free-functors/78bff2949e2f54afb4a0b59cd105a30645742b3a/src/Data/Functor/Cofree/Internal.hs
haskell
Suppress "Defined but not used: ‘k’" warning
# LANGUAGE CPP , GADTs , PolyKinds , RankNTypes , ViewPatterns , TypeOperators , DeriveFunctor , , , TemplateHaskell , , FlexibleInstances , ScopedTypeVariables , UndecidableInstances , QuantifiedConstraints , MultiParamTypeClasses , UndecidableSuperClasse...
134ce9be8e986182bdd316b7c8cd18c6c2b63de1a09127383073f20c485fbb55
lnostdal/SymbolicWeb
core.clj
(ns symbolicweb.test.core (:use [symbolicweb.core]) (:use [clojure.test])) (deftest replace-me ;; FIXME: write (is false "No tests have been written."))
null
https://raw.githubusercontent.com/lnostdal/SymbolicWeb/d9600b286f70f88570deda57b05ca240e4e06567/test/symbolicweb/test/core.clj
clojure
FIXME: write
(ns symbolicweb.test.core (:use [symbolicweb.core]) (:use [clojure.test])) (is false "No tests have been written."))
2e8df5b4dcdd96d35113648c5e5cb4548e993a5d6c4e760d52ed20209f19d828
facebook/duckling
Rules.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 GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Volume.HR....
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Volume/HR/Rules.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 GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Volume.HR.Rules ( rules ) where import Data.String import Data.Text (Text) import Prelude import Duckling.Dimensions.Types import Duckling.Types import Duckling.Regex.Types import Duckling.Volume.Helpers import Duckling.Num...
387f693ee1612e54fa249251982c8ebe1792fb224d55a40c8e2a2db91d2e82fc
rsnikhil/Bluespec_BSV_Formal_Semantics
Semantics.hs
Copyright ( c ) 2012 - 2015 . All Rights Reserved . Dynamic semantics of kernel BSV programs module Semantics where import Control.Monad -- for foldM import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Utils import AST import StaticElab -- =========================================...
null
https://raw.githubusercontent.com/rsnikhil/Bluespec_BSV_Formal_Semantics/88efaffb8d634a7b50054e8a1e0442bf40d0d0fd/Haskell_code/Semantics.hs
haskell
for foldM ================================================================ Exec for nclocks, or until no rule fires in a clock If nclocks is -1, it is interpreted as 'infinity', i.e., unlimited number of clocks Convert the schedule in to a sequence (list) of corresponding rules Exec for n = 0 .. (n clocks -1 ) L...
Copyright ( c ) 2012 - 2015 . All Rights Reserved . Dynamic semantics of kernel BSV programs module Semantics where import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Utils import AST import StaticElab exec_n_clocks :: System -> Schedule -> Int -> IO System exec_n_clocks system s...
be7e6462252fc0faadd16e9d517fbf05dc0d1d5ca25f36abc6eaa9a248b8d68b
frenchy64/analyze
load_core.clj
(ns analyze.examples.load-core (:import [clojure.lang Compiler RT DynamicClassLoader]) (:require [analyze.core :as analyze])) ;; Reproducible problem, similar to the one we're having loading clojure.core (defmacro deftesteval [name args expr] `(do (fn ~name ~args ~expr) ;; not sure the minimum reproduci...
null
https://raw.githubusercontent.com/frenchy64/analyze/bbca37c356f094e817ccb285529c293ca97df740/src/analyze/examples/load_core.clj
clojure
Reproducible problem, similar to the one we're having loading clojure.core not sure the minimum reproducible case, but having both these lines trigger it .. followed by analyzing the same form again, in this namespace .. results in ... clojure.lang.Compiler.analyze (Compiler.java:6216) clojure.lang.Compiler.analy...
(ns analyze.examples.load-core (:import [clojure.lang Compiler RT DynamicClassLoader]) (:require [analyze.core :as analyze])) (defmacro deftesteval [name args expr] `(do (fn ~name ~args ~expr))) .. and evaling this first .. (deftesteval myfn [x] `(+ ~x)) (analyze/analyze-one '{:ns {:name analyze.exam...
1271e16eb12974385f64a1b761b169f57703281b9f6cf87c877614c826a7ac45
zadean/emojipoo
emojipoo_reader.erl
-module(emojipoo_reader). -include("emojipoo.hrl"). -include_lib("kernel/include/file.hrl"). %% API -export([ open/1, open/2, close/1, lookup/2, fold/3, range_fold/4, destroy/1 ]). %% used by the merger, needs list value -export([ first_node/1, next_node/1 ]). Internal -export([ ...
null
https://raw.githubusercontent.com/zadean/emojipoo/d4aea55747de038f1812d3b2d4ec8102dfa124b6/src/emojipoo_reader.erl
erlang
API used by the merger, needs list value read and validate magic tag read root position read in the root node fold0(File, Fun, #node{level = 0, members = BinPage}, Acc0) when is_binary(BinPage) -> used by the merger, needs list value used by the merger, needs list value do this in separate process, to avoid...
-module(emojipoo_reader). -include("emojipoo.hrl"). -include_lib("kernel/include/file.hrl"). -export([ open/1, open/2, close/1, lookup/2, fold/3, range_fold/4, destroy/1 ]). -export([ first_node/1, next_node/1 ]). Internal -export([ serialize_state/1, deserialize_state/1 ]...
7fa025cf6f3beada24b62a5ef7e080b8c052c01cba877b845bb6318086823f6f
lilactown/lilac.town
visual_spec.cljs
(ns lilactown.client.visual-spec (:require [lilactown.react :as r] [lilactown.react.dom :as dom] ["react-dom" :as react-dom] [cljs.js :as cljs] [cljs.env :as env] [cljs.tools.reader :as reader] [taoensso.timbre :as t] [expound.alpha :...
null
https://raw.githubusercontent.com/lilactown/lilac.town/295669e4511e79877da14232457dea26f098acd8/src/lilactown/client/visual_spec.cljs
clojure
Actions Helpers path points to a scalar, get meta on coll above it get lines between line and end-line return [index line] in vector when string included View :keyMap "vim" :keyMap "vim"
(ns lilactown.client.visual-spec (:require [lilactown.react :as r] [lilactown.react.dom :as dom] ["react-dom" :as react-dom] [cljs.js :as cljs] [cljs.env :as env] [cljs.tools.reader :as reader] [taoensso.timbre :as t] [expound.alpha :...
53d061e0162464076403cf05036225527352e9391828527b8db8a228ecd1d8c2
rgrinberg/ocaml-mustache
mustache_v200.mli
(** A module for creating and rendering mustache templates in OCaml. *) exception Invalid_param of string exception Invalid_template of string type t (** Read *) val parse_lx : Lexing.lexbuf -> t val of_string : string -> t (** [to_formatter fmt template] print a template as raw mustache to the formatter [fmt]...
null
https://raw.githubusercontent.com/rgrinberg/ocaml-mustache/d0c45499f9a5ee91c38cf605ae20ecee47142fd8/lib_test/compat/mustache_v200.mli
ocaml
* A module for creating and rendering mustache templates in OCaml. * Read * [to_formatter fmt template] print a template as raw mustache to the formatter [fmt]. * [to_string template] uses [to_formatter] in order to return a string representing the template as raw mustache. * [render_fmt fmt template json] ...
exception Invalid_param of string exception Invalid_template of string type t val parse_lx : Lexing.lexbuf -> t val of_string : string -> t val to_formatter : Format.formatter -> t -> unit val to_string : t -> string val render_fmt : Format.formatter -> t -> Ezjsonm.t -> unit val render : t -> Ezjsonm.t -> stri...
8a2f9e6d7183618708a924032291ab6bbdeb2472e9131791708dc3889bd2ef35
racket/math
typed-array-indexing.rkt
#lang typed/racket/base (require racket/list racket/match racket/vector racket/performance-hint "../unsafe.rkt" "array-struct.rkt" "array-transform.rkt" "array-constructors.rkt" "array-broadcast.rkt" "for-each.rkt" "utils.rkt") ...
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/array/typed-array-indexing.rkt
racket
=================================================================================================== Array ref/set! begin-encourage-inline =================================================================================================== Indexing using array of indexes ============================================...
#lang typed/racket/base (require racket/list racket/match racket/vector racket/performance-hint "../unsafe.rkt" "array-struct.rkt" "array-transform.rkt" "array-constructors.rkt" "array-broadcast.rkt" "for-each.rkt" "utils.rkt") ...