_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
56a63f7958062ee16131e69db35c452055c3f24b802bcd0089a74c68cbe57b5b
astro/hashvortex
nodespoofer.hs
# LANGUAGE TupleSections # module Main where import System.Environment import Network.Socket (SockAddr(SockAddrInet), PortNumber(PortNum)) import Control.Monad import Control.Monad.Reader import Control.Applicative import Data.Sequence (Seq, ViewL((:<), EmptyL), (|>)) import qualified Data.Sequence as Seq import Data....
null
https://raw.githubusercontent.com/astro/hashvortex/ccf32d13bd6057b442eb50c087c43c3870bb5be2/nodespoofer.hs
haskell
Query handling Reply handling Querying Main
# LANGUAGE TupleSections # module Main where import System.Environment import Network.Socket (SockAddr(SockAddrInet), PortNumber(PortNum)) import Control.Monad import Control.Monad.Reader import Control.Applicative import Data.Sequence (Seq, ViewL((:<), EmptyL), (|>)) import qualified Data.Sequence as Seq import Data....
5fa38698bf79992745966dc18731984ddefb520510a5aed8faceba35e2be91ea
skanev/playground
27.scm
EOPL exercise 3.27 ; Add a new kind of procedure called a traceproc to the language . A traceproc ; works exactly like a proc, except that it prints a trace message on entry ; and exit. (load-relative "cases/proc/env.scm") ; The parser (define-datatype expression expression? (const-exp (num number?)) (di...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/03/27.scm
scheme
works exactly like a proc, except that it prints a trace message on entry and exit. The parser The evaluator
EOPL exercise 3.27 Add a new kind of procedure called a traceproc to the language . A traceproc (load-relative "cases/proc/env.scm") (define-datatype expression expression? (const-exp (num number?)) (diff-exp (minuend expression?) (subtrahend expression?)) (zero?-exp (expr expression?)) (...
b983c3fe56d17d7e6f331d239ef7b7e1fa9fe41fc4908625a124f3694a3b7896
agentbellnorm/dativity
define.cljc
(ns dativity.define (:require [ysera.test :refer [is= is is-not error?]] [ysera.error :refer [error]] [clojure.spec.alpha :as s] [dativity.graph :as graph])) (defn empty-process-model [] (graph/empty-graph)) (defn action [name] [name {:type :action}]) (defn data [name]...
null
https://raw.githubusercontent.com/agentbellnorm/dativity/8d03d0a1ee7bf48397d900faef6f119649d95c83/src/dativity/define.cljc
clojure
below is code related to creating the model via create-model.
(ns dativity.define (:require [ysera.test :refer [is= is is-not error?]] [ysera.error :refer [error]] [clojure.spec.alpha :as s] [dativity.graph :as graph])) (defn empty-process-model [] (graph/empty-graph)) (defn action [name] [name {:type :action}]) (defn data [name]...
7dd80ae044ca5437f74b05d57f51746bc39b5c75420e3cc67d358e875ef45365
clojure-interop/aws-api
project.clj
(defproject clojure-interop/com.amazonaws.services.simpleworkflow "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.simpleworkflow" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :sour...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.simpleworkflow/project.clj
clojure
(defproject clojure-interop/com.amazonaws.services.simpleworkflow "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.simpleworkflow" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :sour...
7d8a903a7700323d0e57606a6c5e422bca0e463caf682ef5ee4033f18b4dde4e
static-analysis-engineering/codehawk
jCHFunctionSummary.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpre/jCHFunctionSummary.mli
ocaml
chutil jchlib jchpre
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
da9fce87ce520b17d04076928e7337d158ac3b8269f505ee5b26d99ca696a31c
bloomberg/blpapi-hs
NameImpl.hs
# LANGUAGE ForeignFunctionInterface # | Module : Finance . Blpapi . Impl . NameImpl Description : FFI for Name Copyright : Bloomberg Finance L.P. License : MIT Maintainer : Stability : experimental Portability : * nix , windows Module : Finance.Blpapi.Impl.NameImpl Description :...
null
https://raw.githubusercontent.com/bloomberg/blpapi-hs/a4bdff86f3febcf8b06cbc70466c8abc177b973a/src/Finance/Blpapi/Impl/NameImpl.hs
haskell
# LANGUAGE ForeignFunctionInterface # | Module : Finance . Blpapi . Impl . NameImpl Description : FFI for Name Copyright : Bloomberg Finance L.P. License : MIT Maintainer : Stability : experimental Portability : * nix , windows Module : Finance.Blpapi.Impl.NameImpl Description :...
4cd72d32bd93e47df877e9ddd7c95028820cc88340fa873bfe18f8b1650e9e1a
janestreet/memtrace_viewer_with_deps
time_range.ml
open! Core_kernel type t = { lower_bound : Time_ns.Span.t option ; upper_bound : Time_ns.Span.t option } [@@deriving sexp, bin_io, equal] let range lower_bound upper_bound = { lower_bound; upper_bound } let all = { lower_bound = None; upper_bound = None } let is_all = function | { lower_bound = None; upper_b...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/common/time_range.ml
ocaml
open! Core_kernel type t = { lower_bound : Time_ns.Span.t option ; upper_bound : Time_ns.Span.t option } [@@deriving sexp, bin_io, equal] let range lower_bound upper_bound = { lower_bound; upper_bound } let all = { lower_bound = None; upper_bound = None } let is_all = function | { lower_bound = None; upper_b...
bc7f41f7ddefd2887a9879e148d0d638efe53e8f6d1c6a017ddf2081a2c8979e
tomas-abrahamsson/tdiff
tdiff.erl
%%% A (simple) diff Copyright ( C ) 2011 %%% Author : < > %%% %%% This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any...
null
https://raw.githubusercontent.com/tomas-abrahamsson/tdiff/2125d01df7c2e4bd3f25b2b1c80a00e67b2ef450/src/tdiff.erl
erlang
A (simple) diff This library is free software; you can redistribute it and/or This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License along with this library; if not...
Copyright ( C ) 2011 Author : < > modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have receive...
2d0e12abe5940473a03b361a883ce9e0ce7dd93f18205269c3e1478efc77026f
mauricioabreu/lang-studies
09-input-and-output.hs
import Data.List import System.Random import System.Environment.Blank (getArgs) - Lets implement the UNIX echo command - The program arguments are simply printed to the standard output . - If the first argument is -n , this argument is not printed , and no trailing newline is printed - Lets implement the ...
null
https://raw.githubusercontent.com/mauricioabreu/lang-studies/db75f8688d4e939bf0c5db44b6f176e11e9fcb8f/learn-you-a-haskell-exercises/09-input-and-output.hs
haskell
import Data.List import System.Random import System.Environment.Blank (getArgs) - Lets implement the UNIX echo command - The program arguments are simply printed to the standard output . - If the first argument is -n , this argument is not printed , and no trailing newline is printed - Lets implement the ...
2efd3ef47e866c3ac685f97ee33b22a427b1ed11aac8799f3ada54a092171aa6
mrphlip/aoc
14.hs
# OPTIONS_GHC -Wno - tabs # import Data.List import qualified Data.Set as S import qualified Text.ParserCombinators.ReadP as P import Control.Exception import Utils type Point = (Integer, Integer) type Grid = S.Set Point getInput :: IO [[Point]] getInput = map parseLine <$> lines <$> readFile "14.txt" parseLine :: S...
null
https://raw.githubusercontent.com/mrphlip/aoc/34474f9fa32e3976ba5886045b610054cd220afd/2022/14.hs
haskell
# OPTIONS_GHC -Wno - tabs # import Data.List import qualified Data.Set as S import qualified Text.ParserCombinators.ReadP as P import Control.Exception import Utils type Point = (Integer, Integer) type Grid = S.Set Point getInput :: IO [[Point]] getInput = map parseLine <$> lines <$> readFile "14.txt" parseLine :: S...
369ce5e5e54e202d84650febdda14d029b48e3d539a9f19751bad0b66330dfc9
ff-notes/ron
Main.hs
import Control.Monad (when) import Control.Monad.Logger (MonadLogger, runFileLoggingT) import Data.Text (Text) import RON.Store.Sqlite (runStore) import RON.Store.Sqlite qualified as Store import Text.Pretty.Simple (pPrint) import UnliftIO (MonadUnliftIO, liftIO, newTChanIO) import Database qualified import Fork (fork...
null
https://raw.githubusercontent.com/ff-notes/ron/c9abcd0a871849c701111aba074596d04ac994c7/demo/chat/Main.hs
haskell
listen` or `--peer`."
import Control.Monad (when) import Control.Monad.Logger (MonadLogger, runFileLoggingT) import Data.Text (Text) import RON.Store.Sqlite (runStore) import RON.Store.Sqlite qualified as Store import Text.Pretty.Simple (pPrint) import UnliftIO (MonadUnliftIO, liftIO, newTChanIO) import Database qualified import Fork (fork...
83de83c4c2d375dd187d033766ea6d2cfea133600e561a384321c335840ad2ea
shayan-najd/NativeMetaprogramming
CustomTypeErrors05.hs
# LANGUAGE TypeInType , TypeFamilies , UndecidableInstances # # LANGUAGE UndecidableInstances # The " tricky case " in # 11391 module CustomTypeErrors05 where import Data.Kind import GHC.TypeLits (TypeError, ErrorMessage(..)) type family Resolve (t :: Type -> Type) :: Type -> Type where Resolve _ = TypeError (Te...
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_fail/CustomTypeErrors05.hs
haskell
# LANGUAGE TypeInType , TypeFamilies , UndecidableInstances # # LANGUAGE UndecidableInstances # The " tricky case " in # 11391 module CustomTypeErrors05 where import Data.Kind import GHC.TypeLits (TypeError, ErrorMessage(..)) type family Resolve (t :: Type -> Type) :: Type -> Type where Resolve _ = TypeError (Te...
726530409af1886c9487992045f274d76421727fd3aecb75a9629d82f0bed1e6
gnl/ghostwheel
dev_test.cljc
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 2.0 ( -2.0/ ) ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; the terms of ...
null
https://raw.githubusercontent.com/gnl/ghostwheel/a85c3510178fc4fbcb95125b86116d698e2a232a/test/ghostwheel/dev_test.cljc
clojure
The use and distribution terms for this software are covered by the which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. TODO - t...
Copyright ( c ) . All rights reserved . Eclipse Public License 2.0 ( -2.0/ ) (ns ghostwheel.dev-test (:require [clojure.spec.alpha :as s] [clojure.spec.test.alpha :as st] [clojure.spec.gen.alpha :as gen] [ghostwheel.core :as g :refer [=> | <- >defn >defn- >fdef ?]] ...
b9a17a3554904a57e0cb80f8908e94ad3a4591dd1880bb496f96f4d8bf7f92ec
fortytools/holumbus
Static.hs
-- ---------------------------------------------------------------------------- | Module : Hayoo . Search . Pages . Static Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 The main H...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/crawl2/examples/hayoo/Hayoo/Search/Pages/Static.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- # LANGUAGE OverloadedStrings #
| Module : Hayoo . Search . Pages . Static Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 The main Hayoo ! template . Module : Hayoo.Search.Pages.Static Copyright : Copy...
f6f442edd0a0d114289964c246dfb3cf77610a61f8fbb372a1829eb1eb662588
rauschma/reasonml-demo-iterators
genMList.mli
(* This file is free software, part of gen. See file "license" for more details. *) * { 1 Efficient Mutable Lists } Unrolled lists , append - only , used for storing the content of a generator . Example : { [ let g = 1 -- 1000 ; ; : int t = < fun > let c = g | > MList.of...
null
https://raw.githubusercontent.com/rauschma/reasonml-demo-iterators/d69ff758cb0f159814d60ad76157dffba3e14634/src/lib/gen/genMList.mli
ocaml
This file is free software, part of gen. See file "license" for more details. c consumed, but not c' * Generator of values tied to this copy * Clone the internal state * An internal append-only storage of elements of type 'a, produced from a generator
* { 1 Efficient Mutable Lists } Unrolled lists , append - only , used for storing the content of a generator . Example : { [ let g = 1 -- 1000 ; ; : int t = < fun > let c = g | > MList.of_gen_lazy | > MList.to_clonable ; ; c : int clonable = < obj > ...
e071372c32a361d35840a2ab85bb415a921d3c5b767f773d3723b317f802835b
ocamllabs/ocaml-modular-implicits
t021-pushconst3.ml
let _ = () in 3;; * 0 1 PUSHCONST3 2 POP 1 4 ATOM0 5 SETGLOBAL T021 - pushconst3 7 STOP * 0 CONST0 1 PUSHCONST3 2 POP 1 4 ATOM0 5 SETGLOBAL T021-pushconst3 7 STOP **)
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/tool-ocaml/t021-pushconst3.ml
ocaml
let _ = () in 3;; * 0 1 PUSHCONST3 2 POP 1 4 ATOM0 5 SETGLOBAL T021 - pushconst3 7 STOP * 0 CONST0 1 PUSHCONST3 2 POP 1 4 ATOM0 5 SETGLOBAL T021-pushconst3 7 STOP **)
8dfc6d4b46be72b3f9dac568d7a8115f9b8f32712782dfd59e09bd6d98cf82b0
bomberstudios/mtasc
IO.mli
* IO - Abstract input / output * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option...
null
https://raw.githubusercontent.com/bomberstudios/mtasc/d7c2441310248776aa89d60f9c8f98d539bfe8de/src/extlib-dev/IO.mli
ocaml
* The abstract input type. * The abstract output type, ['a] is the accumulator data, it is returned when the [close_out] function is called. * This exception is raised when reading on a closed input. * This exception is raised when reading on a closed output. * Read a single char from an input or raise [No_more_in...
* IO - Abstract input / output * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option...
c2734376799780d32f9e6493a7c3bf1663cc99ab6a5342ee72290d2ba1278b1a
rd--/hsc3
Enum.hs
-- | Data types for enumerated and non signal unit generator inputs. module Sound.Sc3.Common.Enum where -- * Loop -- | Loop indicator input. data Loop t = NoLoop -- ^ 0 ^ 1 | WithLoop t deriving (Eq, Show) -- | Apply /f/ at 'WithLoop'. loop_map :: (t -> u) -> Loop t -> Loop u loop_map f lp = case lp of ...
null
https://raw.githubusercontent.com/rd--/hsc3/7dc748106639999947548d0b3205a468cfc55fed/Sound/Sc3/Common/Enum.hs
haskell
| Data types for enumerated and non signal unit generator inputs. * Loop | Loop indicator input. ^ 0 | Apply /f/ at 'WithLoop'. | fmap is 'loop_map' | Resolve 'Loop'. * Interpolation | Interpolation indicator input. | Resolve 'Interpolation'. * DoneAction | Completion mode indicator input. | Apply /f/ at '...
module Sound.Sc3.Common.Enum where data Loop t = ^ 1 | WithLoop t deriving (Eq, Show) loop_map :: (t -> u) -> Loop t -> Loop u loop_map f lp = case lp of NoLoop -> NoLoop Loop -> Loop WithLoop t -> WithLoop (f t) instance Functor Loop where fmap = loop_map from_loop :: Num t => Loop t -> t fr...
de7e5384b0dbc39ca7d6917ae2bbc0230a65bc6c1e573461a8af2fdf0da564d6
data61/Mirza
Types.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE MultiParamType...
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/mirza-common-haskell/src/Mirza/Common/Types.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # ***************************************...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedLists # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications ...
500b78994a1fd13e8f06d0a0ee75363b0fcc1f5e373f317177933af9bb168887
AvisoNovate/rook
form_endpoints.clj
(ns sample.form-endpoints (:require [ring.util.response :refer [response]] [io.aviso.rook.interceptors :refer [keywordized-form]])) (defn post-new-widget {:rook-route [:post ""] ;; This is something I like; form parsing and all that ONLY occurs if this is the selected ;; endpoint. Otherwise, the ...
null
https://raw.githubusercontent.com/AvisoNovate/rook/a752ce97f39a5c52301dd1866195f463817a1ed7/spec/sample/form_endpoints.clj
clojure
This is something I like; form parsing and all that ONLY occurs if this is the selected endpoint. Otherwise, the :body is never accessed. And for stateless and configuration-free interceptors like
(ns sample.form-endpoints (:require [ring.util.response :refer [response]] [io.aviso.rook.interceptors :refer [keywordized-form]])) (defn post-new-widget {:rook-route [:post ""] this one , we do n't even need to use the extra machinery provides . :interceptors [keywordized-form]} [^:form-param ...
1c4b46bcf9a554b9ab9e5ec0f2535f5f13440943865ce2f20283da688b0db288
snmsts/cl-langserver
slynk-retro.lisp
(defpackage :ls-retro (:use :cl :ls-base :ls-api)) (in-package :ls-retro) (defun ensure-slynk-package-nicknames (&rest ignored) "Nickname all SLYNK-* package to SWANK-*" (declare (ignore ignored)) (loop for package in (list-all-packages) for package-name = (package-name package) when (search "SLYN...
null
https://raw.githubusercontent.com/snmsts/cl-langserver/3b1246a5d0bd58459e7a64708f820bf718cf7175/src/contrib/slynk-retro.lisp
lisp
(defpackage :ls-retro (:use :cl :ls-base :ls-api)) (in-package :ls-retro) (defun ensure-slynk-package-nicknames (&rest ignored) "Nickname all SLYNK-* package to SWANK-*" (declare (ignore ignored)) (loop for package in (list-all-packages) for package-name = (package-name package) when (search "SLYN...
8414dc580633f2041fef4a9ead17ea189e30f29b24b1a23bf89317eb81db2e2c
vouillon/osm
lru_cache.mli
OSM tools * Copyright ( C ) 2013 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/vouillon/osm/a42d1bcc82a4ad73c26c81ac7a75f9f1c7470344/generic/lru_cache.mli
ocaml
OSM tools * Copyright ( C ) 2013 * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at your opti...
53c461eb6a76e6f77203806390eee142e3e77017a99baf6983a9d35c21039bdc
vbrankov/hdf5-ocaml
c_string.mli
open Bigarray type t val null : t external of_string : string -> t = "hdf5_c_string_of_string" external to_string : t -> string = "hdf5_c_string_to_string" external to_bigstring : t -> (char, int8_unsigned_elt, c_layout) Array1.t = "hdf5_c_string_to_bigstring" external free : t -> unit = "free"
null
https://raw.githubusercontent.com/vbrankov/hdf5-ocaml/7abc763189767cd6c92620f29ce98f6ee23ba88f/src/raw/c_string.mli
ocaml
open Bigarray type t val null : t external of_string : string -> t = "hdf5_c_string_of_string" external to_string : t -> string = "hdf5_c_string_to_string" external to_bigstring : t -> (char, int8_unsigned_elt, c_layout) Array1.t = "hdf5_c_string_to_bigstring" external free : t -> unit = "free"
79db06e748ede26550132dcc15639a816174e6315122d57616127cab6b75d85c
kiselgra/c-mera
c.misc.05.unary.lisp
(include <stdio.h>) (function main () -> int (decl ((int x = 10)) (printf "%d\\n" +x) (printf "%d\\n" -x)) (return 0)) # # 10 # # -10
null
https://raw.githubusercontent.com/kiselgra/c-mera/d06ed96d50a40a3fefe188202c8c535d6784f392/tests/c.misc.05.unary.lisp
lisp
(include <stdio.h>) (function main () -> int (decl ((int x = 10)) (printf "%d\\n" +x) (printf "%d\\n" -x)) (return 0)) # # 10 # # -10
56e80723eb820cd3fd0f28aa1a32fac168d4b38715f41956bb3edbd5c507aea0
green-coder/girouette
default_api.cljc
(ns girouette.tw.default-api (:require [girouette.tw.core :as gtw] [girouette.version :as version] [girouette.tw.common :as common] [girouette.tw.color :as color] [girouette.tw.layout :as layout] [girouette.tw.flexbox :as flexbox] [girouette.tw.grid :as grid] [girouette.tw.box-alignmen...
null
https://raw.githubusercontent.com/green-coder/girouette/34f8cabdd605e93bd2ced4e5be29f611557d4b76/lib/girouette/src/girouette/tw/default_api.cljc
clojure
Feel free to fork the snippet above and add your own components,
(ns girouette.tw.default-api (:require [girouette.tw.core :as gtw] [girouette.version :as version] [girouette.tw.common :as common] [girouette.tw.color :as color] [girouette.tw.layout :as layout] [girouette.tw.flexbox :as flexbox] [girouette.tw.grid :as grid] [girouette.tw.box-alignmen...
201637a0bfdb91b7b4a85830646b9c21e7141f3cdc92177c4cc3bc9e86d21872
VisionsGlobalEmpowerment/webchange
cinema.clj
(ns webchange.templates.library.cinema (:require [webchange.templates.core :as core] [webchange.templates.utils.common :as common] [webchange.templates.utils.dialog :as dialog])) (def template-options [{:type "note" :text "Introduce and show a letter introduction video on a screen for students to l...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/118ba5ee407ba1261bac40a6ba5729ccda6e8150/src/clj/webchange/templates/library/cinema.clj
clojure
(ns webchange.templates.library.cinema (:require [webchange.templates.core :as core] [webchange.templates.utils.common :as common] [webchange.templates.utils.dialog :as dialog])) (def template-options [{:type "note" :text "Introduce and show a letter introduction video on a screen for students to l...
b72906ccecd69f234753d7298d12cc6b0625c9749a1cbaaf9a5d10621f5478ff
mithrandi/isaacranks
Instrument.hs
module Instrument ( requestDuration , instrumentApp , observeDurationL , observeHandler , observeHandlerL , timeAction ) where import Data.Ratio ((%)) import qualified Data.Text as T import qualified Data.Text.Encoding as E import Data.Text.Encoding.Error import Import impor...
null
https://raw.githubusercontent.com/mithrandi/isaacranks/7943ea00ef3d3f415cae61e33d9f16f234de895f/Instrument.hs
haskell
doIO = liftIO | Core information about HTTP requests: Labels: * handler: the name of the application * method: the HTTP method requested * status_code: the HTTP response code Actual metric is the latency of the request. ^ The metric to instrument ^ The label used to identify this app ^ The app to instrume...
module Instrument ( requestDuration , instrumentApp , observeDurationL , observeHandler , observeHandlerL , timeAction ) where import Data.Ratio ((%)) import qualified Data.Text as T import qualified Data.Text.Encoding as E import Data.Text.Encoding.Error import Import impor...
93d9e92ad2ff00a3a588659e8136ff24e30968a81a766d5b4ab33ebaeb025bea
LaurentMazare/ocaml-torch
alexnet.ml
AlexNet model . *) open Base open Torch let sub = Var_store.sub let conv2d = Layer.conv2d_ let features vs = let conv1 = conv2d (sub vs "0") ~ksize:11 ~padding:2 ~stride:4 ~input_dim:3 64 in let conv2 = conv2d (sub vs "3") ~ksize:5 ~padding:1 ~stride:2 ~input_dim:64 192 in let conv3 = conv2d (sub ...
null
https://raw.githubusercontent.com/LaurentMazare/ocaml-torch/a82b906a22c7c23138af16fab497a08e5167d249/src/vision/alexnet.ml
ocaml
AlexNet model . *) open Base open Torch let sub = Var_store.sub let conv2d = Layer.conv2d_ let features vs = let conv1 = conv2d (sub vs "0") ~ksize:11 ~padding:2 ~stride:4 ~input_dim:3 64 in let conv2 = conv2d (sub vs "3") ~ksize:5 ~padding:1 ~stride:2 ~input_dim:64 192 in let conv3 = conv2d (sub ...
aee3882c23075ed3e00aa742658a48b96a6a7f003d92b6201123429854f3375a
solita/mnt-teet
meeting_queries.clj
(ns teet.meeting.meeting-queries (:require [teet.project.project-db :as project-db] [teet.db-api.core :refer [defquery]] [teet.meta.meta-query :as meta-query] [teet.meeting.meeting-db :as meeting-db] [teet.user.user-model :as user-model] [datomic.client.api ...
null
https://raw.githubusercontent.com/solita/mnt-teet/2dcdad70d4dcf33eef56650f8f6d3fa9f7756cec/app/backend/src/clj/teet/meeting/meeting_queries.clj
clojure
This is done to have the activity name in easier place for frontend This ends up pulling duplicate information, could be refactored
(ns teet.meeting.meeting-queries (:require [teet.project.project-db :as project-db] [teet.db-api.core :refer [defquery]] [teet.meta.meta-query :as meta-query] [teet.meeting.meeting-db :as meeting-db] [teet.user.user-model :as user-model] [datomic.client.api ...
8baf57ec5d7f6d978217c8905927c827225679922e7fd275d1d66d8ecae4552c
anishathalye/knox
circuit-lang.rkt
#lang rosette/safe (require (only-in rosutil/addressable-struct addressable-struct) "../result.rkt" "../circuit.rkt" (for-syntax racket/base racket/syntax syntax/parse)) (provide (except-out (all-from-out rosette/safe) struct #%module-begin) (rename-out [addressable-struct struct] [$#%module-begin ...
null
https://raw.githubusercontent.com/anishathalye/knox/161cda3e5274cc69012830f477749954ddcf736d/knox/circuit/circuit-lang.rkt
racket
fallback, useful in e.g. submodules (like a test module)
#lang rosette/safe (require (only-in rosutil/addressable-struct addressable-struct) "../result.rkt" "../circuit.rkt" (for-syntax racket/base racket/syntax syntax/parse)) (provide (except-out (all-from-out rosette/safe) struct #%module-begin) (rename-out [addressable-struct struct] [$#%module-begin ...
ebc1d8509b05e422d9c060c323b5b44c1edb21d3bf856fa2cb5e1a65f8054783
FreeProving/free-compiler
List.hs
-- This example contains definitions for commonly used list functions from -- the @Data.List@ module. module Data.List where ------------------------------------------------------------------------------- -- Basic functions -- ----------------------------------...
null
https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/example/Data/List.hs
haskell
This example contains definitions for commonly used list functions from the @Data.List@ module. ----------------------------------------------------------------------------- Basic functions -- ------------------------------------------------------------------...
module Data.List where | Append two lists , i.e. , append :: [a] -> [a] -> [a] append xs ys = case xs of [] -> ys x : xs' -> x : append xs' ys infixr 5 `append` | Extract the first element of a list , which must be non - empty . head :: [a] -> a head xs = case xs of [] -> error "head: empty list"...
9f17d135d3a6b2628e1b261c5eb9814af178358fd4e9ed1284ce8f03ae423b01
seanirby/koeeoadi
title.cljs
(ns koeeoadi.components.title (:require [om.next :as om :refer-macros [defui]] [om.dom :as dom])) (defn title [comp] (let [{:keys [show-help]} (om/get-state comp)] (dom/div #js {:className "widget widget-active" :id "app-info"} (dom/h2 #js {:id "title"} "KOEEOADI!") ...
null
https://raw.githubusercontent.com/seanirby/koeeoadi/481dc31e023e0a54ee5248bd2ef06a56e7d1d64d/src/cljs/koeeoadi/components/title.cljs
clojure
(ns koeeoadi.components.title (:require [om.next :as om :refer-macros [defui]] [om.dom :as dom])) (defn title [comp] (let [{:keys [show-help]} (om/get-state comp)] (dom/div #js {:className "widget widget-active" :id "app-info"} (dom/h2 #js {:id "title"} "KOEEOADI!") ...
844693af279a32cf8385492d7654c00f38395b74f4ca7cacba48e417ed752e63
davebryson/beepbeep
beepbeep_session_server.erl
@author [ ] @copyright 2008 - 2009 %% @hidden %%------------------------------------------------------------------- %% Description : Maintains session information for the client. All data is stored %% on the server. Only a unique session id is exchanged with the client. %% Inspired by the Yaws Session Server. ...
null
https://raw.githubusercontent.com/davebryson/beepbeep/62db46d268c6cb6ad86345562b3c77f8ff070b27/src/beepbeep_session_server.erl
erlang
@hidden ------------------------------------------------------------------- Description : Maintains session information for the client. All data is stored on the server. Only a unique session id is exchanged with the client. Inspired by the Yaws Session Server. -----------------------------------------------------...
@author [ ] @copyright 2008 - 2009 -module(beepbeep_session_server). -author('Dave Bryson <>'). -behaviour(gen_server). -export([start/0,new_session/1,get_session_data/1,set_session_data/3,delete_session/1,remove_session_data/2]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, ...
2803764c586b5243ea13fc819f4239191e01e33879152c4237872103135d9141
DKurilo/hackerrank
solution.hs
# LANGUAGE FlexibleInstances , UndecidableInstances # # LANGUAGE DuplicateRecordFields , UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad import Debug.Trace import System.Environment import System.IO import System.IO.Unsafe -- Complete the stepPerms function below. stepPerms ∷ Int → Int ...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/ctci-recursive-staircase/solution.hs
haskell
Complete the stepPerms function below. hPutStrLn fptr $ show res
# LANGUAGE FlexibleInstances , UndecidableInstances # # LANGUAGE DuplicateRecordFields , UnicodeSyntax # module Main where import Prelude.Unicode import Control.Monad import Debug.Trace import System.Environment import System.IO import System.IO.Unsafe stepPerms ∷ Int → Int stepPerms n = steps n `mod` 10000000007 s...
645f1cd17ca87ffab443e1e76ae516a9758c9bfd6f4fcba89e0b75559192c3d1
jnavila/plotkicadsch
imageDiff.ml
open! StdLabels open Lwt.Infix let doc = "use compare (ImageMagick) between bitmaps" type pctx = SvgPainter.t module SVG = Kicadsch.MakeSchPainter (SvgPainter) module SP = struct include SVG type painterContext = SvgPainter.t end module S = SP let display_diff ~from_ctx ~to_ctx filename ~keep = let from_fil...
null
https://raw.githubusercontent.com/jnavila/plotkicadsch/a8afb216bf04aeaeb9088ef264407b094553d145/plotkicadsch/src/imageDiff.ml
ocaml
open! StdLabels open Lwt.Infix let doc = "use compare (ImageMagick) between bitmaps" type pctx = SvgPainter.t module SVG = Kicadsch.MakeSchPainter (SvgPainter) module SP = struct include SVG type painterContext = SvgPainter.t end module S = SP let display_diff ~from_ctx ~to_ctx filename ~keep = let from_fil...
0b38a0293b8fd11526b24e08246e882e8f55a6a0d55b776ac4e7bc19a803cf99
rowangithub/DOrder
includemod.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/typing/includemod.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : includemod.mli 10447 2010 - 0...
6c7ad9bc6ae7bee9df6315ed9679d3da68dc825753e38874b6a610aacb984f01
noloop/cacau
package.lisp
(defpackage #:noloop.cacau (:use #:common-lisp) (:nicknames #:cacau) (:import-from #:eventbus #:make-eventbus #:once #:on #:emit) (:import-from #:assertion-error #:assertion-error #:assertion-error-actual ...
null
https://raw.githubusercontent.com/noloop/cacau/ba0fb36a284ded884f1dab0bd3f0f41ec14e3038/src/package.lisp
lisp
(defpackage #:noloop.cacau (:use #:common-lisp) (:nicknames #:cacau) (:import-from #:eventbus #:make-eventbus #:once #:on #:emit) (:import-from #:assertion-error #:assertion-error #:assertion-error-actual ...
a61469c2362f4ced761fe2fd8b2a74585e5a2512287aeb9d718e6434d345e1bb
mdesharnais/mini-ml
Spec.hs
# LANGUAGE OverloadedLists # import qualified Compiler import qualified Data.Char import qualified Expr import qualified Data.Set as Set import qualified Interpreter import qualified Lexer import qualified Parser import qualified Type import qualified TypeContext as TyCtxt import qualified TypeInference as TyInferance ...
null
https://raw.githubusercontent.com/mdesharnais/mini-ml/304017aab02c04ed4fbd9420405d3a0483dcba37/test/Spec.hs
haskell
(show subst)
# LANGUAGE OverloadedLists # import qualified Compiler import qualified Data.Char import qualified Expr import qualified Data.Set as Set import qualified Interpreter import qualified Lexer import qualified Parser import qualified Type import qualified TypeContext as TyCtxt import qualified TypeInference as TyInferance ...
b5e5be7fb96376cab95b4078c0ea769c5973194e9f49a5a52b578c66515bb644
darrenldl/ProVerif-ATP
pilexer.ml
# 28 "pilexer.mll" open Parsing_helper open Piparser let create_hashtable size init = let tbl = Hashtbl.create size in List.iter (fun (key,data) -> Hashtbl.add tbl key data) init; tbl (* Untyped front-end *) let keyword_table = create_hashtable 11 [ "data", DATA; "param", PARAM; "private", PRIVATE; (* ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/pilexer.ml
ocaml
Untyped front-end Common keywords
# 28 "pilexer.mll" open Parsing_helper open Piparser let create_hashtable size init = let tbl = Hashtbl.create size in List.iter (fun (key,data) -> Hashtbl.add tbl key data) init; tbl let keyword_table = create_hashtable 11 [ "data", DATA; "param", PARAM; "private", PRIVATE; "new", NEW; "out", OUT;...
5f0efb79c1f0da922158e03442047035a6d7ac667872d8b1c33debf6b6a943a5
shayan-najd/NativeMetaprogramming
T9858d.hs
# LANGUAGE DataKinds # module Main where import Data.Typeable data A = A main = print $ typeRep (Proxy :: Proxy A) == typeRep (Proxy :: Proxy 'A)
null
https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_run/T9858d.hs
haskell
# LANGUAGE DataKinds # module Main where import Data.Typeable data A = A main = print $ typeRep (Proxy :: Proxy A) == typeRep (Proxy :: Proxy 'A)
0c0caa6de710780d64a30e77b1a8227c836f8858f1c829d06563b555fd0eec68
mfoemmel/erlang-otp
io_lib_pretty.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/stdlib/src/io_lib_pretty.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(io_lib_pretty). Pretty printing ...
545fda0efe1cc9f8a401f1a036d5455f5c87b696112d8ac5bf2867a9907beca1
richcarl/edoc
edoc.erl
%% ===================================================================== Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may %% not use this file except in compliance with the License. You may obtain %% a copy of the License at <-2.0> %% %% Unless required by applicable law or agreed to in w...
null
https://raw.githubusercontent.com/richcarl/edoc/1d816832ea6d4a8666c059aa9b84298a26a3265a/src/edoc.erl
erlang
===================================================================== not use this file except in compliance with the License. You may obtain a copy of the License at <-2.0> Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied....
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may distributed under the License is distributed on an " AS IS " BASIS , General Public License ( the " LGPL " ) as published by the Free Software Foundation ; either version 2.1 , or ( at your option ) any later version . either the Ap...
1aad8df69471a3d8ec06e408a6c444ae8095dd2a266eb08017a4775d15a34d51
cedlemo/OCaml-GI-ctypes-bindings-generator
Size_group.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_size_group_new" (Size_group_mode.t_view @-> returning (ptr t_typ)) let add_widget = foreign "gtk_size_group_add_widget" (t_typ @-> ptr Widget.t_typ @-> returning (void)) let get_ignore_hidden = foreign "gtk_size_gr...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Size_group.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let create = foreign "gtk_size_group_new" (Size_group_mode.t_view @-> returning (ptr t_typ)) let add_widget = foreign "gtk_size_group_add_widget" (t_typ @-> ptr Widget.t_typ @-> returning (void)) let get_ignore_hidden = foreign "gtk_size_gr...
d3a36c63ad9035e6dbc1bd4285e5bbc7a59969ab9272554a55f985c3f85f9d0e
yrashk/erlang
mnesia_dumper.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/yrashk/erlang/e1282325ed75e52a98d58f5bd9fb0fa27896173f/lib/mnesia/src/mnesia_dumper.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(mnesia_dumper). The arg may be...
aea4f2041ac6b242827d6e5e6106897b561cf02ee3e60ef6d4b2f9070befad4c
well-typed/large-records
Generics_SOP.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE KindSignatures #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeFamilies #-} # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans...
null
https://raw.githubusercontent.com/well-typed/large-records/551f265845fbe56346988a6b484dca40ef380609/large-records-benchmarks/bench/experiments/Experiment/Generics_SOP.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # ------------------------------------------------------------------------------ Computing metadata ------------------------------------------------------------------------------ -----...
# LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # | Generic instance for HList using SOP generics module Experiment.Generics_SOP (gtoJSON) where import Data.Aeson import Data.Kind import Data.SOP...
e69e78ca226692c66cc0b83ec223b4eb6428032461d3213768095d44c872e60d
ghc/ghc
FromCmm.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # module GHC.Wasm.ControlFlow.FromCmm ( structuredControl ) where import GHC.Prelude hiding (succ) import Data.Function import Data.List (sortBy) import qualified Data.Tree as Tree import GHC.Cmm import GHC.Cmm.Dataflow.Block import...
null
https://raw.githubusercontent.com/ghc/ghc/354aa47d313113855aff9e5c5476fcb56f80e3bf/compiler/GHC/Wasm/ControlFlow/FromCmm.hs
haskell
----------------- Abstraction of Cmm control flow ----------------------- | Abstracts the kind of control flow we understand how to convert. * Unconditionally * Conditionally on a predicate of type `e` * To a location determined by the value of a scrutinee of type `e` * Not at all. --------------------...
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # module GHC.Wasm.ControlFlow.FromCmm ( structuredControl ) where import GHC.Prelude hiding (succ) import Data.Function import Data.List (sortBy) import qualified Data.Tree as Tree import GHC.Cmm import GHC.Cmm.Dataflow.Block import...
f156aabf221b18e79e66b325214fb1f988dbcbafdefbf569ccbb799a094bc1d2
josefs/Gradualizer
refine_bound_var_on_mismatch.erl
-module(refine_bound_var_on_mismatch). %% Note: Here we're refining an already bound variable -export([refined_var_not_matching_itself/1, refine_bound_var_by_pattern_mismatch/1]). Current error : is expected to have type y | z but has type x | y | z -spec refined_var_not_matching_itself(x | y | z) -> ok....
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/test/known_problems/should_pass/refine_bound_var_on_mismatch.erl
erlang
Note: Here we're refining an already bound variable
-module(refine_bound_var_on_mismatch). -export([refined_var_not_matching_itself/1, refine_bound_var_by_pattern_mismatch/1]). Current error : is expected to have type y | z but has type x | y | z -spec refined_var_not_matching_itself(x | y | z) -> ok. refined_var_not_matching_itself(Var) -> case Var o...
dcbc7b36142cd494d9ca3732828cb5e85c1e25e07864d354b4c91d147272fc3f
CloudI/CloudI
proper_arith.erl
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- %%% ------------------------------------------------------------------- Copyright 2010 - 2020 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr is free software: you can redistribute it a...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/proper/src/proper_arith.erl
erlang
------------------------------------------------------------------- PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITN...
-*- coding : utf-8 -*- -*- erlang - indent - level : 2 -*- Copyright 2010 - 2020 < > , < > and < > This file is part of PropEr . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Licens...
f9b0df95aa186275049680b080f8993ffcd81b51e5e323098dbf5987b4484b9b
sadiqj/ocaml-esp32
primreq.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/tools/primreq.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Config open Cmo_format module StringSet = Set.Make(struct type t = string let compare = compare en...
0779eb684fdc266820a328febafbcefdae937b76e21fede9c57c75a1e8052625
facebookincubator/hsthrift
Predicate.hs
Copyright ( c ) Facebook , Inc. and its affiliates . module Util.Predicate ( Pred , predAnd , predTrue , predFalse ) where import Control.Applicative (liftA2) -- | Predicate function. type Pred a = a -> Bool | Combine two predicate functions to produce a new function that holds if -- both input predic...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/common/util/Util/Predicate.hs
haskell
| Predicate function. both input predicates hold. | Predicate which returns True for all inputs | Predicate which returns False for all inputs
Copyright ( c ) Facebook , Inc. and its affiliates . module Util.Predicate ( Pred , predAnd , predTrue , predFalse ) where import Control.Applicative (liftA2) type Pred a = a -> Bool | Combine two predicate functions to produce a new function that holds if predAnd :: Pred a -> Pred a -> Pred a predAnd...
2a959b8fbf74e2ddbd355bc6468ee8a428f8cd87fee2ddab6d28f26b31370193
haskell-suite/base
Char.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # ----------------------------------------------------------------------------- -- | Module : Data . Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : --...
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/Data/Char.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : stable Portability : portable --------------------------------------------------------------------------- * Character classification | U...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude # Module : Data . Copyright : ( c ) The University of Glasgow 2001 The type and associated operations . module Data.Char ( Char , isControl, isSpace , isLower, isUpper, isAlpha, isAlphaNum, isPrint , isDigit, isOct...
daf326050397961e9c06a5857c575662ddeb99c58ee8fc6d6aed322c06f7980a
snoyberg/http-client
Create.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoMonomorphismRestriction # # LANGUAGE CPP # | This script parses the public suffix list , and constructs a data structure which can be used with the isSuffix function in Lookup.hs . It exports a GSink which produces the opaque ' D...
null
https://raw.githubusercontent.com/snoyberg/http-client/df5b154a70cee2d94f66eccf18d6b821073b7cfb/http-client/publicsuffixlist/Network/PublicSuffixList/Create.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings #
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE CPP # | This script parses the public suffix list , and constructs a data structure which can be used with the isSuffix function in Lookup.hs . It exports a GSink which produces the opaque ' DataStructure ' and can be fed any Source as input . This makes an fe...
a6588bee2812a95223d8aa2f48fe09d71e6838510d3a30d4af28c4b855b008de
tweag/sparkle
RDD.hs
-- | Bindings for < org.apache.spark.api.java . JavaRDD > . -- -- Please refer to that documentation for the meaning of each binding. # LANGUAGE DataKinds # {-# LANGUAGE ExplicitForAll #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-...
null
https://raw.githubusercontent.com/tweag/sparkle/24b8c452e67b414f93e4d7fc8c54c7175ddb1b2f/src/linear-types/Control/Distributed/Spark/Safe/RDD.hs
haskell
| Bindings for Please refer to that documentation for the meaning of each binding. # LANGUAGE ExplicitForAll # # LANGUAGE LinearTypes # NOTE: We need this in order to be able to use newLocalRef and deleteLocalRef, as the typechecker needs to be able to see the unsafe J data constructor to derive Coercible instanc...
< org.apache.spark.api.java . JavaRDD > . # LANGUAGE DataKinds # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedLabels # # LANGUAGE QualifiedDo # # LANGUAGE QuasiQuotes # # LANGUAGE ...
2427566113e9c35ce42bca42960d8bf5b59786b331201080ebdd731c5ff3f6e6
brownplt/TeJaS
strobe_sigs.ml
open Prelude open Sig module type STROBE_TYPS = sig type pat type extKind type kind = | KStar | KArrow of kind list * kind | KEmbed of extKind type presence = | Inherited | Present | Maybe type extTyp type typ = | TPrim of string | TUnion of string option * typ...
null
https://raw.githubusercontent.com/brownplt/TeJaS/a8ad7e5e9ad938db205074469bbde6a688ec913e/src/strobe_sigs.ml
ocaml
args (including <this>), optional variadic arg, return typ * [TForall (a, s, t)] forall a <: s . t * type operator * type operator application * recursive type operators * type of uninitialized variables pat Lazy.t * Pattern for absent field * includes absent * excludes absent
open Prelude open Sig module type STROBE_TYPS = sig type pat type extKind type kind = | KStar | KArrow of kind list * kind | KEmbed of extKind type presence = | Inherited | Present | Maybe type extTyp type typ = | TPrim of string | TUnion of string option * typ...
9dbb7c02a05fa35d36b238d0ac7fc3ab281cbbb72b53ad8035fd30a38db3995f
fujita-y/digamma
r7rs.scm
Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . ;;; See LICENSE file for terms and conditions of use. (define feature-identifies (make-parameter (cons* (if (= (architecture-feature 'sizeof:void*) 64) 'lp64 'ilp32) (string->symbol (string-append (symbol->string (native-e...
null
https://raw.githubusercontent.com/fujita-y/digamma/31f1512de2d406448ba3a9c8c352c56f30eb99e4/heap/boot/macro/r7rs.scm
scheme
See LICENSE file for terms and conditions of use.
Copyright ( c ) 2004 - 2022 Yoshikatsu Fujita / LittleWing Company Limited . (define feature-identifies (make-parameter (cons* (if (= (architecture-feature 'sizeof:void*) 64) 'lp64 'ilp32) (string->symbol (string-append (symbol->string (native-endianness)) "-endian")) '(r7rs exact-closed exac...
d965404295888a94aacc6c4b6f48196d97592499ebc0d61c6a7de545a0c3b5ac
ghc/packages-Cabal
MyLibrary.hs
module MyLibrary where main :: IO () main = error ""
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/AutogenModules/Package/MyLibrary.hs
haskell
module MyLibrary where main :: IO () main = error ""
c2caf9a8c1e37d7cd9506e4aab26ef59d3e38a69ac5ed22687ad815a6cbe8fd2
GrammaTech/sel
in-memory-fodder-database.lisp
;;; in-memory-fodder-database.lisp --- In-memory fodder database ;;; Base class for all fodder database implementations ;;; with data stored entirely in a LISP representation (defpackage :software-evolution-library/components/in-memory-fodder-database (:nicknames :sel/components/in-memory-fodder-database ...
null
https://raw.githubusercontent.com/GrammaTech/sel/a4238945dfbf98b67b9d8a10b08924634544f9f8/components/in-memory-fodder-database.lisp
lisp
in-memory-fodder-database.lisp --- In-memory fodder database Base class for all fodder database implementations with data stored entirely in a LISP representation The current implementation of the database has redundant data, trading space for query time. It is assumed that all in-memeory databases will be fairly...
(defpackage :software-evolution-library/components/in-memory-fodder-database (:nicknames :sel/components/in-memory-fodder-database :sel/cp/in-memory-fodder-database) (:use :gt/full :software-evolution-library :software-evolution-library/software/parseable :software-evolution-li...
fb552636d0c3c285aa0758cb4874f9d4d67b46652f304b947d4ca72ef2ddfe72
bob-cd/bob
cctray.clj
; Copyright 2018- Rahul De ; Use of this source code is governed by an MIT - style ; license that can be found in the LICENSE file or at ; . (ns apiserver.cctray (:require [clojure.data.xml :as xml] [failjure.core :as f] [xtdb.api :as xt])) (defn make-project [{:keys [group name status completed] :...
null
https://raw.githubusercontent.com/bob-cd/bob/7e171012f0750f108c9d8499201d1ec65f30efbb/apiserver/src/apiserver/cctray.clj
clojure
Copyright 2018- Rahul De license that can be found in the LICENSE file or at .
Use of this source code is governed by an MIT - style (ns apiserver.cctray (:require [clojure.data.xml :as xml] [failjure.core :as f] [xtdb.api :as xt])) (defn make-project [{:keys [group name status completed] :as data}] (let [last-build-status (case status (:passed :...
5840fdfe0d80a8cf4f6e6a30c2323c67599cb50fad7ee2f6575e7664907e27bc
diagrams/diagrams-lib
Compile.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - unused - imports # for Data . Semigroup ----------------------------------------------------------------------------- -- | -- Module : Diagrams....
null
https://raw.githubusercontent.com/diagrams/diagrams-lib/6f66ce6bd5aed81d8a1330c143ea012724dbac3c/src/Diagrams/Attributes/Compile.hs
haskell
# LANGUAGE FlexibleContexts # --------------------------------------------------------------------------- | Module : Diagrams.Attributes.Compile License : BSD-style (see LICENSE) Maintainer : XXX --------------------------------------------------------------------------- ------------------------...
# LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - unused - imports # for Data . Semigroup Copyright : ( c ) 2014 diagrams - lib team ( see LICENSE ) module Diagrams.Attributes.Compile ( SplitAttribute(..), splitAttr ) where...
58efb9605395cb2c1dac2f478e33016666c841862efccae7f5b1f5b7f87d8bc9
burgerdev/ocaml-rfc7748
curve.mli
module type Field = sig type t val zero: t val ( + ): t -> t -> t val ( - ): t -> t -> t val double: t -> t val one: t val ( * ): t -> t -> t val ( / ): t -> t -> t val square: t -> t end module type Integral = sig type t val zero: t val one: t val ( + ): t -> t -> t val ( mod ): t ->...
null
https://raw.githubusercontent.com/burgerdev/ocaml-rfc7748/ed034213ff02cd55870ae1387e91deebc9838eb4/src/curve.mli
ocaml
module type Field = sig type t val zero: t val ( + ): t -> t -> t val ( - ): t -> t -> t val double: t -> t val one: t val ( * ): t -> t -> t val ( / ): t -> t -> t val square: t -> t end module type Integral = sig type t val zero: t val one: t val ( + ): t -> t -> t val ( mod ): t ->...
be209828271a9921a9ccd391e10da4de946e0a32ea569edf5ad440c149db39e1
jacius/lispbuilder
package.lisp
;;;; lispbuilder-sdl-image-binaries (in-package #:cl-user) (defpackage #:lispbuilder-sdl-image-binaries (:use #:cl) (:nicknames #:sdl-image-bin) (:documentation "The main package of `lispbuilder-sdl-image'.") (:export ;; globals.lisp #:*dll-path*))
null
https://raw.githubusercontent.com/jacius/lispbuilder/e693651b95f6818e3cab70f0074af9f9511584c3/lispbuilder-sdl-image/bin/package.lisp
lisp
lispbuilder-sdl-image-binaries globals.lisp
(in-package #:cl-user) (defpackage #:lispbuilder-sdl-image-binaries (:use #:cl) (:nicknames #:sdl-image-bin) (:documentation "The main package of `lispbuilder-sdl-image'.") (:export #:*dll-path*))
fae1e5c062a3ea4daa4fc171f1d06480880c3dc335d4dcb3c7d4fba45584df13
binsec/binsec
senv.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/22ee39aad58219e8837b6ba15f150ba04a498b63/src/sse/term/senv.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
9c9f751736d471e062b0c8c58e8c4a32145819ceedf9e85b6c79b0165f2f0fd3
CodyReichert/qi
enum.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; enum.lisp --- Defining foreign constants as Lisp keywords. ;;; Copyright ( C ) 2005 - 2006 , < > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software "...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cffi-master/src/enum.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- enum.lisp --- Defining foreign constants as Lisp keywords. 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, publi...
Copyright ( C ) 2005 - 2006 , < > 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 , (in-package ...
1100c909455b1784686059332e43c6f2957629736cdbfedd05a2ef16e289b645
rems-project/lem
rename_top_level.ml
(**************************************************************************) (* Lem *) (* *) , University of Cambridge , INRIA Paris -...
null
https://raw.githubusercontent.com/rems-project/lem/a839114e468119d9ac0868d7dc53eae7f3cc3a6c/src/rename_top_level.ml
ocaml
************************************************************************ Lem ...
, University of Cambridge , INRIA Paris - Rocquencourt , University of Cambridge , University of Cambridge , University of Cambridge ( while working on Lem ) ...
277c9cb1cbf403beb6ecc3ea1e030e3c5dd52d101d341c771a288008733c18e7
mzp/coq-ide-for-ios
haskell.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/plugins/extraction/haskell.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** s Production of Haskell syntax. s T...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : haskell.ml 14010 20...
d118326086cebdf414cf6b216970159636e9c06b713b246dc5fc848c15365ac3
seanomlor/programming-in-haskell
replicate.hs
replicate' :: Int -> a -> [a] replicate' n x = [x | _ <- [0 .. n]]
null
https://raw.githubusercontent.com/seanomlor/programming-in-haskell/e05142e6709eeba2e95cf86f376a32c9e629df88/05-list-comprehensions/replicate.hs
haskell
replicate' :: Int -> a -> [a] replicate' n x = [x | _ <- [0 .. n]]
a723f983a4457678ef6795becf5d8f73799dfa8ed5dc8d93465d0fa125b8d95b
tsloughter/kuberl
kuberl_v1_container_image.erl
-module(kuberl_v1_container_image). -export([encode/1]). -export_type([kuberl_v1_container_image/0]). -type kuberl_v1_container_image() :: #{ 'names' := list(), 'sizeBytes' => integer() }. encode(#{ 'names' := Names, 'sizeBytes' := SizeBytes }) -> #{ 'names' => Names, 's...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_container_image.erl
erlang
-module(kuberl_v1_container_image). -export([encode/1]). -export_type([kuberl_v1_container_image/0]). -type kuberl_v1_container_image() :: #{ 'names' := list(), 'sizeBytes' => integer() }. encode(#{ 'names' := Names, 'sizeBytes' := SizeBytes }) -> #{ 'names' => Names, 's...
7a920aa74cda6a81cfd5cc3a0e2ce375cc7b31cc9b5ee4df02ad069e481c2de0
hslua/hslua
Types.hs
| Module : HsLua . Packaging . Types Copyright : © 2020 - 2023 : MIT Maintainer : < tarleb+ > Stability : alpha Portability : Portable Marshaling and documenting functions . Module : HsLua.Packaging.Types Copyright : © 2020-2023 Albert Krewinkel License : MIT Maintain...
null
https://raw.githubusercontent.com/hslua/hslua/e86d00dfa8b0915f3060c9e618fc3e373048d9c2/hslua-packaging/src/HsLua/Packaging/Types.hs
haskell
* Documented module * Documented functions ** Documentation types | Named and documented Lua module. | Self-documenting module field Function components Documentation types ^ Version in which the function was introduced. | Documentation for function parameters. | Documentation for the return values of a ...
| Module : HsLua . Packaging . Types Copyright : © 2020 - 2023 : MIT Maintainer : < tarleb+ > Stability : alpha Portability : Portable Marshaling and documenting functions . Module : HsLua.Packaging.Types Copyright : © 2020-2023 Albert Krewinkel License : MIT Maintain...
e0d216b70b497288541be7b025e2f679f5c8c1aa776fadf806a0ecf11b8396a4
thelema/ocaml-community
typecheck.ml
(*************************************************************************) (* *) (* OCaml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/browser/typecheck.ml
ocaml
*********************************************************************** OCaml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ Id$ open StdLabels open Tk open P...
b3a966be568dc58d130659ac52be2dfd77a06f6e55bcd7c7189d7315a45121bb
nandor/llir-ocaml
revapply.ml
(* TEST *) external ( |> ) : 'a -> ('a -> 'b) -> 'b = "%revapply" let f x = x + x let g x = x * x let h x = x + 1 let add x y = x + y let _ = List.iter (fun x -> print_int x; print_newline () ) [ 6 36 18 37 260 ]
null
https://raw.githubusercontent.com/nandor/llir-ocaml/9c019f15c444e30c825b1673cbe827e0497868fe/testsuite/tests/prim-revapply/revapply.ml
ocaml
TEST
external ( |> ) : 'a -> ('a -> 'b) -> 'b = "%revapply" let f x = x + x let g x = x * x let h x = x + 1 let add x y = x + y let _ = List.iter (fun x -> print_int x; print_newline () ) [ 6 36 18 37 260 ]
495bfafc3dc998898524c2fd333e418c05f25c3f8f8b288db6d24ffa0535c50e
fetburner/Coq2SML
ide_slave.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/toplevel/ide_slave.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * [ Ide_slave ] : an implemen...
f791a56ef4f735060c033eb9d1336f7a5f876e348e3ddd276b01a8c6bb52371d
fetburner/compelib
bfs01.mli
0 または 1 で重み付けされた有向グラフ module type Weighted01DirectedGraph = sig module Vertex : sig type t (* 現在の頂点までの経路長を取得する *) val get_distance : t -> int (* 頂点までの経路長を上書きする *) val set_distance : t -> int -> unit (* 最短経路を求めたいグラフの,ある頂点から伸びる辺に対してのイテレータ 重みが0の辺に対してはf0を,1の辺に対してはf1を用いる *) val iter_ad...
null
https://raw.githubusercontent.com/fetburner/compelib/d8fc5d9acd04e676c4d4d2ca9c6a7140f1b85670/lib/graph/bfs01.mli
ocaml
現在の頂点までの経路長を取得する 頂点までの経路長を上書きする 最短経路を求めたいグラフの,ある頂点から伸びる辺に対してのイテレータ 重みが0の辺に対してはf0を,1の辺に対してはf1を用いる BFSにより,重みが0または1のグラフの最短経路長を求める グラフに含まれる頂点への経路長は全て無限大で初期化されている必要がある 始点
0 または 1 で重み付けされた有向グラフ module type Weighted01DirectedGraph = sig module Vertex : sig type t val get_distance : t -> int val set_distance : t -> int -> unit val iter_adjacencies : t -> f0:(t -> unit) -> f1:(t -> unit) -> unit end end val shortest_path : (module Weighted01DirectedGraph with type V...
08192d9d3a0e58fe8b53e7652598551a7590a0575b187a7ac3cec5065f736f54
eeng/shevek
rpc.cljs
(ns shevek.rpc (:require [ajax.core :refer [POST]] [shevek.reflow.core :refer [dispatch] :refer-macros [defevh]] [shevek.reflow.db :as db])) (defn loading? ([] (seq (db/get :loading))) ([key] (db/get-in [:loading key]))) (defn loading [db key] (assoc-in db [:loading key] true)) (defn ...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/cljs/shevek/rpc.cljs
clojure
(ns shevek.rpc (:require [ajax.core :refer [POST]] [shevek.reflow.core :refer [dispatch] :refer-macros [defevh]] [shevek.reflow.db :as db])) (defn loading? ([] (seq (db/get :loading))) ([key] (db/get-in [:loading key]))) (defn loading [db key] (assoc-in db [:loading key] true)) (defn ...
e2e3869c841dee5f0b7dec0eb25a87b03f422d811a27bc59609f64e2a76b1f62
si14/erl_json_test
erl_json_test.erl
-module(erl_json_test). -export([start/0]). -define(RESULTS_FILE, "results.csv"). -define(NUM_TESTS, 300). -define(PARSERS, [{"jsone", fun jsone:encode/1, fun jsone:decode/1}, {"yawsjson2", fun json2:encode/1, fun json2:decode/1}, {"jiffy", fun jiffy:encode/1, fun jiffy:decode/1}, {"m...
null
https://raw.githubusercontent.com/si14/erl_json_test/553f029a5dcefb8f7c8a0b101e6156a8903f8737/src/erl_json_test.erl
erlang
-module(erl_json_test). -export([start/0]). -define(RESULTS_FILE, "results.csv"). -define(NUM_TESTS, 300). -define(PARSERS, [{"jsone", fun jsone:encode/1, fun jsone:decode/1}, {"yawsjson2", fun json2:encode/1, fun json2:decode/1}, {"jiffy", fun jiffy:encode/1, fun jiffy:decode/1}, {"m...
9a5f6f41277bd6459ff0129375087eda209ce2b7de9c851f17feb7de07464b9a
plande/grand-scheme
loops.scm
(define-module (grand loops) #:use-module (grand define-keywords) #:use-module (grand function) #:use-module (grand examples) #:use-module (grand list) #:use-module (grand syntax) #:export (numbers) #:export-syntax (for collect)) ;; Python-style for-loop and list comprehensions ;; "make you a python for ...
null
https://raw.githubusercontent.com/plande/grand-scheme/c40cc25373789a437fdf5e49f47f5dd456f76faf/grand/loops.scm
scheme
Python-style for-loop and list comprehensions "make you a python for great bad" from end)
(define-module (grand loops) #:use-module (grand define-keywords) #:use-module (grand function) #:use-module (grand examples) #:use-module (grand list) #:use-module (grand syntax) #:export (numbers) #:export-syntax (for collect)) (define-syntax for (syntax-rules (in =>) ((for (key => value) in h...
e17e4bff28a880ab5ecf32dadd2d11cf40ded9b349041a0de51a088885e73e82
wavejumper/rehook
core.cljs
(ns rehook.core (:require ["react" :as react])) (defn use-state [initial-value] (react/useState initial-value)) (defn use-effect ([f] (react/useEffect f)) ([f deps] (react/useEffect f (to-array deps)))) (defn use-atom-fn [a getter-fn setter-fn] (let [[val set-val] (use-state (getter-fn @a))] ...
null
https://raw.githubusercontent.com/wavejumper/rehook/c1a4207918827f4b738cdad9a9645385e5e10ff4/rehook-core/src/rehook/core.cljs
clojure
(ns rehook.core (:require ["react" :as react])) (defn use-state [initial-value] (react/useState initial-value)) (defn use-effect ([f] (react/useEffect f)) ([f deps] (react/useEffect f (to-array deps)))) (defn use-atom-fn [a getter-fn setter-fn] (let [[val set-val] (use-state (getter-fn @a))] ...
aa39ee1528c038d6351736d337197f113e138e92bbdebca322fc4b559e88a66d
reborg/clojure-essential-reference
4.clj
(def libs (loaded-libs)) < 1 > # { clojure.core.protocols clojure.core.server clojure.edn ;; clojure.instant clojure.java.browse clojure.java.io clojure.java.javadoc ;; clojure.repl clojure.string clojure.uuid clojure.walk} (require '[clojure.data :refer [diff]]) (def nss (set (map ns-name (all-ns)))) ...
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OtherFunctions/VarsandNamespaces/refer%2Crefer-clojure%2Crequire%2Cloaded-libs%2Cuse%2Cimport/4.clj
clojure
clojure.instant clojure.java.browse clojure.java.io clojure.repl clojure.string clojure.uuid clojure.walk} [nil ; <3> < 4 > < 5 > clojure.repl clojure.string clojure.uuid clojure.walk}]
(def libs (loaded-libs)) < 1 > # { clojure.core.protocols clojure.core.server clojure.edn clojure.java.javadoc (require '[clojure.data :refer [diff]]) (def nss (set (map ns-name (all-ns)))) < 2 > clojure.instant clojure.java.javadoc
66ea5c69d640a4358b13bed89f5effb2cab390c4ef5f199d04690a227b332612
rtoy/cmucl
support.lisp
;;; support.lisp --- performance benchmarks for Common Lisp implementations ;; Author : < > Time - stamp : < 2004 - 08 - 01 emarsden > ;; ;; ;; The benchmarks consist of ;; - the benchmarks - some mathematical operations ( factorial , , CRC ) ;; - some bignum-intensive operations ;; - hashtable a...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/benchmarks/cl-bench/support.lisp
lisp
support.lisp --- performance benchmarks for Common Lisp implementations The benchmarks consist of - some bignum-intensive operations - hashtable and READ-LINE tests - CLOS tests - array, string and bitvector exercises (compile nil `(lambda () (dotimes (i ,(benchmark...
Author : < > Time - stamp : < 2004 - 08 - 01 emarsden > - the benchmarks - some mathematical operations ( factorial , , CRC ) (in-package :cl-bench) (defvar *version* "20040801") (defvar *benchmarks* '()) (defvar *benchmark-results* '()) (defvar *benchmark-file-directory* (merge-pathnames (make...
21da834c4d66cc1df2253361fb0f7c9a1479fdfa3ad12e0206b560cd085cce18
day8/re-com
box_test.cljs
(ns re-com.box-test (:require [cljs.test :refer-macros [is are deftest]] [reagent.core :as reagent] [re-com.box :as box])) (deftest test-flex-child-style (are [expected actual] (= expected actual) "initial" (:flex (box/flex-child-style "initial")) "auto" (:flex (box/flex...
null
https://raw.githubusercontent.com/day8/re-com/07451b1d19c59eb185548efe93e2d00b5d3eab89/test/re_com/box_test.cljs
clojure
(ns re-com.box-test (:require [cljs.test :refer-macros [is are deftest]] [reagent.core :as reagent] [re-com.box :as box])) (deftest test-flex-child-style (are [expected actual] (= expected actual) "initial" (:flex (box/flex-child-style "initial")) "auto" (:flex (box/flex...
109abd4fdca0a3a98b6784503ac184461eebc13eb8943b131c927df663f2d34b
exercism/babashka
project.clj
(defproject go-counting "0.1.0-SNAPSHOT" :description "go-counting exercise." :url "-counting" :dependencies [[org.clojure/clojure "1.10.0"]])
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/go-counting/project.clj
clojure
(defproject go-counting "0.1.0-SNAPSHOT" :description "go-counting exercise." :url "-counting" :dependencies [[org.clojure/clojure "1.10.0"]])
03cb550019d490aabf09fa050061af032f6dbb731bd43248af67e0d1817bb253
Clozure/ccl
x86-backend.lisp
-*- Mode : Lisp ; Package : CCL -*- ;;; Copyright 2005 - 2009 Clozure Associates ;;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; ;;; -2.0 ;;; ;;; Unless required by appl...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/compiler/X86/x86-backend.lisp
lisp
Package : CCL -*- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific la...
Copyright 2005 - 2009 Clozure Associates distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (next-nx-defops) (defvar *x862-specials* nil) (let* ((newsize (%i+ (next-nx-num-ops) 10)) (old *x862-specials*) (oldsize (length old))) (declare (fixnum newsize oldsize)...
ecd4cbefdcf36f2c9da5d67efe9eace1e5bbd5c13d5691bbe174c6ed2e1e5631
fragnix/fragnix
Network.Wai.Handler.Warp.Some.hs
# LANGUAGE Haskell98 # # LINE 1 " Network / Wai / Handler / Warp / Some.hs " # {-# LANGUAGE BangPatterns #-} module Network.Wai.Handler.Warp.Some ( Some , singleton , top , lookupWith , union , toList , prune ) where ---------------------------------------------------------------- | One ore more ...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Network.Wai.Handler.Warp.Some.hs
haskell
# LANGUAGE BangPatterns # --------------------------------------------------------------
# LANGUAGE Haskell98 # # LINE 1 " Network / Wai / Handler / Warp / Some.hs " # module Network.Wai.Handler.Warp.Some ( Some , singleton , top , lookupWith , union , toList , prune ) where | One ore more list to implement . data Some a = One !a Two or more deriving (Eq,Show) # INLIN...
373e10f3e32c62237f804cd2b5aca01d28224ddc5a6ca91b7aeafdb4b82a11f9
Licenser/ecrdt
vgcounter2.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2013 , Heinz Nikolaus Gies %%% @doc %%% An Implementation of the GCounter (grow only counter) CvRDT %%% allowing an unknown or changing set of masters masters using unique ID 's for identification . %%% @end Created : ...
null
https://raw.githubusercontent.com/Licenser/ecrdt/2024b465f4fdf3fb3d2a16679f9aee6c06e62ea4/src/vgcounter2.erl
erlang
------------------------------------------------------------------- @doc An Implementation of the GCounter (grow only counter) CvRDT allowing an unknown or changing set of masters masters using @end ------------------------------------------------------------------- =================================================...
@author < > ( C ) 2013 , Heinz Nikolaus Gies unique ID 's for identification . Created : 1 Jun 2013 by < > -module(vgcounter2). -behaviour(ecrdt). -ifdef(TEST). -include_lib("proper/include/proper.hrl"). -include_lib("eunit/include/eunit.hrl"). -endif. -export([type/0, is_a/1, new/0, value/1, inc...
4b43471f725fd8f40fe9a6d30d444e7fe1ff7409183155512aa1241dab8b3e7a
bytekid/mkbtt
uncurryx.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/processors/src/transformation/uncurryx.ml
ocaml
** OPENS ******************************************************************* ** MODULES ***************************************************************** ** TYPES ******************************************************************* ** GLOBALS ***************************************************************** ** FUNCTIONS...
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
9cdda43983c33168da5d7b045364e14b68786ddefa24394bb9e9e3626a0eb164
wilkerlucio/pathom-viz
trace_cards.cljs
(ns com.wsscode.pathom.viz.trace-cards (:require [com.wsscode.pathom.viz.trace :as trace] [nubank.workspaces.card-types.fulcro3 :as ct.fulcro] [nubank.workspaces.core :as ws] [nubank.workspaces.model :as wsm] [com.wsscode.pathom.connect :as pc] [com.wsscode....
null
https://raw.githubusercontent.com/wilkerlucio/pathom-viz/6bed1d2adf556655892213de2d50fbe2db3c5423/src/cards/com/wsscode/pathom/viz/trace_cards.cljs
clojure
(ns com.wsscode.pathom.viz.trace-cards (:require [com.wsscode.pathom.viz.trace :as trace] [nubank.workspaces.card-types.fulcro3 :as ct.fulcro] [nubank.workspaces.core :as ws] [nubank.workspaces.model :as wsm] [com.wsscode.pathom.connect :as pc] [com.wsscode....
019accf79695f25cc633a0fa7eada548ab12fd4db20574bc0280883f4bb3a049
tcsprojects/pgsolver
fearnleysubexp.ml
open Arg ;; open Tcsargs;; open Tcsbasedata;; open Paritygame;; open Stratimprgenerators;; type gamenode = DecLaneEven of int (*a*) | DecLaneOdd of int (*t*) | DecLaneRoot (*c*) | CycleNode of int * int (*d*) | CycleCenter of int (*e*) | CycleCenterBadEntry of int (*m*) | CycleCenterBadEn...
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/generators/policyiter/generators/fearnleysubexp.ml
ocaml
a t c d e m q u v w f g h k z x r s
open Arg ;; open Tcsargs;; open Tcsbasedata;; open Paritygame;; open Stratimprgenerators;; let symb_to_str = function DecLaneEven i -> "a" ^ string_of_int i | DecLaneOdd i -> "t" ^ string_of_int i | DecLaneRoot -> "c" | CycleNode (i,j) -> "d(" ^ string_of_int i ^ "," ^ string_of_int j ^ ")" | CycleCenter i -> "e" ^ s...
b86cfeda9a00ce70847941fcf4ad5b8787e99ca2ed0178e39cef99f9c2fcfd2e
DKurilo/hackerrank
findsingle.hs
-- find element that don't have pair in the given list in constant space and O(n) complexity module Main where findSingle :: [Int] -> Int findSingle ns = unadjust . foldl (\p x -> let x' = adjust x in if p `mod` x' == 0 then p `div` x' else p * x') 1 $ ns where bottom = mi...
null
https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/nothackerrank/findsingle.hs
haskell
find element that don't have pair in the given list in constant space and O(n) complexity
module Main where findSingle :: [Int] -> Int findSingle ns = unadjust . foldl (\p x -> let x' = adjust x in if p `mod` x' == 0 then p `div` x' else p * x') 1 $ ns where bottom = minimum ns top = maximum ns adjust x = x - bottom + 1 + top unadj...
660fdf5986ed185f22142139fd5551037b7d388a3f02c33156199053268c396b
puppetlabs/puppetdb
core.clj
(ns puppetlabs.puppetdb.core "PuppetDBs normal entry point. Dispatches to command line subcommands." (:require [clojure.string :as str] [puppetlabs.puppetdb.cli.util :refer [err-exit-status exit run-cli-cmd]])) (def usage-lines ["Available subcommands:" " version Display version in...
null
https://raw.githubusercontent.com/puppetlabs/puppetdb/b3d6d10555561657150fa70b6d1e609fba9c0eda/src/puppetlabs/puppetdb/core.clj
clojure
to print the version.
(ns puppetlabs.puppetdb.core "PuppetDBs normal entry point. Dispatches to command line subcommands." (:require [clojure.string :as str] [puppetlabs.puppetdb.cli.util :refer [err-exit-status exit run-cli-cmd]])) (def usage-lines ["Available subcommands:" " version Display version in...
1852724d776fdb478e4945fc7734e135a4aa9ddf38b2f2cc336d0397c2aa08f2
albertoruiz/easyVision
conic.hs
import Vision.GUI.Simple import Image import Contours(asSegments) import Util.Ellipses import Util.Geometry main = runIt $ clickPoints "conic" "--points" () (sh.fst) l = gjoin (Point 0.5 0) (Point 0 0.5) sh pts | length pts >= 5 = Draw [ drwpts , (color col . drawConic) c , color...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/vision/geom/conic.hs
haskell
import Vision.GUI.Simple import Image import Contours(asSegments) import Util.Ellipses import Util.Geometry main = runIt $ clickPoints "conic" "--points" () (sh.fst) l = gjoin (Point 0.5 0) (Point 0 0.5) sh pts | length pts >= 5 = Draw [ drwpts , (color col . drawConic) c , color...
d1b886d7f951a0156674fc316c82eeca606fe52f66df0baf850a3fab272ea6dc
SuYi1995/game_server
sup.erl
%%%------------------------------------------------------------------- %%% @author sy ( C ) 2019 , < COMPANY > %%% @doc %%% 节点监控树 %%% @end Created : 29 . 9月 2019 14:56 %%%------------------------------------------------------------------- -module(sup). -author("sy"). -behaviour(supervisor). %% API -export([start...
null
https://raw.githubusercontent.com/SuYi1995/game_server/b9a8574589075a1264c3d1f9a564d6d2ea8ae574/src/base/sys/sup.erl
erlang
------------------------------------------------------------------- @author sy @doc 节点监控树 @end ------------------------------------------------------------------- API Supervisor callbacks =================================================================== API functions ===========================================...
( C ) 2019 , < COMPANY > Created : 29 . 9月 2019 14:56 -module(sup). -author("sy"). -behaviour(supervisor). -export([start_link/0, start_link/1]). -export([init/1]). -define(SERVER, ?MODULE). -spec(start_link() -> {ok, Pid :: pid()} | ignore | {error, Reason :: term()}). start_link() -> supervisor:start_lin...
20e93b589b229478332e7eef5aa9a78603cbfb1aba8ee9680908344f8abd7b89
clojureverse/clojurians-log-app
slack_api.clj
(ns clojurians-log.slack-api (:require [co.gaiwan.slack.api.core :as slack] [clj-slack.channels :as slack-channels] [clj-slack.core :refer [slack-request stringify-keys]] [clj-slack.emoji :as slack-emoji] [clj-slack.users :as slack-users] [clojurians-log.app...
null
https://raw.githubusercontent.com/clojureverse/clojurians-log-app/8b3d7f24b6ddc2edb01ce702c118c0fba8b95190/src/clojurians_log/slack_api.clj
clojure
TODO: get rid of this global config access
(ns clojurians-log.slack-api (:require [co.gaiwan.slack.api.core :as slack] [clj-slack.channels :as slack-channels] [clj-slack.core :refer [slack-request stringify-keys]] [clj-slack.emoji :as slack-emoji] [clj-slack.users :as slack-users] [clojurians-log.app...
08e1a0aceffdc6f2dc317cf80bcc738ccf8690289fdbe9ad1837b25ea73fc92c
cs51project/ocaml-chess
server.ml
open Board open Engine (* Web server for user interface: * GUI is displayed via HTML and CSS on a browser, and AJAX * is used to transmit user moves to the chess engine. * * Adapted from moogle web server. *) let debug = false Read the command line arguments and return the * port number which OCamlChess s...
null
https://raw.githubusercontent.com/cs51project/ocaml-chess/6bafa77156cfd00aa3e30be2bb12880bfe74fc5b/server.ml
ocaml
Web server for user interface: * GUI is displayed via HTML and CSS on a browser, and AJAX * is used to transmit user moves to the chess engine. * * Adapted from moogle web server. A post request is encoded in URL form. This function extracts * the key-value pairs. Given a requested path, return the corres...
open Board open Engine let debug = false Read the command line arguments and return the * port number which OCamlChess should use for serving . * port number which OCamlChess should use for serving. *) let server_port = let args = Sys.argv in try int_of_string (Array.get args 1) with _ -> ...
f0066515ea5445e914b92f8fcb724ff02000966166afbfd6c6b2a50405879b90
arow-oss/goat-guardian
Password.hs
module GoatGuardian.Password where import Control.Monad.IO.Class (MonadIO, liftIO) import Crypto.Scrypt (EncryptedPass(EncryptedPass), Pass(Pass), encryptPassIO', getEncryptedPass, verifyPass') import Data.Text (Text) import Data.Text.Encoding (decodeUtf8With, encodeUtf8) import Data.Text.Encoding.Error (lenientDecod...
null
https://raw.githubusercontent.com/arow-oss/goat-guardian/85e25fe8d618a0707b54e0e25858429158d96f75/src/GoatGuardian/Password.hs
haskell
^ password ^ hashed password ^ password ^ hashed password
module GoatGuardian.Password where import Control.Monad.IO.Class (MonadIO, liftIO) import Crypto.Scrypt (EncryptedPass(EncryptedPass), Pass(Pass), encryptPassIO', getEncryptedPass, verifyPass') import Data.Text (Text) import Data.Text.Encoding (decodeUtf8With, encodeUtf8) import Data.Text.Encoding.Error (lenientDecod...
bd8c238bdb664ff77ab7d437c115033979f10aa6d9a793d317f91f9a7a434f9b
anoma/juvix
Error.hs
module Juvix.Compiler.Asm.Interpreter.Error where import Control.Exception qualified as Exception import GHC.Show import Juvix.Compiler.Asm.Interpreter.RuntimeState data RunError = RunError { _runErrorMsg :: Text, _runErrorState :: RuntimeState } makeLenses ''RunError instance Show RunError where show :: ...
null
https://raw.githubusercontent.com/anoma/juvix/f0ade4be7ca0159e9b953821618486816bf91035/src/Juvix/Compiler/Asm/Interpreter/Error.hs
haskell
module Juvix.Compiler.Asm.Interpreter.Error where import Control.Exception qualified as Exception import GHC.Show import Juvix.Compiler.Asm.Interpreter.RuntimeState data RunError = RunError { _runErrorMsg :: Text, _runErrorState :: RuntimeState } makeLenses ''RunError instance Show RunError where show :: ...
b10fc4bcef611bd16dce902801d87c528a258308f02db9515d6d65122d2bb403
libguestfs/virt-v2v
output_null.mli
virt - v2v * Copyright ( C ) 2009 - 2021 Red Hat Inc. * * 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 of the License , or * ( at your option ) any later ...
null
https://raw.githubusercontent.com/libguestfs/virt-v2v/7f16a93b424253d8c4c738c3c53b56598215689d/output/output_null.mli
ocaml
* [-o null] output mode.
virt - v2v * Copyright ( C ) 2009 - 2021 Red Hat Inc. * * 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 of the License , or * ( at your option ) any later ...
065425008ea28e96305667539607878ebb9029c9434b026a57fc8387da603c7d
Frama-C/Frama-C-snapshot
slicingActions.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/slicing/slicingActions.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
96cc2da16e33278787ce0baa1d5947d234ad63211cabc9966f89c26eaac7d547
processone/rtb
mod_xmpp_proxy65.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2002 - 2019 ProcessOne , SARL . All Rights Reserved . %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a cop...
null
https://raw.githubusercontent.com/processone/rtb/ede10174af8e135bc78df11ad7c68d242e6e6534/src/mod_xmpp_proxy65.erl
erlang
------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express o...
@author < > ( C ) 2002 - 2019 ProcessOne , SARL . 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(mod_xmpp_proxy65). -compile([{parse_transform, lager_transform}]). -behaviour(gen_server)...
f139157fe43db56f002a4bbdbc1fb6560a8970cffe1e37606be692650fe18eeb
mflatt/shrubbery-rhombus-0
set.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse "srcloc.rkt") "expression.rkt" "binding.rkt" (submod "annotation.rkt" for-class) "static-info.rkt" "map-ref-set-key.rkt" "call-result-key.rkt" "parse.r...
null
https://raw.githubusercontent.com/mflatt/shrubbery-rhombus-0/018867f02041c92369f3833efb5bc343982d9362/rhombus/private/set.rkt
racket
macro to optimize to an inline functional update
#lang racket/base (require (for-syntax racket/base syntax/parse "srcloc.rkt") "expression.rkt" "binding.rkt" (submod "annotation.rkt" for-class) "static-info.rkt" "map-ref-set-key.rkt" "call-result-key.rkt" "parse.r...
e9151f395efeb4a67582d944c2f59fe7211db7787d9d39462452423e5e3a7a7a
depressed-pho/HsOpenSSL
SSL.hs
# LANGUAGE ForeignFunctionInterface # module OpenSSL.SSL ( loadErrorStrings , addAllAlgorithms , libraryInit ) where foreign import ccall unsafe "SSL_load_error_strings" loadErrorStrings :: IO () foreign import ccall unsafe "HsOpenSSL_OpenSSL_add_all_algorithms" addAllAlgorithms ::...
null
https://raw.githubusercontent.com/depressed-pho/HsOpenSSL/9e6a2be8298a9cbcffdfff55eab90e1e497628c3/OpenSSL/SSL.hs
haskell
# LANGUAGE ForeignFunctionInterface # module OpenSSL.SSL ( loadErrorStrings , addAllAlgorithms , libraryInit ) where foreign import ccall unsafe "SSL_load_error_strings" loadErrorStrings :: IO () foreign import ccall unsafe "HsOpenSSL_OpenSSL_add_all_algorithms" addAllAlgorithms ::...
1880ff44663a81b462d20c591e2a7815f6b65689f23a8215a9e1fac55367b925
willf/lisp_dmap
micro-dmap.lisp
(in-package "DMAP") ;;------------------------------------------------------------------------------ ;; ;; File: MICRO-DMAP.LISP ;; Created: 10/19/94 Author : ;; ;; Description: Direct Memory Access Parsing. based on various versions of DMAP by . ;; ;;---------------------------------------...
null
https://raw.githubusercontent.com/willf/lisp_dmap/f3befb3fe7b409cd5127618dd3ca303a32cf59e8/Code/micro-dmap.lisp
lisp
------------------------------------------------------------------------------ File: MICRO-DMAP.LISP Created: 10/19/94 Description: Direct Memory Access Parsing. ------------------------------------------------------------------------------ ----------------------------------------------------------...
(in-package "DMAP") Author : based on various versions of DMAP by . (eval-when (load eval compile) (unless (find-package :dmap) (make-package :dmap))) (in-package :dmap) (use-package :tables) (use-package :frames) (export '(add-phrasal-pattern def-phrase def-phrases par...