_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
e803794958b63db8c8ecbcb0af83cd283b16423a95cbd7e3228170b679e0884a
uwplse/Cassius
input.rkt
#lang racket (require "common.rkt" "dom.rkt" "tree.rkt" "spec/css-properties.rkt" "spec/browser-style.rkt") (provide parse-file) (define (parse-file port) (define problems (make-hash)) (define fonts (make-hash)) (define sheets (make-hash (list (cons 'firefox firefox-sheet) (con...
null
https://raw.githubusercontent.com/uwplse/Cassius/57faca21214c609ae2055d57e75f56ddbe670c5b/src/input.rkt
racket
#lang racket (require "common.rkt" "dom.rkt" "tree.rkt" "spec/css-properties.rkt" "spec/browser-style.rkt") (provide parse-file) (define (parse-file port) (define problems (make-hash)) (define fonts (make-hash)) (define sheets (make-hash (list (cons 'firefox firefox-sheet) (con...
0644b1284e83a6524925516affcffe4ac86c890e65456e2d55f024916944d6b5
basho/riak_kv
riak_kv_pipe_listkeys.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2011 Basho Technologies , Inc. %% 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 obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_pipe_listkeys.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 ) 2011 Basho Technologies , Inc. 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 Each filter should be a ...
1ed815ebdcdc9c0c288c090cc68c9b3feb21c3be8df593247781b258d1396f06
symbiont-io/detsys-testkit
HttpTest.hs
# LANGUAGE ScopedTypeVariables # module StuntDouble.Transport.HttpTest where import Control.Exception import Control.Concurrent import Test.HUnit import StuntDouble.Transport.Http import StuntDouble.Transport import StuntDouble ------------------------------------------------------------------------ unit_transport...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/29a3a0140730420e4c5cc8db23df6fdb03f9302c/src/runtime-prototype/test/StuntDouble/Transport/HttpTest.hs
haskell
----------------------------------------------------------------------
# LANGUAGE ScopedTypeVariables # module StuntDouble.Transport.HttpTest where import Control.Exception import Control.Concurrent import Test.HUnit import StuntDouble.Transport.Http import StuntDouble.Transport import StuntDouble unit_transportHttp :: IO () unit_transportHttp = do let port = 3001 url = ":" +...
3da7283468d063db9f5f6a249a6f474c5c8b10d123746edb3ca133890ee50fde
BinaryAnalysisPlatform/bap
dwarf_fbi.mli
open Core_kernel[@@warning "-D"] open Bap.Std open Dwarf_types type t type fn [@@deriving bin_io, compare, sexp] * [ create data ] tries to create a DWARF reader , from supplied [ data ] . May yield an error , if there was n't sufficient sections , or if format is not understandable . To provide in...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_dwarf/dwarf_fbi.mli
ocaml
* [functions searcher] enumerates functions * Current function representation.
open Core_kernel[@@warning "-D"] open Bap.Std open Dwarf_types type t type fn [@@deriving bin_io, compare, sexp] * [ create data ] tries to create a DWARF reader , from supplied [ data ] . May yield an error , if there was n't sufficient sections , or if format is not understandable . To provide in...
2cd2ecd922bd8dea2592ebc7da4c3e194e7e566d7c140b5a82ab577da87e3471
jeffshrager/biobike
pathnames.lisp
;; Copyright ( c ) 2005 , Gigamonkeys Consulting All rights reserved . ;; (in-package #:com.gigamonkeys.pathnames) (defun list-directory (dirname) "Return a list of the contents of the directory named by dirname. Names of subdirectories will be returned in `directory normal form'. Unlike CL:DIRECTORY, LIST-DIRECT...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/ThirdParty/monkeylib/pathnames/pathnames.lisp
lisp
`dirname' should simply be a pathname that form just the way we want. OpenMCl by default doesn't return subdirectories at all. But when prodded to do so with the special argument :directories, it returns them in directory form. change that with the :directories-are-files argument. can bludgeon even it into doi...
Copyright ( c ) 2005 , Gigamonkeys Consulting All rights reserved . (in-package #:com.gigamonkeys.pathnames) (defun list-directory (dirname) "Return a list of the contents of the directory named by dirname. Names of subdirectories will be returned in `directory normal form'. Unlike CL:DIRECTORY, LIST-DIRECTORY do...
4be8787cffad05f0583fbe2d9d9b8d8ea3e5be4d170ce1ce9c03e4e53493c87d
mkoppmann/eselsohr
Id.hs
# OPTIONS_GHC -fno - warn - orphans # module Lib.Infra.Persistence.Model.Id where import Data.Aeson.Types ( FromJSON , FromJSONKey , ToJSON , ToJSONKey ) import Data.UUID (UUID) import Lib.Domain.Id (Id) import qualified Lib.Domain.Id as Domain deriving via UUID instance FromJSON (Id a) deriving...
null
https://raw.githubusercontent.com/mkoppmann/eselsohr/3bb8609199c1dfda94935e6dde0c46fc429de84e/src/Lib/Infra/Persistence/Model/Id.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Lib.Infra.Persistence.Model.Id where import Data.Aeson.Types ( FromJSON , FromJSONKey , ToJSON , ToJSONKey ) import Data.UUID (UUID) import Lib.Domain.Id (Id) import qualified Lib.Domain.Id as Domain deriving via UUID instance FromJSON (Id a) deriving...
e11ac3d0bbe58f00f90137ed0742bcb6d9bdb4312838c0268726773b33c335fb
xapi-project/xen-api
xapi_role.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/xapi/xapi_role.ml
ocaml
* Module that defines API functions for Role objects * @group XenAPI functions A note on roles: Here, roles and permissons are treated as a recursive type, where the permissions are the leaves and roles are intermediate nodes of the tree efficient look-up structures initialize static_role_by_uuid_tbl ini...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
587580ad0d0690184e24a3caf131e075af6ece959015ca53394f269fe9db209c
shaunlebron/gh4st
board.cljs
(ns gh4st.board (:require [gh4st.math :refer [add-pos]] ) ) ;; board size (def rows 11) (def cols 21) ;; NOTE: make sure this matches "$colls" in style.scss (def toggle-tile {:O :_ :_ :O}) (def decode-tile {:O :floor :_ :wall}) (def encode-tile {:floor :O :wall :_}) (defn empty-board "...
null
https://raw.githubusercontent.com/shaunlebron/gh4st/e329f42f0d19ddeebcf85ca0e1efa03d9af22a56/src/gh4st/board.cljs
clojure
board size NOTE: make sure this matches "$colls" in style.scss
(ns gh4st.board (:require [gh4st.math :refer [add-pos]] ) ) (def rows 11) (def toggle-tile {:O :_ :_ :O}) (def decode-tile {:O :floor :_ :wall}) (def encode-tile {:floor :O :wall :_}) (defn empty-board "create initial empty board" ([] (empty-board cols rows)) ([w h] (vec (repeat...
b4359b238df587864f466a312447e8e4eacdcf6bbd1fd9f46ebb4f8fc9cb453b
ocaml-ppx/ocamlformat
Sugar.mli
(**************************************************************************) (* *) (* OCamlFormat *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/41b6ec9e468150e795ea6e74fd90b7a680c0c5d6/lib/Sugar.mli
ocaml
************************************************************************ OCamlFormat ...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in open Migrate_ast open Asttypes open Extended_ast type arg_kind = | Val of arg_label * pattern Ast.xt * expression Ast.xt option | Newtypes of string loc list val...
0362e6ae0b608596f096004daa195c6aefe64e3e8f575348bf93eaa32bf84f6f
TheClimateCorporation/prng
mersenne_twister.clj
(ns com.climate.prng.generators.mersenne-twister "A Clojure implementation of the 64-bit Mersenne Twister MT19937. A reference implementation in C (distributed under a MIT-style license) and related documentation can be found at -u.ac.jp/~m-mat/MT/emt64.html This implementation uses the jump-ahead algo...
null
https://raw.githubusercontent.com/TheClimateCorporation/prng/60449e0da796c5afdc21e57dd39160bb1a6f9705/src/clj/com/climate/prng/generators/mersenne_twister.clj
clojure
Constants 0xFFFFFFFF80000000 Implementation negative jump-size is not supported jump-size equals a precomputed jump size snapshot the current state jump-size is smaller than the smallest precomputed jump size jump-size must be greater than the smallest precomputed jump size Jump as close as possible to the tar...
(ns com.climate.prng.generators.mersenne-twister "A Clojure implementation of the 64-bit Mersenne Twister MT19937. A reference implementation in C (distributed under a MIT-style license) and related documentation can be found at -u.ac.jp/~m-mat/MT/emt64.html This implementation uses the jump-ahead algo...
f15c43f88347be502fa7a484ee1351e77e553e4aa8bd3e573810c83a9179f07f
awslabs/s2n-bignum
bignum_ksqr_32_64.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_ksqr_32_64.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "arm/fastmul/bignum_ksqr_32_64.o";; *** arm_MOV X19 X0 arm_MOV X20 X1 arm_MOV X21 X2 arm_MOV X2 X21 arm_SBCS X15 X15 X17 arm_MOV ...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Karatsuba ( multi - level ) 32x32->64 squaring . ...
62ec5b9783c24ed444f67217076c58f33048db797f1d5c4c81d76014b7d0fdbd
rabbitmq/rabbitmq-management
rabbit_mgmt_http_health_checks_SUITE.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2016 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mgmt_http_health_checks_SUITE). -...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-management/543906f01ccd0344aff648f21bb6b5156b2a2ca2/test/rabbit_mgmt_http_health_checks_SUITE.erl
erlang
------------------------------------------------------------------- Testsuite setup/teardown. ------------------------------------------------------------------- ------------------------------------------------------------------- Testcases. -------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2016 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_http_health_checks_SUITE). -includ...
dadcde1499a4c79e34f52a6dcb10a0a992cbef2612c78f8ce488577e09aca641
benweitzman/hooks
Map.hs
# LANGUAGE InstanceSigs # module Control.Monad.Hooks.Primitives.Map where import Control.Monad.Hooks.Runtime import Control.Monad.Hooks.Class import qualified Data.Map as M import Control.Monad (forM, forM_) import qualified Data.Set as S import UnliftIO import Control.Monad.Hooks.Stateful import Control.Monad.Hooks....
null
https://raw.githubusercontent.com/benweitzman/hooks/4a87c55f78f80b4d751c749672ade496d2b6d843/src/Control/Monad/Hooks/Primitives/Map.hs
haskell
# LANGUAGE InstanceSigs # module Control.Monad.Hooks.Primitives.Map where import Control.Monad.Hooks.Runtime import Control.Monad.Hooks.Class import qualified Data.Map as M import Control.Monad (forM, forM_) import qualified Data.Set as S import UnliftIO import Control.Monad.Hooks.Stateful import Control.Monad.Hooks....
90f5dd422a64fa83c619a7097dcd4fb67152030124544906a5ca956ed3d7e84c
troydm/myweb
util.lisp
myweb - simple web server written in Common Lisp ;;; ;;; util.lisp ;;; Author : < > ;;; ;;; This program is free software: you can redistribute it and/or modify ;;; it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;...
null
https://raw.githubusercontent.com/troydm/myweb/5067add358b92386db0ee593f2d8b13c2c6336aa/util.lisp
lisp
util.lisp This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warra...
myweb - simple web server written in Common Lisp Author : < > the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . (in-package :myweb.util) (defvar *new-line* (concatenate 'string (string #\Return) (string #\Newline))) (defun parse-reque...
3b0fbc573272d899972a23f97caf1a422d9b01511d8198ded57793f6d8b176ff
charlieg/Sparser
angle-brackets1.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1991,1992,1993,1994,1995 -- all rights reserved Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved $ Id:$ ;;; ;;; File: "angle brackets" ;;; Module: "grammar;rules:traversal:" Version : 1.0 September ...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/traversal/angle-brackets1.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "angle brackets" Module: "grammar;rules:traversal:" ------- setup ------- ------------------- traversal actions ------------------- (break/debug "Can't find matching open angle bracket"))
copyright ( c ) 1991,1992,1993,1994,1995 -- all rights reserved Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved $ Id:$ Version : 1.0 September 1994 1.0 ( 6/15/94 ) broke out most of the code as a standard dispatch . 9/15/95 cleaned up 2/23/07 dropped the check that the matching open...
97cdde6a579c5d20277f1e1261c38513f0a6728734f82cbbe9777ad3918e2909
spurious/sagittarius-scheme-mirror
%3a115.scm
(import (rnrs) (core base) (srfi :64) (srfi :115)) (define-syntax test (syntax-rules () ((_ expect actual) (test-equal (format "expr ~s: exptected ~s" 'actual 'expect) expect actual)))) (define (maybe-match->sexp rx str . o) (guard (e (else (print (condition-message e) (condition-irritants e)))) ...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/srfi/%253a115.scm
scheme
'(: (* (*$ (or "ab" "cd"))) "c") *** ditto this causes macro expansion error. partition char-set symbol found in larceny not yet fixed bugs
(import (rnrs) (core base) (srfi :64) (srfi :115)) (define-syntax test (syntax-rules () ((_ expect actual) (test-equal (format "expr ~s: exptected ~s" 'actual 'expect) expect actual)))) (define (maybe-match->sexp rx str . o) (guard (e (else (print (condition-message e) (condition-irritants e)))) ...
fba6617b48c0f07f0ca8ab23259ad8f958db9acdf82b94c5630287061ac91cd5
alphaHeavy/llvm-general-typed
IntegerOf.hs
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module LLVM.General.Typed.IntegerOf ( IntegerOf(..) ) where import Data.Int import Data.Proxy import Data.Word import GHC.TypeLits import LLVM.General.Typed.Value import LLVM.General.Typed.ValueOf class...
null
https://raw.githubusercontent.com/alphaHeavy/llvm-general-typed/75c39111f7fc685aacb3eaf1b2948451e7222e0b/llvm-general-typed-pure/src/LLVM/General/Typed/IntegerOf.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module LLVM.General.Typed.IntegerOf ( IntegerOf(..) ) where import Data.Int import Data.Proxy import Data.Word import GHC.TypeLits import LLVM.General.Typed.Value import LLVM.General.Typed.ValueOf class...
2cecb7968373898f89210390b22a3e837d79a43e0dbc6bad1e5758806704c569
seanomlor/programming-in-haskell
third.hs
third1 :: [a] -> a third1 xs | length xs <= 2 = error "list is too small" | otherwise = head (tail (tail xs)) third2 :: [a] -> a third2 xs | length xs <= 2 = error "list is too small" | otherwise = xs !! 2 third3 :: [a] -> a third3 (_:_:x:_) = x third3 _ = error "list is too small"
null
https://raw.githubusercontent.com/seanomlor/programming-in-haskell/e05142e6709eeba2e95cf86f376a32c9e629df88/04-defining-functions/third.hs
haskell
third1 :: [a] -> a third1 xs | length xs <= 2 = error "list is too small" | otherwise = head (tail (tail xs)) third2 :: [a] -> a third2 xs | length xs <= 2 = error "list is too small" | otherwise = xs !! 2 third3 :: [a] -> a third3 (_:_:x:_) = x third3 _ = error "list is too small"
af35c886626238719964a9e8bd0d1f341f934bbe611e8e43686d0076362ed64f
vincenthz/hs-pem
Writer.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- Module : Data.PEM.Writer -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : portable -- module Data.PEM.Writer ( pemWriteLBS , pemWriteBS ) where import Data.PEM.Types import Data.ByteString (ByteString) import q...
null
https://raw.githubusercontent.com/vincenthz/hs-pem/f83c850b29850d9c6e4307984cd314f7fa8bd2d7/Data/PEM/Writer.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Data.PEM.Writer License : BSD-style Stability : experimental Portability : portable | write a PEM structure to a builder expect only ASCII. need to find a type to represent it. | convert a PEM structure to a bytestring | convert a PEM structure to a lazy by...
Maintainer : < > module Data.PEM.Writer ( pemWriteLBS , pemWriteBS ) where import Data.PEM.Types import Data.ByteString (ByteString) import qualified Data.ByteString as B import qualified Data.ByteString.Char8 as BC import qualified Data.ByteString.Lazy as L import Data.ByteArray.Encoding ...
9f4761bb40a91815264070733c5a0c5c4ffd580fe0471aad6cc91684dc6826ae
markandrus/twilio-haskell
Addresses.hs
# LANGUAGE MultiParamTypeClasses # {-#LANGUAGE OverloadedStrings #-} ------------------------------------------------------------------------------- -- | -- Module : Twilio.Addresses Copyright : ( C ) 2017- -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Stability : p...
null
https://raw.githubusercontent.com/markandrus/twilio-haskell/00704dc86dbf2117b855b1e2dcf8b6c0eff5bfbe/src/Twilio/Addresses.hs
haskell
#LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- | Module : Twilio.Addresses License : BSD-style (see the file LICENSE) Stability : provisional ----------------------------------------------------------------------------- * Resource
# LANGUAGE MultiParamTypeClasses # Copyright : ( C ) 2017- Maintainer : < > module Twilio.Addresses Addresses(..) , Twilio.Addresses.get ) where import Control.Applicative import Control.Monad.Catch import Data.Aeson import Data.Maybe import Control.Monad.Twilio import Twilio.Address impor...
0b6a814e247b2f52cee6c7df5b99d13df18cc8b6d323cacdb69fd0cd98262cce
russmatney/ralphie
git.clj
(ns ralphie.git (:require [babashka.process :refer [$ check] :as process] [babashka.fs :as fs] [cheshire.core :as json] [defthing.defcom :refer [defcom] :as defcom] [ralphie.notify :refer [notify]] [ralphie.rofi :as rofi] [ralphie.config :as config] [ralphie.clipboard :as clipboard] [ralphi...
null
https://raw.githubusercontent.com/russmatney/ralphie/9c9d51e28516db20f94e63f3c6146e8c93fb6295/src/ralphie/git.clj
clojure
local repos or just memoize? remove failed expansions transforms fetch github stars clone clone cmd, handler repo? fetch update local repos dirty/is-clean? needs-push? needs-pull? last fetch status
(ns ralphie.git (:require [babashka.process :refer [$ check] :as process] [babashka.fs :as fs] [cheshire.core :as json] [defthing.defcom :refer [defcom] :as defcom] [ralphie.notify :refer [notify]] [ralphie.rofi :as rofi] [ralphie.config :as config] [ralphie.clipboard :as clipboard] [ralphi...
d8a687e7456c3ad0fd6dfc40f28ad6321a09f47c36ea9f872fec24cbf62e92a2
spurious/sagittarius-scheme-mirror
%3a41.scm
-*- mode : scheme ; coding : utf-8 ; -*- #!core (library (srfi :41) (export :all) (import (srfi :41 streams)))
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a41.scm
scheme
coding : utf-8 ; -*-
#!core (library (srfi :41) (export :all) (import (srfi :41 streams)))
57840eee8b889b6a766dff07c20ecd87366f2e3865d5019ae56d03dbbd2fa562
sweirich/pi-forall
Equal.hs
{- pi-forall language -} | Compare two terms for equality module Equal (whnf, equate, ensurePi, ensureTyEq, ) where import Syntax import Environment ( D(DS, DD), TcMonad ) import qualified Environment as Env import qualified Unbound.Generics.LocallyNameless as Unbound import Control...
null
https://raw.githubusercontent.com/sweirich/pi-forall/69419e84d0495336ca133c1c1298b88b57cd62fa/version2/src/Equal.hs
haskell
pi-forall language if not, weak-head normalize and compare throw an error if they cannot be matched up ----------------------------------------------------- | Ensure that the given type 'ty' is a 'Pi' type (or could be normalized to be such) and return the components of the type. Throws an error if this is not...
| Compare two terms for equality module Equal (whnf, equate, ensurePi, ensureTyEq, ) where import Syntax import Environment ( D(DS, DD), TcMonad ) import qualified Environment as Env import qualified Unbound.Generics.LocallyNameless as Unbound import Control.Monad.Except (unless, ca...
10520d0e093bba9937582804f48bafab425a36f5390ee80f64427e9284a4c5b4
footprintanalytics/footprint-web
core_test.clj
(ns metabase.automagic-dashboards.core-test (:require [cheshire.core :as json] [clojure.core.async :as a] [clojure.test :refer :all] [java-time :as t] [metabase.api.common :as api] [metabase.automagic-dashboards.core :as magic] [metabase.automagi...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/automagic_dashboards/core_test.clj
clojure
------------------- `->reference` ------------------- ------------------- Rule matching ------------------- ------------------- `automagic-anaysis` ------------------- We want to both generate as many cards as we can to catch all aberrations, but also make sure that size limiting works. These test names were nam...
(ns metabase.automagic-dashboards.core-test (:require [cheshire.core :as json] [clojure.core.async :as a] [clojure.test :refer :all] [java-time :as t] [metabase.api.common :as api] [metabase.automagic-dashboards.core :as magic] [metabase.automagi...
56762317543c25d918e3a37abfa803ccff25f5eba12a7bce000096f9f40c1ca0
FranklinChen/learn-you-some-erlang
mafiapp.erl
-module(mafiapp). -behaviour(application). -include_lib("stdlib/include/ms_transform.hrl"). -export([start/2, stop/1]). -export([install/1]). -export([add_friend/4, friend_by_name/1, friend_by_expertise/1, add_service/4, debts/1]). -export([add_enemy/2, find_enemy/1, enemy_killed/1]). -record(mafiapp_friends...
null
https://raw.githubusercontent.com/FranklinChen/learn-you-some-erlang/878c8bc2011a12862fe72dd7fdc6c921348c79d6/mafiapp-1.0.0/src/mafiapp.erl
erlang
Alternative form: contact = '$2', info = '$3', expertise = Expertise}, [], F = fun() -> [{Name,C,I,E,find_services(Name)} || end, Adding validation is left to the reader The following implementation ...
-module(mafiapp). -behaviour(application). -include_lib("stdlib/include/ms_transform.hrl"). -export([start/2, stop/1]). -export([install/1]). -export([add_friend/4, friend_by_name/1, friend_by_expertise/1, add_service/4, debts/1]). -export([add_enemy/2, find_enemy/1, enemy_killed/1]). -record(mafiapp_friends...
a249a9109ebabd015c595e6e4e9352b57db570c43d3895358dc47d3cdc9060b3
walmartlabs/lacinia
expound_tests.clj
Copyright ( c ) 2017 - present Walmart , Inc. ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/walmartlabs/lacinia/88bf46f197bfed645d7767fcfe2bfa39e8b00b27/test/com/walmartlabs/lacinia/expound_tests.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright ( c ) 2017 - present Walmart , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns com.walmartlabs.lacinia.expound-tests "Tests that useful Expound messages are emitted for spec failures." (:require [c...
67d798455a129d821d647f158fe66938319f90a16f1847f4a7a308bb81d88397
hellonico/origami-fun
multiplecams.clj
gorilla-repl.fileformat = 1 ;; ** ;;; # Multiple Cams ;;; ;; ** ;; @@ (ns talented-silence (:require [opencv4.core :refer :all] [opencv4.colors.rgb :as rgb] [opencv4.utils :as u])) ;; @@ ;; => ;;; {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"} ;; <= ;; ** # # # one cam ...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/gorillas/chapter04/multiplecams.clj
clojure
** # Multiple Cams ** @@ @@ => {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"} <= ** ** @@ @@ -> <- => {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"} <= @@ @@
gorilla-repl.fileformat = 1 (ns talented-silence (:require [opencv4.core :refer :all] [opencv4.colors.rgb :as rgb] [opencv4.utils :as u])) # # # one cam setup (def detector (new-cascadeclassifier "resources/lbpcascade_frontalface.xml")) (defn draw-rect [mat rect _color] (rectangle mat ...
3aee3817ae121ead0fafc1157b9dd55e526c5d4852791999178ae96f0084be2e
jsa-aerial/saite
compiler.cljs
(ns aerial.saite.compiler (:require-macros [aerial.saite.analyzer :refer [analyzer-state]]) (:require [clojure.string :as cljstr] [goog.string :as gstring] [goog.string.format] [cljs.tools.reader :refer [read-string]] [cljs.env :as env] [cljs.js :refer [empty-state eval js-eval eval-str requ...
null
https://raw.githubusercontent.com/jsa-aerial/saite/5a176fe23bcb6c86e798119eaa8acae380d1818f/src/cljs/aerial/saite/compiler.cljs
clojure
(ns aerial.saite.compiler (:require-macros [aerial.saite.analyzer :refer [analyzer-state]]) (:require [clojure.string :as cljstr] [goog.string :as gstring] [goog.string.format] [cljs.tools.reader :refer [read-string]] [cljs.env :as env] [cljs.js :refer [empty-state eval js-eval eval-str requ...
c10931f97fa588b2fd26cdccde5deca7a2133c9608d9b9bef22b9ca47b569cf8
db48x/xe2
make-rlx-win32.lisp
;;; make-rlx-win32.lisp --- build script for win32 Copyright ( C ) 2009 Authors : < > ;; Keywords: games ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Lic...
null
https://raw.githubusercontent.com/db48x/xe2/7896fcc69f5c6e28eaf6f6abb7966d6663370a66/make-rlx-win32.lisp
lisp
make-rlx-win32.lisp --- build script for win32 Keywords: games This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or...
Copyright ( C ) 2009 Authors : < > 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 (in-package :cl-user) (require :asdf) (defvar *game* "inva...
501e138b24b529b96223e14f49c0d890ff79103bd28803aae242cc7a4487ec90
denisshevchenko/breadu.info
Validators.hs
{-| Module : BreadU.Tools.Validators Description : Validators for food values. Stability : experimental Portability : POSIX Validators for all food values submitted by user. -} module BreadU.Tools.Validators ( valueOfCarbsIsValid , minCarbs , maxCarbs , validate ) where import Br...
null
https://raw.githubusercontent.com/denisshevchenko/breadu.info/b613fa28a4b527f1459876348a72e7748f16cd88/src/lib/BreadU/Tools/Validators.hs
haskell
| Module : BreadU.Tools.Validators Description : Validators for food values. Stability : experimental Portability : POSIX Validators for all food values submitted by user. Run State-transformer via execState, so all checkers work within the same | Check missed values. User must enter food (via name or carbPe...
module BreadU.Tools.Validators ( valueOfCarbsIsValid , minCarbs , maxCarbs , validate ) where import BreadU.Types ( CarbPer100g , BU, Grams , BadInput...
7e7c17a6c268fd277fb38a9d98db998409ccd43a8a4f63c9caf776883e9f2790
TrustInSoft/tis-interpreter
offsetmap_lattice_with_isotropy.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_services/abstract_interp/offsetmap_lattice_with_isotropy.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
6c065a1158c173bd56e2bf9d225e92826c3c4d2da499236cdaeb7f712876d0c3
input-output-hk/ouroboros-network
Pure.hs
# LANGUAGE BangPatterns # # LANGUAGE GeneralizedNewtypeDeriving # module Test.Util.FS.Sim.Pure ( PureSimFS -- opaque , pureHasFS , runPureSimFS ) where import Control.Monad.Except import Control.Monad.State import Ouroboros.Consensus.Storage.FS.API import ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/0dcda09b6958205fe362524a7e5ea35dea320196/ouroboros-consensus-test/src/Test/Util/FS/Sim/Pure.hs
haskell
opaque
# LANGUAGE BangPatterns # # LANGUAGE GeneralizedNewtypeDeriving # module Test.Util.FS.Sim.Pure ( PureSimFS , pureHasFS , runPureSimFS ) where import Control.Monad.Except import Control.Monad.State import Ouroboros.Consensus.Storage.FS.API import Ourobor...
3df0b9d9da20fa2c7151e42f998e2adc901e85dfadfa106b4752cae2a27d5cfe
lambdacube3d/lambdacube-edsl
LC_Convert.hs
module LC_Convert where import Data.Typeable import LC_APIType import LC_T_APIType hiding (Texture,Interpolated,FlatTuple) import LC_I_APIType (FlatTupleI,InterpolatedI) import LC_T_DSLType import LCDSLType --import LCDeBruijnUtil import LC_I_DeBruijn import LC_T_DeBruijn (Idx(..)) import LC_GADT_HOAS as H import LC_...
null
https://raw.githubusercontent.com/lambdacube3d/lambdacube-edsl/4347bb0ed344e71c0333136cf2e162aec5941df7/lambdacube-core/tmp/sandbox/LC_Convert.hs
haskell
import LCDeBruijnUtil Layouts ------- A layout of an environment has an entry for each entry of the environment. Each entry in the layout holds the deBruijn index that refers to the corresponding entry in the environment. Project the nth index out of an environment layout. Add an entry to a layout, incrementin...
module LC_Convert where import Data.Typeable import LC_APIType import LC_T_APIType hiding (Texture,Interpolated,FlatTuple) import LC_I_APIType (FlatTupleI,InterpolatedI) import LC_T_DSLType import LCDSLType import LC_I_DeBruijn import LC_T_DeBruijn (Idx(..)) import LC_GADT_HOAS as H import LC_T_DeBruijn as D import q...
e6fe4b99acb8ef7957a38a682db5b59b9dc2229bae5a709590a86589728d16d0
mvoidex/hsdev
ClearImports.hs
module HsDev.Tools.ClearImports ( dumpMinimalImports, waitImports, cleanTmpImports, findMinimalImports, groupImports, splitImport, clearImports, module Control.Monad.Except ) where import Control.Arrow import Control.Concurrent (threadDelay) import Control.Exception import Control.Monad.Except import Data.Char ...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Tools/ClearImports.hs
haskell
| Dump minimal imports | Read imports from file | Clean temporary files | Dump and read imports | Split import to import and import-list | Returns minimal imports for file specified | Retry action on fail
module HsDev.Tools.ClearImports ( dumpMinimalImports, waitImports, cleanTmpImports, findMinimalImports, groupImports, splitImport, clearImports, module Control.Monad.Except ) where import Control.Arrow import Control.Concurrent (threadDelay) import Control.Exception import Control.Monad.Except import Data.Char ...
682f51cc2a5785bc0c546374bce6887787082b099adef8683a2424281b717174
spwhitton/consfigurator
deployment.lisp
;;; Consfigurator -- Lisp declarative configuration management system Copyright ( C ) 2021 - 2022 < > ;;; This file 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 , or ( at your opt...
null
https://raw.githubusercontent.com/spwhitton/consfigurator/00614063348421ca2fcce85404fd74a68f12b200/src/deployment.lisp
lisp
Consfigurator -- Lisp declarative configuration management system This file is free software; you can redistribute it and/or modify either version 3 , or ( at your option ) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty o...
Copyright ( C ) 2021 - 2022 < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (in-package :consfigurator) (named-readtables:in-readtable :consfigurator) (defparameter *at-end-functions* nil) (defun at-end (functi...
b4f1e7a1de1d7c8db080480eb9929bc581ad4a86359ea78374bad123546381e0
wfnuser/sicp-solutions
e3-13.scm
;infinitely loop
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch3/e3-13.scm
scheme
infinitely loop
0332479896fbf1b68858c6d62782688b65e8abec4e552fe251e906cb66d770b6
softwarelanguageslab/maf
R5RS_gambit_primes-5.scm
; Changes: * removed : 0 * added : 2 * swaps : 0 ; * negated predicates: 0 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((interval-list (lambda (m n) (<change> () interval-list) (if (> m n) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gambit_primes-5.scm
scheme
Changes: * negated predicates: 0 * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 2 * swaps : 0 (letrec ((interval-list (lambda (m n) (<change> () interval-list) (if (> m n) () (cons m (interval-list (+ 1...
5ddd2f0c975ec1eea1ecaf43f33c26336cef8fa780a21aabdec6ce56a32ad33c
marijnh/Postmodern
bulk-copy.lisp
-*- Mode : LISP ; Syntax : Ansi - Common - Lisp ; Base : 10 ; Package : CL - POSTGRES ; -*- (in-package :cl-postgres) (defclass bulk-copier () ((own-connection :initarg :own-connection :reader bulk-copier-own-connection) (database :initarg :database :reader copier-database) (table :initarg :table :reader cop...
null
https://raw.githubusercontent.com/marijnh/Postmodern/45fa35ddad0f0aff6218f2708f7652a3deb83c06/cl-postgres/bulk-copy.lisp
lisp
Syntax : Ansi - Common - Lisp ; Base : 10 ; Package : CL - POSTGRES ; -*- Ignore the field formats because we're only supporting plain text for now
(in-package :cl-postgres) (defclass bulk-copier () ((own-connection :initarg :own-connection :reader bulk-copier-own-connection) (database :initarg :database :reader copier-database) (table :initarg :table :reader copier-table) (columns :initarg :columns :reader copier-columns) (count :initform 0 :access...
cc08c9ef077c9a804164843b11616b874355abc52d7e84926d3251ec888ee94c
YoshikuniJujo/test_haskell
Lib.hs
{-# LANGUAGE ScopedTypeVariables, TypeApplications #-} -- {-# LANGUAGE TypeFamilies #-} , # LANGUAGE MultiParamTypeClasses , AllowAmbiguousTypes , DefaultSignatures # # LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances # # LANGUAGE DeriveGeneric # # OPTIONS_GHC -Wall -fno - warn - tabs # modul...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/a0baad2dedc04477304fc14cb05c242fc6edbfe5/features/generics/try-tuple-index/src/Lib.hs
haskell
# LANGUAGE ScopedTypeVariables, TypeApplications # {-# LANGUAGE TypeFamilies #-} # OVERLAPPABLE # # OVERLAPPABLE #
, # LANGUAGE MultiParamTypeClasses , AllowAmbiguousTypes , DefaultSignatures # # LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances # # LANGUAGE DeriveGeneric # # OPTIONS_GHC -Wall -fno - warn - tabs # module Lib where import GHC.Generics class FindIndex a t where findIndex :: Int default ...
e003973bcf49716cec5e4388a058bf7257cc2b4d1b02eb4a9a65137cbc72dcfb
byteverse/byteslice
Main.hs
# language BangPatterns # {-# language MultiWayIf #-} # language NumDecimals # {-# language OverloadedStrings #-} {-# language ScopedTypeVariables #-} # language TypeApplications # # OPTIONS_GHC -fno - warn - orphans # import Data.Bytes.Chunks (Chunks(ChunksNil,ChunksCons)) import Data.Bytes.Types (Bytes(Bytes)) impo...
null
https://raw.githubusercontent.com/byteverse/byteslice/b9f97e8db29e95a65a621d439a5552b2a330d180/test/Main.hs
haskell
# language MultiWayIf # # language OverloadedStrings # # language ScopedTypeVariables #
# language BangPatterns # # language NumDecimals # # language TypeApplications # # OPTIONS_GHC -fno - warn - orphans # import Data.Bytes.Chunks (Chunks(ChunksNil,ChunksCons)) import Data.Bytes.Types (Bytes(Bytes)) import Data.Char (ord) import Data.Primitive (ByteArray) import Data.Proxy (Proxy(..)) import Data.Word ...
b08d93b538d30c8b65dfe2fc770102a7621b5145f1dc1c3b6fb4d421c6c1d87b
hansroland/CoreLang
Main.hs
-- ----------------------------------------------------------- -- Main.hs -- ----------------------------------------------------------- -- A preliminary main program import Parser import PrettyPrintSyntax import System.Environment import Template -- | GHCi example: -- :main example/b111.cor main :: IO () main = do ...
null
https://raw.githubusercontent.com/hansroland/CoreLang/a740b5d5158842a1ce05cc614ad10f0c676d3690/src/Main.hs
haskell
----------------------------------------------------------- Main.hs ----------------------------------------------------------- A preliminary main program | GHCi example: :main example/b111.cor | Run the Template Instatiation machine
import Parser import PrettyPrintSyntax import System.Environment import Template main :: IO () main = do args <- getArgs if length args == 1 then run $ head args else putStrLn "give filename as parameter" run :: String -> IO () run fn = do inp <- readFile fn let prog = parse inp...
cfbf0dd1d25e75794ff2e7d17fe1b29f8988ac049e5d7050400fba7c1ef621b8
nineties/Choco
Log.hs
------------------------------------------------- Choco -- Chikadzume Oriented Compiler -- Copyright 2007 - 2008 by Basement fairy -- ------------------------------------------------- module Log ( CLog(..), CLogs ) where import Data.Sequence im...
null
https://raw.githubusercontent.com/nineties/Choco/0081351d0b556ff74f096accb65c9ab45d29ddfe/src/Log.hs
haskell
----------------------------------------------- -----------------------------------------------
module Log ( CLog(..), CLogs ) where import Data.Sequence import Text.PrettyPrint.HughesPJ data CLog = LargeLog { title :: String, body :: Doc } | SmallLog Doc | DebugLog String type CLogs = Seq CLog
b9b6975ea8939db07259748aef318c54ce83b8fc254258d823fc0136099a2247
ftovagliari/ocamleditor
convert.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/convert.ml
ocaml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor 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 y...
66763f4bf8f79ad495420893df43eb0991e63b5eac014548f151a2a03f8b6c35
sourrust/karver
Parse.hs
-- | Module : Data . . Copyright : 2015 License : BSD3 -- Maintainer : < > -- Stability: experimental -- Portability: unknown -- All the ' Parser 's are defined here , including the one used by the top level module " Text . " . {-# LANGUAGE OverloadedStrings #-} module Text.Karve...
null
https://raw.githubusercontent.com/sourrust/karver/ca66bea00cdf2ad37faaca555dd61c0624abde6b/src/Text/Karver/Parse.hs
haskell
| Stability: experimental Portability: unknown # LANGUAGE OverloadedStrings # | Takes everything until it reaches a @{@, resulting in the 'LiteralTok' General function for making parsers that will be surrounded by a curtain delimiter — which has both a beginning and end. General parser for the several variab...
Module : Data . . Copyright : 2015 License : BSD3 Maintainer : < > All the ' Parser 's are defined here , including the one used by the top level module " Text . " . module Text.Karver.Parse ( templateParser , literalParser , variableParser , variableParser' , conditionParser , loo...
dc330684dadd8b02b414712a925b39846348397c6acc54cb95ef78d9944a54d7
hyperfiddle/electric
spec_tooltip.cljs
(ns hyperfiddle.client.edn-view.spec-tooltip (:require ["./specTooltip" :refer [specTooltip]] [clojure.pprint :refer [pprint]] [clojure.spec.alpha :as spec] [clojure.string :as str] [clojure.walk :as walk] [edamame.core :as edn])) (defn drop-ns [sym] (sym...
null
https://raw.githubusercontent.com/hyperfiddle/electric/68f6eb7e38f76844f6a70c5055e7d30660d7eb38/scratch/edn_view/spec_tooltip.cljs
clojure
(ns hyperfiddle.client.edn-view.spec-tooltip (:require ["./specTooltip" :refer [specTooltip]] [clojure.pprint :refer [pprint]] [clojure.spec.alpha :as spec] [clojure.string :as str] [clojure.walk :as walk] [edamame.core :as edn])) (defn drop-ns [sym] (sym...
07b78d61ef1746c3f93460b34a5e5817381e95c19a9bfc45b5ff15b02d707885
sbtourist/clamq
base_jms_test.clj
(ns clamq.test.base-jms-test (:require [clamq.protocol.connection :as connection] [clamq.protocol.consumer :as consumer] [clamq.protocol.seqable :as seqable] [clamq.protocol.producer :as producer] [clamq.pipes :as pipes]) (:use [clojure.test])) (defn producer-consumer-test [connection] (let [rec...
null
https://raw.githubusercontent.com/sbtourist/clamq/34a6bbcb7a2a431ea629aa5cfbc687ef31f860f2/clamq-jms/src/clamq/test/base_jms_test.clj
clojure
(ns clamq.test.base-jms-test (:require [clamq.protocol.connection :as connection] [clamq.protocol.consumer :as consumer] [clamq.protocol.seqable :as seqable] [clamq.protocol.producer :as producer] [clamq.pipes :as pipes]) (:use [clojure.test])) (defn producer-consumer-test [connection] (let [rec...
0b7277c6d19bad7dc592eb0028537fe0ba0cdf353aae9087495b5791394d118f
pjones/byline
Color.hs
{-# OPTIONS_HADDOCK hide #-} -- | -- -- Copyright: -- This file is part of the package byline. It is subject to the -- license terms in the LICENSE file found in the top-level -- directory of this distribution and at: -- -- -- -- No part of this package, including this file, may be copied, -- modified, ...
null
https://raw.githubusercontent.com/pjones/byline/6079cb219c2d17f4524055f326567217c6561092/src/Byline/Internal/Color.hs
haskell
# OPTIONS_HADDOCK hide # | Copyright: This file is part of the package byline. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at: No part of this package, including this file, may be copied, modified, propagated, or distributed ...
module Byline.Internal.Color ( Color (..), black, red, green, yellow, blue, magenta, cyan, white, vivid, dull, rgb, colorAsANSI, colorAsIndex256, colorAsRGB, nearestColor, term256Locations, ) where import Byline.Internal.Types import qualified Data.C...
0e96d62c448d70feab312c253b38224113d36e58265777a08dbb7a446b5a419c
ghcjs/jsaddle-dom
XSLTProcessor.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.XSLTProcessor (newXSLTProcessor, importStylesheet, transformToFragment, transformToFragment_, transformToDo...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/XSLTProcessor.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/XSLTProcessor.transformToDocument Mozilla XSLTProcessor.transformToDocument documentation> | <-US/docs/Web/API/XSLTProcessor.transformToDocument Mozilla XSLTProcessor.transformToDocument documentation> ...
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.XSLTProcessor (newXSLTProcessor, importStylesheet, transformToFragment, transformToFragment_, transformToDocument, transformToDocument_, setParameter, getParameter, getParameter_, getParameterUnsafe...
e70607f0c7ba445c19115a33ae082e0a3ff395a7d35a37ea20287739b193b2ec
marcoheisig/cl-mpi
ring.lisp
;;; all participating processes pass a given message in a circle until it ;;; reaches again the original sender (here rank 0) (in-package :cl-user) (defpackage :cl-mpi/examples/ring (:use :cl :alexandria :cl-mpi :static-vectors) (:export #:main)) (in-package :cl-mpi/examples/ring) (defun printf (fmt &rest args)...
null
https://raw.githubusercontent.com/marcoheisig/cl-mpi/ba92be06ec1dca74d0ca5256aa387d8a28c8ad86/examples/ring.lisp
lisp
all participating processes pass a given message in a circle until it reaches again the original sender (here rank 0) rank null must use the nonblocking versions MPI-ISEND and deadlock. Alternatively one could use MPI-SENDRECV.
(in-package :cl-user) (defpackage :cl-mpi/examples/ring (:use :cl :alexandria :cl-mpi :static-vectors) (:export #:main)) (in-package :cl-mpi/examples/ring) (defun printf (fmt &rest args) (format t "rank ~d: " (mpi-comm-rank)) (apply #'format t fmt args) (finish-output)) (defun main (&optional arg) (dec...
6119b062ff02f223f60eaa90065402cd39dce9da30204efba471e45c546749f5
Gabriella439/list-transformer
DocTest.hs
module Main where import Test.DocTest main :: IO () main = doctest [ "-XCPP" , "src/List/Transformer.hs" ]
null
https://raw.githubusercontent.com/Gabriella439/list-transformer/aefe568a1fa24d8544502b8698d4b7523038fa5b/test/DocTest.hs
haskell
module Main where import Test.DocTest main :: IO () main = doctest [ "-XCPP" , "src/List/Transformer.hs" ]
a7e8266f2a46061d93749cf5d90c96cb6a3cc6d271c307656640d9401e71bbae
kind2-mc/kind2
hset.mli
(**************************************************************************) (* *) Copyright ( C ) (* *) (* This software is free software;...
null
https://raw.githubusercontent.com/kind2-mc/kind2/c601470eb68af9bd3b88828b04dbcdbd6bd6bbf5/src/dead_code/hset.mli
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking s Sets of hash - consed values , implemented as trees . See the modules [ Hashcons ] and [ Ptset ] . See ...
3d9eae142047aa948d51a5c63c090ffe5457074f9ffd5196efcba840b6b2eb66
epiccastle/bbssh
test_key_pair.clj
(ns bb-test.test-key-pair (:require [pod.epiccastle.bbssh.agent :as agent] [pod.epiccastle.bbssh.key-pair :as key-pair] [bb-test.docker :as docker] [bb-test.keys :as keys] [clojure.test :refer [is deftest]])) (deftest test-key-pair (let [agent (agent/new) kp ...
null
https://raw.githubusercontent.com/epiccastle/bbssh/9e851095650d76c997f7fa73639b74bfb8043bad/test/bb_test/test_key_pair.clj
clojure
(ns bb-test.test-key-pair (:require [pod.epiccastle.bbssh.agent :as agent] [pod.epiccastle.bbssh.key-pair :as key-pair] [bb-test.docker :as docker] [bb-test.keys :as keys] [clojure.test :refer [is deftest]])) (deftest test-key-pair (let [agent (agent/new) kp ...
6093113cb2e9d1eb782363733a3fcba78d5b24abc1f999f8f77cbd34c931c2b9
dimitri/pginstall
platform.lisp
;;; ;;; Get OS specific information about the platform. ;;; (in-package #:pginstall.common) (defun os-name-and-version () "Return os-name and os-version where we're currently running, as a list." (let ((system (uname "-s"))) (cond ((string= system "Darwin") (macosx-name-and-version)) ((string= system...
null
https://raw.githubusercontent.com/dimitri/pginstall/66e4274fc544c48be03c719f8d3f03955649a994/src/common/platform.lisp
lisp
Get OS specific information about the platform. specific code. Under Linux distributions, you get to install a package that gives you debian: apt-get install lsb_release Mac OS X read a single line of output no option, return the whole thing KeyName: value
(in-package #:pginstall.common) (defun os-name-and-version () "Return os-name and os-version where we're currently running, as a list." (let ((system (uname "-s"))) (cond ((string= system "Darwin") (macosx-name-and-version)) ((string= system "Linux") (lsb-name-and-version)) (t ...
0274c769b11b75951f5e2ce384f3994c2d95e28d8849044956863a2b91351cdd
jacekschae/learn-reagent-course-files
gig_editor.cljs
(ns giggin.components.gig-editor) (defn form-group [{:keys [id type value values]}] [:div.form__group [:label.form__label {:for id} id] [:input.form__input {:type type :id id :value value :on-change #(swap! values assoc (keyword id) (.. ...
null
https://raw.githubusercontent.com/jacekschae/learn-reagent-course-files/bad40303c8e0a8526318a69fdf9c2d786b4240cb/increments/complete/src/giggin/components/gig_editor.cljs
clojure
(ns giggin.components.gig-editor) (defn form-group [{:keys [id type value values]}] [:div.form__group [:label.form__label {:for id} id] [:input.form__input {:type type :id id :value value :on-change #(swap! values assoc (keyword id) (.. ...
bed118795100739fa402ebc6dd8bb95247cf92d3415a418ac202b5f6a137c965
dozzie/toml
toml_dict.erl
%%%--------------------------------------------------------------------------- @private %%% @doc Utility functions to convert AST coming from parser to a set of nested %%% dictionaries. %%% This is the place where semantic - level parts of TOML specification are %%% implemented. %%% @todo eliminate desc...
null
https://raw.githubusercontent.com/dozzie/toml/e380dbfac46bd395e3a056ba3d91a513395e0c68/src/toml_dict.erl
erlang
--------------------------------------------------------------------------- @doc dictionaries. implemented. a section (i.e. descend once to open a section and again to close it on @end --------------------------------------------------------------------------- ----------------------------------------------...
@private Utility functions to convert AST coming from parser to a set of nested This is the place where semantic - level parts of TOML specification are @todo eliminate descending over and over again to set consequent keys in new section / EOF ; remember about subsections ) -module(toml_dict). -export...
916e22304d365b56458ba293983137fac5159af6f9981632548b94636bff0798
yetanalytics/dl4clj
point_classification.clj
(ns dl4clj.clustering.cluster.point-classification (:import [org.deeplearning4j.clustering.cluster PointClassification])) (defn new-point-classification ;; should not need to call this point classifications are created from the cluster set fns [& {:keys [cluster distance-from-center new-location?]}] (PointCl...
null
https://raw.githubusercontent.com/yetanalytics/dl4clj/9ef055b2a460f1a6246733713136b981fd322510/src/dl4clj/clustering/cluster/point_classification.clj
clojure
should not need to call this
(ns dl4clj.clustering.cluster.point-classification (:import [org.deeplearning4j.clustering.cluster PointClassification])) (defn new-point-classification point classifications are created from the cluster set fns [& {:keys [cluster distance-from-center new-location?]}] (PointClassification. cluster distance-fro...
7af29cdcba96e6ad3623c812f54ffd66b8fcf0dd8b01b221d2e800069c43db26
alexpeits/harg
Construct.hs
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # module Options.Harg.Construct ( option, flag, switch, switch', argument, long, short, help, metavar, envVar, defaultVal, defaultStr, required, op...
null
https://raw.githubusercontent.com/alexpeits/harg/a5a684ba974a788f97836888e8631199c550a73f/src/Options/Harg/Construct.hs
haskell
| Add a 'Options.Applicative.short' modifier to an option | Add 'Options.Applicative.help' to an option | Add a 'Options.Applicative.metavar' metavar to an option, to be displayed as the meta-parameter next to long/short modifiers | Specify an environment variable to lookup for an option | Add a default value to ...
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE UndecidableSuperClasses # module Options.Harg.Construct ( option, flag, switch, switch', argument, long, short, help, metavar, envVar, defaultVal, defaultStr, required, op...
ed00374da7a99701338e67fd675ac3ac124391cfb844389daa638c5f14358c6d
callum-oakley/advent-of-code
08.clj
(ns aoc.2020.08 (:require [clojure.string :as str] [clojure.test :refer [deftest is]])) (defn parse-instruction [instruction] (let [[op arg] (str/split instruction #" ")] [(keyword op) (read-string arg)])) (defn parse [s] (mapv parse-instruction (str/split-lines s))) (defn run [instructions] (loop ...
null
https://raw.githubusercontent.com/callum-oakley/advent-of-code/e24c126fdfa4852c1380f5d1b1fda96da1ebe553/src/aoc/2020/08.clj
clojure
(ns aoc.2020.08 (:require [clojure.string :as str] [clojure.test :refer [deftest is]])) (defn parse-instruction [instruction] (let [[op arg] (str/split instruction #" ")] [(keyword op) (read-string arg)])) (defn parse [s] (mapv parse-instruction (str/split-lines s))) (defn run [instructions] (loop ...
7d95e2c4393317edd743f549efdffe95d91dc1d4bb75eefb7de21cd580c2280e
mikelevins/categories
load.scm
;;;; *********************************************************************** ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: load.scm ;;;; Project: Categories ;;;; Purpose: load Categories in Gambit ;;;; Author: mikel evins Copyright : Copyright 2013 by mikel evins , all rights reserved Li...
null
https://raw.githubusercontent.com/mikelevins/categories/66e3861071e4d88b7b27421a78ab497e1fb5fa0c/0.4/load.scm
scheme
*********************************************************************** FILE IDENTIFICATION Name: load.scm Project: Categories Purpose: load Categories in Gambit Author: mikel evins See the accompanying file "License" for more information ****************************...
Copyright : Copyright 2013 by mikel evins , all rights reserved License : Licensed under the Apache License , version 2.0 (define $root "/Users/mikel/Workshop/categories/0.4") (define $load-files '("/src/version.scm" "/lib/Sort.scm" "/lib/uuid.scm" "/src/utils.scm" "/src/protocol.sc...
4583cc217da8238dcc5bb037ef5bf9994732447b4375c10dca97bcc6e4193c0c
satori-com/mzbench
error.erl
[ % error function generates execution error with specified message {pool, [{size, 1}, {worker_type, dummy_worker}], [ {error, "waldo"}]} ]. % should output shomething like this among other log messages: 17:56:11.988 [ error ] < 0.186.0 > Worker < 0.190.0 > on ' mzb_ ... @ ... ' has crashed : " waldo "
null
https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/examples/error.erl
erlang
error function generates execution error with specified message should output shomething like this among other log messages:
{pool, [{size, 1}, {worker_type, dummy_worker}], [ {error, "waldo"}]} ]. 17:56:11.988 [ error ] < 0.186.0 > Worker < 0.190.0 > on ' mzb_ ... @ ... ' has crashed : " waldo "
7cdcf062ca56fa443dcee8b47aecc42bbb1a3e65ab19dfe1a79df131aaa88324
georgegarrington/Syphon
Root.hs
module PostParse.Root where --All checks and manipulation performed on the module after parsing and before inference import Data.List import qualified Data.Set as S import qualified Data.Map as M import AST.Expression import AST.Type import AST.Definition validSubs = S.fromList [ "onTimePassed", "onMouseMoved",...
null
https://raw.githubusercontent.com/georgegarrington/Syphon/402a326b482e3ce627a15b651b3097c2e09e8a53/src/PostParse/Root.hs
haskell
All checks and manipulation performed on the module after parsing and before inference Either empty string or an error string These should ALL be variable expressions with only variable names from validSubs COULD DO WITH SEPERATE FILE MAYBE? This needs to be adapted later as currently higher kinded ADTs are not support...
module PostParse.Root where import Data.List import qualified Data.Set as S import qualified Data.Map as M import AST.Expression import AST.Type import AST.Definition validSubs = S.fromList [ "onTimePassed", "onMouseMoved", "onKeyPressed", "onKeyReleased" ] checkSubFns :: Dfn -> String checkSubFns (Subscrib...
f12db40e278d3ec5ac20012dadb3fa1ab4b97909cf771942f1035826542db52b
racket/racket7
range.rkt
#lang racket/base (require "chyte.rkt" "chyte-case.rkt" "ast.rkt" "config.rkt" "error.rkt" "../common/range.rkt" "class.rkt" "case.rkt") (provide parse-range parse-range/not) ;; Returns (value range position) (define (parse-range/not s pos config...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/regexp/parse/range.rkt
racket
Returns (value range position) Returns (value range position) Returns (value range position)
#lang racket/base (require "chyte.rkt" "chyte-case.rkt" "ast.rkt" "config.rkt" "error.rkt" "../common/range.rkt" "class.rkt" "case.rkt") (provide parse-range parse-range/not) (define (parse-range/not s pos config) (chyte-case/eos s pos [(...
f510687f802fe16bc3f3539445de7c30ba17e6b9585d6916cc55682dfdc941d1
astro/prittorrent
feeds_update.erl
-module(feeds_update). -export([start_link/0, update_loop/0, update/1]). -include_lib("model/include/model.hrl"). -define(INTERVAL, 600). start_link() -> {ok, spawn_link(fun update_loop/0)}. update_loop() -> case model_feeds:to_update(?INTERVAL) of {ok, {URL, Delay}} when Delay =< 0 -> io:format("...
null
https://raw.githubusercontent.com/astro/prittorrent/5173eeb8b00fd9ab7c0d347c9e361052023faebd/apps/feeds/src/feeds_update.erl
erlang
Fill in image Fill in lang Well, show it to the user... (in green :) Drop this
-module(feeds_update). -export([start_link/0, update_loop/0, update/1]). -include_lib("model/include/model.hrl"). -define(INTERVAL, 600). start_link() -> {ok, spawn_link(fun update_loop/0)}. update_loop() -> case model_feeds:to_update(?INTERVAL) of {ok, {URL, Delay}} when Delay =< 0 -> io:format("...
61cfed58a9ce7a1f7492aaf5f9287fb150b7de27755683400e4bd085b5604ef8
esl/MongooseIM
mongoose_sanity_checks_SUITE.erl
-module(mongoose_sanity_checks_SUITE). -compile([export_all, nowarn_export_all]). all() -> [is_mongooseim]. is_mongooseim(Config) -> mongooseim = escalus_server:name(Config).
null
https://raw.githubusercontent.com/esl/MongooseIM/8b8c294b1b01dc178eed1b3b28ca0fbbd73f382c/big_tests/tests/mongoose_sanity_checks_SUITE.erl
erlang
-module(mongoose_sanity_checks_SUITE). -compile([export_all, nowarn_export_all]). all() -> [is_mongooseim]. is_mongooseim(Config) -> mongooseim = escalus_server:name(Config).
6c325fb47f8ad49b94e82b3ce1c96587d29cc78be4a96084022605e2b39ac6e3
nodew/haskell-realworld-example
Comment.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # module Conduit.Core.Comment where import RIO import Rel8 import Data.Aeson import Data.Time import Data.UUID import Conduit.Core.User import Conduit.Core.Article data Comment = Comment { commentId :: CommentId , commentUUID ...
null
https://raw.githubusercontent.com/nodew/haskell-realworld-example/d83ef5af868da91b1d4f4debe81829c0ef62b603/src/Conduit/Core/Comment.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # module Conduit.Core.Comment where import RIO import Rel8 import Data.Aeson import Data.Time import Data.UUID import Conduit.Core.User import Conduit.Core.Article data Comment = Comment { commentId :: CommentId , commentUUID ...
ac27a26e44f5c61fac978d4d8b6844a889ba152c45ea21182975bc38bacc522c
earl-ducaine/cl-garnet
save-load-functions.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; The Garnet User Interface Development Environment . ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; This code ...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/gadgets/save-load-functions.lisp
lisp
Syntax : Common - Lisp ; Package : GARNET - GADGETS ; Base : 10 -*- ; ; This code was written as part of the Garnet project at ;;; ; ; ; ; please contact to be put on the mailing list. ;;; This is the utilities file for the save and load gadget. just the gadgets. This file contains all the func...
The gadget files ( save-gadget.lisp & load-gadget.lisp ) contain CHANGE LOG : 09/17/03 PUT - FILENAMES - IN - MENU to make a happier fit for CMUCL ( by turning off some of the extensions 08/20/98 - Wrote CMUCL version of real - path that made better 10/26/95 RGA --- Added ignore errors on ...
d6b3e84f24149349e0ddd1193fe3ece1e22856bce812b2c49d28cbad2e47303f
maximvl/erl9p
erl9p.erl
-module(erl9p). -export([start/0, stop/0]). start() -> application:start(ranch), application:start(erl9p). stop() -> application:stop(erl9p).
null
https://raw.githubusercontent.com/maximvl/erl9p/c5410da3797811578a248ea4d2b8e449fabd0541/src/erl9p.erl
erlang
-module(erl9p). -export([start/0, stop/0]). start() -> application:start(ranch), application:start(erl9p). stop() -> application:stop(erl9p).
f39ea71a1923e156b098ea588595395ab6d257d191ab26e4a2ed3a3a996c920f
CodyReichert/qi
load.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - fad / load.lisp , v 1.9 2009/09/30 14:23:10 edi Exp $ Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; mo...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-fad-master/load.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
$ Header : /usr / local / cvsrep / cl - fad / load.lisp , v 1.9 2009/09/30 14:23:10 edi Exp $ Copyright ( c ) 2004 - 2010 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :cl...
969ad6e5780b96632c61335d177ec7091b68821353425705e8d302e0321f1f46
ocramz/petsc-hs
Class.hs
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , TypeSynonymInstances # { - # GeneralizedNewtypeDeriving # - } ----------------------------------------------------------------------------- -- | -- Module : Numerical.PETSc.Optimization.Class Copyright : ( c ) 2015...
null
https://raw.githubusercontent.com/ocramz/petsc-hs/d74a468da0dbc867d2ea25f280c7892cc54add48/src/Numerical/PETSc/Optimization/Class.hs
haskell
--------------------------------------------------------------------------- | Module : Numerical.PETSc.Optimization.Class License : LGPL3 Stability : experimental | Classes for optimization --------------------------------------------------------------------------- | objective function, most gener...
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , TypeSynonymInstances # { - # GeneralizedNewtypeDeriving # - } Copyright : ( c ) 2015 Maintainer : zocca . . gmail . com module Numerical.PETSc.Optimization.Class where import Control.Monad.Writer import Text.Prin...
d7a89bde6dbcd4a8d9c6228afec0bb39b0dca84ee0a2412513a74220880cc49a
amnh/poy5
chromPam.ml
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . (* *) (* This program is free softwa...
null
https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/chromPam.ml
ocaml
This program is free software; you can redistribute it and/or modify (at your option) any later version. This progra...
POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies . Copyright ( C ) 2014 , , , Ward Wheeler , and the American Museum of Natural History . it under the terms of the GNU General Public License as published by the Free Software Foundation ; ...
6dede66a4aa7edc67adad4c0b2f9f64f79b8ec0d345a9df2a826efa19caf53af
puppetlabs/puppetserver
puppet_admin_int_test.clj
(ns puppetlabs.services.puppet-admin.puppet-admin-int-test (:require [clojure.test :refer :all] [puppetlabs.kitchensink.core :as ks] [puppetlabs.http.client.sync :as http-client] [puppetlabs.puppetserver.bootstrap-testutils :as bootstrap] [puppetlabs.trapperkeeper.testutils.logging :as logutils] ...
null
https://raw.githubusercontent.com/puppetlabs/puppetserver/2d6ca01b4b72716ca543b606f752261b969e401b/test/integration/puppetlabs/services/puppet_admin/puppet_admin_int_test.clj
clojure
Tests These tests use the `DELETE /environment-cache` endpoint as representative for testing making the tests faster. The same behavior applies also to the `DELETE /jruby-pool` and the `GET /jruby-pool/thread-dump` endpoints. Borrow a jruby instance so that the timeout of 0 is reached immediately See 'environmen...
(ns puppetlabs.services.puppet-admin.puppet-admin-int-test (:require [clojure.test :refer :all] [puppetlabs.kitchensink.core :as ks] [puppetlabs.http.client.sync :as http-client] [puppetlabs.puppetserver.bootstrap-testutils :as bootstrap] [puppetlabs.trapperkeeper.testutils.logging :as logutils] ...
80d97c36df19061697daacc8a05fc8ddee619977d314dea5f7ae183d86925e33
unnohideyuki/Tiger-in-Haskell
Types.hs
module Types where import qualified Symbol type Unique = Integer data Ty = INT | STRING | RECORD [(Symbol.Symbol, Ty)] Unique | ARRAY Ty Unique | NIL | UNIT | NAME Symbol.Symbol (Maybe Ty) deriving (Show) instance Eq Ty where INT ...
null
https://raw.githubusercontent.com/unnohideyuki/Tiger-in-Haskell/69fc976e64bfe7abfa842d7179e06eae740d36b9/chap9/src/Types.hs
haskell
module Types where import qualified Symbol type Unique = Integer data Ty = INT | STRING | RECORD [(Symbol.Symbol, Ty)] Unique | ARRAY Ty Unique | NIL | UNIT | NAME Symbol.Symbol (Maybe Ty) deriving (Show) instance Eq Ty where INT ...
d420121a240132be921700cf5cf874056cbad98a77f095bd46d47b7f549271bd
coalton-lang/coalton
immutable-listmap.lisp
(defpackage #:coalton-impl/algorithm/immutable-listmap (:use #:cl) (:export #:immutable-listmap ; STRUCT CONSTRUCTOR ACCESSOR #:immutable-listmap-lookup ; FUNCTION #:immutable-listmap-push ; FUNCTION #:immutable-listmap-replace ; FUNCTION #:immutabl...
null
https://raw.githubusercontent.com/coalton-lang/coalton/f4b810e78501345ae82a74eb4de761bd4b6924f0/src/algorithm/immutable-listmap.lisp
lisp
STRUCT FUNCTION FUNCTION FUNCTION FUNCTION Wrapper around fset:map<fset:seq> If both have this key then diff the seq Otherwise save the whole seq
(defpackage #:coalton-impl/algorithm/immutable-listmap (:use #:cl) (:export CONSTRUCTOR ACCESSOR )) (in-package #:coalton-impl/algorithm/immutable-listmap) Immutable (defstruct immutable-listmap (data (fset:empty-map (fset:empty-seq)) :type fset:map :read-only t)) (defun immutable-listmap-lookup (m ...
8f893f54e6f091267400266a6159f2902134c6920aadb478be814ee500ff1f1c
generateme/fastmath
stats_test.clj
(ns fastmath.stats-test (:require [fastmath.stats :as sut] [clojure.test :as t])) (def one {:size 1, :step 0.0, :samples 1, :min 1, :max 1, :bins '([1.0 1])}) (def one2 {:size 1, :step 1.0, :samples 2, :min 1.0, :max 2.0, :bins '([1.0 2])}) (def two {:size 2, :step 0.5, :samples 2, :min 1.0, :max 2.0, :b...
null
https://raw.githubusercontent.com/generateme/fastmath/6c3d5c7e209cdba2342e805d9d3505eb336d12dc/test/fastmath/stats_test.clj
clojure
(ns fastmath.stats-test (:require [fastmath.stats :as sut] [clojure.test :as t])) (def one {:size 1, :step 0.0, :samples 1, :min 1, :max 1, :bins '([1.0 1])}) (def one2 {:size 1, :step 1.0, :samples 2, :min 1.0, :max 2.0, :bins '([1.0 2])}) (def two {:size 2, :step 0.5, :samples 2, :min 1.0, :max 2.0, :b...
e3bf2e401d8ded454c16b0f1430b41e1bbc3fa1b8d2a720b81e7449af5cd7d34
galdor/tungsten
package.lisp
(defpackage :text (:use :cl) (:export #:*default-encoding* #:unencodable-character #:invalid-octet #:decoding-error #:encoding #:encoding-name #:encoding-encoding-function #:encoding-decoding-function #:register-encoding #:unregister-encoding #:define-encoding #:encoded-characte...
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-text/src/package.lisp
lisp
(defpackage :text (:use :cl) (:export #:*default-encoding* #:unencodable-character #:invalid-octet #:decoding-error #:encoding #:encoding-name #:encoding-encoding-function #:encoding-decoding-function #:register-encoding #:unregister-encoding #:define-encoding #:encoded-characte...
66b82005c4797389b7b47de0ca66629d6846ab4ead8d84c33763e0865246fd5b
tweag/asterius
WebAPI.hs
# LANGUAGE InterruptibleFFI # module WebAPI ( consoleLog, createElement, setAttribute, appendChild, setHidden, addEventListener, createTextNode, replaceWith, onPopstate, getURLMode, randomString, getElementById, localStorageSetItem, localStorageGetItem, ) where ...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/todomvc/WebAPI.hs
haskell
# LANGUAGE InterruptibleFFI # module WebAPI ( consoleLog, createElement, setAttribute, appendChild, setHidden, addEventListener, createTextNode, replaceWith, onPopstate, getURLMode, randomString, getElementById, localStorageSetItem, localStorageGetItem, ) where ...
7a209731e2f22054ca85159230f126dbec1b46df192e19d2bd8ebe3d6f0c8cfc
pink-gorilla/webly
oidc.clj
(ns modular.oauth2.local.oidc (:require [taoensso.timbre :as timbre :refer [debug info error]] [modular.config :refer [get-in-config]])) ; :florian {:roles #{:logistic} ; :password "xxxxxxxx" ; :email [""]} (defn user-email [[user {:keys [email]}]] {:user user :email email}) (defn f...
null
https://raw.githubusercontent.com/pink-gorilla/webly/ae37a2b0eb201bade5f909ebecfa63a60c3bd4ca/oauth2/src/modular/oauth2/local/oidc.clj
clojure
:florian {:roles #{:logistic} :password "xxxxxxxx" :email [""]}
(ns modular.oauth2.local.oidc (:require [taoensso.timbre :as timbre :refer [debug info error]] [modular.config :refer [get-in-config]])) (defn user-email [[user {:keys [email]}]] {:user user :email email}) (defn find-user [email] (if-let [users (get-in-config [:users])] (let [user-email-list (map ...
b98c423d5b6748a1f547c35d6e41f00af0d319bcef52ef9e4242d72379d3837d
jtdaugherty/vty
Parse.hs
module Verify.Data.Terminfo.Parse ( module Verify.Data.Terminfo.Parse , module Data.Terminfo.Parse ) where import Data.Terminfo.Parse import Data.Terminfo.Eval import Verify import Data.Word import qualified Data.Vector.Unboxed as Vector import Numeric hexDump :: [Word8] -> String hexDump bytes = foldr (\b s ...
null
https://raw.githubusercontent.com/jtdaugherty/vty/a4cb4cfc386a4bc0e46921d878b808e76567ebc9/tests/src/Verify/Data/Terminfo/Parse.hs
haskell
isBytesOp _ = False
module Verify.Data.Terminfo.Parse ( module Verify.Data.Terminfo.Parse , module Data.Terminfo.Parse ) where import Data.Terminfo.Parse import Data.Terminfo.Eval import Verify import Data.Word import qualified Data.Vector.Unboxed as Vector import Numeric hexDump :: [Word8] -> String hexDump bytes = foldr (\b s ...
993c518e3a0d5a91efa68c2ece19a1da729876e1b86f3fd93d183e06c9a3ff32
gsakkas/rite
3349.ml
let rec clone x n = if n > 0 then x :: (clone x (n - 1)) else [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2) else (l1, (List.append (clone 0 ((List.length l1) - (List.length l2))) l2));; let rec removeZero l = match ...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14_min/3349.ml
ocaml
let rec clone x n = if n > 0 then x :: (clone x (n - 1)) else [];; let padZero l1 l2 = if (List.length l1) < (List.length l2) then ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2) else (l1, (List.append (clone 0 ((List.length l1) - (List.length l2))) l2));; let rec removeZero l = match ...
6ce87cf9e2df4cc40b7c70d82bc755bfa3cb1dfeba4ae3df18d1f89d93fdbc9f
PEZ/rn-rf-shadow
widgets.cljs
(ns example.widgets (:require ["react-native" :as rn])) (defn button [{:keys [style text-style on-press disabled? disabled-style disabled-text-style] :or {on-press #()}} text] [:> rn/TouchableOpacity {:style (cond-> {:font-weight :bold ...
null
https://raw.githubusercontent.com/PEZ/rn-rf-shadow/305a2659528bbd38dc4878c2ef27173e0b3b218a/src/main/example/widgets.cljs
clojure
(ns example.widgets (:require ["react-native" :as rn])) (defn button [{:keys [style text-style on-press disabled? disabled-style disabled-text-style] :or {on-press #()}} text] [:> rn/TouchableOpacity {:style (cond-> {:font-weight :bold ...
9de84088f66772c161881db9ec49bdd53a74b13c4c64afc62531869ddb6d460e
sjl/cl-blt
build.lisp
(load "examples/map.lisp") (sb-ext:gc :full t) (sb-ext:save-lisp-and-die "map" :toplevel #'cl-blt.examples.map::main :executable t)
null
https://raw.githubusercontent.com/sjl/cl-blt/ee69ac7bfb473e9cdd8c2d50d45ef288ef315ff3/examples/build.lisp
lisp
(load "examples/map.lisp") (sb-ext:gc :full t) (sb-ext:save-lisp-and-die "map" :toplevel #'cl-blt.examples.map::main :executable t)
3ff1f0481c9fe4e0ae07f07188a3675f46ec22b416ad36a91e63f865607358e3
erlang/otp
inet_db.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/ed8bba246ed77ba72282fe9f0036491a04319604/lib/kernel/src/inet_db.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1997 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(inet_db). debug printouts are done through erlang : display/1 . Activate this feature by starting the ...
dfb2ea2a6d77410ae9a03a02f4d5700d3dd5911cda67a0dd0af6d57fb5cf8da4
mejgun/haskell-tdlib
ChatJoinRequest.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.ChatJoinRequest where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | | Describes a user that sent a join request and waits for administrator approval @user_id User identifier @date Point in time ( Unix ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/ddcb47043c7a339b4e5995355e5d5a228e21ccb0/src/TD/Data/ChatJoinRequest.hs
haskell
# LANGUAGE OverloadedStrings # | | | | |
module TD.Data.ChatJoinRequest where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U | Describes a user that sent a join request and waits for administrator approval @user_id User identifier @date Point in time ( Unix timestamp ) when the user sent the join reque...
0500b1c87c0d6c4ff381d793d450e6d6a554706ad69781d6371277d46b39fddd
aaltodsg/instans
sparql-test.lisp
-*- Mode : Lisp ; Syntax : COMMON - LISP ; Base : 10 ; Package : INSTANS -*- ;;; Author : ( ) ;;; Last updated : Tue Dec 9 14:09:16 EET 2014 (in-package #:instans) (defvar *sparql-test-set*) (defvar *current-sparql-test*) (defvar *collect-sparql-test-set-script* nil) ;;; Classes (define-class sparql-test...
null
https://raw.githubusercontent.com/aaltodsg/instans/5ffc90e733e76ab911165f205ba57a7b3b200945/src/tests/sparql-test.lisp
lisp
Syntax : COMMON - LISP ; Base : 10 ; Package : INSTANS -*- Classes Print object Print test (when (slot-boundp this 'instans) Test failed p (let ((x (call-next-method)) (y (slot-value-with-default this 'parsing-succeeded-p nil))) (inform "(call-next-method) = ~A, (slot-value-with-default this 'parsing-succee...
Author : ( ) Last updated : Tue Dec 9 14:09:16 EET 2014 (in-package #:instans) (defvar *sparql-test-set*) (defvar *current-sparql-test*) (defvar *collect-sparql-test-set-script* nil) (define-class sparql-test () ((test-set :accessor sparql-test-test-set :initarg :test-set :initform nil) (type :accesso...
fb4eed0e0c40f3a1ab4945b55b606018e5643e2b1cbfb6d8cffe5a97236dc1fd
astrada/ocaml-extjs
ext_chart_Chart.ml
class type t = object('self) inherit Ext_draw_Component.t inherit Ext_chart_Mask.t inherit Ext_chart_Navigation.t inherit Ext_chart_theme_Theme.t inherit Ext_util_Bindable.t inherit Ext_util_Observable.t method bindStore : _ Js.t Js.optdef -> unit Js.meth method getStoreListeners : Ext_data_Store.t J...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_chart_Chart.ml
ocaml
class type t = object('self) inherit Ext_draw_Component.t inherit Ext_chart_Mask.t inherit Ext_chart_Navigation.t inherit Ext_chart_theme_Theme.t inherit Ext_util_Bindable.t inherit Ext_util_Observable.t method bindStore : _ Js.t Js.optdef -> unit Js.meth method getStoreListeners : Ext_data_Store.t J...
ef5f0ac27bfdc1606a638a157f759eb8b631ef91616fba96ea45cc471d7a2989
alex-mckenna/clash-systolic
Doctests.hs
module Main (main) where import Prelude import System.Environment (getArgs) import Test.DocTest (mainFromCabal) main :: IO () main = getArgs >>= mainFromCabal "clash-systolic"
null
https://raw.githubusercontent.com/alex-mckenna/clash-systolic/9a646e885f2f1986447a4dc95a55007f9ca9c79b/tests/Doctests.hs
haskell
module Main (main) where import Prelude import System.Environment (getArgs) import Test.DocTest (mainFromCabal) main :: IO () main = getArgs >>= mainFromCabal "clash-systolic"
ca2e2b96233750271da5e961849b647f8565a92a71182fd163616837ed01e0e7
pixlsus/registry.gimp.org_static
vignetting-1.0.scm
; Script to create an elliptical vignetting, so that to fit to the image's borders. ; You can choose dark or white vignetting and also blur corners. Written by Wilfrid TETARD 2009 ;; ---------------------------------------------------------------- ; ; This program is free software; you can redistribute it and/...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/vignetting-1.0.scm
scheme
Script to create an elliptical vignetting, so that to fit to the image's borders. You can choose dark or white vignetting and also blur corners. ---------------------------------------------------------------- This program is free software; you can redistribute it and/or modify either version 3 of the Licen...
Written by Wilfrid TETARD 2009 it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License License version 3 at the web site -3.0.html Alternatively you can write to the Free Software Foundation , Inc. , 675 Mass Ave , Camb...
a95e2698ebc98ca4e51c822b4fb35987d7bac8814b78ca80a9b70af49bf5639a
ros/roslisp_common
test-data-struct.lisp
(defpackage :test-data-struct (:use :cl :cl-test :priority-queue :cl-utils :extended-reals) ) (in-package :test-data-struct) (defvars q) ;; Priority queues (setq q (make-priority-queue)) (check-equal (num-entries q) 0) (check-error (dequeue-highest q)) (check-error (peek-highest q)) (enqueue q :foo 3) (enqueue q...
null
https://raw.githubusercontent.com/ros/roslisp_common/4db311da26497d84a147f190200e50c7a5b4106e/cl_utils/src/data_struct/test-data-struct.lisp
lisp
Priority queues
(defpackage :test-data-struct (:use :cl :cl-test :priority-queue :cl-utils :extended-reals) ) (in-package :test-data-struct) (defvars q) (setq q (make-priority-queue)) (check-equal (num-entries q) 0) (check-error (dequeue-highest q)) (check-error (peek-highest q)) (enqueue q :foo 3) (enqueue q :bar 'infinity) (e...
84af91385fae086153a095466ff0a13d948dc80bb050be981f87748aad84672e
CloudI/CloudI
ranch1_sup.erl
Copyright ( c ) 2011 - 2016 , < > %% %% Permission to use, copy, modify, and/or 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 " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_ranch1/src/ranch1_sup.erl
erlang
Permission to use, copy, modify, and/or 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. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 - 2016 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(ranch1_sup). -behaviour(supervisor). -export...
5413d074691099aea57d09c4360f4a18716e2289b6e82b2fc0f0b07e9af06711
SFML-haskell/SFML
SFShape.hs
module SFML.Graphics.SFShape where import SFML.Graphics.Color import SFML.System.Vector2 class SFShape a where -- | Set the fill color of a shape. -- -- This color is modulated (multiplied) with the shape's -- texture if any. It can be used to colorize the shape, -- or change its global opa...
null
https://raw.githubusercontent.com/SFML-haskell/SFML/1d1ceee6bc782f4f194853fbd0cc4acb33b86d41/src/SFML/Graphics/SFShape.hs
haskell
| Set the fill color of a shape. This color is modulated (multiplied) with the shape's texture if any. It can be used to colorize the shape, or change its global opacity. You can use 'Transparent' to make the inside of the shape transparent, and have the outline alone. By default, the shape's fill color is op...
module SFML.Graphics.SFShape where import SFML.Graphics.Color import SFML.System.Vector2 class SFShape a where setFillColor :: a -> Color -> IO () setOutlineColor :: a -> Color -> IO () This number can not be negative . Using zero disables setOutlineThickness :: a -> IO ...
4affe7b09facfbbd30c2d21160c9a309c3cfb46a2f6778696183e58559425d07
zwizwa/staapl
main.rkt
#lang racket/base (require "parse.rkt" "../ns.rkt" "parse-tx.rkt" (for-template racket/base) (for-syntax "../tools/io.rkt" "../tools/stx.rkt" "parse-tx.rkt" racket/base)) (provide (all-defined-out) (all-from-out "parse.rkt") (...
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/rpn/main.rkt
racket
A simple straight line -> nested code transformer producing a lambda expression. This form is used in almost all rpn-based languages. It takes a list of (form expr) forms and performs a nested expression by creating an expression (from expr p <nest>). This can then be used to create a ``nested let'' expression,...
#lang racket/base (require "parse.rkt" "../ns.rkt" "parse-tx.rkt" (for-template racket/base) (for-syntax "../tools/io.rkt" "../tools/stx.rkt" "parse-tx.rkt" racket/base)) (provide (all-defined-out) (all-from-out "parse.rkt") (...
05beab72d72c93e1b75e64545acfff28c32efe99a51053d7dbfab206a831ddcf
frankiesardo/auto-parcel
extension.clj
(ns auto-parcel.extension (:require [stencil.core :as mustache])) (def template "package {{& package}}; import android.os.Parcel; import android.os.Parcelable; import java.lang.ClassLoader; final class {{& class-name}} extends {{& class-to-extend}} { private final static ClassLoader CL = {{& class-name}}.cl...
null
https://raw.githubusercontent.com/frankiesardo/auto-parcel/eacd2d42a114655b62607f2782103d464a60930c/src/auto_parcel/extension.clj
clojure
(ns auto-parcel.extension (:require [stencil.core :as mustache])) (def template final class {{& class-name}} extends {{& class-to-extend}} { public {{& class-name}} ( {{#props}} {{& cast-type}} {{& name}}{{^last?}},{{/last?}} {{/props}} ) { super( {{#props}} {{& name}}{{^last?}}...
40834a242533e86b0a9a17d6fcf0b8503d626b0c505f880e5a8eb735b074fa13
ocaml-ppx/ppx
ast_traverse.mli
(** AST traversal classes *) (* TODO: remove in favor of Ppx_ast's versioned traversals *) open! Import open Current_ast * To use these classes , inherit from them and override the methods corresponding to the types from [ Parsetree ] you want to process . For instance to collect all the string constants...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/src/ast_traverse.mli
ocaml
* AST traversal classes TODO: remove in favor of Ppx_ast's versioned traversals
open! Import open Current_ast * To use these classes , inherit from them and override the methods corresponding to the types from [ Parsetree ] you want to process . For instance to collect all the string constants in a structure : { [ let string_constants_of = object inherit [ s...
db6bbd7d224ecc0cc1076992dfdae1984bfbee9cbb9caf0b153b890421d6636d
metosin/sieppari
core_async_test.clj
(ns sieppari.core-async-test (:require [clojure.test :refer :all] [testit.core :refer :all] [sieppari.core :as sc] [clojure.core.async :refer [go <! <!!]])) (defn make-logging-interceptor [log name] {:name name :enter (fn [ctx] (swap! log conj [:enter name]) ctx) :leave (f...
null
https://raw.githubusercontent.com/metosin/sieppari/7a97d55d8063f30359e902b0678c6ebca952f9fd/test/clj/sieppari/core_async_test.clj
clojure
(ns sieppari.core-async-test (:require [clojure.test :refer :all] [testit.core :refer :all] [sieppari.core :as sc] [clojure.core.async :refer [go <! <!!]])) (defn make-logging-interceptor [log name] {:name name :enter (fn [ctx] (swap! log conj [:enter name]) ctx) :leave (f...
676b244252256f9de7172c973e5a7bae9fe1f577f7c5c155455e85e6c962a316
larandaA/hgraphs
BuilderSpec.hs
module Data.Graph.Abstract.BuilderSpec (spec) where import qualified Data.Graph.Abstract as GA import qualified Data.Graph.Abstract.Builder as GAB import Test.Hspec buildSpec :: Spec buildSpec = describe "build" $ do it "should create empty graph" $ do let g = GAB.build (pure ()) ...
null
https://raw.githubusercontent.com/larandaA/hgraphs/322b5cdfafbae851b4251c907e2c81b82cf02d4a/test/Data/Graph/Abstract/BuilderSpec.hs
haskell
module Data.Graph.Abstract.BuilderSpec (spec) where import qualified Data.Graph.Abstract as GA import qualified Data.Graph.Abstract.Builder as GAB import Test.Hspec buildSpec :: Spec buildSpec = describe "build" $ do it "should create empty graph" $ do let g = GAB.build (pure ()) ...
559ab70c63bd03a6cf12cbfcb01cc3e2891d2abbb1ae21aded08156b528c52cb
RedlineResearch/floorplan
Pretty.hs
| Module : Language . Rust . Pretty Description : Pretty printing Copyright : ( c ) , 2017 - 2018 License : BSD - style Maintainer : Stability : experimental Portability : portable This module provides functions for turning ASTs into values of type ' Doc ' . These values can then ...
null
https://raw.githubusercontent.com/RedlineResearch/floorplan/dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf/src/Language/Rust/Pretty.hs
haskell
* Printing * Resolving * Error reporting | Resolve (see the 'Resolve' typeclass) and pretty print something. Left (invalid AST (identifier `let' is a keyword)) intended for situations in which you are already stuck catching exceptions - otherwise you should prefer 'pretty'. *** Exception: invalid AST (ident...
| Module : Language . Rust . Pretty Description : Pretty printing Copyright : ( c ) , 2017 - 2018 License : BSD - style Maintainer : Stability : experimental Portability : portable This module provides functions for turning ASTs into values of type ' Doc ' . These values can then ...
390c3e023317fb7968f02eb8bce0e09199cd366fac69952ec58c5a57157e053e
betaveros/bcodex
Morse.hs
module Text.Bcodex.Morse ( morseTable, toMorseMap, morseSpace, toMorse, toMorseCodex, fromMorseMap, fromMorse, fromMorseCodex) where import qualified Data.Map as Map import Data.Char (toLower) import Data.Tuple (swap) import Text.Bcodex.Cx import Text.Bcodex.Utils import Text.Bcodex.CxUtils morseTable :: [(Cha...
null
https://raw.githubusercontent.com/betaveros/bcodex/90fadbf8215efa932212ae95fb5573df835f0c90/Text/Bcodex/Morse.hs
haskell
module Text.Bcodex.Morse ( morseTable, toMorseMap, morseSpace, toMorse, toMorseCodex, fromMorseMap, fromMorse, fromMorseCodex) where import qualified Data.Map as Map import Data.Char (toLower) import Data.Tuple (swap) import Text.Bcodex.Cx import Text.Bcodex.Utils import Text.Bcodex.CxUtils morseTable :: [(Cha...
f28a15072640812ed6e00bafb6453b00861840e2a17f83bb377f92ce270236f1
ammarhakim/gkylcas
basisTensorHybrid1x1v.lisp
;;; -*- Mode: LISP; package:maxima; syntax:common-lisp; -*- (in-package :maxima) (DSKSETQ |$varsC| '((MLIST SIMP) $X)) (ADD2LNC '|$varsC| $VALUES) (DSKSETQ |$varsP| '((MLIST SIMP) $X $VX)) (ADD2LNC '|$varsP| $VALUES) (DSKSETQ |$basisC| '((MLIST SIMP (102. #A((100.) BASE-CHAR ...
null
https://raw.githubusercontent.com/ammarhakim/gkylcas/1f8adad4f344ce8e3663451e16fdf1c32107ceed/maxima/g0/basis-precalc/basisTensorHybrid1x1v.lisp
lisp
-*- Mode: LISP; package:maxima; syntax:common-lisp; -*-
(in-package :maxima) (DSKSETQ |$varsC| '((MLIST SIMP) $X)) (ADD2LNC '|$varsC| $VALUES) (DSKSETQ |$varsP| '((MLIST SIMP) $X $VX)) (ADD2LNC '|$varsP| $VALUES) (DSKSETQ |$basisC| '((MLIST SIMP (102. #A((100.) BASE-CHAR . "/Users/manaure/Documents/gkeyll/code/gkylcas/ma...
203ab1543fb2c24cb00b47e3a35f2f78e29e40c5ab2e962b25e9fe21009e838f
dryewo/cyrus
core.clj
(ns {{namespace}}.core (:require [mount.lite :as m] [dovetail.core :as log] [cyrus-config.core :as cfg] [{{namespace}}.utils :as u]{{#nrepl}} [{{namespace}}.nrepl :as nrepl]{{/nrepl}}{{#http}} [{{namespace}}.http]{{/http}}{{#db}} [{{namespace}}.d...
null
https://raw.githubusercontent.com/dryewo/cyrus/880c842e0baa11887854ec3d912c044a2a500449/resources/leiningen/new/cyrus/src/_namespace_/core.clj
clojure
HINT: After adding or removing a defstate restart the REPL Prevent -main from exiting to keep the application running, unless it's a special test run Prevent -main from exiting to keep the application running Override some environment variables
(ns {{namespace}}.core (:require [mount.lite :as m] [dovetail.core :as log] [cyrus-config.core :as cfg] [{{namespace}}.utils :as u]{{#nrepl}} [{{namespace}}.nrepl :as nrepl]{{/nrepl}}{{#http}} [{{namespace}}.http]{{/http}}{{#db}} [{{namespace}}.d...
ac0b8f7cde54562f46a7fec91028bb28cc9cf358eb199bcc8962478727ef8bb7
neongreen/haskell-ex
Main.hs
import qualified Data.Map.Lazy as M import qualified Data.Set as S import Data.Set (Set) import Data.List (sortOn) import Debug.Trace (trace) -- |A Node is simply a pair of coordinates. type Node = (Int, Int) |A Path is actually a Map between a current Node and its previous one . type Path = M.Map Node Node |A Gra...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week4/path/thalesmg/Main.hs
haskell
|A Node is simply a pair of coordinates. |Helper function to read the map into a matrix of 0's and 1's |Infinity. ^Start node. ^End node. ^Built graph. throws exception if the Map does not contain A! ^Start node. ^End node. ^Built graph. throws exception if the Map does not contain A! ^Starting graph ^Star...
import qualified Data.Map.Lazy as M import qualified Data.Set as S import Data.Set (Set) import Data.List (sortOn) import Debug.Trace (trace) type Node = (Int, Int) |A Path is actually a Map between a current Node and its previous one . type Path = M.Map Node Node |A Graph is a map from a Node to 0 or more Nodes ,...