_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
02e81ba0e1e5f8be588d73fb9d099e367360da19aaf5b452787203ced0ecf875
vbrankov/hdf5-ocaml
h5_raw.mli
module Time : sig type t = int64 end module Addr : sig type t = int end module Iter_order : sig type t = | INC | DEC | NATIVE | N end module Iter : sig type t = | CONT | STOP end module Index : sig type t = | NAME | CRT_ORDER | N end module Ih_info : sig type t = { index_size : in...
null
https://raw.githubusercontent.com/vbrankov/hdf5-ocaml/7abc763189767cd6c92620f29ce98f6ee23ba88f/src/raw/h5_raw.mli
ocaml
module Time : sig type t = int64 end module Addr : sig type t = int end module Iter_order : sig type t = | INC | DEC | NATIVE | N end module Iter : sig type t = | CONT | STOP end module Index : sig type t = | NAME | CRT_ORDER | N end module Ih_info : sig type t = { index_size : in...
9f36899e8cb0f3af9f02699a8b31c9104edcbed92eed32a39ba8ac1e12207d61
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.AmountOfMoney.EN.JM.Corpus ( allExamples , negativeEx...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/AmountOfMoney/EN/JM/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.AmountOfMoney.EN.JM.Corpus ( allExamples , negativeExamples ) where import Data.String import Data.Text (Text) import Prelude import Duckling.AmountOfMoney.Types import Duckling.Testing.Types allExamples :: [Example] allExamples = concat [ ...
b0581d5910f7edf1d31e9a0e5ad572b304cd740c0dbbd8fd815880861003ea26
j-mie6/ParsleyHaskell
Parser.hs
# LANGUAGE CPP # {-# LANGUAGE TemplateHaskellQuotes #-} {-# LANGUAGE DeriveLift #-} # LANGUAGE StandaloneDeriving # # LANGUAGE PatternSynonyms # {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-} {-# HLINT ignore "Redundant bracket" #-} module JavascriptBench.Parsley.Parser where import Prelude hiding (fmap, pure, (<*), (*...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/c05b13ea4f6e73a309cc66034667c6d23745d8f3/parsley/benchmarks/JavascriptBench/Parsley/Parser.hs
haskell
# LANGUAGE TemplateHaskellQuotes # # LANGUAGE DeriveLift # # OPTIONS_GHC -Wno-unrecognised-pragmas # # HLINT ignore "Redundant bracket" # Nonsense to deal with floats and ints Let bindings error "numeric escape codes not supported"
# LANGUAGE CPP # # LANGUAGE StandaloneDeriving # # LANGUAGE PatternSynonyms # module JavascriptBench.Parsley.Parser where import Prelude hiding (fmap, pure, (<*), (*>), (<*>), (<$>), (<$), pred) import Parsley import Parsley.Char (token, oneOf, noneOf, digit) import Parsley.Combinator (eof) import Parsley.Fold (skipMa...
9fb90f4dcc1cc77065e2b21b783522bccd7677bad0c4f70a001f67806614cf0e
Bogdanp/aoc2020
day17-1.rkt
#lang racket/base (require racket/match racket/port) (struct pos (x y z) #:transparent) (define cubes (call-with-input-file "input17.txt" (lambda (in) (for*/hash ([(l y) (in-indexed (port->lines in))] [(c x) (in-indexed l)]) (values (pos x y 0) (char=? c #\#)))))) (def...
null
https://raw.githubusercontent.com/Bogdanp/aoc2020/4021ed7a85eb58f655f38a9069656d64aaaa2ace/day17-1.rkt
racket
#lang racket/base (require racket/match racket/port) (struct pos (x y z) #:transparent) (define cubes (call-with-input-file "input17.txt" (lambda (in) (for*/hash ([(l y) (in-indexed (port->lines in))] [(c x) (in-indexed l)]) (values (pos x y 0) (char=? c #\#)))))) (def...
9804a49826a57c9651a863467ffd731d280a78ee68587c90f91f9da334a27e98
bozsahin/yalalr
yalalr.lisp
;;;; ============================================================================ = = The interface to the LALR parser of = = -cem bozsahin , 2017 - 2019 , Ankara ;;;; ============================================================================ (defparameter *ENDMARKER* '$) ; these are the globals of the l...
null
https://raw.githubusercontent.com/bozsahin/yalalr/ebf7a3d388e889c101eb4bed9690acb7cb236cf7/bin/yalalr.lisp
lisp
============================================================================ ============================================================================ these are the globals of the lalrparser.lisp the lexer function to call lalrparser.lisp is not publicized as a package so we need to recreate but parse function...
= = The interface to the LALR parser of = = -cem bozsahin , 2017 - 2019 , Ankara (defparameter grammar nil) (defparameter lexforms nil) (defparameter lexicon nil) (defun which-yalalr () "yalalr, version 2.0") (defun welcome() (format t "~%===================================================") (form...
4c36fe3a9ad5064267c5547f1095b094d44a446c33cbae398106fe321c5c76ef
semerdzhiev/fp-2020-21
09.graphs.rkt
#lang racket ще означава списък от двойки ( ребра ) например ' ( ( 1 . 2 ) ( 2 . 3 ) ( 2 . 5 ) ( 2 . 4 ) ( 4 . 3 ) ( 5 . 4 ) ) (define g '((1 . 2) (2 . 3) (2 . 5) (2 . 4) (4 . 3) (5 . 4))) търсим входна степен на колко ребра влизат в него (define (in-degree g v) (length (filter (lambda (x) (= (cdr x) v...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-b/class/09.graphs.rkt
racket
( ) 1 2 3 4 5 1 2 3 4 2 3 4 5 zip (zip '() '(1 2 3)) -> '() искаме най-късият (прост) път между два дадени върха
#lang racket ще означава списък от двойки ( ребра ) например ' ( ( 1 . 2 ) ( 2 . 3 ) ( 2 . 5 ) ( 2 . 4 ) ( 4 . 3 ) ( 5 . 4 ) ) (define g '((1 . 2) (2 . 3) (2 . 5) (2 . 4) (4 . 3) (5 . 4))) търсим входна степен на колко ребра влизат в него (define (in-degree g v) (length (filter (lambda (x) (= (cdr x) v...
f5f3d92079f5900a85e4f709455651788db53b8dc0af2489045726db227acf1a
lipas-liikuntapaikat/lipas
events.cljs
(ns lipas.ui.events (:require [lipas.i18n.core :as i18n] [lipas.ui.db :as db] [lipas.ui.search.db :as search-db] [lipas.ui.routes :as routes] [lipas.ui.utils :as utils :refer [==>]] [re-frame.core :as re-frame] [reitit.frontend.controllers :as rfc])) (re-frame/reg-event-fx ::initialize-db [(re...
null
https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/779934b723ec1e0cf52d6a7778b0b7e9f5d15c6b/webapp/src/cljs/lipas/ui/events.cljs
clojure
(ns lipas.ui.events (:require [lipas.i18n.core :as i18n] [lipas.ui.db :as db] [lipas.ui.search.db :as search-db] [lipas.ui.routes :as routes] [lipas.ui.utils :as utils :refer [==>]] [re-frame.core :as re-frame] [reitit.frontend.controllers :as rfc])) (re-frame/reg-event-fx ::initialize-db [(re...
69312a3d448c1c7443e8e03d3383f3d352a9ed6c66ecfd2bd3e749252318b21e
flyspeck/flyspeck
lpproc.ml
(* ========================================================================== *) FLYSPECK - BOOK FORMALIZATION (* *) (* Lemma: Easy Linear Programs *) Chapter : Author :...
null
https://raw.githubusercontent.com/flyspeck/flyspeck/05bd66666b4b641f49e5131a37830f4881f39db9/formal_lp/glpk/lpproc.ml
ocaml
========================================================================== Lemma: Easy Linear Programs ========================================================================== Update: 2011-5-9, This has been added to the project a...
FLYSPECK - BOOK FORMALIZATION Chapter : Author : Date : 2009 - 06 - 25 This file treats all but a few " hard " cases ( ) . needs new mktop on platforms that do not su...
4c567271f52e65660d14397c0b95a449df03aa81cd950f9a91bf6d65c2e3dd4c
kowainik/relude
Property.hs
module Test.Relude.Property ( hedgehogTestList ) where import Relude import Data.List (nub) import Hedgehog (Group (..), Property, assert, forAll, property, (===)) import Test.Relude.Container.One (oneProps) import Test.Relude.Gen (genBoolList, genIntList, genUtf8ByteString, genUtf8String, genUtf8Text)...
null
https://raw.githubusercontent.com/kowainik/relude/f57234d406fca584807ad8c94f9db7f00f9d547e/test/Test/Relude/Property.hs
haskell
-------------------------------------------------------------------------- utf8 conversion -------------------------------------------------------------------------- > True -------------------------------------------------------------------------- ordNub --------------------------------------------------------------...
module Test.Relude.Property ( hedgehogTestList ) where import Relude import Data.List (nub) import Hedgehog (Group (..), Property, assert, forAll, property, (===)) import Test.Relude.Container.One (oneProps) import Test.Relude.Gen (genBoolList, genIntList, genUtf8ByteString, genUtf8String, genUtf8Text)...
94886bcfcd441c27763fbbc1f7dca72c9146ed653c82f804bb615886f1da701a
40ants/barista
notify.lisp
(defpackage #:barista/notify (:use #:cl) (:import-from #:cl-fad #:list-directory) (:import-from #:function-cache #:defcached) (:import-from #:alexandria #:make-keyword) (:import-from #:fmt #:fmt) (:import-from #:bordeaux-threads) (:export #:n...
null
https://raw.githubusercontent.com/40ants/barista/437979f4d7c1a98c41895254f3131bba46262a70/notify.lisp
lisp
(defpackage #:barista/notify (:use #:cl) (:import-from #:cl-fad #:list-directory) (:import-from #:function-cache #:defcached) (:import-from #:alexandria #:make-keyword) (:import-from #:fmt #:fmt) (:import-from #:bordeaux-threads) (:export #:n...
cfd40dc97f372646e88d91f144a4b385284a6f27ef154896b584200a4e050d06
ijvcms/chuanqi_dev
rfc4627.erl
JSON - RFC 4627 - for Erlang %%--------------------------------------------------------------------------- @author < > @author LShift Ltd. < > 2007 - 2010 , 2011 , 2012 and 2007 - 2010 LShift Ltd. @license %% %% Permission is hereby granted, free of charge, to any person %% obtaining a copy of this...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/system/misc/rfc4627/rfc4627.erl
erlang
--------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, a...
JSON - RFC 4627 - for Erlang @author < > @author LShift Ltd. < > 2007 - 2010 , 2011 , 2012 and 2007 - 2010 LShift Ltd. @license files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial po...
fffdf41db00d8bb97cb04f379ff1f19becc8f2246c9cbdf2d20b4ba332b3806a
crategus/cl-cffi-gtk
expander.lisp
;;;; Example Expander - 2021-12-7 ;;;; GtkExpander allows to provide additional content that is initially hidden . ;;;; This is also known as "disclosure triangle". This example also shows how ;;;; to make the window resizable only if the expander is expanded. (in-package :gtk-example) (defun create-expander-dialog...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/demo/gtk-example/expander.lisp
lisp
Example Expander - 2021-12-7 This is also known as "disclosure triangle". This example also shows how to make the window resizable only if the expander is expanded. Run the message dialog Destroy the message dialog
GtkExpander allows to provide additional content that is initially hidden . (in-package :gtk-example) (defun create-expander-dialog () (let* ((dialog (make-instance 'gtk-message-dialog :message-type :info :buttons :close ...
6d5687770cf8dfbc31422300c7f1b2ed44aad66290b37c88c9023021d89b213d
cl21/cl21
core.lisp
(in-package :cl-user) (defpackage cl21.core (:use :cl) (:shadow :function :destructuring-bind :defconstant :remf) (:import-from :cl21.core.hash-table :abstract-hash-table :abstract-remhash) (:import-from :cl21.core.cons :maptree) ...
null
https://raw.githubusercontent.com/cl21/cl21/c36644f3b6ea4975174c8ce72de43a4524dd0696/src/core.lisp
lisp
Data and Control Flow Iteration Printer Though this is deprecated, commonly used without cl: prefix. Environment misc concatenating all sub-packages into cl21 -> bob 5 7 -> B
(in-package :cl-user) (defpackage cl21.core (:use :cl) (:shadow :function :destructuring-bind :defconstant :remf) (:import-from :cl21.core.hash-table :abstract-hash-table :abstract-remhash) (:import-from :cl21.core.cons :maptree) ...
11ae259ae502d44e4e925ca081accb52e8ace0f14e5fd232e72bbbd854a37695
oscaro/clj-gcloud-common
dsl.clj
(ns clj-gcloud.dsl (:import (com.google.api.client.json JsonFactory) (com.google.api.client.json.jackson2 JacksonFactory) (com.google.common.base CaseFormat Converter) (java.lang.reflect Method) (java.util EnumSet))) (def ^:private ^Converter lh->lc (.converterTo CaseFormat/LOWER_HYPHEN CaseFormat/L...
null
https://raw.githubusercontent.com/oscaro/clj-gcloud-common/292538ba0c6f014d096db86086febfa03c2aa072/src/clj_gcloud/dsl.clj
clojure
only apply to maps
(ns clj-gcloud.dsl (:import (com.google.api.client.json JsonFactory) (com.google.api.client.json.jackson2 JacksonFactory) (com.google.common.base CaseFormat Converter) (java.lang.reflect Method) (java.util EnumSet))) (def ^:private ^Converter lh->lc (.converterTo CaseFormat/LOWER_HYPHEN CaseFormat/L...
daf429044da08ae23d2f1af04b6a1530c35e446cec35ce083edcac5f5396da90
postspectacular/devart-codefactory
svg.clj
(ns codefactory.exhibit.svg (:require [hiccup.core :refer [html]] [hiccup.def :refer [defelem]])) (defn ->xml [dom] (html dom)) (defelem svg [body] [:svg {"xmlns" "" "version" "1.0"} body]) (defelem path [points] (let [coords (mapv (fn [[x y]] (format "%1.5f,%1.5f" (double x) (double y)...
null
https://raw.githubusercontent.com/postspectacular/devart-codefactory/9bccdc10e58fa4861a69767e9ae4be0bb8d7f650/src-fabricate/src/codefactory/exhibit/svg.clj
clojure
(ns codefactory.exhibit.svg (:require [hiccup.core :refer [html]] [hiccup.def :refer [defelem]])) (defn ->xml [dom] (html dom)) (defelem svg [body] [:svg {"xmlns" "" "version" "1.0"} body]) (defelem path [points] (let [coords (mapv (fn [[x y]] (format "%1.5f,%1.5f" (double x) (double y)...
90031f8856d643b8491ed538e9fd2a56788891d12960d664d791677da92a4272
silverbullettt/SICP
stream.rkt
(define-syntax cons-stream (syntax-rules () ((cons-stream obj strm) (cons obj (delay strm))))) (define (stream-car strm) (car strm)) (define (stream-cdr strm) (force (cdr strm))) (define the-empty-stream '()) (define stream-null? null?) (define (stream-ref s n) (if (= n 0) (stream-car s) ...
null
https://raw.githubusercontent.com/silverbullettt/SICP/e773a8071ae2fae768846a2b295b5ed96b019f8d/stream.rkt
racket
(define-syntax cons-stream (syntax-rules () ((cons-stream obj strm) (cons obj (delay strm))))) (define (stream-car strm) (car strm)) (define (stream-cdr strm) (force (cdr strm))) (define the-empty-stream '()) (define stream-null? null?) (define (stream-ref s n) (if (= n 0) (stream-car s) ...
cedb3a2b85eeacdb80c0b577f6d9377e1ece7d52b2d8301e37a981a7de60668a
ocamllabs/opamfu
opamfUniverse.ml
(**************************************************************************) (* *) Copyright 2012 INRIA Copyright 2012 - 2013 OCamlPro Copyright 2...
null
https://raw.githubusercontent.com/ocamllabs/opamfu/bfb9f24cd624f0889a26afb979a856e547344391/lib/opamfUniverse.ml
ocaml
************************************************************************ All rights reserved.This file is distributed under the terms of the exception. ...
Copyright 2012 INRIA Copyright 2012 - 2013 OCamlPro Copyright 2013 GNU Lesser General Public License version 3.0 with linking OPAM is distributed in the hope that it will be useful , but WITHOUT ...
e3b7c817d117969577aeda84664cd1fd73bb4aeaad51489b9f5c873ab2a2d7ba
karamellpelle/grid
IOS.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/MEnv/System/IOS.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid 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 GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License # LANGUAGE ForeignFunctionInterface # module MEnv.S...
7b8b3b5dc3cd13b1478afcef91229e9b6886942f7062f595fb9c668211e8c729
vharmain/serverless-healthcheck
core.cljs
(ns healthcheck.core (:require ["aws-sdk" :as AWS] ["node-fetch" :as node-fetch] [clojure.string :as string] [goog.object :as gobj] [goog.string :as gstring] [goog.string.format])) (def ses (new AWS/SES)) (def sns (new AWS/SNS)) (def icons {:ok "✅" :nok "❌"}) (defn ->message [[url status]] ...
null
https://raw.githubusercontent.com/vharmain/serverless-healthcheck/db57c3e596b48d76f1d8a8d54d42eeec9d9ff28e/src/healthcheck/core.cljs
clojure
(ns healthcheck.core (:require ["aws-sdk" :as AWS] ["node-fetch" :as node-fetch] [clojure.string :as string] [goog.object :as gobj] [goog.string :as gstring] [goog.string.format])) (def ses (new AWS/SES)) (def sns (new AWS/SNS)) (def icons {:ok "✅" :nok "❌"}) (defn ->message [[url status]] ...
40e15cc0450b5cccdbfb47b068c3abb947de55af371e2bcce5a1da95a348b362
peteg/hBDD
BF.hs
------------------------------------------------------------------- -- | -- Module : Data.Boolean.BF Copyright : ( C ) 2002 - 2005 , 2009 University of New South Wales , ( C ) 2009 - 2011 -- License : LGPL (see COPYING.LIB for details) ----------------------------------------------------------------...
null
https://raw.githubusercontent.com/peteg/hBDD/b177ae6de63d3ac3a66db346162fd9d0c7e9fc83/Data/Boolean/BF.hs
haskell
----------------------------------------------------------------- | Module : Data.Boolean.BF License : LGPL (see COPYING.LIB for details) ----------------------------------------------------------------- * A data-structure based instance of 'Boolean'. -----------------------------------------------------...
Copyright : ( C ) 2002 - 2005 , 2009 University of New South Wales , ( C ) 2009 - 2011 module Data.Boolean.BF ( BF(..) ) where import Data.Boolean Note the ' ' instance is /not/ semantic equality . data BF = BFtrue | BFfalse | BFvar String | BF `BFand` BF | B...
cfcdb135640b82800758faf91d00d1222609831bed13489916ded5b8c418d43e
basho/riak_ensemble
synctree_orddict.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may ob...
null
https://raw.githubusercontent.com/basho/riak_ensemble/66e6c41491cbf1a4b5d967a30c504111d87f8147/src/synctree_orddict.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(...
6ce30e76e2dbf54186dec62ded9727a5ae475f8f1f469a7df3e79996a88eb4db
informatimago/lisp
generate-application.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : generate-application.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; Save the botvot executable. ;;...
null
https://raw.githubusercontent.com/informatimago/lisp/b09802b365a96939672299ee3d9e5c758e463ab4/small-cl-pgms/botvot/generate-application.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION Save the botvot executable. LEGAL This program is free software: you can redistribute it and/or modify (at your option) any later vers...
FILE : generate-application.lisp USER - INTERFACE : < PJB > < > MODIFICATIONS 2021 - 04 - 14 < PJB > Created . AGPL3 Copyright 2021 - 2021 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version...
711067b1a38bf879e9b9e177a316437732abcaa00c4f6479a1a53cb6a6384f99
arcfide/oleg
vsxpath-ext.scm
;; Validation tests for "sxpath-ext.scm" ; ; Please send bug reports and comments to: ; Dmitry Lizorkin ;@ test-document (define xt-doc '(*TOP* (*PI* xml "version='1.0'") (doc (multidirectional (@ (:type "extended")) (loc (@ (:type "locator") (:title "Chap.1 toc") ...
null
https://raw.githubusercontent.com/arcfide/oleg/c6826870436925fd4c873c01d7fcc24a7a7f95dc/sxml-tools/tests/vsxpath-ext.scm
scheme
Validation tests for "sxpath-ext.scm" Please send bug reports and comments to: Dmitry Lizorkin @ test-document Some particular nodes from a document above @ node: '(id "toc3") sxml:string Expected result: <--- of: sxml:string Expected result: <--- of: sxml:string Expected result: <--- of: sxml:stri...
(define xt-doc '(*TOP* (*PI* xml "version='1.0'") (doc (multidirectional (@ (:type "extended")) (loc (@ (:type "locator") (:title "Chap.1 toc") (:role "booboo") (:label "boo") (:href "#toc1"))) (loc (@ (:type "locator") (:title "Chap.1 co...
e7bdd6a5a1d6fc385419a5488cd023744d8fdeab044f7f7ac56d56ac7d949cf5
Killeroid/PushCalc
project.clj
(defproject PushCalc "0.0.9" :description "Evolving a calculator in PushGP" :dependencies [[org.clojure/clojure "1.2.1"] [org.clojure/clojure-contrib "1.2.0"] [local-file "0.0.4"]] :main clojush)
null
https://raw.githubusercontent.com/Killeroid/PushCalc/68ea1ba84ba8c4c012b57274237412b77530511e/project.clj
clojure
(defproject PushCalc "0.0.9" :description "Evolving a calculator in PushGP" :dependencies [[org.clojure/clojure "1.2.1"] [org.clojure/clojure-contrib "1.2.0"] [local-file "0.0.4"]] :main clojush)
bbfa5ea260ee4381b33ae8a14488b87c7d24294ebf33046d983d7e84fa46a17a
hexresearch/blobster
Internal.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable # module Data.Blobster.Internal where import Control.Applicative import Control.Monad import Crypto.Hash import Data.ByteString (ByteString) import Data.Data import Data.List (splitAt) import Data.Maybe import Data.SafeCopy import Data.Serialize (Serialize) import GHC.Gene...
null
https://raw.githubusercontent.com/hexresearch/blobster/138eaad915421118f7d64f4125e7ffc6d30bcb98/src/Data/Blobster/Internal.hs
haskell
FIXME: exception handling
# LANGUAGE DeriveGeneric , DeriveDataTypeable # module Data.Blobster.Internal where import Control.Applicative import Control.Monad import Crypto.Hash import Data.ByteString (ByteString) import Data.Data import Data.List (splitAt) import Data.Maybe import Data.SafeCopy import Data.Serialize (Serialize) import GHC.Gene...
8cfac2dbc3b1bc7160f904314225b5277cf0a9e30f434dbb69ec608760c6dc83
ragkousism/Guix-on-Hurd
gnu-doc.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > Copyright © 2016 Jan Nieuwenhuizen < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/gnu-doc.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 < > Copyright © 2016 Jan Nieuwenhuizen < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages gnu-doc) #:use-module (gnu packages base)...
4111e77d63e4e255ddae379e0b806d426152908393bd33af8f8cfd34c335b5b7
well-typed-lightbulbs/ocaml-esp32
enrich_typedecl.ml
(* TEST * expect *) module rec A : sig type t = int * string end = struct type t = A | B let f (x : t) = match x with | A -> () | B -> () end;; [%%expect{| Lines 3-10, characters 6-3: 3 | ......struct 4 | type t = A | B 5 | 6 | let f (x : t) = 7 | match x with 8 | | A -> () 9 |...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/typing-misc/enrich_typedecl.ml
ocaml
TEST * expect this function typechecks properly, which means that we've added the manisfest.
module rec A : sig type t = int * string end = struct type t = A | B let f (x : t) = match x with | A -> () | B -> () end;; [%%expect{| Lines 3-10, characters 6-3: 3 | ......struct 4 | type t = A | B 5 | 6 | let f (x : t) = 7 | match x with 8 | | A -> () 9 | | B -> () 10 | end...
47189ff5e857e8c2a3d092083bde44b1e815adbe99045c830cca26cc84e75e9c
donut-party/datapotato
build.clj
(ns build "build script. inspired by: * * -clj Run tests: clojure -X:test clojure -X:test-cljs For more information, run: clojure -A:deps -T:build help/doc" (:refer-clojure :exclude [test]) (:require [clojure.tools.build.api :as b] [org.corfield.build :as bb])) (def lib 'party.donut/d...
null
https://raw.githubusercontent.com/donut-party/datapotato/6c4b8bed304e59cc05bd59069af163583ba46cfd/datapotato-next-jdbc/build.clj
clojure
(ns build "build script. inspired by: * * -clj Run tests: clojure -X:test clojure -X:test-cljs For more information, run: clojure -A:deps -T:build help/doc" (:refer-clojure :exclude [test]) (:require [clojure.tools.build.api :as b] [org.corfield.build :as bb])) (def lib 'party.donut/d...
f55474fa51e7aa733faecd8a0a9436db4b3d9908e27908f502db926307133ba9
mudge/php-clj
project.clj
(defproject php-clj "0.4.1" :description "Deserialize PHP into Clojure data structures and back again." :url "-clj" :dependencies [[ordered "1.3.2"]] :license {:name "Eclipse Public License" :url "-v10.html"} :profiles {:dev {:dependencies [[midje "1.5.1"]] :plugins [[lein-midje...
null
https://raw.githubusercontent.com/mudge/php-clj/6a3aa409c8b21d07cb2a32b785432187aa90b4fb/project.clj
clojure
(defproject php-clj "0.4.1" :description "Deserialize PHP into Clojure data structures and back again." :url "-clj" :dependencies [[ordered "1.3.2"]] :license {:name "Eclipse Public License" :url "-v10.html"} :profiles {:dev {:dependencies [[midje "1.5.1"]] :plugins [[lein-midje...
baf7e38e5a7694e927d9c575626b3a0918ff5539f7efcbda4a078f91ff18c785
rudymatela/conjure
dupos.hs
-- dupos.hs: duplicates and positions -- Copyright ( C ) 2021 -- Distributed under the 3-Clause BSD licence (see the file LICENSE). import Conjure import Test.LeanCheck -- needed for duplicatesSpec only duplicates :: [Int] -> [Int] -- Eq a => [a] -> [a] duplicates [] = [] duplicates (x:xs) = if x `elem` xs &...
null
https://raw.githubusercontent.com/rudymatela/conjure/a76bfa9fc3ded043c8b98cd3cde78c0c533a9fa4/eg/dupos.hs
haskell
dupos.hs: duplicates and positions Distributed under the 3-Clause BSD licence (see the file LICENSE). needed for duplicatesSpec only Eq a => [a] -> [a] this is what conjure _can_ generate duplicates xs = 3 4 18 24 27 out of reach memory and performance wise -- OR -- 1 11 15 17 within reach per...
Copyright ( C ) 2021 import Conjure duplicates [] = [] duplicates (x:xs) = if x `elem` xs && not (x `elem` d) then x : d else d where d = duplicates xs duplicates' :: [Int] -> [Int] duplicates' [0,0] = [0] duplicates' [0,1] = [] duplicates' [1,0,1] = [1] duplicates' [0,1,0,1] = [0,1] duplic...
a1dbf8749037449bc95fd681622d6294c8b8f558bbc87a66f088edb77242f96a
bollu/minitt
Christiansen7.hs
NBE for dependently typed language . -- More of the same =) # LANGUAGE NoImplicitPrelude # # LANGUAGE FlexibleInstances # import Prelude hiding(EQ) import System.Environment import System.Exit import Debug.Trace import Data.List import AST import Data.Either import Control.Monad(foldM) 7 . Dependently typed lang ...
null
https://raw.githubusercontent.com/bollu/minitt/5fab78717f6fc09a3c1d68980cbea0a18a31e28f/Christiansen7.hs
haskell
More of the same =) TODO: HOW TO PROVE GALOIS CORRESPONDENCE BETWEEN STX AND SEM? Value: An expression with a constructor at the top is called as a value. Not every value is in normal form. This is because the arguments to a constructor need not be normal. Each (add (+ (addi zero) (addi one))) is a val...
NBE for dependently typed language . # LANGUAGE NoImplicitPrelude # # LANGUAGE FlexibleInstances # import Prelude hiding(EQ) import System.Environment import System.Exit import Debug.Trace import Data.List import AST import Data.Either import Control.Monad(foldM) 7 . Dependently typed lang / instance MonadFail ...
33671215cd25f522dd0a2e02d0e55cd2af139f56c662ecbd30d77b4a743049b4
vinted/kafka-elasticsearch-tool
index.clj
(ns sink.elasticsearch.index (:require [clojure.core.reducers :as r] [clojure.tools.logging :as log] [core.ilm :as ilm] [core.json :as json]) (:import (io.confluent.connect.elasticsearch.jest JestElasticsearchClient) (io.confluent.connect.elasticsearch BulkIndexingClie...
null
https://raw.githubusercontent.com/vinted/kafka-elasticsearch-tool/d7edb0a064a20d636bdfdaae4a6c32c23f360b99/src/sink/elasticsearch/index.clj
clojure
Index 1M small maps already encoded json strings
(ns sink.elasticsearch.index (:require [clojure.core.reducers :as r] [clojure.tools.logging :as log] [core.ilm :as ilm] [core.json :as json]) (:import (io.confluent.connect.elasticsearch.jest JestElasticsearchClient) (io.confluent.connect.elasticsearch BulkIndexingClie...
192ce7cdaebaa05b770bfc0f37a1a7834290ffb5942f5bec4869d01d4add758b
robert-stuttaford/bridge
repl.clj
(ns bridge.dev.repl (:require [bridge.config :as config] [bridge.data.datomic :as datomic] [integrant.core :as ig])) (defn set-datomic-mode! [mode] (alter-var-root (var datomic/*DATOMIC-MODE*) (constantly mode))) (defn conn [] (when (nil? datomic/*DATOMIC-MODE*) (throw (ex-info (str ...
null
https://raw.githubusercontent.com/robert-stuttaford/bridge/867d81354457c600cc5c25917de267a8e267c853/dev/bridge/dev/repl.clj
clojure
(ns bridge.dev.repl (:require [bridge.config :as config] [bridge.data.datomic :as datomic] [integrant.core :as ig])) (defn set-datomic-mode! [mode] (alter-var-root (var datomic/*DATOMIC-MODE*) (constantly mode))) (defn conn [] (when (nil? datomic/*DATOMIC-MODE*) (throw (ex-info (str ...
164fab83c69bcfc831740e47a404957ed3a60af75550968afe2df58c64411f62
rcherrueau/APE
ischeme.rkt
#lang racket/base (require "utils.rkt") ;; Idealized Scheme ;; x ∈ Vars c ∈ Consts ;; e ::= v | x | r | (e e) | (ρ (θ) e) (Expressions) r : : = ( ref e ) | ( deref e ) | ( set ! x e ) ( Reference ) ;; v ::= c | (λ x e) (Values) θ : : = ε...
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/pan/attic/ischeme.rkt
racket
Idealized Scheme x ∈ Vars e ::= v | x | r | (e e) | (ρ (θ) e) (Expressions) v ::= c | (λ x e) (Values) a ::= v | (ρ (θ) v) (Answers) Reference Assignment Block (module+ test (require rackunit) ;; ------------------...
#lang racket/base (require "utils.rkt") c ∈ Consts r : : = ( ref e ) | ( deref e ) | ( set ! x e ) ( Reference ) θ : : = ε | θ(x v ) , where ( x v ' ) ∉ θ ( ρ - lists ) Macro Expander (extends-lang "lam+lit.rkt") (define-syntax-rule (ischeme-ref EXP) (box EXP)) ...
16a5ae4cdead1fbe5db33a4e4155e3aaa5ae2133e47ef9fb98944799c8b228ba
sneerteam/sneer
admin.clj
(ns sneer.admin (:require [sneer.commons :refer [dispose]] [sneer.tuple.space :as space] [sneer.impl :as impl] [sneer.tuple.protocols :refer :all] [sneer.tuple.persistent-tuple-base :as tuple-base] [sneer.restartable :refer :all] [sneer.tuple-base-provider :refer :all] [sneer.async :re...
null
https://raw.githubusercontent.com/sneerteam/sneer/b093c46321a5a42ae9418df427dbb237489b7bcb/core/src/main/clojure/sneer/admin.clj
clojure
(ns sneer.admin (:require [sneer.commons :refer [dispose]] [sneer.tuple.space :as space] [sneer.impl :as impl] [sneer.tuple.protocols :refer :all] [sneer.tuple.persistent-tuple-base :as tuple-base] [sneer.restartable :refer :all] [sneer.tuple-base-provider :refer :all] [sneer.async :re...
9a1861ee01b295efb20105b2c7c81dc9752ca9c690ce6562467c464dd50d84be
michiari/ppl
2019-11-19.hs
module ES6 where import qualified Data.Map as M data BTree a = BEmpty | BNode a (BTree a) (BTree a) deriving Eq instance (Show a) => Show (BTree a) where show BEmpty = "Bempty" show (BNode x BEmpty BEmpty) = "BNode " ++ show x show (BNode x l r) = "BNode " ++ show x ++ " (" ++ show l ++ ") (" ++ show r ++ ")" ...
null
https://raw.githubusercontent.com/michiari/ppl/af5c60c10fc5cac59ab5d3bf2a00e871737b37c1/2019/2019-11-19.hs
haskell
fmap can be seen as "apply f to all elements of a container/context" fmap (+1) Nothing but also as a way to lift a unary function, so that it works between functors :t fmap :t fmap (+1) inc $ Just 1 inc [1..9] class (Functor f) => Applicative f where pure :: a -> f a (<*>) :: f (a -> b) -> f a -> f b pur...
module ES6 where import qualified Data.Map as M data BTree a = BEmpty | BNode a (BTree a) (BTree a) deriving Eq instance (Show a) => Show (BTree a) where show BEmpty = "Bempty" show (BNode x BEmpty BEmpty) = "BNode " ++ show x show (BNode x l r) = "BNode " ++ show x ++ " (" ++ show l ++ ") (" ++ show r ++ ")" ...
5c7c088b878042f37cdbc2c9dd00237b3ce36e0b6f883a106615624ca50f615c
danilkolikov/dfl
ToSimpleType.hs
| Module : Frontend . Desugaring . Initial . Description : Desugaring of AST nodes to SimpleType Copyright : ( c ) , 2019 License : MIT Desugaring of AST nodes to objects , representing SimpleType - s. Module : Frontend.Desugaring.Initial.ToSimpleType Description : Desugar...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Desugaring/Initial/ToSimpleType.hs
haskell
| Module : Frontend . Desugaring . Initial . Description : Desugaring of AST nodes to SimpleType Copyright : ( c ) , 2019 License : MIT Desugaring of AST nodes to objects , representing SimpleType - s. Module : Frontend.Desugaring.Initial.ToSimpleType Description : Desugar...
780ef12a3f8bbaf5a5b1f7e39643aad09528761898e7d548a2d766d9a9c33a6e
marick/Midje
test.clj
;; While the *record* exists in the `specific` namespace, the generic functions are only in the ;; `generic` namespace. So we must require them both. (ns as-documentation.about-defrecord.using-as--plain-tests.test (:require [midje.sweet :refer :all] [as-documentation.about-defrecord.generic :as generic] ...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/as_documentation/about_defrecord/using_as__plain_tests/test.clj
clojure
While the *record* exists in the `specific` namespace, the generic functions are only in the `generic` namespace. So we must require them both.
(ns as-documentation.about-defrecord.using-as--plain-tests.test (:require [midje.sweet :refer :all] [as-documentation.about-defrecord.generic :as generic] [as-documentation.about-defrecord.using-as--plain-tests.specific :as specific])) (facts "about what exists where" (find-var 'as-docume...
c7d93bf96d817da71fe6ba13e610d474bf426808b87a4b2ba2c1f2fb00439acb
monadbobo/ocaml-core
month.mli
type t include Binable.S with type t := t include Comparable.S with type t := t include Hashable.S with type t := t include Sexpable.S with type t := t * * [ of_string s ] accepts three - character abbreviations with any capitalization * [of_string s] accepts three-character abbreviations with any capitalizatio...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/month.mli
ocaml
type t include Binable.S with type t := t include Comparable.S with type t := t include Hashable.S with type t := t include Sexpable.S with type t := t * * [ of_string s ] accepts three - character abbreviations with any capitalization * [of_string s] accepts three-character abbreviations with any capitalizatio...
738b572422a299881ac84fe19d633b18ec73d515d58817025743ff77aba3e23b
motoshira/lib_for_competitive_programming
closure-template.lisp
(defmacro dlambda (&rest forms) `(lambda (key )))
null
https://raw.githubusercontent.com/motoshira/lib_for_competitive_programming/33fd81102f5d1067904e0aca9b3f9ba3c3c2ca73/experimental/closure-template.lisp
lisp
(defmacro dlambda (&rest forms) `(lambda (key )))
73acd9a2380aa2250f98359957a2f4e4e8220368de9f7f95077b00934dd7bd8b
xapi-project/xen-api
server_async_main.ml
* Copyright ( c ) Citrix Systems Inc. * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AN...
null
https://raw.githubusercontent.com/xapi-project/xen-api/1e1165f330c30ee6cb8e8f325af9fdd07474ca24/ocaml/message-switch/core_test/async/server_async_main.ml
ocaml
* Copyright ( c ) Citrix Systems Inc. * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AN...
146a1f33a1ff4b298539d53cc2e50f7ac9e9b7a919ece829236a18a45c0ee391
finnishtransportagency/harja
paikkaukset_paallystysilmoitukset.cljs
(ns harja.views.urakka.yllapitokohteet.paikkaukset.paikkaukset-paallystysilmoitukset (:require [reagent.core :as r] [tuck.core :as tuck] [cljs-time.core :as t] [harja.domain.paallystys-ja-paikkaus :as paallystys-ja-paikkaus] [harja.tiedot.urakka :as u] [harja.tiedot.urakka.paallystys :as t-ur-...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/e7a72c5e7dcbc33bc2b64f2fb1de252a01312b37/src/cljs/harja/views/urakka/yllapitokohteet/paikkaukset/paikkaukset_paallystysilmoitukset.cljs
clojure
[debug/debug app]
(ns harja.views.urakka.yllapitokohteet.paikkaukset.paikkaukset-paallystysilmoitukset (:require [reagent.core :as r] [tuck.core :as tuck] [cljs-time.core :as t] [harja.domain.paallystys-ja-paikkaus :as paallystys-ja-paikkaus] [harja.tiedot.urakka :as u] [harja.tiedot.urakka.paallystys :as t-ur-...
18a56f5e46a843bde3ae34827faa61b97e0e2e740b2df8f2b88f4a79f6ea3cec
atlas-engineer/nyxt
emacs.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/emacs-mode (:documentation "Emacs-style bindings.")) (in-package :nyxt/emacs-mode) (define-mode emacs-mode (nyxt/keyscheme-mode:keyscheme-mode) "Enable Emacs-style bindings. To enable these ...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/efebb688ade56e59039d88059fab26b7de719434/source/mode/emacs.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (nyxt:define-package :nyxt/emacs-mode (:documentation "Emacs-style bindings.")) (in-package :nyxt/emacs-mode) (define-mode emacs-mode (nyxt/keyscheme-mode:keyscheme-mode) "Enable Emacs-style bindings. To enable these ...
8e0c1ae244560ca5ecc941647a1002e937ecd8f5fa6cc833e2e0fec692079966
hipsleek/hipsleek
monadicinterp.ml
#include "xdebug.cppo" open Monads open Typeclass module type MonadErr_B_sig = sig type 'a m = Success of 'a | Error of string val return : 'a -> 'a m val bind : 'a m -> ('a -> 'b m) -> 'b m end module MonadErr_B = struct type 'a m = Success of 'a | Error of string let return a = Success a let bind er f...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/monadicinterp.ml
ocaml
^" ; "^" Count: " ^ (B.show s) module E=MonadE_B(S) module B=SHOW(S) type 'a m = (int -> ('a E.m * int)) let return a = (fun s -> ((E.return a),s) ) let bind (m1) k = (fun s -> let (e1,s1) = m1 s in match e1 with | (E.Success v) -> let m2 = k v in (m2 s1) ) ...
#include "xdebug.cppo" open Monads open Typeclass module type MonadErr_B_sig = sig type 'a m = Success of 'a | Error of string val return : 'a -> 'a m val bind : 'a m -> ('a -> 'b m) -> 'b m end module MonadErr_B = struct type 'a m = Success of 'a | Error of string let return a = Success a let bind er f...
7fc464cd907570d1beb37e14c4cce152035870d8d4a02873cffdb625b4121c4a
janestreet/vcaml
msgpack.ml
open Core module Internal = struct module Parser = Parser module Serializer = Serializer end module type Msgpackable = sig type t val of_msgpack : Message.t -> t Or_error.t val to_msgpack : t -> Message.t end include Message let t_of_string = Parser.parse let t_of_string_exn s = Or_error.ok_exn (Parser.p...
null
https://raw.githubusercontent.com/janestreet/vcaml/b02fc56c48746fa18a6bc9a0f8fb85776db76977/msgpack/protocol/src/msgpack.ml
ocaml
Now a practical example...
open Core module Internal = struct module Parser = Parser module Serializer = Serializer end module type Msgpackable = sig type t val of_msgpack : Message.t -> t Or_error.t val to_msgpack : t -> Message.t end include Message let t_of_string = Parser.parse let t_of_string_exn s = Or_error.ok_exn (Parser.p...
c6737b62918b35b1433d40bea251f2bb6376f817c17babc719c58debce9e7f19
helpshift/hydrox
project.clj
(defproject lein-hydrox "0.1.16" :description "leiningen plugin for hydrox" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[helpshift/hydrox "0.1.16"]] :eval-in-leiningen true)
null
https://raw.githubusercontent.com/helpshift/hydrox/2beb3c56fad43bbf16f07db7ee72c5862978350c/lein/project.clj
clojure
(defproject lein-hydrox "0.1.16" :description "leiningen plugin for hydrox" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[helpshift/hydrox "0.1.16"]] :eval-in-leiningen true)
018c887db4d45ec7b10c02759ccbb9d82d80751665e0d9093fdaa3816d6af714
thosmos/riverdb
decimal_field.cljc
(ns riverdb.rad.ui.controls.decimal-field (:require [theta.log :refer [debug]] [com.fulcrologic.fulcro.components :as comp] [com.fulcrologic.fulcro.dom.inputs :as inputs] [clojure.string :as str] [com.fulcrologic.rad.rendering.semantic-ui.field :refer [render-field-factory]] [com.fulcrologic.r...
null
https://raw.githubusercontent.com/thosmos/riverdb/1c3aebebbc148225fd4b1b67b3a4890f741b98c0/src/rad/riverdb/rad/ui/controls/decimal_field.cljc
clojure
(ns riverdb.rad.ui.controls.decimal-field (:require [theta.log :refer [debug]] [com.fulcrologic.fulcro.components :as comp] [com.fulcrologic.fulcro.dom.inputs :as inputs] [clojure.string :as str] [com.fulcrologic.rad.rendering.semantic-ui.field :refer [render-field-factory]] [com.fulcrologic.r...
8b2c8b0bd459f630cf495eaf6b165561164fecf0a085e4cf8f6edba17f13f713
angavrilov/ecl-compute
opt-ifsign.lisp
;;; -*- mode:lisp; indent-tabs-mode: nil; -*- (in-package fast-compute) (use-std-readtable) ;; Possible sign information (defstruct sign-info (negative t) (zero t) (positive t)) (defun sign-info-strictly-positive (info) (and (sign-info-positive info) (not (sign-info-negative info)) (not (sign-info-...
null
https://raw.githubusercontent.com/angavrilov/ecl-compute/466f0d287f8b6ab0e2b5c2ac03693ad4f4df6a3f/expr/opt-ifsign.lisp
lisp
-*- mode:lisp; indent-tabs-mode: nil; -*- Possible sign information Retrieve sign hints from symbols Recursively determine sign Filter an expression, removing factors with constant sign Assumes flattened representation ifsign rewrite passes
(in-package fast-compute) (use-std-readtable) (defstruct sign-info (negative t) (zero t) (positive t)) (defun sign-info-strictly-positive (info) (and (sign-info-positive info) (not (sign-info-negative info)) (not (sign-info-zero info)))) (defun sign-info-strictly-negative (info) (and (sign-info-...
95af3081c0b6fa305459878742abe23edf6591b350243ae5e03a487f19c4f5e5
borodust/bodge-ui
property.lisp
(cl:in-package :bodge-ui) (defclass float-property (disposable widget) ((label :initarg :label :initform "") (min :initarg :start :initform 0f0) (max :initarg :end :initform 1f0) (step :initarg :step :initform 0f0) (increment :initarg :increment :initform 0.005f0) (value :initarg :value :initform 0f0...
null
https://raw.githubusercontent.com/borodust/bodge-ui/db896ca3be9026444398e0192a48b048aa7db574/src/elements/property.lisp
lisp
(cl:in-package :bodge-ui) (defclass float-property (disposable widget) ((label :initarg :label :initform "") (min :initarg :start :initform 0f0) (max :initarg :end :initform 1f0) (step :initarg :step :initform 0f0) (increment :initarg :increment :initform 0.005f0) (value :initarg :value :initform 0f0...
d8ce17e1e69e8bdeffe31c9fbf06ddfed991f705946c08086b0cee982c98b90d
ZHaskell/z-data
FlatIntMap.hs
| Module : Z.Data . Vector . FlatIntMap Description : Fast int map based on sorted vector Copyright : ( c ) , 2017 - 2019 ( c ) , 2018 - 2019 License : BSD Maintainer : Stability : experimental Portability : non - portable This module provides a simple int key va...
null
https://raw.githubusercontent.com/ZHaskell/z-data/b8d4173d9fe2449ff26c2a12bb7217e5e6047616/Z/Data/Vector/FlatIntMap.hs
haskell
* fold and traverse * binary search on vectors ------------------------------------------------------------------------------ # INLINE (<>) # # INLINE foldl' # # INLINE foldl # # INLINE traverse # # INLINE map' # | /O(1)/ empty flat map. | /O(N*logN)/ Pack list of key values, on key duplication prefer left one. | ...
| Module : Z.Data . Vector . FlatIntMap Description : Fast int map based on sorted vector Copyright : ( c ) , 2017 - 2019 ( c ) , 2018 - 2019 License : BSD Maintainer : Stability : experimental Portability : non - portable This module provides a simple int key va...
b326a246b5236937fa823955a7a5fd9ba8580da8a30a83a501421309bc84912d
okuoku/nausicaa
test-nausicaa.sps
;;; Part of : / Scheme ;;;Contents: test for R6RS compliance and extensions ;;;Date: Mon Dec 8, 2008 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( c ) 2008 - 2011 < > ;;; ;;;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 ...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/scheme/tests/test-nausicaa.sps
scheme
Contents: test for R6RS compliance and extensions Date: Mon Dec 8, 2008 Abstract 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 your option) any later version. This program is distributed in the hope that it will be u...
Part of : / Scheme Copyright ( c ) 2008 - 2011 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License #!r6rs (import (nausicaa) (nausicaa checks)) (check-set-mode! 'report-...
72982820dd86a10e9e339cdc48d1e457c307cf868697bbace7fb6bf5b8744689
ranjitjhala/haddock-annot
ParseUtils.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.ParseUtils Copyright : ( c ) The University of Glasgow 2004 -- -- Maintainer : -- Portability : portable -- Utilities for parsing ' PackageDescription ' and ' InstalledPackageInfo ' . -- -- The...
null
https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/Cabal-1.10.1.1/Distribution/ParseUtils.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.ParseUtils Maintainer : Portability : portable The @.cabal@ file format is not trivial, especially with the introduction of configurations and the section syntax that goes with that. This module has a...
Copyright : ( c ) The University of Glasgow 2004 Utilities for parsing ' PackageDescription ' and ' InstalledPackageInfo ' . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : *...
d3387b06529a88460356960604c3d2dd7b0a391189798ee1a042032f08463047
DrearyLisper/aoc-2021
Day24.hs
# OPTIONS_GHC -Wno - incomplete - patterns # module Day24 where import Debug.Trace data Arg = RegisterW | RegisterX | RegisterY | RegisterZ | Value Int deriving Show data Opcode = Inp Arg | Add Arg Arg | Mul Arg Arg | Div Arg Arg | Mod Arg Arg | Eql Arg Arg deriving Show data ALU = ALU { w :: Int, x :: Int, y :: Int...
null
https://raw.githubusercontent.com/DrearyLisper/aoc-2021/d6cfc847cbbab11b9b3bf0409fdb0e0ac993d7c3/24/Day24.hs
haskell
# OPTIONS_GHC -Wno - incomplete - patterns # module Day24 where import Debug.Trace data Arg = RegisterW | RegisterX | RegisterY | RegisterZ | Value Int deriving Show data Opcode = Inp Arg | Add Arg Arg | Mul Arg Arg | Div Arg Arg | Mod Arg Arg | Eql Arg Arg deriving Show data ALU = ALU { w :: Int, x :: Int, y :: Int...
9db7b2943a8b49792fa6614908271e8b31eb56e7f7d834c177495e3c56aa68e1
futurice/haskell-mega-repo
Server.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} # LANGUAGE UndecidableSuperClasses # modul...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/fum-carbon-app/src/Futurice/App/FUM/Command/Server.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableSuperClasses # module Futurice.App.FUM.Command.Server (commandServer) where import Futurice.Prelude import Generics.SOP (All, SList (..), sList) import Prelude () import Servant ...
ae65bb55f18995d00940de609c6a50f08269e571fe1b7f70638fef64c5aab5cd
ArulselvanMadhavan/haskell-first-principles
factorial.hs
module Factorial where factorial :: Integer -> Integer factorial 0 = 1 factorial n = n * factorial (n - 1) sumAll :: (Eq a, Num a) => a -> a sumAll n = go n 0 where go x s | x == 0 = s | otherwise = go (x - 1) (s + x) multRec :: (Integral a) => a -> a -> a multRec x y | (x == 0 |...
null
https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter8/src/factorial.hs
haskell
module Factorial where factorial :: Integer -> Integer factorial 0 = 1 factorial n = n * factorial (n - 1) sumAll :: (Eq a, Num a) => a -> a sumAll n = go n 0 where go x s | x == 0 = s | otherwise = go (x - 1) (s + x) multRec :: (Integral a) => a -> a -> a multRec x y | (x == 0 |...
944a356eee76084c740487305b2a481987b5b4aefed782b34374474ca0085b3d
camfort/fortran-src
BBlocksSpec.hs
module Language.Fortran.Analysis.BBlocksSpec where import Test.Hspec import qualified Language.Fortran.Parser as Parser import Language.Fortran.AST import Language.Fortran.Analysis import Language.Fortran.Analysis.BBlocks import Language.Fortran.Analysis.Renaming import qualified Data.Map as M import qualified Data.I...
null
https://raw.githubusercontent.com/camfort/fortran-src/a78ce84d4b0ce198ae765511b6c604a0663f8480/test/Language/Fortran/Analysis/BBlocksSpec.hs
haskell
it "branching nodes" $ ------------------------------------------------ Label-finding helper functions to help write tests that are For each label in the list, find the corresponding basic block, return as an IntSet. For each label in the list, find the successors of the corresponding basic block, return as an In...
module Language.Fortran.Analysis.BBlocksSpec where import Test.Hspec import qualified Language.Fortran.Parser as Parser import Language.Fortran.AST import Language.Fortran.Analysis import Language.Fortran.Analysis.BBlocks import Language.Fortran.Analysis.Renaming import qualified Data.Map as M import qualified Data.I...
b9f5a0d117d2deabee7609b0fd631f16fdf4da265f856874eced0be859e7e166
hiratara/Haskell-Nyumon-Sample
chap02-samples-2-3-1-where.hs
main = print (x + 20) -- 30を表示 where x = 10
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap02-samples/chap02-samples-2-3-1-where.hs
haskell
30を表示
where x = 10
7034a216f6aba2dd277f876899b2c235ebb54812d405af34087885eca4959abe
clojure/clojurescript
edn_test.cljs
Copyright ( c ) . 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 ;; the t...
null
https://raw.githubusercontent.com/clojure/clojurescript/a4673b880756531ac5690f7b4721ad76c0810327/src/test/cljs/clojure/edn_test.cljs
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 ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns clojure.edn-test (:require [cljs.test :refer-macros [deftest is testing]] [clojure.edn :as edn] [cljs.reader :as reader] [cljs.tools.reader.reader-types :as reader-types])) (defn- test-reade...
d2fd25cb4af4d00f14d7b8eef5fdeb20024efe4a5124f892cbe09763fb682bf4
deadpendency/deadpendency
NoRecentPackageReleaseRule.hs
module RG.Effect.AssessDependencies.Backend.Rules.NoRecentPackageReleaseRule ( noRecentPackageReleaseRule, ) where import Common.Model.Assessment.DependencyAssessmentFailure import Common.Model.Assessment.DependencyAssessmentViolation import Common.Model.Assessment.DependencyAssessmentWarning import Common.Model.R...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/report-generator/src/RG/Effect/AssessDependencies/Backend/Rules/NoRecentPackageReleaseRule.hs
haskell
module RG.Effect.AssessDependencies.Backend.Rules.NoRecentPackageReleaseRule ( noRecentPackageReleaseRule, ) where import Common.Model.Assessment.DependencyAssessmentFailure import Common.Model.Assessment.DependencyAssessmentViolation import Common.Model.Assessment.DependencyAssessmentWarning import Common.Model.R...
dfde8abeee8ca9a84e0de93ceab9c355b9a96aefa964e93533e96e2510e59ea3
hiroshi-unno/coar
unionFind.ml
open Core (* parents, heights, data *) type 'a t = UF of int array * int array * 'a array * ('a -> 'a -> 'a) let mk_uf ~initial_data ~merge = let n = Array.length initial_data in let parent = Array.init n ~f:Fn.id in let height = Array.init n ~f:(fun _ -> 0) in UF (parent, height, initial_data, merge) let mk...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/common/unionFind.ml
ocaml
parents, heights, data to be sorted
open Core type 'a t = UF of int array * int array * 'a array * ('a -> 'a -> 'a) let mk_uf ~initial_data ~merge = let n = Array.length initial_data in let parent = Array.init n ~f:Fn.id in let height = Array.init n ~f:(fun _ -> 0) in UF (parent, height, initial_data, merge) let mk_unit_uf ~size = let initia...
222783859e1663c0e1d0bf04eb8160d828ca0be1203ff505d4240a135c9b3a81
facebookarchive/pfff
env_php.ml
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/analyze/foundation/env_php.ml
ocaml
*************************************************************************** Prelude *************************************************************************** * In PHP many globals are defined in a php.ini file and can be accessed in * the program, e.g. PHP_ROOT. It is useful for some static analysis * to know...
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
33f1334098ecc6400b5db2c7da6d6f8e65d5746435e179c01cec1c5b794ad33b
turion/rhine
SN.hs
{- | Asynchronous signal networks are combinations of clocked signal functions ('ClSF's) and matching 'ResamplingBuffer's, all satisfying the appropriate clock type constraints. This module defines the 'SN' type, combinators are found in a submodule. -} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAG...
null
https://raw.githubusercontent.com/turion/rhine/3bae3ddfa1ee70b8487e214f09a80c75b34f7398/rhine/src/FRP/Rhine/SN.hs
haskell
| Asynchronous signal networks are combinations of clocked signal functions ('ClSF's) and matching 'ResamplingBuffer's, all satisfying the appropriate clock type constraints. This module defines the 'SN' type, combinators are found in a submodule. # LANGUAGE GADTs # # LANGUAGE RankNTypes # rhine | A synchronous mo...
# LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module FRP.Rhine.SN where import FRP.Rhine.Clock import FRP.Rhine.Clock.Proxy import FRP.Rhine.ClSF.Core import FRP.Rhine.ResamplingBuffer import FRP.Rhine.Schedule | An ' SN ' is a side - effectful asynchronous /__s__ignal _ _ n__etwork/ , where input , ...
a8cb9af790cbaee24da769649f934e9b0d120036a8e428f3eb1ef42f518b78c6
joelburget/lvca
Check_failure.mli
(** A frame in the typechecking stack. *) module Frame : sig type 'term t = { term : 'term ; sort : Sort.t } val pp : 'term Fmt.t -> 'term t Fmt.t end (** A typechecking error carries a message and the context where the error occurred. *) type 'term t = { message : string ; stack : 'term Frame.t l...
null
https://raw.githubusercontent.com/joelburget/lvca/f8a3b8e294f564d1fc9836af63e6169b26ca0234/syntax/Check_failure.mli
ocaml
* A frame in the typechecking stack. * A typechecking error carries a message and the context where the error occurred.
module Frame : sig type 'term t = { term : 'term ; sort : Sort.t } val pp : 'term Fmt.t -> 'term t Fmt.t end type 'term t = { message : string ; stack : 'term Frame.t list } val map_frame_terms : f:('a -> 'b) -> 'a t -> 'b t val err : string -> 'term t val pp : 'term Fmt.t -> Stdlib.Format.form...
bd23c56036021c8cf18cbe22eca61cd911f9c363bf41f2540a3fc6a6ec2816be
wangsix/VMO_repeated_themes_discovery
converter.lisp
;(in-package :common-lisp-user) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "humdrum-by-col" :type "lisp") *lisp-code...
null
https://raw.githubusercontent.com/wangsix/VMO_repeated_themes_discovery/0082b3c55e64ed447c8b68bcb705fd6da8e3541f/JKUPDD-Aug2013/groundTruth/mozartK282Mvt2/polyphonic/repeatedPatterns/barlowAndMorgensternRevised/D/script/converter.lisp
lisp
(in-package :common-lisp-user)
(load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "csv-files" :type "lisp") *lisp-code-root*)) (load (merge-pathnames (make-pathname :directory '(:relative "File conversion") :name "humdrum-by-col" :type "lisp") *lisp-code-root*)) (load (merge-pathnames...
3fc2d242df4cd03b24323ab5861d8cbbd89c98329b157378ec6c4b6d10266ca6
DerekCuevas/interview-cake-clj
binary_tree.clj
(ns second-largest-in-binary-search-tree.binary-tree (:gen-class)) (defn node [value] {:value value :left nil :right nil}) (defn max-height [root] (if (nil? root) 0 (inc (max (max-height (:left root)) (max-height (:right root)))))) (defn min-height [root] (if (nil? root) 0 (inc ...
null
https://raw.githubusercontent.com/DerekCuevas/interview-cake-clj/f17d3239bb30bcc17ced473f055a9859f9d1fb8d/second-largest-in-binary-search-tree/src/second_largest_in_binary_search_tree/binary_tree.clj
clojure
(ns second-largest-in-binary-search-tree.binary-tree (:gen-class)) (defn node [value] {:value value :left nil :right nil}) (defn max-height [root] (if (nil? root) 0 (inc (max (max-height (:left root)) (max-height (:right root)))))) (defn min-height [root] (if (nil? root) 0 (inc ...
6d332b342b25359279cacce13920531d72d20e0951727f0c36fb4fe61f282e7b
mfikes/fifth-postulate
ns269.cljs
(ns fifth-postulate.ns269) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns269.cljs
clojure
(ns fifth-postulate.ns269) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
2226814b78c7cb02f3a96f23a373c5e2a6da7349af62330d855f39e9cf84fba8
ocaml/ocaml
alerts.ml
(* TEST * expect *) (* Enable all alerts as errors, except foo (soft) and bar (disabled) *) [@@@ocaml.alert "@all--foo-bar"];; module X : sig val x: int [@@alert foo "Foo!"] val y: int [@@alert bar "Bar!"] val z: int [@@alert baz "Baz!"] val t: int [@@alert foo "FOO"] [@@alert bar "BAR"] [@@alert baz "BAZ...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-deprecated/alerts.ml
ocaml
TEST * expect Enable all alerts as errors, except foo (soft) and bar (disabled) Turn all alerts into soft mode Disable all alerts Multiple alert messages of the same kind
[@@@ocaml.alert "@all--foo-bar"];; module X : sig val x: int [@@alert foo "Foo!"] val y: int [@@alert bar "Bar!"] val z: int [@@alert baz "Baz!"] val t: int [@@alert foo "FOO"] [@@alert bar "BAR"] [@@alert baz "BAZ"] end = struct let x, y, z, t = 0, 0, 0, 0 end [%%expect{| module X : sig val x : int val y ...
6ed103ec32594541642102d53b695cccd719ab91f2339804a7e48891732dc1e3
semilin/layoup
mmmm.lisp
(MAKE-LAYOUT :NAME "mmmm" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/mmmm.lisp
lisp
(MAKE-LAYOUT :NAME "mmmm" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
a5e94639413e458f1823aa07435e510ef6e3ca9080e045670f9e0d0fcd537812
nikita-volkov/rerebase
Unsafe.hs
module Data.Profunctor.Unsafe ( module Rebase.Data.Profunctor.Unsafe ) where import Rebase.Data.Profunctor.Unsafe
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/Profunctor/Unsafe.hs
haskell
module Data.Profunctor.Unsafe ( module Rebase.Data.Profunctor.Unsafe ) where import Rebase.Data.Profunctor.Unsafe
000cc3d2b83e1df04636a74417061d3d152931b1436df29b95b440039fa08f62
ekarayel/sync-mht
Run.hs
module Sync.MerkleTree.Run where import Control.Concurrent import Control.Concurrent.MVar () import Control.Monad import Data.List import Data.String.Interpolate.IsString import qualified Data.Text as T import qualified Data.Text.IO as T import Data.Version (showVersion) import qualified Paths_sync_mht as P import Syn...
null
https://raw.githubusercontent.com/ekarayel/sync-mht/57d724781fad9eed4e57b4e4f8416633605bdb4b/src/Sync/MerkleTree/Run.hs
haskell
| Number of micro-seconds to wait for communciation from a parent process, before suspecting that the user may have launched the command without parameters. | Run as a child process communicating with a parent process. | Run as a parent process communicating with a child process.
module Sync.MerkleTree.Run where import Control.Concurrent import Control.Concurrent.MVar () import Control.Monad import Data.List import Data.String.Interpolate.IsString import qualified Data.Text as T import qualified Data.Text.IO as T import Data.Version (showVersion) import qualified Paths_sync_mht as P import Syn...
96695585b65f8f5bb5b72d3a420ee58d1cff7a2022adb618c8a68b4b95e37b6b
ds-wizard/engine-backend
HttpClient.hs
module Wizard.Integration.Http.Common.HttpClient ( runRequest, runRequest', runSimpleRequest, mapHeader, ) where import qualified Control.Exception.Base as E import Control.Monad.Except (liftEither, throwError) import Control.Monad.Reader (asks, liftIO) import qualified Data.ByteString.Char8 as BS import quali...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/12717256cde8d20020e30cd55dc3ef00fef9362a/engine-wizard/src/Wizard/Integration/Http/Common/HttpClient.hs
haskell
-------------------------------- PRIVATE -------------------------------- -------------------------------- LOGGER --------------------------------
module Wizard.Integration.Http.Common.HttpClient ( runRequest, runRequest', runSimpleRequest, mapHeader, ) where import qualified Control.Exception.Base as E import Control.Monad.Except (liftEither, throwError) import Control.Monad.Reader (asks, liftIO) import qualified Data.ByteString.Char8 as BS import quali...
11c6d6c3b44bf21072aad0bd12462badcd6fa54600160de03d90ee568970b996
BranchTaken/Hemlock
i512.mli
512 - bit signed integer . See { ! module : ConvertIntf } for documentation on conversion functions . See {!module:ConvertIntf} for documentation on conversion functions. *) type t include IntwIntf.SFI with type t := t val trunc_of_zint: Zint.t -> t val extend_to_zint: t -> Zint.t val narrow_of_zint_opt: ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/53da5c0d9cf0c94d58b4391735d917518eec67fa/bootstrap/src/basis/i512.mli
ocaml
512 - bit signed integer . See { ! module : ConvertIntf } for documentation on conversion functions . See {!module:ConvertIntf} for documentation on conversion functions. *) type t include IntwIntf.SFI with type t := t val trunc_of_zint: Zint.t -> t val extend_to_zint: t -> Zint.t val narrow_of_zint_opt: ...
279d7aa1bbab21b536e1a248bb0433fea035d30b50f4c58e2ae179f1f099d5d2
Octachron/rational_in_types
opt_integer_ops.ml
module N = Natural open Logic_gates open Integer let add: < b0 : [< `_0 of [< `_0 of ('b * ([< `_0 of 'd * ([< `_0 of 'f * ([< `_0 of 'h * 'i | `_1 of 'h * 'i ] as ...
null
https://raw.githubusercontent.com/Octachron/rational_in_types/c4351c805cbeff2c2843f8ea1e7899bfc3859be5/src/opt_integer_ops.ml
ocaml
module N = Natural open Logic_gates open Integer let add: < b0 : [< `_0 of [< `_0 of ('b * ([< `_0 of 'd * ([< `_0 of 'f * ([< `_0 of 'h * 'i | `_1 of 'h * 'i ] as ...
48667469d03b6cfc4f27fac607ca78f7982dc76109af61de848486ce3a9fa42e
dbuenzli/logs
logs_fmt_top_init.ml
--------------------------------------------------------------------------- Copyright ( c ) 2015 The logs 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/logs/f948d255cde88b5b8a3d0e3ab16120e55d748836/src/logs_fmt_top_init.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2015 The logs programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
c66e0c1c054e7ac744a6ee5bb1008e73f57f0a9ccceeb77e6ee86fececb21924
polygonhell/Clash6502
Cpu2.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # module Cpu2 (cpuM, CpuOut(..), CpuIn(..), Probes(..))where import CLaSH.Prelude import CLaSH.Sized.Unsigned import qualified Data.List as L import Text.Printf import Alu imp...
null
https://raw.githubusercontent.com/polygonhell/Clash6502/a684dd7bee153ebb43cfc26bd0f020bc08e9afd6/Cpu2.hs
haskell
str = "Hello" Read and decode the instruction - execute single byte instructions PC always advanced Low data byte ready Can execute anything that doesn't require indirection through that byte Some indirection required -- pc not incremented, until instruction executed just read the byte from the supp...
# LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE FlexibleContexts # # LANGUAGE RecordWildCards # module Cpu2 (cpuM, CpuOut(..), CpuIn(..), Probes(..))where import CLaSH.Prelude import CLaSH.Sized.Unsigned import qualified Data.List as L import Text.Printf import Alu imp...
1ed0ccd2f871a46226fae93832e3d3965f72b142efac0676f00a983248f25fd6
nasser/magic
fn.clj
Copyright ( c ) . 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/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/tests/clojure/test_clojure/fn.clj
clojure
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 the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . Author : (ns clojure.test-clojure.fn (:use clojure.test clojure.test-helper)) (deftest fn-error-checking (testing "bad arglist" (is (fails-with-cause? clojure.lang.ExceptionInfo #"Call to clojure.core/fn did not conform to spec" (eval '(...
d6736199851791576c6d24a2b26f404fab4ec6370dc3f471a61ecacc27251620
ardumont/haskell-lab
own-types.hs
module OurOwnTypes where data Point = Point Float Float deriving (Show) data Shape = Rectangle Point Point | Circle Point Float deriving (Show) -- Rectangle x1 y1 x2 y2 -- (x1, y1) coordinate of the upper left corner -- (x2, y2) coordinate of the lower right corner Circle cx cy r -- (cx, cy) coordinate of the cen...
null
https://raw.githubusercontent.com/ardumont/haskell-lab/6d1f130300f33dc982c9a6b5d0b6a63af2c2666d/src/learn-you-a-haskell-for-great-good/own-types.hs
haskell
Rectangle x1 y1 x2 y2 (x1, y1) coordinate of the upper left corner (x2, y2) coordinate of the lower right corner (cx, cy) coordinate of the center of the circle r its radius Rectangle (Point 20.0 20.0) (Point 120.0 120.0)
module OurOwnTypes where data Point = Point Float Float deriving (Show) data Shape = Rectangle Point Point | Circle Point Float deriving (Show) Circle cx cy r surface :: Shape -> Float surface (Rectangle (Point x1 y1) (Point x2 y2)) = (abs $ x2 - x1) * (abs $ y2 - y1) surface (Circle _ r) = pi * r ^ 2 * > su...
62c5e248bf04229fcaf20b65adfdb2ffeb51aaa808706f930a791ee6d32a290b
fulcrologic/fulcro-rad-demo
datomic.clj
(ns com.example.components.datomic (:require [com.fulcrologic.rad.database-adapters.datomic-cloud :as datomic] [datomic.client.api :as d] [mount.core :refer [defstate]] [com.example.model :refer [all-attributes]] [com.example.components.config :refer [config]])) (defstate ^{:on-reload :noop} dato...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad-demo/28b8c2dd3cd9f9be66a621627d079bb19bd5e53b/src/datomic/com/example/components/datomic.clj
clojure
(ns com.example.components.datomic (:require [com.fulcrologic.rad.database-adapters.datomic-cloud :as datomic] [datomic.client.api :as d] [mount.core :refer [defstate]] [com.example.model :refer [all-attributes]] [com.example.components.config :refer [config]])) (defstate ^{:on-reload :noop} dato...
6b5c666431486c181d91cfa15c07a81799eb7fe00b2a58fa233fc102e9c6e65b
leithaus/rhocaml
shell.ml
(* -*- mode: Tuareg;-*- *) (* Filename: shell.ml *) (* Authors: lgm *) Creation : Mon Mar 21 15:01:10 2005 Cop...
null
https://raw.githubusercontent.com/leithaus/rhocaml/7b0c7bfa99dd98059a1e8899007c4b5d258f99ed/shell.ml
ocaml
-*- mode: Tuareg;-*- Filename: shell.ml Authors: lgm See LICENSE.BIOSIM in the license directory. Description: ...
Creation : Mon Mar 21 15:01:10 2005 Copyright : Biosimilarity LLC 2005 . All rights reserved . open Rho open Logic open Geometry open Geometrize type command = Quit | Eval of process | Prove of formula | Check of judgment | Geometry of...
f3d2d7d8fa1f4d3acdc55910f4453a78bca5bf38882871a14426deacaac9a839
takikawa/racket-ppa
reconstruct.rkt
; general assertions about reconstruction: a varref can only occur at the top of a mark - list a varref at the top of the mark - list must either be a top - level - variable ; or have a value in some mark somewhere (or both). #lang racket/base (require (prefix-in kernel: syntax/kerncase) racket/contract...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/d336bb10e3e0ec3a20020e9ade9e77d2f6f80b6d/share/pkgs/htdp-lib/stepper/private/reconstruct.rkt
racket
general assertions about reconstruction: or have a value in some mark somewhere (or both). front ends for reconstruct-current the let-glump is a structure that contains the reconstruct-time data about a let-binding; that is, the names on the left-hand-side, the expression on the right-hand side, and the values c...
a varref can only occur at the top of a mark - list a varref at the top of the mark - list must either be a top - level - variable #lang racket/base (require (prefix-in kernel: syntax/kerncase) racket/contract racket/match "marks.rkt" "model-settings.rkt" "shared.rkt" ...
d24266ff5088abc28e3d6f55127502f4040f0bf02217031dfe1a2a1af2d22e1d
ucsd-progsys/liquidhaskell
T1404_0.hs
{-@ LIQUID "--expect-any-error" @-} module T1404_0 where {-@ absurd :: {False} @-} absurd :: a absurd = let loop x = loop x in loop () @ oneIsTwo : : { 1 = = 2 } @ oneIsTwo :: () oneIsTwo = absurd
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/terminate/neg/T1404_0.hs
haskell
@ LIQUID "--expect-any-error" @ @ absurd :: {False} @
module T1404_0 where absurd :: a absurd = let loop x = loop x in loop () @ oneIsTwo : : { 1 = = 2 } @ oneIsTwo :: () oneIsTwo = absurd
13ed2813803066163c6835390aec4f92acc67737a812c0c9fb92ff5cb6da50c9
OCamlPro/ez_api
test_ppx_client.ml
open Test_ppx_lib open Lwt.Infix let () = EzLwtSys.run @@ fun () -> EzReq_lwt.post0 (EzAPI.BASE ":8080") echo_input ~input:"bla" >|= function | Error (EzReq_lwt_S.UnknownError {code; msg}) -> EzDebug.printf "error %d %s" code (Option.value ~default:"none" msg) | Error _ -> EzDebug.printf "error" | Ok s -...
null
https://raw.githubusercontent.com/OCamlPro/ez_api/42ec84f952f3d2d93c4edd34103f98de923f3050/test/ppx/test_ppx_client.ml
ocaml
open Test_ppx_lib open Lwt.Infix let () = EzLwtSys.run @@ fun () -> EzReq_lwt.post0 (EzAPI.BASE ":8080") echo_input ~input:"bla" >|= function | Error (EzReq_lwt_S.UnknownError {code; msg}) -> EzDebug.printf "error %d %s" code (Option.value ~default:"none" msg) | Error _ -> EzDebug.printf "error" | Ok s -...
c6f894a06e7957cecb89ab6beb5933bfbc471f55815caabc853afc141da5b8fc
jwiegley/notes
Froo.hs
# LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # module Froo where import Control.Applicative import Test.QuickCheck data Free f a = Pure a | Free (f (Free f a)) deriving Functor instance (Applicative f, Eq a, Eq (f (Fr...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Froo.hs
haskell
Every Froo can be embedded in Free allows irregular structures. For example: Regular: o / \ o o / \ / \ o o o o Irregular: o / \ o o / \ o o
# LANGUAGE UndecidableInstances # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE DeriveFunctor # # LANGUAGE LambdaCase # module Froo where import Control.Applicative import Test.QuickCheck data Free f a = Pure a | Free (f (Free f a)) deriving Functor instance (Applicative f, Eq a, Eq (f (Fr...
81ea784f9b5c2f5f9e5b74a232c19fd9ac0ba25aa9046dfd64fb3d072f87629f
bmeurer/ocaml-experimental
builtini_index.ml
##ifdef CAMLTK (* sp to avoid being picked up by doc scripts *) type index_constrs = CNumber | CActiveElement | CEnd | CLast | CNoIndex | CInsert | CSelFirst | CSelLast | CAt | CAtXY | CAnchorPoint | CPattern | C...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/builtin/builtini_index.ml
ocaml
sp to avoid being picked up by doc scripts Assume returned values are only numerical and l.c .menu index returns none if arg is none, but blast it Don't put explicit typing Assume returned values are only numerical and l.c
##ifdef CAMLTK type index_constrs = CNumber | CActiveElement | CEnd | CLast | CNoIndex | CInsert | CSelFirst | CSelLast | CAt | CAtXY | CAnchorPoint | CPattern | CLineChar | CMark | CTagFirst ...
289c4eede9b59fe08c21333d46f933e0edbc896cdc1bdc5fa02e61b0f7cc7278
data61/Mirza
InitClient.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Mirza.Common.Tests.InitClient where import Mirza.OrgRegistry.Database.Schema import Mirza.OrgRegistry.Main (ServerOptionsOR (..), ...
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/or_scs/test/Mirza/Common/Tests/InitClient.hs
haskell
# LANGUAGE OverloadedStrings # ***************************************************************************** ***************************************************************************** construct as it could lead to problems...users not specifying the database and accidentally operating on the wrong database. See...
# LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Mirza.Common.Tests.InitClient where import Mirza.OrgRegistry.Database.Schema import Mirza.OrgRegistry.Main (ServerOptionsOR (..), addAuthOptions, ...
fa4711922d650118f136fd58b7b24a44eb7a6f950b53151b2ee7c20214ff32ce
tmaciejewski/see
see_crawler_sup.erl
-module(see_crawler_sup). -behaviour(supervisor). -export([start_link/1]). -export([init/1]). -define(DEFAULT_CRAWLER_NUM, 1). start_link(Options) -> supervisor:start_link({local, ?MODULE}, ?MODULE, Options). init(Options) -> CrawlerNum = proplists:get_value(crawler_num, Options, ?DEFAULT_CRAWLER_NUM), ...
null
https://raw.githubusercontent.com/tmaciejewski/see/3838d06c291fe486a5b3634f1fedcd82336ed985/apps/crawler/src/see_crawler_sup.erl
erlang
-module(see_crawler_sup). -behaviour(supervisor). -export([start_link/1]). -export([init/1]). -define(DEFAULT_CRAWLER_NUM, 1). start_link(Options) -> supervisor:start_link({local, ?MODULE}, ?MODULE, Options). init(Options) -> CrawlerNum = proplists:get_value(crawler_num, Options, ?DEFAULT_CRAWLER_NUM), ...
4b9ac4cb6dc04e5aee78090f6df1bcf091f101551c8ce99050794062dc178203
senapk/funcional_arcade
solver.hs
myreplicate n x | n == 0 = [] | otherwise = x : replicate (n - 1) x main = do print $ myreplicate 4 0 == [0, 0, 0, 0] print $ myreplicate 2 True == [True, True] print $ myreplicate 3 "banana" == ["banana", "banana", "banana"]
null
https://raw.githubusercontent.com/senapk/funcional_arcade/89625b4559b3e590d88dd70a27b6cbdc07cc2988/base/074/solver.hs
haskell
myreplicate n x | n == 0 = [] | otherwise = x : replicate (n - 1) x main = do print $ myreplicate 4 0 == [0, 0, 0, 0] print $ myreplicate 2 True == [True, True] print $ myreplicate 3 "banana" == ["banana", "banana", "banana"]
a8e85d4d0117d9d1bfdd7b30fcf150586e620300c7ee0b23dbae0ba50927bf0d
97jaz/gregor
date-provider.rkt
#lang racket/base (require rackunit rackunit/text-ui gregor gregor/time) (run-tests (test-suite "[date providers]" (test-case "date-provider?" (check-true (date-provider? (date 2000))) (check-true (date-provider? (datetime 2000))) (check-true (date-provider? (moment 2000...
null
https://raw.githubusercontent.com/97jaz/gregor/91d71c6082fec4197aaf9ade57aceb148116c11c/gregor-test/gregor/tests/date-provider.rkt
racket
#lang racket/base (require rackunit rackunit/text-ui gregor gregor/time) (run-tests (test-suite "[date providers]" (test-case "date-provider?" (check-true (date-provider? (date 2000))) (check-true (date-provider? (datetime 2000))) (check-true (date-provider? (moment 2000...
52f715cb75dd3052c4af9ca4a21b979171f726e5dbded4c6243fe4c0301b6886
LaPingvino/Climacs
java-syntax.lisp
-*- Mode : Lisp ; Package : CLIMACS - JAVA - SYNTAX -*- ( c ) copyright 2005 by ( ) ( c ) copyright 2006 by ( ) ( c ) copyright 2007 by ( ) ;;; ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Gener...
null
https://raw.githubusercontent.com/LaPingvino/Climacs/d5e45094b76dab0c716b2de7764a85e35e8bea4e/java-syntax.lisp
lisp
Package : CLIMACS - JAVA - SYNTAX -*- This library is free software; you can redistribute it and/or 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 the GNU License al...
( c ) copyright 2005 by ( ) ( c ) copyright 2006 by ( ) ( c ) copyright 2007 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more detai...
3d79f80620b4692e4344af73d46a9b5af0769815943f2a57487184ce24818339
simonmichael/hledger
UIState.hs
| UIState operations . module Hledger.UI.UIState (uiState ,uiShowStatus ,setFilter ,setMode ,setReportPeriod ,showMinibuffer ,closeMinibuffer ,toggleCleared ,toggleConversionOp ,toggleIgnoreBalanceAssertions ,toggleEmpty ,toggleForecast ,toggleHistorical ,togglePending ,toggleUnmarked ,toggleReal ,toggleTree ,setTre...
null
https://raw.githubusercontent.com/simonmichael/hledger/3a0473b5b4d45b2fa24284e7a0c8616855136cab/hledger-ui/Hledger/UI/UIState.hs
haskell
| Make an initial UI state with the given options, journal, parent screen stack if any, and starting screen. | Toggle between showing only unmarked items or all items. | Toggle between showing only pending items or all items. | Toggle between showing only cleared items or all items. which will be shown comma-sepa...
| UIState operations . module Hledger.UI.UIState (uiState ,uiShowStatus ,setFilter ,setMode ,setReportPeriod ,showMinibuffer ,closeMinibuffer ,toggleCleared ,toggleConversionOp ,toggleIgnoreBalanceAssertions ,toggleEmpty ,toggleForecast ,toggleHistorical ,togglePending ,toggleUnmarked ,toggleReal ,toggleTree ,setTre...
b7fa420ebf142d27007cb6e5a6792c7353cb1c56772e1666b707ea429de8b5bc
borodust/trivial-gamekit
resources.lisp
(cl:in-package :trivial-gamekit) (declaim (special *resource-registry*)) (define-constant +game-resource-root+ "/_asset/" :test #'equal) (define-constant +kit-resource-root+ "/_gamekit/" :test #'equal) (defvar *resources* nil) (defvar *resouce-packages* nil) (defvar *gamekit-assets-root* (merge-pathnames...
null
https://raw.githubusercontent.com/borodust/trivial-gamekit/17e4be8ff69e711346dddda0680677ca5bafc61b/src/resources.lisp
lisp
(cl:in-package :trivial-gamekit) (declaim (special *resource-registry*)) (define-constant +game-resource-root+ "/_asset/" :test #'equal) (define-constant +kit-resource-root+ "/_gamekit/" :test #'equal) (defvar *resources* nil) (defvar *resouce-packages* nil) (defvar *gamekit-assets-root* (merge-pathnames...
ff7d8a603bf0e0765be4f6e22f0bfd83f8dec47872f961d210573138d3884ae7
brendanhay/gogol
Create.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-pubsub/gen/Gogol/PubSub/Projects/Topics/Create.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Creates the given topic with the given name. See the [resource name rules] (https:\/\/cloud.google.com\/pubsub\/docs\/admin#resource_names). /See:/ < Cloud Pub/Sub API Reference> for @pubsub.projects.topics.create@. * Resource ...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
081f1b43d372a269710b2c1167aa2cb100cadbb9206f1df28c2b3595bb534abc
deadpendency/deadpendency
AppEventLevel.hs
module Common.Effect.AppEventEmit.Model.AppEventLevel (AppEventLevel (..)) where data AppEventLevel = AppEventLevelError | AppEventLevelWarning | AppEventLevelInfo | AppEventLevelDebug deriving stock (Eq, Show)
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/Effect/AppEventEmit/Model/AppEventLevel.hs
haskell
module Common.Effect.AppEventEmit.Model.AppEventLevel (AppEventLevel (..)) where data AppEventLevel = AppEventLevelError | AppEventLevelWarning | AppEventLevelInfo | AppEventLevelDebug deriving stock (Eq, Show)
5475628fb3a828b2a5b6cba512aa13b231256eb32b18a5a9dbe428818a965d1d
adobe/Chronikis
InferShapesBoundsSpec.hs
Copyright 2019 Adobe . All rights reserved . This file is licensed to you 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 , sof...
null
https://raw.githubusercontent.com/adobe/Chronikis/b83b9e38341cdc1539fc7625c6355c6fd176d8a3/compiler/test/InferShapesBoundsSpec.hs
haskell
, Type(isDistr) Turn x into an IO action that forces the evaluation of x
Copyright 2019 Adobe . All rights reserved . This file is licensed to you 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 , sof...
ecd841d427e9947a80cb60e69e89960b27d33c3d5802d9c2fe50c1367c4f89dc
orbitz/scow
scow_server_follower.ml
open Core.Std open Async.Std module Make = functor (Statem : Scow_statem.S) -> functor (Log : Scow_log.S with type elt = Statem.op) -> functor (Store : Scow_store.S) -> functor (Transport : Scow_transport.S with type Node.t = Store.node and type elt = Log.elt) ...
null
https://raw.githubusercontent.com/orbitz/scow/feb633ef94824f44f0ffc679a548f97288c8ae48/lib/scow/scow_server_follower.ml
ocaml
We assume there are no gaps in the log * If this function returns successfully it means that the log is in * a valid state for calling [append] let string_of_error = function | `Not_found idx -> sprintf "Not_found %d" (Scow_log_index.to_int idx) | `Append_failed -> "Append_failed" | `Tra...
open Core.Std open Async.Std module Make = functor (Statem : Scow_statem.S) -> functor (Log : Scow_log.S with type elt = Statem.op) -> functor (Store : Scow_store.S) -> functor (Transport : Scow_transport.S with type Node.t = Store.node and type elt = Log.elt) ...
aa9557db4d5b58395fe5f7304df8ceab6bb564e0b2abbb1d11040935de182c1d
Decentralized-Pictures/T4L3NT
test_snapshots.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_store/test/test_snapshots.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2020 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 " , WIT...
cd83924c5fe5b959ad8bb5ee7bf56f96060d088b32cf91a2394d5844d7b86506
simplegeo/erlang
io_lib_fread.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/stdlib/src/io_lib_fread.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 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(io_lib_fread). -export([fread/2,f...
157affcd4301d479182fd91c960ad9eaa9af427fe02007f7d5d02d9be4750ea9
mirage/irmin-server
client.ml
open Irmin_server_internal open Lwt.Syntax open Lwt.Infix include Client_intf exception Continue module Conf = struct include Irmin.Backend.Conf include Conf end let config = Conf.v module Client (I : IO) (Codec : Conn.Codec.S) (Store : Irmin.Generic_key.S) = struct module C = Command.Make (I) (Codec) (Store)...
null
https://raw.githubusercontent.com/mirage/irmin-server/ffda6269663bfe8e0dd0ce1c7053d6e57f1f2deb/src/irmin-client/client.ml
ocaml
Overrides
open Irmin_server_internal open Lwt.Syntax open Lwt.Infix include Client_intf exception Continue module Conf = struct include Irmin.Backend.Conf include Conf end let config = Conf.v module Client (I : IO) (Codec : Conn.Codec.S) (Store : Irmin.Generic_key.S) = struct module C = Command.Make (I) (Codec) (Store)...
0c998f21d8844ff95a8f94ce23d62c82e54b6d9d3edd6ff825e02d4a380f7ef8
gregnwosu/haskellbook
Exercises.hs
# LANGUAGE InstanceSigs # module Exercises where newtype Compose f g a = Compose { getCompose :: f (g a)} deriving ( Eq, Show) instance (Functor f, Functor g) => Functor (Compose f g) where fmap f (Compose fga) = Compose $ (fmap . fmap) f fga instance (Applicative f , Applicative g) => Applicative (C...
null
https://raw.githubusercontent.com/gregnwosu/haskellbook/b21fb6772e58f07cff334d9c551d0477ec856897/chapter25/src/Exercises.hs
haskell
# LANGUAGE InstanceSigs # module Exercises where newtype Compose f g a = Compose { getCompose :: f (g a)} deriving ( Eq, Show) instance (Functor f, Functor g) => Functor (Compose f g) where fmap f (Compose fga) = Compose $ (fmap . fmap) f fga instance (Applicative f , Applicative g) => Applicative (C...
3780f811f5c6aebf25c5a17e082e1a1592042ec496d235db76f6069d3c971865
input-output-hk/cardano-ledger
Model.hs
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Test.Cardano.Chain.Delegation.Model ( tests, ) where import Byron.Spec.Ledger.Delegation (DELEG, SDELEG) import qualified Byron.Spec.Ledge...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/31c0bb1f5e78e40b83adfd1a916e69f47fdc9835/eras/byron/ledger/impl/test/Test/Cardano/Chain/Delegation/Model.hs
haskell
------------------------------------------------------------------------------ SDELEG Property ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ SDELEG State ----------------------------------------------------...
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Test.Cardano.Chain.Delegation.Model ( tests, ) where import Byron.Spec.Ledger.Delegation (DELEG, SDELEG) import qualified Byron.Spec.Ledge...