_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
423c045ab7a7b06e4d313b3ae31d8c2a5d18d88b156917b4326cf96c69c223e4
input-output-hk/cardano-wallet
Resource.hs
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # -- | Copyright : © 2018 - 2020 IOHK -- License: Apache-2.0 -- -- A helper function for using the bracket pattern in code. -- module Test.Utils.Resource ( unBracket ) where import Prelude import Control.Monad.IO.Unlift ( MonadUnliftIO ) import GH...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/4dd33e7842f5cf3d33ffdfde35a3398504cc7dc0/lib/test-utils/src/Test/Utils/Resource.hs
haskell
| License: Apache-2.0 A helper function for using the bracket pattern in code. functions: "allocate" and "release". It almost goes without saying that you should always call "release" after "allocate", otherwise bad things will happen. It works by actually spawning a new thread responsible for the resource ...
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # Copyright : © 2018 - 2020 IOHK module Test.Utils.Resource ( unBracket ) where import Prelude import Control.Monad.IO.Unlift ( MonadUnliftIO ) import GHC.Stack ( HasCallStack ) import UnliftIO.Async ( async, race, waitCatch ) import Unlif...
b686992618f023f9b3675b2f8d6008e0fd4be768317df1e4db4386e98cb1486a
haskell-backpack/backpack-str
Char8.hs
# LANGUAGE Trustworthy # -- | Module : . ByteString . Char8 Copyright : ( c ) 2017 -- License : BSD-style -- Maintainer : -- Stability : unstable -- Portability : non-portable -- An adaptor module for " Data . ByteString . Char8 " which fulls the -- signature from the str-sig package. The i...
null
https://raw.githubusercontent.com/haskell-backpack/backpack-str/18c070d3b434593446f20d4206f0b607385a8acf/str-bytestring/Str/ByteString/Char8.hs
haskell
| License : BSD-style Maintainer : Stability : unstable Portability : non-portable signature from the str-sig package. The implementation of strings this module implements is a time and space-efficient implementation of byte vectors using packed Word8 arrays. This module provides character. This m...
# LANGUAGE Trustworthy # Module : . ByteString . Char8 Copyright : ( c ) 2017 An adaptor module for " Data . ByteString . Char8 " which fulls the an API which interprets the each word of the string as an 8 - b9 t clashes with " Prelude " functions . > import qualified . ByteString . Char8 as ...
87eb262e9e1fa046bb446a703b7fc58d9e43fd3bbec3e77ce1d436cd355ea9ff
marick/fp-oo
ts_add_and_make.clj
(ns solutions.ts-add-and-make (:use midje.sweet)) (load-file "sources/add-and-make.clj") (load-file "solutions/pieces/add-and-make-1a.clj") (fact (add (Point 1 2) (Point 3 5)) => (Point 4 7)) (load-file "solutions/pieces/add-and-make-1b.clj") (fact (add (Point 1 2) (Point 3 5)) => (Point 4 7)) (load-file "...
null
https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/test/solutions/ts_add_and_make.clj
clojure
(ns solutions.ts-add-and-make (:use midje.sweet)) (load-file "sources/add-and-make.clj") (load-file "solutions/pieces/add-and-make-1a.clj") (fact (add (Point 1 2) (Point 3 5)) => (Point 4 7)) (load-file "solutions/pieces/add-and-make-1b.clj") (fact (add (Point 1 2) (Point 3 5)) => (Point 4 7)) (load-file "...
144c00e9deb0f61c4b7a1eae7fa984acb2a189adf386ddc27b13b7ea0f01ebee
LexiFi/menhir
LR1Sigs.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/LR1Sigs.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
e39d55a2d15c740edbdeaa1bc75153cf3feddf43bf13af6f86bf46c159c9ff8e
epm/eper
redbugConsumer.erl
%%%------------------------------------------------------------------- %%% File : redbugConsumer.erl Author : Mats < locmacr@mwlx084 > %%% Description : %%% Created : 23 Jan 2007 by Mats < locmacr@mwlx084 > %%%------------------------------------------------------------------- -module(redbugConsumer). -exp...
null
https://raw.githubusercontent.com/epm/eper/c152d6dfea58d5ea7bdf99fc9217d8444ac6b327/src/redbugConsumer.erl
erlang
------------------------------------------------------------------- File : redbugConsumer.erl Description : -------------------------------------------------------------------
Author : Mats < locmacr@mwlx084 > Created : 23 Jan 2007 by Mats < locmacr@mwlx084 > -module(redbugConsumer). -export([init/1, terminate/1, tick/2, collectors/0,config/2]). -record(cld, {node}). -include("log.hrl"). collectors() -> [prfTrc]. init(Node) -> #cld{node = Node}. terminate(_LD) -> ok. tick(LD,_Data...
293126e148d900723e903fab94f7e08666118ad645145d9d0f4eae0f1c2300f7
vikram/lisplibraries
compiler.lisp
(in-package :weblocks) (export '(*custom-view-field-argument-compilers* view-argument-quoting-strategy defview)) ;;; Declarative view definition implementation (eval-when (:compile-toplevel :load-toplevel :execute) ;; Note, this is in a separate eval-when block so that recompiling ;; the block below won't res...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/weblocks-stable/src/views/view/compiler.lisp
lisp
Declarative view definition implementation Note, this is in a separate eval-when block so that recompiling the block below won't reset the parameter. :list, in which case argument is quoted but if it and :none, in which case see that variable for how those are transformed.
(in-package :weblocks) (export '(*custom-view-field-argument-compilers* view-argument-quoting-strategy defview)) (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *custom-view-field-argument-compilers* (make-hash-table) "A hash map of keywords, each mapped to a compilation function. W...
a889b5dc4ccb743e6134fab694ef004df89da0a0a6c0d5d48550c18a7eea015a
SjVer/Som-Lang
util.ml
open Span open ANSITerminal let has_reported = ref false let maybe_newline () = if !has_reported then prerr_newline () else has_reported := true let f = Printf.sprintf (* to be set to ReadFile.call *) let read_file_fn = ref (fun (""|_) -> assert false) let read_lines f = let source = !read_file_fn f in Stri...
null
https://raw.githubusercontent.com/SjVer/Som-Lang/e90996764dce09056557f6bc26aa158690003738/somc/lib/report/util.ml
ocaml
to be set to ReadFile.call print " lineno | " padding before "^~~~~" actual marking
open Span open ANSITerminal let has_reported = ref false let maybe_newline () = if !has_reported then prerr_newline () else has_reported := true let f = Printf.sprintf let read_file_fn = ref (fun (""|_) -> assert false) let read_lines f = let source = !read_file_fn f in String.split_on_char '\n' source typ...
86fe4910a807687931c75d79119fb6bc507919b437d4fee7f892bb9b459b311e
Sheinxy/Advent2022
day_15.hs
module Main where import Data.List data Sensor = Sensor { position :: (Int, Int), closest :: (Int, Int), dist :: Int} deriving (Show, Eq) parseSensor :: String -> Sensor parseSensor s = Sensor (xs, ys) (xc, yc) (abs (xc - xs) + abs (ys - yc)) where [_, _, x1, y1, _, _, _, _, x2, y2] = words s [xs, ys, ...
null
https://raw.githubusercontent.com/Sheinxy/Advent2022/ea39d55fa89fe77252b471c6d9501dc55c9e3510/Day_15/day_15.hs
haskell
module Main where import Data.List data Sensor = Sensor { position :: (Int, Int), closest :: (Int, Int), dist :: Int} deriving (Show, Eq) parseSensor :: String -> Sensor parseSensor s = Sensor (xs, ys) (xc, yc) (abs (xc - xs) + abs (ys - yc)) where [_, _, x1, y1, _, _, _, _, x2, y2] = words s [xs, ys, ...
392357133e2972f1beb6ed0ce880a8af0ae64910e7d71d12b02c41605ba919f8
gren-lang/compiler
Effects.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -Wall # module Canonicalize.Effects ( canonicalize, checkPayload, ) where import AST.Canonical qualified as Can import AST.Source qualified as Src import AST.Utils.Type qualified as Type import Canonicalize.Environment qualified as Env import Canonicalize.Type ...
null
https://raw.githubusercontent.com/gren-lang/compiler/5ec14c10db01438d7dd51539908abb9a377090e6/compiler/src/Canonicalize/Effects.hs
haskell
# LANGUAGE OverloadedStrings # RESULT CANONICALIZE CANONICALIZE PORT VERIFY MANAGER CHECK PAYLOAD TYPES
# OPTIONS_GHC -Wall # module Canonicalize.Effects ( canonicalize, checkPayload, ) where import AST.Canonical qualified as Can import AST.Source qualified as Src import AST.Utils.Type qualified as Type import Canonicalize.Environment qualified as Env import Canonicalize.Type qualified as Type import Data.Folda...
9b58effe21d4c8c4e478342da11ed3a22a2ba241c12dca09c56512fd17968b77
chrovis/cljam
gzi.clj
(ns cljam.io.util.bgzf.gzi (:require [cljam.util :as util]) (:import [java.nio ByteBuffer ByteOrder] [java.nio.channels FileChannel FileChannel$MapMode] [java.nio.file Paths OpenOption StandardOpenOption])) (defn- read-full ^ByteBuffer [f] (with-open [c (FileChannel/open (P...
null
https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/src/cljam/io/util/bgzf/gzi.clj
clojure
(ns cljam.io.util.bgzf.gzi (:require [cljam.util :as util]) (:import [java.nio ByteBuffer ByteOrder] [java.nio.channels FileChannel FileChannel$MapMode] [java.nio.file Paths OpenOption StandardOpenOption])) (defn- read-full ^ByteBuffer [f] (with-open [c (FileChannel/open (P...
9394b0bc1185a5843a3e6a7aabca40a0cde31d3b57e90c3a9d62fb38006cf9ce
jyh/metaprl
itt_eta.mli
extends Itt_dfun open Basic_tactics rewrite reduceEta (x: 'A -> 'B['x]) : ('f in (x: 'A -> 'B['x])) --> lambda{x. 'f 'x} <--> 'f topval reduceEtaC : term -> conv
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/extensions/base/itt_eta.mli
ocaml
extends Itt_dfun open Basic_tactics rewrite reduceEta (x: 'A -> 'B['x]) : ('f in (x: 'A -> 'B['x])) --> lambda{x. 'f 'x} <--> 'f topval reduceEtaC : term -> conv
3e6a9ec45c906c2fa57a037fa3d301184da9de21bb5dd2b731991cf65401e973
coq/coq
constrexpr.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/41555f5a227b2d0d658b0c5a7fe4593faca61cf6/interp/constrexpr.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
50ba0c06006b185fe4c03aafe2e93e26bff5fe7a1efd8c8eadf08d2a4eb4bfa1
wavewave/hoodle
Verbatim.hs
-- {-# OPTIONS_GHC -fplugin Plugin.CheckImports #-} -- | -- Module : Hoodle.Util.Verbatim Copyright : ( c ) 2011 - 2013 -- -- License : BSD3 Maintainer : < > -- Stability : experimental Portability : GHC module Hoodle.Util.Verbatim where import Language.Haskell.TH.Lib (litE, stringL) im...
null
https://raw.githubusercontent.com/wavewave/hoodle/fa7481d14a53733b2f6ae9debc95357d904a943c/core/src/Hoodle/Util/Verbatim.hs
haskell
{-# OPTIONS_GHC -fplugin Plugin.CheckImports #-} | Module : Hoodle.Util.Verbatim License : BSD3 Stability : experimental
Copyright : ( c ) 2011 - 2013 Maintainer : < > Portability : GHC module Hoodle.Util.Verbatim where import Language.Haskell.TH.Lib (litE, stringL) import Language.Haskell.TH.Quote (QuasiQuoter (..)) verbatim :: QuasiQuoter verbatim = QuasiQuoter { quoteExp = litE . stringL, quotePat = ...
6643d597aa36af9d0a54583eb538653ef7c23870c582ab6ba07de6fd0e70d3e6
jepsen-io/maelstrom
kafka_single_node.clj
#!/usr/bin/env bb (deps/add-deps '{:deps {slingshot/slingshot {:mvn/version "0.12.2"}}}) (ns maelstrom.demo.kafka "A kafka-like stream processing system which stores data entirely in a single node's memory." (:require [cheshire.core :as json] [slingshot.slingshot :refer [try+ throw+]]) (:import (...
null
https://raw.githubusercontent.com/jepsen-io/maelstrom/c9f8b7f4c9e2aebb6294fe747bd914f04db3f2a0/demo/clojure/kafka_single_node.clj
clojure
Send these back to the client as error messages And send a general-purpose error message back to the client And the current state of the queues What messages can we deliver? What's unconsumed for this key? Go!
#!/usr/bin/env bb (deps/add-deps '{:deps {slingshot/slingshot {:mvn/version "0.12.2"}}}) (ns maelstrom.demo.kafka "A kafka-like stream processing system which stores data entirely in a single node's memory." (:require [cheshire.core :as json] [slingshot.slingshot :refer [try+ throw+]]) (:import (...
cb6399bbbdf6fe9bfde4a5752fcb3110e79eddacd8f7471d5442544f0bb1c5a7
mirage/mirage
filegen.ml
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice an...
null
https://raw.githubusercontent.com/mirage/mirage/479e40ae6aa1efe18fb1cd199cec0d5ee1f46f26/lib/functoria/filegen.ml
ocaml
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice an...
3492a1b3378bd3908b09d0b11311decaa155a5c9e7b52e811ee066cdab8deba3
thheller/shadow-cljs
dev_setup.clj
(ns demo.dev-setup (:require [clojure.core.async :as async :refer (go <!)] [shadow.cljs.devtools.api :as shadow] [shadow.cljs.devtools.server.worker :as worker] )) (defn handle-watch-message [{:keys [type] :as msg}] (prn [:watch-msg type])) (defn start {:shadow/requires-server true} ...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/dev/demo/dev_setup.clj
clojure
(ns demo.dev-setup (:require [clojure.core.async :as async :refer (go <!)] [shadow.cljs.devtools.api :as shadow] [shadow.cljs.devtools.server.worker :as worker] )) (defn handle-watch-message [{:keys [type] :as msg}] (prn [:watch-msg type])) (defn start {:shadow/requires-server true} ...
e7a9f00e3f06ce0d9f6bab4609cbdd9e2e57480caba808ced0c7a456b6ca1878
ranjitjhala/haddock-annot
Utils.hs
----------------------------------------------------------------------------- -- | -- Module : Haddock.Backends.Html.Util Copyright : ( c ) 2003 - 2006 , 2006 - 2009 , 2010 -- License : BSD-like -- -- Maintainer : -- Stability : experimental...
null
https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/haddock-2.9.3/src/Haddock/Backends/Xhtml/Utils.hs
haskell
--------------------------------------------------------------------------- | Module : Haddock.Backends.Html.Util License : BSD-like Maintainer : Stability : experimental Portability : portable --------------------------------------------------------------------------- | Make an element that a...
Copyright : ( c ) 2003 - 2006 , 2006 - 2009 , 2010 module Haddock.Backends.Xhtml.Utils ( renderToString, namedAnchor, linkedAnchor, spliceURL, groupId, (<+>), char, nonEmpty, keyword, punctuate, braces, brackets, pabrackets, parens, parenLis...
a712a09d520a1279f862efe6968ed20cdc46413981163cf952c7bb9e48e6d02d
ucsd-progsys/dsolve
sys.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/stdlib/sys.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 GNU Library General Public License , with $ I d : sys.mli , v 1.49 2007/02/26 1...
23717c2f4505252e20592cade7bf13017a7ecd5bbe0cd7d21eaa5546f5cec12d
yurug/ocaml4.04.0-copatterns
plugin_ref.ml
let x = ref 0 let () = Api.reg_mod "Plugin_ref"; Api.add_cb (fun () -> Printf.printf "current value for ref = %i\n" !x; incr x )
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/testsuite/tests/lib-dynlink-native/plugin_ref.ml
ocaml
let x = ref 0 let () = Api.reg_mod "Plugin_ref"; Api.add_cb (fun () -> Printf.printf "current value for ref = %i\n" !x; incr x )
82f412971fad4e3661f4217ee6d590406140bcdf449cdc2a26b7354b67d2720d
ublubu/shapes
Benchmark.hs
# LANGUAGE MagicHash # module Physics.Contact.Benchmark where import GHC.Types (Double (D#)) import Criterion.Main import qualified Physics.Contact.ConvexHull as OC import qualified Physics.Contact.SAT as OS import qualified Physics.Linear as OL import qualifi...
null
https://raw.githubusercontent.com/ublubu/shapes/fa5d959c17224a851d517826deeae097f1583392/shapes/bench/Physics/Contact/Benchmark.hs
haskell
^ center x ^ center y ^ width ^ height
# LANGUAGE MagicHash # module Physics.Contact.Benchmark where import GHC.Types (Double (D#)) import Criterion.Main import qualified Physics.Contact.ConvexHull as OC import qualified Physics.Contact.SAT as OS import qualified Physics.Linear as OL import qualifi...
5b01f643d005940b4b0df609630a1bb9cb99d8fd69ed66bcac35c7ea413bd878
ananthakumaran/eopl
32.clj
;; Extend the language call-by-reference to have procedures of ;; multiple arguments ;; see eopl.core.call-by-ref-lang
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/chap_4/32.clj
clojure
Extend the language call-by-reference to have procedures of multiple arguments see eopl.core.call-by-ref-lang
b46a8407fef71b9646ddaa3cb3acfeb8c71ffbd77408672efa5b204486826596
7theta/via
core.cljc
;; Copyright (c) 7theta. All rights reserved. ;; The use and distribution terms for this software are covered by the MIT License ( ) which can also be ;; found in the LICENSE file at the root of this distribution. ;; ;; By using this software in any fashion, you are agreeing to be bound by ;; the terms o...
null
https://raw.githubusercontent.com/7theta/via/a66fb48647e5e3df192864d388def6a9c4b656b9/src/via/core.cljc
clojure
Copyright (c) 7theta. All rights reserved. The use and distribution terms for this software are covered by the found in the LICENSE file 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,...
MIT License ( ) which can also be (ns via.core (:require [via.endpoint :as e] [via.events :as ve] [via.subs :as vs] [signum.events :as se] [signum.subs :as ss])) (defn subscribe ([query] (if (ss/sub? (first query)) (ss/subscribe query) (subscribe q...
fcaadb6bb51f3783b1bc1cdc209e6b52360e0f5bb0e46e054b2560babeed14fd
baryluk/ex11
swEmacs.erl
-module(swEmacs). Copyright ( C ) 2004 by ( ) %% All rights reserved. %% The copyright holder hereby grants the rights of usage, distribution %% and modification of this software to everyone and for any purpose, as %% long as this license and the copyright notice above are preserved and %% not modified. There is ...
null
https://raw.githubusercontent.com/baryluk/ex11/be8abc64ab9fb50611f93d6631fc33ffdee08fdb/widgets/swEmacs.erl
erlang
All rights reserved. The copyright holder hereby grants the rights of usage, distribution and modification of this software to everyone and for any purpose, as long as this license and the copyright notice above are preserved and not modified. There is no warranty for this software. This is a basic pico text edit...
-module(swEmacs). Copyright ( C ) 2004 by ( ) started 2004 - 01 - 22 by ( ) 3456789012345678901234567890123456789012345678901234567890123456789012345678 3456789012345678901234567890123456789012345678901234567890123456789012345 -export([make/7]). -import(sw, [xStart/1]). -import(ex11_lib, [rpc/2]). -impo...
5511e72f5d410b79be6178d9dd392361e68e4dbc6ec3f90424b23bf7724b2448
tweag/servant-oauth2
Main.hs
module Main where import Servant.OAuth2.Examples.Authorisation qualified as Authorisation main :: IO () main = Authorisation.main
null
https://raw.githubusercontent.com/tweag/servant-oauth2/3db27f3a06b4f39f12798401eeabdc7414f30021/servant-oauth2-examples/example-auth/Main.hs
haskell
module Main where import Servant.OAuth2.Examples.Authorisation qualified as Authorisation main :: IO () main = Authorisation.main
830cb708f484268fa95b89ff3a653404853708f928e92c8694f0093b4491cc51
lispnik/cl-http
xml-error.lisp
;;; -*- package: "XML-PARSER"; -*- " <DOCUMENTATION> <COPYRIGHT HREF='defsystem.lisp|root().descendant(1,COPYRIGHT)'/> <DESCRIPTION> a framework for validation and form constraints. </DESCRIPTION> </DOCUMENTATION> " (in-package "XML-PARSER") ;; xml conditions ;; note that several slots duplicate the slots fr...
null
https://raw.githubusercontent.com/lispnik/cl-http/84391892d88c505aed705762a153eb65befb6409/contrib/janderson/xml-1999-05-03/xml-error.lisp
lisp
-*- package: "XML-PARSER"; -*- xml conditions note that several slots duplicate the slots from cl conditions. this is to ensure uniform treatment of warning and conditions. conditions are generated with either the condition initargs, or with a , string, which then serves as a supplementary message. the generic f...
" <DOCUMENTATION> <COPYRIGHT HREF='defsystem.lisp|root().descendant(1,COPYRIGHT)'/> <DESCRIPTION> a framework for validation and form constraints. </DESCRIPTION> </DOCUMENTATION> " (in-package "XML-PARSER") (defClass xml-condition (condition) ((stream :initform nil :initarg :stream :reader condition-str...
fa131060692c36ac4349d97a361759d0f2226aa7de8034021b332a4307dabe8a
camllight/camllight
asynt.ml
#open "prop";; #open "lexuniv";; let rec lire_proposition f = proposition5 f and proposition0 = function | [< 'Ident s >] -> Variable s | [< 'MC "vrai" >] -> Vrai | [< 'MC "faux" >] -> Faux | [< 'MC "("; lire_proposition p; 'MC ")" >] -> p and proposition1 = function | [< 'MC "non"; proposition0 p >] -> No...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/examples/demonstr/asynt.ml
ocaml
#open "prop";; #open "lexuniv";; let rec lire_proposition f = proposition5 f and proposition0 = function | [< 'Ident s >] -> Variable s | [< 'MC "vrai" >] -> Vrai | [< 'MC "faux" >] -> Faux | [< 'MC "("; lire_proposition p; 'MC ")" >] -> p and proposition1 = function | [< 'MC "non"; proposition0 p >] -> No...
083a349bd215eedee7100b63329a7fddcf2fddc26025a2c01b529945aa96a56c
GaloisInc/saw-core
Constants.hs
| Module : Verifier . SAW.Prelude . Constants Copyright : Galois , Inc. 2012 - 2015 License : : Stability : experimental Portability : non - portable ( language extensions ) Module : Verifier.SAW.Prelude.Constants Copyright : Galois, Inc. 2012-2015 License : BSD3 Maintain...
null
https://raw.githubusercontent.com/GaloisInc/saw-core/ea914a9eea8e484189ee6e4c4dcdfc7db831d987/saw-core/src/Verifier/SAW/Prelude/Constants.hs
haskell
| Module : Verifier . SAW.Prelude . Constants Copyright : Galois , Inc. 2012 - 2015 License : : Stability : experimental Portability : non - portable ( language extensions ) Module : Verifier.SAW.Prelude.Constants Copyright : Galois, Inc. 2012-2015 License : BSD3 Maintain...
a84f269d80b595c1b0d202b8d2ad99df76daa222b04fda567ecdddbbf80a3c0a
mzp/coq-for-ipad
program_loading.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/debugger/program_loading.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Objective Caml port by and 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 . ...
5dd373bacc5bb35354c055ef2a25cd0e86790dc42ffaa95d2a3774028a567be2
darrenhaken/todo-backend-clojure
handler.clj
(ns todo-backend-clojure.handler (:require [compojure.core :refer :all] [compojure.route :as route] [ring.adapter.jetty :as ring] [ring.middleware.json :as json-middleware] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [todo-backend-clojure.todo_routes :as routes] [todo-ba...
null
https://raw.githubusercontent.com/darrenhaken/todo-backend-clojure/b9645121317bbe2eaf3359d5a0e3bcaf780c8a18/src/todo_backend_clojure/handler.clj
clojure
(ns todo-backend-clojure.handler (:require [compojure.core :refer :all] [compojure.route :as route] [ring.adapter.jetty :as ring] [ring.middleware.json :as json-middleware] [ring.middleware.defaults :refer [wrap-defaults api-defaults]] [todo-backend-clojure.todo_routes :as routes] [todo-ba...
9a709214ced68dac60e7a1878ed98f32112cfe84062afe9ab8aa330a11110a56
dktr0/estuary
Request.hs
# LANGUAGE DeriveGeneric # This type represents all messages that an Estuary client can send to an Estuary server via WebSockets . This also includes module Estuary.Types.Request where import Data.Time.Clock import Data.Text import GHC.Generics import Data.Aeson import Data.Maybe (mapMaybe) import D...
null
https://raw.githubusercontent.com/dktr0/estuary/c08a4790533c983ba236468e0ae197df50f2109f/common/src/Estuary/Types/Request.hs
haskell
text is browser userAgent field, issued at client launch (by alternateWebSocket) ensemble username location password (username, location, and password can be "") for re-authenticating when websocket connections close and re-open ownerPassword Bool represents whether new definition should be delivered to render...
# LANGUAGE DeriveGeneric # This type represents all messages that an Estuary client can send to an Estuary server via WebSockets . This also includes module Estuary.Types.Request where import Data.Time.Clock import Data.Text import GHC.Generics import Data.Aeson import Data.Maybe (mapMaybe) import D...
8b6de3216f3e08820e050b342472443a4daceaf7263981647a882014c3cc09ca
BinaryAnalysisPlatform/FrontC
ctoxml.ml
* $ Id$ * Copyright ( c ) 2003 , < > * * Pretty printer of XML document . * $Id$ * Copyright (c) 2003, Hugues Cassé <> * * Pretty printer of XML document. *) * Transform a C abstract syntax into XML document . *) open Cabs let rec convert_storage store def = match store with NO_...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/FrontC/c167bb8bb82c7f90afa069bd0c49afe57374d5df/frontc/ctoxml.ml
ocaml
* $ Id$ * Copyright ( c ) 2003 , < > * * Pretty printer of XML document . * $Id$ * Copyright (c) 2003, Hugues Cassé <> * * Pretty printer of XML document. *) * Transform a C abstract syntax into XML document . *) open Cabs let rec convert_storage store def = match store with NO_...
fe30fe8cc50e7bcef6571ff28b6aa1d3017b77831ed977cfeb4101ea9a11e2a5
lehins/primal
UVector.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE RoleAnnotations # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFam...
null
https://raw.githubusercontent.com/lehins/primal/c752d8788cb9597224d6f7e6a5163473a74b7b5a/primal-memory/src/Primal/Memory/UVector.hs
haskell
# LANGUAGE RankNTypes # | Module : Primal.Memory.UVector License : BSD3 Stability : experimental Portability : non-portable , fromBytesUVector , toBytesUVector , fromUArrayUVector , toUArrayUVector , toMBytesUMVector , toUMArrayUMVector , castUMVector , allocUMVector , allocPinnedUMVector , a...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MagicHash # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RoleAnnotations # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # Copyright : ( c...
19721ef5906ea52972b271ff11c1d874e2920a8b6e2796ae68fb490d640b9f89
pykello/racket-graphviz
info.rkt
#lang info (define collection "graphviz") (define deps '("base" "pict-lib" "draw-lib" "metapict")) (define build-deps '("scribble-lib" "pict-doc" "racket-doc" "rackunit-lib")) (define scribblings '(("scribblings/...
null
https://raw.githubusercontent.com/pykello/racket-graphviz/9486fa524e22e2a04ae20a36b0c1c426716981b5/info.rkt
racket
#lang info (define collection "graphviz") (define deps '("base" "pict-lib" "draw-lib" "metapict")) (define build-deps '("scribble-lib" "pict-doc" "racket-doc" "rackunit-lib")) (define scribblings '(("scribblings/...
ad48fcb30ffb7d7f6e311f726cf66901b3c6b61fc4c880ac50cdd8c0f717b28d
shentufoundation/deepsea
ExpCintptr.ml
open AST open Cop open Ctypes open Integers open MachineModel type expr = | Econst_int of Int.int * coq_type | Econst_int256 of Int256.int * coq_type | Etempvar of ident * coq_type | Esload of expr * coq_type | Emload of expr * coq_type | Eaddr of expr * coq_type | Eunop of unary_operation * expr * coq_type | Ebinop o...
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/ExpCintptr.ml
ocaml
open AST open Cop open Ctypes open Integers open MachineModel type expr = | Econst_int of Int.int * coq_type | Econst_int256 of Int256.int * coq_type | Etempvar of ident * coq_type | Esload of expr * coq_type | Emload of expr * coq_type | Eaddr of expr * coq_type | Eunop of unary_operation * expr * coq_type | Ebinop o...
618cd5794f553c4c7fdad317a07bf0e501e2490cd30f5edb16d3697c8985bdb1
samrushing/irken-compiler
t_datatype5.scm
;; -*- Mode: Irken -*- (include "lib/core.scm") (include "lib/pair.scm") (include "lib/string.scm") ;; test records in datatypes (datatype thing (:a {x=int y=char}) (:b {x=bool y=string}) ) (datatype thing2 (:t {x=int y={a=int b=int c=int}})) (define (test) (thing:a {x=3 y=#\A}) ) (printn (test)) (pri...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_datatype5.scm
scheme
-*- Mode: Irken -*- test records in datatypes
(include "lib/core.scm") (include "lib/pair.scm") (include "lib/string.scm") (datatype thing (:a {x=int y=char}) (:b {x=bool y=string}) ) (datatype thing2 (:t {x=int y={a=int b=int c=int}})) (define (test) (thing:a {x=3 y=#\A}) ) (printn (test)) (printn (thing2:t {x=5 y={a=3 b=3 c=6}}))
40e32fb6b23d583cefc3f1d56f82012ae82229324ae390b6bd329fc08ffa2152
kunstmusik/score
quantizer.clj
(ns ^{ :author "Steven Yi" :doc "Quantize. Based on Andre Bartetzki's CMask." } score.mask.quantizer (:require [score.core :refer [wrap-generator]]) ) Note : Documentation for quantize comes from CMask Manual (defn quantize "A quantizer attracts the results of the preceeding modul onto a quanti...
null
https://raw.githubusercontent.com/kunstmusik/score/87b532ec2e3e273f077be9bdd878427a25d0534c/src/main/score/mask/quantizer.clj
clojure
(ns ^{ :author "Steven Yi" :doc "Quantize. Based on Andre Bartetzki's CMask." } score.mask.quantizer (:require [score.core :refer [wrap-generator]]) ) Note : Documentation for quantize comes from CMask Manual (defn quantize "A quantizer attracts the results of the preceeding modul onto a quanti...
c0c4f4aba675837c050a808f710c1264c2ef27563aaa4c8d502b424f8a15c12a
FlowerWrong/mblog
stimer.erl
%% --- Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . %% Copyrights apply to this code. It may not be used to create training material, %% courses, books, articles, and the like. Contact us if you are in doubt. %% We make no guarantees that this code is fit for...
null
https://raw.githubusercontent.com/FlowerWrong/mblog/3233ede938d2019a7b57391405197ac19c805b27/categories/erlang/demo/jaerlang2_code/stimer.erl
erlang
--- Copyrights apply to this code. It may not be used to create training material, courses, books, articles, and the like. Contact us if you are in doubt. We make no guarantees that this code is fit for any purpose. Visit for more book information. ---
Excerpted from " Programming Erlang , Second Edition " , published by The Pragmatic Bookshelf . -module(stimer). -export([start/2, cancel/1]). start(Time, Fun) -> spawn(fun() -> timer(Time, Fun) end). cancel(Pid) -> Pid ! cancel. timer(Time, Fun) -> receive cancel -> void after Time -> Fun() ...
4449c2bd76ca421ee0b230e37a564d180b64dd907318971f43509cba58e997a6
digitallyinduced/ihp
Edit.hs
module IHP.IDE.SchemaDesigner.View.Policies.Edit where import IHP.ViewPrelude import IHP.IDE.SchemaDesigner.Types import qualified IHP.IDE.SchemaDesigner.Compiler as Compiler import IHP.IDE.ToolServer.Types import IHP.IDE.SchemaDesigner.View.Layout data EditPolicyView = EditPolicyView { statements :: [Statement] ...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/756c95328bdfea3bd8bc7d087a8d45303da40a60/IHP/IDE/SchemaDesigner/View/Policies/Edit.hs
haskell
> >
module IHP.IDE.SchemaDesigner.View.Policies.Edit where import IHP.ViewPrelude import IHP.IDE.SchemaDesigner.Types import qualified IHP.IDE.SchemaDesigner.Compiler as Compiler import IHP.IDE.ToolServer.Types import IHP.IDE.SchemaDesigner.View.Layout data EditPolicyView = EditPolicyView { statements :: [Statement] ...
75cd81374130b6b8cf2b6e85265b79daecd62dd98dec504699774a292eaf122f
evilmartians/foundry
pass_manager.ml
open Unicode.Std type t = | Sequential of seq_passes | Worklist of dep_passes and seq_passes = { mutable passes : (string * (Ssa.capsule -> unit)) list; } and dep_passes = { mutable capsule_passes : (string * (Ssa.capsule -> unit)) list; mutable function_passes : (string * (Ssa.capsule -> Ssa.name ->...
null
https://raw.githubusercontent.com/evilmartians/foundry/ce947c7dcca79ab7a7ce25870e9fc0eb15e9c2bd/src/transforms/pass_manager.ml
ocaml
Set a sigint signal to allow premature termination. Initially, put all functions in the worklist. Repeat until the whole program converges. Converge all function passes (inference, etc). Perform all capsule passes (specialization, etc). Restore the old signal. This also makes the pass manager reentr...
open Unicode.Std type t = | Sequential of seq_passes | Worklist of dep_passes and seq_passes = { mutable passes : (string * (Ssa.capsule -> unit)) list; } and dep_passes = { mutable capsule_passes : (string * (Ssa.capsule -> unit)) list; mutable function_passes : (string * (Ssa.capsule -> Ssa.name ->...
62a90786cd2ed9e80e37aaca330863213696b1266e897cd7c6167422d1997ff9
input-output-hk/iohk-monitoring-framework
Arbitrary.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Cardano.BM.Arbitrary () where import Data.Time.Clock.POSIX (posixSecondsToUTCTime) import Cardano.BM.Data.Aggregated import Cardano.BM.Dat...
null
https://raw.githubusercontent.com/input-output-hk/iohk-monitoring-framework/066f7002aac5a0efc20e49643fea45454f226caa/iohk-monitoring/test/Cardano/BM/Arbitrary.hs
haskell
Not a very good choice for an arbitary timestamp. TODO: fill this in later. , AggregatedMessage [(Text, Aggregated)] , Command CommandValue
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wno - orphans # module Cardano.BM.Arbitrary () where import Data.Time.Clock.POSIX (posixSecondsToUTCTime) import Cardano.BM.Data.Aggregated import Cardano.BM.Dat...
3eeada73be3cd0ac10ac057f27e13d28ae4a9e80b308ae3b8b557d2825fb8d28
rfkm/zou
proto.clj
(ns zou.finder.proto (:refer-clojure :exclude [find])) (defprotocol Finder (find [this v])) (extend-protocol Finder clojure.lang.APersistentMap (find [m v] (get m v)) clojure.lang.Fn (find [f v] (find (f) v)))
null
https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/lib/src/zou/finder/proto.clj
clojure
(ns zou.finder.proto (:refer-clojure :exclude [find])) (defprotocol Finder (find [this v])) (extend-protocol Finder clojure.lang.APersistentMap (find [m v] (get m v)) clojure.lang.Fn (find [f v] (find (f) v)))
ab7b3dd265a0baad86b80d4e1b8c66b1cdacbd3da5398f20ed98665ee544dd99
mirage/irmin
test_existing_stores.ml
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
null
https://raw.githubusercontent.com/mirage/irmin/0a6fbbeb1a4d132ef25a09a41c904cc7942bae5b/test/irmin-pack/test_existing_stores.ml
ocaml
the correct hash starts with '9', modified it to have an incorrect hash on disk. consider `Idle as success because gc can finalise during commit as well
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
b5a84a4b24232a3429692bdd3fc1b7cb5e8be6dd187c2b99e4b6a3ff78fd5ca5
wilkerlucio/pathom
async_cljs.clj
(ns com.wsscode.common.async-cljs "DEPRECATED: please use com.wsscode.async.async-cljs instead" (:require [cljs.core.async :as async])) (defmacro if-cljs [then else] (if (:ns &env) then else)) (defmacro go-catch [& body] `(async/go (try ~@body (catch :default e# e#)))) (defmacro <!p ...
null
https://raw.githubusercontent.com/wilkerlucio/pathom/4ec25055d3d156241e9174d68ec438c93c971b9b/src/com/wsscode/common/async_cljs.clj
clojure
(ns com.wsscode.common.async-cljs "DEPRECATED: please use com.wsscode.async.async-cljs instead" (:require [cljs.core.async :as async])) (defmacro if-cljs [then else] (if (:ns &env) then else)) (defmacro go-catch [& body] `(async/go (try ~@body (catch :default e# e#)))) (defmacro <!p ...
efd847204ed426cf4fdb758cb10079d503a11998112fb7f53c2be00558d5118c
xapi-project/message-switch
fe_argv.ml
* Copyright ( C ) Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/message-switch/5b5d2d75dfa7e6422d6235e9ab9d2027c11a6ca5/forkexecd/lib/fe_argv.ml
ocaml
state that we incrementally change * command line in rev order * open files This is a state monad
* Copyright ( C ) Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking described in file LI...
a4cba286c49736b43511125af206b4cd1a86cf11270b0f21efc3d734fe2e61a8
arnabsen1729/Lisp-Notes
numbers.lisp
(print 123 ) ; integer (print 3/7 ) ; ratio floating - point number one in default precision (print 1.0e0 ) ; floating-point number (print 1.0d0 ) ; the floating-point number one in "double" precision (print 1.0e-4) ; the floating-point (print +42 ) ; the integer positive (print -42 ) ; t...
null
https://raw.githubusercontent.com/arnabsen1729/Lisp-Notes/daa76434ae42d3b75fb4ee16a4bec2e6ac1deb28/numbers.lisp
lisp
integer ratio floating-point number the floating-point number one in "double" precision the floating-point the integer positive the integer negative
floating - point number one in default precision the ratio negative one - quarter another way to write negative one - quarter another way to write the integer will be evaluated and displayed as 123
033d67527700afbc55c8079c6e3abe50d269e344a9d426c064b7972358eddd32
stylewarning/cl-permutation
permutation-group.lisp
;;;; tests/permutation-group.lisp ;;;; Copyright ( c ) 2015 - 2018 (in-package #:cl-permutation-tests) (deftest test-random-group-element-randomly () "Test the generation of random group elements actually produces elements of the group." (loop :repeat 10 :do (is (group-element-p (random-group-element ...
null
https://raw.githubusercontent.com/stylewarning/cl-permutation/631b17541ad9fb5e2fbf89b09bc0d5a98d718e1c/tests/permutation-group.lisp
lisp
tests/permutation-group.lisp trivial normal subgroups other tests TODO: FIXME
Copyright ( c ) 2015 - 2018 (in-package #:cl-permutation-tests) (deftest test-random-group-element-randomly () "Test the generation of random group elements actually produces elements of the group." (loop :repeat 10 :do (is (group-element-p (random-group-element *3x3*) *3x3*)))) (deftest test-group-o...
1abd2cbf8330083812d2e73b8b11647fc0ee0923555447c3686a4840e0cc3d9d
cognitect-labs/aws-api
shape_test.clj
(ns cognitect.aws.shape-test (:require [clojure.test :refer [deftest testing is]] [cognitect.aws.shape :as shape])) (deftest test-parse-date (testing "returns nil for nil" (is (nil? (shape/parse-date {} nil))) (is (nil? (shape/parse-date {:timestampFormat "rfc822"} nil))) (is (nil? (shape/p...
null
https://raw.githubusercontent.com/cognitect-labs/aws-api/e7c73973e1173c20546a2750704697f33b2bb3e6/test/src/cognitect/aws/shape_test.clj
clojure
(ns cognitect.aws.shape-test (:require [clojure.test :refer [deftest testing is]] [cognitect.aws.shape :as shape])) (deftest test-parse-date (testing "returns nil for nil" (is (nil? (shape/parse-date {} nil))) (is (nil? (shape/parse-date {:timestampFormat "rfc822"} nil))) (is (nil? (shape/p...
5dbb962f94810bdcd4158f43cb51edd6a15b129141fbffd06aea352fb10756fe
chunsj/TH
celeba.lisp
(declaim (optimize (speed 3) (debug 0) (safety 0))) (defpackage :th.db.celeba (:use #:common-lisp #:mu #:th) (:export #:read-celeba64-data)) (in-package :th.db.celeba) (defparameter +celeba-location+ ($concat (namestring (user-homedir-pathname)) ".th/datasets/celeba")) (defun read-celeba64-tenso...
null
https://raw.githubusercontent.com/chunsj/TH/890f05ab81148d9fe558be3979c30c303b448480/db/celeba.lisp
lisp
(declaim (optimize (speed 3) (debug 0) (safety 0))) (defpackage :th.db.celeba (:use #:common-lisp #:mu #:th) (:export #:read-celeba64-data)) (in-package :th.db.celeba) (defparameter +celeba-location+ ($concat (namestring (user-homedir-pathname)) ".th/datasets/celeba")) (defun read-celeba64-tenso...
8d39fc8a16aec2b99ec94ccee1b37cb720cae36de408818d398116ef531a8bbe
erlang-ls/erlang_ls
els_test.erl
-module(els_test). -include_lib("els_core/include/els_core.hrl"). -include_lib("stdlib/include/assert.hrl"). -opaque session() :: #{uri := uri()}. -type source() :: binary(). -type code() :: binary(). -type simplified_diagnostic() :: #{ code => code(), range => {pos(), pos()} }. -export_type([session/0]). -e...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/2dfb48aca3879e5b44f6fd676f8349525262779f/apps/els_lsp/test/els_test.erl
erlang
returned by the compiler warnings and errors. Should find a better heuristic for this.
-module(els_test). -include_lib("els_core/include/els_core.hrl"). -include_lib("stdlib/include/assert.hrl"). -opaque session() :: #{uri := uri()}. -type source() :: binary(). -type code() :: binary(). -type simplified_diagnostic() :: #{ code => code(), range => {pos(), pos()} }. -export_type([session/0]). -e...
fd383197d2704d86e3f8ca455a4cc196f4cd93c0bd7da1017ad1838f75d0733d
NaaS/motto
functions.ml
Defined functions in . , Cambridge University Computer Lab , September 2015 Use of this source code is governed by the Apache 2.0 license ; see LICENSE Defined functions in Flick. Nik Sultana, Cambridge University Computer Lab, September 2015 Use of this source code is governed by the Apa...
null
https://raw.githubusercontent.com/NaaS/motto/8ff3eba534be816d861dcfced93b68d593a12e2b/front-end/functions.ml
ocaml
message function name Function name Function type Function implementation (in OCaml)
Defined functions in . , Cambridge University Computer Lab , September 2015 Use of this source code is governed by the Apache 2.0 license ; see LICENSE Defined functions in Flick. Nik Sultana, Cambridge University Computer Lab, September 2015 Use of this source code is governed by the Apa...
bd7fcbed78b99c95bccb042862974127060c441043d28e056a6f31630d6c7366
ghcjs/ghcjs-dom
HTMLOptionElement.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.HTMLOptionElement (js_setDisabled, setDisabled, js_getDisabled, getDisabled, js...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLOptionElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/HTMLOptionElement.text Mozilla HTMLOptionElement.text documentation> | <-US/docs/Web/API/HTMLOptionElement.text Mozilla HTMLOptionElement.text documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.HTMLOptionElement (js_setDisabled, setDisabled, js_getDisabled, getDisabled, js_getForm, getForm, js_setLabel, setLabel, js_getLabel, getLabel, js_setDefaultSelected, set...
144b44472a66ebea98816ac7e9b76f9670d54ea686a92e25095b8ca0af6c8697
clash-lang/clash-compiler
Overflowing.hs
| Copyright : ( C ) 2021 - 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) 2021-2022, QBayLogic B.V. License : BSD2 (see the file LICENSE) Maintainer : QBayLogic B.V. <> -} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE FlexibleConte...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/cb93b418865e244da50e1d2bc85fbc01bf761f3f/clash-prelude/src/Clash/Num/Overflowing.hs
haskell
# LANGUAGE DeriveAnyClass # number, but also includes an overflow status flag which can be used to more easily check if an overflow has occurred. Numbers can be converted to be 'Overflowing' using 'toOverflowing'. ^ Retrieve the value ^ 'True' when a computation has overflowed | Reset the overflow status flag t...
| Copyright : ( C ) 2021 - 2022 , QBayLogic B.V. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) 2021-2022, QBayLogic B.V. License : BSD2 (see the file LICENSE) Maintainer : QBayLogic B.V. <> -} # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # ...
703eee73e014df779ee86a036c68b48648a9c007c14021b5f3226b315f547862
opencog/pln
socrates-pm.scm
;; Socrates inference example based on the pattern matcher only. Each ;; step are run manually. (use-modules (opencog)) (use-modules (opencog atom-types)) (use-modules (opencog exec)) (use-modules (opencog query)) (use-modules (opencog nlp)) (use-modules (opencog nlp chatbot)) (use-modules (opencog nlp relex2logic)) (...
null
https://raw.githubusercontent.com/opencog/pln/52dc099e21393892cf5529fef687a69682436b2d/examples/pln/socrates/socrates-pm.scm
scheme
Socrates inference example based on the pattern matcher only. Each step are run manually. Helper to get the r2l output ; NOTE: Socrates isn't used b/c link-grammar has issue with it (define input-2 (mock-pln-input "Men breathe air")) Load PLN rules Grounded Predicates). Here we are gonna assume that all predicat...
(use-modules (opencog)) (use-modules (opencog atom-types)) (use-modules (opencog exec)) (use-modules (opencog query)) (use-modules (opencog nlp)) (use-modules (opencog nlp chatbot)) (use-modules (opencog nlp relex2logic)) (use-modules (opencog pln)) (define (get-r2l sent-node) (interp-get-r2l-outputs (car (sent-get...
58cbf49cd1457d84d4f14ea4439007514fcd90143d8e83afe1a29bd5eae789de
exoscale/clojure-kubernetes-client
v1_azure_file_volume_source.clj
(ns clojure-kubernetes-client.specs.v1-azure-file-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-azure-file-volume-source-data v1-azure-file-volume-source) (def v1-azure-file-volume-source-data { (ds/opt :readOn...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_azure_file_volume_source.clj
clojure
(ns clojure-kubernetes-client.specs.v1-azure-file-volume-source (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-azure-file-volume-source-data v1-azure-file-volume-source) (def v1-azure-file-volume-source-data { (ds/opt :readOn...
804fabc82153a851c2dfd01998619190722c5f8c47c65d079bb395f7fb41aeaa
coccinelle/herodotos
html.ml
let htmlfiles = ref [] let pngfiles = ref [] let svgfiles = ref [] let register (file: string) = htmlfiles := file :: !htmlfiles let register_png (file: string) = pngfiles := file :: !pngfiles let register_svg (file: string) = svgfiles := file :: !svgfiles let gen_png path = let index = path ^ "/index.png.h...
null
https://raw.githubusercontent.com/coccinelle/herodotos/5da230a18962ca445ed2368bc21abe0a8402e00f/sql2jgr/html/html.ml
ocaml
For SVG For PNG <embed> is not a W3C standard and should be removed... For PNG For SVG For SVG For PNG <embed> is not a W3C standard and should be removed... For PNG For SVG For SVG For PNG <embed> is not a W3C standard and should be removed... For PNG For SVG
let htmlfiles = ref [] let pngfiles = ref [] let svgfiles = ref [] let register (file: string) = htmlfiles := file :: !htmlfiles let register_png (file: string) = pngfiles := file :: !pngfiles let register_svg (file: string) = svgfiles := file :: !svgfiles let gen_png path = let index = path ^ "/index.png.h...
7c89611665260d2837367b1027fd5e2ef50dabacc3b743ee0bddf8f924aa56e2
msszczep/pequod-cljs
dep1ex62.clj
version -lfs.github.com/spec/v1 oid sha256:830d65778d92da0ba4d0740ca75cf46cea68ef377fe000cf2b44980aefc28720 size 160898996
null
https://media.githubusercontent.com/media/msszczep/pequod-cljs/986ad97fa39d5b83828c07daf80655460b27d2dd/src/clj/pequod_cljs/dep1ex62.clj
clojure
version -lfs.github.com/spec/v1 oid sha256:830d65778d92da0ba4d0740ca75cf46cea68ef377fe000cf2b44980aefc28720 size 160898996
b9372ea26aa651d560cb5def37401f78250a999e1dc513c2cf5d8752c78e57cb
gizmo385/discord.clj
embeds.clj
(ns discord.embeds "This namespace contains functions to facilitate the creation of Embeds, which allow for richer messages to be sent by the bot to users." (:require [clj-time.format :as f] [clj-time.coerce :as c])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/gizmo385/discord.clj/5c2cadc8faa25e8bb50211f60457057cbed6dd90/src/discord/embeds.clj
clojure
Embedded Fields An embed in a message can contain a number of things, each of which has optional properties that can be present of missing. Below is a series of records that captures these. Converting Embeds into maps for the Discord API
(ns discord.embeds "This namespace contains functions to facilitate the creation of Embeds, which allow for richer messages to be sent by the bot to users." (:require [clj-time.format :as f] [clj-time.coerce :as c])) (defrecord EmbedFooter [text icon_url proxy_icon_url]) (defrecord EmbedField [name ...
a8440829392d02da1c705456a09b148fec069ee06ecbe44c16d26ee35e67d5b9
moonpolysoft/dynomite
dmerkle.erl
%%%------------------------------------------------------------------- %%% File: dmerkle.erl @author < > [ ] 2008 %%% @doc %%% %%% @end %%% @since 2008 - 08 - 03 by %%%------------------------------------------------------------------- -module(dmerkle). -author(''). -behavior(gen_server). -r...
null
https://raw.githubusercontent.com/moonpolysoft/dynomite/a5618dcbe17b16cefdc9c567f27a1f4445aee005/elibs/dmerkle.erl
erlang
------------------------------------------------------------------- File: dmerkle.erl @doc @end ------------------------------------------------------------------- API gen_server callbacks ==================================================================== Public API ==================================...
@author < > [ ] 2008 @since 2008 - 08 - 03 by -module(dmerkle). -author(''). -behavior(gen_server). -record(dmerkle, {tree,root}). -include("common.hrl"). -include("dmerkle.hrl"). -export([open/1, open/2, equals/2, get_tree/1, count/2, count_trace/2, update/3, updatea/3, delete/2, deletea/2, leaves...
5a6a98bdd943ed0ebfe2577500d4bfcef6f49758a79520129de086fc751c02e4
manuel-serrano/bigloo
cse.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / recette / cse.scm * / ;* */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/recette/cse.scm
scheme
*=====================================================================*/ * */ * */ * On test l'elimination de sous expression commune. */ *===========================...
* serrano / prgm / project / bigloo / recette / cse.scm * / * Author : * / * Creation : Thu Apr 29 17:25:53 1993 * / * Last change : We d Mar 30 08:44:30 2011 ( serrano ) * / (module cs...
b52793ce3bbb7588e0c776a8930161406c7d3e85e0d9deba5699f7d6c07c64c9
mmottl/gsl-ocaml
multimin.ml
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 let () = Error.init () open Fun open Vector module Deriv = struct type kind = | CONJUGATE_FR | CONJUGATE_PR | VECTOR_BFGS ...
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/src/multimin.ml
ocaml
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 let () = Error.init () open Fun open Vector module Deriv = struct type kind = | CONJUGATE_FR | CONJUGATE_PR | VECTOR_BFGS ...
2a6ada77a03822e30ec0252927e8b2b9f26a6bebe29f574bfe861dd64a52f6d8
ArulselvanMadhavan/haskell-first-principles
EitherMonad.hs
module EitherMonad where type Founded = Int type Coders = Int data SoftwareShop = Shop { founded :: Founded , programmers :: Coders } deriving (Eq, Show) data FoundedError = NegativeYears Founded | TooManyYears Founded | NegativeCoders Coders | TooManyCoders Coders | TooManyCodersForYears Founde...
null
https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter18/src/EitherMonad.hs
haskell
module EitherMonad where type Founded = Int type Coders = Int data SoftwareShop = Shop { founded :: Founded , programmers :: Coders } deriving (Eq, Show) data FoundedError = NegativeYears Founded | TooManyYears Founded | NegativeCoders Coders | TooManyCoders Coders | TooManyCodersForYears Founde...
8177d88a7666ed46a5a2bef0e739a5e2f05dba2b387b97a62c2fb0ea6366a316
lspitzner/butcher
Flag.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ViewPatterns # -- | Flags are arguments to your current command that are prefixed with "-" or " -- " , for example " -v " or " --verbose " . These flags can have zero or one argument . ( internally has more general concept of " CmdPart " that -- could handle any ...
null
https://raw.githubusercontent.com/lspitzner/butcher/ad17fe776359a25e4d1bebc7890d1bf3da0880f0/src/UI/Butcher/Monadic/Flag.hs
haskell
| Flags are arguments to your current command that are prefixed with "-" or could handle any number of arguments, so take this as what this module aims to provide, not what you could theoretically implement on top of butcher). Note that the current implementation only accepts "--foo param" but not "--foo=param". S...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ViewPatterns # " -- " , for example " -v " or " --verbose " . These flags can have zero or one argument . ( internally has more general concept of " CmdPart " that module UI.Butcher.Monadic.Flag ( Flag(..) , flagHelp , flagHelpStr , flagDefault , flagH...
6deb761667205ecd342b94a61abe0bd050d1832994f8d411586007d74c0f4e19
cirodrig/triolet
Print.hs
module LowLevel.Cxx.Print(prettyPrintHeaderFile) where import Text.PrettyPrint.HughesPJ import LowLevel.Cxx.AST class Ppr a where ppr :: a -> Doc pprCommaList :: Ppr a => [a] -> Doc pprCommaList xs = hsep $ punctuate comma $ map ppr xs pprSemiList :: Ppr a => [a] -> Doc pprSemiList xs = vcat [ppr x <> semi | x <-...
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/LowLevel/Cxx/Print.hs
haskell
| Pretty-print a type. As per C's printing rules, the type is always printed around something, which could be an empty document.
module LowLevel.Cxx.Print(prettyPrintHeaderFile) where import Text.PrettyPrint.HughesPJ import LowLevel.Cxx.AST class Ppr a where ppr :: a -> Doc pprCommaList :: Ppr a => [a] -> Doc pprCommaList xs = hsep $ punctuate comma $ map ppr xs pprSemiList :: Ppr a => [a] -> Doc pprSemiList xs = vcat [ppr x <> semi | x <-...
ca32e77f9e3d194ab7c7ede5f4b9eb2284dc753347619afe7ceccf221f9aadd1
HealthSamurai/dojo.clj
window_location.cljc
(ns zframes.window-location (:refer-clojure :exclude [get set!]) (:require [re-frame.core :as rf] [clojure.string :as str])) #?(:cljs (defn url-decode [x] (js/decodeURIComponent x))) #?(:clj (defn url-decode [x] x)) #?(:cljs (defn url-encode [x] (js/encodeURIComponent x))) #?(:c...
null
https://raw.githubusercontent.com/HealthSamurai/dojo.clj/94922640f534897ab2b181c608b54bfbb8351d7b/ui/src/zframes/window_location.cljc
clojure
(ns zframes.window-location (:refer-clojure :exclude [get set!]) (:require [re-frame.core :as rf] [clojure.string :as str])) #?(:cljs (defn url-decode [x] (js/decodeURIComponent x))) #?(:clj (defn url-decode [x] x)) #?(:cljs (defn url-encode [x] (js/encodeURIComponent x))) #?(:c...
a2cff74f30d7ee457b7f24cc15d4a0ce45c2c0e73852695fe1162e34490e3c26
input-output-hk/cardano-wallet
Shelley.hs
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # -- | Copyright : © 2020 - 2022 IOHK -- License: Apache-2.0 -- module Cardano.Wallet.Read.Primitive.Tx.Shelley ( fromShelleyTx ) where import Prelude import Carda...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/467a7f13d0fe0278003c51d2dfa56c6fc68d3bbe/lib/wallet/src/Cardano/Wallet/Read/Primitive/Tx/Shelley.hs
haskell
| License: Apache-2.0 commit -output-hk/cardano-ledger/commit/4097a9055e6ea57161755e6a8cbfcf719b65e9ab). reflect that here.
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE TupleSections # # LANGUAGE TypeFamilies # Copyright : © 2020 - 2022 IOHK module Cardano.Wallet.Read.Primitive.Tx.Shelley ( fromShelleyTx ) where import Prelude import Cardano.Address.Script ( KeyRole...
77249d5be3a4239887e0326bd1de68e3e8a3e110a37eb24d64b2a163e87fdcfa
uwplse/synapse
hd-test.rkt
#lang s-exp rosette (require "../opsyn/engine/metasketch.rkt" "../opsyn/engine/eval.rkt" "../opsyn/engine/util.rkt" "../opsyn/bv/lang.rkt" "../benchmarks/hd/reference.rkt" "../benchmarks/hd/d5.rkt" "../benchmarks/hd/d0.rkt" "../opsyn/engine/solver+.rkt" rosette/solver/smt/z3 rackunit "test-runner.rkt") (c...
null
https://raw.githubusercontent.com/uwplse/synapse/10f605f8f1fff6dade90607f516550b961a10169/test/hd-test.rkt
racket
#lang s-exp rosette (require "../opsyn/engine/metasketch.rkt" "../opsyn/engine/eval.rkt" "../opsyn/engine/util.rkt" "../opsyn/bv/lang.rkt" "../benchmarks/hd/reference.rkt" "../benchmarks/hd/d5.rkt" "../benchmarks/hd/d0.rkt" "../opsyn/engine/solver+.rkt" rosette/solver/smt/z3 rackunit "test-runner.rkt") (c...
3cdf36fcc539977e132080646979a90aad47c6dae12c0ce231ebb505c9a04f56
poroh/ersip
ersip_proxy_stateless.erl
%% Copyright ( c ) 2018 Dmitry Poroh %% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %% %% SIP stateless proxy functions %% -module(ersip_proxy_stateless). -export([branch/1, process_response/2 ]). %%%===============================================...
null
https://raw.githubusercontent.com/poroh/ersip/241c4be134e388325011cc6492678af7025fcef5/src/proxy/ersip_proxy_stateless.erl
erlang
All rights reserved. SIP stateless proxy functions =================================================================== Types =================================================================== =================================================================== API ================================================...
Copyright ( c ) 2018 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . -module(ersip_proxy_stateless). -export([branch/1, process_response/2 ]). -type process_response_result() :: {forward, ersip_sipmsg:sipmsg()} | {drop, Reaso...
4b0aab91373550151b9b38c69843e099ea9b46e0a0f04f4ac0a0a28a7ffaac4e
marcelog/erlami
erlami_sup.erl
Main supervisor for Erlami application . %%% Copyright 2012 < > %%% 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 o...
null
https://raw.githubusercontent.com/marcelog/erlami/c2d9c46c9de987431b382a19ad883d597a2abf26/src/erlami_sup.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Main supervisor for Erlami application . Copyright 2012 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erlami_sup). -author("Marcelo Gornstein <>"). -github(""). -homepage("/"). -license("Apache License 2....
6e79de4f55233510cb155e7763329ed102826f5ecac974ea97a31b9ac2db3c35
synduce/Synduce
from_list_contains.ml
type 'a list = Elt of 'a | Cons of 'a * 'a list type 'a tree = Leaf of 'a | Node of 'a * 'a tree * 'a tree let rec repr = function Leaf a -> Elt a | Node (a, l, r) -> merge (Cons (a, repr l)) (repr r) and merge l = function | Elt a -> Cons (a, l) | Cons (a, l1) -> let l2 = merge l l1 in Cons (a, l2) ...
null
https://raw.githubusercontent.com/synduce/Synduce/d453b04cfb507395908a270b1906f5ac34298d29/benchmarks/constraints/bst/from_list_contains.ml
ocaml
type 'a list = Elt of 'a | Cons of 'a * 'a list type 'a tree = Leaf of 'a | Node of 'a * 'a tree * 'a tree let rec repr = function Leaf a -> Elt a | Node (a, l, r) -> merge (Cons (a, repr l)) (repr r) and merge l = function | Elt a -> Cons (a, l) | Cons (a, l1) -> let l2 = merge l l1 in Cons (a, l2) ...
e1ea55f6cf638d2257ec8dc76227d3c9e247bd27969aa0153fa5027304c77476
Erlang-Openid/oidcc
test_util.erl
-module(test_util). -export([wait_for_process_to_die/2]). -export([wait_for_true/2]). -export([meck_new/1]). -export([meck_done/1]). wait_for_process_to_die(_Pid, 0) -> still_alive; wait_for_process_to_die(Pid, Iterations) -> case process_info(Pid) of undefined -> ok; _ -> ...
null
https://raw.githubusercontent.com/Erlang-Openid/oidcc/afa7786033ca7161dd3c599e72c2df81ed1aad59/test/test_util.erl
erlang
-module(test_util). -export([wait_for_process_to_die/2]). -export([wait_for_true/2]). -export([meck_new/1]). -export([meck_done/1]). wait_for_process_to_die(_Pid, 0) -> still_alive; wait_for_process_to_die(Pid, Iterations) -> case process_info(Pid) of undefined -> ok; _ -> ...
fac17f9dac60286857fb7bbfb2d8a02e42f00719b426de6ab5f248bee19ffb38
ekmett/coda
Ordered.hs
module Algebra.Ordered ( OrderedMonoid ) where import Relative.Delta.Type import Data.Monoid -------------------------------------------------------------------------------- -- Ordered monoids -------------------------------------------------------------------------------- -- | -- An < ordered monoid>. -- @x '...
null
https://raw.githubusercontent.com/ekmett/coda/bca7e36ab00036f92d94eb86298712ab1dbf9b8d/src/common/Algebra/Ordered.hs
haskell
------------------------------------------------------------------------------ Ordered monoids ------------------------------------------------------------------------------ | An < ordered monoid>. TODO:
module Algebra.Ordered ( OrderedMonoid ) where import Relative.Delta.Type import Data.Monoid @x ' < = ' y@ implies ' < > ' x ' < = ' z ' < > ' y@ and @x ' < > ' z ' < = ' y ' < > ' z@ class (Ord t, Monoid t) => OrderedMonoid t instance OrderedMonoid Delta instance OrderedMonoid Any instance OrderedMonoid All...
df34ed848fb73d6aa80a851689be1d4a8896c77880414dc74d1e00462c8557f2
xh4/web-toolkit
frame.lisp
(in-package :websocket) (defstruct frame fin opcode masked payload-length masking-key payload-data) (defun frame-fin-p (frame) (plusp (frame-fin frame))) (define-constant +opcode-continuation+ #x0) (define-constant +opcode-text+ #x1) (define-constant +opcode-binary+ #x2) (define-...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/websocket/frame.lisp
lisp
RFC6455 Masking ("transformed-octet-i") is the XOR of octet i of the original data ("original-octet-i") key ("masking-key-octet-j"):
(in-package :websocket) (defstruct frame fin opcode masked payload-length masking-key payload-data) (defun frame-fin-p (frame) (plusp (frame-fin frame))) (define-constant +opcode-continuation+ #x0) (define-constant +opcode-text+ #x1) (define-constant +opcode-binary+ #x2) (define-...
30cc5b1a094423969184e73f9235e8e4f18e9f400bb75d9bb5c11fae65fc772b
nd/sicp
3.56.scm
(define (scale-stream stream factor) (stream-map (lambda (x) (* x factor)) stream)) (define (merge s1 s2) (cond ((stream-null? s1) s2) ((stream-null? s2) s1) (else (let ((s1car (stream-car s1)) (s2car (stream-car s2))) (cond ((< s1car s2car) ...
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch03/3.56.scm
scheme
(define (scale-stream stream factor) (stream-map (lambda (x) (* x factor)) stream)) (define (merge s1 s2) (cond ((stream-null? s1) s2) ((stream-null? s2) s1) (else (let ((s1car (stream-car s1)) (s2car (stream-car s2))) (cond ((< s1car s2car) ...
8774ee14c7cba693469bb7cdd98fb0c6c3171efe3cb59b6848cfc54cb7f5dbe0
zoomhub/zoomhub
EmbedConstraint.hs
module ZoomHub.Web.Types.EmbedConstraint ( EmbedConstraint (..), ) where import Data.Bifunctor (first) import qualified Data.Text as T import Servant (FromHttpApiData, parseUrlPiece) import ZoomHub.Web.Types.OpenSeadragonViewerConfig (Constraint) import qualified ZoomHub.Web.Types.OpenSeadragonViewerConfig as Cons...
null
https://raw.githubusercontent.com/zoomhub/zoomhub/e732cd25c692a1a2458c77f4bda155c5fe679041/src/ZoomHub/Web/Types/EmbedConstraint.hs
haskell
Type Text
module ZoomHub.Web.Types.EmbedConstraint ( EmbedConstraint (..), ) where import Data.Bifunctor (first) import qualified Data.Text as T import Servant (FromHttpApiData, parseUrlPiece) import ZoomHub.Web.Types.OpenSeadragonViewerConfig (Constraint) import qualified ZoomHub.Web.Types.OpenSeadragonViewerConfig as Cons...
a1a28e9fc5bca1354337d79fa931e1c1acaeac6d4c3e58e6ef8fa4052d580e38
mvoidex/hsdev
Stack.hs
# LANGUAGE TemplateHaskell , RankNTypes , PackageImports # module HsDev.Stack ( stack, yaml, path, pathOf, build, buildDeps, StackEnv(..), stackRoot, stackProject, stackConfig, stackGhc, stackSnapshot, stackLocal, getStackEnv, projectEnv, stackPackageDbStack, stackCompiler, stackArch, MaybeT(..) ) where im...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Stack.hs
haskell
| Get compiler version | Get arch for stack | Invoke stack command, we are trying to get actual stack near current hsdev executable | Make yaml opts | Stack path | Get path for | Build stack project | Build only dependencies | Projects paths | Get package-db stack for stack environment
# LANGUAGE TemplateHaskell , RankNTypes , PackageImports # module HsDev.Stack ( stack, yaml, path, pathOf, build, buildDeps, StackEnv(..), stackRoot, stackProject, stackConfig, stackGhc, stackSnapshot, stackLocal, getStackEnv, projectEnv, stackPackageDbStack, stackCompiler, stackArch, MaybeT(..) ) where im...
4719b06fa0ab869804189eb6de640e9fb63c2dd64b67208d101a2a22248f3404
matsumonkie/izuna
Lib.hs
module Lib ( someFunc ) where someFunc :: IO () someFunc = putStrLn "someFunc" add :: Int -> Int -> Int add x y = x + y foo :: String foo = let x = 42 in show x
null
https://raw.githubusercontent.com/matsumonkie/izuna/b21915617c4e3bb7d14d75814f72b8258689fb9b/example/src/Lib.hs
haskell
module Lib ( someFunc ) where someFunc :: IO () someFunc = putStrLn "someFunc" add :: Int -> Int -> Int add x y = x + y foo :: String foo = let x = 42 in show x
55e37707ae3d1a51edd199ec0b9bba2db3f21dc725b235e75a9fc92a6b6ac2ed
psandahl/hats
Connection.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- | Module : Network . . ConnectionManager Copyright : ( c ) 2016 License : MIT Maintainer : < > -- Stability: experimental -- Portability: portable -- | Abstraction for a connection towards a NATS server . It owns the...
null
https://raw.githubusercontent.com/psandahl/hats/2503edefbda64209d20509b075b3ab90cac39b8d/src/Network/Nats/Connection.hs
haskell
# LANGUAGE OverloadedStrings # | Stability: experimental Portability: portable | Type alias for a microsecond timeout. 'Upstream' queue with data from the application to the server, and one 'Downstream' queue with data from the server to the application. Make the connection. Perform the handshaking of 'Info'...
# LANGUAGE RecordWildCards # Module : Network . . ConnectionManager Copyright : ( c ) 2016 License : MIT Maintainer : < > | Abstraction for a connection towards a NATS server . It owns the networking stuff and performs handshaking necessary . module Network.Nats.Connection ( Co...
70185211c92c21f8b643676d7307365fb8aeef2e37509a77c4a25a4c161e3c47
exoscale/clojure-kubernetes-client
storage_v1.clj
(ns clojure-kubernetes-client.api.storage-v1 (:require [clojure-kubernetes-client.core :refer [call-api check-required-params with-collection-format *api-context*]] [clojure.spec.alpha :as s] [spec-tools.core :as st] [orchestra.core :refer [defn-spec]] [clojure-kubernet...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/api/storage_v1.clj
clojure
(ns clojure-kubernetes-client.api.storage-v1 (:require [clojure-kubernetes-client.core :refer [call-api check-required-params with-collection-format *api-context*]] [clojure.spec.alpha :as s] [spec-tools.core :as st] [orchestra.core :refer [defn-spec]] [clojure-kubernet...
09987f3e2c018db732062287fd1f0c6dc5e10830792c0b1ea2fceabcb4aa0989
haskell-foundation/foundation
Misc.hs
{-# LANGUAGE OverloadedStrings #-} module Test.Foundation.Misc ( testHexadecimal , testUUID ) where import Foundation import Foundation.Check import Foundation.Array.Internal (toHexadecimal) import Test.Checks.Property.Collection (fromListP) import qualified Foundation.UUID as UUID import Found...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/foundation/tests/Test/Foundation/Misc.hs
haskell
# LANGUAGE OverloadedStrings #
module Test.Foundation.Misc ( testHexadecimal , testUUID ) where import Foundation import Foundation.Check import Foundation.Array.Internal (toHexadecimal) import Test.Checks.Property.Collection (fromListP) import qualified Foundation.UUID as UUID import Foundation.Parser instance Arbitrary UU...
a44e679e2f6dd54de511ba28c508a3797e11975481038125c7d898b6fad75496
SquidDev/illuaminate
lint_for_num.mli
(** Ensures the bounds on for-num loops makes sense. *) include Linter.S
null
https://raw.githubusercontent.com/SquidDev/illuaminate/da18b101b4710881b71c42554d70a3a7d17c3cd6/src/lint/lint_for_num.mli
ocaml
* Ensures the bounds on for-num loops makes sense.
include Linter.S
e5b89cf64ded9dab955ead6dd9531ee59930591cbd9f5c8fe851890ce39ee50b
mukul-rathi/bolt
ir_gen_expr.ml
open Ast.Ast_types open Core open Ir_gen_operators open Ir_gen_env open Desugaring let ir_gen_identifier class_defns id = let should_lock_id capabilities = let locked_capabilities = List.filter ~f:(fun (TCapability (mode, _)) -> mode = Locked) capabilities in List.length locked_capabilities > 0 in ma...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/src/frontend/ir_gen/ir_gen_expr.ml
ocaml
open Ast.Ast_types open Core open Ir_gen_operators open Ir_gen_env open Desugaring let ir_gen_identifier class_defns id = let should_lock_id capabilities = let locked_capabilities = List.filter ~f:(fun (TCapability (mode, _)) -> mode = Locked) capabilities in List.length locked_capabilities > 0 in ma...
c5375bc32e223f516c14600c7a96927838c75c7296f73b05eb35cd085036f10a
NorfairKing/bevel
Register.hs
# LANGUAGE RecordWildCards # module Bevel.CLI.Commands.Register where import Bevel.CLI.Commands.Import register :: C () register = withClient $ \cenv -> do registrationFormUsername <- getEnvUsername registrationFormPassword <- getEnvPassword let rf = RegistrationForm {..} NoContent <- runClientOrDie cenv $ p...
null
https://raw.githubusercontent.com/NorfairKing/bevel/8cc74d83d058f916acf4cf247341852600d9456e/bevel-cli/src/Bevel/CLI/Commands/Register.hs
haskell
# LANGUAGE RecordWildCards # module Bevel.CLI.Commands.Register where import Bevel.CLI.Commands.Import register :: C () register = withClient $ \cenv -> do registrationFormUsername <- getEnvUsername registrationFormPassword <- getEnvPassword let rf = RegistrationForm {..} NoContent <- runClientOrDie cenv $ p...
11141f260b5d9c593fc7c64cf18bd5de526dbe3dfd610065d087f3f08cff1998
ThomasHintz/keep-the-records
test-sections.scm
(import sections) (test-begin "sections") (test-group "ad" (test '("Hopper" "Jumper") (ad "Cubbies" 'book)) (test '("Puggles" "Cubbies" "Sparks" "TnT" "Trek" "Journey") (ad 'asdf)) (test '("Puggles" "Cubbies" "Sparks" "TnT" "Trek" "Journey") (ad 'club)) (test-error (ad "eat" 'book)) (test-error (ad "eat")) (te...
null
https://raw.githubusercontent.com/ThomasHintz/keep-the-records/c20e648e831bed2ced3f2f74bfc590dc06b5f076/tests/test-sections.scm
scheme
(import sections) (test-begin "sections") (test-group "ad" (test '("Hopper" "Jumper") (ad "Cubbies" 'book)) (test '("Puggles" "Cubbies" "Sparks" "TnT" "Trek" "Journey") (ad 'asdf)) (test '("Puggles" "Cubbies" "Sparks" "TnT" "Trek" "Journey") (ad 'club)) (test-error (ad "eat" 'book)) (test-error (ad "eat")) (te...
6358477a290523d4297c5fbb0e4bfb9012180532e1febbd67ddef4d8afa2b949
ring-clojure/ring-headers
proxy_headers_test.clj
(ns ring.middleware.proxy-headers-test (:use clojure.test ring.middleware.proxy-headers [ring.mock.request :only [request header]] [ring.util.response :only [response]])) (deftest test-wrap-forwarded-remote-addr (let [handler (wrap-forwarded-remote-addr (comp response :remote-addr))] (t...
null
https://raw.githubusercontent.com/ring-clojure/ring-headers/3c803eb0864d7fbe93ba1595d5d0d6ae09d51eb0/test/ring/middleware/proxy_headers_test.clj
clojure
(ns ring.middleware.proxy-headers-test (:use clojure.test ring.middleware.proxy-headers [ring.mock.request :only [request header]] [ring.util.response :only [response]])) (deftest test-wrap-forwarded-remote-addr (let [handler (wrap-forwarded-remote-addr (comp response :remote-addr))] (t...
1aaa851c78fd4bc76715c285a6f11c3c75cce2da4580c312ba99928c534d9c64
plumatic/grab-bag
client.clj
(ns kinesis.client "Client for reading from kinesis" (:use plumbing.core) (:require [plumbing.error :as err] [plumbing.graph :as graph] [plumbing.logging :as log] [plumbing.new-time :as new-time] [plumbing.parallel :as parallel] [plumbing.resource :as resource] [plumbing.serialize :as seriali...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/kinesis/src/kinesis/client.clj
clojure
TODO: shut down and flush record processors on restart?
(ns kinesis.client "Client for reading from kinesis" (:use plumbing.core) (:require [plumbing.error :as err] [plumbing.graph :as graph] [plumbing.logging :as log] [plumbing.new-time :as new-time] [plumbing.parallel :as parallel] [plumbing.resource :as resource] [plumbing.serialize :as seriali...
463767f7839f9b134d88dcb7c75095640836b7134b26fec1ac8cc7cb5adb0be5
DerGuteMoritz/clj-oauth2
client.clj
(ns clj-oauth2.client (:refer-clojure :exclude [get]) (:use [clj-http.client :only [wrap-request]] [clojure.data.json :only [read-json]]) (:require [clj-http.client :as http] [clojure.string :as str] [uri.core :as uri]) (:import [clj_oauth2 OAuth2Exception OAuth2StateMismatchExce...
null
https://raw.githubusercontent.com/DerGuteMoritz/clj-oauth2/b7fa4279cb8a20f979489452d27b5760697e56e3/src/clj_oauth2/client.clj
clojure
Facebookism Facebookism Facebookism Facebookism
(ns clj-oauth2.client (:refer-clojure :exclude [get]) (:use [clj-http.client :only [wrap-request]] [clojure.data.json :only [read-json]]) (:require [clj-http.client :as http] [clojure.string :as str] [uri.core :as uri]) (:import [clj_oauth2 OAuth2Exception OAuth2StateMismatchExce...
c5faef93b3bef5912d5d7bedbeaeb3b3f93dd63477ad24e601b960d8e52c152a
Vaguery/klapaucius
boolean_test.clj
(ns push.type.base.boolean_test (:use midje.sweet) (:use [push.util.test-helpers]) (:use [push.type.item.boolean]) ) (fact "boolean-type has :name ':boolean'" (:name boolean-type) => :boolean) (fact "boolean-type has the correct :recognizer" (:recognizer (:router boolean-type)) => (exactly boolean?)) ...
null
https://raw.githubusercontent.com/Vaguery/klapaucius/17b55eb76feaa520a85d4df93597cccffe6bdba4/test/push/type/base/boolean_test.clj
clojure
(ns push.type.base.boolean_test (:use midje.sweet) (:use [push.util.test-helpers]) (:use [push.type.item.boolean]) ) (fact "boolean-type has :name ':boolean'" (:name boolean-type) => :boolean) (fact "boolean-type has the correct :recognizer" (:recognizer (:router boolean-type)) => (exactly boolean?)) ...
4d1e0130f4dac36d51f7038289f7dc42401fc378bfe05deadebc5eff255149d2
ott-lang/ott
transform.ml
(**************************************************************************) (* Ott *) (* *) , Computer Laboratory , University of Cambridge , project , I...
null
https://raw.githubusercontent.com/ott-lang/ott/29ac9ef84967686da35b9b42608b3aec3539a689/src/transform.ml
ocaml
************************************************************************ Ott ...
, Computer Laboratory , University of Cambridge , project , INRIA Rocquencourt Copyright 2005 - 2010 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the ...
b07757d061755782252d0f41a91edff7787c7d9eecb486afe814d6d86614c6bd
jeaye/safepaste
remote.cljs
(ns com.jeaye.safepaste.remote (:require [com.jeaye.safepaste.dom :as dom] [goog.crypt.base64 :as b64] [cljs-http.client :as http] [cljs.core.async :refer [<!]] [dommy.core :as dommy :refer-macros [sel1]] [cljs-promises.async :refer-macros [<?]]) (:require...
null
https://raw.githubusercontent.com/jeaye/safepaste/646232d1adb1ed9a6b76f26636753e196145c43c/src/cljs/com/jeaye/safepaste/remote.cljs
clojure
Sane default; provided by the server during login TODO: Right? Unique session token required for pasting Extractable (println "exporting key" key-data) Extractable TODO: Random ivs
(ns com.jeaye.safepaste.remote (:require [com.jeaye.safepaste.dom :as dom] [goog.crypt.base64 :as b64] [cljs-http.client :as http] [cljs.core.async :refer [<!]] [dommy.core :as dommy :refer-macros [sel1]] [cljs-promises.async :refer-macros [<?]]) (:require...
61ce735d70ade8404753c3cc8d5ad9b1d5c665a5a4a711c87ccbf983743d244a
coq/coq
vernacinterp.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/309a71cd105eee9c6f2ba380fe6f6005ff7afeb8/vernac/vernacinterp.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
b82ec913766bebca484a91a4729a8b42113925ee3d012088769abbe1a31cced4
mfelleisen/Fish
circular.rkt
#lang racket (provide create-circular-list-stream) ;; --------------------------------------------------------------------------------------------------- (define (create-circular-list-stream v) (circular-list-stream v 0 (length v))) (struct circular-list-stream (v i l) #:methods gen:stream [(define (stream-emp...
null
https://raw.githubusercontent.com/mfelleisen/Fish/59e29c9f6d0442bf3f4fcc0c9a9c76272472ecd9/Lib/circular.rkt
racket
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
#lang racket (provide create-circular-list-stream) (define (create-circular-list-stream v) (circular-list-stream v 0 (length v))) (struct circular-list-stream (v i l) #:methods gen:stream [(define (stream-empty? stream) #false) (define (stream-first stream) (list-ref (circular-list-stream-v stream) (ci...
0902f28d36cf642b07ce04990d8d1f26da6f0b9204993cabdd9655ada7daec67
pgj/mirage-kfreebsd
datagram.ml
* Copyright ( c ) 2011 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS...
null
https://raw.githubusercontent.com/pgj/mirage-kfreebsd/0ff5b2cd7ab0975e3f2ee1bd89f8e5dbf028b102/packages/mirage-net/lib/datagram.ml
ocaml
TODO: set src addr here also XXX eventually random TODO: select the right interface to route from
* Copyright ( c ) 2011 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS...
513c7c95d1916136ac04d87dbdedbc9b1806e407ddd96c3cdfb466cef8691d83
digitallyinduced/ihp-forum
Prelude.hs
module Admin.Controller.Prelude ( module Admin.Types , module Application.Helper.Controller , module IHP.ControllerPrelude , module Generated.Types ) where import Admin.Types import Application.Helper.Controller import IHP.ControllerPrelude import Generated.Types
null
https://raw.githubusercontent.com/digitallyinduced/ihp-forum/ac36ad4ab5dfe7b3aa85ea92d642aec12e4fa6ad/Admin/Controller/Prelude.hs
haskell
module Admin.Controller.Prelude ( module Admin.Types , module Application.Helper.Controller , module IHP.ControllerPrelude , module Generated.Types ) where import Admin.Types import Application.Helper.Controller import IHP.ControllerPrelude import Generated.Types
8323ed5b90df38ab960c67403ad2bcc312788c6b621a75c72f6c07e1d50b9f58
flipstone/haskell-for-beginners
1_hello_world.hs
-- Define an action below that will print a hello world message. -- Execute the program in GHCI. import Control.Monad (when) helloWorld = undefined -- Add a type declaration for helloWorld. -- Write, compile and run a hello world program from scratch -- in another file. -- see 1_hello_world / helloworld.hs -- De...
null
https://raw.githubusercontent.com/flipstone/haskell-for-beginners/e586a1f3ef08f21d5181171fe7a7b27057391f0b/problems/chapter_09/1_hello_world.hs
haskell
Define an action below that will print a hello world message. Execute the program in GHCI. Add a type declaration for helloWorld. Write, compile and run a hello world program from scratch in another file. Define a function that takes a secret string and returns an action that will ask the user to guess the secr...
import Control.Monad (when) helloWorld = undefined see 1_hello_world / helloworld.hs numbers , but always produces 9 . response , but ensure there is only one space between words Define an action that will ask the user 3 questions before they may pass over the bridge . The first two questions alway...
ce1ef9138f6620b0cfd7b5757b261ed043aa541f404556281aa1b6030719f3c6
ngorogiannis/cyclist
sequent.mli
open Lib * Sequent signature used as input to most functors in Cyclist . module type S = sig type t val equal : t -> t -> bool * " Syntactic " equality . Used to check that closing an open [ NODE ] is done via another one marked with a syntactically equal sequent . via another one marked with a sy...
null
https://raw.githubusercontent.com/ngorogiannis/cyclist/c93a168d586b308ab2a2c730cd1b2375ab263167/src/generic/sequent.mli
ocaml
* Returns set of tags in sequent.
open Lib * Sequent signature used as input to most functors in Cyclist . module type S = sig type t val equal : t -> t -> bool * " Syntactic " equality . Used to check that closing an open [ NODE ] is done via another one marked with a syntactically equal sequent . via another one marked with a sy...
3eb92497da11b0b44ac0cbdc7c57246790b049a519f370c583fda48ea8d80b74
manshengyang/minikanren-ocaml
mk.ml
(* represent a constant value *) type const_value = | Bool of bool | Int of int | String of string | Char of char | Float of float let string_of_const_value v = match v with | Int i -> string_of_int i | String s -> s | Bool b -> string_of_bool b | Char c -> Char.escaped c | Float f -> s...
null
https://raw.githubusercontent.com/manshengyang/minikanren-ocaml/b99f943b4ca6de2d194ee74a414fd33b67fc5e99/mk.ml
ocaml
represent a constant value represent a logic term walk occurs_check ext_s ext_s_check: check for cycles before extending unify walk* reify-n reify-s bind bind*: short-circuiting implementation We do not have exist/fresh construct, * the equivalent construct is: * let x = fresh () in [...] ...
type const_value = | Bool of bool | Int of int | String of string | Char of char | Float of float let string_of_const_value v = match v with | Int i -> string_of_int i | String s -> s | Bool b -> string_of_bool b | Char c -> Char.escaped c | Float f -> string_of_float f type var_id = i...
b70d52107419e35171cd51d2fbe2c53474f11fd083932b96801fa1aa519703db
poscat0x04/telegram-types
SetGameScore.hs
module Web.Telegram.Types.Internal.API.SetGameScore where import Common data SetGameScore = SetGameScore { userId :: Int, score :: Int, force :: Maybe Bool, disableEditMessage :: Maybe Bool, chatId :: Maybe Int, messageId :: Maybe Int, inlineMessageId :: Maybe Text } deriving stock (Show...
null
https://raw.githubusercontent.com/poscat0x04/telegram-types/3de0710640f5303638a83e409001b0342299aeb8/src/Web/Telegram/Types/Internal/API/SetGameScore.hs
haskell
module Web.Telegram.Types.Internal.API.SetGameScore where import Common data SetGameScore = SetGameScore { userId :: Int, score :: Int, force :: Maybe Bool, disableEditMessage :: Maybe Bool, chatId :: Maybe Int, messageId :: Maybe Int, inlineMessageId :: Maybe Text } deriving stock (Show...
526e5d8c6321fb35c7e0068a3a823694a90f0e816e6b40a7109877701dd30388
instedd/planwise
subs.cljs
(ns planwise.client.subs (:require [re-frame.core :as rf] [planwise.client.coverage] [planwise.client.projects2.subs] [planwise.client.sources.subs] [planwise.client.providers-set.subs] [planwise.client.regions.subs] [planwise.client.scenarios.su...
null
https://raw.githubusercontent.com/instedd/planwise/1bc2a5742ae3dc377dddf1f9e9bb60f0d2f59084/client/src/planwise/client/subs.cljs
clojure
Subscriptions -------------------------------------------------------
(ns planwise.client.subs (:require [re-frame.core :as rf] [planwise.client.coverage] [planwise.client.projects2.subs] [planwise.client.sources.subs] [planwise.client.providers-set.subs] [planwise.client.regions.subs] [planwise.client.scenarios.su...
c7c8208fc6ecd833aacb8c149e3dc7bd8418e991165119e2bfbc42a6de5c8e72
expipiplus1/orbits
Doctests.hs
module Main where import Build_doctests ( flags , module_sources , pkgs ) import Test.DocTest ( doctest ) main :: IO () ...
null
https://raw.githubusercontent.com/expipiplus1/orbits/6cc5c43f50aadc7517a6677ca04363b492474a6a/test/doctest/Doctests.hs
haskell
module Main where import Build_doctests ( flags , module_sources , pkgs ) import Test.DocTest ( doctest ) main :: IO () ...
834df0dca0a55872ad2e9a99c2d2c4288d043892030d97499e711ba7ffb1c4aa
dbuenzli/vg
alphas.ml
--------------------------------------------------------------------------- Copyright ( c ) 2013 The vg programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/vg/2d0cd56636a17280fe938ecaafc6402383dca1f3/db/alphas.ml
ocaml
* Test images for alpha blending.
--------------------------------------------------------------------------- Copyright ( c ) 2013 The vg programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...