_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
e550ecd5dcf4492476d59f24e6efc0cdefd9f95fc144e87033b7775f0f093d59
pokepay/aws-sdk-lisp
s3.lisp
;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. (uiop:define-package #:aws-sdk/services/s3 (:use) (:use-reexport #:aws-sdk/services/s3/api #:aws-sdk/services/s3/customization))
null
https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/426d9c65f5709aba022cac661cac9754e7d82556/services/s3.lisp
lisp
DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(uiop:define-package #:aws-sdk/services/s3 (:use) (:use-reexport #:aws-sdk/services/s3/api #:aws-sdk/services/s3/customization))
5cd38fccc2487dca129772f7160e4b2310654de5833624e0886fe1b87fece8a0
logicmoo/wam_common_lisp
cmploc.lsp
Copyright ( c ) 1984 , and . Copyright ( c ) 1990 , . ;;;; ;;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your op...
null
https://raw.githubusercontent.com/logicmoo/wam_common_lisp/4396d9e26b050f68182d65c9a2d5a939557616dd/prolog/wam_cl/src/cmp/cmploc.lsp
lisp
This program is free software; you can redistribute it and/or either See file '../Copyright' for full details. Valid locations are: T ( 'VALUE' i ) VALUES(i) ( 'VALUES' nr ) nr is number of values ccb ( 'VV' vv-index ) ( 'TEMP' temp ) local variable, type object ( 'INLINE' side-effect-p fun/st...
Copyright ( c ) 1984 , and . Copyright ( c ) 1990 , . modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . CMPLOC Set - loc and Wt - loc . (in-package 'compiler) (defvar *destination*) NIL ( ' LCL ' lcl ) l...
edb407b4754e6db618e5bf728fb35154ffcc349dc6834c1ac9c14271e62ca37a
ucsd-progsys/nate
tkthread.ml
(***********************************************************************) (* *) (* LablTk, Tcl/Tk interface of Objective Caml *) (* *) , Nagoya Uni...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/support/tkthread.ml
ocaml
********************************************************************* LablTk, Tcl/Tk interface of Objective Caml ...
, Nagoya University Mathematics Dept . Copyright 2004 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with the special e...
3493d5ca0d179c7b3e6d5eaab7f00b01f640c2b036815fe199f53e11aade9c6f
leksah/leksah
Inspect.hs
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} ------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/leksah/leksah/ec95f33af27fea09cba140d7cddd010935a2cf52/src-gtk/IDE/Pane/WebKit/Inspect.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE TypeSynonymInstances # # LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- Module : IDE.Pane.WebKit.Inspect License : GPL Maintainer : Stability : provisional Portability : | --------------------...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # Copyright : 2007 - 2014 , module IDE.Pane.WebKit.Inspect ( IDEInspect(..) , InspectState(..) , getInspectPane ) where import Prelude () import Prelude.Compat ...
1ad14d9959131b62aa6c70dd8df926bf96cc871fb14da03750d6df12a7d4019a
sky-big/RabbitMQ
amqp_network_connection.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-erlang-client/src/amqp_network_connection.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. undefined | Rea...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . @priv...
2a59d8c558d8c7bb967b76f208f8c692fee8e2dda98b0cbc92b73a96e868ae2e
marcoheisig/adventofcode
day-13.lisp
(defpackage :adventofcode-2020-day-13 (:use :cl)) (in-package :adventofcode-2020-day-13)
null
https://raw.githubusercontent.com/marcoheisig/adventofcode/e96a0da17cd79f424af984ed2648b49ffdacb893/2020/day-13/day-13.lisp
lisp
(defpackage :adventofcode-2020-day-13 (:use :cl)) (in-package :adventofcode-2020-day-13)
bbc4b00c0a026272ab0fc1ff7ce392bdfa4809169f6efdc90c1c6536b6d37728
gfour/gic
prog16.hs
result = f sq 2 ; f s x = if x < 1 then s x else f (g s) (x - 1) ; g t y = f (add (t y)) y ; sq z = z * z ; add a b = a + b
null
https://raw.githubusercontent.com/gfour/gic/d5f2e506b31a1a28e02ca54af9610b3d8d618e9a/Examples/Data/prog16.hs
haskell
result = f sq 2 ; f s x = if x < 1 then s x else f (g s) (x - 1) ; g t y = f (add (t y)) y ; sq z = z * z ; add a b = a + b
160bde2c2d141602249379c7e61ec97b4dbf073dbe6c82a30278179b0487bd69
camllight/camllight
history.mli
value empty_history : unit -> unit;; value add_current_time : unit -> unit;; value previous_time : int -> int;;
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/debugger/history.mli
ocaml
value empty_history : unit -> unit;; value add_current_time : unit -> unit;; value previous_time : int -> int;;
a42952673a40e865c68d6119aed8041c2a40c680e4862aaf29868ab45c37f448
dgavedissian/programmer-hero
Code.hs
module Code where import ParserC data Code = Token String | Indent String loadTokens :: FilePath -> IO [Code] loadTokens source = do f <- readFile source case runParser tokenise f of Right r -> return r Left err -> print err >> return [] runParser :: ParserC () a -> String -> Either ParserError a...
null
https://raw.githubusercontent.com/dgavedissian/programmer-hero/3e11be60834edcf4be8db2df6c52c94ccd68c725/Code.hs
haskell
Parsing stuff
module Code where import ParserC data Code = Token String | Indent String loadTokens :: FilePath -> IO [Code] loadTokens source = do f <- readFile source case runParser tokenise f of Right r -> return r Left err -> print err >> return [] runParser :: ParserC () a -> String -> Either ParserError a...
af1aac5223350e2cccd28db6a3e7c0ae47a01b3b3384fcb238fbd13274b74ce2
padsproj/pads-haskell
Small.hs
# LANGUAGE TypeFamilies , TypeSynonymInstances , TemplateHaskell , QuasiQuotes , MultiParamTypeClasses , FlexibleInstances , DeriveDataTypeable , ScopedTypeVariables # module Small where import Language.Pads.Padsc [pads| type StringFWs = [StringFW 3| EOR] terminator EOF |] stringFWs_input = "abc\nabcd\nab\nabc" string...
null
https://raw.githubusercontent.com/padsproj/pads-haskell/8dce6b2b28bf7d98028e67f6faa2be753a6ad691/examples/Small.hs
haskell
# LANGUAGE TypeFamilies , TypeSynonymInstances , TemplateHaskell , QuasiQuotes , MultiParamTypeClasses , FlexibleInstances , DeriveDataTypeable , ScopedTypeVariables # module Small where import Language.Pads.Padsc [pads| type StringFWs = [StringFW 3| EOR] terminator EOF |] stringFWs_input = "abc\nabcd\nab\nabc" string...
474e9592d6a3238dbccbe96cd73ad21a21598b87d4cbbcc8cbe93bb21c2de72d
PacktPublishing/HaskellCookbook
Main.hs
module Main where import Data.Functor import Control.Applicative -- Mapping a list multiplyLists :: Num a => [a] -> [a] -> [a] multiplyLists xs ys = (*) <$> xs <*> ys -- Mapping a Maybe tupleMaybe :: Maybe a -> Maybe b -> Maybe (a,b) tupleMaybe x y = (,) <$> x <*> y -- Mapping an Either addEither :: Num a => Either...
null
https://raw.githubusercontent.com/PacktPublishing/HaskellCookbook/27e146b6d91c008a7b1d06eda4ea63fe8a8cdb04/Ch_4-Working_With_Functors_Applicatives_And_Monads/working-with-applicaive/src/Main.hs
haskell
Mapping a list Mapping a Maybe Mapping an Either
module Main where import Data.Functor import Control.Applicative multiplyLists :: Num a => [a] -> [a] -> [a] multiplyLists xs ys = (*) <$> xs <*> ys tupleMaybe :: Maybe a -> Maybe b -> Maybe (a,b) tupleMaybe x y = (,) <$> x <*> y addEither :: Num a => Either c a -> Either c a -> Either c a addEither x y = pure (+)...
187f83796e401d15144d5f461d7da8da02c4180043dd18af0a1824883af00c3f
astampoulis/makam
dumpBootParser.ml
open Batteries;; open Peg;; open ToploopTools;; open Camlp4.PreCast;; let _loc = Loc.ghost;; open BootPegGrammar;; let main () = if Array.length Sys.argv <> 2 then (let usage = "\ Usage: dumpBootParser [output]\n\ [output] is the file where the generated ML code is printed\n...
null
https://raw.githubusercontent.com/astampoulis/makam/bf7ed7592c21e0439484d7464e659eca5be3b2f9/bootstrap/dumpBootParser.ml
ocaml
open Batteries;; open Peg;; open ToploopTools;; open Camlp4.PreCast;; let _loc = Loc.ghost;; open BootPegGrammar;; let main () = if Array.length Sys.argv <> 2 then (let usage = "\ Usage: dumpBootParser [output]\n\ [output] is the file where the generated ML code is printed\n...
aad8ee007c2f8d954c1b0565fb457b332b73112f8c4fde2c5182a77d40a10147
joaomilho/apalachin
chat_outgoing_mail_controller.erl
-module(chat_outgoing_mail_controller). -compile(export_all). %% See -mail-controller.html for what should go in here test_message(FromAddress, ToAddress, Subject) -> Headers = [ {"Subject", Subject}, {"To", ToAddress}, {"From", FromAddress} ], {ok, FromAddress, ToAddress, Headers,...
null
https://raw.githubusercontent.com/joaomilho/apalachin/fdbcf43cf03d828d62463c219e0348c3b35a6a4c/src/mail/chat_outgoing_mail_controller.erl
erlang
See -mail-controller.html for what should go in here
-module(chat_outgoing_mail_controller). -compile(export_all). test_message(FromAddress, ToAddress, Subject) -> Headers = [ {"Subject", Subject}, {"To", ToAddress}, {"From", FromAddress} ], {ok, FromAddress, ToAddress, Headers, [{address, ToAddress}]}.
93a7d21f0039db27332401dfeee34c5fd3184397ac4435c2ce77841ccb7c3571
facebook/flow
instantiation_utils.ml
* 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/flow/462198abc93a8ee0ec94023cdcae4b04583569da/src/typing/instantiation_utils.ml
ocaml
********************* instantiation utils ********************* Create a reason that is positioned at reason_op, but has a def_loc at * typeparam.reason. Abstract a type argument that is created by implicit instantiation above. Sometimes, these type arguments are involved in type expansion loops, so...
* 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...
91bd0a2d1853bb7450b7b83fa1c663115dec2e0ed72ba75262a7204bda51f0fa
scicloj/scicloj.ml-tutorials
unsupervised.clj
(ns scicloj.ml.unsupervised (:require [notespace.api :as note] [notespace.kinds :as kind] [net.clojars.behrica.cluster_eval :as cluster-eval])) (comment (note/init-with-browser) (note/eval-this-notespace) (note/reread-this-notespace) (note/render-static-html "docs/userguide-unsupervised.html") ...
null
https://raw.githubusercontent.com/scicloj/scicloj.ml-tutorials/e55682bbddb7933eb7bce1c490436f5e1dd35acb/src/scicloj/ml/unsupervised.clj
clojure
(ns scicloj.ml.unsupervised (:require [notespace.api :as note] [notespace.kinds :as kind] [net.clojars.behrica.cluster_eval :as cluster-eval])) (comment (note/init-with-browser) (note/eval-this-notespace) (note/reread-this-notespace) (note/render-static-html "docs/userguide-unsupervised.html") ...
d2c2417ecf08174c70009f1a7b65517044f8329aea5b573559ad40d6af4a493f
wgnet/fox
fox_SUITE.erl
-module(fox_SUITE). %% test needs connection to RabbitMQ -include("fox.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile([export_all]). -define(DELAY, 500). -spec all() -> list(). all() -> [ start_stop_pool_test, create_channel_test, p...
null
https://raw.githubusercontent.com/wgnet/fox/030cc35d5828db959d19e67c90456d24a2c77c8e/test/fox_SUITE.erl
erlang
test needs connection to RabbitMQ
-module(fox_SUITE). -include("fox.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile([export_all]). -define(DELAY, 500). -spec all() -> list(). all() -> [ start_stop_pool_test, create_channel_test, publish_test, sync_publish_tes...
539ee76fabdc092f26073722dab2e27798a4e07659b5b7fdbdb52b27478e51ba
zaxtax/hakaru-old
Pretty.hs
module Util.Pretty (Pretty(..)) where import Text.PrettyPrint import Text.Show.Functions import Data.Ratio (Ratio, numerator, denominator) import qualified Data.Map as M import qualified Data.Set as S import Util.Finite class (Show a) => Pretty a where pretty :: a -> Doc pretty = text . show prettyList ::...
null
https://raw.githubusercontent.com/zaxtax/hakaru-old/edac4bca19a2b7b9257e584529cde5e7242e9695/Language/Hakaru/Util/Pretty.hs
haskell
module Util.Pretty (Pretty(..)) where import Text.PrettyPrint import Text.Show.Functions import Data.Ratio (Ratio, numerator, denominator) import qualified Data.Map as M import qualified Data.Set as S import Util.Finite class (Show a) => Pretty a where pretty :: a -> Doc pretty = text . show prettyList ::...
e9723820f8e4959b98227941e4e9ca4d2b205e7a2d12335cec232e8d733dfa50
mirage/ocaml-matrix
user_directory.ml
open Json_encoding open Matrix_common module Search = struct module Query = Empty.Query module Request = struct type t = {search_term: string; limited: int option} [@@deriving accessor] let encoding = let to_tuple t = t.search_term, t.limited in let of_tuple v = let search_term, limit...
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/lib/matrix-ctos/user_directory.ml
ocaml
open Json_encoding open Matrix_common module Search = struct module Query = Empty.Query module Request = struct type t = {search_term: string; limited: int option} [@@deriving accessor] let encoding = let to_tuple t = t.search_term, t.limited in let of_tuple v = let search_term, limit...
934882917c239921c0daf6887db7a148e32075d065bdf3561779f7d601d3d3d1
spawnfest/eep49ers
lists.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2018 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/src/lists.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2018 . 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(lists). -compile({no_auto_import,[max/2]}). -compile({no_auto_import,[min/2]}). -export([append/2, append/1...
e129e5a9a9a71050aec4896b2527d3b88cabd98737e60dfb995040d0b1966ce2
incoherentsoftware/defect-process
Texture.hs
module Window.Graphics.Texture ( module Window.Graphics.Texture.Types , loadTexture , loadTextureEx , mkTexture , drawTextureSubRectEx , drawTexture , drawTextureScaled , drawTextureScaledEx , freeTextures ) where import Control.Concurrent.STM (atomically) import Control.Co...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/14ec46dec2c48135bc4e5965b7b75532ef19268e/src/Window/Graphics/Texture.hs
haskell
module Window.Graphics.Texture ( module Window.Graphics.Texture.Types , loadTexture , loadTextureEx , mkTexture , drawTextureSubRectEx , drawTexture , drawTextureScaled , drawTextureScaledEx , freeTextures ) where import Control.Concurrent.STM (atomically) import Control.Co...
18b806d2e2b1537f09f4e3ae5322eb762562c03b1583e78568a5dcf84886422d
evturn/haskellbook
17.08-validations-on-either.hs
import Test.QuickCheck hiding (Failure, Success) import Test.QuickCheck.Checkers import Test.QuickCheck.Classes data Validation err a = Failure err | Success a deriving (Eq, Show) instance Functor (Validation e) where fmap _ (Failure...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/17/17.08-validations-on-either.hs
haskell
import Test.QuickCheck hiding (Failure, Success) import Test.QuickCheck.Checkers import Test.QuickCheck.Classes data Validation err a = Failure err | Success a deriving (Eq, Show) instance Functor (Validation e) where fmap _ (Failure...
ece9e9c5e5204242b5e296aa4680aeac999367b9223f0fab51715b24fa78a82f
DestyNova/advent_of_code_2021
Part1.hs
module Main where import Text.Parsec import Data.List ((\\), transpose) main = do txt <- readFile "input.txt" let (Right inp) = parse parser "" txt let lowPoints = getLowPoints inp print $ sum $ map (+1) lowPoints getLowPoints xs = [p | x <- [0..w-1], y <- [0..h-1], let neighbours = ...
null
https://raw.githubusercontent.com/DestyNova/advent_of_code_2021/f0fea3f81ead9d7d703b266a8b960f5f2bc5a658/day9/Part1.hs
haskell
module Main where import Text.Parsec import Data.List ((\\), transpose) main = do txt <- readFile "input.txt" let (Right inp) = parse parser "" txt let lowPoints = getLowPoints inp print $ sum $ map (+1) lowPoints getLowPoints xs = [p | x <- [0..w-1], y <- [0..h-1], let neighbours = ...
e22eba2c3da26cf733677ebc8605ef9bca214c54ad2f802e320dca8baa4bcb9e
fetburner/Coq2SML
subtac_coercion.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/subtac/subtac_coercion.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Disallow equalities on arities fa...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open Term...
6df76ce205d87fd9c53c4e12db7069c5d312ffc5dbea3681dfc0147cef5070ec
wlitwin/graphv
fontstash.ml
module ErrorCode = struct type t = Atlas_full | Scratch_full | States_overflow | States_underflow end module Params = struct type t = { width : int; height : int; impl : Font_impl.t; } end module Quad = Quad module GlyphBitmap = GlyphBitmap modul...
null
https://raw.githubusercontent.com/wlitwin/graphv/d0a09575c5ff5ee3727c222dd6130d22e4cf62d9/webgl2/font/fontstash.ml
ocaml
to reduce the size of the transition table and create bitmasks. of a state of the automaton and a character class to a state. We may have found no glyph, or fallback glyph, will cache empty glyph Create a new glyph or rasterize bitmap data for a cached glyph TODO - spaces have weird behavior here, because the ...
module ErrorCode = struct type t = Atlas_full | Scratch_full | States_overflow | States_underflow end module Params = struct type t = { width : int; height : int; impl : Font_impl.t; } end module Quad = Quad module GlyphBitmap = GlyphBitmap modul...
7974dcbf8fed9a338f8364f6f0774f0e7f71c533df6876b05ed8dda9b5be19ca
na4zagin3/satyrographos
commandDebug.ml
open Core open Satyrographos_satysfi let depgraph_command = let open Command.Let_syntax in let readme () = sprintf "Output dependency graph (EXPERIMENTAL)" in Command.basic ~summary:"Output dependency graph" ~readme [%map_open let runtime_dirs = flag "--satysfi-root-dirs" (optional stri...
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/9dbccf05138510c977a67c859bbbb48755470c7f/bin/commandDebug.ml
ocaml
ToDo: Remove this
open Core open Satyrographos_satysfi let depgraph_command = let open Command.Let_syntax in let readme () = sprintf "Output dependency graph (EXPERIMENTAL)" in Command.basic ~summary:"Output dependency graph" ~readme [%map_open let runtime_dirs = flag "--satysfi-root-dirs" (optional stri...
ee033c1b376619b229614c59290118570f4ee48fc6e26bcdd26f4b987a624601
dbuenzli/serialk
serialk_text.ml
--------------------------------------------------------------------------- Copyright ( c ) 2019 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/serialk/1c9731911fa7f57af9492e95a60a88a4ee4d5968/src/serialk_text.ml
ocaml
Error message helpers. suggest only if not too far Text locations File paths Lines Text locations Predicates and comparisons Shrink and stretch "characters" represent positions (insertion points) not columns (* See #section-4 Decoders Location Errors assert (not (eoi d))
--------------------------------------------------------------------------- Copyright ( c ) 2019 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
d0dada8ad25420f9540ca1aeb21f5eece1a72beb2ec66f3b54f3b9d929460994
fxfactorial/ocaml-nodejs
events_example.ml
let () = let e = new%js Nodejs.Events.event_emitter in e##addListener (Js.string "eventOne") (Js.wrap_callback (fun () -> print_endline "Called in the event callback")); let b = (* Add this to jsoo api itself *) e##eventNames |> Js.str_array |> Js.to_array |> Array.map Js.to_string |> Arra...
null
https://raw.githubusercontent.com/fxfactorial/ocaml-nodejs/392850b2983b6a11c1e103dfee20e2d679349f2b/examples/events_example.ml
ocaml
Add this to jsoo api itself
let () = let e = new%js Nodejs.Events.event_emitter in e##addListener (Js.string "eventOne") (Js.wrap_callback (fun () -> print_endline "Called in the event callback")); let b = e##eventNames |> Js.str_array |> Js.to_array |> Array.map Js.to_string |> Array.to_list in List.iter print_endl...
4e246155531ef050330a425e2ee417c08e65cbb6d8dc7e2709600543fca2bfb0
FPtje/miso-component-example
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Main where import qualified Button import Control.Lens ( (^.), (+=), (-=), makeLenses, to, zoom ) import Miso ( App(..), Transition ) import qualified Miso import Miso.Html import qualified Miso.String as Miso ...
null
https://raw.githubusercontent.com/FPtje/miso-component-example/0a931880eb0c9cd660a8e5b077c7dc8ee9467d59/src/Main.hs
haskell
# LANGUAGE OverloadedStrings # Update the component's model, with whatever side effects it may have When not using the lens library, the above function call can be implemented as follows: m <- State.get rightButton <- lift $ State.execStateT (Button.updateModel iRightButton act) $ _mRightButton m State.put $ m...
# LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Main where import qualified Button import Control.Lens ( (^.), (+=), (-=), makeLenses, to, zoom ) import Miso ( App(..), Transition ) import qualified Miso import Miso.Html import qualified Miso.String as Miso import GHCJS.Types The two Butto...
d8615d17c8292d13cddc9dce45c06e9a486774c32a116762ed0783c26fc77c67
BrunoBonacci/1config
project.clj
(defproject com.brunobonacci/oneconfig (-> "../ver/1config.version" slurp .trim) :description "A Clojure library for managing configurations" :url "" :license {:name "Apache License 2.0" :url "-2.0"} :scm {:name "git" :url ""} :dependencies [[org.clojure/clojure "1.11.1"] [com...
null
https://raw.githubusercontent.com/BrunoBonacci/1config/571fadb65067ac2812183632ae1d3fd07ab511a8/1config-core/project.clj
clojure
(defproject com.brunobonacci/oneconfig (-> "../ver/1config.version" slurp .trim) :description "A Clojure library for managing configurations" :url "" :license {:name "Apache License 2.0" :url "-2.0"} :scm {:name "git" :url ""} :dependencies [[org.clojure/clojure "1.11.1"] [com...
80de36dc9c05e55019d9127c13e175ccb3f394c508fd64471baaf3f665219b83
stil4m/project-typo
page_control.cljs
(ns ui.components.page-control (:require [ui.util.routing :as routing])) (defn history-btn-group [route-state] (let [has-history (seq (:history route-state)) has-future (seq (:future route-state))] [:div.btn-group [:button.btn.btn-default {:class (when (not has-history) ...
null
https://raw.githubusercontent.com/stil4m/project-typo/4e343934175f429c8b7870814d569f776203d461/client/ui_src/ui/components/page_control.cljs
clojure
(ns ui.components.page-control (:require [ui.util.routing :as routing])) (defn history-btn-group [route-state] (let [has-history (seq (:history route-state)) has-future (seq (:future route-state))] [:div.btn-group [:button.btn.btn-default {:class (when (not has-history) ...
abfce4cfe835bf5d39bd4c7605c42ae4e1c2fea37d502d323c6484d00eae90b4
dparis/gen-phzr
core.clj
(ns gen-phzr.codegen.core (:require [cheshire.core :as c] [cljfmt.core :as cfmt] [clojure.java.io :as io] [cuerdas.core :as str] [gen-phzr.codegen.files.accessor-file :as faf] [gen-phzr.codegen.files.src-file :as fsf] [gen-phzr.codegen.files.exte...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/src/gen_phzr/codegen/core.clj
clojure
(ns gen-phzr.codegen.core (:require [cheshire.core :as c] [cljfmt.core :as cfmt] [clojure.java.io :as io] [cuerdas.core :as str] [gen-phzr.codegen.files.accessor-file :as faf] [gen-phzr.codegen.files.src-file :as fsf] [gen-phzr.codegen.files.exte...
f9d5a8baa3cf628a7fd41c2b78c5c87fef87242062f3aeeed61841af72d142aa
ftomassetti/civs
graphics.clj
(ns ^{:author ftomassetti} civs.graphics (:require [civs.model.core :refer :all] [civs.logic.basic :refer :all]) (import java.io.File) (import java.awt.Color) (import java.awt.image.BufferedImage) (import javax.imageio.ImageIO)) (defn- population-map-color [game pos] (let [w (.world game) ...
null
https://raw.githubusercontent.com/ftomassetti/civs/dc76bfff4241f67d4bc1081de3947a725ea75c39/src/civs/graphics.clj
clojure
(ns ^{:author ftomassetti} civs.graphics (:require [civs.model.core :refer :all] [civs.logic.basic :refer :all]) (import java.io.File) (import java.awt.Color) (import java.awt.image.BufferedImage) (import javax.imageio.ImageIO)) (defn- population-map-color [game pos] (let [w (.world game) ...
491cda1bbd8f9c0494abed803df71be4a164e41f54f028ccf1938241356a018b
namin/clpsmt-miniKanren
cvc4-server.scm
(define z3-counter-check-sat 0) (define z3-counter-get-model 0) (define-values (z3-out z3-in z3-err z3-p) (open-process-ports "cvc4 -m --lang smt --quiet -" 'block (native-transcoder))) (define (z3-reset!) (let-values (((out in err p) (open-process-ports "cvc4 -m --lang smt --quiet -" 'block (nativ...
null
https://raw.githubusercontent.com/namin/clpsmt-miniKanren/4fa74fb973c95b7913f0e0239852f18a23073ccc/cvc4-server.scm
scheme
(z3-reset!) #t) (call-z3 '((pop))) (printf "~a\n" x) ignoring functions if we're skipping a model, let us stop
(define z3-counter-check-sat 0) (define z3-counter-get-model 0) (define-values (z3-out z3-in z3-err z3-p) (open-process-ports "cvc4 -m --lang smt --quiet -" 'block (native-transcoder))) (define (z3-reset!) (let-values (((out in err p) (open-process-ports "cvc4 -m --lang smt --quiet -" 'block (nativ...
52e0a3fc40349e27ba7e9c5d37675466ef58af5dc0b1e63990f2af204905e8e5
esl/erlang-web
e_cluster.erl
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the Erlang Web Public License along with this software . If not , it can be %% retrieved via the world...
null
https://raw.githubusercontent.com/esl/erlang-web/2e5c2c9725465fc5b522250c305a9d553b3b8243/lib/eptic-1.4.1/src/e_cluster.erl
erlang
compliance with the License. You should have received a copy of the retrieved via the world wide web at -consulting.com/. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. ---------------------------------...
The contents of this file are subject to the Erlang Web Public License , Version 1.0 , ( the " License " ) ; you may not use this file except in Erlang Web Public License along with this software . If not , it can be Software distributed under the License is distributed on an " AS IS " The Initial Developer o...
e7bbfa1019022f8ec5d3142bfd9541044cf8481f58af4945be9eccced6bfd497
tlaplus/tlapm
fmt.mli
Copyright ( C ) 2011 - 2012 INRIA and Microsoft Corporation open Expr.T val lift_sq : hyp Deque.dq -> expr list * expr -> expr list * expr
null
https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/smt/fmt.mli
ocaml
Copyright ( C ) 2011 - 2012 INRIA and Microsoft Corporation open Expr.T val lift_sq : hyp Deque.dq -> expr list * expr -> expr list * expr
79a5ae6ee6675f58cdbb1617f1aa6f3863805084b19fba9f8182d3a504a6835d
huiyaozheng/Mirage-zmq
unikernel.ml
open Lwt.Infix open Mirage_zmq module Main (S: Mirage_stack_lwt.V4) = struct let start s = let context = Context.create_context () in let module Socket = Socket_tcp (S) in let socket = Socket.create_socket context PAIR in Socket.connect socket "127.0.0.1" 5556 s >>= fun () -> ...
null
https://raw.githubusercontent.com/huiyaozheng/Mirage-zmq/af288a3378a7c357bd5646a3abf4fd5ae777369b/test/PAIR/unikernel2/unikernel.ml
ocaml
open Lwt.Infix open Mirage_zmq module Main (S: Mirage_stack_lwt.V4) = struct let start s = let context = Context.create_context () in let module Socket = Socket_tcp (S) in let socket = Socket.create_socket context PAIR in Socket.connect socket "127.0.0.1" 5556 s >>= fun () -> ...
3e44e99d1c4fb4298c359e80242843f10f470566b3fb6960d4b4e4654ab1f808
erlang/rebar3
bbmustache.erl
2015 All Rights Reserved . %% @doc Binary pattern match Based Mustach template engine for Erlang / OTP . %% %% Please refer to [the man page]() and [the spec]() of mustache as the need arises.<br /> %% %% Please see [this](../benchmarks/README.md) for a list of features that bbmustache supports. %% -module(bbmu...
null
https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/vendor/bbmustache/src/bbmustache.erl
erlang
Please refer to [the man page]() and [the spec]() of mustache as the need arises.<br /> Please see [this](../benchmarks/README.md) for a list of features that bbmustache supports. ---------------------------------------------------------------------------------------------------------------------- Exported API -...
2015 All Rights Reserved . @doc Binary pattern match Based Mustach template engine for Erlang / OTP . -module(bbmustache). -export([ render/2, render/3, parse_binary/1, parse_binary/2, parse_file/1, parse_file/2, compile/2, compile/3, ...
95818f225070895eb77d286f3f1b2287d2dead51ecdb2affea20faf2adc28229
helium/blockchain-etl
be_db_stats.erl
-module(be_db_stats). -include("be_db_worker.hrl"). -include("be_db_follower.hrl"). -beheviour(bh_db_worker). -behavior(be_db_follower). be_db_worker -export([prepare_conn/1]). be_block_handler -export([init/1, load_block/6]). -record(state, { stats = #{} :: #{Name :: binary() => Value :: integer()} }). %...
null
https://raw.githubusercontent.com/helium/blockchain-etl/06dd1e23584366f9243e4fbb68666a5685dd5efd/src/be_db_stats.erl
erlang
%% % be_db_worker %% We still just go ask the source for the actual value We just go ask the source for the actual value on every block since status is updated async We still just go ask the source for the actual value We still just go ask the source for the actual value We still just go ask the source for t...
-module(be_db_stats). -include("be_db_worker.hrl"). -include("be_db_follower.hrl"). -beheviour(bh_db_worker). -behavior(be_db_follower). be_db_worker -export([prepare_conn/1]). be_block_handler -export([init/1, load_block/6]). -record(state, { stats = #{} :: #{Name :: binary() => Value :: integer()} }). ...
0fa1ea455f49e01c19f4f9bcb0e8d6993bb971029adc1b1f5a876856a862c70b
ocaml/dune
ocamlc_loc.mli
[@@@alert unstable "The API of this library is not stable and may change without notice."] type code = { code : int ; name : string } type source = | Code of code | Alert of string type lines = | Single of int | Range of int * int type loc = { chars : (int * int) option ; lines : lines ; path : ...
null
https://raw.githubusercontent.com/ocaml/dune/09d807e197fb187d16cdcfdf8da3eb2a78017389/otherlibs/ocamlc_loc/src/ocamlc_loc.mli
ocaml
[@@@alert unstable "The API of this library is not stable and may change without notice."] type code = { code : int ; name : string } type source = | Code of code | Alert of string type lines = | Single of int | Range of int * int type loc = { chars : (int * int) option ; lines : lines ; path : ...
fd7829cd868ead2ecccfacf8b02b548b44ade0d6daadd0ee36209122d054ee81
cstoner/ergo
sgf.ml
open OUnit;; open SgfUtil;; (****************************************************************************) (* I should really move this file handling shit to another file... *) (****************************************************************************) let rec full_path_of_str str = let length = String.length str...
null
https://raw.githubusercontent.com/cstoner/ergo/f0620e8272c6a113b4881fb000ebf92aa0dccefa/src/sgf/sgf.ml
ocaml
************************************************************************** I should really move this file handling shit to another file... ************************************************************************** I need to add a 'search known directories' option here ***********************************************...
open OUnit;; open SgfUtil;; let rec full_path_of_str str = let length = String.length str in let dir_name = Filename.dirname str in if (String.compare Filename.current_dir_name dir_name)=0 then ((Sys.getcwd()) ^ (String.sub str 1 length)) else if (String.compare Filename.parent_dir_name dir_name...
1c532bc2e6ebab86d96cc9dc6d9d2c4e2b4ba5e00e8b8f19a2eeff733e2efebf
cedlemo/OCaml-GObject-Introspection
Signal_info.mli
* Copyright 2017 - 2019 , * This file is part of OCaml - GObject - Introspection . * * OCaml - GObject - Introspection is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 o...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GObject-Introspection/261c76d9e5d90f706edff1121a63bf5eb611399b/lib/Signal_info.mli
ocaml
* Signal_info — Struct representing a signal. * Obtain if the returning true in the signal handler will stop the emission of the signal. * Obtain the flags for this signal info. See GSignalFlags for more information about possible flag values. * Add unref of the C underlying structure whith Gc.finalise. * R...
* Copyright 2017 - 2019 , * This file is part of OCaml - GObject - Introspection . * * OCaml - GObject - Introspection is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 o...
4e3730a5162325d534cc6e0a3ea5764c40887e4419701eec68b412ddaaf00d83
akabe/ocaml-jupyter
test_message_channel.ml
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 2017 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 limitat...
null
https://raw.githubusercontent.com/akabe/ocaml-jupyter/7ea00fde81a915ee9d86c979f295f4c5dac28db8/tests/kernel/test_message_channel.ml
ocaml
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 2017 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 limitat...
05d0a5525ee40688975c8052254685f01afc5fbf2631fdfd0b2162b54c63155d
ocaml/oasis-db
REST.ml
open OASISVersion open Lwt open Sexplib open RESTConv open RESTGettext (** An API call cannot be associated with a path *) exception NoDefaultPath type mkd = string type string_uri = string type string_data = string type path_atom = string type path = RESTConv.fmt * (path_atom list) type status = New | Standard | D...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/rest/REST.ml
ocaml
* An API call cannot be associated with a path Versions that apply * Create an API call and check it is not a duplicate of others * already defined API call
open OASISVersion open Lwt open Sexplib open RESTConv open RESTGettext exception NoDefaultPath type mkd = string type string_uri = string type string_data = string type path_atom = string type path = RESTConv.fmt * (path_atom list) type status = New | Standard | Deprecated type section_t = { sct_title: s...
78beac9fd9fdcf035eb96a76460924c4fa49c7e74a2f52dee0e6e4590d61864f
jgpc42/jmh-clojure
core.clj
(ns demo.core) (defn index ^Character [^String s ^long idx] (.charAt s idx)) (def not-a-fn 42) (def tuple vector) (def unbound) (defn vararg [x & xs] (list* x xs))
null
https://raw.githubusercontent.com/jgpc42/jmh-clojure/78f6ebcd59d782b0ca3b4f04d15a037657b87304/dev-resources/demo/core.clj
clojure
(ns demo.core) (defn index ^Character [^String s ^long idx] (.charAt s idx)) (def not-a-fn 42) (def tuple vector) (def unbound) (defn vararg [x & xs] (list* x xs))
4e1bf4d3bcf33b4b5d0c88f3de3b4977caf8fd506559dc858ee79bae78e049c7
input-output-hk/cardano-ledger
Utxo.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVari...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/b9aa1ad1728c0ceeca62657ec94d6d099896c052/eras/shelley/impl/src/Cardano/Ledger/Shelley/Rules/Utxo.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # * Validations The bad transaction inputs transaction's time to live current slot the actual transaction size the minimum fee for this transaction the fee supplied in this transaction the Coin consumed by this transaction the Coin produced by this transac...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplicatio...
17175ce316aa7d14c90a2322e8d2ddfa7863aa964d621e0245f1a16488325c82
TheClimateCorporation/mandoline
shrink.clj
(ns io.mandoline.test.shrink (:use [clojure test]) (:require [io.mandoline :as db] [io.mandoline.slab :as slab] [io.mandoline.slice :as slice] [io.mandoline.test.utils :as test-utils])) (defn shrink-dataset [setup teardown] (test-utils/with-temp-db store-spec setup teardown (let [big-slice (sl...
null
https://raw.githubusercontent.com/TheClimateCorporation/mandoline/fa26162ef0349ecb71be9d27a46652206f5c1b99/src/io/mandoline/test/shrink.clj
clojure
so the versions get different timestamps reading stuff
(ns io.mandoline.test.shrink (:use [clojure test]) (:require [io.mandoline :as db] [io.mandoline.slab :as slab] [io.mandoline.slice :as slice] [io.mandoline.test.utils :as test-utils])) (defn shrink-dataset [setup teardown] (test-utils/with-temp-db store-spec setup teardown (let [big-slice (sl...
e54bc462ada52bacfc781fc5dd12e2989e965fbe100b52e6b052d1988efdbd76
mflatt/shrubbery-rhombus-0
transformer.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) syntax/parse "syntax-local.rkt" "private/transform.rkt" "hier-name-parse.rkt" "name-root.rkt" "private/name-path-op.rkt" "private/check.rkt") ;; Degenerate variant of enf...
null
https://raw.githubusercontent.com/mflatt/shrubbery-rhombus-0/39246345d64fe992b1739f03698a4b34c282223b/enforest/transformer.rkt
racket
Degenerate variant of enforestation with only prefix operators that must consume the full group
#lang racket/base (require (for-syntax racket/base syntax/parse) syntax/parse "syntax-local.rkt" "private/transform.rkt" "hier-name-parse.rkt" "name-root.rkt" "private/name-path-op.rkt" "private/check.rkt") (provide transformer? ...
48d8a33e06bddf28443ed0fe042da536dc1c539fcf089bb133813f13748253b4
halturin/erlang-llsn
llsn.erl
Erlang support for LLSN - Allyst 's data interchange format . LLSN specification / %% %% 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 ...
null
https://raw.githubusercontent.com/halturin/erlang-llsn/b33182783091f61a59e1d8d082fc12124faaf6af/src/llsn.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Erlang support for LLSN - Allyst 's data interchange format . LLSN specification / in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDE...
85052faac208f41b22fc3fb0dac532cf7839dcac01c0129f1fbaf62f4ac3cbac
lwhjp/ecmascript
object.rkt
#lang racket/base (require "private/object.rkt") (provide Object? get-property-value has-property? set-property-value! can-set-property? delete-property!)
null
https://raw.githubusercontent.com/lwhjp/ecmascript/69fcfa42856ea799ff9d9d63a60eaf1b1783fe50/object.rkt
racket
#lang racket/base (require "private/object.rkt") (provide Object? get-property-value has-property? set-property-value! can-set-property? delete-property!)
d3143fef289964a6098e03689cc5c0c8a400b3fed3f9e239fada51ed9424eb67
Disco-Dave/message-db
Message.hs
module MessageDb.Message ( MessageId (..) , newMessageId , MessageType (..) , messageTypeOf , StreamPosition (..) , GlobalPosition (..) , CreatedAt (..) , Payload (..) , nullPayload , parsePayload , Metadata (..) , nullMetadata , parseMetadata , Message (..) , ParseMessageFailure (..) , ...
null
https://raw.githubusercontent.com/Disco-Dave/message-db/b272c1648587046657e778685518a79f27c9f793/message-db/src/MessageDb/Message.hs
haskell
* JSON Helpers * Message Id | Unique id of a message. Most be unique across the entire event store. | Create a new unique message id. * Message Type | The type of a message. You can use this later to determine what kind of event or command a message is. * Stream Position | Position within a stream. This starts ...
module MessageDb.Message ( MessageId (..) , newMessageId , MessageType (..) , messageTypeOf , StreamPosition (..) , GlobalPosition (..) , CreatedAt (..) , Payload (..) , nullPayload , parsePayload , Metadata (..) , nullMetadata , parseMetadata , Message (..) , ParseMessageFailure (..) , ...
a9dc4fb88d084e43bc09aeb787e9f2be21f31c95dbc5b8efd8041612946c2fbb
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Numeral.RO.Corpus ( corpus ) where import Data.Stri...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/RO/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Numeral.RO.Corpus ( corpus ) where import Data.String import Prelude import Duckling.Locale import Duckling.Numeral.Types import Duckling.Resolve import Duckling.Testing.Types context :: Context context = testContext {locale = makeLocale RO No...
e9c4da33954cdc47c57962f45a914bdc4aba4204a1ab6562d1a4ff4781074373
qitab/cl-protobufs
math-test.lisp
Copyright 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . (defpackage #:cl-protobufs.math-test (:use #:cl #:ace.test #:cl-protobufs #:cl-protobufs.math #:cl-protobufs.math-example)) (in-packag...
null
https://raw.githubusercontent.com/qitab/cl-protobufs/f341d49b7f0982b66c233516433f106c948cde23/example/math-test.lisp
lisp
license that can be found in the LICENSE file or at . Create a response object and serialize it. Clear the response proto object and serialize the result. Serializing an empty object gives an empty vector. Finally deserialize the response and assert its field is the same as when we started.
Copyright 2020 Google LLC Use of this source code is governed by an MIT - style (defpackage #:cl-protobufs.math-test (:use #:cl #:ace.test #:cl-protobufs #:cl-protobufs.math #:cl-protobufs.math-example)) (in-package #:cl-protobufs.math-test) (deftest test-add-two-numbers () (l...
ab277b18f2b715b4e2ac8ca6cceb3a17ceaf88dfd625415e3709a4d112849032
elaforge/karya
KendangTunggal.hs
Copyright 2016 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt {-# LANGUAGE RecordWildCards, DeriveFunctor #-} | Realize an abstract solkattu sequence to concrete ' Note 's . module Solkattu.Instrument.KendangTunggal where import qualified Derive....
null
https://raw.githubusercontent.com/elaforge/karya/07bdeac32293a18f9ce982fab18d2802ea26b962/Solkattu/Instrument/KendangTunggal.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt # LANGUAGE RecordWildCards, DeriveFunctor # both left right * strokes | TODO should I make these consistent with 'Strokes'? * Patterns defaultPatternsEmphasis = where Strokes {..} = rnotes
Copyright 2016 | Realize an abstract solkattu sequence to concrete ' Note 's . module Solkattu.Instrument.KendangTunggal where import qualified Derive.Expr as Expr import qualified Derive.Symbols as Symbols import qualified Solkattu.Realize as Realize import qualified Solkattu.S as S import qualified Solkattu.S...
b93f2d345fc1e75e06193e9d2fd0d43b2a438b581835ec4310fb4f06ca2494df
shriram/mystery-languages
conditionals.rkt
#lang mystery-languages/conditionals (TEST (if #t 1 2) 1 1 1)
null
https://raw.githubusercontent.com/shriram/mystery-languages/86f717654c9ff05b7f838ea7ba1e63fb280d9387/documentation-tests/conditionals.rkt
racket
#lang mystery-languages/conditionals (TEST (if #t 1 2) 1 1 1)
0e29f0ef4752d34b5bcfe88bae23466ade913236909d21746618c4bfe910c3c2
nickng/gong
StuffParams.hs
# LANGUAGE MultiParamTypeClasses , TemplateHaskell , ScopedTypeVariables , FlexibleInstances , FlexibleContexts , UndecidableInstances # , TemplateHaskell , ScopedTypeVariables , FlexibleInstances , Flexib...
null
https://raw.githubusercontent.com/nickng/gong/e912d3c900172498190f9953198058b0ebbeb9b4/StuffParams.hs
haskell
Just two things? P(c) Free name/var wrappers -- ---------------------------- Equation System Combinators -- -------------------------------------- Structural Congruence -- P(~c) Open top-level bound names in a list of parallel types -- return is a list of (mc,t) where mc is Nothing if t is closed and Just(...
# LANGUAGE MultiParamTypeClasses , TemplateHaskell , ScopedTypeVariables , FlexibleInstances , FlexibleContexts , UndecidableInstances # , TemplateHaskell , ScopedTypeVariables , FlexibleInstances , Flexib...
59a68292074652f76c95422cb07f5f8c7c1e32cb817d40c06e8df17b0d00fad3
ndmitchell/catch
Val-new.hs
module Val( Val, Vals, valsAnd, valsOr, valsAnds, valsOrs, valsTrue, valsFalse, anyCtor, checkRoot, integrate, differentiate ) where import Yhc.Core import General import Data.List import Data.Maybe import DataRep getCtors :: Core -> CoreDataName -> [CoreCtorName] getCtors core = map c...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/gadget/Val-new.hs
haskell
is a ` subset ` b SHOULD THIS BE MERGE_AND OR MERGE_OR ? is a `subset` b SHOULD THIS BE MERGE_AND OR MERGE_OR ? a `mergeAnd` b = c ------------------------------------------------------------------- properties of normalise, with X as the result: if x is a member, it must not be a subset of any other members ...
module Val( Val, Vals, valsAnd, valsOr, valsAnds, valsOrs, valsTrue, valsFalse, anyCtor, checkRoot, integrate, differentiate ) where import Yhc.Core import General import Data.List import Data.Maybe import DataRep getCtors :: Core -> CoreDataName -> [CoreCtorName] getCtors core = map c...
a0d1c649205175f46fd72963cbbe3fede783fed634222ade9469f91159cbbd92
lillo/compiler-course-unipi
syntax.ml
type unop = | OpNeg type binop = | OpPlus | OpMinus | OpTimes | OpDiv type 'a located = { loc: Lexing.position * Lexing.position; value: 'a } type expr = raw_expr located and raw_expr = | ELiteral of int | EUnOp of unop * expr | EBinOp of expr * binop * expr
null
https://raw.githubusercontent.com/lillo/compiler-course-unipi/2fdb7f9a49eb0abebf11b6903f67c8187df86a93/frontend-material/code/calc-ast-pos/syntax.ml
ocaml
type unop = | OpNeg type binop = | OpPlus | OpMinus | OpTimes | OpDiv type 'a located = { loc: Lexing.position * Lexing.position; value: 'a } type expr = raw_expr located and raw_expr = | ELiteral of int | EUnOp of unop * expr | EBinOp of expr * binop * expr
52c494508cf2da3e181940df5fc8c581a736bc16a96754f5a3f7f3d1efe07a80
RedPRL/redtt
MapAsPersistentTable.ml
module type S = sig type key type 'a t val init : size:int -> 'a t val size : 'a t -> int val get : key -> 'a t -> 'a val set : key -> 'a -> 'a t -> 'a t val mem : key -> 'a t -> bool val remove : key -> 'a t -> 'a t val set_opt : key -> 'a option -> 'a t -> 'a t val find : key -> 'a t -> 'a option...
null
https://raw.githubusercontent.com/RedPRL/redtt/50689559ff970e33013b8cf8a3bbc8be18ec4e09/src/basis/MapAsPersistentTable.ml
ocaml
module type S = sig type key type 'a t val init : size:int -> 'a t val size : 'a t -> int val get : key -> 'a t -> 'a val set : key -> 'a -> 'a t -> 'a t val mem : key -> 'a t -> bool val remove : key -> 'a t -> 'a t val set_opt : key -> 'a option -> 'a t -> 'a t val find : key -> 'a t -> 'a option...
f989b452d0d4e234ac5025488c951a1ccfeb4ec4650b4c7d4e8f7eb71e89fcdb
dnadales/sandbox
ModernFPWithMTL.hs
# LANGUAGE GeneralizedNewtypeDeriving # import Control.Monad.IO.Class import Control.Monad.Trans.Class import Prelude hiding (log) -------------------------------------------------------------------------------- -- The API for cloud files. class Monad m => MonadCloud m ...
null
https://raw.githubusercontent.com/dnadales/sandbox/401c4f0fac5f8044fb6e2e443bacddce6f135b4b/free-monads/src/ModernFPWithMTL.hs
haskell
------------------------------------------------------------------------------ The API for cloud files. ------------------------------------------------------------------------------ The API for logging. ------------------------------------------------------------------------------ The API for REST clients. --------...
# LANGUAGE GeneralizedNewtypeDeriving # import Control.Monad.IO.Class import Control.Monad.Trans.Class import Prelude hiding (log) class Monad m => MonadCloud m where saveFile :: Path -> Bytes -> m () listFiles :: Path -> m [Path] type Bytes = String type Path = S...
868aa9f626859558cf59be4fe85c17d78d93cc9f0d2871b1672580ff956880de
muyinliu/cl-disruptor
utils.lisp
(in-package :disruptor) (defmacro defconstant (name value &optional doc) "Make sure VALUE is evaluated only once \(to appease SBCL)." `(cl:defconstant ,name (if (boundp ',name) (symbol-value ',name) ,value) ,@(when doc (list doc)))) (defmacro with-memory-barrier (&body body) "store-load barrier, `MFENCE` o...
null
https://raw.githubusercontent.com/muyinliu/cl-disruptor/7488b9c23d3ee50a92cd33b500e74eff3f1bcee4/src/utils.lisp
lisp
do nothing do nothing
(in-package :disruptor) (defmacro defconstant (name value &optional doc) "Make sure VALUE is evaluated only once \(to appease SBCL)." `(cl:defconstant ,name (if (boundp ',name) (symbol-value ',name) ,value) ,@(when doc (list doc)))) (defmacro with-memory-barrier (&body body) "store-load barrier, `MFENCE` o...
657f93326ba322b2e9f2f2801072a9396729e778d669d25534b16534f66c98e2
Clozure/ccl-tests
boundp.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jan 14 05:58:01 2003 ;;;; Contains: Tests for BOUNDP (in-package :cl-test) (deftest boundp.error.1 (signals-error (boundp) program-error) t) (deftest boundp.error.2 (signals-error (boundp 'a 'a) program-error) t) (deftest boundp.error.3 (check-type...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/boundp.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for BOUNDP See other tests in cl-symbols.lsp See 11.1.2.1.1
Author : Created : Tue Jan 14 05:58:01 2003 (in-package :cl-test) (deftest boundp.error.1 (signals-error (boundp) program-error) t) (deftest boundp.error.2 (signals-error (boundp 'a 'a) program-error) t) (deftest boundp.error.3 (check-type-error #'boundp #'symbolp) nil) (deftest boundp.error...
8c6cd885bf903307c60440aca0c12e1f0db71c31421cb6837a252906c1992033
Helium4Haskell/helium
PhaseLexer.hs
| Module : PhaseLexer License : GPL Maintainer : Stability : experimental Portability : portable License : GPL Maintainer : Stability : experimental Portability : portable -} module Helium.Main.PhaseLexer(phaseLexer) where import Heliu...
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/Main/PhaseLexer.hs
haskell
Throw away the looks like float warnings between the keywords "module" and "where".
| Module : PhaseLexer License : GPL Maintainer : Stability : experimental Portability : portable License : GPL Maintainer : Stability : experimental Portability : portable -} module Helium.Main.PhaseLexer(phaseLexer) where import Heliu...
de92d1a23a318f0db4138a7def0382ab1e1cdf38cebc250837d8e2d84d75239c
Frama-C/Frama-C-snapshot
register_gui.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/gui_files/register_gui.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
9c96810da41a0dce50886f9ac80f84d53d6ce0d0a02a4372ad66a517fb893826
cch1/http.async.client
headers.clj
;;; Lazy headers. Copyright 2010 Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;;; you may not use this file except in compliance with the License. ;;; You may obtain a copy of the License at ;;; -2.0 ;;; Unless required by applicable law or agreed to in writing, software distributed...
null
https://raw.githubusercontent.com/cch1/http.async.client/a56fd71d96bc6b5133e4eeeff169c4ad89a3f89e/src/clj/http/async/client/headers.clj
clojure
Lazy headers. you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gover...
Copyright 2010 distributed under the License is distributed on an " AS IS " BASIS , (ns http.async.client.headers "Asynchrounous HTTP Client - Clojure - Lazy headers" {:author "Hubert Iwaniuk"} (:import (io.netty.handler.codec.http HttpHeaders) (clojure.lang MapEntry APersistentMap))) (defn-...
4bc194ab0fb0d6630980fcba248ba37312a340f7e93bd90836f95e4a5879e211
pauleve/pint
an_focal.ml
open PintTypes open AutomataNetwork let restrict_conditions ctx conds = let extend a is cond = try if ISet.mem (IMap.find a cond) is then [cond] else [] with Not_found -> List.map (fun i -> IMap.add a i cond) (ISet.elements is) in let extend_conds a is rconds = rconds @ List.flatten (List.map (extend a is)...
null
https://raw.githubusercontent.com/pauleve/pint/7cf943ec60afcf285c368950925fd45f59f66f4a/anlib/an_focal.ml
ocaml
open PintTypes open AutomataNetwork let restrict_conditions ctx conds = let extend a is cond = try if ISet.mem (IMap.find a cond) is then [cond] else [] with Not_found -> List.map (fun i -> IMap.add a i cond) (ISet.elements is) in let extend_conds a is rconds = rconds @ List.flatten (List.map (extend a is)...
4d053e8aea6762183b22f11e822e879898c04ac108c1a9dd6a66b03a7b7df0c0
lpeterse/haskell-mqtt
InterruptibleLock.hs
# LANGUAGE LambdaCase # -------------------------------------------------------------------------------- -- | Module : Control . Concurrent . Copyright : ( c ) 2017 License : MIT -- -- Maintainer : -- Stability : experimental -----------------------------------------------------------...
null
https://raw.githubusercontent.com/lpeterse/haskell-mqtt/dd4eb856edd50439c6e73eda5878a5b6624e3eba/src/Control/Concurrent/InterruptibleLock.hs
haskell
------------------------------------------------------------------------------ | Maintainer : Stability : experimental ------------------------------------------------------------------------------ | A `InterruptibleLock` protects a critical section in a way that another thread can interrupt an ongoing co...
# LANGUAGE LambdaCase # Module : Control . Concurrent . Copyright : ( c ) 2017 License : MIT module Control.Concurrent.InterruptibleLock where import Control.Monad ( void ) import Control.Exception import Control.Concurrent newtype InterruptibleLock = InterruptibleLock (MVar (), MVar Thre...
5a822d75937d54e4e55cc872a95c2f90b43fc5c35aabec5610ede66288adc06d
circuithub/rel8
Opaleye.hs
{-# language TupleSections #-} module Rel8.Query.Opaleye ( fromOpaleye , toOpaleye , mapOpaleye , zipOpaleyeWith , unsafePeekQuery ) where -- base import Control.Applicative ( liftA2 ) import Prelude -- opaleye import qualified Opaleye.Internal.QueryArr as Opaleye import qualified Opaleye.Internal.Tag as...
null
https://raw.githubusercontent.com/circuithub/rel8/ec80d9d0a8e2671b538e586eba48e371c34e6314/src/Rel8/Query/Opaleye.hs
haskell
# language TupleSections # base opaleye rel8 # SOURCE #
module Rel8.Query.Opaleye ( fromOpaleye , toOpaleye , mapOpaleye , zipOpaleyeWith , unsafePeekQuery ) where import Control.Applicative ( liftA2 ) import Prelude import qualified Opaleye.Internal.QueryArr as Opaleye import qualified Opaleye.Internal.Tag as Opaleye fromOpaleye :: Opaleye.Select a -> Que...
77d55ced6346724064f9b20fac7b14bb18b92f850ba62317c2f224b60f00fbf7
dbuenzli/astring
testing.mli
--------------------------------------------------------------------------- Copyright ( c ) 2015 The astring programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (...
null
https://raw.githubusercontent.com/dbuenzli/astring/ec7a266a3a680e5d246689855c639da53d713428/test/testing.mli
ocaml
{1 Value equality and pretty printing} {1 Pretty printers} {1 Logging} {1 Testing scopes} {1 Passing and failing tests} {1 Checking values} {1 Tracing and checking function applications} holds information about the application
--------------------------------------------------------------------------- Copyright ( c ) 2015 The astring programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (...
90f4d4c984d1759125d08294072b5a8a080dd4dc27c83dbef5e27b51d2c563ab
Eduap-com/WordMat
dcopy.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/odepack/src/dcopy.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl2.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 95098eb54f13 2013/04/01 00:45:16 toy $ " " f2cl6.l , v 1d5cbacbb9...
bb006c0b5af9e078c77ec2341313e341bc9feb300af990340cd716e13de0c7c2
PLSysSec/FaCT
header.ml
open Util open Pos open Err open Tast let sprintf = Printf.sprintf let concat = String.concat class headerator (m : fact_module) = object (visit) val mutable _indent : int = -1 val _minfo : module_info = let Module(_,_,minfo) = m in minfo method _prindent n = "\n" ^ (String.make ((_indent ...
null
https://raw.githubusercontent.com/PLSysSec/FaCT/c08b2e00751b28e1f25d031c3afafc544acfb892/src/header.ml
ocaml
open Util open Pos open Err open Tast let sprintf = Printf.sprintf let concat = String.concat class headerator (m : fact_module) = object (visit) val mutable _indent : int = -1 val _minfo : module_info = let Module(_,_,minfo) = m in minfo method _prindent n = "\n" ^ (String.make ((_indent ...
87528ce05a35e0d1087c954a390879a90d60030610575f4023795ba0403094f5
ezyang/reflex-backpack
Base.hs
-- | This module defines 'TriggerEventT', the standard implementation of ' TriggerEvent ' . # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Reflex.TriggerEvent.Base ( T...
null
https://raw.githubusercontent.com/ezyang/reflex-backpack/247898fde872d8909392ebe2539f4623c7449067/host/Reflex/TriggerEvent/Base.hs
haskell
| This module defines 'TriggerEventT', the standard implementation of | A value with which to fire an 'Event', as well as a callback to invoke after its propagation has completed. # INLINABLE getPostBuild # # INLINABLE newEventWithTrigger # be fired.
' TriggerEvent ' . # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module Reflex.TriggerEvent.Base ( TriggerEventT (..) , runTriggerEventT , askEvents , TriggerInvocatio...
8a321dc7d8500e97f9b0c6ab12087b2817ae899515989b1850c51499950c2a85
MiroChiong/excel_reader
excel_sheet.erl
%%%------------------------------------------------------------------- @author ( C ) 2017 , Lilith Games %%% @doc %%% %%% @end Created : 09 . 三月 2017 16:17 %%%------------------------------------------------------------------- -module(excel_sheet). -author(""). -include("excel_reader.hrl"). %% API -export([ne...
null
https://raw.githubusercontent.com/MiroChiong/excel_reader/83ae9524ef9e5da014005a50da1e8e9ce218d533/src/excel_sheet.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API
@author ( C ) 2017 , Lilith Games Created : 09 . 三月 2017 16:17 -module(excel_sheet). -author(""). -include("excel_reader.hrl"). -export([new/1]). new(#xmlElement{attributes = Attrs}) -> {value, #xmlAttribute{value = SheetName}} = lists:keysearch(name, #xmlAttribute.name, Attrs), {value, #xmlAttribute...
957ac46c50a05c604889afb2659db3232d373c9f882736484a72e0bffc5a096b
metosin/reitit
middleware.cljc
(ns reitit.middleware (:require [clojure.pprint :as pprint] [reitit.core :as r] [reitit.exception :as exception] [reitit.impl :as impl])) (defprotocol IntoMiddleware (into-middleware [this data opts])) (defrecord Middleware [name wrap spec]) (defrecord Endpoint [data handler mi...
null
https://raw.githubusercontent.com/metosin/reitit/e5bd1237400dcd25f211fc2999b38e6fe1e9033b/modules/reitit-core/src/reitit/middleware.cljc
clojure
public api
(ns reitit.middleware (:require [clojure.pprint :as pprint] [reitit.core :as r] [reitit.exception :as exception] [reitit.impl :as impl])) (defprotocol IntoMiddleware (into-middleware [this data opts])) (defrecord Middleware [name wrap spec]) (defrecord Endpoint [data handler mi...
1183714817cd4d758d55748447359199c882500cfe889834553fc202e04602d4
halogenandtoast/nhk-reader-haskell
devel.hs
{-# LANGUAGE PackageImports #-} import "NhkReader" Application (develMain) import Prelude (IO) main :: IO () main = develMain
null
https://raw.githubusercontent.com/halogenandtoast/nhk-reader-haskell/de3d26eba65adae372ee91c32299ef55b5024d39/app/devel.hs
haskell
# LANGUAGE PackageImports #
import "NhkReader" Application (develMain) import Prelude (IO) main :: IO () main = develMain
9769e745788cb23d537d38cccfdd69de982e1fc7e891d0c2d17c0693e259bb7c
ocramz/heidi
OneHot.hs
# language DeriveGeneric , FlexibleContexts , ScopedTypeVariables # ----------------------------------------------------------------------------- -- | -- Module : Data.Generics.Encode.OneHot -- Description : Generic 1-hot encoding of enumeration types Copyright : ( c ) ( 2019 - 2020 ) License : ...
null
https://raw.githubusercontent.com/ocramz/heidi/172e4337a1f730c038ba10f48ea6bb3aa8acbf1f/src/Data/Generics/Encode/OneHot.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Generics.Encode.OneHot Description : Generic 1-hot encoding of enumeration types Stability : experimental Generic 1-hot encoding of enumeration types ------------------------------------------------------------...
# language DeriveGeneric , FlexibleContexts , ScopedTypeVariables # Copyright : ( c ) ( 2019 - 2020 ) License : MIT Maintainer : ocramz fripost org Portability : GHC module Data.Generics.Encode.OneHot (OneHot, onehotDim, onehotIx, oneHotV , mkOH) where imp...
a7fcca6bf9ac4cb636d4d45ed61f513af95dd6fd4a4e817c79eaa22127ca6912
ygmpkk/house
Font.hs
----------------------------------------------------------------------------- -- | Module : Graphics . HGL.X11.Font Copyright : ( c ) , 1999 - 2003 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- A...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/HGL/Graphics/HGL/X11/Font.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable A simple graphics library. ---------------------------------------------------------------------------...
Module : Graphics . HGL.X11.Font Copyright : ( c ) , 1999 - 2003 module Graphics.HGL.X11.Font ( createFont , deleteFont ) where import qualified Graphics.X11.Xlib as X import Graphics.HGL.X11.DC import qualified Graphics.HGL.X11.Utilities as Utils Interface createFont :: Point -> Angle -> Bo...
9f6580126cf68f8eea80adb6734e5be50851977435ce5c4013a33e1c4f24ae9f
fcbr/graph-algorithms
degrees.lisp
(in-package #:graph-algorithms) (defun degrees (vertices neighbors-fn) "Given a list of VERTICES and a NEIGHBOR-FN function, returns two functions: one that gives the in degree of a vertex and another that gives the out degree of a vertex." (let ((in-degree (make-hash-table)) (out-degree (make-hash-table))...
null
https://raw.githubusercontent.com/fcbr/graph-algorithms/3d9ea220344c2d10db83b99d0571a95904d5bc9a/degrees.lisp
lisp
(in-package #:graph-algorithms) (defun degrees (vertices neighbors-fn) "Given a list of VERTICES and a NEIGHBOR-FN function, returns two functions: one that gives the in degree of a vertex and another that gives the out degree of a vertex." (let ((in-degree (make-hash-table)) (out-degree (make-hash-table))...
3ac0627dbe1ffad72797b049d396b6ed4f7f0c54fd2723ee3c8bcdb95015988c
arttuka/reagent-material-ui
vertical_shades_outlined.cljs
(ns reagent-mui.icons.vertical-shades-outlined "Imports @mui/icons-material/VerticalShadesOutlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def vertical-...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/vertical_shades_outlined.cljs
clojure
(ns reagent-mui.icons.vertical-shades-outlined "Imports @mui/icons-material/VerticalShadesOutlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def vertical-...
6bac78a8e026159c51ac58621f303554e1200d298864f6a9c49181af72b706d1
fission-codes/fission
Class.hs
module Fission.Web.Server.RecoveryChallenge.Destroyer.Class (Destroyer (..)) where import Database.Esqueleto.Legacy import Fission.Prelude import Fission.Web.Server.Models as Models import Fission.Web.Server.MonadDB.Types class Monad m => Destroyer m where destroyFor...
null
https://raw.githubusercontent.com/fission-codes/fission/ae177407dccc20be67948a901956b99f40d37ac8/fission-web-server/library/Fission/Web/Server/RecoveryChallenge/Destroyer/Class.hs
haskell
module Fission.Web.Server.RecoveryChallenge.Destroyer.Class (Destroyer (..)) where import Database.Esqueleto.Legacy import Fission.Prelude import Fission.Web.Server.Models as Models import Fission.Web.Server.MonadDB.Types class Monad m => Destroyer m where destroyFor...
f52db19227848a94bbf58e6caf8107e8d916839ed33cf352960984e59076f4ae
shirok/Gauche
s32.scm
(define-module srfi.160.s32 (extend gauche.uvector.s32))
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/lib/srfi/160/s32.scm
scheme
(define-module srfi.160.s32 (extend gauche.uvector.s32))
ea8e68352fa517e5fc96e715de2526b9bded6e5b673cc224c15977d1b84847a2
anik545/OwlPPL
ppl.ml
* A shallowly embedded DSL for Probabilistic Programming This is a library for universal probabilistic programming using distributions as monads . Includes several approximate inference algorithms . Contains utilities to plot distributions and evaluate correctness of inference . This is a libr...
null
https://raw.githubusercontent.com/anik545/OwlPPL/ad650219769d5f32564cc771d63c9a52289043a5/ppl/lib/ppl.ml
ocaml
*/* */*
* A shallowly embedded DSL for Probabilistic Programming This is a library for universal probabilistic programming using distributions as monads . Includes several approximate inference algorithms . Contains utilities to plot distributions and evaluate correctness of inference . This is a libr...
b1002b7a78f46dd8a8c14ae4a6dc6f9c210c8a9d710ce7b36b87f6b55579f557
qfpl/reflex-tutorial
Common.hs
{-# LANGUAGE OverloadedStrings #-} module Ex07.Common ( Money , Product (..) , Stock (..) , carrot , celery , cucumber , Inputs(..) , Outputs(..) , Error(..) , errorText , Ex07Fn ) where import Data.Text import Reflex type Money = Int data Product = Product { pName :: Text , pCost ...
null
https://raw.githubusercontent.com/qfpl/reflex-tutorial/07c1e6fab387cbeedd031630ba6a5cd946cc612e/code/exercises/src/Ex07/Common.hs
haskell
# LANGUAGE OverloadedStrings #
module Ex07.Common ( Money , Product (..) , Stock (..) , carrot , celery , cucumber , Inputs(..) , Outputs(..) , Error(..) , errorText , Ex07Fn ) where import Data.Text import Reflex type Money = Int data Product = Product { pName :: Text , pCost :: Money } deriving (Eq, Ord, Sho...
0ea5d8a9eed55b6d905e6e3051f822fab1626b83013d3799d9efd2bd093da9dd
oxidizing/sihl
repo.ml
module Database = Sihl.Database module Cleaner = Sihl.Cleaner module Migration = Sihl.Database.Migration module Model = struct module Data = struct type t = (string * string) list [@@deriving yojson] let to_string data = data |> to_yojson |> Yojson.Safe.to_string let of_string str = str |> Yojson.Safe.f...
null
https://raw.githubusercontent.com/oxidizing/sihl/391d75c28cf8b0c72364896ebdedd8b0a3a7a393/sihl-token/src/repo.ml
ocaml
module Database = Sihl.Database module Cleaner = Sihl.Cleaner module Migration = Sihl.Database.Migration module Model = struct module Data = struct type t = (string * string) list [@@deriving yojson] let to_string data = data |> to_yojson |> Yojson.Safe.to_string let of_string str = str |> Yojson.Safe.f...
7f64d76aee6fea51a737b33c4fc3ed27773b331a687356801a242448a3a5259e
nuprl/gradual-typing-performance
display-break-stuff.rkt
#lang racket/base (require racket/gui racket/class "marks.rkt") (provide display-break-stuff) (define f (new frame% [label (format "Breakpoints Inspector")] [width 400] [height 500])) (define sel (new choice% [label "Breakpoint#"] [choices '()] [parent f] [callback (lambda (c e) (sho...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/stepper/private/display-break-stuff.rkt
racket
we really want one of those nice collapsible syntax-viewer thingies here: here too, though this isn't a syntax object. display-break-stuff : show the information associated with a breakpoint. Useful for people building steppers for new languages
#lang racket/base (require racket/gui racket/class "marks.rkt") (provide display-break-stuff) (define f (new frame% [label (format "Breakpoints Inspector")] [width 400] [height 500])) (define sel (new choice% [label "Breakpoint#"] [choices '()] [parent f] [callback (lambda (c e) (sho...
412251bc387a461ff2bf9a071d7f17d559592d04e42aa0857c0bbd63bf5aff8b
2600hz/kazoo
kz_endpoint_recording.erl
%%%----------------------------------------------------------------------------- ( C ) 2011 - 2020 , 2600Hz %%% @doc 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 /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_endpoint/src/kz_endpoint_recording.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- @doc should recording be started on call TO the endpoint @doc maybe start recording on call made FROM the endpoint
( C ) 2011 - 2020 , 2600Hz 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 /. -module(kz_endpoint_recording). -export([maybe_record_inbound/3 ,maybe_record_outbound/3 ]). -in...
de55d1124cca5d63cad2303634e163f4c663136f09216a440fab782ae0fdded1
owainlewis/ocaml-datastructures-algorithms
splay_tree.ml
module type ORDERED_SET = sig type elem end module SplayTree = struct type elem = int type t = Leaf | Node of t * elem * t type tree = t ref let empty () = ref Leaf let isEmpty t = match !t with Leaf -> true | _ -> false end
null
https://raw.githubusercontent.com/owainlewis/ocaml-datastructures-algorithms/4696fa4f5a015fc18e903b0b9ba2a1a8013a40ce/archive/splay_tree.ml
ocaml
module type ORDERED_SET = sig type elem end module SplayTree = struct type elem = int type t = Leaf | Node of t * elem * t type tree = t ref let empty () = ref Leaf let isEmpty t = match !t with Leaf -> true | _ -> false end
c9e4e17600cbd3eca9aa3b94ce47a5ad5278551f636fc9ced8a621787cb1a128
adaliu-gh/htdp
14-250-252.rkt
;;===================== 250 ;; [Number -> Number] Number -> [List-of Number] ;; tabulates a number (define (tab f n) (cond [(= n 0) (list (f n))] [else (cons (f n) (tab f (sub1 n)))])) ;; Number -> [List-of Number] (define (tab-sqr n) (tab sqrt n)) ;; Number -> [List-of Number] (defin...
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/14-18%20Abstraction/14-250-252.rkt
racket
===================== [Number -> Number] Number -> [List-of Number] tabulates a number Number -> [List-of Number] Number -> [List-of Number] ============== [Number Number -> Number] Number [List-of Number] -> Number [List-of Number] -> Number [List-of Number] -> Number ===================== [Item Item -> Resul...
250 (define (tab f n) (cond [(= n 0) (list (f n))] [else (cons (f n) (tab f (sub1 n)))])) (define (tab-sqr n) (tab sqrt n)) (define (tab-tan n) (tab tan n)) 251 (define (fold f i l) (cond [(empty? l) i] [else (f (first l) (fold f i (rest l)))])) (check-expect ...
0f19556c6016cf1939d22347c7d589e85bd1d95f80a94552cc32527885906b6e
tfausak/rattletrap
Rotation.hs
module Rattletrap.Type.Rotation where import qualified Data.Foldable as Foldable import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.CompressedWordVector as CompressedWordVector import qualified Rattletr...
null
https://raw.githubusercontent.com/tfausak/rattletrap/cc6d6aba923d840f23de7673cab9a043096d3099/src/lib/Rattletrap/Type/Rotation.hs
haskell
module Rattletrap.Type.Rotation where import qualified Data.Foldable as Foldable import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.CompressedWordVector as CompressedWordVector import qualified Rattletr...
59c180ce286ea208657af98b8a146dd701dfcee702daab0e6e8ede729ce6df1a
AndrasKovacs/ELTE-func-lang
Tut10.hs
{-# OPTIONS -Wincomplete-patterns #-} # LANGUAGE InstanceSigs , DeriveFunctor , , DeriveTraversable # -------------------------------------------------------------------------------- import Data.Foldable import Data.Traversable import Control.Monad import Control.Applicative import Data.Char import Debug.Trace ne...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/3ab6368ffbb532abd5fd2030d4c1c5b27bdd98c9/2021-22-1/gyak_3/Tut10.hs
haskell
# OPTIONS -Wincomplete-patterns # ------------------------------------------------------------------------------ The empty parser always fails. If p1 fails, the parser p2 is used instead. The parser `satisfy p` accepts any character that satisfies the predicate p. The parser `char c` recognizes exactly the charac...
# LANGUAGE InstanceSigs , DeriveFunctor , , DeriveTraversable # import Data.Foldable import Data.Traversable import Control.Monad import Control.Applicative import Data.Char import Debug.Trace newtype Parser a = Parser {runParser :: String -> Maybe (a, String)} deriving(Functor) instance Applicative Parser whe...
e158dd5723d4a4bc2d3a1c4aef7374a65cf36ff430aa796670b53316cb45c412
rtoy/ansi-cl-tests
push.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Apr 19 22:05:34 2003 ;;;; Contains: Tests of PUSH (in-package :cl-test) (compile-and-load "cons-aux.lsp") ;;; See also places.lsp (deftest push.1 (let ((x nil)) (push 'a x)) (a)) (deftest push.2 (let ((x 'b)) (push 'a x) (push 'c x)) (c ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/push.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of PUSH See also places.lsp Test that explicit calls to macroexpand in subforms are done in the correct environment Need to add push vs. various accessors
Author : Created : Sat Apr 19 22:05:34 2003 (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest push.1 (let ((x nil)) (push 'a x)) (a)) (deftest push.2 (let ((x 'b)) (push 'a x) (push 'c x)) (c a . b)) (deftest push.3 (let ((x (copy-tree '(a)))) (push x x) (an...
104169e38620ed7795cb2204813e47f55ee4fdc3aab533d65342082dcd0b1e72
kitnil/dotfiles
misc.scm
(use-modules (wigust packages databases) (wigust packages ruby) (gnu packages chromium)) (list emacs-anywhere-mode emacs-atomic-chrome emacs-awk-it emacs-debpaste ;; emacs-eval-in-repl emacs-flyspell-correct emacs-hydra-timestamp emacs-hydra-timestamp emacs-mediawiki emacs-pcre2el emacs-perl-liv...
null
https://raw.githubusercontent.com/kitnil/dotfiles/c247e7a3cab9b7159fad1f37fab6c0e36d0ba21b/dotfiles/manifests/misc.scm
scheme
emacs-eval-in-repl gns3 requirement Guix workflow management ; fails to build Guile static site generator
(use-modules (wigust packages databases) (wigust packages ruby) (gnu packages chromium)) (list emacs-anywhere-mode emacs-atomic-chrome emacs-awk-it emacs-debpaste emacs-flyspell-correct emacs-hydra-timestamp emacs-hydra-timestamp emacs-mediawiki emacs-pcre2el emacs-perl-live emacs-psysh emacs-r...
2a46f160c22212c77aa7d1877b962a9b41d313d925d59e3e6ed76fd8c73478c8
sicmutils/sicmutils
differential_test.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.differential-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [clojure.test.check.generators :as gen] [com.gfredericks.test.chuck.clojure-test :refer [checking]] [same :refer [ish? with-comparator] :include-m...
null
https://raw.githubusercontent.com/sicmutils/sicmutils/f181f153f1432e9648206f903282e7cb4cdd9644/test/sicmutils/differential_test.cljc
clojure
friends. Once we implement `v/<` we can duplicate this test for those overridden versions, which should piggyback on compare. this can be used for control with specified tag attempting to limit to a region where we avoid the infinities at multiples of pi/2 (other than 0).
#_"SPDX-License-Identifier: GPL-3.0" (ns sicmutils.differential-test (:require [clojure.test :refer [is deftest testing use-fixtures]] [clojure.test.check.generators :as gen] [com.gfredericks.test.chuck.clojure-test :refer [checking]] [same :refer [ish? with-comparator] :include-m...
bebf68eb7775b56488cc0b926ce0d5d302236bbea79ee08a47bf936ff0b50702
Nike-Inc/bartlett
Parsers.hs
| Module : Parsers Description : Parsers used to extract command line options at invocation Copyright : ( c ) Nike , Inc. , 2016 - present License : : Stability : stable used to extract command line options at invocation . Module : Parsers Description : Parsers used to extrac...
null
https://raw.githubusercontent.com/Nike-Inc/bartlett/b8874ae5b1c3867672956936c3f90a6237404b85/src/Bartlett/Parsers.hs
haskell
| Parse a command line option as a "URIRef" | Wrap parsers with doc strings and metadata. | Parse a version flag. | Parse a credentials flag. | Parse a 'Profile'. | Parse a 'Username'. | Parse a set of job parameters. | Parse a path to the config file to update. | Parse whether we should delete the given resou...
| Module : Parsers Description : Parsers used to extract command line options at invocation Copyright : ( c ) Nike , Inc. , 2016 - present License : : Stability : stable used to extract command line options at invocation . Module : Parsers Description : Parsers used to extrac...
11b4a000d16d976aaee56352cfce1ba007e14569ddd37499f579cfbe5e292e23
samth/fancy-app
info.rkt
#lang info (define collection "fancy-app") (define version "1.1") (define scribblings '(("main.scrbl" () (library) "fancy-app"))) (define deps '("base")) (define build-deps '("rackunit-lib" "racket-doc" "scribble-lib"))
null
https://raw.githubusercontent.com/samth/fancy-app/f451852164ee67e3e122f25b4bce45001a557045/info.rkt
racket
#lang info (define collection "fancy-app") (define version "1.1") (define scribblings '(("main.scrbl" () (library) "fancy-app"))) (define deps '("base")) (define build-deps '("rackunit-lib" "racket-doc" "scribble-lib"))
ad1529c7b22cf7dc68bcc44cbf2b1ca04ebffa27adff63aae91efbb3fd14906c
haskell/cabal
CabalLanguage.hs
# LANGUAGE CPP # {-# OPTIONS_GHC -freduction-depth=0 #-} # OPTIONS_GHC -fno - warn - orphans # module Data.TreeDiff.Instances.CabalLanguage () where import Data.TreeDiff import Language.Haskell.Extension (Extension, KnownExtension, Language) -- These are big enums, so they are in separate file. -- instance ToExpr Ext...
null
https://raw.githubusercontent.com/haskell/cabal/f72c86e4bee4fcfb26b593152e4200c5364854dd/Cabal-tree-diff/src/Data/TreeDiff/Instances/CabalLanguage.hs
haskell
# OPTIONS_GHC -freduction-depth=0 # These are big enums, so they are in separate file.
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - orphans # module Data.TreeDiff.Instances.CabalLanguage () where import Data.TreeDiff import Language.Haskell.Extension (Extension, KnownExtension, Language) instance ToExpr Extension instance ToExpr KnownExtension instance ToExpr Language
47d778e565e60b9602fe5341834f1522f55801328262026665b1b56668f7520a
lambdacube3d/lambdacube-workshop
Asteroids02.hs
# LANGUAGE LambdaCase , OverloadedStrings , RecordWildCards # import Control.Monad import System.IO import System.Directory import Data.Vect import Graphics.UI.GLFW as GLFW import LambdaCube.Compiler as LambdaCube -- compiler import LambdaCube.GL as LambdaCubeGL -- renderer import qualified LambdaCube.OBJ as OBJ imp...
null
https://raw.githubusercontent.com/lambdacube3d/lambdacube-workshop/3d40c91811d0aaf9fa57c3b8eb4a3f1bde0e3173/asteroids/stages/Asteroids02.hs
haskell
compiler renderer setup render data load OBJ geometry and material descriptions load materials textures check schema compatibility update graphics input render
# LANGUAGE LambdaCase , OverloadedStrings , RecordWildCards # import Control.Monad import System.IO import System.Directory import Data.Vect import Graphics.UI.GLFW as GLFW import qualified LambdaCube.OBJ as OBJ import Logic asteroidsModificationTime = getModificationTime "Asteroids.lc" main :: IO () main = do ...
f062c88ea0a9e94854667725e4200e76e7bc3b3ce612e11fc68f356dfcc6c2b4
typedclojure/typedclojure
test_utils.clj
(ns typed.clj.checker.test-utils (:require [clojure.core.typed :as t] [clojure.core.typed.current-impl :as impl] [clojure.core.typed.errors :as err] [clojure.core.typed.load :as load] [clojure.set :as set] [clojure.test :as test :refer [is]] [typ...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/a60a354e2da1daa8a3407f66474c6ddee17928e4/typed/clj.checker/src/typed/clj/checker/test_utils.clj
clojure
return type for an expression f Aliases used in unit tests
(ns typed.clj.checker.test-utils (:require [clojure.core.typed :as t] [clojure.core.typed.current-impl :as impl] [clojure.core.typed.errors :as err] [clojure.core.typed.load :as load] [clojure.set :as set] [clojure.test :as test :refer [is]] [typ...
d37c9e77a7535bb3f6e1084202ae64eaaacb45afdb4967c20d05b47a8ccb819c
DSiSc/why3
strategy.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/session/strategy.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception * { 2 User - defined strategies } type instruction = type t = instruction array
98b2dc2250e64482670ec6dc56d8f847aa2673dc066619723fb1e1afd64a79b1
Rotaerk/vulkanTest
Main.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # module Main wher...
null
https://raw.githubusercontent.com/Rotaerk/vulkanTest/228007f3f56ce4200f9fe841ac85292cae044c97/vulkan-tutorial/main/src/Main.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE RankNTypes # Before initializing, probably should setErrorCallback Problem: It seems less than ideal to force all the pipelines to be destroyed together. 100 milliseconds
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # module Main where import Prelude hiding (init) import qualified Codec.Picture a...
74059df76251f783b4b3325b8f69c03bb44d7c89bbc6bd0cdce72fac4d5e8d36
lambdaisland/metabase-datomic
setup.clj
(ns user.setup (:require [toucan.db :as db] [metabase.setup :as setup] [metabase.models.user :as user :refer [User]] [metabase.models.database :as database :refer [Database]] [metabase.models.field :as field :refer [Field]] [metabase.models.table :as table :...
null
https://raw.githubusercontent.com/lambdaisland/metabase-datomic/7506e67bb5fe2ba0a2ff744ec17ccdeb573e869e/dev/user/setup.clj
clojure
(ns user.setup (:require [toucan.db :as db] [metabase.setup :as setup] [metabase.models.user :as user :refer [User]] [metabase.models.database :as database :refer [Database]] [metabase.models.field :as field :refer [Field]] [metabase.models.table :as table :...