_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
6836b4ef12d3675745bd8c8c63a15288801dbfec14b2f252ae8d882d07af286e
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PostSetupIntentsIntentCancel.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the different functions to run the operation postSetupIntentsIntentCancel module...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/PostSetupIntentsIntentCancel.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | > POST /v1/setup_intents/{intent}/cancel | The request body to send | Monadic computation which returns the result of the operation | Defines the object schema located at @paths.\/v1\/setup_intents\/{intent}\/cancel.POST.requestB...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the different functions to run the operation postSetupIntentsIntentCancel module StripeAPI.Operations.PostSetupIntentsIntentCancel where import qualified Control.Monad.Fail i...
da6599fa1005d42cce079acec43a80155cc840eb9dfc622dd681302d5b41f597
avsm/eeww
buf_read.ml
exception Buffer_limit_exceeded type t = { mutable buf : Cstruct.buffer; mutable pos : int; mutable len : int; mutable flow : Flow.source option; (* None if we've seen eof *) mutable consumed : int; (* Total bytes consumed so far *) max_size : int; } type 'a parser = t -> 'a let return =...
null
https://raw.githubusercontent.com/avsm/eeww/684af99c194ff082836dbb1ada05c8a023dbd844/lib/eio/lib_eio/buf_read.ml
ocaml
None if we've seen eof Total bytes consumed so far We don't have enough data yet, so we'll need to do a read. If the buffer is empty, we might as well use all of it: [n] bytes won't fit. We need to resize the buffer. Skip isn't atomic, so discard everything in this case for consistency.
exception Buffer_limit_exceeded type t = { mutable buf : Cstruct.buffer; mutable pos : int; mutable len : int; max_size : int; } type 'a parser = t -> 'a let return = Fun.const let map f x r = f (x r) let pair x y r = let a = x r in let b = y r in a, b let bind x f r = f (x r) r module Syntax = str...
617a6239613b05e4d1f8e73f71aa3d17b2479aefa730598ac5d2c73962a42605
senapk/funcional_arcade
solver.hs
sequencia 0 x = [] sequencia n m = m:(sequencia (n-1) (m+1))
null
https://raw.githubusercontent.com/senapk/funcional_arcade/70fa04b4799d5a8c7e5add39d9f217f38f418600/base/032/solver.hs
haskell
sequencia 0 x = [] sequencia n m = m:(sequencia (n-1) (m+1))
5dc601fc897763e0163fcb76d762727e839020da539730761fbaed9b7f8c2e1d
stepcut/plugins
Plugin1.hs
module Plugin1 where import API import Data.Char resource = plugin { valueOf = map toUpper }
null
https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/multi/3plugins/Plugin1.hs
haskell
module Plugin1 where import API import Data.Char resource = plugin { valueOf = map toUpper }
e620566ca43189a34e6367a44353e02a203287167b5780a4e4d39e3830b1e0b6
haskell-opengl/OpenGLRaw
Evaluators.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.Evaluators Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ----------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/Evaluators.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.Evaluators License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.Evaluators ( glGetNVEvaluators, gl_NV_evaluators, pattern GL_EVAL_2D_NV, pattern GL_EVAL_FRACTIONAL_TESSELLATION_NV, pattern GL_EVAL_TRIANGULAR_2D_NV, pattern GL_EVAL_VERTEX_ATTRIB0_NV, pattern GL...
bbcf8b875b3deb471e7c0b11c43833a8f8413814449aaac9bb5f8bed831d2387
VitorCBSB/HetrisV2
CountingDown.hs
module CountingDown ( inputCountingDown, tickCountingDown, renderCountingDown, ) where import Constants (windowSize) import Control.Lens import qualified Data.Text as T import Game (renderGame) import InitialStates (initialPauseState) import qualified SDL import qualified SDL.Mixer as Mixer import Types im...
null
https://raw.githubusercontent.com/VitorCBSB/HetrisV2/2544e8ce56a4d0daba9126642118f0504215f742/app/CountingDown.hs
haskell
module CountingDown ( inputCountingDown, tickCountingDown, renderCountingDown, ) where import Constants (windowSize) import Control.Lens import qualified Data.Text as T import Game (renderGame) import InitialStates (initialPauseState) import qualified SDL import qualified SDL.Mixer as Mixer import Types im...
c75c1ed1b749909b6a85ef7616912682083827f3e25d0207b491ee8e08435ff9
harpocrates/language-rust
DiffUtils.hs
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 800 # OPTIONS_GHC -Wno - missing - methods # #endif module DiffUtils where import qualified Data.Aeson as Aeson import qualified Data.HashMap.Lazy as HM import qualified Data.Vector as V import qualified Data.List.NonEmpty as N import Control.Monad import Data.String import ...
null
https://raw.githubusercontent.com/harpocrates/language-rust/9d509c450d009cc99f1180b3f2f30247dfb1cfce/test/rustc-tests/DiffUtils.hs
haskell
| This type is a straightforward hack to let me index by both 'String' and 'Int' in '(!)' below. | Accessor method for JSON with helpful error messages. | Pretty print 'Value' | Accessor method for JSON which fails with 'Nothing' | This lets us do whatever we want while comparing @rustc@ with our parser | This da...
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 800 # OPTIONS_GHC -Wno - missing - methods # #endif module DiffUtils where import qualified Data.Aeson as Aeson import qualified Data.HashMap.Lazy as HM import qualified Data.Vector as V import qualified Data.List.NonEmpty as N import Control.Monad import Data.String import ...
be7695ef01f4fd8339b920b77a32cb57d6b83f45cf00529e680a327a9dc0a302
matthiasn/systems-toolbox
index.clj
(ns example.index (:require [hiccup.core :refer [html]])) (defn index-page "Generates index page HTML with the specified page title." [dev?] (html [:html {:lang "en"} [:head [:meta {:name "viewport" :content "width=device-width, minimum-scale=1.0"}] [:title "Systems-Toolbox: Trail...
null
https://raw.githubusercontent.com/matthiasn/systems-toolbox/6bcc44af449b4a5d4e9128cd0f2129b58619a5dc/examples/trailing-mouse-pointer/src/clj/example/index.clj
clojure
i[r]=i[r]||function(){ a=s.createElement(o), a.src = g;m.parentNode.insertBefore(a , m ) ga('send', 'pageview');")]]]))
(ns example.index (:require [hiccup.core :refer [html]])) (defn index-page "Generates index page HTML with the specified page title." [dev?] (html [:html {:lang "en"} [:head [:meta {:name "viewport" :content "width=device-width, minimum-scale=1.0"}] [:title "Systems-Toolbox: Trail...
ae2da6ac1ccd33d000550125595883f566e08690bae7bf6dbb3e2cf97aef20b7
jqueiroz/lojban.io
Translations.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # -- | This module defines translations for the course. module Study.Courses.English.Vocabulary.Brivla.Translations where import Core import Study.Framework.Lojban.TranslationLoaders (loadTranslationsByExpressionFromYamlCode) import Data.FileEmbed (embedSt...
null
https://raw.githubusercontent.com/jqueiroz/lojban.io/68c3e919f92ea1294f32ee7772662ab5667ecef6/haskell/src/Study/Courses/English/Vocabulary/Brivla/Translations.hs
haskell
# LANGUAGE OverloadedStrings # | This module defines translations for the course. | Translations for the corresponding lesson. | Translations for the corresponding lesson. | Translations for the corresponding lesson. | Translations for the corresponding lesson. | Translations for the corresponding lesson. | All ...
# LANGUAGE TemplateHaskell # module Study.Courses.English.Vocabulary.Brivla.Translations where import Core import Study.Framework.Lojban.TranslationLoaders (loadTranslationsByExpressionFromYamlCode) import Data.FileEmbed (embedStringFile) translationsByExpression01 :: TranslationsByExpression translationsByExpressio...
fe6b108b99dec7e1c336eb1ed820bd8ce8e835cf1fb611200f3bf5917804ad2e
uzh/ask
model.mli
module AnswerInput : sig type uuid = string option type filename = string type size = int type mime_type = string type data = string type text_answer = string type asset_answer = uuid * filename * size * mime_type * data type t = | Text of text_answer | Asset of asset_answer val to_yojson : ...
null
https://raw.githubusercontent.com/uzh/ask/5ba939c7ccbe20251b26f8d691635d94e65e518f/ask/src/model/model.mli
ocaml
module AnswerInput : sig type uuid = string option type filename = string type size = int type mime_type = string type data = string type text_answer = string type asset_answer = uuid * filename * size * mime_type * data type t = | Text of text_answer | Asset of asset_answer val to_yojson : ...
fdb8af4c5da5c423abc9969f55294d2226a2cbe5dc25d47691119542e0ca1aa4
anoma/juvix
Positive.hs
module Reachability.Positive where import Base import Data.HashSet qualified as HashSet import Juvix.Compiler.Builtins (iniState) import Juvix.Compiler.Internal.Language qualified as Internal import Juvix.Compiler.Internal.Translation.FromInternal.Analysis.TypeChecking.Data.Context qualified as Internal import Juvix.C...
null
https://raw.githubusercontent.com/anoma/juvix/5ab9969a9587798a0094d2d575d083e3aef6e612/test/Reachability/Positive.hs
haskell
module Reachability.Positive where import Base import Data.HashSet qualified as HashSet import Juvix.Compiler.Builtins (iniState) import Juvix.Compiler.Internal.Language qualified as Internal import Juvix.Compiler.Internal.Translation.FromInternal.Analysis.TypeChecking.Data.Context qualified as Internal import Juvix.C...
7f45f9e8da50ede5edf0c04b59e462dacb1d07339aabc8b89993f50e80f71cf9
manuel-serrano/bigloo
des.scm
(module __crypto-des (import __crypto-util __crypto-block-ciphers) (static (final-class DES-Param (buff32a::bstring read-only) (buff32b::bstring read-only) (buff64::bstring read-only) (keys::bstring read-only) (initial-permutation?::bool read-only)) (final-class DES3...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api/crypto/src/Llib/des.scm
scheme
real key-size --- byte oriented: each byte represents a bit. -> faster... len in bits. from is native bits to is our byte-oriented representation. from is our byte-oriented representation. to is native bits ------ bit-oriented (define (octet-ref str i) (char->integer (string-ref str i))) (define (permutation-...
(module __crypto-des (import __crypto-util __crypto-block-ciphers) (static (final-class DES-Param (buff32a::bstring read-only) (buff32b::bstring read-only) (buff64::bstring read-only) (keys::bstring read-only) (initial-permutation?::bool read-only)) (final-class DES3...
e111047d6573052a236882bed086994f1322874496109ff2b5b93192bdbe2151
ostera/serde.ml
sequence_access.ml
type ('value, 'error) t = { next_element : 'element_value. deser_element:(unit -> ('element_value, 'error Error.de_error) result) -> ('element_value option, 'error Error.de_error) result; } let next_element t ~deser_element = t.next_element ~deser_element
null
https://raw.githubusercontent.com/ostera/serde.ml/ed4d0d1e3ec9b017904cb9497f9d81677e6b36a3/serde/de/sequence_access.ml
ocaml
type ('value, 'error) t = { next_element : 'element_value. deser_element:(unit -> ('element_value, 'error Error.de_error) result) -> ('element_value option, 'error Error.de_error) result; } let next_element t ~deser_element = t.next_element ~deser_element
00a458eb542a2410bb336e966ce0b871ca3ef1e374f5aaf880c3a00b6d4d219a
Elzair/nazghul
bill.scm
;;---------------------------------------------------------------------------- ;; Constants ;;---------------------------------------------------------------------------- (define bill-start-lvl 3) ;;---------------------------------------------------------------------------- ;; Schedule ;; In Bole . ;;-------------...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/bill.scm
scheme
---------------------------------------------------------------------------- Constants ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Schedule ------------------------------------------------------------------...
(define bill-start-lvl 3) In Bole . (kern-mk-sched 'sch_bill (list 0 0 bole-bed-bill "sleeping") (list 6 0 bole-table-1 "idle") (list 7 0 bole-n-woods "working") (list 12 0 bole-table-2 "eating") (list 13 0 bole-n-woods "working")...
f08830b300f9ae649dc718e24942358ba81b4a26931af6c8dcfd72d89b3a0c5f
nextjournal/viewers
d3_require.cljs
(ns nextjournal.ui.components.d3-require (:require ["d3-require" :as d3] [applied-science.js-interop :as j] [reagent.core :as r])) (defn with [{:keys [package loading-view] :or {loading-view "Loading..."}} f] (r/with-let [!package (r/atom nil)] (case @!package ...
null
https://raw.githubusercontent.com/nextjournal/viewers/1a8e3300601780dccb18d5548f7d35b31b7934f9/modules/ui/src/nextjournal/ui/components/d3_require.cljs
clojure
Usage
(ns nextjournal.ui.components.d3-require (:require ["d3-require" :as d3] [applied-science.js-interop :as j] [reagent.core :as r])) (defn with [{:keys [package loading-view] :or {loading-view "Loading..."}} f] (r/with-let [!package (r/atom nil)] (case @!package ...
9890fab231e867162b7e8d6993764ea2d9ad8e2878dc8d13f420b488ae7354fa
nyu-acsys/drift
exception.ml
Leroy & Pessaux , " Type - Based Analysis of Uncaught Exceptionis , " TOPLAS , 2000 let ff n = if n > = 0 then ( ) else raise 0 in try ff ? n ? with Failer 0 - > ( ) Leroy & Pessaux, "Type-Based Analysis of Uncaught Exceptionis, " TOPLAS, 2000 let ff n = if n >= 0 then () else raise 0 in try ff ?n? with F...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/high/exception.ml
ocaml
-:{v:Int | true}
Leroy & Pessaux , " Type - Based Analysis of Uncaught Exceptionis , " TOPLAS , 2000 let ff n = if n > = 0 then ( ) else raise 0 in try ff ? n ? with Failer 0 - > ( ) Leroy & Pessaux, "Type-Based Analysis of Uncaught Exceptionis, " TOPLAS, 2000 let ff n = if n >= 0 then () else raise 0 in try ff ?n? with F...
e89d2ba2fdeccadc24c825f7b083daf3be4516c7a64a65912413ed8d92317463
kappelmann/eidi2_repetitorium_tum
Comparable.mli
module type Comparable = sig type value val is_smaller : value -> value -> bool val is_equal : value -> value -> bool end
null
https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/2017/ocaml/functors/case_example_priority_queue/Comparable.mli
ocaml
module type Comparable = sig type value val is_smaller : value -> value -> bool val is_equal : value -> value -> bool end
4687c974717172ec2eddf5514a83cb9eda1bc9cff790881d3a7e944ee6f3a280
amccausl/Swish
GraphPartitionTest.hs
-------------------------------------------------------------------------------- $ I d : GraphPartitionTest.hs , v 1.2 2004/02/10 20:24:48 graham Exp $ -- Copyright ( c ) 2003 , . All rights reserved . -- See end of this file for licence information. ---------------------------------------------------...
null
https://raw.githubusercontent.com/amccausl/Swish/9a7356300960c62e3f0468067bda0c34ee3606bd/Swish/HaskellRDF/GraphPartitionTest.hs
haskell
------------------------------------------------------------------------------ See end of this file for licence information. ------------------------------------------------------------------------------ | Module : GraphPartitionTest Stability : provisional Portability : H98 This modul...
$ I d : GraphPartitionTest.hs , v 1.2 2004/02/10 20:24:48 graham Exp $ Copyright ( c ) 2003 , . All rights reserved . Copyright : ( c ) 2003 , License : GPL V2 Maintainer : module Swish . HaskellRDF.GraphPartitionTest where import Swish.HaskellRDF.GraphPartition ...
e1d08de796496ef63f10fc551e20ff315692907e75f6d437cc0ac6c80b7b964d
mdebski/zpf-outsidein
Main.hs
import OIDefs import OIMonad import ConGen import Solve import OutsideIn import Control.Exception import Control.Monad stdlib :: OIExpr -> OIExpr stdlib = foldl (.) id -- Some types and standard functions, without real implementations, but with correct types. [ LetD "T" [(-1)] [ ("T1", [], [CEq (TVar (-1)) TB...
null
https://raw.githubusercontent.com/mdebski/zpf-outsidein/10b0ed6c4346b348c188c582a4b0381d34f28f2d/Main.hs
haskell
Some types and standard functions, without real implementations, but with correct types. apply function to subsequent arguments
import OIDefs import OIMonad import ConGen import Solve import OutsideIn import Control.Exception import Control.Monad stdlib :: OIExpr -> OIExpr stdlib = foldl (.) id [ LetD "T" [(-1)] [ ("T1", [], [CEq (TVar (-1)) TBool], [TInt]), ("T2", [], [], [TVar (-1)]) ] , LetD "Pair" [(-2), (-3)] [ ("Mk...
6df3d2a6999a32e8557e834a8d64dac6bd02cf160123e6c4948a758c9da818ed
vaibhavsagar/experiments
XmlNode.hs
module Dotnet.System.Xml.XmlNode ( module Dotnet.System.Xml.XmlNode, module Dotnet.System.Xml.XmlNodeTy ) where import Dotnet import qualified Dotnet.System.Object import Dotnet.System.Xml.XmlNodeTy import Dotnet . System . Xml . . XPathNavigator import Dotnet.System.Xml.XmlElementTy import Dotnet.System.Xml.Xm...
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/Xml/XmlNode.hs
haskell
module Dotnet.System.Xml.XmlNode ( module Dotnet.System.Xml.XmlNode, module Dotnet.System.Xml.XmlNodeTy ) where import Dotnet import qualified Dotnet.System.Object import Dotnet.System.Xml.XmlNodeTy import Dotnet . System . Xml . . XPathNavigator import Dotnet.System.Xml.XmlElementTy import Dotnet.System.Xml.Xm...
849f62a221d405a4b17131d64679ad1d82359860305ccc46b498ce2e3a5b47f9
penpot/penpot
fills.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.main.ui.shapes.fills (:require [app.common.data :as d] [app.common.data.macros :as dm] [app...
null
https://raw.githubusercontent.com/penpot/penpot/5463671db13441ba3f730a34118547d34a5a36f1/frontend/src/app/main/ui/shapes/fills.cljs
clojure
Copyright (c) KALEIDOS INC When true the image has not loaded yet
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.main.ui.shapes.fills (:require [app.common.data :as d] [app.common.data.macros :as dm] [app.common.geom.shapes :as gsh] [...
c0432c774ca3c8b261001a1a44525b8a79ff3a626a983e7760872d59a5d98e1f
dgiot/dgiot
dgiot_tables.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. 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 copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/c9f2f78af71692ba532e4806621b611db2afe0c9/apps/dgiot/src/storage/dgiot_tables.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 ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. 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(dgiot_tables). -export([ new/1 , new/2 ]). -export([ lookup_value/2 ...
6c947259fdcc55374f074ac7c0c8de16537c4fc5dfb6ef8941a804c6f47a7d5d
modular-macros/ocaml-macros
t090-acc7.ml
open Lib;; let x = true in let y = false in let z = false in let a = false in let b = false in let c = false in let d = false in let e = false in (); if not x then raise Not_found ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 CONST1 10 PUSHCONS...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/tool-ocaml/t090-acc7.ml
ocaml
open Lib;; let x = true in let y = false in let z = false in let a = false in let b = false in let c = false in let d = false in let e = false in (); if not x then raise Not_found ;; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 CONST1 10 PUSHCONS...
a49c3c36edf8229212d49b6a866260bdd87cfbb1141d573bddbc53952f0c9ba5
Toxaris/pts
Telescope.hs
module PTS.Syntax.Telescope ( Telescope , foldTelescope ) where import PTS.Syntax.Names type Telescope t = [([Name], t)] | a telescope in a binder with multiple arguments like this : -- -- > lambda (x1 : e1) (x2 x3 : e2) . e -- -- to a series of nested single argument binders: -- -- > lambda x1 : e1 . lambd...
null
https://raw.githubusercontent.com/Toxaris/pts/1700024f47bc9d28528b68fc815d2421f5d25b84/src-lib/PTS/Syntax/Telescope.hs
haskell
> lambda (x1 : e1) (x2 x3 : e2) . e to a series of nested single argument binders: > lambda x1 : e1 . lambda x2 : e2 . lambda x3 : e2 . e
module PTS.Syntax.Telescope ( Telescope , foldTelescope ) where import PTS.Syntax.Names type Telescope t = [([Name], t)] | a telescope in a binder with multiple arguments like this : foldTelescope :: (Name -> a -> b -> b) -> Telescope a -> b -> b foldTelescope mk [] body = body foldTelescope mk (([], _) : a...
fa6007b9cbd8e56786e8775be47154a5eb1cda8bf981b78a05c662805ffb825f
graninas/Functional-Design-and-Architecture
Domain.hs
module Andromeda.LogicControl.Domain where type Message = String type Key = String data LogicFailure = LogicFailure String deriving (Show, Eq, Ord)
null
https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/f19c1fc5c28014545d4098edf8fc438d93e66048/Second-Edition-Manning-Publications/BookSamples/CH06/Section6p2/src/Andromeda/LogicControl/Domain.hs
haskell
module Andromeda.LogicControl.Domain where type Message = String type Key = String data LogicFailure = LogicFailure String deriving (Show, Eq, Ord)
822719f5c6f0319e8ec7a71c072aed1776d6b69e97c5caea468ca7ceb1a3b0c2
skanev/playground
71-tests.scm
(require rackunit rackunit/text-ui) (load "../71.scm") (define sicp-3.71-tests (test-suite "Tests for SICP exercise 3.71" (check-equal? (stream-take (ramanujan-numbers) 6) '(1729 4104 13832 20683 32832 39312)) )) (run-tests sicp-3.71-tests)
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/03/tests/71-tests.scm
scheme
(require rackunit rackunit/text-ui) (load "../71.scm") (define sicp-3.71-tests (test-suite "Tests for SICP exercise 3.71" (check-equal? (stream-take (ramanujan-numbers) 6) '(1729 4104 13832 20683 32832 39312)) )) (run-tests sicp-3.71-tests)
d8082ad53d467656421360135a8b0188828b75ccbe26a446b6a79d40f259965b
kadena-io/chainweaver
Legacy.hs
# LANGUAGE TemplateHaskell # module Frontend.UI.Dialogs.Receive.Legacy ( ReceiveFromLegacy (..) , HasReceiveFromLegacy (..) , NonBIP32TransferInfo (..) , HasNonBIP32TransferInfo (..) , uiReceiveFromLegacy , receiveFromLegacySubmitTransfer , receiveFromLegacySubmit ) where import Control.Applicative (li...
null
https://raw.githubusercontent.com/kadena-io/chainweaver/c7077869f7aca07697ef9e129a1948889e821e26/frontend/src/Frontend/UI/Dialogs/Receive/Legacy.hs
haskell
# LANGUAGE TemplateHaskell # module Frontend.UI.Dialogs.Receive.Legacy ( ReceiveFromLegacy (..) , HasReceiveFromLegacy (..) , NonBIP32TransferInfo (..) , HasNonBIP32TransferInfo (..) , uiReceiveFromLegacy , receiveFromLegacySubmitTransfer , receiveFromLegacySubmit ) where import Control.Applicative (li...
66a5d57de393493a33a518aa8053526e487acff57fed4e303a1d88cdd88e8cd4
alexandergunnarson/quantum
cpp.cljc
(ns quantum.compile.transpile.to.cpp)
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/compile/transpile/to/cpp.cljc
clojure
(ns quantum.compile.transpile.to.cpp)
38e27918b4fc739ccedac8ad76120a033e9d2106d53d4100ece50fb9a5943fee
Eduap-com/WordMat
ratpow.lisp
ratpow version 0.3 4 June 2015 ;;; Copyright 2013 - 2015 ;;; Released under the LGPL () These functions operate on the * numerator * of a CRE ;;; to find the exponents in the denominator, use ratXXpow(ratdenom(...)) ratp_hipow -- highest power of the main variable in a CRE polynomial ratp_lopow -- lowest...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/contrib/ratpow.lisp
lisp
Released under the LGPL () to find the exponents in the denominator, use ratXXpow(ratdenom(...)) ratp_coeffs -- list of powers and coefficients of the main variable ratp_hipow( expr, var ) => highest power of var in ratnumer(expr) ratp_lopow( expr, var ) => lowest power of var in ratnumer(expr) ratp_coeffs( exp...
ratpow version 0.3 4 June 2015 Copyright 2013 - 2015 These functions operate on the * numerator * of a CRE ratp_hipow -- highest power of the main variable in a CRE polynomial ratp_lopow -- lowest power of the main variable in a CRE polynomial ratp_dense_coeffs -- list of coefficients of the main variab...
993cf91865ae0e32fa78e8431f00409c4971cf4b9b1b4d9b78f690407fa6d07e
untangled-web/untangled-spec
assertions_spec.clj
(ns untangled-spec.assertions-spec (:require [clojure.spec :as s] [clojure.test :as t :refer [is]] [untangled-spec.assertions :as ae :refer [check-error check-error* parse-criteria]] [untangled-spec.contains :refer [*contains?]] [untangled-spec.core :refer [specification component behavi...
null
https://raw.githubusercontent.com/untangled-web/untangled-spec/0d44863f627ed7311677b438b88bd6d424249507/test/untangled_spec/assertions_spec.clj
clojure
(ns untangled-spec.assertions-spec (:require [clojure.spec :as s] [clojure.test :as t :refer [is]] [untangled-spec.assertions :as ae :refer [check-error check-error* parse-criteria]] [untangled-spec.contains :refer [*contains?]] [untangled-spec.core :refer [specification component behavi...
e7c770e4addd3df865fbc5efe4f0e371b2c58d20f904fd7aa519d7e18f598998
oakes/Nightcode
web.clj
(ns leiningen.new.web (:require [leiningen.new.templates :as t])) (defn web [name package-name] (let [render (t/renderer "web") package-name (t/sanitize (t/multi-segment (or package-name name))) main-ns (t/sanitize-ns package-name) data {:app-name name :name (t/project-name ...
null
https://raw.githubusercontent.com/oakes/Nightcode/2e112c59cddc5fdec96059a08912c73b880f9ae8/resources/leiningen/new/web.clj
clojure
(ns leiningen.new.web (:require [leiningen.new.templates :as t])) (defn web [name package-name] (let [render (t/renderer "web") package-name (t/sanitize (t/multi-segment (or package-name name))) main-ns (t/sanitize-ns package-name) data {:app-name name :name (t/project-name ...
ada1375f7c11c614e7bf3c65cc930f58ad31ccc02d341c1ecf9150c0e84d547e
Frama-C/Frama-C-snapshot
wpPropId.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/wpPropId.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
9a1e82d6d966a2b513febe7fc8d3e231cb08aa382ce51abe082086fc55f6fdaa
electric-sql/vaxine
antidote_hooks.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/872a83ea8d4935a52c7b850bb17ab099ee9c346b/apps/antidote/src/antidote_hooks.erl
erlang
------------------------------------------------------------------- > Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
e143296b8b57f565a8ab3690c0a4a936ad7b15af70ef84cf637eeffc63c49213
imdea-software/leap
Z3Symmetry.ml
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/solvers/backend/query/z3/Z3Symmetry.ml
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
7651423c4ba1ff0f197e34c73d4a7a278e8f034bb1c534a70edabd5583036cba
slindley/effect-handlers
OlegIteratees.hs
original implementation of iteratees . This example demonstrates that iteratees are algebraic computations and enumerators are effect handlers . It is a transcription of the code from Section 3 of 's FLOPS 2012 paper , Iteratees : Oleg Kiselyov's original implementation of iterat...
null
https://raw.githubusercontent.com/slindley/effect-handlers/39d0d09582d198dd6210177a0896db55d92529f4/Examples/OlegIteratees.hs
haskell
# LANGUAGE BangPatterns #
original implementation of iteratees . This example demonstrates that iteratees are algebraic computations and enumerators are effect handlers . It is a transcription of the code from Section 3 of 's FLOPS 2012 paper , Iteratees : Oleg Kiselyov's original implementation of iterat...
bb151b53be0db322ffa7057b243b13d5542ccb7db6e47cc5f4473b3501086019
erikd/haskell-big-integer-experiment
Integer.hs
# LANGUAGE NoImplicitPrelude , MagicHash # # OPTIONS_GHC -fno - warn - orphans # * All * of this code was ripped from the GHC sources . We need this because the Integer we are compiling and testing is * not * the same as the Integer GHC already knows about . module Simple.Integer ( module Simple.GHC.Integer...
null
https://raw.githubusercontent.com/erikd/haskell-big-integer-experiment/7841ec3fcc5be219fa16963849bd12137112f8a9/Simple/Integer.hs
haskell
# LANGUAGE NoImplicitPrelude , MagicHash # # OPTIONS_GHC -fno - warn - orphans # * All * of this code was ripped from the GHC sources . We need this because the Integer we are compiling and testing is * not * the same as the Integer GHC already knows about . module Simple.Integer ( module Simple.GHC.Integer...
2e1fdbeb1d7213f0cd75a1514cbf47373f783edc2a1097a5b798b8d1db5b789e
min-ki/clojure-bootcamp
day4.clj
(ns aoc2018.day4 (:require [clojure.string :refer [split-lines]])) (def input (split-lines (slurp "resources/aoc2018/day4.txt"))) (def input-pattern #"\[(\d+)-(\d+)-(\d+)\s(\d+):(\d+)\]\s(.*)") (def guard-id-regex-pattern #"Guard #(\d+) begins shift") (defn get-guard-id [action] (last (re-matches guard-id-reg...
null
https://raw.githubusercontent.com/min-ki/clojure-bootcamp/2d9e6ebcc46894fbea7672e07c2008e62fad4d81/src/aoc2018/day4.clj
clojure
(ns aoc2018.day4 (:require [clojure.string :refer [split-lines]])) (def input (split-lines (slurp "resources/aoc2018/day4.txt"))) (def input-pattern #"\[(\d+)-(\d+)-(\d+)\s(\d+):(\d+)\]\s(.*)") (def guard-id-regex-pattern #"Guard #(\d+) begins shift") (defn get-guard-id [action] (last (re-matches guard-id-reg...
0728d65bd15586d8019d27b92518466a38889def116f6bb19d6a2d570592e366
chenyukang/eopl
check-modules.scm
(module check-modules (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "static-data-structures.scm") (require "checker.scm") (require "subtyping.scm") (provide type-of-program) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; type-of-p...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter8/simplemodules/check-modules.scm
scheme
type-of-program : Program -> Type add-module-defns-to-tenv : Listof(ModuleDefn) * Tenv -> Tenv interface-of : ModuleBody * Tenv -> Iface defns-to-decls : Listof(Defn) * Tenv -> Listof(Decl) at every step, so we get the correct let* scoping
(module check-modules (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "static-data-structures.scm") (require "checker.scm") (require "subtyping.scm") (provide type-of-program) Page : 286 (define type-of-program (lambda (pgm) (cases progra...
3db528a9170d6858a3889b5325991f34da4ba02ba5f653645246e6046975b969
madgen/exalog
RangeRestrictionSpec.hs
# LANGUAGE DataKinds # module Language.Exalog.RangeRestrictionSpec (spec) where import Protolude import Test.Hspec import qualified Fixture.RangeRestriction as RRes import qualified Fixture.DomainDependent as DDep import Language.Exalog.Annotation import qualified Language.Exalog.KnowledgeBase.Set as KB ...
null
https://raw.githubusercontent.com/madgen/exalog/7d169b066c5c08f2b8e44f5e078df264731ac177/test/Language/Exalog/RangeRestrictionSpec.hs
haskell
# LANGUAGE DataKinds # module Language.Exalog.RangeRestrictionSpec (spec) where import Protolude import Test.Hspec import qualified Fixture.RangeRestriction as RRes import qualified Fixture.DomainDependent as DDep import Language.Exalog.Annotation import qualified Language.Exalog.KnowledgeBase.Set as KB ...
7b93b8e95a3583a90f5f720946beaf879f3c164915efc4cb269a22930d379443
nkpart/kit
FlaggedFile.hs
module Kit.FlaggedFile ( FlaggedFile, flaggedFile, flaggedFilePath, flaggedFileFlags ) where import Kit.AbsolutePath as AF data FlaggedFile = FlaggedFile { flaggedFileAbsolutePath :: AbsolutePath, flaggedFileFlags :: String } deriving...
null
https://raw.githubusercontent.com/nkpart/kit/ed217ddbc90688350e52156503cca092c9bf8300/Kit/FlaggedFile.hs
haskell
module Kit.FlaggedFile ( FlaggedFile, flaggedFile, flaggedFilePath, flaggedFileFlags ) where import Kit.AbsolutePath as AF data FlaggedFile = FlaggedFile { flaggedFileAbsolutePath :: AbsolutePath, flaggedFileFlags :: String } deriving...
757b0e3cfd530dd69862feec3ca5da7eb59391b7cd820a8697a84a8edf2d4c43
goblint/analyzer
violationZ3.z3.ml
open Violation module WP (Node: MyARG.Node): Feasibility with module Node = Node = struct module Node = Node open Z3 open GoblintCil let cfg = [ ("model", "true"); ("unsat_core", "true"); (* TODO: do these do anything? are these necessary? *) (* ("smt.core.minimize", "true"); *) (* ("sat....
null
https://raw.githubusercontent.com/goblint/analyzer/2f29b8b20f1985022a0850d9396926f8f2fda6a8/src/witness/z3/violationZ3.z3.ml
ocaml
TODO: do these do anything? are these necessary? ("smt.core.minimize", "true"); ("sat.core.minimize", "true"); TODO: correct type in general TODO: correct type in general (env, Boolean.mk_true ctx) TODO: this doesn't exist in Z3 API? TODO: optimize subpath
open Violation module WP (Node: MyARG.Node): Feasibility with module Node = Node = struct module Node = Node open Z3 open GoblintCil let cfg = [ ("model", "true"); ("unsat_core", "true"); ] let ctx = mk_context cfg type var = varinfo module Var = CilType.Varinfo module type Env = sig ...
1aaa506c3daea783c7d0d4a07dee4a11fc19d4130ac321d301e5b421e8677e66
flipstone/orville
Where.hs
| Module : Database . Orville . PostgreSQL.Internal . Where Copyright : Flipstone Technology Partners 2016 - 2018 License : MIT Module : Database.Orville.PostgreSQL.Internal.Where Copyright : Flipstone Technology Partners 2016-2018 License : MIT -} # LANGUAGE FlexibleContexts # # LANGUAGE Existentia...
null
https://raw.githubusercontent.com/flipstone/orville/97824b2abbf34aa9ea495767691fbd06647342ff/orville-postgresql/src/Database/Orville/PostgreSQL/Internal/Where.hs
haskell
| Module : Database . Orville . PostgreSQL.Internal . Where Copyright : Flipstone Technology Partners 2016 - 2018 License : MIT Module : Database.Orville.PostgreSQL.Internal.Where Copyright : Flipstone Technology Partners 2016-2018 License : MIT -} # LANGUAGE FlexibleContexts # # LANGUAGE Existentia...
f362e405520c1280ba5c6d4ff515598dc88e030fe5d70f7a4d0cc10a20a3e71f
ChesleyTan/ascii-chat
package.mli
open Cv type package val get_timestamp: unit -> int val pack: image -> string -> int -> int -> package val unpack: package -> (image * string * int * int) val serialize: package -> string val deserialize: string -> package val encrypt: string -> string val decrypt: string -> string val get_encryption_key: unit ...
null
https://raw.githubusercontent.com/ChesleyTan/ascii-chat/f2670c4a9d8b8e555d6b42741b314257db942c30/src/package.mli
ocaml
open Cv type package val get_timestamp: unit -> int val pack: image -> string -> int -> int -> package val unpack: package -> (image * string * int * int) val serialize: package -> string val deserialize: string -> package val encrypt: string -> string val decrypt: string -> string val get_encryption_key: unit ...
731e9f6dfa0c9d6c636059ee320a74055cfac3ec0dd3a50d1b83c475e521c1f7
jonasseglare/geex
try_block.clj
(ns geex.java.try-block (:require [clojure.spec.alpha :as spec])) (spec/def ::body fn?) (spec/def ::finally fn?) (spec/def ::type class?) (spec/def ::catch (spec/keys :req-un [::type ::body])) (spec/def ::catches (spec/* ::catch)) (spec/def ::try-block (spec/keys :req-un [::body] :o...
null
https://raw.githubusercontent.com/jonasseglare/geex/f1a48c14c983c054c91fb221b91f42de5fa8eee0/src/clj/geex/java/try_block.clj
clojure
(ns geex.java.try-block (:require [clojure.spec.alpha :as spec])) (spec/def ::body fn?) (spec/def ::finally fn?) (spec/def ::type class?) (spec/def ::catch (spec/keys :req-un [::type ::body])) (spec/def ::catches (spec/* ::catch)) (spec/def ::try-block (spec/keys :req-un [::body] :o...
30344769bf671b7cb4554b54e5fb489311de3029b7ceb5eab5f0455f7ef737ea
rd--/hsc3
dbAmp.help.hs
dbAmp ; linear db motion is exponential amplitude decay fSinOsc ar 800 0 * dbAmp (line kr (-24) (-48) 10 RemoveSynth) -- ; there is a non - UGen variant dbAmp (-26::Double) == 0.05011872336272722
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/dbAmp.help.hs
haskell
; there is a non - UGen variant
dbAmp ; linear db motion is exponential amplitude decay fSinOsc ar 800 0 * dbAmp (line kr (-24) (-48) 10 RemoveSynth) dbAmp (-26::Double) == 0.05011872336272722
e6fb4a1eb37250cc2420c7dd26ab79ce12a606cf5638882c16e57c3acd50b3a9
eugeneia/erlangen
agent-test.lisp
;;;; Basic tests for agents. (defpackage erlangen.agent-test (:use :cl :erlangen.agent :erlangen.conditions :erlangen.mailbox) (:export :run-tests :basic-message-benchmark)) (in-package :erlangen.agent-test) (defmacro with-pseudo-agent ((var &key (mailbox-size ...
null
https://raw.githubusercontent.com/eugeneia/erlangen/204166b33833c49841617bbc6ecfaf4dd77cf6d8/test/agent-test.lisp
lisp
Basic tests for agents.
(defpackage erlangen.agent-test (:use :cl :erlangen.agent :erlangen.conditions :erlangen.mailbox) (:export :run-tests :basic-message-benchmark)) (in-package :erlangen.agent-test) (defmacro with-pseudo-agent ((var &key (mailbox-size '*defa...
f596053a4de761f6ce3b38f5fdd9a323cff6dcd3fe420b285cb5e7765918d262
esl/MongooseIM
mod_mam.erl
%%============================================================================== Copyright 2016 Erlang Solutions Ltd. %% 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 %% ...
null
https://raw.githubusercontent.com/esl/MongooseIM/dda03c16c83f5ea9f5c9b87c3b36c989813b9250/src/mam/mod_mam.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 ex...
Copyright 2016 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_mam). -behaviour(gen_mod). -behaviour(mongoose_module_metrics). -include("mod_mam.hrl"). -include("mongoose_config_spec.hrl"...
7972cd21ca8b042ebbc78fa2e4cd64d919aaf4bdf6c617c343ae7cf9ebc5a289
s-expressionists/Concrete-Syntax-Tree
unparse.lisp
(cl:in-package #:concrete-syntax-tree-lambda-list-test) (defgeneric unparse (tree)) (defmethod unparse ((tree cst::lambda-list-type)) (reduce #'append (mapcar #'unparse (cst::children tree)))) (defmethod unparse ((tree cst::parameter-group)) (mapcar #'unparse (cst::parameters tree))) (defmethod unparse ((tree c...
null
https://raw.githubusercontent.com/s-expressionists/Concrete-Syntax-Tree/a56a5246fbaa90b98a29368c011a6616f2bcb482/Lambda-list/Test/unparse.lisp
lisp
(cl:in-package #:concrete-syntax-tree-lambda-list-test) (defgeneric unparse (tree)) (defmethod unparse ((tree cst::lambda-list-type)) (reduce #'append (mapcar #'unparse (cst::children tree)))) (defmethod unparse ((tree cst::parameter-group)) (mapcar #'unparse (cst::parameters tree))) (defmethod unparse ((tree c...
de45d6bd80d9572643cd4eb6699750ef24f2448c8107df6428633db5bb019a27
mrphlip/aoc
03.hs
# OPTIONS_GHC -Wno - tabs # import Data.Bits import Data.List import Control.Exception import Utils getInput :: IO (Int, [Integer]) getInput = do dat <- readFile "03.txt" return $ parseInput dat parseInput :: String -> (Int, [Integer]) parseInput dat = if all ((==bitlen).length) ls then (bitlen, map (readBaseN 2) ls...
null
https://raw.githubusercontent.com/mrphlip/aoc/2b853e9d7e9ec65ce72ce64b6df1b6253d4730fe/2021/03.hs
haskell
# OPTIONS_GHC -Wno - tabs # import Data.Bits import Data.List import Control.Exception import Utils getInput :: IO (Int, [Integer]) getInput = do dat <- readFile "03.txt" return $ parseInput dat parseInput :: String -> (Int, [Integer]) parseInput dat = if all ((==bitlen).length) ls then (bitlen, map (readBaseN 2) ls...
1c4088e6ee2c423b749b49d9d151f695ccdb47f5a0d74ee94732bada75271767
AbstractMachinesLab/caramel
omd_utils.mli
(***********************************************************************) omd : frontend in OCaml ( c ) 2013/2014 by < > (* Licence : ISC *) (* -support-policy/isc-license/ *) (*********************************...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/omd/src/omd_utils.mli
ocaml
********************************************************************* Licence : ISC -support-policy/isc-license/ ********************************************************************* * Equals [true] if the environment variable DEBUG is set, or if the envir...
omd : frontend in OCaml ( c ) 2013/2014 by < > val debug : bool val trackfix : bool exception Error of string val raise : exn -> 'a val warn : ?we:bool -> string -> unit module StringSet : sig include Set.S with type elt = string val of_list : elt li...
203dde0acc1d4e0ba888c8ebcc36f0c351705a58644d02b960743da28e69f352
mfoemmel/erlang-otp
ssh_ssh.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2005 - 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/ssh/src/ssh_ssh.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 2005 - 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(ssh_ssh). -export([connect/1, c...
4099eb9f6f303ac45e31ea2bb720418852c9ca8d230543f62cf45dae1b00261d
sdiehl/elliptic-curve
Generate.hs
module Generate.Edwards.Generate ( prettyGenerate ) where import Protolude hiding (toLower) import Data.Text (toLower) import Text.PrettyPrint.Leijen.Text import Generate.Edwards.Types import Generate.Generate import Generate.Pretty -------------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/generate/Generate/Edwards/Generate.hs
haskell
----------------------------------------------------------------------------- Generate -----------------------------------------------------------------------------
module Generate.Edwards.Generate ( prettyGenerate ) where import Protolude hiding (toLower) import Data.Text (toLower) import Text.PrettyPrint.Leijen.Text import Generate.Edwards.Types import Generate.Generate import Generate.Pretty prettyImports :: Doc prettyImports = "module Generate.Edwards.Parameters"...
6e69e4ce15f436b20c8c9ab1f3c155228ec3e7b19c3cba2221003f78e4c154e7
softlab-ntua/bencherl
linear_2D.erl
Copyright ( C ) 2003 - 2014 % This file is part of the Ceylan Erlang library . % % This library is free software: you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License or the GNU General Public License , as they are published by the Free Software Foundation , eith...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/common/src/maths/linear_2D.erl
erlang
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License or any later version. You can also redistribute it and/or modify it under the terms of the This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; w...
Copyright ( C ) 2003 - 2014 This file is part of the Ceylan Erlang library . the GNU General Public License , as they are published by the Free Software Foundation , either version 3 of these Licenses , or ( at your option ) Mozilla Public License , version 1.1 or later . GNU Lesser General Public License...
103d0c3b59623a14788c9d234e6506ab78154d9fb9b3957386f11785185232d8
learnuidev/reagent-reposh-realworld
auth.cljs
(ns app.auth (:require [reagent.core :as r] [reitit.frontend.easy :as rfe] [app.api :refer [api-uri]] [clojure.string :as s] [ajax.core :refer [GET POST PUT json-request-format json-response-format]])) ;; Local Storage testing (comment "Saving value into local storag...
null
https://raw.githubusercontent.com/learnuidev/reagent-reposh-realworld/b6b77159ca0c38f47a858fb47fde66ad1155ba47/src/app/auth.cljs
clojure
Local Storage testing ================= Auth State =================== ================================================ ================= Register =================== ================================================ ================= Login ======================== ================================================...
(ns app.auth (:require [reagent.core :as r] [reitit.frontend.easy :as rfe] [app.api :refer [api-uri]] [clojure.string :as s] [ajax.core :refer [GET POST PUT json-request-format json-response-format]])) (comment "Saving value into local storage" (.setItem js/localSt...
1b2058615deb1840123d169565cf23a0abddd22e96571a88cdf80960e6c866ac
urbit/urbit-hob
Property.hs
module Title.Tests.Property ( tests ) where import Data.Word (Word8, Word16, Word32, Word64) import Test.Hspec import Test.QuickCheck import Urbit.Ob.Co (Patp) import qualified Urbit.Ob.Co as Co import qualified Urbit.Ob.Title as Title galaxies :: Gen Patp galaxies = fmap (Co.patp . fromIntegral) (arbitrary :: G...
null
https://raw.githubusercontent.com/urbit/urbit-hob/3d4da34523ba8e5ea192744c861fead076c0f8e8/test/Title/Tests/Property.hs
haskell
module Title.Tests.Property ( tests ) where import Data.Word (Word8, Word16, Word32, Word64) import Test.Hspec import Test.QuickCheck import Urbit.Ob.Co (Patp) import qualified Urbit.Ob.Co as Co import qualified Urbit.Ob.Title as Title galaxies :: Gen Patp galaxies = fmap (Co.patp . fromIntegral) (arbitrary :: G...
dfcd837086811cfc17e31e1458bea5ea7cbd268935064a7414ded600eafe151f
gossiperl/gossiperl
gossiperl_encryption.erl
Copyright ( c ) 2014 < > %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights %% to use, copy, modify, merge, publish, distr...
null
https://raw.githubusercontent.com/gossiperl/gossiperl/0e7a3806bdec94016ba12f069d1699037c477c29/src/gossiperl_encryption.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2014 < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
a3de5aa57c6209aced7e50efe7bcacf637445ce2a3227e86f1af546865a71586
slipstream/SlipStreamServer
credential_lifecycle_test.clj
(ns com.sixsq.slipstream.ssclj.resources.credential-lifecycle-test (:require [clojure.test :refer [are deftest is use-fixtures]] [com.sixsq.slipstream.ssclj.app.params :as p] [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.credential :as credential] ...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/credential_lifecycle_test.clj
clojure
(ns com.sixsq.slipstream.ssclj.resources.credential-lifecycle-test (:require [clojure.test :refer [are deftest is use-fixtures]] [com.sixsq.slipstream.ssclj.app.params :as p] [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.credential :as credential] ...
3d503285b5488337c7152eefe99970172d53611699b28599356ea01192bb284c
a-nikolaev/wanderers
trade.ml
Wanderers - open world adventure game . Copyright ( C ) 2013 - 2014 . 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 3 of the License , or ( at...
null
https://raw.githubusercontent.com/a-nikolaev/wanderers/054c1cdc6dd833d8938357e6d898def510531d67/src/trade.ml
ocaml
Barcode Map Trader put money put stuff Printf.printf "price cap = %i\n%!" price_cap;
Wanderers - open world adventure game . Copyright ( C ) 2013 - 2014 . 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 3 of the License , or ( at...
ff60fb434ce7d15081916885b8fd5f2f3cae5ffea855d24e21a9e31d558d94fa
lambdageek/centrinel
InferenceResult.hs
-- | A concrete monad transformer that is an instance of ' Centrinel . Control . Monad . Class . ' # language GeneralizedNewtypeDeriving # module Centrinel.Control.Monad.InferenceResult ( InferenceResultT (..) , runInferenceResultT ) where import Control.Monad.Reader (runReaderT, ReaderT, asks) import qualif...
null
https://raw.githubusercontent.com/lambdageek/centrinel/412b620b77c6cb569811fec845b89d04585c1332/src/Centrinel/Control/Monad/InferenceResult.hs
haskell
| A concrete monad transformer that is an instance of
' Centrinel . Control . Monad . Class . ' # language GeneralizedNewtypeDeriving # module Centrinel.Control.Monad.InferenceResult ( InferenceResultT (..) , runInferenceResultT ) where import Control.Monad.Reader (runReaderT, ReaderT, asks) import qualified Control.Monad.Trans.Reader as Reader import Control.M...
7f77f8d9a7f365f3143d16cf5e1d0431bcb8bcc7cba25d695bfa30a33bbca3d0
inria-parkas/sundialsml
dochtml.ml
(***********************************************************************) (* *) (* OCaml interface to Sundials *) (* *) ( ) , ( ) , and...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a72ebfc84b55470ed97fbb0b45d700deebfc1664/doc/dochtml.ml
ocaml
********************************************************************* OCaml interface to Sundials ...
( ) , ( ) , and ( LIENS ) Copyright 2021 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed [@@@ocaml.warning "-7"] * Custom tags for the ocamldoc comments : @sundials link to Sundials documentation @profi...
fbca2a7bc411c5fff8a679344844760c459e06d82f4859649b18a0a49bbaacd0
djblue/portal
main.clj
(ns portal.main (:require [clojure.edn :as edn] [clojure.java.io :as io] [portal.api :as p]) (:import [java.io PushbackReader])) (defn- lazy-fn [symbol] (fn [& args] (apply (requiring-resolve symbol) args))) (def ^:private read-json (lazy-fn 'portal.runtime.json/read-stream)) (def ^...
null
https://raw.githubusercontent.com/djblue/portal/435dfe172e4cec31d95ee17c8688750a61101907/src/portal/main.clj
clojure
(ns portal.main (:require [clojure.edn :as edn] [clojure.java.io :as io] [portal.api :as p]) (:import [java.io PushbackReader])) (defn- lazy-fn [symbol] (fn [& args] (apply (requiring-resolve symbol) args))) (def ^:private read-json (lazy-fn 'portal.runtime.json/read-stream)) (def ^...
605fc6118eec098b4c7abb6602230a5f8d4e559a3b773d640f269ce822aef7e3
viebel/klipse-repl
eval.clj
(ns klipse-repl.eval (:require [clojure.string :as string] [gadjett.core :refer [dbg]] [clojure.test :refer [with-test is]])) (defn repl-init "Initialize repl in user namespace and make standard repl requires." [{:keys [cool-forms]}] (in-ns 'user) (require '[klipse-repl.eval :refer [doc]]) (requir...
null
https://raw.githubusercontent.com/viebel/klipse-repl/8acc1ffaee520c991f834af5a0827286884aa8c9/src/klipse_repl/eval.clj
clojure
(ns klipse-repl.eval (:require [clojure.string :as string] [gadjett.core :refer [dbg]] [clojure.test :refer [with-test is]])) (defn repl-init "Initialize repl in user namespace and make standard repl requires." [{:keys [cool-forms]}] (in-ns 'user) (require '[klipse-repl.eval :refer [doc]]) (requir...
9afb13e56c1f79e84c1aeaff55c7e044328c50ae25b79014edd1291842e6455f
kahua/Kahua
spvr.scm
-*- coding : utf-8 ; mode : scheme -*- ;; test supervisor scripts. ;; this test isn't for modules, but for actual scripts. (use gauche.test) (use gauche.process) (use gauche.net) (use file.util) (use text.tree) (use sxml.ssax) (use sxml.sxpath) (use kahua.config) (use kahua.gsid) (use kahua.test.util) (test-start "...
null
https://raw.githubusercontent.com/kahua/Kahua/41fa415511c54beab4922820989faf7ea71d2818/test/spvr.scm
scheme
mode : scheme -*- test supervisor scripts. this test isn't for modules, but for actual scripts. some utilities prepare app-servers file ----------------------------------------------------------- result ----------------------------------------------------------- prompt result non-sense ------------------------...
(use gauche.test) (use gauche.process) (use gauche.net) (use file.util) (use text.tree) (use sxml.ssax) (use sxml.sxpath) (use kahua.config) (use kahua.gsid) (use kahua.test.util) (test-start "supervisor script") (define *site* "_site") (define-constant *prompt* "kahua> ") (sys-system #`"rm -rf ,|*site*|") (kahua-s...
e7a45c3fa89e70e453654099cd9b19bc4029591d28add6b23df1a828fe59ad20
ocsigen/eliomlang
eliom_unwrap.ml
Ocsigen * * Copyright ( C ) 2011 * * 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 ...
null
https://raw.githubusercontent.com/ocsigen/eliomlang/42e55856574e058caca191e50edcb0023900b664/runtime/client/eliom_unwrap.ml
ocaml
let section = Lwt_log_js.Section.make "eliom.unwrap" let log_section = section XXX must be the same as in Ocsigen_wrap table containing all the unwrapping functions referenced by their id Store unwrapper Use late unwrapping! if !Eliom_config.debug_timings then Firebug.console##time (Js.string "un...
Ocsigen * * Copyright ( C ) 2011 * * 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 ...
fa1a06041b8ea03aaa8817aec640cc63472ce9a3f8ce66a7a93438dc8af4f416
nasser/magic
novel.clj
;; a place for new ideas (ns magic.analyzer.novel (:require [magic.analyzer.analyze-host-forms :as host])) (def operators '{++ op_Increment -- op_Decrement ; - op_UnaryNegation ; + op_UnaryPlus ! op_LogicalNot |~| op_OnesComplement / op_Division % op_Modulus * op_Multiply ...
null
https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/src/magic/analyzer/novel.clj
clojure
a place for new ideas - op_UnaryNegation + op_UnaryPlus | op_BitwiseOr
(ns magic.analyzer.novel (:require [magic.analyzer.analyze-host-forms :as host])) (def operators '{++ op_Increment -- op_Decrement ! op_LogicalNot |~| op_OnesComplement / op_Division % op_Modulus * op_Multiply + op_Addition - op_Subtraction << op_LeftShift >> op_Right...
c54cf95763886338929e5e822c03c7d3d776ed95e6ef0e935becb97c489bdc02
lojic/RacketChess
pgn.rkt
#lang racket (require "./board-slow.rkt" "./board.rkt" "./global.rkt" "./make-move.rkt" "./move.rkt" "./movement.rkt" "./piece.rkt") (provide make-pgn-move! pgn-load-file! pgn-move) Groups for pat - pawn : 2 - From file when capturing ( opti...
null
https://raw.githubusercontent.com/lojic/RacketChess/115ca7fecca9eaf31f9b2f4ef59935372c9920c8/src/pgn.rkt
racket
5 - Promotion (optional) e.g. "=N" 2 - Piece letter e.g. "Q" 5 - Capture e.g. "x" groups is of the form: '(<from file> (optional) indication of source file when capturing e.g. "cx" <to file> e.g. "d" <promotion> (optional) e.g. "=N" <check>) (optional) indication of check e.g. "+" or "#" for mate...
#lang racket (require "./board-slow.rkt" "./board.rkt" "./global.rkt" "./make-move.rkt" "./move.rkt" "./movement.rkt" "./piece.rkt") (provide make-pgn-move! pgn-load-file! pgn-move) Groups for pat - pawn : 2 - From file when capturing ( opti...
d624d346af91c2535ddb14247c459381360566086c45f8f6ea157fd59896081c
unclebob/more-speech
relays.clj
(ns more-speech.nostr.relays (:require [clojure.spec.alpha :as s] [more-speech [config :as config] [relay :as relay] [websocket-relay :as ws-relay]] [more-speech.mem :refer [relays]])) (defn- connection? [c] (= (::relay/type c) ::ws-relay/websocket)) (...
null
https://raw.githubusercontent.com/unclebob/more-speech/f453281e2e718bb2928e3e8436c556951edc64a2/src/more_speech/nostr/relays.clj
clojure
(ns more-speech.nostr.relays (:require [clojure.spec.alpha :as s] [more-speech [config :as config] [relay :as relay] [websocket-relay :as ws-relay]] [more-speech.mem :refer [relays]])) (defn- connection? [c] (= (::relay/type c) ::ws-relay/websocket)) (...
294abab8d3ada35b1dd29472114158b25f3254444227952aa87cd6c21bd7e471
scrintal/heroicons-reagent
ellipsis_horizontal.cljs
(ns com.scrintal.heroicons.outline.ellipsis-horizontal) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "ro...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/ellipsis_horizontal.cljs
clojure
(ns com.scrintal.heroicons.outline.ellipsis-horizontal) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "ro...
e35f94312e22185c7187ef22e015c017a664bbb57d34e092ef48fce28550fbb1
liquidz/iced-nrepl
bar.clj
(ns icedtest.namespace.foo.bar)
null
https://raw.githubusercontent.com/liquidz/iced-nrepl/f63ae00385be912196fceb9d26e174cc5d68295a/test_files/icedtest/namespace/foo/bar.clj
clojure
(ns icedtest.namespace.foo.bar)
f4019e8289b6339739b8383dd1c7833d4ff367d8ef579048378378c598415e21
janestreet/base
invariant.mli
* @inline
null
https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/src/invariant.mli
ocaml
* @inline
8bdb066a3f53a9c64d36c7059f2fc745d3586b7f41e6010828452a14a822e9ec
tetigi/unearthing-clojurescript
project.clj
(defproject unearthing-clojurescript "0.0.1" :description "A set of demos detailing how to make a basic reagent application" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [binaryage/devtools "0.9.4"] [org.cloju...
null
https://raw.githubusercontent.com/tetigi/unearthing-clojurescript/fe698adb2690a5f4d19efa99be6c2d40d79e3b9a/project.clj
clojure
(defproject unearthing-clojurescript "0.0.1" :description "A set of demos detailing how to make a basic reagent application" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [binaryage/devtools "0.9.4"] [org.cloju...
6a39c6f2d4759596aa9de79e35552204446079356953a10817ab7661e5e97c20
ocsigen/ocsimore
seminaire_sql.ml
(*-*-coding: utf-8;-*-*) open CalendarLib let (>>=) = Lwt.(>>=) module PGOCaml = Common_sql.PGOCaml open Event_sql.Event (***) (*XXX Quote the strings *) let cat_pattern category = if category = [""] then "%" else String.concat "/" category ^ "/%" let find_in_interval filter category start finish = let pat =...
null
https://raw.githubusercontent.com/ocsigen/ocsimore/8eeaf043ed6f1f167a96cbdc5f72a5225d9516d5/src/announce/seminaire_sql.ml
ocaml
-*-coding: utf-8;-*- * XXX Quote the strings **
open CalendarLib let (>>=) = Lwt.(>>=) module PGOCaml = Common_sql.PGOCaml open Event_sql.Event let cat_pattern category = if category = [""] then "%" else String.concat "/" category ^ "/%" let find_in_interval filter category start finish = let pat = cat_pattern category in Lwt_pool.use Common_sql.dbpool ...
5e937ae341bee6ae3a076ff0bf35720084daa3c3901c61be9b79b4c8c2a5144a
markhibberd/postmark
Response.hs
module Network.Api.Postmark.Response ( PostmarkResponse (..), PostmarkUnexpectedType (..), PostmarkResponse', syntaxErr, formatErr ) where import qualified Data.ByteString.Lazy as BL import Data.Text import Network.Api.Postmark.Data (toText) import Network.Api.Postmark.Error data PostmarkResponse e a = ...
null
https://raw.githubusercontent.com/markhibberd/postmark/2eb6087bbb19421f1dd765b973702f37c1d386e9/src/Network/Api/Postmark/Response.hs
haskell
module Network.Api.Postmark.Response ( PostmarkResponse (..), PostmarkUnexpectedType (..), PostmarkResponse', syntaxErr, formatErr ) where import qualified Data.ByteString.Lazy as BL import Data.Text import Network.Api.Postmark.Data (toText) import Network.Api.Postmark.Error data PostmarkResponse e a = ...
545143cf24846150cacf1b4ee96d157590c3306033478dbee0770f73947db7ec
haskell-repa/repa
Seq.hs
-- | Sequential flows provide an incremental version of array fusion that -- allows the computation to be suspended and resumed at a later time. -- -- The operators provided are guaranteed to use only a constant amount of space. -- For example, we provide a `dup_oo` operator but no `dup_ii` because if all -- i...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-flow/Data/Array/Repa/Flow/Seq.hs
haskell
| Sequential flows provide an incremental version of array fusion that allows the computation to be suspended and resumed at a later time. The operators provided are guaranteed to use only a constant amount of space. For example, we provide a `dup_oo` operator but no `dup_ii` because if all input elements...
module Data.Array.Repa.Flow.Seq ( FD , FS , Size (..) , Source (..) , SourceState (..) , joinSourceStates , getSourceState , startSource , Step1 (..) , Step8 (..) , Sink (..) ...
f0a3114e77e7495c048cb681fc0527ade8fab95e7f36cc92431e7357ed13b04c
kahua/Kahua
plugin.scm
plugin manager ;; Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved . Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved . ;; See COPYING for terms and conditions of using this software ;; (define-module kahua.plugin (use srfi-1) (use srfi-13) (use file.u...
null
https://raw.githubusercontent.com/kahua/Kahua/c90fe590233e4540923e4e5cc9f61da32873692c/src/kahua/plugin.scm
scheme
See COPYING for terms and conditions of using this software plugin meta-information container plugin's procedures are bound this module. make anonymous module for binding plugin procedures. plugin class. explicitly. define a procedue globally in somewhere, normally in *sandbox-plugin*. get symbols which expo...
plugin manager Copyright ( c ) 2003 - 2007 Scheme Arts , L.L.C. , All rights reserved . Copyright ( c ) 2003 - 2007 Time Intermedia Corporation , All rights reserved . (define-module kahua.plugin (use srfi-1) (use srfi-13) (use file.util) (export define-export <kahua-plugin> lookup-exports e...
bce2cdd2dcf0b9900f7903b4978f857c655dae0a6f5cda9355f15f0c4b128de2
xvw/preface
join.mli
(** [Join] produces a [Functor] from a [Bifunctor] using both arguments of a Bifunctor. *) * { 2 Produces a Functor from a Bifunctor } module Functor (B : Preface_specs.Bifunctor.CORE) : Preface_specs.FUNCTOR with type 'a t = ('a, 'a) B.t
null
https://raw.githubusercontent.com/xvw/preface/8b0154ba20cf46fbd58eb7df707b874504070938/lib/preface_make/join.mli
ocaml
* [Join] produces a [Functor] from a [Bifunctor] using both arguments of a Bifunctor.
* { 2 Produces a Functor from a Bifunctor } module Functor (B : Preface_specs.Bifunctor.CORE) : Preface_specs.FUNCTOR with type 'a t = ('a, 'a) B.t
df301a1a6f69897e91bcb7fc4bca2cff7459b67cd41f000e9638a5b1ba60deb7
leksah/leksah-server
VersionUtils.hs
# LANGUAGE CPP , ScopedTypeVariables , BangPatterns , OverloadedStrings # ----------------------------------------------------------------------------- -- Module : IDE.Utils . VersionUtils Copyright : 2007 - 2011 , -- License : GPL Nothing -- -- Maintainer : -- Stability : provisional ...
null
https://raw.githubusercontent.com/leksah/leksah-server/a7840a2caad6d294fb8e6024addf8aa1077b578c/src/IDE/Utils/VersionUtils.hs
haskell
--------------------------------------------------------------------------- License : GPL Nothing Maintainer : Stability : provisional Portability : | ---------------------------------------------------------------------------
# LANGUAGE CPP , ScopedTypeVariables , BangPatterns , OverloadedStrings # Module : IDE.Utils . VersionUtils Copyright : 2007 - 2011 , module IDE.Utils.VersionUtils ( getHaddockVersion , getDefaultGhcVersion , getGhcInfo , supportedGhcVersions , ghcExeName ) where import Prelude () i...
cbccd3ecfe50e24acc8bdcb6d0473edb448be892166704f52eca194ecc9e3540
keechma/keechma-next
core.cljs
(ns keechma.next.core (:require [keechma.next.controller :as ctrl] [keechma.next.graph :refer [subgraph-reachable-from-set]] [keechma.next.util :refer [get-dirty-deps get-lowest-common-ancestor-for-paths]] [keechma.next.protocols :as protocols :refer [IAppInstance IRootAppInstance]] [keechma.next.confo...
null
https://raw.githubusercontent.com/keechma/keechma-next/324ca9a5ccae56ae5cc5e592c9681e85a1be1f0a/src/keechma/next/core.cljs
clojure
controller types are different controller types are same check if the factory controller with the name `[:controller-name]` exists. TODO: Should we cache this? and it will happen in the `make-controller-instance`. In that function, we'll assoc the real :keechma.controller/type for the controllers with the dynamic...
(ns keechma.next.core (:require [keechma.next.controller :as ctrl] [keechma.next.graph :refer [subgraph-reachable-from-set]] [keechma.next.util :refer [get-dirty-deps get-lowest-common-ancestor-for-paths]] [keechma.next.protocols :as protocols :refer [IAppInstance IRootAppInstance]] [keechma.next.confo...
c3c75cc3e86eba113d5aa5a785fc947721693016f98711a9b112e1e4b75b741c
i-am-tom/world-building-in-haskell
Extra.hs
# LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Data.Nat.Extra where import Data.Nat (Nat (..)) import GHC.TypeLits (type (-)) import qualified GHC.TypeLits as TypeLits | Turn a ' GHC.TypeLits . ' into a ' Data . . ' . Useful really only to -- ...
null
https://raw.githubusercontent.com/i-am-tom/world-building-in-haskell/fe7369b9069793ee6dd2a11e031a53b4af764d1a/src/Data/Nat/Extra.hs
haskell
provide a neat API to the users while working internally with a unary representation for convenience (e.g. pattern-matching). because... well, they're already important.
# LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Data.Nat.Extra where import Data.Nat (Nat (..)) import GHC.TypeLits (type (-)) import qualified GHC.TypeLits as TypeLits | Turn a ' GHC.TypeLits . ' into a ' Data . . ' . Useful really only to typ...
0548ed4586c70b14af45db1d12b27c5037d87de63ebf65abb709a2beb76a2383
jarrodhroberson/inet_mdns
inet_mdns.erl
-module(inet_mdns). -include_lib("kernel/src/inet_dns.hrl"). -export([start/0]). -export([stop/1,receiver/1]). -export([subscribe/2,unsubscribe/2,getsubs/1]). -export([send/0]). -define(ADDR,{224,0,0,251}). -define(PORT,5353). send() -> H = #dns_header{qr=1,aa=1}, {ok,HN} = inet:gethostname(), D = "test...
null
https://raw.githubusercontent.com/jarrodhroberson/inet_mdns/c068b662aa69edf68fea5f33388ea128cccbdaf1/src/inet_mdns.erl
erlang
start the process listening for mdns messages TODO: Improve error handling lists:foreach(fun(Q) -> process_query(lists:member(Q#dns_query.domain,Reg),Q) end, Queries). normalize single boolean key value entries make "key" == "key=true" make "key=" == "key=[]"
-module(inet_mdns). -include_lib("kernel/src/inet_dns.hrl"). -export([start/0]). -export([stop/1,receiver/1]). -export([subscribe/2,unsubscribe/2,getsubs/1]). -export([send/0]). -define(ADDR,{224,0,0,251}). -define(PORT,5353). send() -> H = #dns_header{qr=1,aa=1}, {ok,HN} = inet:gethostname(), D = "test...
ea44ec61408bbe4c6aed93c418282f4813b68b6906e5d8ca381a2bb214bdde3a
ghc/packages-Cabal
Workdir.hs
# LANGUAGE CPP # -- | Functions for interrogating the current working directory module Test.Cabal.Workdir where import Distribution.Simple.Setup import Distribution.Simple.Configure import System.Directory import System.FilePath #if MIN_VERSION_base(4,6,0) import System.Environment ( getExecutablePath ) #endif -- |...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/src/Test/Cabal/Workdir.hs
haskell
| Functions for interrogating the current working directory | Guess what the dist directory of a running executable is, by using the conventional layout of built executables in relation to the top of a dist directory. Will not work if the executable has been installed somewhere else.
# LANGUAGE CPP # module Test.Cabal.Workdir where import Distribution.Simple.Setup import Distribution.Simple.Configure import System.Directory import System.FilePath #if MIN_VERSION_base(4,6,0) import System.Environment ( getExecutablePath ) #endif guessDistDir :: IO FilePath guessDistDir = do #if MIN_VERSION_base(...
ee2b41d0ea0376727548a14702691380270ce76c5b9322a2303510e87c90f840
kmi/irs
swift-services-ontology.lisp
Mode : Lisp ; Package : File created in WebOnto (in-package "OCML") (in-ontology swift-services-ontology) (def-class citizen-address () ((has-address-key :type integer) (has-postcode :type post-code-string) (has-premise-number :type integer) ;;; type positive-integer ?? (has-premise-name :type stri...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/swift-services-ontology/swift-services-ontology.lisp
lisp
Package : type positive-integer ??
File created in WebOnto (in-package "OCML") (in-ontology swift-services-ontology) (def-class citizen-address () ((has-address-key :type integer) (has-postcode :type post-code-string) (has-premise-name :type string) (has-street :type string) (has-locality :type string) (has-town :type string))) ...
b4d2791805ff3a4bc9363b2fc0e0e5d3f8674f36dc0b833b1e7757a82b08a566
vaclavsvejcar/headroom
UpdateCopyright.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # {-# LANGUAGE StrictData #-} # LANGUAGE TypeApplications # # LANGUAGE NoImplicitPrelude # -- | Module : Headroom . PostProcess . UpdateCopyright -- Description : /Post-processor/ for updating years in copyrights Copyrigh...
null
https://raw.githubusercontent.com/vaclavsvejcar/headroom/3b20a89568248259d59f83f274f60f6e13d16f93/src/Headroom/PostProcess/UpdateCopyright.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Description : /Post-processor/ for updating years in copyrights License : BSD-3-Clause Maintainer : Stability : experimental Portability : POSIX This module provides functionality for updating years in copyright statements in already rendered /li...
# LANGUAGE FlexibleContexts # # LANGUAGE QuasiQuotes # # LANGUAGE TypeApplications # # LANGUAGE NoImplicitPrelude # Module : Headroom . PostProcess . UpdateCopyright Copyright : ( c ) 2019 - 2022 module Headroom.PostProcess.UpdateCopyright SelectedAuthors (..) , UpdateCopyrightMode (..) ,...
f31bfe00bae9e0e86b8fd9778cca43f174373f6a4d8350fdb4f6b18990e70d53
autolwe/autolwe
GuardRules.mli
(* * Guard rules (Guess) *) open Syms open Tactic val t_guess_maybe : AdvSym.t option -> Game.vs list option -> tactic
null
https://raw.githubusercontent.com/autolwe/autolwe/3452c3dae06fc8e9815d94133fdeb8f3b8315f32/src/Derived/GuardRules.mli
ocaml
* Guard rules (Guess)
open Syms open Tactic val t_guess_maybe : AdvSym.t option -> Game.vs list option -> tactic
bb095bf2484ffa1b464ecf5e9b99c40d4c85622d5b4d6a829ca732ca3d100a7a
xapi-project/xenopsd
xenops_server_skeleton.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/xenopsd/f4da21a4ead7c6a7082af5ec32f778faf368cf1c/lib/xenops_server_skeleton.ml
ocaml
* 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...
7e8428f3e673125ff79f003ca5ad0b404b3bd61b29c24347b5167659bef9fbd5
travelping/exometer_fetch
exometer_fetch_test.erl
-module(exometer_fetch_test). -include_lib("eunit/include/eunit.hrl"). subscribtions_module_test() -> Subscribers = [ {reporters, [{exometer_report_fetch, [{autosubscribe, true}, {subscriptions_module, exometer_fetch_subscribe_mod}, ...
null
https://raw.githubusercontent.com/travelping/exometer_fetch/07cd2fb2162b8b77cbe51246272122a9149fc4ff/test/exometer_fetch_test.erl
erlang
subscribed via callback there is no subscription to datapoint 'n'
-module(exometer_fetch_test). -include_lib("eunit/include/eunit.hrl"). subscribtions_module_test() -> Subscribers = [ {reporters, [{exometer_report_fetch, [{autosubscribe, true}, {subscriptions_module, exometer_fetch_subscribe_mod}, ...
9cabd71cdfa0cf3283676019e29c07a3c9617c020cc348fb1fde0927ec8e7a80
jaspervdj/advent-of-code
24.hs
import AdventOfCode.Dijkstra (Bfs (..), bfs) import qualified AdventOfCode.Grid.Bounded as G import AdventOfCode.Main (pureMain) import AdventOfCode.V2 (V2 (..), (.+.)) import Control.Monad (guard) import qualified Data.Set as Se...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/b87c4b711858f9d7cf21746b6fb870084a5d9aab/2022/24.hs
haskell
import AdventOfCode.Dijkstra (Bfs (..), bfs) import qualified AdventOfCode.Grid.Bounded as G import AdventOfCode.Main (pureMain) import AdventOfCode.V2 (V2 (..), (.+.)) import Control.Monad (guard) import qualified Data.Set as Se...
2563524916b17fb184140bee6f26f63776c889fd9bd1b65604c07046c50c2934
gebi/jungerl
base64.erl
Copyright ( C ) 1999 , Bluetail AB %% File : base64.erl Authors : < > , < > %% Purpose : Base64 encoding and decoding Created : 21 August 1999 This code was origonally written by and I ( ) removed some bugs ... And I ( ) rewrote the conversion functions %% to be reentrant so they could be...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/msc/src/base64.erl
erlang
File : base64.erl Purpose : Base64 encoding and decoding to be reentrant so they could be used for LARGE input strings. ---------------------------------------------------------------------- from_string(String) -> Base64Str. Base64 convert a (multiline) string into a multiple line string from_string(String, C...
Copyright ( C ) 1999 , Bluetail AB Authors : < > , < > Created : 21 August 1999 This code was origonally written by and I ( ) removed some bugs ... And I ( ) rewrote the conversion functions -module(base64). -vsn("$Revision$ "). -export([to_string/1,from_string/1,from_string/2,from_end/1])...
18ccb153aca745b7aa0b23e86e869f56447ba1335c0b930b59694e80eb684cb0
lpw25/ocaml-typed-effects
typecore.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/typing/typecore.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Asttypes open Types open Format ...
efeac860a94e8fef6cb61d6a45d96f640eb204b69e733f5b53ff807e55bb8c3e
mikebroberts/clojurenote
use.clj
(ns clojurenote-demo.use (:require [clojurenote.notes :as notes] )) (defn list-notebooks [token notestore-url] (let [notebooks (notes/list-notebooks {:access-token token :notestore-url notestore-url})] (str "<html><body> <p>Notebooks for token: " token ", notestore: " notestore-url "</p>" ...
null
https://raw.githubusercontent.com/mikebroberts/clojurenote/db1f183fcb3766b9fb219484f3d9a17bd1fa4563/clojurenote-demo/src/clojurenote_demo/use.clj
clojure
(ns clojurenote-demo.use (:require [clojurenote.notes :as notes] )) (defn list-notebooks [token notestore-url] (let [notebooks (notes/list-notebooks {:access-token token :notestore-url notestore-url})] (str "<html><body> <p>Notebooks for token: " token ", notestore: " notestore-url "</p>" ...
532bd39f50b09f60f78e985d0ec0f8816ab4ea1208d878c984bf42d225186169
ocsigen/eliom
eliom_react.server.ml
Ocsigen * * Copyright ( C ) 2010 * * 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 you...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_react.server.ml
ocaml
Module for event wrapping and related functions An event is created along with a service responsible for it's occurrences. * function takes a param_type avoid garbage collection
Ocsigen * * Copyright ( C ) 2010 * * 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 you...
1e490582445baa89372bc7a56f4105508275816a0ed77610e9647074e74f6239
input-output-hk/cardano-sl
Limits.hs
{-# LANGUAGE RankNTypes #-} -- | This module provides helpers to construct values that have -- serialization size under the certain limit. Used in block creation and stripping . module Pos.Core.Limits ( spanHashMap , stripHashMap ) where import Universum import qualified Data.HashM...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/core/src/Pos/Core/Limits.hs
haskell
# LANGUAGE RankNTypes # | This module provides helpers to construct values that have serialization size under the certain limit. Used in block creation limit it tries to add as much as possible to it from n
and stripping . module Pos.Core.Limits ( spanHashMap , stripHashMap ) where import Universum import qualified Data.HashMap.Strict as HM import Serokell.Data.Memory.Units (Byte) import Pos.Binary.Class (Bi, biSize) | Spans hash map into two ( almost same ) pa...
0e8acb1aeb76e26de743d76b9c6dc3b3104706e3b2ec9dfbb28c152a4527598b
shayan-najd/QFeldspar
TemplateHaskell.hs
module Tests.TemplateHaskell where import QFeldspar.MyPrelude import Language.Haskell.TH.Syntax add :: Word32 -> Word32 -> Word32 add = (+) dbl :: Q (TExp (Word32 -> Word32)) dbl = [||\ x -> add x x ||] compose :: Q (TExp ((tb -> tc) -> (ta -> tb) -> ta -> tc)) compose = [|| \ x2 -> \ x1 -> \ x0 -> x2 (x1 ...
null
https://raw.githubusercontent.com/shayan-najd/QFeldspar/ed60ce02794a548833317388f6e82e2ab1eabc1c/Tests/TemplateHaskell.hs
haskell
module Tests.TemplateHaskell where import QFeldspar.MyPrelude import Language.Haskell.TH.Syntax add :: Word32 -> Word32 -> Word32 add = (+) dbl :: Q (TExp (Word32 -> Word32)) dbl = [||\ x -> add x x ||] compose :: Q (TExp ((tb -> tc) -> (ta -> tb) -> ta -> tc)) compose = [|| \ x2 -> \ x1 -> \ x0 -> x2 (x1 ...
a88629d34e6b809d187a21ac2924836670bf2a9296ef3c8f7b0df3f6a030ad9a
coq/coq
libnames.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/f227d8ed33a5ba2343de962f404b0b094dcc86a3/library/libnames.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...
278a39c97b2f627e4b6b88a1c7b8d3b6959bc4887ad156124e748c44b52dfd99
input-output-hk/plutus
ParamName.hs
# LANGUAGE DerivingVia # module PlutusLedgerApi.V1.ParamName ( ParamName (..) , tagWithParamNames ) where import Data.Ix import GHC.Generics import PlutusLedgerApi.Common.ParamName {-| The enumeration of all possible cost model parameter names for this language version. IMPORTANT: The order of appearance...
null
https://raw.githubusercontent.com/input-output-hk/plutus/c3918d6027a9a34b6f72a6e4c7bf2e5350e6467e/plutus-ledger-api/src/PlutusLedgerApi/V1/ParamName.hs
haskell
| The enumeration of all possible cost model parameter names for this language version. IMPORTANT: The order of appearance of the data constructors here matters. DO NOT REORDER. See Note [Quotation marks in cost model parameter constructors] See Note [Cost model parameters from the ledger's point of view]
# LANGUAGE DerivingVia # module PlutusLedgerApi.V1.ParamName ( ParamName (..) , tagWithParamNames ) where import Data.Ix import GHC.Generics import PlutusLedgerApi.Common.ParamName data ParamName = AddInteger'cpu'arguments'intercept | AddInteger'cpu'arguments'slope | AddInteger'memory'arguments'in...
5e36abe4a1564bcd0ed3ef89ee714a1a8ca07457278a702a04ec9fcfdde4c0f8
abdulapopoola/SICPBook
4.43.scm
#lang racket (define (father) (let ((Mary (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Gabrielle (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Lorna (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Rosalind (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Melissa (amb 'Downing 'Hall 'Hood 'Parker ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%204/4.3/4.43.scm
scheme
#lang racket (define (father) (let ((Mary (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Gabrielle (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Lorna (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Rosalind (amb 'Downing 'Hall 'Hood 'Parker 'Moore)) (Melissa (amb 'Downing 'Hall 'Hood 'Parker ...
1097631c686f469f249c96772d9c19e20178a20d6efd2dd7292334378bf63b11
informatica-unica/lip
ast.ml
type boolExpr = True | False | Not of boolExpr | And of boolExpr * boolExpr | Or of boolExpr * boolExpr | If of boolExpr * boolExpr * boolExpr | Var of string type boolDecl = (string * boolExpr) list type boolProg = boolDecl * boolExpr
null
https://raw.githubusercontent.com/informatica-unica/lip/f3f0ab2297943957c7dd0534895f2367097043dc/expr/varboolexpr/src/ast.ml
ocaml
type boolExpr = True | False | Not of boolExpr | And of boolExpr * boolExpr | Or of boolExpr * boolExpr | If of boolExpr * boolExpr * boolExpr | Var of string type boolDecl = (string * boolExpr) list type boolProg = boolDecl * boolExpr
53130fcd8b9d050298da998bf477e3f002c13950b40168d1b30d6b9e9d07cba6
solita/mnt-teet
features.clj
(ns teet.gis.features "Utilities to fetch from PostgREST datasource/feature tables." (:require [org.httpkit.client :as http] [cheshire.core :as cheshire] [teet.auth.jwt-token :as jwt-token])) (defn- check-error [resp] (if-let [err (:error resp)] (throw (ex-info "PostGIS API error" {:...
null
https://raw.githubusercontent.com/solita/mnt-teet/4a80d7d9e0d0a3c2d967bc371688d79f027d1d09/app/backend/src/clj/teet/gis/features.clj
clojure
(ns teet.gis.features "Utilities to fetch from PostgREST datasource/feature tables." (:require [org.httpkit.client :as http] [cheshire.core :as cheshire] [teet.auth.jwt-token :as jwt-token])) (defn- check-error [resp] (if-let [err (:error resp)] (throw (ex-info "PostGIS API error" {:...
2c65cbba5d20a8648f9613b2bbe2c999876c72bf77f847ae6280bbaedc83278d
BinaryAnalysisPlatform/bap
arm_helpers.mli
open Core_kernel[@@warning "-D"] val sexpable_of_string : (Sexp.t -> 'a) -> string -> 'a option
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/arm/arm_helpers.mli
ocaml
open Core_kernel[@@warning "-D"] val sexpable_of_string : (Sexp.t -> 'a) -> string -> 'a option
adb15578145cee7776d644ade63c1255cc6b0cfde2fd3bd03c6674c662cc99b7
johnwhitington/haskell-from-the-very-beginning-exercises
Exercises.hs
between :: (Fractional a, Fractional b) => (a, b) -> (a, b) -> (a, b) between (x, y) (x', y') = ((x + x') / 2, (y + y') / 2) roundNum :: (Integral b, RealFrac a) => a -> b roundNum x = if fromIntegral c - x <= x - fromIntegral f then c else f where c = ceiling x f = floor x parts :: RealFrac a =...
null
https://raw.githubusercontent.com/johnwhitington/haskell-from-the-very-beginning-exercises/18bda69bf8a0233feb6f023c6a2219b7c20e9fa1/exercises/Chapter12/Exercises.hs
haskell
example: putStr (plot sin 0 pi (pi / 20))
between :: (Fractional a, Fractional b) => (a, b) -> (a, b) -> (a, b) between (x, y) (x', y') = ((x + x') / 2, (y + y') / 2) roundNum :: (Integral b, RealFrac a) => a -> b roundNum x = if fromIntegral c - x <= x - fromIntegral f then c else f where c = ceiling x f = floor x parts :: RealFrac a =...