_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
57fc1d84c2e2affc0ab11251fb3bdb9ada975abf4369e9d802e60b0b531e137c
dyoo/whalesong
helpers.rkt
#lang s-exp "../lang/base.rkt" (provide fresh-id) ;; fresh-id: -> string ;; Returns a freshly generated id. (define (fresh-id) (symbol->string (gensym 'fresh-web-world-id)))
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/web-world/helpers.rkt
racket
fresh-id: -> string Returns a freshly generated id.
#lang s-exp "../lang/base.rkt" (provide fresh-id) (define (fresh-id) (symbol->string (gensym 'fresh-web-world-id)))
11c6e4c8a07b9ee0564d589040b64d6eae6dc5b0f95aa8fd63140de026a085f3
finkel-lang/finkel
lambda.hs
zipWith (\x y -> x * (y + 1)) [1, 2, 3] [4, 5, 6] -- Haskell
null
https://raw.githubusercontent.com/finkel-lang/finkel/c3c7729d5228bd7e0cf76e8ff05fe2f79a0ec0a2/doc/include/language-syntax/expr/lambda.hs
haskell
Haskell
5789f6d78f6bb971f39ef48b91180ba38ad4f4a7e30ce7d500dde808a91d2377
byorgey/comprog-hs
Graph.hs
-- -programming-in-haskell-bfs-part-1/ -- -programming-in-haskell-bfs-part-2-alternative-apis/ -- -programming-in-haskell-bfs-part-3-implementation-via-hashmap/ -programming-in-haskell-enumeration/ {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} # LANGUA...
null
https://raw.githubusercontent.com/byorgey/comprog-hs/280be289d754dcaac286efe57fb78c8adefd7b64/Graph.hs
haskell
-programming-in-haskell-bfs-part-1/ -programming-in-haskell-bfs-part-2-alternative-apis/ -programming-in-haskell-bfs-part-3-implementation-via-hashmap/ # LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE RecordWildCards # ---------------------------------------------------------- -------...
-programming-in-haskell-enumeration/ # LANGUAGE ScopedTypeVariables # module Graph where import Enumeration import Control.Arrow ((>>>)) import Control.Monad import Control.Monad.ST import qualified Data.Array.IArray as IA import Data.Array.ST import Data....
74d883c6e378fc1108745b3eeccf7bf394338681182a796ff843b40b21fbc2b8
jrh13/hol-light
digit_serial_methods.ml
(* ========================================================================= *) HOL Light formalizations of some of the main theorems from the paper by , , , and : " Digit Serial Methods with Applications to Division and Square Root " , IEEE Transactions on Computers , v...
null
https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/Examples/digit_serial_methods.ml
ocaml
========================================================================= ========================================================================= ** This dependency is just for some convex function basics. ** ** It is a bit extravagent for the small amount actually used. ** -----------------------------------...
HOL Light formalizations of some of the main theorems from the paper by , , , and : " Digit Serial Methods with Applications to Division and Square Root " , IEEE Transactions on Computers , vol . 67 , issue 3 , pp . 449 - 456 , 2017 . ...
b90db4fd162c8c2299cd00ae9f692b2824a1e089301a6b4e20b6832feb54c27a
janestreet/base
nothing.mli
(** An uninhabited type. This is useful when interfaces require that a type be specified, but the implementer knows this type will not be used in their implementation of the interface. For instance, [Async.Rpc.Pipe_rpc.t] is parameterized by an error type, but a user may want to define a Pipe RPC that ...
null
https://raw.githubusercontent.com/janestreet/base/caae3c2bacebd558ae2b0bbea807ec9703fb7508/src/nothing.mli
ocaml
* An uninhabited type. This is useful when interfaces require that a type be specified, but the implementer knows this type will not be used in their implementation of the interface. For instance, [Async.Rpc.Pipe_rpc.t] is parameterized by an error type, but a user may want to define a Pipe RPC that ca...
open! Import type t = | [@@deriving_inline enumerate, sexp_grammar] include Ppx_enumerate_lib.Enumerable.S with type t := t val t_sexp_grammar : t Sexplib0.Sexp_grammar.t [@@@end] val unreachable_code : t -> _ include Identifiable.S with type t := t
c616fe66a0da0e6a1a8924e712e2712f63793b5dc0b0bf64912b5f6c99227455
SamuelSchlesinger/commander-cli
Task.hs
module Task where data Context = Context { home :: FilePath , tasks :: [String] } data Task = Task { name :: String , priorities :: [(String, String)] }
null
https://raw.githubusercontent.com/SamuelSchlesinger/commander-cli/8df5317db8d3e1a4d6ae49bab4f2e63710db81b7/app/Task.hs
haskell
module Task where data Context = Context { home :: FilePath , tasks :: [String] } data Task = Task { name :: String , priorities :: [(String, String)] }
90bb42966708020026739a89abdb53aa8e5ac7c84cec7b4dc3a69f6c7cc9c059
softwarelanguageslab/maf
R5RS_sigscheme_let-loop-1.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((loop (lambda (i l) (let ((a 0) (b 1) (c 2)) (if (< i l) (loop (+ 1 i) l) l))))) (<change> ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_sigscheme_let-loop-1.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 (letrec ((loop (lambda (i l) (let ((a 0) (b 1) (c 2)) (if (< i l) (loop (+ 1 i) l) l))))) (<change> () 20000) (loop 0 20000))
626ffe0683b1e60fee32e1b37445e78e8ab97315dd27c585daf4190f35e0f028
gulige/neuroevo
gstk_db.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2016 . 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 of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/gulige/neuroevo/09e67928c2417f2b27ec6522acc82f8b3c844949/apps/gs/src/gstk_db.erl
erlang
%CopyrightBegin% 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 l...
Copyright Ericsson AB 1996 - 2016 . 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(gstk_db). -export([init/1, insert/3, lookup/2, lookup_event/3, insert_bgrp/2, delete_bgrp/2, i...
f002d414d52923239db78b5b2bccecbc0e293bfc49b2913b9254c122019e3398
sfahlman/scone
simple-biology.lisp
;;; -*- Mode:Lisp -*- ;;; *************************************************************************** ;;; Minimal intuitive knowledge of biology and medicine for the Scone 's core knowledge base . ;;; Author & Maintainer : ;;; *************************************************************************** Copyrigh...
null
https://raw.githubusercontent.com/sfahlman/scone/f519dba45882a201edaa3bf6bb80f52e4940f3ec/kb/core-components/simple-biology.lisp
lisp
-*- Mode:Lisp -*- *************************************************************************** Minimal intuitive knowledge of biology and medicine for the *************************************************************************** distributed with the software. The license can also be found at -2.0. Unless r...
Scone 's core knowledge base . Author & Maintainer : Copyright ( C ) 2003 - 2014 , Carnegie Mellon University . The software is made available to the public under the Apache 2.0 open source license . A copy of this license is software distributed under the License is distributed on an " AS Developme...
34668dbd61c21f53cafb123927e61fa07b545e632303ffe3b0b90f3f117351c5
jberryman/unagi-chan
Internal.hs
# LANGUAGE BangPatterns , DeriveDataTypeable , CPP # module Control.Concurrent.Chan.Unagi.NoBlocking.Internal #ifdef NOT_optimised {-# WARNING "This library is unlikely to perform well on architectures other than i386/x64/aarch64" #-} #endif (sEGMENT_LENGTH , InChan(..), OutChan(..), ChanEnd(..), StreamSegm...
null
https://raw.githubusercontent.com/jberryman/unagi-chan/e314c01764f017a403cdac0bf77810dc0c3b4ba9/src/Control/Concurrent/Chan/Unagi/NoBlocking/Internal.hs
haskell
# WARNING "This library is unlikely to perform well on architectures other than i386/x64/aarch64" # removed here although they still pertain. If you intend to work on this module, please be sure you're familiar with those concerns. updates and atomic operations on any 'S' sides. | The write end of a channel crea...
# LANGUAGE BangPatterns , DeriveDataTypeable , CPP # module Control.Concurrent.Chan.Unagi.NoBlocking.Internal #ifdef NOT_optimised #endif (sEGMENT_LENGTH , InChan(..), OutChan(..), ChanEnd(..), StreamSegment, Cell, Stream(..) , NextSegment(..), StreamHead(..) , newChanStarting, writeChan, tryReadChan, r...
0721c64c4bb04934550acb434c5e99f2b5da14d501a9aaee3dc44057b54be188
gelisam/typelevel-rewrite-rules
RewriteRules.hs
# LANGUAGE ConstraintKinds , DataKinds , TypeFamilies , TypeOperators # module GHC.TypeLits.RewriteRules where import GHC.TypeLits type NatRule n = (1 + n) ~ (n + 1) type SymbolRule s1 s2 = ((s1 `AppendSymbol` "foo") `AppendSymbol` s2) ~ (s1 `AppendSymbol` ("foo" `AppendSymbol` s2))
null
https://raw.githubusercontent.com/gelisam/typelevel-rewrite-rules/9a693dacfedd7cccec753b687020fa40364756f9/test/should-compile/GHC/TypeLits/RewriteRules.hs
haskell
# LANGUAGE ConstraintKinds , DataKinds , TypeFamilies , TypeOperators # module GHC.TypeLits.RewriteRules where import GHC.TypeLits type NatRule n = (1 + n) ~ (n + 1) type SymbolRule s1 s2 = ((s1 `AppendSymbol` "foo") `AppendSymbol` s2) ~ (s1 `AppendSymbol` ("foo" `AppendSymbol` s2))
8927b9a0924df90f64240fbe7bbd3d69adf7ff7f9599b679221f5972fa7de081
Helium4Haskell/helium
ExprTypedExpr.hs
module ExprTypedExpr where f = (5 :: Bool)
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeerrors/Examples/ExprTypedExpr.hs
haskell
module ExprTypedExpr where f = (5 :: Bool)
532dd1a963a2309c419eb011ce1d52526367ae2a4aba7c3fb5c8691ae2146033
nervous-systems/sputter
trie.clj
(ns sputter.state.trie (:require [sputter.state.kv :as kv] [sputter.state.kv.leveldb :as leveldb] [sputter.state.trie.node :as node] [sputter.state.trie.util :as util :refer [realize]] [sputter.util.nibble :as nibble] [sputter.util.rlp ...
null
https://raw.githubusercontent.com/nervous-systems/sputter/e96357cff7ea13384ed94c7b0d6028d125b92e00/src/sputter/state/trie.clj
clojure
(ns sputter.state.trie (:require [sputter.state.kv :as kv] [sputter.state.kv.leveldb :as leveldb] [sputter.state.trie.node :as node] [sputter.state.trie.util :as util :refer [realize]] [sputter.util.nibble :as nibble] [sputter.util.rlp ...
b1a49e2a5e539a16a790311a2341944cdab44bd0899ae1e05aaa8c9d15b3f9a7
keera-studios/keera-hails
StatusIcon.hs
# LANGUAGE MultiParamTypeClasses # -- | Publishes the main elements of a status icon -- Copyright : ( C ) Keera Studios Ltd , 2013 -- License : BSD3 Maintainer : module Graphics.UI.Gtk.Reactive.StatusIcon where import Control.Monad import Control.Monad.Trans(liftIO) import Data.ReactiveValue import Graph...
null
https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/keera-hails-reactive-gtk/src/Graphics/UI/Gtk/Reactive/StatusIcon.hs
haskell
| Publishes the main elements of a status icon License : BSD3
# LANGUAGE MultiParamTypeClasses # Copyright : ( C ) Keera Studios Ltd , 2013 Maintainer : module Graphics.UI.Gtk.Reactive.StatusIcon where import Control.Monad import Control.Monad.Trans(liftIO) import Data.ReactiveValue import Graphics.UI.Gtk statusIconActivateField :: StatusIcon -> ReactiveFieldActivatab...
13265a5e4076536ebb5aa00ac041d0d46365e7527190a93c8d3f0f406b191218
danidiaz/really-small-backpack-example
Main.hs
module Main where import qualified Lesson5Ordered import qualified Lesson5Hash main :: IO () main = do print $ Lesson5Ordered.lookup (1::Int) (Lesson5Ordered.fromList [(1,True),(2,False)]) print $ Lesson5Hash.lookup (1::Int) (Lesson5Hash.fromList [(1,True),(2,False)])
null
https://raw.githubusercontent.com/danidiaz/really-small-backpack-example/50c50649c46a7f06f2eadde106f3502320931fdd/lesson5-abstract-typeclasses/Main.hs
haskell
module Main where import qualified Lesson5Ordered import qualified Lesson5Hash main :: IO () main = do print $ Lesson5Ordered.lookup (1::Int) (Lesson5Ordered.fromList [(1,True),(2,False)]) print $ Lesson5Hash.lookup (1::Int) (Lesson5Hash.fromList [(1,True),(2,False)])
e4528ce3c5fc99a7ea91e87a416f647a161672db0dcaa5d1a7b532e04a9b5613
yav/hobbit
Interact.hs
( module , loadFiles , logo ) where import AST import CmdArgs import Compiler import qualified Interp import qualified C.Print import ATT(att) import Text.PrettyPrint.HughesPJ import PPIO import qualified BDD import UI.Logo(logo ) import UI.ANSI hiding ( cmd ) import Utils import Control . Exception...
null
https://raw.githubusercontent.com/yav/hobbit/31414ba1188f4b39620c2553b45b9e4d4aa40169/src/Interact.hs
haskell
import Text.Show.Functions() showType b = ( print . BSig ( bindName b ) ) = < < deepPruneIO ( b ) showType b = (print . BSig (bindName b)) =<< deepPruneIO (bindSchema b) print (BSig (bindName b) (bindSchema b))
( module , loadFiles , logo ) where import AST import CmdArgs import Compiler import qualified Interp import qualified C.Print import ATT(att) import Text.PrettyPrint.HughesPJ import PPIO import qualified BDD import UI.Logo(logo ) import UI.ANSI hiding ( cmd ) import Utils import Control . Exception...
f379d205460d2cd87189479c0c99f67142ca703ec4cec93bac970814975b6b62
aantron/dream
dream.ml
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Catch = Dream__server.Catch module Cipher = Dream__cipher.Cipher module Cookie = Dream__server.Cookie module Csrf =...
null
https://raw.githubusercontent.com/aantron/dream/cdd4a1bd9d12029f393e3cf4e30728229b113a3d/src/dream.ml
ocaml
Types Methods Status codes Requests Responses Headers Cookies Bodies Streams JSON Forms Templates Routing Static files Sessions Flash messages GraphQL SQL Logging Errors Servers Web formats Cryptography Custom fields Testing. TODO Restore the ability to test with a pre...
This file is part of Dream , released under the MIT license . See LICENSE.md for details , or visit . Copyright 2021 for details, or visit . Copyright 2021 Anton Bachin *) module Catch = Dream__server.Catch module Cipher = Dream__cipher.Cipher module Cookie = Dream__server.Cookie module Csrf =...
2209e8482b352a4a6a174b6b7e74bbecddb36a8ec2b154d6332e4c187c90a582
tov/memoize
test3.hs
# language TemplateHaskell , GADTs # import Data.Function.Memoize import Control.Monad (forM_, when) import Test3Helper NonstandardParams is defined by : -- -- data NonstandardParams a b -- = NonstandardParams (a -> Bool) b -- -- This won’t compile because it needs addition typeclass constraints in -- the ins...
null
https://raw.githubusercontent.com/tov/memoize/21ec2da556c9c870560d40e67236f52da1e4a41c/test/test3.hs
haskell
data NonstandardParams a b = NonstandardParams (a -> Bool) b This won’t compile because it needs addition typeclass constraints in the instance context: $(deriveMemoizable ''NonstandardParams)
# language TemplateHaskell , GADTs # import Data.Function.Memoize import Control.Monad (forM_, when) import Test3Helper NonstandardParams is defined by : instance (Eq a, Enum a, Bounded a, Memoizable b) => Memoizable (NonstandardParams a b) where memoize = $(deriveMemoize ''NonstandardParams) applyToLength :: N...
b87318a3b30004cab4cd9df40a092d29426d53854d0cab284335ff1ef6994097
Helium4Haskell/helium
MissingExp.hs
main = 4e
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/MissingExp.hs
haskell
main = 4e
462103a487eaa06f2e5cbe19431868b006959e01614dc845621f08984363c52c
alvatar/spheres
extra.scm
Copyright ( c ) 2008 , . All rights reserved . Copyright ( c ) 2012 - 2014 , . All rights reserved . Extra algorithms on streams , adds functionality to SRFI-41 (define-stream (stream-intersperse yy x) (stream-match yy (() (stream (stream x))) ((y . ys) ...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/streams/extra.scm
scheme
(define-stream (file->stream filename #!optional (reader read-char)) (let ((port (open-input-file filename))) (stream-let loop ((obj (reader port))) (if (eof-object? obj) (begin (close-input-port port) stream-null) (stream-cons obj (loop (reader port))...
Copyright ( c ) 2008 , . All rights reserved . Copyright ( c ) 2012 - 2014 , . All rights reserved . Extra algorithms on streams , adds functionality to SRFI-41 (define-stream (stream-intersperse yy x) (stream-match yy (() (stream (stream x))) ((y . ys) ...
aa00d55e20ee5228685e6e41c136f73896f9dbf8a94fd6503de336e5b70c2575
techwhizbang/bluecollar
worker.clj
(ns example-app.worker) (defn heavy-lifting [sleep-millis] (Thread/sleep sleep-millis) (str "That was hard work!!!"))
null
https://raw.githubusercontent.com/techwhizbang/bluecollar/10269249a686c4e92daefd7cecd6c7c5934db81c/example_app/src/example_app/worker.clj
clojure
(ns example-app.worker) (defn heavy-lifting [sleep-millis] (Thread/sleep sleep-millis) (str "That was hard work!!!"))
0f592ddfcab60968e2de85e237d46c38747a2d3c19e0b326a178da2e1ebbb54c
ocaml-explore/explore
main.ml
[@@@part "0"] open Parsetree open Asttypes let fake_position : Location.t = { loc_start = Lexing.dummy_pos; loc_end = Lexing.dummy_pos; loc_ghost = false; } let pexp p = { pexp_desc = p; pexp_loc = fake_position; pexp_loc_stack = []; pexp_attributes = []; } let pvb pat expr = {...
null
https://raw.githubusercontent.com/ocaml-explore/explore/117768b378959f18a8d818f37779a750e90f3438/content/workflows/meta-programming-with-ppx/examples/parsetree/main.ml
ocaml
[@@@part "0"] open Parsetree open Asttypes let fake_position : Location.t = { loc_start = Lexing.dummy_pos; loc_end = Lexing.dummy_pos; loc_ghost = false; } let pexp p = { pexp_desc = p; pexp_loc = fake_position; pexp_loc_stack = []; pexp_attributes = []; } let pvb pat expr = {...
aff644807e427f542fc32dd3b5bde5e49709a0d43deae2581146a82a4e207284
static-analysis-engineering/codehawk
jCHSumTypeSerializer.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchlib/jCHSumTypeSerializer.mli
ocaml
jchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Copy...
d08ce340c088fa331967803ccf333611a2cbc0db1f9bec1d264b887fc76e2afe
Deraen/clj-hyphenate
bn.cljc
(ns clj-hyphenate.patterns.bn "This pattern is imported from Hyphenator.js. Original comment follows: For questions about the Bengali hyphenation patterns ask Santhosh Thottingal (santhosh dot thottingal at gmail dot com) " (:require [clj-hyphenate.patterns :as pat])) (def rules' {:leftmin 2, :rightmin 2, ...
null
https://raw.githubusercontent.com/Deraen/clj-hyphenate/cab0f83daf2c86f52415615a3a3919fbdba8e84b/src/clj_hyphenate/patterns/bn.cljc
clojure
(ns clj-hyphenate.patterns.bn "This pattern is imported from Hyphenator.js. Original comment follows: For questions about the Bengali hyphenation patterns ask Santhosh Thottingal (santhosh dot thottingal at gmail dot com) " (:require [clj-hyphenate.patterns :as pat])) (def rules' {:leftmin 2, :rightmin 2, ...
28ac72e01754335ea2e37ab134bfc7cf2c2c2e5ebea1bd1f02e29caafc2c4c6f
overtone/overtone
defaults.clj
(ns overtone.sc.defaults (:use [overtone.helpers.file] [overtone.helpers.lib :only [windows-sc-path]]) (:require [overtone.at-at :as at-at] [overtone.config.store])) (def empty-foundation-groups {:overtone-group nil :input-group nil ...
null
https://raw.githubusercontent.com/overtone/overtone/9afb513297662716860a4010bc76a0e73c65ca37/src/overtone/sc/defaults.clj
clojure
(ns overtone.sc.defaults (:use [overtone.helpers.file] [overtone.helpers.lib :only [windows-sc-path]]) (:require [overtone.at-at :as at-at] [overtone.config.store])) (def empty-foundation-groups {:overtone-group nil :input-group nil ...
4e59b708aa178386032b88d8364984561c9b869169fcbd25db68550d7fad14f4
gfour/gic
Lib.hs
module Lib where high :: (a -> b) -> a ->b high g x = g x h :: Int -> Int h y = y + 1 test :: Int test = high h 1 add :: Int -> Int -> Int add a b = a + b double :: (a -> a) -> a -> a double f x = f (f x)
null
https://raw.githubusercontent.com/gfour/gic/d5f2e506b31a1a28e02ca54af9610b3d8d618e9a/Examples/Modules/Example4/Lib.hs
haskell
module Lib where high :: (a -> b) -> a ->b high g x = g x h :: Int -> Int h y = y + 1 test :: Int test = high h 1 add :: Int -> Int -> Int add a b = a + b double :: (a -> a) -> a -> a double f x = f (f x)
e8f5968a914f59b7559ff4b8c9bedc051bc8baea7871b7c3dbbbeb411ce2a6f3
banacorn/agda-language-server
Switchboard.hs
module Switchboard (Switchboard, new, setupLanguageContextEnv, destroy) where import Monad import Control.Concurrent import qualified Server.ResponseController as ResponseController import Control.Monad.Reader import qualified Agda import qualified Data.Aeson as JSON import qualified Data.Text.IO as Text import Langua...
null
https://raw.githubusercontent.com/banacorn/agda-language-server/41b8fb0ea16509fc7253005fdb73a6796a61af18/src/Switchboard.hs
haskell
| All channels go in and out from here | For sending reactions to the client | Keep printing log | Keep sending reactions writeChan (envLogChan env) $ "[Response] >>>> " <> pack (show value)
module Switchboard (Switchboard, new, setupLanguageContextEnv, destroy) where import Monad import Control.Concurrent import qualified Server.ResponseController as ResponseController import Control.Monad.Reader import qualified Agda import qualified Data.Aeson as JSON import qualified Data.Text.IO as Text import Langua...
0e994cd1afb059f6bf263d99ed213cbef35969f32b6d016e266672df0ca2ce87
mauriciofierrom/servant-mongodb
Types.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Enterprise.Types ( Enterprise (..) , Environment (..) , IdentificationType (..) , EmissionType (..) , Matrix (..) ) where import GHC.Generics import Data.Aeson data IdentificationType = IdentificationType { itId :: String ...
null
https://raw.githubusercontent.com/mauriciofierrom/servant-mongodb/a16c2dae92fc4298b6035c32d0158280bcad940b/src/Enterprise/Types.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DeriveGeneric # module Enterprise.Types ( Enterprise (..) , Environment (..) , IdentificationType (..) , EmissionType (..) , Matrix (..) ) where import GHC.Generics import Data.Aeson data IdentificationType = IdentificationType { itId :: String , itDescription :: St...
d932f849366ad2751d8ac15e325e1cc4e832f91413feb8f549404015f54d1f61
Liqwid-Labs/agora
AgoraTypes.hs
module AgoraTypes (agoraTypes) where -------------------------------------------------------------------------------- import Data.Proxy (Proxy (..)) import Language.PureScript.Bridge ( Language (Haskell), SumType, mkSumType, ) -------------------------------------------------------------------------------- i...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/49ac5e2419fefbe1a99970e8d5c3b36d87f3279e/agora-purescript-bridge/AgoraTypes.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Proposal Governor Stake Effects
module AgoraTypes (agoraTypes) where import Data.Proxy (Proxy (..)) import Language.PureScript.Bridge ( Language (Haskell), SumType, mkSumType, ) import Agora.Effect.GovernorMutation qualified as GovernorMutation import Agora.Effect.TreasuryWithdrawal qualified as TreasuryWithdrawalEffect import Agora.Govern...
d855547fd80a29855b26d6142de9d9af59bf09152fb46a7fb8fae91978dc3d5d
biocad/hasbolt-extras
GraphQuery.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE ConstrainedClassMethods # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeFamilies #-} {-# L...
null
https://raw.githubusercontent.com/biocad/hasbolt-extras/279193edf8bec50d2facd2ec0ce5153600dcabc9/src/Database/Bolt/Extras/Graph/Internal/GraphQuery.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeFamilyDependencies # | Type class used to perform requests to the Neo4j based on graphs. | Type of entity describing node for request. | Type of entity ...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE ConstrainedClassMethods # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Database.Bolt.Extras.Graph.Internal.GraphQuery ( GraphQuery (..) , GetRequest (..) , PutRequest (..) , mergeGraphs ) where import Contro...
e396cfedfb0828729291b6f236ad3120b8e1dda56071e0df21f9fdcc9cc555e8
Shirakumo/kandria
wardrobe.lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass palette-button (alloy:direct-value-component alloy:button) ((target :initarg :target :accessor target))) (defmethod alloy:text ((button palette-button)) (title (alloy:value button))) (defmethod (setf alloy:focus) :after (focus (button palette-button)) (when f...
null
https://raw.githubusercontent.com/Shirakumo/kandria/94fd727bd93e302c6a28fae33815043d486d794b/ui/wardrobe.lisp
lisp
(in-package #:org.shirakumo.fraf.kandria) (defclass palette-button (alloy:direct-value-component alloy:button) ((target :initarg :target :accessor target))) (defmethod alloy:text ((button palette-button)) (title (alloy:value button))) (defmethod (setf alloy:focus) :after (focus (button palette-button)) (when f...
d4c4a6f07de58db1b6ffac071230f9e696bf495d4f88ce470d2487687ba28920
np/hlatex
template.hs
{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS -Wall -fno-warn-missing-signatures #-} import Language.LaTeX import qualified Language.LaTeX.Builder as B import qualified Language.LaTeX.Builder.Math as M import qualified Language.LaTeX.Builder.Graphics as G import qualified Language . LaTeX.Builder . Rotating as R i...
null
https://raw.githubusercontent.com/np/hlatex/4f2212c5db5e10dab7f6cbb9cf47a041b3320176/examples/template.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS -Wall -fno-warn-missing-signatures #
import Language.LaTeX import qualified Language.LaTeX.Builder as B import qualified Language.LaTeX.Builder.Math as M import qualified Language.LaTeX.Builder.Graphics as G import qualified Language . LaTeX.Builder . Rotating as R import qualified Language . LaTeX.Builder . Color as C import Data.Ratio ((%)) import ...
2470db38277beeb8a0ee381bdabb7f236b95c73536d7c7386461f6831f9052b9
foreverbell/project-euler-solutions
52.hs
import Data.List (group, sort) check number = (length . group) ps == 1 where ps = map (sort . (\x -> show (number * x))) [1 .. 6] main = print $ head $ dropWhile (not . check) [100002, 100005 .. ]
null
https://raw.githubusercontent.com/foreverbell/project-euler-solutions/c0bf2746aafce9be510892814e2d03e20738bf2b/src/52.hs
haskell
import Data.List (group, sort) check number = (length . group) ps == 1 where ps = map (sort . (\x -> show (number * x))) [1 .. 6] main = print $ head $ dropWhile (not . check) [100002, 100005 .. ]
8190deaeac7cba3598a9692237e6ede9973671f64d640d59c49d634d0c80ee4a
openmusic-project/OMChroma
test-pls.lisp
;;;;;;;;;;;;;; ;test de tbl ;;;;;;;;;;;;;; (in-package :cr) (setf pl '(hello serge!)) (setf lp (make_tbl)) (insert_tbl lp 'a 1) (insert_tbl lp 'b 2) (insert_tbl lp 'c 'a 11) (insert_tbl lp 'c 'b pl) (insert_tbl lp 'd 'pippo) (setf lpp (make_tbl)) (key-list_tbl lp) (lookup_tbl lp 'c 'c) (lookup_tbl lp 'a) (lookup_tb...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/chroma/pls/Tests/test-pls.lisp
lisp
test de tbl test de ctl ? test de fun pb pb pb pb pb test de ve test de wt
(in-package :cr) (setf pl '(hello serge!)) (setf lp (make_tbl)) (insert_tbl lp 'a 1) (insert_tbl lp 'b 2) (insert_tbl lp 'c 'a 11) (insert_tbl lp 'c 'b pl) (insert_tbl lp 'd 'pippo) (setf lpp (make_tbl)) (key-list_tbl lp) (lookup_tbl lp 'c 'c) (lookup_tbl lp 'a) (lookup_tbl lp 'c) (insert_tbl lp 'd 'pippo) (print_...
5a279d0e502188dce3636f3ac09565bcdbe8c6a2152350148975284423019b9d
aryx/fork-efuns
interactive.ml
(*s: features/interactive.ml *) (*s: copyright header2 *) (***********************************************************************) (* *) xlib for (* *) ...
null
https://raw.githubusercontent.com/aryx/fork-efuns/012cf44e4659a451253f6f3e66f852639ecde509/features/interactive.ml
ocaml
s: features/interactive.ml s: copyright header2 ********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Efuns module Parameter = Parameter_option let create...
ab65bcc3a40e3154cbe997b2bba4281f7c6b0d6b953018f01513d4f3e3c85cf2
janestreet/memtrace_viewer
sidebar.mli
open! Core open! Bonsai_web module Button_position : sig type t = | Left | Right end val component : ?attr:Vdom.Attr.t Value.t -> Vdom.Node.t list Value.t -> button_position:Button_position.t -> Vdom.Node.t Computation.t
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer/46439f8bd16e77c5aa38632c9c4aa53175121d4d/client/src/sidebar.mli
ocaml
open! Core open! Bonsai_web module Button_position : sig type t = | Left | Right end val component : ?attr:Vdom.Attr.t Value.t -> Vdom.Node.t list Value.t -> button_position:Button_position.t -> Vdom.Node.t Computation.t
bf81910da40b48980aadef33decaec84b50f829f3af27061c7cff0346060ea8d
the-dr-lazy/cascade
Tasks.hs
| Module : Cascade . Api . Network . TestClient . Api . Tasks Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LON...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/test/Cascade/Api/Network/TestClient/Api/Tasks.hs
haskell
| Module : Cascade . Api . Network . TestClient . Api . Tasks Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LON...
b64dd5a9dbef98180331ee187bc5b1b9aacafa4cc5e5620f3718d8024c1f2fc2
alavrik/piqi-erlang
add_person.erl
-module(add_person). -compile([export_all, nowarn_export_all]). -include("addressbook_piqi.hrl"). % Main function: Reads the entire address book from a file, adds one person based on user input , then writes it back out to the same % file. run([Argv0, Filename]) -> AddressBook = % Read the existing add...
null
https://raw.githubusercontent.com/alavrik/piqi-erlang/063ecc4f8fd54543acf01953b0a63b2b7ebf17a9/examples/addressbook/src/add_person.erl
erlang
Main function: Reads the entire address book from a file, file. Read the existing address book. NOTE: as repeated fields are initialized to [] by default, there is no need to do that explicitly (i.e. "person = []") Add an address. Write the new address book back to disk. This function fills in a Person message ...
-module(add_person). -compile([export_all, nowarn_export_all]). -include("addressbook_piqi.hrl"). adds one person based on user input , then writes it back out to the same run([Argv0, Filename]) -> AddressBook = case file:read_file(Filename) of {ok, Bytes} -> try ...
c238eeb5da0803090f49482a7fe3ec4a748670e921ff7ba023f60ae51695ef49
armedbear/abcl
test-abcl-prove.lisp
(ql:quickload :abcl-prove) (time (asdf:test-system :abcl-prove)) (ql:quickload :closer-mop) (time (asdf:test-system :abcl-prove/closer-mop))
null
https://raw.githubusercontent.com/armedbear/abcl/1113f4f7778611d2568ddee3478255b976191fbe/ci/test-abcl-prove.lisp
lisp
(ql:quickload :abcl-prove) (time (asdf:test-system :abcl-prove)) (ql:quickload :closer-mop) (time (asdf:test-system :abcl-prove/closer-mop))
031f8cc7d262180697ace79c2af4ac8f108fe226136bbe40ff24cb5f4758bda9
wardle/clods
index.clj
(ns com.eldrix.clods.index "An NHS Organisation Directory Service (ODS) file-based index providing UK organisational search functionality." (:require [clojure.core.async :as a] [clojure.string :as str] [com.eldrix.nhspd.core :as nhspd] [taoensso.nippy :as nippy]) (:import (...
null
https://raw.githubusercontent.com/wardle/clods/f985eca408daee9bd87c149a497329994b423aa8/src/com/eldrix/clods/index.clj
clojure
block until pipeline complete pipeline for side-effects parallelism factor output channel - /dev/null eg. '7A4BV'." download and build the index search for an organisation
(ns com.eldrix.clods.index "An NHS Organisation Directory Service (ODS) file-based index providing UK organisational search functionality." (:require [clojure.core.async :as a] [clojure.string :as str] [com.eldrix.nhspd.core :as nhspd] [taoensso.nippy :as nippy]) (:import (...
610b7bb07213171d9c9c48649958694a8c8da46120c759179249fc96971e7508
eglaysher/rldev
bytecodeGen.ml
Rlc : bytecode file generation functions Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your optio...
null
https://raw.githubusercontent.com/eglaysher/rldev/e59103b165e1c20bd940942405b2eee767933c96/src/rlc/bytecodeGen.ml
ocaml
Offset of kidoku_table table_1 size #Z-1 #Z-2 #Z-1 #Z-2 Remove duplicate entrypoints, always using the last definition of each. Compress if required. Write output file.
Rlc : bytecode file generation functions Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your optio...
341972da429528a93371989592037307306cefaff1158891d34603bd028fff85
haskell/ghcide
HieBin.hs
{- Binary serialization for .hie files. -} HLINT ignore # LANGUAGE ScopedTypeVariables # module Compat.HieBin ( readHieFile, readHieFileWithVersion, HieHeader, writeHieFile, HieName(..), toHieName, HieFileResult(..), hieMagic,NameCacheUpdater(..)) where import Config ( cProjectVersion ) import Bi...
null
https://raw.githubusercontent.com/haskell/ghcide/3ef4ef99c4b9cde867d29180c32586947df64b9e/hie-compat/src-ghc88/Compat/HieBin.hs
haskell
Binary serialization for .hie files. | `Name`'s get converted into `HieName`'s before being written into @.hie@ files. See 'toHieName' and 'fromHieName' for logic on how to convert between The next index to use newline char symbol tables for `Name`s and `FastString`s Write the header: hieHeader followed by the ...
HLINT ignore # LANGUAGE ScopedTypeVariables # module Compat.HieBin ( readHieFile, readHieFileWithVersion, HieHeader, writeHieFile, HieName(..), toHieName, HieFileResult(..), hieMagic,NameCacheUpdater(..)) where import Config ( cProjectVersion ) import Binary import BinIface ( ge...
8ab479867ce568572791c5fbf6583b08747e6df42d9ccbb5dc9e8c3a63febc54
tweag/asterius
NoMain.hs
{-# LANGUAGE OverloadedStrings #-} module NoMain where import Asterius.ByteString import Asterius.Types import System.IO.Unsafe # NOINLINE x # x :: JSUint8Array x = unsafePerformIO $ do love pure $ byteStringToJSUint8Array "Lorem ipsum" foreign import javascript "console.error('From node, with love')" love :: I...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/nomain/NoMain.hs
haskell
# LANGUAGE OverloadedStrings #
module NoMain where import Asterius.ByteString import Asterius.Types import System.IO.Unsafe # NOINLINE x # x :: JSUint8Array x = unsafePerformIO $ do love pure $ byteStringToJSUint8Array "Lorem ipsum" foreign import javascript "console.error('From node, with love')" love :: IO ()
f6268fa3694a2b3ed6799db28c172a2f1d58b8260592e8df1199ac99abf11aec
acl2/acl2
eval-dollar@useless-runes.lsp
(SV::SVEX-APPLY$ (578 98 (:REWRITE SV::4VECLIST-P-WHEN-SUBSETP-EQUAL)) (420 56 (:REWRITE SV::4VECLIST-NTH-SAFE-OUT-OF-BOUNDS)) (384 48 (:DEFINITION SUBSETP-EQUAL)) (240 240 (:TYPE-PRESCRIPTION SUBSETP-EQUAL)) (140 28 (:DEFINITION LEN)) (96 96 (:REWRITE DEFAULT-CAR)) (96 48 (:DEFINITION MEMBER-EQUAL)) (76 76 (:R...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/centaur/sv/svex/.sys/eval-dollar%40useless-runes.lsp
lisp
(SV::SVEX-APPLY$ (578 98 (:REWRITE SV::4VECLIST-P-WHEN-SUBSETP-EQUAL)) (420 56 (:REWRITE SV::4VECLIST-NTH-SAFE-OUT-OF-BOUNDS)) (384 48 (:DEFINITION SUBSETP-EQUAL)) (240 240 (:TYPE-PRESCRIPTION SUBSETP-EQUAL)) (140 28 (:DEFINITION LEN)) (96 96 (:REWRITE DEFAULT-CAR)) (96 48 (:DEFINITION MEMBER-EQUAL)) (76 76 (:R...
8d33afaea7dc13f7278f9a254577bc28c51fa190c00018af13cbc2bf976d0591
gwathlobal/CotD
init-game-events-common.lisp
(in-package :cotd) (defparameter *game-events-military-list* (list +mob-type-soldier+ +mob-type-soldier+ +mob-type-gunner+ +mob-type-sergeant+ +mob-type-scout+ +mob-type-chaplain+)) (defun dump-when-dead () (let* ((final-str (if (null (killed-by *player*)) "Killed by unknown forces." ...
null
https://raw.githubusercontent.com/gwathlobal/CotD/d01ef486cc1d3b21d2ad670ebdb443e957290aa2/src/game-events/init-game-events-common.lisp
lisp
increase world flesh points immediately reload highscores from disk to eliminate a duplicated entry created above =========================== =========================== =========================== LOSE EVENTS =========================== =========================== ENCHANTMENT EVENTS =========================== ===...
(in-package :cotd) (defparameter *game-events-military-list* (list +mob-type-soldier+ +mob-type-soldier+ +mob-type-gunner+ +mob-type-sergeant+ +mob-type-scout+ +mob-type-chaplain+)) (defun dump-when-dead () (let* ((final-str (if (null (killed-by *player*)) "Killed by unknown forces." ...
30e6ea66b6a36e1359814f33b93738875ce28dc4788c4a53cad0dc31f1d2a032
dbuenzli/uucp
uucp_emoji.ml
--------------------------------------------------------------------------- Copyright ( c ) 2020 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/uucp/09d2186c0828465dbe37ed976c8d8ab7a5e7eeed/src/uucp_emoji.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2020 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
94c8bcc9633c3b28d6536b6fbdb2f9d5fa624cf55a192c1794c01c1772a8aee0
fulcro-legacy/fulcro-incubator
ui_state_machines_test.cljc
(ns fulcro.incubator.ui-state-machines-test (:require #?(:cljs ["enzyme" :refer [configure]]) #?(:cljs ["enzyme-adapter-react-16" :as Adapter]) [clojure.spec.alpha :as s] [clojure.string :as str] [fulcro-spec.core :refer [specification provided provided! when-mocking when-mocking! behavior asserti...
null
https://raw.githubusercontent.com/fulcro-legacy/fulcro-incubator/72885fcc944e16bf98aa42b5d1e518c0ce4574db/src/test/fulcro/incubator/ui_state_machines_test.cljc
clojure
not calling the mocks on these will cause fail. our assertion is just for pos output ACTION UNDER TEST Need enzyme configured consistently for this test Need enzyme configured consistently for this test
(ns fulcro.incubator.ui-state-machines-test (:require #?(:cljs ["enzyme" :refer [configure]]) #?(:cljs ["enzyme-adapter-react-16" :as Adapter]) [clojure.spec.alpha :as s] [clojure.string :as str] [fulcro-spec.core :refer [specification provided provided! when-mocking when-mocking! behavior asserti...
8eec600d6f0a87777146b75551752f6006d1be5d0e0b7e1ab8a4e7c3f1cf9bed
timbod7/haskell-chart
Utils.hs
module Utils where import System.Environment(getArgs) import Graphics.Rendering.Chart : : String - > Renderable a - > [ String ] - > IO ( PickFn a ) name chart [ " small " ] = renderableToPNGFile chart 320 240 $ name + + " _ small.png " name chart [ " big " ] = renderableToPNGFile chart 800 600 $ name +...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/chart-tests/tests/Utils.hs
haskell
module Utils where import System.Environment(getArgs) import Graphics.Rendering.Chart : : String - > Renderable a - > [ String ] - > IO ( PickFn a ) name chart [ " small " ] = renderableToPNGFile chart 320 240 $ name + + " _ small.png " name chart [ " big " ] = renderableToPNGFile chart 800 600 $ name +...
ac014203a9306793be8f70ba0447b8d7b94fcf46ecf74e18c7864a569e344e17
gren-lang/compiler
Bag.hs
# OPTIONS_GHC -Wall # module Data.Bag ( Bag (..), empty, one, append, map, toList, fromList, ) where import Data.List qualified as List import Prelude hiding (map) data Bag a = Empty | One a | Two (Bag a) (Bag a) -- HELPERS empty :: Bag a empty = Empty one :: a -> Bag a one...
null
https://raw.githubusercontent.com/gren-lang/compiler/49d5e5c5994a846d82c9518dcee06112c7630664/compiler/src/Data/Bag.hs
haskell
HELPERS MAP TO LIST FROM LIST
# OPTIONS_GHC -Wall # module Data.Bag ( Bag (..), empty, one, append, map, toList, fromList, ) where import Data.List qualified as List import Prelude hiding (map) data Bag a = Empty | One a | Two (Bag a) (Bag a) empty :: Bag a empty = Empty one :: a -> Bag a one = One a...
fcae24cf442e1510589f6814a9dd60dd75b7ffc9e495cce8be923f533fa0c731
abcdw/rde
tests.scm
;;; rde --- Reproducible development environment. ;;; Copyright © 2023 < > ;;; ;;; This file is part of rde. ;;; ;;; rde is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , ...
null
https://raw.githubusercontent.com/abcdw/rde/5d2c9ae888f2dab54f3117c7c4d329773cf1ae20/tests/rde/tests.scm
scheme
rde --- Reproducible development environment. This file is part of rde. rde is free software; you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. rde is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the im...
Copyright © 2023 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define-module (rde tests) #:use-module (srfi srfi-64) #:export (define-test test?) #:re-export (test-equal test-error test-group)) (define-syntax def...
b2392b999115fcf8d6f992c4d5873e96cb85632b548fdb67dd6d132711b9b52b
abyala/advent-2021-clojure
day22_test.clj
(ns advent-2021-clojure.day22-test (:require [clojure.test :refer :all] [advent-2021-clojure.day22 :refer :all])) (def test-input1 (slurp "resources/day22_sample_data1.txt")) (def test-input2 (slurp "resources/day22_sample_data2.txt")) (def test-input3 (slurp "resources/day22_sample_data3.txt")) (def puz...
null
https://raw.githubusercontent.com/abyala/advent-2021-clojure/3c2ff85057e8beb71c0a3a4e38f2049af75c502f/test/advent_2021_clojure/day22_test.clj
clojure
(ns advent-2021-clojure.day22-test (:require [clojure.test :refer :all] [advent-2021-clojure.day22 :refer :all])) (def test-input1 (slurp "resources/day22_sample_data1.txt")) (def test-input2 (slurp "resources/day22_sample_data2.txt")) (def test-input3 (slurp "resources/day22_sample_data3.txt")) (def puz...
2e80bb3921d6231b237ded5a6034905e400aa5e4aa3f8f93bd7e56d52c4460bb
ocaml/merlin
printtyp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) and ,...
null
https://raw.githubusercontent.com/ocaml/merlin/d78b9d517d8b7265b4af03482252e6dfb7e9ee1e/src/ocaml/typing/printtyp.ml
ocaml
************************************************************************ OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the module M = Misc.String.Map module S = Misc.String.Set open Misc open Ctype open Format open Longident open Path open ...
698334e82dafce60a779782b026ab42ebd0b20c02e6a1ca437d8af1f4db3b778
zenhack/haskell-capnp
Json.hs
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # {-# LANGUAGE EmptyDataDeriving #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # # LANGU...
null
https://raw.githubusercontent.com/zenhack/haskell-capnp/6cf9fae35189a3668f2740d64c634675ec5fbdec/gen/lib/Capnp/Gen/Capnp/Compat/Json.hs
haskell
# LANGUAGE EmptyDataDeriving # # LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wno-unused-imports # # OPTIONS_GHC -Wno-unused-matches # # OPTIONS_GHC -Wno-name-shadowing #
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # # LANGUAGE OverloadedLabels # # LANGUAGE S...
fc7cc8d8b74628d49ebc72823ddd91a7272f26c51a6271bc0e18d5090fa0d0af
Psi-Prod/Mehari
mehari_eio.ml
module Addr = Common.Addr module Direct = Common.Direct module IO = Common.Direct module type S = Mehari.NET with module IO := Direct and type addr = Eio.Net.Ipaddr.v4v6 * TODO : replace by mirage - clock - eio when it becomes available . module RateLimiter = Mehari.Private.Rate_limiter_impl.Make (Pclock) (Dire...
null
https://raw.githubusercontent.com/Psi-Prod/Mehari/e57202510dd43fa1ce75695cf1ab8f8caa49f0f0/mehari-eio/mehari_eio.ml
ocaml
module Addr = Common.Addr module Direct = Common.Direct module IO = Common.Direct module type S = Mehari.NET with module IO := Direct and type addr = Eio.Net.Ipaddr.v4v6 * TODO : replace by mirage - clock - eio when it becomes available . module RateLimiter = Mehari.Private.Rate_limiter_impl.Make (Pclock) (Dire...
eeb772a3e1591b024baf19ee4e88501d2041ad85b6a1a75388f4103ccad562c5
haskell-trasa/trasa
Common.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Common where import Data.List.NonEmpty (NonEmpty(..)) import Data.Bifunctor (first) import Data.Kind (Type) import Topaz.Rec (Rec) import ...
null
https://raw.githubusercontent.com/haskell-trasa/trasa/bfc23d4fd5b895493ba650a7f607b5fa034179d7/example/common/src/Common.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # module Common where import Data.List.NonEmpty (NonEmpty(..)) import Data.Bifunctor (first) import Data.Kind (Type) import Topaz.Rec (Rec) import Trasa.Core import qualified Data.Text as T import qualifie...
187b19251e8f095062899d970ef052991bfd16cec71dd280918681735e471f65
duo-lang/duo-lang
NMap.hs
module Syntax.NMap where class NMap a b | a -> b where nmap :: (b -> b) -> a -> a nmapM :: Monad m => (b -> m b) -> a -> m a (<¢>) :: NMap a b => (b -> b) -> a -> a (<¢>) = nmap (<€>) :: (NMap a b, Monad m) => (b -> m b) -> a -> m a (<€>) = nmapM
null
https://raw.githubusercontent.com/duo-lang/duo-lang/449b7015683e0a40cc51df80011e45e13d3ca151/duo-lang-renamer/src/Syntax/NMap.hs
haskell
module Syntax.NMap where class NMap a b | a -> b where nmap :: (b -> b) -> a -> a nmapM :: Monad m => (b -> m b) -> a -> m a (<¢>) :: NMap a b => (b -> b) -> a -> a (<¢>) = nmap (<€>) :: (NMap a b, Monad m) => (b -> m b) -> a -> m a (<€>) = nmapM
76130363cb18dcbc7745ba60e39f916ddd386f810845d43efe0a721900468394
ygmpkk/house
Writer.hs
----------------------------------------------------------------------------- -- | Module : Control . . Writer Copyright : ( c ) 2001 , ( c ) Oregon Graduate Institute of Science and Technology , 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- St...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/base/Control/Monad/Writer.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable (multi-param classes, functional dependencies) The MonadWriter class. Inspired by the paper ...
Module : Control . . Writer Copyright : ( c ) 2001 , ( c ) Oregon Graduate Institute of Science and Technology , 2001 ( < /~mpj/ > ) Advanced School of Functional Programming , 1995 . module Control.Monad.Writer ( MonadWriter(..), listens, censor, Writer(..), execWriter, ma...
ed48684eace80c7c2618700659772662e9fd6c9917d87052880d736d5fdc317f
ahrefs/atd
prettify.ml
let json = "[1234,\"abcde\",{\"start_date\":{\"year\":1970,\"month\":1,\"day\":1}, \"end_date\":{\"year\":1980,\"month\":1,\"day\":1}}]" let () = print_endline (Yojson.Safe.prettify json)
null
https://raw.githubusercontent.com/ahrefs/atd/9638912ac34d0460674dd691572870bfd364a2c1/doc/atdgen-tutorial-data/pretty-json/prettify.ml
ocaml
let json = "[1234,\"abcde\",{\"start_date\":{\"year\":1970,\"month\":1,\"day\":1}, \"end_date\":{\"year\":1980,\"month\":1,\"day\":1}}]" let () = print_endline (Yojson.Safe.prettify json)
9be803ee435901a24b2240dcdfebcad1403ef9f036e5df03fa45986d4e54f593
S8A/htdp-exercises
ex317.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex317) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp")))...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex317.rkt
racket
about the language level of this file in a form that our tools can easily process. .: Data definitions :. An Atom is one of: – Number – String – Symbol – '() .: Data examples :. S-expr Symbol -> N counts all occurrences of sy in sexp Atom -> N Any -> Boolean
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex317) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "abstraction.rk...
3d81591a8e8c5434a5f0fc67b30dfa33aad78ea46667855f7b2b9fa5ff8930a3
cyga/real-world-haskell
Barcode.hs
-- file: ch12/Barcode.hs checkDigit :: (Integral a) => [a] -> a checkDigit ds = 10 - (sum products `mod` 10) where products = mapEveryOther (*3) (reverse ds) mapEveryOther :: (a -> a) -> [a] -> [a] mapEveryOther f = zipWith ($) (cycle [f,id]) -- file: ch12/Barcode.hs import Data.Array (Array(..), (!), bounds, ele...
null
https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch12/Barcode.hs
haskell
file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcode.hs | Strict left fold, similar to foldl' on lists. file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcode.hs file: ch12/Barcod...
checkDigit :: (Integral a) => [a] -> a checkDigit ds = 10 - (sum products `mod` 10) where products = mapEveryOther (*3) (reverse ds) mapEveryOther :: (a -> a) -> [a] -> [a] mapEveryOther f = zipWith ($) (cycle [f,id]) import Data.Array (Array(..), (!), bounds, elems, indices, ixmap, listArray) ...
41f8317bc3c32f9eb1609f6a7fa25dc427841e0dc9af42d4048cc87a9286ba39
janestreet/base
int_math.ml
open! Import let invalid_argf = Printf.invalid_argf let negative_exponent () = Printf.invalid_argf "exponent can not be negative" () let overflow () = Printf.invalid_argf "integer overflow in pow" () (* To implement [int64_pow], we use C code rather than OCaml to eliminate allocation. *) external int_math_int_pow : i...
null
https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/int_math.ml
ocaml
To implement [int64_pow], we use C code rather than OCaml to eliminate allocation. * float division of integers
open! Import let invalid_argf = Printf.invalid_argf let negative_exponent () = Printf.invalid_argf "exponent can not be negative" () let overflow () = Printf.invalid_argf "integer overflow in pow" () external int_math_int_pow : int -> int -> int = "Base_int_math_int_pow_stub" [@@noalloc] external int_math_int64_pow :...
4c70dea2c83fb2248c8afcbacec7f1cbaa10335a78fe4998e472e1e4ba977e94
97jaz/gregor
separator.rkt
#lang racket/base (require racket/contract/base "../ast.rkt" "../parse-state.rkt" "../l10n/numbers.rkt") (provide (struct-out TimeSeparator)) (define (time-separator-fmt ast t loc) (time-separator loc)) (define (time-separator-parse ast next-ast state ci? loc) (define sep (time-separ...
null
https://raw.githubusercontent.com/97jaz/gregor/91d71c6082fec4197aaf9ade57aceb148116c11c/gregor-lib/gregor/private/pattern/ast/separator.rkt
racket
#lang racket/base (require racket/contract/base "../ast.rkt" "../parse-state.rkt" "../l10n/numbers.rkt") (provide (struct-out TimeSeparator)) (define (time-separator-fmt ast t loc) (time-separator loc)) (define (time-separator-parse ast next-ast state ci? loc) (define sep (time-separ...
5af1302926ae3bad89933c2feabfa41b5637e7ad7bd6443eaf0bea8957573a6f
slipstream/SlipStreamServer
callback_user_email_validation.clj
(ns com.sixsq.slipstream.ssclj.resources.callback-user-email-validation "Verifies that the email address for a user is valid. On validation, the user state is changed from NEW to ACTIVE." (:require [clojure.tools.logging :as log] [com.sixsq.slipstream.db.impl :as db] [com.sixsq.slipstream.ssclj.resou...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/callback_user_email_validation.clj
clojure
(ns com.sixsq.slipstream.ssclj.resources.callback-user-email-validation "Verifies that the email address for a user is valid. On validation, the user state is changed from NEW to ACTIVE." (:require [clojure.tools.logging :as log] [com.sixsq.slipstream.db.impl :as db] [com.sixsq.slipstream.ssclj.resou...
d088982c353a8e22e86f3280dd763a7a5e687783bd573526d2171057a5a2a396
6502/JSLisp
rpc-client-test.lisp
(import * from rpc-test) (dotimes (i 20) (display (square i)) (display (cube i)))
null
https://raw.githubusercontent.com/6502/JSLisp/9a4aa1a9116f0cfc598ec9f3f30b59d99810a728/rpc-client-test.lisp
lisp
(import * from rpc-test) (dotimes (i 20) (display (square i)) (display (cube i)))
3aba5abe945e1bc5108c0609c7d98d534ebcd12efbdb407543706164e9eb771a
startalkIM/ejabberd
ejabberd_auth_ldap.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_auth_ldap.erl Author : < > %%% Purpose : Authentification via LDAP Created : 12 Dec 2004 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free software; you can redis...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/ejabberd_auth_ldap.erl
erlang
---------------------------------------------------------------------- File : ejabberd_auth_ldap.erl Purpose : Authentification via LDAP This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be usefu...
Author : < > Created : 12 Dec 2004 by < > ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
694f0c21217f02937946257397a41af2c1dea5758075147b100df6edcee542b5
nd/bird
5.1.5.hs
convert_back2 :: String -> Int convert_back2 s = a + b where (a, rest) = tens s b = if a > 0 then units rest else units s tens :: String -> (Int, String) tens "" = (0, "") tens ('t':'w':'e':'n':'t':'y':xs) = (20, xs) tens ('t':'h':'i':'r':'t':'y':xs) = (30,...
null
https://raw.githubusercontent.com/nd/bird/06dba97af7cfb11f558eaeb31a75bd04cacf7201/ch05/5.1.5.hs
haskell
convert_back2 :: String -> Int convert_back2 s = a + b where (a, rest) = tens s b = if a > 0 then units rest else units s tens :: String -> (Int, String) tens "" = (0, "") tens ('t':'w':'e':'n':'t':'y':xs) = (20, xs) tens ('t':'h':'i':'r':'t':'y':xs) = (30,...
d320741ecf35bdd1013091662c3e08359cc6b7cb79ac2ce793e15779e2ae8c0a
deadtrickster/prometheus.cl
package.lisp
(in-package #:cl-user) (defpackage #:prometheus.pushgateway (:use #:cl #:alexandria) (:nicknames #:prom.pushgateway) (:shadow #:push #:replace #:delete) (:export #:push #:replace #:delete #:pushgateway-error))
null
https://raw.githubusercontent.com/deadtrickster/prometheus.cl/60572b793135e8ab5a857d47cc1a5fe0af3a2d53/src/pushgateway/package.lisp
lisp
(in-package #:cl-user) (defpackage #:prometheus.pushgateway (:use #:cl #:alexandria) (:nicknames #:prom.pushgateway) (:shadow #:push #:replace #:delete) (:export #:push #:replace #:delete #:pushgateway-error))
4aaa56e9c88c61525ac6b17172fc48147fd47370fa28fa8efbbd74bcc7777ef2
esl/MongooseIM
ct_mongoose_log_hook.erl
@doc Copy mongooseim.log into CT reports -module(ct_mongoose_log_hook). %% @doc Add the following line in your *.spec file to copy mongooseim.log into CT reports : { ct_hooks , [ ] } . %% Callbacks -export([id/1]). -export([init/2]). -export([pre_init_per_suite/3]). -export([post_init_per_suite/4]). -export([...
null
https://raw.githubusercontent.com/esl/MongooseIM/8b8c294b1b01dc178eed1b3b28ca0fbbd73f382c/big_tests/src/ct_mongoose_log_hook.erl
erlang
@doc Add the following line in your *.spec file to Callbacks @doc Return a unique id for this CTH. @doc Always called before any other callback function. Use this to initiate any common state. @doc Called before init_per_suite is called. @doc Called after init_per_suite. @doc Called before end_per_suite. @doc ...
@doc Copy mongooseim.log into CT reports -module(ct_mongoose_log_hook). copy mongooseim.log into CT reports : { ct_hooks , [ ] } . -export([id/1]). -export([init/2]). -export([pre_init_per_suite/3]). -export([post_init_per_suite/4]). -export([pre_end_per_suite/3]). -export([post_end_per_suite/4]). -export([p...
351a1f7c67161e032e05ad2bc7f2bcca0ea1066b538a61d565d4d70bb173e8e3
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
TreasuryOutboundTransfersResourceStatusTransitions.hs
{-# 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 types generated from the schema TreasuryOutboundTransfersResourceStatusTransitions module StripeAPI.Types.T...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/TreasuryOutboundTransfersResourceStatusTransitions.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema TreasuryOutboundTransfersResourceStatusTransitions | Defines the object schema located at @components.schemas.treasury_outbound_transfers_resource_status_transitions@ in the specification. | canceled_at: Timestamp d...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.TreasuryOutboundTransfersResourceStatusTransitions where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.E...
1d038fb7e24a4b0c311476f6dbddede967903c8a46803546a9c374d947521b9c
mflatt/shrubbery-rhombus-0
export.rkt
#lang racket/base (require (for-syntax racket/base racket/provide-transform racket/phase+space syntax/parse enforest enforest/operator enforest/property enforest/transformer...
null
https://raw.githubusercontent.com/mflatt/shrubbery-rhombus-0/0d01c59a6556253bef353b6f5b417fdc439fe922/rhombus/private/export.rkt
racket
"accessor" closes over `ex`: not protected
#lang racket/base (require (for-syntax racket/base racket/provide-transform racket/phase+space syntax/parse enforest enforest/operator enforest/property enforest/transformer...
5154c576eb73a0d34b942614bcd20bd94f4d7aa61b356e4660bb35216c605d80
codelion/SpinR
identifiermap.ml
_ $ I d : identifiermap.ml 4527 2012 - 10 - 17 13:08:20Z weissmam $ Copyright ( c ) 2010 - 2012 Technische Universitaet Muenchen , TUM Copyright ( c ) 2010 - 2012 < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the ...
null
https://raw.githubusercontent.com/codelion/SpinR/8d3a3d99cf3192a4ede3f326eff0c07c22906dee/identifiermap.ml
ocaml
_ $ I d : identifiermap.ml 4527 2012 - 10 - 17 13:08:20Z weissmam $ Copyright ( c ) 2010 - 2012 Technische Universitaet Muenchen , TUM Copyright ( c ) 2010 - 2012 < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the ...
c32c862b17227cd719013514a8271ed4cac9b080fad9e61b09a018bc361636b4
dbuenzli/uunf
uunf_tmapbyte.ml
--------------------------------------------------------------------------- Copyright ( c ) 2012 The uunf programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/uunf/792a6528e6d4e9ed8e98fbe4de6fe84c701fa51c/src/uunf_tmapbyte.ml
ocaml
default value. 0x10F + 1
--------------------------------------------------------------------------- Copyright ( c ) 2012 The uunf programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
a3b506984f71bdca3d18e034b0fb16a197fd5ade4596e9353d0f83dfda07f259
mukul-rathi/bolt
pprint_fir.ml
open Frontend_ir open Core let indent_space = " " let pprint_param ppf ~indent = function | TParam (param_type, param_name) -> Fmt.pf ppf "%sParam: %s %s@." indent (string_of_type param_type) param_name let pprint_params ppf ~indent = function | [] -> Fmt.pf ppf "%sParam: %s@." indent (string_of_type...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/src/frontend/ir_gen/pprint_fir.ml
ocaml
open Frontend_ir open Core let indent_space = " " let pprint_param ppf ~indent = function | TParam (param_type, param_name) -> Fmt.pf ppf "%sParam: %s %s@." indent (string_of_type param_type) param_name let pprint_params ppf ~indent = function | [] -> Fmt.pf ppf "%sParam: %s@." indent (string_of_type...
91c524a0ad4e743887f563e24b4bc288f5762c556e1e164e3eeb8b6e595195f4
bvaugon/ocapic
set.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/lib/set.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Sets over ordered types . This module implements the set data structure , given a total ordering ...
6bdaed8b42991c692a4339a620278699ee059a4114d8a8123fa9c0b775626a62
provinciesincijfers/gebiedsniveaus
0 maak_treg_po.sps
* Encoding: windows-1252. GET DATA /TYPE=XLSX /FILE= 'C:\github\gebiedsniveaus\kerntabellen\statsec_treg_po.xlsx' /SHEET=name 'Blad1' /CELLRANGE=FULL /READNAMES=ON /DATATYPEMIN PERCENTAGE=95.0 /HIDDEN IGNORE=YES. EXECUTE. DATASET NAME start WINDOW=FRONT. DATASET DECLARE werkbestand. AGGREGATE /OU...
null
https://raw.githubusercontent.com/provinciesincijfers/gebiedsniveaus/84bd86174f5e155aae431010acbb7949e0be9e80/scripts/0%20maak_treg_po.sps
scheme
* Encoding: windows-1252. GET DATA /TYPE=XLSX /FILE= 'C:\github\gebiedsniveaus\kerntabellen\statsec_treg_po.xlsx' /SHEET=name 'Blad1' /CELLRANGE=FULL /READNAMES=ON /DATATYPEMIN PERCENTAGE=95.0 /HIDDEN IGNORE=YES. EXECUTE. DATASET NAME start WINDOW=FRONT. DATASET DECLARE werkbestand. AGGREGATE /OU...
cacf4200e91361b79dfa5599d506fd9251401f67fbd1fddcd23e860dd444265b
argp/bap
batMap.ml
* BatMap - Additional map operations * Copyright ( C ) 1996 1996 - 2003 , * 2009 - 2011 , , * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Fre...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batMap.ml
ocaml
ensure evaluation in increasing order ensure evaluation in increasing order We rely on [fold] rather than on ['a implementation] to make future changes of implementation in the base library's version of [Map] easier to track, even if the result is a tad slower. [filter{,i,_map} f t cmp] do not use [cmp...
* BatMap - Additional map operations * Copyright ( C ) 1996 1996 - 2003 , * 2009 - 2011 , , * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Fre...
51ff33e590fb577b131cb6dec420a0e931276b62f3a43df8b3e5759adca379ae
hspec/hspec
BazSpec.hs
module Foo.BazSpec (spec) where import Test.Hspec spec :: SpecWith String spec = do it "should be 23" (`shouldBe` "23")
null
https://raw.githubusercontent.com/hspec/hspec/9b1870971c0d41861501aeeab623af2494391a30/hspec-discover/integration-test/with-spec-hook/Foo/BazSpec.hs
haskell
module Foo.BazSpec (spec) where import Test.Hspec spec :: SpecWith String spec = do it "should be 23" (`shouldBe` "23")
7d6437866f0afb0dd474378e133546164c5aa7b09c6ac3ff584c49564902c521
TyOverby/mono
table_body.mli
open! Core open! Bonsai_web open! Bonsai.Let_syntax open! Js_of_ocaml open! Incr_map_collate module For_testing : sig type cell = { id : Int63.t ; selected : bool ; view : Vdom.Node.t list } type t = { column_names : Vdom.Node.t list ; cells : cell list ; rows_before : int ; rows_a...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-bonsai/web_ui/partial_render_table/src/table_body.mli
ocaml
open! Core open! Bonsai_web open! Bonsai.Let_syntax open! Js_of_ocaml open! Incr_map_collate module For_testing : sig type cell = { id : Int63.t ; selected : bool ; view : Vdom.Node.t list } type t = { column_names : Vdom.Node.t list ; cells : cell list ; rows_before : int ; rows_a...
3a51f243d882c820fb64e05baad36ee55b25ca8f1733c91ec625270fa1bc6d22
Convex-Dev/convex.cljc
convex.clj
(ns hooks.convex "Hook for templating Convex Lisp." {:author "Adam Helinski"} (:require [clj-kondo.hooks-api :as hook])) ;;;;;;;;;; (defn -traverse "Traverses children and returns the `acc` with all unquoted forms and values." ([child] (-traverse [] child)) ([acc child] (if...
null
https://raw.githubusercontent.com/Convex-Dev/convex.cljc/effce7127933c0733a7ef00f4ede8fc83277ab28/.clj-kondo/hooks/convex.clj
clojure
(ns hooks.convex "Hook for templating Convex Lisp." {:author "Adam Helinski"} (:require [clj-kondo.hooks-api :as hook])) (defn -traverse "Traverses children and returns the `acc` with all unquoted forms and values." ([child] (-traverse [] child)) ([acc child] (if (or (hook/...
688b152aff3867bea302943056b6cd3a3edd4a28dad12a053a521b0335bfbef0
exercism/common-lisp
word-count-test.lisp
;; Ensures that word-count.lisp and the testing library are always loaded (eval-when (:compile-toplevel :load-toplevel :execute) (load "word-count") (quicklisp-client:quickload :fiveam)) ;; Defines the testing package with symbols from word-count and FiveAM in scope ;; The `run-tests` function is exported for use ...
null
https://raw.githubusercontent.com/exercism/common-lisp/2eaab3758282d8046d70d928bd438892f9794b65/exercises/practice/word-count/word-count-test.lisp
lisp
Ensures that word-count.lisp and the testing library are always loaded Defines the testing package with symbols from word-count and FiveAM in scope The `run-tests` function is exported for use by both the user and test-runner Enter the testing package Define and enter a new FiveAM test-suite
(eval-when (:compile-toplevel :load-toplevel :execute) (load "word-count") (quicklisp-client:quickload :fiveam)) (defpackage :word-count-test (:use :cl :fiveam) (:export :run-tests)) (in-package :word-count-test) (def-suite* word-count-suite) (defun assert-alist-equal (expected actual) "The association li...
9a0789b9e00934f1f5cd4d170e27d8a5fc9a8fffdf151127b69faaacd2ed2833
8c6794b6/guile-tjit
x-sort1.scm
;;; sort1 from racket benchmarks. This benchmark uses the code for Larceny 's standard sort procedure . ; ; Usage: ; (sort-benchmark sorter n) ; ; where sorter is a sort procedure ( usually sort or ) whose calling convention is compatible with Larceny 's ; n is the number of fixnums to sort (define sort1 ...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/x-sort1.scm
scheme
sort1 from racket benchmarks. Usage: (sort-benchmark sorter n) where n is the number of fixnums to sort File : sort.scm Sort and Sort! will sort lists and vectors. The former returns a new data structure; the latter sorts the data structure in-place. A mergesort algorithm is used. (car a) <= (car b) ...
This benchmark uses the code for Larceny 's standard sort procedure . sorter is a sort procedure ( usually sort or ) whose calling convention is compatible with Larceny 's (define sort1 (let () Author : ( based on Prolog code by D.H.D.Warren ) Updated : 11 June 1991 $ I d : sort.sch 264 1998 - ...
ee1f13611a0e7c9617f257251f89789a63b6464947e6f940428a5984d33cf85f
open-company/open-company-web
reaction.cljs
(ns oc.web.stores.reaction (:require [taoensso.timbre :as timbre] [cljs-flux.dispatcher :as flux] [oc.web.lib.jwt :as jwt] [oc.web.lib.utils :as utils] [oc.web.utils.activity :as au] [oc.web.dispatcher :as dispatcher])) ;; Store reaction and related data (d...
null
https://raw.githubusercontent.com/open-company/open-company-web/dfce3dd9bc115df91003179bceb87cca1f84b6cf/src/main/oc/web/stores/reaction.cljs
clojure
Store reaction and related data Reducers used to watch for reaction dispatch data Handle dispatch events Wait for the entry refresh if it didn't If the reaction is from the current user we need to update the reacted, the links are the one coming with the WS message If it's a reaction from another user we need t...
(ns oc.web.stores.reaction (:require [taoensso.timbre :as timbre] [cljs-flux.dispatcher :as flux] [oc.web.lib.jwt :as jwt] [oc.web.lib.utils :as utils] [oc.web.utils.activity :as au] [oc.web.dispatcher :as dispatcher])) (defonce reactions-atom (atom {})) (...
d374cca0497dfa6b58cd2e5889080720f90e4f77c6c3ae1f556f14b105d9262f
bos/rwh
FormApp.hs
import ApplicativeParsec import Numeric (readHex) {-- snippet a_query --} a_query :: CharParser () [(String, Maybe String)] a_query = a_pair `sepBy` char '&' {-- /snippet a_query --} {-- snippet a_pair --} a_pair :: CharParser () (String, Maybe String) a_pair = liftA2 (,) (many1 a_char) (optionMaybe (char '=' *> many...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch16/FormApp.hs
haskell
- snippet a_query - - /snippet a_query - - snippet a_pair - - /snippet a_pair - - snippet a_char - - /snippet a_char - - snippet p_hex - - /snippet p_hex - - snippet a_hex - - /snippet a_hex - - snippet hexify - - /snippet hexify -
import ApplicativeParsec import Numeric (readHex) a_query :: CharParser () [(String, Maybe String)] a_query = a_pair `sepBy` char '&' a_pair :: CharParser () (String, Maybe String) a_pair = liftA2 (,) (many1 a_char) (optionMaybe (char '=' *> many a_char)) - snippet p_char - p_char :: CharParser () Char p_char = oneO...
d7a0c1b0550ab1ccbd3d032c3b9cedbf393d840b53a5e0ce1780857166c7d02e
kyleburton/sandbox
actions.clj
(ns the-mystery-on-orville-st.actions (:require [the-mystery-on-orville-st.data :as data] [clojure.string :as string] [schema.core :as s] [clojure.tools.logging :as log])) ;; TODO: lock the front door, make the player unlock it and open it before they can walk ...
null
https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/common-lisp/land-of-lisp/the-mystery-on-orville-st/src/the_mystery_on_orville_st/actions.clj
clojure
TODO: lock the front door, make the player unlock it and open it before they can walk through it TODO: put the puzzle into the living room description, add a custom action to finish the puzzle. TODO: finish adding edges for the house actions are functions that are passed (game-state player) and can manipulate eith...
(ns the-mystery-on-orville-st.actions (:require [the-mystery-on-orville-st.data :as data] [clojure.string :as string] [schema.core :as s] [clojure.tools.logging :as log])) (defonce actions (atom {})) (def Action {(s/required-key :name) s/Keyword ...
1cb1acbdb6f410a6e606e1fa7b50e8799e7f6d9ccf687e3f720a9ef248e44ea7
janestreet/hardcaml_c
bench.ml
open Core open Hardcaml let benchmarked_circuit () = Hardcaml_test.Generator.gen_circuit ~allow_inputs:false ~depth:9 |> Quickcheck.Generator.generate ~size:1000 ~random:(Splittable_random.State.of_int 42) ;; ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┬ ─ ─ ─ ─ ─ ...
null
https://raw.githubusercontent.com/janestreet/hardcaml_c/1bf2468801ba9f6a935ffcd08887d9da87bee3f1/bench/bench.ml
ocaml
open Core open Hardcaml let benchmarked_circuit () = Hardcaml_test.Generator.gen_circuit ~allow_inputs:false ~depth:9 |> Quickcheck.Generator.generate ~size:1000 ~random:(Splittable_random.State.of_int 42) ;; ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┬ ─ ─ ─ ─ ─ ...
97410402f71a842d2b849ca8801fae2d5c8eb1e3beff9bda3e9e3ef3b9d1116a
larcenists/larceny
16with-lose2.scm
(bits 16) (text (label foo (ret)) (seq (nop) (with-lose (reloc my-reloc foo 100) (iter (alt (seq (nop) z!) (seq (nop) a!) (seq (nop) po!)))) (nop))) 00000000 C3 ret 00000001 90 nop 00000002 90 nop 00000003 74FD ...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims16/16with-lose2.scm
scheme
(bits 16) (text (label foo (ret)) (seq (nop) (with-lose (reloc my-reloc foo 100) (iter (alt (seq (nop) z!) (seq (nop) a!) (seq (nop) po!)))) (nop))) 00000000 C3 ret 00000001 90 nop 00000002 90 nop 00000003 74FD ...
5a910757a410ad64f9b1d9a7a8a4ca88ac47a2a68d3566793114664b3e688dd8
kupl/LearnML
patch.ml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((a : aexp), (s : string)) : aexp = match a with | Const i -> Const 0 | Var v -> if v = s then Const 1 else Const 0 | Power (v, p) -> if v != s || p = 0 then Const 0 e...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/diff/sub3/patch.ml
ocaml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((a : aexp), (s : string)) : aexp = match a with | Const i -> Const 0 | Var v -> if v = s then Const 1 else Const 0 | Power (v, p) -> if v != s || p = 0 then Const 0 e...
2a24a3ea513bb249650988be80420640b8e60e075f6509ac86a4ae1791238f91
cnuernber/dtype-next
streams_test.clj
(ns tech.v3.datatype.streams-test (:require [tech.v3.datatype :as dtype] [clojure.test :refer [deftest is]])) (set! *warn-on-reflection* true) (defn typed-stream-sum [rdr] (case (dtype/get-datatype rdr) :boolean (-> (dtype/->reader rdr) (.longStream true) (.su...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/3fe3b62669bf83f6273235ae91988e4fd68d3026/test/tech/v3/datatype/streams_test.clj
clojure
(ns tech.v3.datatype.streams-test (:require [tech.v3.datatype :as dtype] [clojure.test :refer [deftest is]])) (set! *warn-on-reflection* true) (defn typed-stream-sum [rdr] (case (dtype/get-datatype rdr) :boolean (-> (dtype/->reader rdr) (.longStream true) (.su...
fe19601af8f3017caf8437de9065930815e453e2cb79ee78cc163a6f59dde269
haskell-opengl/OpenGLRaw
ConservativeRasterPreSnapTriangles.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.ConservativeRasterPreSnapTriangles Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/ConservativeRasterPreSnapTriangles.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.ConservativeRasterPreSnapTriangles License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support ...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.ConservativeRasterPreSnapTriangles ( glGetNVConservativeRasterPreSnapTriangles, gl_NV_conservative_raster_pre_snap_triangles, pattern GL_CONSERVATIVE_RASTER_MODE_NV, pattern GL_CONSERVATIVE_RASTER_MODE_...
07a5126cc570dab02579a33fac1c908cc0b8dd9b4f28312a88e64230df37bd6f
dbuenzli/ttweetnacl
myocamlbuild.ml
open Ocamlbuild_plugin open Command let lib s = match !Ocamlbuild_plugin.Options.ext_lib with | "" -> s ^ ".a" | x -> s ^ "." ^ x let () = dispatch begin function | After_rules -> dep ["record_ttweetnacl_stubs"] [lib "src/libttweetnacl_stubs"]; flag_and_dep ["link"; "ocaml"; "link_ttweetnacl...
null
https://raw.githubusercontent.com/dbuenzli/ttweetnacl/ec93900ae0b31861e8b2bc4938727b3e11513b26/myocamlbuild.ml
ocaml
byte and native
open Ocamlbuild_plugin open Command let lib s = match !Ocamlbuild_plugin.Options.ext_lib with | "" -> s ^ ".a" | x -> s ^ "." ^ x let () = dispatch begin function | After_rules -> dep ["record_ttweetnacl_stubs"] [lib "src/libttweetnacl_stubs"]; flag_and_dep ["link"; "ocaml"; "link_ttweetnacl...
c94f98745338c4d79e17f40e272ed8e82a611dfbfa2072f5567e1ecf56713bd2
parapluu/Concuerror
monitor_order.erl
-module(monitor_order). -export([test/0]). -export([scenarios/0]). %%------------------------------------------------------------------------------ scenarios() -> [test]. %%------------------------------------------------------------------------------ test() -> P1 = spawn(fun () -> p1(undefined) end), _2 = spa...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/monitor_order.erl
erlang
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
-module(monitor_order). -export([test/0]). -export([scenarios/0]). scenarios() -> [test]. test() -> P1 = spawn(fun () -> p1(undefined) end), _2 = spawn(fun () -> p2(P1) end), P3 = spawn(fun () -> p3(P1) end), exit(P3, test). p1(State) -> receive {p2, P2} -> self() ! clear, p1({P2, monito...
14ceab9288cacf044d8a9371767bc1242a6e13240bf9cef7b97ee8a21bf4b95d
isovector/algebra-driven-design
Spec.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Scavenge.Spec where import Control.Monad import Control.Arrow import Data.Foldable import ...
null
https://raw.githubusercontent.com/isovector/algebra-driven-design/11c514e75feb22b51ae744379664549e06e70de4/code/Scavenge/Spec.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # (c2 :: Challenge Test TestClue TestReward) ->
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Scavenge.Spec where import Control.Monad import Control.Arrow import Data.Foldable import Data.Map.Monoidal (singleton) import QuickSpec import Scavenge.Initial import ...
433c93d75a668ed0d8bf17a2aac0d925c849ea1e47fb9e01bf113957d47791e9
pbrisbin/codeclimate-hlint
main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import CC.Config import CC.Engine import Data.Aeson (encode) import Data.Monoid ((<>)) import qualified Data.ByteString.Lazy as BL main :: IO () main = do sources <- configIncludes <$> loadConfig "/config.json" results <- analyzeFiles =<< hsFiles sources ...
null
https://raw.githubusercontent.com/pbrisbin/codeclimate-hlint/86e37eb90709274d46c259ac92d85d83f090a962/main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import CC.Config import CC.Engine import Data.Aeson (encode) import Data.Monoid ((<>)) import qualified Data.ByteString.Lazy as BL main :: IO () main = do sources <- configIncludes <$> loadConfig "/config.json" results <- analyzeFiles =<< hsFiles sources mapM_ (BL.putStr . (<> "\0") ....
baa5fddeb4ba7b694f0492490265e5fd1f7554e3f9e3fb307fac759379844a28
dwayne/haskell-programming
Morse.hs
module Morse ( Morse , charToMorse , morseToChar , stringToMorse , letterToMorse , morseToLetter ) where import qualified Data.Map as M type Morse = String letterToMorse :: M.Map Char Morse letterToMorse = M.fromList [ ('a', ".-") , ('b', "-...") , ('c', "-.-.") , ('d', "-..") , ('e', ".") ...
null
https://raw.githubusercontent.com/dwayne/haskell-programming/d08679e76cfd39985fa2ee3cd89d55c9aedfb531/ch14/morse/src/Morse.hs
haskell
module Morse ( Morse , charToMorse , morseToChar , stringToMorse , letterToMorse , morseToLetter ) where import qualified Data.Map as M type Morse = String letterToMorse :: M.Map Char Morse letterToMorse = M.fromList [ ('a', ".-") , ('b', "-...") , ('c', "-.-.") , ('d', "-..") , ('e', ".") ...
232c3d91769e074dcf5c3a7a42b141ef06b25d23acfad9b23078005da33edfcb
kbaba1001/todo
articles_test.clj
(ns todo.boundary.articles-test (:require [clojure.test :as t] [clojure.java.jdbc :as jdbc] [todo.test-utils :as u] [todo.boundary.articles :as articles])) (t/use-fixtures :each u/db-cleanup) (t/deftest boundary-artilces-test (t/testing "create article" (let [article-id (ar...
null
https://raw.githubusercontent.com/kbaba1001/todo/bf48c99a97ece1726bdd4b2e2ce0e53ae9e93a31/test/todo/boundary/articles_test.clj
clojure
(ns todo.boundary.articles-test (:require [clojure.test :as t] [clojure.java.jdbc :as jdbc] [todo.test-utils :as u] [todo.boundary.articles :as articles])) (t/use-fixtures :each u/db-cleanup) (t/deftest boundary-artilces-test (t/testing "create article" (let [article-id (ar...
d620a3421a1231923923aab3f90552427fc400b4f4cf21cf38076b2ea8f6744b
eslick/cl-stdutils
math.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : utils -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: math.lisp ;;;; Purpose: Math related utility functions Programmer : Date Started : Augus...
null
https://raw.githubusercontent.com/eslick/cl-stdutils/4a4e5a4036b815318282da5dee2a22825369137b/src/math.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 ; Package : utils -*- ************************************************************************* FILE IDENTIFICATION Name: math.lisp Purpose: Math related utility functions ------------------------- Simple math utilities ------------------------ Simple ...
Programmer : Date Started : August 2004 (in-package :stdutils) (eval-when (compile eval load) (proclaim '(optimize speed))) (defun-exported limit-max (limit value) (if (> value limit) limit value)) (defun-exported limit-min (limit value) (if (< value limit) limit value)) (defun-exported factor...
7ab318fe1d84f3a8b54522cd65d2827bd1b8c06490b0ef104c6e7d48db3fb272
wireless-net/erlang-nommu
snmpa_mib_storage_dets.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2013 - 2013 . 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 Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/snmp/src/agent/snmpa_mib_storage_dets.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 limitatio...
Copyright Ericsson AB 2013 - 2013 . 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(snmpa_mib_storage_dets). -behaviou...
b041eb1cae606fd26c0f7fe238a596a8e2f6fdf9c81d7c3abd41e0a2b632ba09
diffusionkinetics/open
Plotly.hs
# LANGUAGE DeriveGeneric , OverloadedStrings , FlexibleInstances , TemplateHaskell # {-| Re-exports the Simple interface, the grammar of grpahics interface and parts of the base interface. -} module Graphics.Plotly ( module Base, module Simple, module GoG ) where import Graphics.Plotly.Base as Base hidin...
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/plotlyhs/src/Graphics/Plotly.hs
haskell
| Re-exports the Simple interface, the grammar of grpahics interface and parts of the base interface.
# LANGUAGE DeriveGeneric , OverloadedStrings , FlexibleInstances , TemplateHaskell # module Graphics.Plotly ( module Base, module Simple, module GoG ) where import Graphics.Plotly.Base as Base hiding (x,y, z, _x, _y, _z, _size, _line, size, line) import Graphics.Plotly.Simple as Simple import Graphics.Plotl...
bac4d98a72c649e8dab46858323a5ad2462084f59adb2416351b6a0245eca27a
thomaseding/hearthshroud
HeroName.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # module Hearth.Model.Authoring.HeroName ( HeroName(..), showHeroName, ) where -------------------------------------------------------------------------------- import Data.Data import Data.Namespac...
null
https://raw.githubusercontent.com/thomaseding/hearthshroud/b21e2f69f394c94a106a3b57b95aa1a76b8d4003/src/Hearth/Model/Authoring/HeroName.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# LANGUAGE KindSignatures # # LANGUAGE LambdaCase # module Hearth.Model.Authoring.HeroName ( HeroName(..), showHeroName, ) where import Data.Data import Data.Namespace import Hearth.Authored.Hero.Basic.Names import Text.LambdaOptions.Parseable import Text.Read (readMaybe) data HeroName :: * where ...
093bda8a6e098ed4706bf8f6951d9a928cf72319236b6eca543a5d7960cf4437
fetburner/Coq2SML
decls.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/library/decls.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module manages non-kernel inf...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Sign open Lib...