_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
478fa9bdcbda90b0b1c8f10782e62ba2188a66808908c5eaf90e5435caadab8d
j-mie6/ParsleyHaskell
Primitives.hs
# LANGUAGE PatternSynonyms # module Parsley.Internal.Core.Primitives ( Parser, Reg, module Parsley.Internal.Core.Primitives ) where import Prelude hiding (pure, (<*>)) import Parsley.Internal.Core.CombinatorAST (Combinator(..), ScopeRegister(..), Reg(..), Parser(..), PosSelector(..))...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley-core/src/ghc/Parsley/Internal/Core/Primitives.hs
haskell
# INLINE satisfy # # INLINE (<*>) # # INLINE (<*) # # INLINE (*>) # # INLINE empty # # INLINE (<|>) # # INLINE try # # INLINE branch # # INLINE get #
# LANGUAGE PatternSynonyms # module Parsley.Internal.Core.Primitives ( Parser, Reg, module Parsley.Internal.Core.Primitives ) where import Prelude hiding (pure, (<*>)) import Parsley.Internal.Core.CombinatorAST (Combinator(..), ScopeRegister(..), Reg(..), Parser(..), PosSelector(..))...
7642eb6e498251745dfdfc512b67a9fee93e303c7bd05bbfea8aee6b3fa4d0c4
ygmpkk/house
ClCrossCall_12.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : OS.ClCrossCall_12 Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- ClCrossCall_12 contains the operations to comm...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/OS/ClCrossCall_12.hs
haskell
#hide --------------------------------------------------------------------------- | Module : OS.ClCrossCall_12 License : BSD-style Maintainer : Stability : provisional Portability : portable ClCrossCall_12 contains the operations to communicate between Haskell and OS thread. -------------...
Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.OS.ClCrossCall_12 ( module Graphics.UI.ObjectIO.OS.ClCrossCall_12 ) where import Graphics.UI.ObjectIO.OS.Types import Graphics.UI.ObjectIO.OS.Cutil_12 import System.IO.Unsafe import Data.IORef infrastructure data CrossCallInfo = CrossCallInfo The ...
50201a367fccb598cd07cd9c375a896994d5a637218e71cc9b5a4c308292fe1f
Deducteam/Logipedia
extras.ml
(** Type of equality function. *) type 'a eq = 'a -> 'a -> bool (** Type of a pretty printer. *) type 'a pp = Format.formatter -> 'a -> unit module Option = struct type 'a t = 'a option let map : ('a -> 'b) -> 'a t -> 'b t = fun f op -> match op with | None -> None | Some(v) -> Some(f v) let ge...
null
https://raw.githubusercontent.com/Deducteam/Logipedia/09797a35ae36ab671e40e615fcdc09a7bba69134/src/core/extras.ml
ocaml
* Type of equality function. * Type of a pretty printer. * [mem_eq eq e l] is [List.mem e l] with equality function [eq]. * [t <.> u] returns path [t.u]. * [~. t] prefixes [t] with a dot if it does not begin with one. * [t </> u] is an alias for [concat]. * [!/ t] removes the extension of [t] and takes the basena...
type 'a eq = 'a -> 'a -> bool type 'a pp = Format.formatter -> 'a -> unit module Option = struct type 'a t = 'a option let map : ('a -> 'b) -> 'a t -> 'b t = fun f op -> match op with | None -> None | Some(v) -> Some(f v) let get : 'a t -> 'a = function | Some(v) -> v | None -> inval...
f9892cbeeefaf172fe5ca6e7dec8493a658e08d5243db29be9dc5cc26ee48ac0
DaiF1/Oditor
colors.ml
file : colors.ml dependencies : editor.ml Syntax highlighting implementation file: colors.ml dependencies: editor.ml Syntax highlighting implementation *) open Editor;; Convert hltype to escape code param code : hltype to convert param code: hltype to convert *) let hl_to_e...
null
https://raw.githubusercontent.com/DaiF1/Oditor/10cdb7a95cc97b79a2feca24a7aecc00804d7106/editor/colors.ml
ocaml
OCaml keywords in alphabetic order Ocaml other keywords in alphabetic order Return true if char is digit Return true if char is separator build hl list of length 'len' and filled with 'key' elements Check if keyword 'keys' is in row starting from 'i' position Process digit Process strings Process chars...
file : colors.ml dependencies : editor.ml Syntax highlighting implementation file: colors.ml dependencies: editor.ml Syntax highlighting implementation *) open Editor;; Convert hltype to escape code param code : hltype to convert param code: hltype to convert *) let hl_to_e...
38a104be103660745f9be28075f361f1a07372b86c9ff9acb281c28baa3cf42d
gator1/jepsen
bank.clj
(ns jepsen.cockroach.bank "Simulates transfers between bank accounts" (:refer-clojure :exclude [test]) (:require [jepsen [cockroach :as cockroach] [client :as client] [checker :as checker] [generator :as gen] [independent :as independ...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/cockroachdb/src/jepsen/cockroach/bank.clj
clojure
(ns jepsen.cockroach.bank "Simulates transfers between bank accounts" (:refer-clojure :exclude [test]) (:require [jepsen [cockroach :as cockroach] [client :as client] [checker :as checker] [generator :as gen] [independent :as independ...
e1432b4a2dd9a6b83c0f7a94de54325897a8ac66b71460607944c18ede7cbbb7
Lysxia/generic-data
inspection.hs
# OPTIONS_GHC -dsuppress - all # # LANGUAGE BangPatterns , CPP , DeriveFunctor , DeriveFoldable , DeriveTraversable , DeriveGeneric , DerivingVia , EmptyCase , EmptyDataDeriving , TemplateHaskell # BangPatterns, CPP, DeriveFunctor, Derive...
null
https://raw.githubusercontent.com/Lysxia/generic-data/846fafb9ec1e4e60424e4f266451665fe25fdfa9/test/inspection.hs
haskell
# LANGUAGE TypeOperators, TypeFamilies # Test cases Arity 0 (nullary) Arity 2 (binary) Arity 4 (quaternary) A big sum of stuff # INLINE from # Empty No EmptyCase! Ary0 TODO: These tests fail because of a difference in how the Functor dictionary is accessed via the Applicative dictionary. The rest looks alri...
# OPTIONS_GHC -dsuppress - all # # LANGUAGE BangPatterns , CPP , DeriveFunctor , DeriveFoldable , DeriveTraversable , DeriveGeneric , DerivingVia , EmptyCase , EmptyDataDeriving , TemplateHaskell # BangPatterns, CPP, DeriveFunctor, Derive...
7742ef61d2d9f9d4da4ad1706cad9b86a70259fb03f9070f761bbd5fcdeed7dc
sweirich/trellys
DepthFirstSearch.hs
-- This module based upon code described in " Structuring Depth First Search Algorithms in Haskell " by and Proc . ACM Principles of Programming Languages , San Francisco , 1995 . module DepthFirstSearch where import Control.Monad.ST import Data.Array.ST import qualified Data.Array as A typ...
null
https://raw.githubusercontent.com/sweirich/trellys/63ea89d8fa09929c23504665c55a3d909fe047c5/nax/src/DepthFirstSearch.hs
haskell
This module based upon code described in Representing graphs: (map fst . A.assocs) graph buildG _ [] = [] buildG _ (x:xs) = [] deriving Show topSort :: Graph -> [Vertex] topSort = reverse . postOrd
" Structuring Depth First Search Algorithms in Haskell " by and Proc . ACM Principles of Programming Languages , San Francisco , 1995 . module DepthFirstSearch where import Control.Monad.ST import Data.Array.ST import qualified Data.Array as A type Vertex = Int [ ( Vertex , a ) ] t...
1c1deea45ccf6677959972bca3a977583bb976ac3d380d0586cb8d21e30e2d84
CindyLinz/Haskell.js
case_reorder2.hs
data Pair :: * -> * -> * where Pair :: a -> b -> Pair a b --main = putStrLn ('A' : 'n' : 'y' : []) --main = case Nothing of -- Just a | True -> putStrLn ('A' : 'n' : 'Y' : []) -- Nothing | True -> putStrLn ('A' : 'n' : 'y' : []) main = case Just (Just (Pair (Pair 4 2) 5)) of _ | False -> putStrLn ('A' : 'n' : ...
null
https://raw.githubusercontent.com/CindyLinz/Haskell.js/78429a49181a15f6bdae426f17bdae722ad17141/trans/sample/case_reorder2.hs
haskell
main = putStrLn ('A' : 'n' : 'y' : []) main = case Nothing of Just a | True -> putStrLn ('A' : 'n' : 'Y' : []) Nothing | True -> putStrLn ('A' : 'n' : 'y' : []) let fallback- = undefined x1- = Just (Just (Pair 3 5)) in let fallback+ = fallback- in let fallback- = let ...
data Pair :: * -> * -> * where Pair :: a -> b -> Pair a b main = case Just (Just (Pair (Pair 4 2) 5)) of _ | False -> putStrLn ('A' : 'n' : 'y' : []) Just Nothing | False -> putStrLn ('J' : 'u' : 's' : 't' : ' ' : 'N' : 'o' : 't' : 'h' : 'i' : 'n' : 'g' : ' ' : 'F' : 'a' : 'l' : 's' : 'e' : []) Just (Just ...
373d76ea37d08b1468bb2bce5c3b57b77ae9aa93488f439c1584323e41d93838
waymonad/waymonad
IPC.hs
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2018 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
null
https://raw.githubusercontent.com/waymonad/waymonad/18ab493710dd54c330fb4d122ed35bc3a59585df/src/Waymonad/IPC.hs
haskell
# LANGUAGE RankNTypes #
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2018 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
4a0d632f7279db678932caa09d03eb3b840068fec6d9df81fb3778133f1a55d8
rd--/hsc3
cuspL.help.hs
-- cuspL ; default values cuspL ar 22050 1.0 1.9 0.0 * 0.1 -- cuspL ; vary frequency let x = mouseX kr 20 (sampleRate / 2) Linear 0.1 in cuspL ar x 1.0 1.99 0 * 0.1 -- cuspL ; mouse-controlled parameters let x = mouseX kr 0.9 1.1 Linear 0.1 y = mouseY kr 1.8 2.0 Linear 0.1 in cuspL ar (sampleRate / 4) x y 0 * 0.1...
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Ugen/cuspL.help.hs
haskell
cuspL ; default values cuspL ; vary frequency cuspL ; mouse-controlled parameters cuspL ; frequency control -- ; drawings -- ; haskell implementation of equation
cuspL ar 22050 1.0 1.9 0.0 * 0.1 let x = mouseX kr 20 (sampleRate / 2) Linear 0.1 in cuspL ar x 1.0 1.99 0 * 0.1 let x = mouseX kr 0.9 1.1 Linear 0.1 y = mouseY kr 1.8 2.0 Linear 0.1 in cuspL ar (sampleRate / 4) x y 0 * 0.1 let x = mouseX kr 0.9 1.1 Linear 0.1 y = mouseY kr 1.8 2.0 Linear 0.1 n = cuspL a...
fcbe495a2f9fc23840f27859e57f5a2a27252b72c0be3f0baa404e5c4a8a2ab1
ocaml-flambda/flambda-backend
to_cmm_shared.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/21942b6fbc9c577be4e8c288149dbe63a5d55e72/middle_end/flambda2/to_cmm/to_cmm_shared.mli
ocaml
************************************************************************ OCaml ...
, OCamlPro the GNU Lesser General Public License version 2.1 , with the * Helper functions and values for Flambda 2 to Cmm translation . Functions in this module , unlike the ones in [ Cmm_helpers ] , depend on Flambda 2 data types . this...
6271ab30ca61b8bce2e20496059dd5ee871c56f317bd82e6ada93b527e8f67cb
quephird/fun-with-quil
fake-cubes.clj
(ns fun-with-quil.sketches.fake-cubes (:require [quil.core :as q :include-macros true])) (defn fake-cube [x y s] (let [h (q/random 30 100) sa (q/random 127 255)] (q/push-matrix) (q/translate x y) (dotimes [i 3] (q/fill h sa (/ 255 (inc i))) (q/quad 0 0 (* 0.866 s) (* -...
null
https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/src/fun_with_quil/sketches/fake-cubes.clj
clojure
(ns fun-with-quil.sketches.fake-cubes (:require [quil.core :as q :include-macros true])) (defn fake-cube [x y s] (let [h (q/random 30 100) sa (q/random 127 255)] (q/push-matrix) (q/translate x y) (dotimes [i 3] (q/fill h sa (/ 255 (inc i))) (q/quad 0 0 (* 0.866 s) (* -...
f7fb8f55937dea5d70b7e9b2d428f08183cdd20c0988a0d0c7965af195e56402
clojurewerkz/buffy
project.clj
(defproject clojurewerkz/buffy "1.2.0-SNAPSHOT" :description "Clojure library for working with binary data" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [io.netty/netty-buffer "4.0.51.Final"]...
null
https://raw.githubusercontent.com/clojurewerkz/buffy/459a4ba194c66d8426cdbdf4cea6e4ccd6239428/project.clj
clojure
"-javaagent:/Users/ifesdjeen/hackage/introspect/target/introspect-1.0.0-SNAPSHOT-standalone.jar=clojurewerkz.buffy.core" ]
(defproject clojurewerkz/buffy "1.2.0-SNAPSHOT" :description "Clojure library for working with binary data" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [io.netty/netty-buffer "4.0.51.Final"]...
44bce15289f293ac2656756279e4df8422b999ff70fc8a19bef6b30ca497eabf
MinaProtocol/ppx_optcomp
ppx_optcomp.ml
open Base open Stdio open Ppxlib open Ast_builder.Default module Filename = Caml.Filename module Env = Interpreter.Env module Value = Interpreter.Value module Of_item = struct (* boilerplate code to pull extensions out of different ast nodes *) open Token let directive_or_block_of_ext ~item ({ txt = ext_name;...
null
https://raw.githubusercontent.com/MinaProtocol/ppx_optcomp/2dfcf8104b1afee1a9ed0393d1f9f734c707e5c5/src/ppx_optcomp.ml
ocaml
boilerplate code to pull extensions out of different ast nodes not one of our extensions disable old optcomp on imported files, or it consumes all variables :( [If] waiting for both blocks [If] waiting for else block ~inject_binding:(fun env b -> self#class_field env (Binding.to_pcf b)) ~inject_binding:(fu...
open Base open Stdio open Ppxlib open Ast_builder.Default module Filename = Caml.Filename module Env = Interpreter.Env module Value = Interpreter.Value module Of_item = struct open Token let directive_or_block_of_ext ~item ({ txt = ext_name; loc }, payload) attrs = match Directive.of_string_opt ext_name wit...
6a0033ad4d5f77e3720bbb737f0e828912af8afe1b96f60d4c24c9a492c50cd2
sbcl/sbcl
sb-simd.impure.lisp
;;; Under the evaluator ( SB - SIMD - TEST - SUITE::|SB - SIMD - SSE4.1 : ) ;;; failed for me with RESULT-0 = # < SIMD - PACK 33554433 127 8191 2097153 > , OUTPUT-0 = # < SIMD - PACK 3 8193 2303 1073741823 > . ;;; maybe there are other problems but I didn't i...
null
https://raw.githubusercontent.com/sbcl/sbcl/fbd46c52ea5ea4b3ba98a14ebdd4991d35989c6d/tests/sb-simd.impure.lisp
lisp
Under the evaluator failed for me with maybe there are other problems but I didn't investigate further.
( SB - SIMD - TEST - SUITE::|SB - SIMD - SSE4.1 : ) RESULT-0 = # < SIMD - PACK 33554433 127 8191 2097153 > , OUTPUT-0 = # < SIMD - PACK 3 8193 2303 1073741823 > . #+interpreter (invoke-restart 'run-tests::skip-file) (handler-case (require :sb-simd) (condi...
0c4097c7781a902676f49cb78dea2cb18e3e04e2eaf541cb58ff40175eb6273b
wdebeaum/step
warning.lisp
;;;; ;;;; warning.lisp ;;;; Time - stamp : < Mon Jan 19 14:01:36 EST 2004 ferguson > ;;;; (in-package "ONTOLOGYMANAGER") (defun lfontology-warn (format-string &rest args) "Prints a warning message from the ontology routines." (format *error-output* "~&lfontology: warning: ") (apply #'format *error-output* for...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/OntologyManager/Code/LFOntology/warning.lisp
lisp
warning.lisp
Time - stamp : < Mon Jan 19 14:01:36 EST 2004 ferguson > (in-package "ONTOLOGYMANAGER") (defun lfontology-warn (format-string &rest args) "Prints a warning message from the ontology routines." (format *error-output* "~&lfontology: warning: ") (apply #'format *error-output* format-string args) (fresh-line *e...
f7e8a775fd61f8075e87225c028e28065186c26d80eb04a338544b7d9d6a6097
hbr/fmlib
result.ml
type ('a, 'e) t = ('a, 'e) result let return (a: 'a): ('a, 'e) t = Ok a let fail (e: 'e): ('a, 'e) t = Error e let to_option (r: ('a, _) t): 'a option = match r with | Ok a -> Some a | Error _ -> None let (>>=) (m: ('a, 'e) t) (f: 'a -> ('b, 'e) t): ('b, 'e) t = match m ...
null
https://raw.githubusercontent.com/hbr/fmlib/92ac0e65db09375fad79029072e0c45e80d2586f/src/std/result.ml
ocaml
Unit tests ***************************************
type ('a, 'e) t = ('a, 'e) result let return (a: 'a): ('a, 'e) t = Ok a let fail (e: 'e): ('a, 'e) t = Error e let to_option (r: ('a, _) t): 'a option = match r with | Ok a -> Some a | Error _ -> None let (>>=) (m: ('a, 'e) t) (f: 'a -> ('b, 'e) t): ('b, 'e) t = match m ...
ec1f7f7343f2d4b1651336d54da858ffcfc717bc5da365dcb3b9966321d3201c
ghcjs/ghcjs
polyKinds09.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DefaultSignatures #-} # LANGUAGE TypeFamilies # {-# LANGUAGE GADTs #-} # LANGUAGE FlexibleContexts # module Main where -------------------------------------------------------------------------------- -- Si...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/polykinds/polyKinds09.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DefaultSignatures # # LANGUAGE GADTs # ------------------------------------------------------------------------------ Simple generic programming (instant-generics-like library) -------------------------------------------------------------...
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # module Main where data U a = UNIT | SUM (U a) (U a) | PRODUCT (U a) (U a) | REC a GADT interpretation data I :: U * -> * where Unit :: I UNIT Inl :: I a -> I (SUM a b) Inr :: I b -> I (SUM a b) Pr...
b31cfcd7be8cd960c5668fcaf854f9f9b2a978ba9e7071a86e7760dbb5b6875d
erlang/corba
PusherSupplier_impl.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 1999 - 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 ...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/cosNotification/src/PusherSupplier_impl.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...
Copyright Ericsson AB 1999 - 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('PusherSupplier_impl'). -include_lib("orber/include/corba.hrl"). -include_lib("orber/include/ifr_types.hrl...
95b9edb5b739a9b0c43d9391319a934bbd618512c275bc95b7e800ef567544fb
ekmett/ekmett.github.com
Arrow.hs
------------------------------------------------------------------------------------------- -- | -- Module : Control.Category.Arrow Copyright : 2008 -- License : BSD -- Maintainer : < > -- Stability : experimental -- Portability : non-portable (class-associated types) -- -----------------------------------...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/categories/_darcs/pristine/src/Control/Category/Arrow.hs
haskell
----------------------------------------------------------------------------------------- -- | Module : Control.Category.Arrow License : BSD Stability : experimental Portability : non-portable (class-associated types) -----------------------------------------------------------------------------------------
Copyright : 2008 Maintainer : < > module Control.Category.Arrow where import Prelude hiding (Functor, map, (.), id, fst, snd, curry, uncurry) import Control.Category import Control.Category.Cartesian Arrows have finite products , a fixed notion for Prod k and can inject functions from the metalanguage...
95a422f7f65611d66b904180489d9c704d9c1c0e6c9a6f9664646883e7a6b2c3
manuel-serrano/bigloo
loc2glo.scm
;*=====================================================================*/ * ... /project / bigloo / / comptime / Globalize / loc2glo.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : Fri...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Globalize/loc2glo.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * Last change : Thu Jul 8 11:29:23 2021 (serrano) */ * ------------------------------------------------------------- */ * The `local' -> `global'...
* ... /project / bigloo / / comptime / Globalize / loc2glo.scm * / * Author : * / * Creation : Fri Jan 27 11:39:39 1995 * / * Copyright : 1995 - 2021 , see LICENSE file * / (module globalize_local->gl...
806711e5672b7f655cf7c458ff69c3eeab20254cc5a8e08dbd20a386973f3903
ddssff/cabal-debian
Changelog.hs
module Debian.Debianize.Changelog ( filterEntries , dropFutureEntries , findChangelogEntry , mergeChangelogEntries ) where import Debian.Changes (ChangeLog(..), ChangeLogEntry(..)) import Debian.Version (DebianVersion) import Prelude hiding (log) -- | Apply a filter to the version numbers of the c...
null
https://raw.githubusercontent.com/ddssff/cabal-debian/763270aed987f870762e660f243451e9a34e1325/src/Debian/Debianize/Changelog.hs
haskell
| Apply a filter to the version numbers of the changelog entries. | Filter out versions newer than the given one. | Find the log entry with the given version.
module Debian.Debianize.Changelog ( filterEntries , dropFutureEntries , findChangelogEntry , mergeChangelogEntries ) where import Debian.Changes (ChangeLog(..), ChangeLogEntry(..)) import Debian.Version (DebianVersion) import Prelude hiding (log) filterEntries :: (DebianVersion -> Bool) -> ChangeL...
7679ec84de461b2b208db9258c169a04e45a1080e9b54dbf28aa9717930c4c79
nineties-retro/sps
sps-lexer-action.scm
To avoid hard - coding what the lexer should do when it finds each lexeme ; the lexer is parameterized over the actions it should perform. ; In design pattern speak, this is an instance of a Builder (see Gamma et al . page 97 ) (define (sps:lexer:action:str ops) (sps:word-vector:ref ops 0)) (define (sps:lexer:a...
null
https://raw.githubusercontent.com/nineties-retro/sps/bf15b415f4cdf5d6d69ae2f39c250db2090c0817/sps-lexer-action.scm
scheme
the lexer is parameterized over the actions it should perform. In design pattern speak, this is an instance of a Builder (see
To avoid hard - coding what the lexer should do when it finds each lexeme Gamma et al . page 97 ) (define (sps:lexer:action:str ops) (sps:word-vector:ref ops 0)) (define (sps:lexer:action:str-chunk ops) (sps:word-vector:ref ops 1)) (define (sps:lexer:action:id ops) (sps:word-vector:ref ops 2)) (define (sp...
cd048006319ed02e9f13ae85ddb1c056df235e489a0d761513dc14d14206381d
acieroid/scala-am
pcounter6.scm
(letrec ((counter 0) (thread (lambda (n) (letrec ((old counter) (new (+ old 1))) (if (cas counter old new) #t (thread n))))) (t1 (fork (thread 1))) (t2 (fork (thread 2))) (t3 (fork (thread 3)))...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/concurrentScheme/threads/variations/pcounter6.scm
scheme
(letrec ((counter 0) (thread (lambda (n) (letrec ((old counter) (new (+ old 1))) (if (cas counter old new) #t (thread n))))) (t1 (fork (thread 1))) (t2 (fork (thread 2))) (t3 (fork (thread 3)))...
962266dba77a970248416c969e3250df6d8e1aa397f342502d0489fef4d0b71d
ktakashi/sagittarius-scheme
ecdsa_secp256k1_sha256_p1363_test.scm
(test-signature/testvector "ecdsa_secp256k1_sha256_p1363_test" :algorithm "ECDSA" :digest "SHA-256" :public-key #vu8(48 86 48 16 6 7 42 134 72 206 61 2 1 6 5 43 129 4 0 10 3 66 0 4 184 56 255 68 229 188 23 123 242 17 137 208 118 96 130 252 157 132 50 38 136 127 201 118 3 113 16 11 126 226 10 111 240 201 2...
null
https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/8d3be98032133507b87d6c0466d60f982ebf9b15/ext/crypto/tests/testvectors/signature/ecdsa_secp256k1_sha256_p1363_test.scm
scheme
(test-signature/testvector "ecdsa_secp256k1_sha256_p1363_test" :algorithm "ECDSA" :digest "SHA-256" :public-key #vu8(48 86 48 16 6 7 42 134 72 206 61 2 1 6 5 43 129 4 0 10 3 66 0 4 184 56 255 68 229 188 23 123 242 17 137 208 118 96 130 252 157 132 50 38 136 127 201 118 3 113 16 11 126 226 10 111 240 201 2...
1c643ce381ea5403c6169efc019403c5872e486855e56421b79811ebc8d19099
Incanus3/ExiL
tst-env-undo2.lisp
(in-package :env-tests) (declaim (optimize (debug 3) (compilation-speed 0) (space 0) (speed 0))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defun modify-all-slots (env) (set-watcher env :facts) (add-template env (make-template :in '(object location))) (add-fact env (make-...
null
https://raw.githubusercontent.com/Incanus3/ExiL/de0f7c37538cecb7032cc1f2aa070524b0bc048d/src/tests/environment/tst-env-undo2.lisp
lisp
stacks FACTS MANIPULATION facts watched (watch facts) on redo stack should dump redo stack facts watched (watch facts) on redo stack should dump redo stack facts watched (watch facts) on redo stack should dump redo stack RULES rule is satisfied by the fact, so the addition affects agenda as well facts ...
(in-package :env-tests) (declaim (optimize (debug 3) (compilation-speed 0) (space 0) (speed 0))) (defun modify-all-slots (env) (set-watcher env :facts) (add-template env (make-template :in '(object location))) (add-fact env (make-simple-fact '(fact))) (add-fact-group env :facts (list (make-simple-fact '(fg f...
8e0342f553f81352ba03897e9c4e54e6d685ad2d7bc5ef6e40db20d8391124a6
PacktWorkshops/The-Clojure-Workshop
exercise_6_01_test.clj
(ns packt-clj.chapter-6-tests.exercise-6-01-test (:require [clojure.test :as t :refer [deftest is testing]] [packt-clj.chapter-6-tests.exercise-6-01 :as exo])) (deftest article-stream (is 12 (= (count (exo/article-stream 12)))) (is (every? (comp integer? :weight) (exo/article-stream 12))) (is (every? (co...
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter06/tests/packt-clj.chapter-6-tests/test/packt_clj/chapter_6_tests/exercise_6_01_test.clj
clojure
(ns packt-clj.chapter-6-tests.exercise-6-01-test (:require [clojure.test :as t :refer [deftest is testing]] [packt-clj.chapter-6-tests.exercise-6-01 :as exo])) (deftest article-stream (is 12 (= (count (exo/article-stream 12)))) (is (every? (comp integer? :weight) (exo/article-stream 12))) (is (every? (co...
bd9a40df29d09d5d29c2ecee201545530f09a001c0d0a01bca85ed50880d4398
ConsenSysMesh/web3studio-dONT
AuthorizerIAMPolicy.hs
{-# LANGUAGE OverloadedStrings #-} module AuthorizerIAMPolicy where import Control.Lens import Control.Monad.IO.Class import Control.Monad.Trans.AWS import Data.Text import Data.Maybe import qualified Amazonka.IAM.Policy as Policy theAction :: Policy.Block [Policy.Action] theAction = Policy.some [Policy.Action (pac...
null
https://raw.githubusercontent.com/ConsenSysMesh/web3studio-dONT/01249747df5049917a7eaaa02ec7d358f1b17f8a/src/AuthorizerIAMPolicy.hs
haskell
# LANGUAGE OverloadedStrings #
module AuthorizerIAMPolicy where import Control.Lens import Control.Monad.IO.Class import Control.Monad.Trans.AWS import Data.Text import Data.Maybe import qualified Amazonka.IAM.Policy as Policy theAction :: Policy.Block [Policy.Action] theAction = Policy.some [Policy.Action (pack "execute-api:invoke")] theResour...
e24ea143981e1682d1846bbea73f51625436afe83d6647734b077e729c06feb9
krisajenkins/SuperBomberElf
TypesSpec.hs
# OPTIONS_GHC -fno - warn - orphans # module TypesSpec (spec) where import Data.Aeson import qualified Data.Map as Map import Data.Maybe import Data.Time import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances () import ...
null
https://raw.githubusercontent.com/krisajenkins/SuperBomberElf/3442095fc53e7bdb0709fc60575324cfb4b948db/server/test/TypesSpec.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module TypesSpec (spec) where import Data.Aeson import qualified Data.Map as Map import Data.Maybe import Data.Time import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Instances () import ...
f9720cb99f42097eff93ccf49094421bc9c0407f58a0fd2a0e5529782fb3a69e
mmottl/sqlite3-ocaml
discover.ml
exception Finally_raised of exn let protect ~(finally : unit -> unit) work = let finally_no_exn () = try finally () with e -> let bt = Printexc.get_raw_backtrace () in Printexc.raise_with_backtrace (Finally_raised e) bt in match work () with | result -> finally_no_exn () ; result | exception ...
null
https://raw.githubusercontent.com/mmottl/sqlite3-ocaml/4a8a5ba4800fe2476637d0eaa1ec296cf98e98c4/src/config/discover.ml
ocaml
exception Finally_raised of exn let protect ~(finally : unit -> unit) work = let finally_no_exn () = try finally () with e -> let bt = Printexc.get_raw_backtrace () in Printexc.raise_with_backtrace (Finally_raised e) bt in match work () with | result -> finally_no_exn () ; result | exception ...
709b59abb99e935ab8bd76805568b05b38698dc95a1995d0d706974ba07e9205
dgiot/dgiot
emqx_packet_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2018 - 2022 EMQ 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 o...
null
https://raw.githubusercontent.com/dgiot/dgiot/c601555e45f38d02aafc308b18a9e28c543b6f2c/test/emqx_packet_SUITE.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 ) 2018 - 2022 EMQ 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(emqx_packet_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("e...
445d87604e9470ddca9848568e3a478e12136c0ebd9901ab87d088dd6752c0b6
marigold-dev/mankavar
oru_param.mli
include Oru_param_sig.MAIN
null
https://raw.githubusercontent.com/marigold-dev/mankavar/110d1659feec9ebd99cf2f76d7699f48483010ca/src/consensus/tx-oru/oru_param.mli
ocaml
include Oru_param_sig.MAIN
29d1a88e4cae764467ab3fea12bc6f6ecfe5e71063e6994497a42dca4895bed2
jakemcc/sicp-study
test_ex3_22.clj
(ns test_ex3_22 (:use ex3_22 clojure.test)) (deftest should-detect-empty (= true ((make-queue) :empty?))) (deftest can-insert-and-remove (let [q (make-queue)] (q :insert! :a) (is (= :a (q :front))) (q :delete!) (is (= true (q :empty?))) ((q :insert! :b) :insert! :c) (is (= :b (q :front))) (q :...
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section3.3/test/test_ex3_22.clj
clojure
(ns test_ex3_22 (:use ex3_22 clojure.test)) (deftest should-detect-empty (= true ((make-queue) :empty?))) (deftest can-insert-and-remove (let [q (make-queue)] (q :insert! :a) (is (= :a (q :front))) (q :delete!) (is (= true (q :empty?))) ((q :insert! :b) :insert! :c) (is (= :b (q :front))) (q :...
1dd71e4d705687d63cc1e650589d7fbb6120487a36dc5ad763d0965f664ff2c9
beerendlauwers/hakyll-extra
AllLanguages.hs
{-# LANGUAGE OverloadedStrings #-} module Hakyll.Translation.Examples.AllLanguages where import Hakyll import Hakyll.Translation.Format.Metadata (loadAllTranslationsFromMetadata) import Hakyll.Translation (translationsToContextFunctionField) import Hakyll.Core.Identifier.Pattern...
null
https://raw.githubusercontent.com/beerendlauwers/hakyll-extra/cc4741a9781412108926ac2d7cf70f52a5ee68a3/src/Hakyll/Translation/Examples/AllLanguages.hs
haskell
# LANGUAGE OverloadedStrings # | Some example languages. | An example that illustrates how to use the translation functionality in "Hakyll.Translation.Format.Metadata". Note that we don't route these anywhere, we just want them to be known so they can be loaded later on. Here, we collect all the translations for al...
module Hakyll.Translation.Examples.AllLanguages where import Hakyll import Hakyll.Translation.Format.Metadata (loadAllTranslationsFromMetadata) import Hakyll.Translation (translationsToContextFunctionField) import Hakyll.Core.Identifier.Pattern.Extra (fillPattern) import ...
a754bec615fb100ddfd62e1b2e1e8e2cade8dc5b7785ed74014b9048674198d5
ArulselvanMadhavan/mini_dalle
constants.ml
let image_token_count = 256
null
https://raw.githubusercontent.com/ArulselvanMadhavan/mini_dalle/0569571f4563c95bc7dc58c3349761829c30b0ea/lib/constants.ml
ocaml
let image_token_count = 256
95951c44ffb5a481fc2627101bbd24e4438fc3efe0abead7030d230df73227c4
charlieg/Sparser
loader2.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- copyright ( c ) 1992 - 1997 -- all rights reserved ;;; ;;; File: "loader" Module : " : names : " version : 2.3 July 1996 1.0 ( 10/14/92 v2.3 ) shadowing old version to redesign the name fsa 1.1 ( 11/9 ) bumped initials and single le...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/model/core/names/loader2.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*- File: "loader" added abbreviations. files that were grossly out of date they could be loaded at the end of the grammar and not be hassled by the category references they make initials ]
copyright ( c ) 1992 - 1997 -- all rights reserved Module : " : names : " version : 2.3 July 1996 1.0 ( 10/14/92 v2.3 ) shadowing old version to redesign the name fsa 1.1 ( 11/9 ) bumped initials and single letters to 2 , names to 4 , 1.2 ( 5/15/93 ) added [ fsa : driver , classifier , scan , ...
24f02016a17c096b73986ff575100208dc9ce37ac933abde41f392f241297e61
zyrolasting/polyglot
base.rkt
#lang racket/base (require racket/contract) (provide polyglot/base% add-dependencies! (contract-out [make-minimal-html-page (-> (listof txexpr-element?) txexpr?)])) (require racket/class racket/dict racket/file racket/list ...
null
https://raw.githubusercontent.com/zyrolasting/polyglot/d27ca7fe90fd4ba2a6c5bcd921fce89e72d2c408/polyglot-lib/polyglot/base.rkt
racket
Accounts for the fact that .md files don't have strict dependency relationships. Copies a file with a basename equal to the
#lang racket/base (require racket/contract) (provide polyglot/base% add-dependencies! (contract-out [make-minimal-html-page (-> (listof txexpr-element?) txexpr?)])) (require racket/class racket/dict racket/file racket/list ...
b93b1db8bb600ecc4b94de87896021540cbc8ef0caf5d34e52440abe54d1b31d
rufus-lang/rufus
rufus_type.erl
rufus_type exposes type information for forms . Type information is %% inferred in cases where it isn't already present. -module(rufus_type). -include_lib("rufus_type.hrl"). %% API exports -export([ resolve/2, resolve/3 ]). %% API %% resolve returns a type form for Form. If Form already has a type form ...
null
https://raw.githubusercontent.com/rufus-lang/rufus/147eb11886fa49f27050a8c42ae38c17d3462b79/rf/src/rufus_type.erl
erlang
inferred in cases where it isn't already present. API exports API resolve returns a type form for Form. If Form already has a type form associated with it, it will be returned. Otherwise, the type is inferred. Private API binary_op form helpers ' -> allow_type_with_mathematical_operator returns true if the spec...
rufus_type exposes type information for forms . Type information is -module(rufus_type). -include_lib("rufus_type.hrl"). -export([ resolve/2, resolve/3 ]). -spec resolve(#{atom() => rufus_forms()}, rufus_form()) -> {ok, type_form()} | error_triple(). resolve(Globals, Form) -> resolve([], Globals, Fo...
78aadaa1eaae8b243ed1b532c89ccd752170e5140feb82c493e7e32abcd001ca
agentm/project-m36
out_of_the_tarpit.hs
the Out - of - the - Tarpit example in Haskell and Project : M36 # LANGUAGE DeriveAnyClass , DeriveGeneric , OverloadedStrings , DerivingVia # import ProjectM36.Client import ProjectM36.DataTypes.Primitive import ProjectM36.Tupleable import ProjectM36.Relation import ProjectM36.Error import Data.Either import GHC.Gen...
null
https://raw.githubusercontent.com/agentm/project-m36/57a75b35e84bebf0945db6dae53350fda83f24b6/examples/out_of_the_tarpit.hs
haskell
create various database value (atom) types connect to the database create a database session at the default branch of the fresh database the dec prefix is needed until OverloadedRecordFields is available create attributes for relvars create uniqueness constraints "commision" misspelled in OotT crea...
the Out - of - the - Tarpit example in Haskell and Project : M36 # LANGUAGE DeriveAnyClass , DeriveGeneric , OverloadedStrings , DerivingVia # import ProjectM36.Client import ProjectM36.DataTypes.Primitive import ProjectM36.Tupleable import ProjectM36.Relation import ProjectM36.Error import Data.Either import GHC.Gen...
19312f47ec51713b199d4644af6fdb82f7d2eb01e4381968343d1589a53df919
ujihisa/cloft
project.clj
(defproject cloft "1.1.0-SNAPSHOT" :description "FIXME: write description" :license {:name "GPL-3 or later"} :dependencies [[clj-http "0.7.5"] [org.clojure/clojure "1.5.1"] [org.bukkit/bukkit "1.5-R0.1-SNAPSHOT"] [org.dynmap/dynmap-api "1.8"]] :dev-dependencies...
null
https://raw.githubusercontent.com/ujihisa/cloft/98284fa763d16280d4685478b2be2ab0efbb00b0/project.clj
clojure
(defproject cloft "1.1.0-SNAPSHOT" :description "FIXME: write description" :license {:name "GPL-3 or later"} :dependencies [[clj-http "0.7.5"] [org.clojure/clojure "1.5.1"] [org.bukkit/bukkit "1.5-R0.1-SNAPSHOT"] [org.dynmap/dynmap-api "1.8"]] :dev-dependencies...
996dc2c72e6c445f411e7a392ba172422d1902e1f491517fc29cca21507185dd
baig/pandoc-csv2table
Tablify.hs
The MIT License ( MIT ) Copyright ( c ) 2015 < > 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...
null
https://raw.githubusercontent.com/baig/pandoc-csv2table/297a466035191fc966edbade5044530d087a9632/src/Text/Table/Tablify.hs
haskell
Local imports ^ Image : alt text ( list of inlines ) , target ^ Image : alt text ( list of inlines ) , target Return input unchanged in case of no match
The MIT License ( MIT ) Copyright ( c ) 2015 < > 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...
b5896c0ab2f493a81b992abd11db1066b93c9214f55ba3803192750019b0f54f
larcenists/larceny
flat-bin.scm
flat-bin.scm - create bin files from Sassy 's output Copyright ( C ) 2005 ; This library is free software; you can redistribute it and/or ; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/flat-bin.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See t...
flat-bin.scm - create bin files from Sassy 's output Copyright ( C ) 2005 version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin St , Fifth Floor , Boston , MA 02110 - 1301 USA Sunn...
354b297fae943329b75bdaa7b122cc12655471c084cd0774c16aaeb60bdf7f25
damballa/parkour
toolbox_test.clj
(ns parkour.toolbox-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.io :as io] [clojure.core.reducers :as r] [parkour (conf :as conf) (fs :as fs) (cstep :as cstep) , (wrapper :as w) (mapreduce :as mr) (toolbox :as ptb)...
null
https://raw.githubusercontent.com/damballa/parkour/2b3c5e1987e18b4c4284dfd4fcdaba267a4d7fbc/test/parkour/toolbox_test.clj
clojure
(ns parkour.toolbox-test (:require [clojure.test :refer :all] [clojure.string :as str] [clojure.java.io :as io] [clojure.core.reducers :as r] [parkour (conf :as conf) (fs :as fs) (cstep :as cstep) , (wrapper :as w) (mapreduce :as mr) (toolbox :as ptb)...
18772fc8696b8d43271d926b8f9de55865de498a1796995c0fb433e82981f8d0
babashka/babashka
base64.cljc
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 helins.binf.test.base64 {:author "Adam Helins"} (:require [clojure.test :as t] [clojure.test.check.cl...
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/test-resources/lib_tests/helins/binf/test/base64.cljc
clojure
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 helins.binf.test.base64 {:author "Adam Helins"} (:require [clojure.test :as t] [clojure.test.check.cl...
90693f1e09b73868105d81c8e838d79e1001a1d5ce8628f55dd693a48c7300b3
sneeuwballen/zipperposition
FeatureVector.ml
This file is free software , part of Logtk . See file " license " for more details . * { 1 Feature Vector indexing } * Feature Vector indexing ( see Schulz 2004 ) for efficient forward and backward subsumption and backward subsumption *) module T = Term type lits = Index_intf.lits module Make(C : Inde...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/core/FeatureVector.ml
ocaml
* a vector of feature * a function that computes a given feature on clauses we just opened a function for logical operators sequence of symbols of clause, of given sign max depth of the symbol in the term, or -1 * {2 Feature Trie} * map feature -> trie * leaf with a set of clauses * get/add/remove the leaf f...
This file is free software , part of Logtk . See file " license " for more details . * { 1 Feature Vector indexing } * Feature Vector indexing ( see Schulz 2004 ) for efficient forward and backward subsumption and backward subsumption *) module T = Term type lits = Index_intf.lits module Make(C : Inde...
e4d287e12dc999ee6039792666c4940f86551f53e6a614f3aa88be7423c6a13e
repl-acement/repl-acement
events.cljs
(ns replacement.ui.events (:require [cljs.tools.reader.edn :as rdr] [clojure.core.async] [clojure.string :as string] [nextjournal.clojure-mode.extensions.formatting :as format] [promesa.core :as p] [re-frame.core :as re-frame :refer [reg-event-db reg-event-fx reg-fx]] [replacement.ui.helpe...
null
https://raw.githubusercontent.com/repl-acement/repl-acement/ba60e2f0c58e1143235d147396b310bdd30791a0/repl-ui/replacement/ui/events.cljs
clojure
add a hash add an ID need to force? --- Events --- indexed-ns (events-spec/index-ns db (:view-ns-data ns-data)) ---------------------- Network sync Share editing updates ------------------------------------------------------------------
(ns replacement.ui.events (:require [cljs.tools.reader.edn :as rdr] [clojure.core.async] [clojure.string :as string] [nextjournal.clojure-mode.extensions.formatting :as format] [promesa.core :as p] [re-frame.core :as re-frame :refer [reg-event-db reg-event-fx reg-fx]] [replacement.ui.helpe...
8dc30ac0df287322f6bd72ff8a3e0b80cca2e1e68d48352b5ded356628f87d45
RefactoringTools/HaRe
Signature2r.hs
{-# LANGUAGE Rank2Types #-} module LiftToTopLevel.Signature2 where {- Lifting baz to the top level should bring in xx and a as parameters, and update the signature to include these. The refactoring can be completed as the Rank2Types extension is enabled -} foo a = baz where baz :: Int baz = xx 1 a ...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/LiftToToplevel/Signature2r.hs
haskell
# LANGUAGE Rank2Types # Lifting baz to the top level should bring in xx and a as parameters, and update the signature to include these. The refactoring can be completed as the Rank2Types extension is enabled
module LiftToTopLevel.Signature2 where foo a = baz where baz :: Int baz = xx 1 a xx :: (Num t) => t -> t -> t xx p1 p2 = p1 + p2
9a245eb2eff062aafec7fea2a329d049993afff56760822dfd16bfac4cd34189
penpot/penpot
rpc_font_test.clj
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 backend-tests.rpc-font-test (:require [app.common.uuid :as uuid] [app.db :as db] [app.http :as ...
null
https://raw.githubusercontent.com/penpot/penpot/42e97f8be105af41757f8e896b93a99032a2b72a/backend/test/backend_tests/rpc_font_test.clj
clojure
Copyright (c) KALEIDOS INC (th/print-result! out) (th/print-result! out)
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 backend-tests.rpc-font-test (:require [app.common.uuid :as uuid] [app.db :as db] [app.http :as http] [app.rpc :as-alias rpc] ...
a2d7313acc37c448bb6eb50e7e3f81348a884804cea2755bd7d499036789519a
lamdu/momentu
Grid.hs
# LANGUAGE TemplateHaskell , ConstraintKinds # # LANGUAGE DisambiguateRecordFields , MultiParamTypeClasses # module GUI.Momentu.Widgets.Grid ( make , Keys(..), stdKeys , Texts(..), moreLeft, moreRight, top, bottom, leftMost, rightMost , englishTexts , HasTexts, Deps ) where import qualified Con...
null
https://raw.githubusercontent.com/lamdu/momentu/26770b9405a86c26759bb0429f988d4b0ae8c1d1/src/GUI/Momentu/Widgets/Grid.hs
haskell
widget. Prove it by passing the Focused data of that widget TODO: DRY with Widget's Glue instance Each child is set to the size of the entire grid and then translated to its place in order to fix the Surrounding parameters of all children Check all widgets for mouse movements (for hovers) | Take only the first/l...
# LANGUAGE TemplateHaskell , ConstraintKinds # # LANGUAGE DisambiguateRecordFields , MultiParamTypeClasses # module GUI.Momentu.Widgets.Grid ( make , Keys(..), stdKeys , Texts(..), moreLeft, moreRight, top, bottom, leftMost, rightMost , englishTexts , HasTexts, Deps ) where import qualified Con...
892145ca421b446878b1168ad69c3af01e5c3bf7cefc2decc37d9d1808f6f0a2
dbuenzli/uucp
gen_gc.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 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/support/gen_gc.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2014 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
a40e059bbc1df1baf397c80ea937589cf222823f6e39ff1aee4d73b10c40dc0b
amuletml/amulet
Lint.hs
{-# LANGUAGE OverloadedStrings #-} module Test.Core.Lint (tests) where import qualified Data.Text as T import Data.IORef import Data.List import Control.Monad.Infer (Name, firstName) import Control.Monad.State import Control.Monad.Namey import Core.Simplify import Core.Lint import Text.Pretty.Semantic import Test....
null
https://raw.githubusercontent.com/amuletml/amulet/fcba0b7e198b8d354e95722bbe118bccc8483f4e/tests/driver/Test/Core/Lint.hs
haskell
# LANGUAGE OverloadedStrings # Read the driver from the store and then update it. In a multi-threaded environment, this is technically a race condition, but it doesn't really matter - we're only doing this to preserve the file cache between runs.
module Test.Core.Lint (tests) where import qualified Data.Text as T import Data.IORef import Data.List import Control.Monad.Infer (Name, firstName) import Control.Monad.State import Control.Monad.Namey import Core.Simplify import Core.Lint import Text.Pretty.Semantic import Test.Tasty.HUnit import Test.Tasty impo...
dec85634b68799ccf5b192ee10a39286fc6468e54783f64b16b27e462551c9d3
wavewave/HROOT.old
saveAsROOT.hs
module Main where import HROOT main = do tcanvas <- newTCanvas "test" "test" 640 480 h1 <- newTH1F "test" "test" 100 1 10 h2 <- newTH1F "test" "test" 100 1 10 fill1 h1 5 fill1 h2 6 add h1 h2 1.0 draw h1 "" tfile <- newTFile "test.root" "NEW" "" 1 write h1 "" 0 0 close tfile "" ...
null
https://raw.githubusercontent.com/wavewave/HROOT.old/6be1bae246ff4c82159d84981cf7e4389011b17a/example/saveAsROOT.hs
haskell
module Main where import HROOT main = do tcanvas <- newTCanvas "test" "test" 640 480 h1 <- newTH1F "test" "test" 100 1 10 h2 <- newTH1F "test" "test" 100 1 10 fill1 h1 5 fill1 h2 6 add h1 h2 1.0 draw h1 "" tfile <- newTFile "test.root" "NEW" "" 1 write h1 "" 0 0 close tfile "" ...
244d26cafee5ddf23595fc2523a3ad45ef506d313e1d4bb3d50acba6b828fa2b
pavponn/watcher
FileSystemTypes.hs
module FileSystemTypes where import qualified Data.ByteString as B import qualified Data.Map.Strict as Map import Control.Monad.State import Control.Monad.Trans.Except import Data.List (intercalate) import qualified Data.Text as T import Data.Time.Clock (UTCTime (..)) import Network.Mime (fileNameExtensions) import S...
null
https://raw.githubusercontent.com/pavponn/watcher/3eda352b20addd1f729025290c6349f5f2e94549/watcher/src/FileSystemTypes.hs
haskell
|Type alias for elements in directory. Element in directory is | Data type that stores all useful information about file. | Data type that stores all useful information about directory. | Data type that represents file. | Data type that represents directory. file system. | Stores not only the file system, but al...
module FileSystemTypes where import qualified Data.ByteString as B import qualified Data.Map.Strict as Map import Control.Monad.State import Control.Monad.Trans.Except import Data.List (intercalate) import qualified Data.Text as T import Data.Time.Clock (UTCTime (..)) import Network.Mime (fileNameExtensions) import S...
f991a438a2c51502f30e83a6769f7cde16926656e9476e7a730cf213d4eff9f5
damn/cdq
utils_misc.clj
(ns game.utils-misc (:use (clojure test) (utils core))) (deftest test-order (is (= (define-order [:a :b :c]) {:a 0 :b 1 :c 2})) (is (order-contains? (define-order [:a :b :c]) :a)) (is (not (order-contains? (define-order [:a :b :c]) 2))) (is (= (sort-by-order [:c :b :a :b] ...
null
https://raw.githubusercontent.com/damn/cdq/5093dbdba91c445e403f53ce96ead05d5ed8262b/test/game/utils_misc.clj
clojure
(ns game.utils-misc (:use (clojure test) (utils core))) (deftest test-order (is (= (define-order [:a :b :c]) {:a 0 :b 1 :c 2})) (is (order-contains? (define-order [:a :b :c]) :a)) (is (not (order-contains? (define-order [:a :b :c]) 2))) (is (= (sort-by-order [:c :b :a :b] ...
08af6b6147ce2cffffaae6853df0024787d32b9fae3debe848d55573706d5d9d
tezos/tezos-mirror
shard_store.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/448daee0f4ae76893ae524536e428aa0e22f1d60/src/lib_dal_node/shard_store.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
d8fcb4a8c9dea9bd6fd5b1e7058bd442737b71ea0a044901fa6b9ac3371d24ff
cwtsteven/TSD
tree.ml
open Tsd open List let (+^) = lift (+) let createList n init total = let rec aux n init acc = match n with | 0 -> acc | n -> let input_v = cell (lift init) in aux (n-1) init (if n mod total/1000 == 0 then input_v :: acc else acc) in aux n init [] let createLayer xs = let rec aux xs acc = match ...
null
https://raw.githubusercontent.com/cwtsteven/TSD/32bd2cbca6d445ff6b0caecdbb2775de61fdfc6d/benchmarks/tree/tree.ml
ocaml
let outs = createGraph k ins in outs; List.iter (fun i -> print_int (peek i); print_newline()) outs
open Tsd open List let (+^) = lift (+) let createList n init total = let rec aux n init acc = match n with | 0 -> acc | n -> let input_v = cell (lift init) in aux (n-1) init (if n mod total/1000 == 0 then input_v :: acc else acc) in aux n init [] let createLayer xs = let rec aux xs acc = match ...
529ac800416e2ae155da68f1002e3a43a3ce31350861c728126e5a98c421172e
nilenso/time-tracker
spec.clj
(ns time-tracker.users.spec (:require [clojure.spec :as s] [time-tracker.spec :as core-spec])) (s/def ::id ::core-spec/id) (s/def ::google-id string?) (s/def ::name string?) (s/def ::role string?) (s/def ::user (s/keys :req-un [::id ::google-id ::name ::role])) (defn normalized-users-spec [min-coun...
null
https://raw.githubusercontent.com/nilenso/time-tracker/054d0dc6d6b89a4ed234d8f0b0a260b6deeef9e3/src/clj/time_tracker/users/spec.clj
clojure
(ns time-tracker.users.spec (:require [clojure.spec :as s] [time-tracker.spec :as core-spec])) (s/def ::id ::core-spec/id) (s/def ::google-id string?) (s/def ::name string?) (s/def ::role string?) (s/def ::user (s/keys :req-un [::id ::google-id ::name ::role])) (defn normalized-users-spec [min-coun...
2228fa58983b09140a97bc97193bcf8513c83c4a9da9e0d2f862ef7ed2b5da3d
jepsen-io/knossos
op.clj
(ns knossos.op "Operations on operations! An operation is comprised of a `process` with a `type` indicating whether it is invoking, completing, failing, or noting progress of a function `f`, called with an argument `value`. In addition, operations may have an `:index` which identifies their position in a his...
null
https://raw.githubusercontent.com/jepsen-io/knossos/1cb706f979c1712add47f0519d9e1dcb85635635/src/knossos/op.clj
clojure
(ns knossos.op "Operations on operations! An operation is comprised of a `process` with a `type` indicating whether it is invoking, completing, failing, or noting progress of a function `f`, called with an argument `value`. In addition, operations may have an `:index` which identifies their position in a his...
7b5b1562cc8136626e6efd7c826c09fd7559f1f4fec43f6aae4d89cb6e1c594e
NorfairKing/the-notes
Terms.hs
module Logic.FirstOrderLogic.Terms where import Notes makeDefs [ "First order logic" , "atomic" , "existential quantifier" , "universal quantifier" , "composite" , "situational calculus" , "propositionalisation" , "effect axiom" , "successor state axiom" , "Herbrand...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Logic/FirstOrderLogic/Terms.hs
haskell
module Logic.FirstOrderLogic.Terms where import Notes makeDefs [ "First order logic" , "atomic" , "existential quantifier" , "universal quantifier" , "composite" , "situational calculus" , "propositionalisation" , "effect axiom" , "successor state axiom" , "Herbrand...
f35e9c8fee95e2aade5e6d5abcdd52721f15ed1bb21a878fddd9e861971d7c0c
pflanze/chj-schemelib
srfi-1-Maybe.scm
Copyright 2020 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require easy ;; si...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/srfi-1-Maybe.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. since Maybe needs it too, anyway
Copyright 2020 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or srfi-1 - values Maybe test) (export Maybe-split-at-reverse Maybe-split-at Maybe-drop) "...
da86fdb192af775bb02256202ab269743fc07f1638478222aeaac00c897b5833
csabahruska/jhc-components
HelloWorld.hs
main = putStrLn "Hello, World!"
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/examples/HelloWorld.hs
haskell
main = putStrLn "Hello, World!"
4ec0591d7c7d8cf17742919fc071fde9a4306a7ea31085a22bbf2824b53ce070
input-output-hk/hydra
UTxO.hs
module Hydra.Cardano.Api.UTxO where import Hydra.Cardano.Api.Prelude import Hydra.Cardano.Api.TxId (toLedgerTxId) import Hydra.Cardano.Api.TxIn (fromLedgerTxIn, toLedgerTxIn) import Hydra.Cardano.Api.TxOut (fromLedgerTxOut, toLedgerTxOut) import qualified Cardano.Api.UTxO as UTxO import qualified Cardano.Ledger.Babba...
null
https://raw.githubusercontent.com/input-output-hk/hydra/b6371379ffc28994300ff8ba9e7c669a640d759c/hydra-cardano-api/src/Hydra/Cardano/Api/UTxO.hs
haskell
(a.k.a output reference) from the transaction itself, zipping them to the outputs they correspond to. * Type Conversions
module Hydra.Cardano.Api.UTxO where import Hydra.Cardano.Api.Prelude import Hydra.Cardano.Api.TxId (toLedgerTxId) import Hydra.Cardano.Api.TxIn (fromLedgerTxIn, toLedgerTxIn) import Hydra.Cardano.Api.TxOut (fromLedgerTxOut, toLedgerTxOut) import qualified Cardano.Api.UTxO as UTxO import qualified Cardano.Ledger.Babba...
9e8b3f61bd012779718aeab9a6d8bdc398c7a4fd1967228cedcaac7fb23fbd8b
jb55/vrscript-samples
voice-around.rkt
#lang racket/base (require "vr.rkt") (uri WAV-VOICE-TEST "") (define NAME-VOICE 1) ;----------------- ; frame function ;----------------- (define (frame) (define xform (mat4-compose (mat4-rotate-y pi) (mat4-translate 0.0 0.0 2.0) (mat4-rotate-y (input-ti...
null
https://raw.githubusercontent.com/jb55/vrscript-samples/6682b1cffa83b56228382aa2cc5e2f520e7f8370/voice-around.rkt
racket
----------------- frame function ----------------- select a background spin a model in front of the view update the audio position Replace the IP address with the value shown on the phone when vrscript is run.
#lang racket/base (require "vr.rkt") (uri WAV-VOICE-TEST "") (define NAME-VOICE 1) (define (frame) (define xform (mat4-compose (mat4-rotate-y pi) (mat4-translate 0.0 0.0 2.0) (mat4-rotate-y (input-time *input*)))) (+pano "") (+model "" ...
d903908525b13da5048c85516f2668e7c398953ec27ce64852994ac34d3ca43f
wireless-net/erlang-nommu
snmpa_supervisor.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 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 Pub...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/snmp/src/agent/snmpa_supervisor.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 1996 - 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_supervisor). -behaviour(supe...
211d3e37eb58ada0ca1f2758684ca7cd04cae25299dbc2e842e9f4c962acd032
Vaguery/klapaucius
scalar.clj
(ns push.type.item.scalar (:require [push.instructions.core :as i] [push.type.core :as t] [push.instructions.dsl :as d] [push.util.code-wrangling :as fix] [push.instructions.aspects :as aspects] [clojure.math.numeric-tower :as nt] [push.util.nume...
null
https://raw.githubusercontent.com/Vaguery/klapaucius/17b55eb76feaa520a85d4df93597cccffe6bdba4/src/push/type/item/scalar.clj
clojure
INSTRUCTIONS SCALING ; CONVERSIONS
(ns push.type.item.scalar (:require [push.instructions.core :as i] [push.type.core :as t] [push.instructions.dsl :as d] [push.util.code-wrangling :as fix] [push.instructions.aspects :as aspects] [clojure.math.numeric-tower :as nt] [push.util.nume...
26b3c8b2ad9ed1f374c20b98de18e77fbfff86ab8f00dff03b179440c4ca259b
jordwalke/rehp
dom_svg.ml
Js_of_ocaml library * / * Copyright ( C ) 2014 Hugo Heuzard * Copyright ( C ) 2014 * * 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 ; ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/js_of_ocaml/dom_svg.ml
ocaml
translate spec from interface SVGRenderingIntent Path Segment Types textPath Method Types textPath Spacing Types Spread Method Types ** ** interface SVGElement interface SVGAnimatedString interface SVGAnimatedBoolean interface SVGAnimatedEnumeration short interface SVGAnimatedNumber interface...
Js_of_ocaml library * / * Copyright ( C ) 2014 Hugo Heuzard * Copyright ( C ) 2014 * * 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 ; ...
71c49a230b9486edc4897cb3f8c1249508c9f3ca979e9b819e0854a460008566
kowey/GenI
GeniReport.hs
-- GenI reporting tool Copyright ( C ) 2011 ( Computational Linguistics Ltd ) -- -- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/kowey/GenI/570a6ef70e61a7cb01fe0fc29732cd9c1c8f2d7a/genireport/NLP/GeniReport.hs
haskell
GenI reporting tool This program is free software; you can redistribute it and/or This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more detai...
Copyright ( C ) 2011 ( Computational Linguistics Ltd ) modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Fo...
de7b91b7f85b5623730974c2c1a36e48342bba19c7bd457559a2e677f74a562e
DarrenN/identikon
default.rkt
#lang racket/base (require racket/list 2htdp/image identikon/utils) ; Default rule-set for identikon. ; All rule-sets must provide a single function, draw-rules ; which is called by identikon. This function should always ; take the following arguments: width height user filename (provide draw-rules...
null
https://raw.githubusercontent.com/DarrenN/identikon/d8908ee6955e69466270692599eb9076adc6a28b/rules/default.rkt
racket
Default rule-set for identikon. All rule-sets must provide a single function, draw-rules which is called by identikon. This function should always take the following arguments: width height user filename ——————————— implementation Constants Create cell dimensions from inside canvas dim / divisor Shapes Soli...
#lang racket/base (require racket/list 2htdp/image identikon/utils) (provide draw-rules) (define BORDER-MAX 20) (define (make-cell c divisor) (let* ([inside (canvas-inside c)] [cw (dim-w inside)] [ch (dim-h inside)]) (dim (/ cw divisor) (/ ch divisor)))) (define (even h...
b5cf958a2546686f04b19ee10cc8e065e89398f1d888f4fed4128c36746b4199
mikpe/pdp10-tools
sim_logical_tests.erl
-*- erlang - indent - level : 2 -*- %%% simulator for pdp10 - elf Copyright ( C ) 2020 %%% This file is part of pdp10 - tools . %%% pdp10 - tools 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 ,...
null
https://raw.githubusercontent.com/mikpe/pdp10-tools/99216b63317fe5b5ac18f1a0d3c81b464f8b8f40/erlang/apps/sim/test/sim_logical_tests.erl
erlang
(at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ============================================================================= LEFT,,RIGHT in MACRO-10 ...
-*- erlang - indent - level : 2 -*- simulator for pdp10 - elf Copyright ( C ) 2020 This file is part of pdp10 - tools . pdp10 - tools 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 vers...
c0eb8f34ac0743d2ca9b0b6c00ef81497bc4dcc63b5918ca1b7f89772a0424cc
ds-wizard/engine-backend
List_Bundle_POST.hs
module Registry.Api.Handler.Locale.List_Bundle_POST where import Servant import Servant.Multipart import Registry.Api.Handler.Common import Registry.Api.Resource.Locale.LocaleDTO import Registry.Api.Resource.Locale.LocaleJM () import Registry.Model.Context.BaseContext import Registry.Service.Locale.Bundle.LocaleBundl...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/090f4f3460e8df128e88e2c3ce266b165e4a0a50/engine-registry/src/Registry/Api/Handler/Locale/List_Bundle_POST.hs
haskell
module Registry.Api.Handler.Locale.List_Bundle_POST where import Servant import Servant.Multipart import Registry.Api.Handler.Common import Registry.Api.Resource.Locale.LocaleDTO import Registry.Api.Resource.Locale.LocaleJM () import Registry.Model.Context.BaseContext import Registry.Service.Locale.Bundle.LocaleBundl...
4c9306341257c1ad7ba9a936d5bf7c6cb2c5d860ceaa3e40e1bd3bfb33caeb95
open-company/open-company-web
routing.cljs
(ns oc.web.actions.routing (:require [oc.web.urls :as oc-urls] [oc.web.lib.jwt :as jwt] [oc.web.utils.dom :as du] [oc.web.router :as router] [oc.web.dispatcher :as dis] [oc.web.actions.nux :as nux-actions] [oc.web.actions.theme :as theme-actions]...
null
https://raw.githubusercontent.com/open-company/open-company-web/700f751b8284d287432ba73007b104f26669be91/src/main/oc/web/actions/routing.cljs
clojure
Re-dispatch the current change data
(ns oc.web.actions.routing (:require [oc.web.urls :as oc-urls] [oc.web.lib.jwt :as jwt] [oc.web.utils.dom :as du] [oc.web.router :as router] [oc.web.dispatcher :as dis] [oc.web.actions.nux :as nux-actions] [oc.web.actions.theme :as theme-actions]...
ecb06dfa496091d05a01e73c0c19d82446be6acfcead8caece428f72f9da7cbb
ghc/packages-base
Safe.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Foreign.ForeignPtr.Safe Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintainer...
null
https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/Foreign/ForeignPtr/Safe.hs
haskell
--------------------------------------------------------------------------- | Module : Foreign.ForeignPtr.Safe License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : portable The 'ForeignPtr' type and operations. This module is part of the the "Foreign"...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 Maintainer : Foreign Function Interface ( FFI ) and will usually be imported via module Foreign.ForeignPtr.Safe ( ForeignPtr , FinalizerPtr , FinalizerEnvPtr , ne...
07abc5e6ae7242d8c462d0de488ebfa6c4394baa022783ab8c9961a690bd6413
conscell/hugs-android
MyersStack.hs
Copyright ( c ) 1998 - 1999 . -- See COPYRIGHT file for terms and conditions. module MyersStack {-# DEPRECATED "This module is unmaintained, and will disappear soon" #-} ( -- type instance of Sequence , Functor , Monad , MonadPlus -- sequence operations empty,single,cons,snoc,append,lview,lhe...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/oldlib/MyersStack.hs
haskell
See COPYRIGHT file for terms and conditions. # DEPRECATED "This module is unmaintained, and will disappear soon" # type sequence operations documentation signatures for exported functions Adapted from what about strictness flags on tail and jump-tail? auxiliary function the remaining functions all use defaults...
Copyright ( c ) 1998 - 1999 . module MyersStack ( instance of Sequence , Functor , Monad , MonadPlus empty,single,cons,snoc,append,lview,lhead,ltail,rview,rhead,rtail, null,size,concat,reverse,reverseOnto,fromList,toList, map,concatMap,foldr,foldl,foldr1,foldl1,reducer,reducel,reduce1, cop...
6019289d33f1abc149ee53c8d7fe5e5ae9397f0fbee37d1c25640768c342b40e
ultralisp/ultralisp
main.lisp
(defpackage #:ultralisp/main (:use #:cl #:defmain) (:import-from #:ultralisp/builder #:build) (:import-from #:ultralisp/uploader/base #:upload) (:export #:main)) (in-package #:ultralisp/main) (defmain (main) ((upload "Add this option to upload data to S3." ...
null
https://raw.githubusercontent.com/ultralisp/ultralisp/37bd5d92b2cf751cd03ced69bac785bf4bcb6c15/src/main.lisp
lisp
(upload dist-dir)
(defpackage #:ultralisp/main (:use #:cl #:defmain) (:import-from #:ultralisp/builder #:build) (:import-from #:ultralisp/uploader/base #:upload) (:export #:main)) (in-package #:ultralisp/main) (defmain (main) ((upload "Add this option to upload data to S3." ...
247b1b0a2412505531e27b8a5c3bbf3c9ef05766ea3a8a2a4601bc046c79318b
kitnil/dotfiles
python.scm
(define-module (home services python) #:use-module (gnu home services) #:use-module (gnu home services shepherd) #:use-module (guix gexp) #:use-module (guix records) #:use-module (gnu services) #:use-module (home config) #:export (home-python-service)) (define home-python-service (simple-service 'pytho...
null
https://raw.githubusercontent.com/kitnil/dotfiles/354a101e7e2789ad37e8b0c9f4534e2a9fc55439/dotfiles/guixsd/modules/home/services/python.scm
scheme
(define-module (home services python) #:use-module (gnu home services) #:use-module (gnu home services shepherd) #:use-module (guix gexp) #:use-module (guix records) #:use-module (gnu services) #:use-module (home config) #:export (home-python-service)) (define home-python-service (simple-service 'pytho...
b582693929b73839add7ba21f8926d68b1353cc55345226ce7b8385fbb1c2cdf
skynet-gh/skylobby
rapid.clj
(ns skylobby.fx.rapid (:require [cljfx.api :as fx] [cljfx.ext.node :as fx.ext.node] [clojure.java.io :as io] [clojure.string :as string] [skylobby.fs :as fs] skylobby.fx [skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]] [skylobby.fx.font-icon :as font-ic...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/e25c88d149c298326ec8a32306a86485c2324fd8/src/clj/skylobby/fx/rapid.clj
clojure
(ns skylobby.fx.rapid (:require [cljfx.api :as fx] [cljfx.ext.node :as fx.ext.node] [clojure.java.io :as io] [clojure.string :as string] [skylobby.fs :as fs] skylobby.fx [skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]] [skylobby.fx.font-icon :as font-ic...
830d645aa16d90416cc51df24b3998b8b5ba71753076932617b92156fa6227bb
anwarmamat/cmsc330fall19public
parser.mli
open SmallCTypes open TokenTypes val parse_main : token list -> stmt (* Yeah don't touch this either thx *) val parse_expr_wrapper : token list -> expr val parse_stmt_wrapper : token list -> stmt
null
https://raw.githubusercontent.com/anwarmamat/cmsc330fall19public/e3156c0438a4ccc78793a94cd62fe19d01688c0b/project4b/src/parser.mli
ocaml
Yeah don't touch this either thx
open SmallCTypes open TokenTypes val parse_main : token list -> stmt val parse_expr_wrapper : token list -> expr val parse_stmt_wrapper : token list -> stmt
90879be3b5ca2ebab9bf255254f7e49314e48373abe35ba98f0066d8f46ce734
shirok/Chaton
package.scm
;; ;; Package chaton-client ;; (define-gauche-package "Chaton-client" :version "1.0" :description "Client library of Chaton chat server" :require (("Gauche" (>= "0.9.8"))) :providing-modules (chaton.client) :authors ("Shiro Kawai <>") :maintainers () :licenses ("BSD") :homepage "-scheme.net/" :reposi...
null
https://raw.githubusercontent.com/shirok/Chaton/468031bd1b1093bbef896109cb908f75c3f19523/client/package.scm
scheme
Package chaton-client
(define-gauche-package "Chaton-client" :version "1.0" :description "Client library of Chaton chat server" :require (("Gauche" (>= "0.9.8"))) :providing-modules (chaton.client) :authors ("Shiro Kawai <>") :maintainers () :licenses ("BSD") :homepage "-scheme.net/" :repository "" )
2d14805b2180b8059ad54e9420817464ae69c73b6b3020f0e949cee02a08a079
blancas/eisen
test_parser.clj
Copyright ( c ) 2013 . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; ...
null
https://raw.githubusercontent.com/blancas/eisen/ec44756b5653c108647215cb56f2fa01a71fd0f0/src/test/clojure/blancas/eisen/test_parser.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. +--...
Copyright ( c ) 2013 . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns blancas.eisen.test-parser (:use [blancas.eisen core parser] [clojure.test] [midje.sweet :exclude (expect one-of)])) | definitions . | (deftest test-0000 (fact "Decimal ...
6583f5c8a3401578eb0a113891f919415abfb9d22bf65ba9c06477ec682238a9
input-output-hk/ouroboros-network
Impl.hs
# LANGUAGE DisambiguateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} module Ouroboros.Consensus.Storage.ChainDB.Impl ( -- * Initialization ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/1f6433d0d2e17511a17df7ee9b76be9df74887d2/ouroboros-consensus/src/Ouroboros/Consensus/Storage/ChainDB/Impl.hs
haskell
# LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # * Initialization * Trace types * Re-exported for convenience * Internals for testing purposes ------------------------------------------------------------------------------ Initialization ------------...
# LANGUAGE DisambiguateRecordFields # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # module Ouroboros.Consensus.Storage.ChainDB.Impl ( ChainDbArgs (..) , SerialiseDiskConstraints , defaultArgs , openDB , withDB , LgrDB.TraceReplayEvent , NewTipInfo (..) , TraceAddBlockE...
5c5abcce462c46b5d884914f294f5ddc48194dbd4d7bf9cd87655e2bf9fe49a2
rowangithub/DOrder
rand.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and (* ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/external/ocamlgraph/src/rand.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and modify it under the terms of the GNU Library General Public License version 2 , with the special exception on linking $ I d :...
aac33f19161df2ee6eedc90433a80637453195fafc5d31bc3171e23b81388726
may-liu/qtalk
http_get_muc_msg.erl
%% Feel free to use, reuse and abuse the code in this file. -module(http_get_muc_msg). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Method, _} = cowboy_req:method(Req), ...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/scripts/ejb_http_server/src/http_get_muc_msg.erl
erlang
Feel free to use, reuse and abuse the code in this file. case http_utils:verify_user_key(Req) of
-module(http_get_muc_msg). -export([init/3]). -export([handle/2]). -export([terminate/3]). -include("logger.hrl"). -include("http_req.hrl"). init(_Transport, Req, []) -> {ok, Req, undefined}. handle(Req, State) -> {Method, _} = cowboy_req:method(Req), catch ejb_monitor:monitor_count(<<"http_get_muc_msg_domain"...
40189fa187fb20f23f0f2701d2a23578fe6c109e0a781bd93a60304e87b6042a
ocaml/dune
ansi_color.ml
module RGB8 : sig type t val to_dyn : t -> Dyn.t val of_int : int -> t val to_int : t -> int (** This is only used internally. *) val write_to_buffer : Buffer.t -> t -> unit end = struct type t = char let to_dyn t = Dyn.Int (int_of_char t) let of_int t = char_of_int (t land 0xFF) let to_int t...
null
https://raw.githubusercontent.com/ocaml/dune/ce02bf035c7c421167be3b7b706f2b934faa6f59/otherlibs/stdune/src/ansi_color.ml
ocaml
* This is only used internally. * This is only used internally. If the foreground is set to default, we filter out any other foreground modifiers. Same for background. Skip the "\027[" Some commands output "\027[m", which seems to be interpreted the same as "\027[0m" by terminals
module RGB8 : sig type t val to_dyn : t -> Dyn.t val of_int : int -> t val to_int : t -> int val write_to_buffer : Buffer.t -> t -> unit end = struct type t = char let to_dyn t = Dyn.Int (int_of_char t) let of_int t = char_of_int (t land 0xFF) let to_int t = int_of_char t let write_to_buffer...
6dfe13aeff430ae223a72851549d1e5d2004c150b720320fbd06ad7d443e7d95
agda/agda
Base.hs
{-# LANGUAGE GADTs #-} -- | Generate an import dependency graph for a given module. module Agda.Interaction.Highlighting.Dot.Base ( renderDotToFile , renderDot , DotGraph ) where import Control.Monad.IO.Class import qualified Data.Map.Strict as M import qualified Data.Set as S import qualified Data.Text.Laz...
null
https://raw.githubusercontent.com/agda/agda/83736e94ae687652bb8052404e3a3a946d74e225/src/full/Agda/Interaction/Highlighting/Dot/Base.hs
haskell
# LANGUAGE GADTs # | Generate an import dependency graph for a given module. | Graph structure * Graph rendering
module Agda.Interaction.Highlighting.Dot.Base ( renderDotToFile , renderDot , DotGraph ) where import Control.Monad.IO.Class import qualified Data.Map.Strict as M import qualified Data.Set as S import qualified Data.Text.Lazy as L import qualified Data.Text.Lazy.Encoding as E import qualified Data.ByteStrin...
73ea0365827933be47af37a17e01be360750d2938f518a5975caeca422942d9e
prg-titech/baccaml
renaming.mli
open MinCaml type rename_env = Id.t -> Id.t val counter : int ref val empty_env : string -> 'a val extend_env : (string -> string) -> string -> string -> string val rename_id_or_imm : (Id.t -> Id.t) -> Asm.id_or_imm -> Asm.id_or_imm val rename_exp : (Id.t -> Id.t) -> Asm.exp -> Asm.exp val rename_t : (Id.t -> Id.t) -...
null
https://raw.githubusercontent.com/prg-titech/baccaml/a3b95e996a995b5004ca897a4b6419edfee590aa/jit/renaming.mli
ocaml
open MinCaml type rename_env = Id.t -> Id.t val counter : int ref val empty_env : string -> 'a val extend_env : (string -> string) -> string -> string -> string val rename_id_or_imm : (Id.t -> Id.t) -> Asm.id_or_imm -> Asm.id_or_imm val rename_exp : (Id.t -> Id.t) -> Asm.exp -> Asm.exp val rename_t : (Id.t -> Id.t) -...
b32f5e2ec12d5211f8e92a46bf0b72f0ec22237c8bb150e2ddd621e63a822f09
syallop/DHT
Logging.hs
{-| Stability : experimental Defines a simple logging system which outputs all logged strings to stdout immediately. -} module DHT.SimpleNode.Logging ( newSimpleLogging ) where import Control.Concurrent import Control.Monad import DHT.Client (Logging) -- | Create a new logging system which outputs to stdout ne...
null
https://raw.githubusercontent.com/syallop/DHT/a376cf5a423f50212cfd856dcf733eb5177fc00c/Examples/DHT-SimpleNode/DHT/SimpleNode/Logging.hs
haskell
| Stability : experimental Defines a simple logging system which outputs all logged strings to stdout immediately. | Create a new logging system which outputs to stdout
module DHT.SimpleNode.Logging ( newSimpleLogging ) where import Control.Concurrent import Control.Monad import DHT.Client (Logging) newSimpleLogging :: IO (Logging IO) newSimpleLogging = do loggingState <- newChan forkIO $ forever $ readChan loggingState >>= putStrLn return $ Just (writeChan loggingState) ...
6e10c512aa4d8ec89a9b621c74401499b1603e90beef8f54505d3a2919748d13
amnh/PCG
Load.hs
----------------------------------------------------------------------------- -- | Module : . Load Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- Provides the types for the \"LOAD\ " command alo...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/language/src/PCG/Command/Load.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : provisional Portability : portable to be consumed by the stream parser. --------------------------------------------------------------------------- | use that state as the ne...
Module : . Load Copyright : ( c ) 2015 - 2021 Ward Wheeler Provides the types for the \"LOAD\ " command along with a semantic definition # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE UnboxedSums # module PCG.Command.Load ( LoadCommand (..) , loadCommandSpe...
b3573e7a6ef08a83e77caaf6a929f82adf8a32dcc6912c73465e980b963b3f7a
TrustInSoft/tis-kernel
Vset.ml
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/wp/Vset.ml
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 ...
0f4200a5ddc00f8c7878eca6ac90c8e7c5a2b84898001bb76add9d481d045be7
rtrusso/scp
str2num.scm
(define test-case-number 0) (define-syntax test (syntax-rules () ((_ expression) (begin (set! test-case-number (+ test-case-number 1)) (display "case ") (display test-case-number) (display ": ") (newline) (display 'expression) ...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/str2num.scm
scheme
(define test-case-number 0) (define-syntax test (syntax-rules () ((_ expression) (begin (set! test-case-number (+ test-case-number 1)) (display "case ") (display test-case-number) (display ": ") (newline) (display 'expression) ...
1cc24df02bf95741deea43d7c5115d414bc7bc9b0fbefaa9d2490520187a036e
tezos/tezos-mirror
node_context.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 TriliTech < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/1b26ce0f9c2a9c508a65c45641a0a146d9b52fc7/src/proto_016_PtMumbai/lib_sc_rollup_node/node_context.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 TriliTech < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER...
64373435c42d1920d449488a8ef1f90bea55f689278497c22c2a5a46d76bd945
MastodonC/kixi.stats
core_test.cljc
(ns kixi.stats.core-test (:require [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [kixi.stats.core :as kixi] [kixi.stats.estimate :as estimate] [kixi.stats.test :refer [simple-z-test z-test p-value]] [kixi.stats.test-helpers :as t :refer...
null
https://raw.githubusercontent.com/MastodonC/kixi.stats/33626268e11238264421d6783ccbc03f9254d549/test/kixi/stats/core_test.cljc
clojure
(ns kixi.stats.core-test (:require [clojure.test.check :as tc] [clojure.test.check.generators :as gen] [kixi.stats.core :as kixi] [kixi.stats.estimate :as estimate] [kixi.stats.test :refer [simple-z-test z-test p-value]] [kixi.stats.test-helpers :as t :refer...
763d58f48c0377e4a1e897960ef5ed7abb4826d5ec5676931a7b62c157b9d3c0
a-vorontsov/aver
main.ml
open Printf open Instruction open Bytecode open Typing let emit b = "# Begin Aver Bytecode\n" ^ String.concat "\n" (List.map as_string b) let filename = ref "" let output = ref "" let version () = Printf.printf "averc 0.1\n"; exit 0 let usage = Printf.sprintf "usage: %s [--version] [--output file] filename...
null
https://raw.githubusercontent.com/a-vorontsov/aver/e0716853d2cdf0421b0a5628fd6bb68b375e8765/compiler/main.ml
ocaml
open Printf open Instruction open Bytecode open Typing let emit b = "# Begin Aver Bytecode\n" ^ String.concat "\n" (List.map as_string b) let filename = ref "" let output = ref "" let version () = Printf.printf "averc 0.1\n"; exit 0 let usage = Printf.sprintf "usage: %s [--version] [--output file] filename...
4d1257f0919066922543f28f2b64ad01248d02ff51478e40e608c84a30dbe823
tweag/HaskellR
Debug.hs
-- | Copyright : ( C ) 2013 Amgen , Inc. -- -- Debugging facilities, in particular to analyze the internal structure of a ' SEXP ' as structured JSON . -- -- This module is intended to be imported qualified. {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE Overload...
null
https://raw.githubusercontent.com/tweag/HaskellR/43dee47c735045d4178aae4b42f4dd18103ec631/inline-r/src/Language/R/Debug.hs
haskell
| Debugging facilities, in particular to analyze the internal structure of This module is intended to be imported qualified. # LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # XXX: do not use lists
Copyright : ( C ) 2013 Amgen , Inc. a ' SEXP ' as structured JSON . # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - name - shadowing # module Language.R.Debug ( inspect ) where import Control.Memory.Region (V) import Data.String (from...
13e7e2c41f497eb44a686d0d9ab5aa476469b5957f133a2344af3b9fe580fce9
plow-technologies/ble
Utils.hs
module Bluetooth.Internal.Utils where import qualified Data.Text as T import Lens.Micro import DBus Doing 's would require the full ' lens ' dependency class ToText a where toText :: Lens' a T.Text instance ToText ObjectPath where toText = lens objectPathToText (const objectPath) class FromText a where fro...
null
https://raw.githubusercontent.com/plow-technologies/ble/fc1c2ab91b5fe33e3636e7b75f76219ef01968b9/src/Bluetooth/Internal/Utils.hs
haskell
module Bluetooth.Internal.Utils where import qualified Data.Text as T import Lens.Micro import DBus Doing 's would require the full ' lens ' dependency class ToText a where toText :: Lens' a T.Text instance ToText ObjectPath where toText = lens objectPathToText (const objectPath) class FromText a where fro...
91ef52660405887afec9b1f9c6176c5126b9455f96545c933e2a88c56824850d
facebook/pyre-check
errorsEnvironment.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/b3f905c98528f4d0fce3da5e188546641aa28df8/source/analysis/errorsEnvironment.mli
ocaml
Get all errors for in-project modules; use this to grab errors that are already computed
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
7cd15799078e0758b2d13e22cad5811742ecbf4b40d548356f3ae03eb45ddb8c
mirage/ocaml-cow
render.ml
open Cow let xml_decl = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" let a = Xml.(tag "a" (string "a")) let b = Xml.(tag "b" empty) let c = Xml.(tag "c" (a ++ string " " ++ b ++ string " " ++ a)) let d = Xml.(tag "a" ~attrs:["foo",""] empty) let _d = Xml.to_string d let opt = Some a let opt' = None let int = 3 let f...
null
https://raw.githubusercontent.com/mirage/ocaml-cow/44cdd5bb66c7096ba94aeb311474cd3f3a3cf1fa/test/render.ml
ocaml
open Cow let xml_decl = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" let a = Xml.(tag "a" (string "a")) let b = Xml.(tag "b" empty) let c = Xml.(tag "c" (a ++ string " " ++ b ++ string " " ++ a)) let d = Xml.(tag "a" ~attrs:["foo",""] empty) let _d = Xml.to_string d let opt = Some a let opt' = None let int = 3 let f...
d8e3be52d9295b4d7879f5685e57f3c80b7d48753f1ec4bb911de258d7a62301
clash-lang/clash-compiler
Internal.hs
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2016 - 2017 , Myrtle Software Ltd , 2021 - 2022 QBayLogic B.V. , 2022 , Google Inc. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/71a70798c9a6eed7a600822954da3802a6087f91/clash-prelude/src/Clash/Class/BitPack/Internal.hs
haskell
# OPTIONS_GHC -fplugin=GHC.TypeLits.Extra.Solver # # OPTIONS_GHC -fplugin=GHC.TypeLits.Normalise # # OPTIONS_HADDOCK show-extensions # on the underlying representation of data, while exposing a nicer API using 'pack' / 'unpack' at the boundaries. For example: @ f :: forall a b. (BitPack a, BitPack b) => a -> b...
| Copyright : ( C ) 2013 - 2016 , University of Twente , 2016 - 2017 , Myrtle Software Ltd , 2021 - 2022 QBayLogic B.V. , 2022 , Google Inc. License : BSD2 ( see the file LICENSE ) Maintainer : QBayLogic B.V. < > Copyright : (C) ...
d867111299614ed55aac55e9f436463abd4b208ccbaef0e793546a6df3f7c5ef
toschoo/mom
tlsbridge.hs
{-# Language BangPatterns #-} module Main where import Network.TLS.Bridge.Bridge import qualified Data.ByteString.Char8 as B import Data.Char (isDigit) import Data.String (fromString) import Data.Conduit.Network import Data.Conduit.Network.TLS import Net...
null
https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/tls/test/smoke/tlsbridge.hs
haskell
# Language BangPatterns #
module Main where import Network.TLS.Bridge.Bridge import qualified Data.ByteString.Char8 as B import Data.Char (isDigit) import Data.String (fromString) import Data.Conduit.Network import Data.Conduit.Network.TLS import Network.Socket import ...
2765b901e6a9e13d34f16e8a76e5d9d5ae2e9ce08e4b40ea775f511566e33d37
dmitryvk/sbcl-win32-threads
pseudo-vops.lisp
;;;; This file contains definitions of VOPs used as internal markers by ;;;; the compiler. Since they don't emit any code, they should be ;;;; portable. This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was writt...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/pseudo-vops.lisp
lisp
This file contains definitions of VOPs used as internal markers by the compiler. Since they don't emit any code, they should be portable. more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Th...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!C") (define-vop (note-environment-start) (:info start-lab) (:vop-var vop) (:save-p :compute-only) (:...
c8dc49ed7d65c59e864010ec6a2add5014d370db379d9c4e267c0bd7334b1665
ocaml-multicore/ocaml-tsan
load_path.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/f54002470cc6ab780963cc81b11a85a820a40819/utils/load_path.mli
ocaml
************************************************************************ OCaml ...
, Jane Street Europe Copyright 2018 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the val add_dir : string -> unit val remove_dir : string -> unit val reset : unit -> unit module Dir : sig ...