_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 |
|---|---|---|---|---|---|---|---|---|
b3babb599a52fd253225a4893634eb68f4c7e2a5b29b21a03722757fce524a70 | synduce/Synduce | mts_no_ensures.ml |
let f0 a = (max a 0, a)
let join (b0, b1) (c0, c1) = (max c0 (b0 + c1), b1 + c1)
let s0 = (0, 0)
let rec hom =
function CNil -> s0 | Single(a) -> f0 a
| Concat(x, y) -> join (hom x) (hom y)
| null | https://raw.githubusercontent.com/synduce/Synduce/289888afb1c312adfd631ce8d90df2134de827b8/extras/solutions/constraints/ensures/mts_no_ensures.ml | ocaml |
let f0 a = (max a 0, a)
let join (b0, b1) (c0, c1) = (max c0 (b0 + c1), b1 + c1)
let s0 = (0, 0)
let rec hom =
function CNil -> s0 | Single(a) -> f0 a
| Concat(x, y) -> join (hom x) (hom y)
| |
dffc531c9e167184245fe8450f6be94fcc7c85679a7b1ecb22f673933f75a3ca | skeuchel/needle | SubstSubordInd.hs | {-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiWayIf #-}
# LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -Wall #
module KnotCore.Elaboration.Interaction.SubstSubordInd where
import Coq.StdLib as Coq
import Coq.Syntax as Coq
import KnotCore.Syntax
import KnotCore.Elaboration.Core
import KnotCore.Elaboration.Eq ()
import Kno... | null | https://raw.githubusercontent.com/skeuchel/needle/25f46005d37571c1585805487a47950dcd588269/src/KnotCore/Elaboration/Interaction/SubstSubordInd.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE MultiWayIf # | # LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -Wall #
module KnotCore.Elaboration.Interaction.SubstSubordInd where
import Coq.StdLib as Coq
import Coq.Syntax as Coq
import KnotCore.Syntax
import KnotCore.Elaboration.Core
import KnotCore.Elaboration.Eq ()
import KnotCore.Elaboration.Interaction.Common
lemmas :: Ela... |
dda85362755861f3bfd69e5bda34f87b031adb3323edc4aa0612cbcc01106c25 | AshleyYakeley/Truth | Colour.hs | {-# OPTIONS -fno-warn-orphans #-}
module Pinafore.Language.Library.Media.Colour
( colourStuff
, LangColour
, pattern ColorSRGB
, pattern MkPerceptualSRGB16
, pattern MkPerceptualSRGBFraction
, LangAlphaColour
, pattern Alpha
, pattern MkAlphaColour16
, pattern MkAlphaColourFraction
... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/c9bdac3df64c9f10505866564f048e1b6106e967/Pinafore/pinafore-media/lib/Pinafore/Language/Library/Media/Colour.hs | haskell | # OPTIONS -fno-warn-orphans #
# COMPLETE MkPerceptualSRGB16 #
# COMPLETE MkLinearRGBFraction #
# COMPLETE MkAlphaColourFraction # |
module Pinafore.Language.Library.Media.Colour
( colourStuff
, LangColour
, pattern ColorSRGB
, pattern MkPerceptualSRGB16
, pattern MkPerceptualSRGBFraction
, LangAlphaColour
, pattern Alpha
, pattern MkAlphaColour16
, pattern MkAlphaColourFraction
, pattern MkOpaqueAlphaColour
... |
be685d412d985e2e97f69b088ad0cbb996c9c70969cec21e25c2836f870d6c02 | iu-parfunc/verified-instances | Prod.hs | {-@ LIQUID "--reflection" @-}
{-@ LIQUID "--ple" @-}
module Data.VerifiedEq.Instances.Prod (veqProd, eqProd) where
import Data.VerifiedEq
import Language.Haskell.Liquid.ProofCombinators
{-@ axiomatize eqProd @-}
eqProd :: (a -> a -> Bool) -> (b -> b -> Bool)
-> (a, b) -> (a, b) -> Bool
eqProd eqa eqb (... | null | https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/src/Data/VerifiedEq/Instances/Prod.hs | haskell | @ LIQUID "--reflection" @
@ LIQUID "--ple" @
@ axiomatize eqProd @
@ veqProd :: VerifiedEq a -> VerifiedEq b -> VerifiedEq (a, b) @ |
module Data.VerifiedEq.Instances.Prod (veqProd, eqProd) where
import Data.VerifiedEq
import Language.Haskell.Liquid.ProofCombinators
eqProd :: (a -> a -> Bool) -> (b -> b -> Bool)
-> (a, b) -> (a, b) -> Bool
eqProd eqa eqb (a1, b1) (a2, b2) =
eqa a1 a2 && eqb b1 b2
# INLINE eqProd #
@ eqProdRefl : : eqa:(a... |
4268d749a74f156b721137fa3967b8172234a28e0e2653da21ad90f62bf29028 | cirodrig/triolet | IncrementalSubstitution.hs |
# LANGUAGE FlexibleInstances , FlexibleContexts #
module SystemF.IncrementalSubstitution
(SM,
Pat(..), Alt(..), Fun(..),
PatSM, ExpSM, AltSM, FunSM,
substitutePatSM, substitutePatSMs,
deferSubstitution,
deferEmptySubstitution,
addDeferredSubstitution,
fres... | null | https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/SystemF/IncrementalSubstitution.hs | haskell | | Type index for a 'Mem' expression wrapped in a substitution
Types, patterns, and constructor instances are eagerly substituted
| An expression wrapped in a substitution.
The substitution should be applied to the expression before
inspecting the expression.
| 'PatSM' behaves like 'PatM'
Push the substituti... |
# LANGUAGE FlexibleInstances , FlexibleContexts #
module SystemF.IncrementalSubstitution
(SM,
Pat(..), Alt(..), Fun(..),
PatSM, ExpSM, AltSM, FunSM,
substitutePatSM, substitutePatSMs,
deferSubstitution,
deferEmptySubstitution,
addDeferredSubstitution,
fres... |
79dfb0d08b2a44b1ed60923f9d87298071f7df7246f450c5b0c474a10a389ae8 | emina/rosette | more-snippets.rkt | #lang s-exp "../lang/main.rkt"
(: void* dst)
(: int SIZE)
(= SIZE 2)
(= dst ((int*) (malloc (* SIZE (sizeof int)))))
(for () (print "hello\n"))
(for [(: int x in (range 4))
(: int y in (range 0 6 3))
(: int z in (range 1))]
(print x " " y " " z "\n"))
(procedure int (tiny0 [int x])
(minus x))
(pr... | null | https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/sdsl/synthcl/test/more-snippets.rkt | racket | #lang s-exp "../lang/main.rkt"
(: void* dst)
(: int SIZE)
(= SIZE 2)
(= dst ((int*) (malloc (* SIZE (sizeof int)))))
(for () (print "hello\n"))
(for [(: int x in (range 4))
(: int y in (range 0 6 3))
(: int z in (range 1))]
(print x " " y " " z "\n"))
(procedure int (tiny0 [int x])
(minus x))
(pr... | |
0aad110b2fd66ec8e4f2e26a9786b5994ea733892871111d43656e19510b330f | vikram/lisplibraries | parsers.lisp | (in-package :cl-l10n)
(defun parse-number (num &optional (locale (current-locale)))
(let ((locale (locale locale)))
(%parse-number (replace-dp (remove-ts num locale) locale))))
(defun remove-ts (num locale)
(let ((ts (locale-thousands-sep locale)))
(case (length ts)
(0 num)
(1 (remove (schar t... | null | https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/dependencies/cl-l10n/parsers.lisp | lisp | money parser | (in-package :cl-l10n)
(defun parse-number (num &optional (locale (current-locale)))
(let ((locale (locale locale)))
(%parse-number (replace-dp (remove-ts num locale) locale))))
(defun remove-ts (num locale)
(let ((ts (locale-thousands-sep locale)))
(case (length ts)
(0 num)
(1 (remove (schar t... |
82bff480eb20ebb38bc5ba221acad73e6cccebf8b0239c8cf51b2d45bdc4624b | vrnithinkumar/ETC | mut_rec.erl | -module(mut_rec).
-compile(export_all).
% simple mutually recursive functions
foo() -> ind(), bar().
bar() -> foo().
ind() -> 3.
even(N) -> (N == 0) or odd(N - 1).
odd(N) -> (N > 0) and even(N - 1).
| null | https://raw.githubusercontent.com/vrnithinkumar/ETC/34e8b3f98973f49582bb68c46822dbe94f1f9c61/btc_test_suit/test_cases/mut_rec.erl | erlang | simple mutually recursive functions | -module(mut_rec).
-compile(export_all).
foo() -> ind(), bar().
bar() -> foo().
ind() -> 3.
even(N) -> (N == 0) or odd(N - 1).
odd(N) -> (N > 0) and even(N - 1).
|
f76fe823b7e02a775e308fc8230380ba415596dc5e0b5c6a9eacba0d6243b9b9 | ocaml/oasis-db | RESTCurl.ml |
open ExtLib
open REST
open RESTConv
type ctxt =
{
base_url: string;
curl_socket: Curl.t;
dbug_print: string -> unit;
}
let create ?(dbug_print=ignore) base_url curl_socket =
{
base_url = base_url;
curl_socket = curl_socket;
dbug_print = dbug_print;
}
let mk_fun api... | null | https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/rest/curl/RESTCurl.ml | ocaml |
open ExtLib
open REST
open RESTConv
type ctxt =
{
base_url: string;
curl_socket: Curl.t;
dbug_print: string -> unit;
}
let create ?(dbug_print=ignore) base_url curl_socket =
{
base_url = base_url;
curl_socket = curl_socket;
dbug_print = dbug_print;
}
let mk_fun api... | |
ed300af598c5d65073ac590e09f1be26e5ae2f6aa27901d8594c86ea8df523ed | dradtke/Lisp-Text-Editor | utils.lisp | (in-package :gtk-cffi-utils)
(defmacro debug-out (&body body)
; (declare (ignore body))
`(format t ,@body)
)
(defmacro memo (place &body body)
`(or ,place
(setf ,place ,@body)))
(defun find-key (key seq)
(when seq
(if (eq key (car seq))
(list (first seq) (second seq))
(find-key k... | null | https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/gtk-cffi-20120208-cvs/utils/utils.lisp | lisp | (declare (ignore body)) | (in-package :gtk-cffi-utils)
(defmacro debug-out (&body body)
`(format t ,@body)
)
(defmacro memo (place &body body)
`(or ,place
(setf ,place ,@body)))
(defun find-key (key seq)
(when seq
(if (eq key (car seq))
(list (first seq) (second seq))
(find-key key (cddr seq)))))
(defmacr... |
ff8e715d4d89b896fa6e50491541545a29cdaa7eb9712c73472afe654dfbae88 | ayamada/clan | project.clj | (load-file "../project-common.clj")
(defproject-desktop)
| null | https://raw.githubusercontent.com/ayamada/clan/4fe76a2670b2c6fa71bc955a365109c6401d65e6/sample/desktop/project.clj | clojure | (load-file "../project-common.clj")
(defproject-desktop)
| |
bf503e83111d10fde3f427b0e41dac48a4f4faec12ca0b24a266faec875404b9 | erlang-ls/erlang_ls | diagnostics_unused_includes.erl | -module(diagnostics_unused_includes).
-include_lib("kernel/include/file.hrl").
-include_lib("et/include/et.hrl").
-include("code_navigation.hrl").
-include("diagnostics.hrl").
-include("transitive.hrl").
-export([main/0]).
-spec main() -> {defined_type(), any()}.
main() ->
_ = #file_info{},
{?INCLUDED_MACRO_A, ?... | null | https://raw.githubusercontent.com/erlang-ls/erlang_ls/36bf0815e35db5d25a76e80f98f306f25fff7d8c/apps/els_lsp/priv/code_navigation/src/diagnostics_unused_includes.erl | erlang | -module(diagnostics_unused_includes).
-include_lib("kernel/include/file.hrl").
-include_lib("et/include/et.hrl").
-include("code_navigation.hrl").
-include("diagnostics.hrl").
-include("transitive.hrl").
-export([main/0]).
-spec main() -> {defined_type(), any()}.
main() ->
_ = #file_info{},
{?INCLUDED_MACRO_A, ?... | |
969384674339c0a1058cbf604534f733da4d64458dc373cc6a90370632f3bd30 | ocaml-batteries-team/batteries-included | batPathGen.ml |
* Path - Path and directory manipulation
* Copyright ( C ) 2008
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at yo... | null | https://raw.githubusercontent.com/ocaml-batteries-team/batteries-included/f143ef5ec583d87d538b8f06f06d046d64555e90/src/batPathGen.ml | ocaml | ----------------------- Copy of (most of) Path.mli
How to avoid having the copy here?
* This signature lists few basic operations provided by all string types.
* The actual implementation may use any (coherent) scheme of indexing of strings. Below the term 'indexing unit' can stay either for byte or character (or... |
* Path - Path and directory manipulation
* Copyright ( C ) 2008
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at yo... |
fd7514141280593dd5e73c98c9c339eceef591177d042c0d2e46a3ee9519015d | racket/typed-racket | untyped.rkt | #lang racket/base
(require
typed/racket/base
typed/untyped-utils)
(require/untyped-contract "lib.rkt"
(f (-> Symbol Void)))
(provide f)
| null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/untyped-contract-aux/untyped.rkt | racket | #lang racket/base
(require
typed/racket/base
typed/untyped-utils)
(require/untyped-contract "lib.rkt"
(f (-> Symbol Void)))
(provide f)
| |
bd4a5ab5280318aefca66c60814315f6732329bbe7dc9c8ad34a7de9b0a9ef65 | daigotanaka/mern-cljs | core.cljs | (ns api.core
(:require-macros
[mern-utils.macros :refer [node-require, node-config]])
(:require
[polyfill.compat]
[cljs.nodejs :as nodejs]
[mern-utils.db :as db]
[mern-utils.backend-lib :refer [local-ip log]]
[mern-utils.express :refer [route]]
[mern-utils.passport.strategy :refer [confi... | null | https://raw.githubusercontent.com/daigotanaka/mern-cljs/a9dedbb3b622f96dd0b06832733b4fd961e6437d/example/api/src/api/core.cljs | clojure | (ns api.core
(:require-macros
[mern-utils.macros :refer [node-require, node-config]])
(:require
[polyfill.compat]
[cljs.nodejs :as nodejs]
[mern-utils.db :as db]
[mern-utils.backend-lib :refer [local-ip log]]
[mern-utils.express :refer [route]]
[mern-utils.passport.strategy :refer [confi... | |
4c731c041f05c67b54cea452b03b9e044e6a2933295b9869e611eadfec7a955e | kit-ty-kate/visitors | datacon_at_name.ml | type t =
| A
| B of u
and u =
| C of t [@name "A"]
[@@deriving visitors { variety = "iter" }]
Another example where two distinct types have a data constructor
renamed [ A ] . This causes a name clash on the methods [ visit_A ] .
renamed [A]. This causes a name clash on the methods [visit_A]. *)
| null | https://raw.githubusercontent.com/kit-ty-kate/visitors/fc53cc486178781e0b1e581eced98e07facb7d29/test/bad/datacon_at_name.ml | ocaml | type t =
| A
| B of u
and u =
| C of t [@name "A"]
[@@deriving visitors { variety = "iter" }]
Another example where two distinct types have a data constructor
renamed [ A ] . This causes a name clash on the methods [ visit_A ] .
renamed [A]. This causes a name clash on the methods [visit_A]. *)
| |
5a825ca19a6eb221d1a09a52d059611eed7f77a9f0e76dee260bad04d8b8785d | zkat/squirl | theo-jansen.lisp | (in-package :squirl-demo)
(defclass theo-jansen (demo)
((static-body :accessor static-body)
(walker :accessor demo-walker)
(motor :accessor demo-motor))
(:default-initargs :name "Theo Jansen Walker"))
(defparameter *seg-radius* 3)
(defmethod update-demo :before ((demo theo-jansen) dt)
(declare (ignore dt... | null | https://raw.githubusercontent.com/zkat/squirl/d5ab125b389008696a66f5a0d1bbb7449584db90/demo/theo-jansen.lisp | lisp | add constraints
add the legs... | (in-package :squirl-demo)
(defclass theo-jansen (demo)
((static-body :accessor static-body)
(walker :accessor demo-walker)
(motor :accessor demo-motor))
(:default-initargs :name "Theo Jansen Walker"))
(defparameter *seg-radius* 3)
(defmethod update-demo :before ((demo theo-jansen) dt)
(declare (ignore dt... |
98086edbc1e29884f9f6878033beec51f7a725306da910cf96da5010a2100d77 | martijnbastiaan/doctest-parallel | Fib.hs | module Fib where
-- | Calculate Fibonacci numbers.
-- @
-- some code
-- @
--
foobar 23
fib :: Int -> Int -> Int
fib _ = undefined
| null | https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/parse/no-examples/Fib.hs | haskell | | Calculate Fibonacci numbers.
@
some code
@
| module Fib where
foobar 23
fib :: Int -> Int -> Int
fib _ = undefined
|
7aa95da6dbb4b280df22afed4ee08099f4d5fbf72fcf862768ed5018707842bb | keera-studios/keera-hails | ProtectedModel.hs | module Model.ProtectedModel
( ProtectedModel
, onEvent
, waitFor
, module Exported
)
where
import Model.ProtectedModel.ProtectedModelInternals
import Model.ReactiveModel.ModelEvents as Exported
import Model.ProtectedModel.ProtectedFields as Exported
import Hails.MVC.Model.Protec... | null | https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/keera-hails/templates/Model/ProtectedModel.hs | haskell | module Model.ProtectedModel
( ProtectedModel
, onEvent
, waitFor
, module Exported
)
where
import Model.ProtectedModel.ProtectedModelInternals
import Model.ReactiveModel.ModelEvents as Exported
import Model.ProtectedModel.ProtectedFields as Exported
import Hails.MVC.Model.Protec... | |
48aff1186a9174917160cfa149973dcb896c13a391837331250af37cf71a170f | ferd/calcalc | calcalc_mayan_haab.erl | -module(calcalc_mayan_haab).
-export([epoch/0, date/1, is_valid/1, to_fixed/1,
from_fixed/1]).
-compile(export_all).
-import(calcalc_math, [floor/1, ceil/1, amod/2, mod/2]).
-include("calcalc.hrl").
-spec epoch() -> integer().
epoch() -> calcalc:fixed_from_jd(584283) - ordinal(18, 8).
-spec date(map()) -> c... | null | https://raw.githubusercontent.com/ferd/calcalc/d16eec3512d7b4402b1ddde82128f2483e955e98/src/calcalc_mayan_haab.erl | erlang | Haab months | -module(calcalc_mayan_haab).
-export([epoch/0, date/1, is_valid/1, to_fixed/1,
from_fixed/1]).
-compile(export_all).
-import(calcalc_math, [floor/1, ceil/1, amod/2, mod/2]).
-include("calcalc.hrl").
-spec epoch() -> integer().
epoch() -> calcalc:fixed_from_jd(584283) - ordinal(18, 8).
-spec date(map()) -> c... |
9ad7bef2a89e93abe8926851576f9d9494877b89ffff9e4ea72c6ca4b2aa180f | Practical-Formal-Methods/adiff | Strategy.hs | MIT License
--
Copyright ( c ) 2018
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitation the rights
-- to use, copy, modify, merge, pu... | null | https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/adiff/src/ADiff/Strategy.hs | haskell |
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above copyright notice... | MIT License
Copyright ( c ) 2018
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS... |
672bf7abd42c6f30363c6bdc76c85e111d9122c956a754b93b7473fb85520f59 | careercup/CtCI-6th-Edition-Clojure | chapter_3_q2.clj | (ns ^{:author "Leeor Engel"}
chapter-3.chapter-3-q2
(:require [data-structures.stack :refer :all]
[data-structures.mutable-stack :refer :all]))
;; Assumptions:
;;
1 . no duplicates
2 . min is a peek not a pop
;;
(defprotocol StackWithMin
(min-stack-pop [this])
(min-stack-peek [this])
(min-st... | null | https://raw.githubusercontent.com/careercup/CtCI-6th-Edition-Clojure/ef151b94978af82fb3e0b1b0cd084d910870c52a/src/chapter_3/chapter_3_q2.clj | clojure | Assumptions:
| (ns ^{:author "Leeor Engel"}
chapter-3.chapter-3-q2
(:require [data-structures.stack :refer :all]
[data-structures.mutable-stack :refer :all]))
1 . no duplicates
2 . min is a peek not a pop
(defprotocol StackWithMin
(min-stack-pop [this])
(min-stack-peek [this])
(min-stack-push [this x])
(... |
a83c3b780556fff6ce41615767b34b5e85a73c9af6a5f3f6211bde4e3d652c93 | takikawa/racket-ppa | info.rkt | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("string-constants-lib" "string-constants-doc"))) (define implies (quote ("string-constants-lib" "string-constants-doc"))) (define pkg-desc "String constants to support internationalization, especially in DrRacket") (define... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/string-constants/info.rkt | racket | (module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("string-constants-lib" "string-constants-doc"))) (define implies (quote ("string-constants-lib" "string-constants-doc"))) (define pkg-desc "String constants to support internationalization, especially in DrRacket") (define... | |
d59ac9ba1bbb8ecaf8a08f8d8b2bfc27013b5ca0d84fcb4e51175a481e683c67 | restyled-io/restyled.io | Profile.hs | # LANGUAGE TemplateHaskell #
module Restyled.Handlers.Profile
( getProfileR
) where
import Restyled.Prelude hiding (identity)
import Restyled.DB
import Restyled.Foundation
import Restyled.GitHubOrg
import Restyled.Models
import Restyled.PrivateRepoAllowance
import Restyled.Routes
import Restyled.Settings
imp... | null | https://raw.githubusercontent.com/restyled-io/restyled.io/e3208b62dfea0916b9760cf8dd73abc7c5f080bb/src/Restyled/Handlers/Profile.hs | haskell | ^ TODO: newtype?
brittany-disable-next-binding | # LANGUAGE TemplateHaskell #
module Restyled.Handlers.Profile
( getProfileR
) where
import Restyled.Prelude hiding (identity)
import Restyled.DB
import Restyled.Foundation
import Restyled.GitHubOrg
import Restyled.Models
import Restyled.PrivateRepoAllowance
import Restyled.Routes
import Restyled.Settings
imp... |
c456cff736ba11638cc0419359a3c5606af80e377090d0afe89e1798883b15c2 | stchang/macrotypes | turnstile-lang-prog.rkt | #lang s-exp "turnstile-lang.rkt"
| null | https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-test/tests/turnstile/load-time-tests/turnstile-lang-prog.rkt | racket | #lang s-exp "turnstile-lang.rkt"
| |
8c93370bb77a4c47f4d7997cfe0afb67364605d8764ca3e04e7a9c7b0f0e6260 | brendanhay/gogol | Patch.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
{-# LANGUAGE St... | null | https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-healthcare/gen/Gogol/Healthcare/Projects/Locations/Datasets/Patch.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
Updates dataset metadata.
* Resource
** Constructing a Request
| A resource alias for @healthcare.projects.locations.datasets.patch@ method which the
'HealthcareProjectsLocationsDatasetsPatch' request conforms to.
| Updates ... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators... |
45de5823b518876c75540e1d9b0a517150de56a5db4c3c8957e7148fac78fe95 | haskell-github/github | DeleteTeam.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Common
import qualified GitHub
import qualified GitHub.Endpoints.Organizations.Teams as GitHub
main :: IO ()
main = do
args <- getArgs
result <- case args of
[token, team_id] -> GitHub.deleteTeam' (Git... | null | https://raw.githubusercontent.com/haskell-github/github/81d9b658c33a706f18418211a78d2690752518a4/samples/Teams/DeleteTeam.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE NoImplicitPrelude #
module Main (main) where
import Common
import qualified GitHub
import qualified GitHub.Endpoints.Organizations.Teams as GitHub
main :: IO ()
main = do
args <- getArgs
result <- case args of
[token, team_id] -> GitHub.deleteTeam' (GitHub.OAuth $ fromString token) (GitH... |
c6b5f4f3c0f94c5274a83da5942eddceaecc4f5a6b29f9ef23a43801e98263d2 | ucsd-progsys/nate | ocamlprof.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
and , INRIA R... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/ocaml/tools/ocamlprof.ml | ocaml | *********************************************************************
OCaml
... | and , INRIA Rocquencourt
Ported to Caml Special Light by
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 . ... |
fdd0e53f831b5aa61be123cca5d8b6b07ca7d59e50cbd447015f133834a6c9ea | maralorn/kassandra | Util.hs | module Kassandra.Util (
tellSingleton,
tellTask,
tellToggle,
tellNewTask,
lookupTask,
lookupTaskM,
lookupTasks,
lookupTasksM,
lookupTasksDynM,
defDyn,
defDynDyn,
stillTodo,
) where
import Data.HashSet (member)
import Data.Witherable
import Kassandra.Types (
AppStateChange,
DataChange,
Hav... | null | https://raw.githubusercontent.com/maralorn/kassandra/598133b89ab4e4a6209da920636e9e6ee540f38a/apps/kassandra/kassandra/src/Kassandra/Util.hs | haskell | module Kassandra.Util (
tellSingleton,
tellTask,
tellToggle,
tellNewTask,
lookupTask,
lookupTaskM,
lookupTasks,
lookupTasksM,
lookupTasksDynM,
defDyn,
defDynDyn,
stillTodo,
) where
import Data.HashSet (member)
import Data.Witherable
import Kassandra.Types (
AppStateChange,
DataChange,
Hav... | |
1e4f4d4bc9cb641352052585468ff4ff96e7fa66b321f8602f723cd151800ea7 | shirok/Gauche | compile-0.scm | ;;;
;;; compile-0.scm - Utility macros for the compiler
;;;
Copyright ( c ) 2004 - 2022 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Redistributions of source code must ret... | null | https://raw.githubusercontent.com/shirok/Gauche/0dc84bb2aeb8bb8816b694b17e4efda49d73fb32/src/compile-0.scm | scheme |
compile-0.scm - Utility macros for the compiler
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... | Copyright ( c ) 2004 - 2022 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
(declare (keep-private-macro case/unquote g... |
25b901218db8fffc7e8dba4c8493a9a10defa693d8220af06c98033b90a4c889 | joinr/spork | testing.clj | (ns spork.ai.testing
(:require [spork.ai.core :as core :refer
[deref! fget fassoc push-message- debug ->msg]]
[spork.ai.demo :as demo]
[spork.ai.behavior :as behavior
:refer [beval
success?
success
run
... | null | https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/ai/testing.clj | clojure | "rules are for fools"
this only works with path literals...
allows us to define paths at compile time.
__behaviors__
logs the state of the entity.
if we have a message, and the message indicates
a time delta, we should wait the amount of time
the delta indicates. Waiting induces a change in the
remaining wait time, as... | (ns spork.ai.testing
(:require [spork.ai.core :as core :refer
[deref! fget fassoc push-message- debug ->msg]]
[spork.ai.demo :as demo]
[spork.ai.behavior :as behavior
:refer [beval
success?
success
run
... |
39578428e32ef5be41ad2983667ed3674b2fb7bc310a97f0305e1b0c46b807ba | docopt/docopt.hs | NoTH.hs | module System.Console.Docopt.NoTH
(
-- * Usage parsers
parseUsage
, parseUsageOrExit
, module System.Console.Docopt.Public
)
where
import Data.Map as M hiding (null)
import System.Exit
import System.Console.Docopt.Types
import System.Console.Docopt.Public
import System.Console.Docopt.ParseUti... | null | https://raw.githubusercontent.com/docopt/docopt.hs/a099173860a40cfa371752160ff32dafa957f958/System/Console/Docopt/NoTH.hs | haskell | * Usage parsers
For help with the docopt usage format, see
<#help-text-format the readme on github>.
| Same as 'parseUsage', but 'exitWithUsage' on parse failure. E.g.
> patterns <- parseUsageOrExit usageStr | module System.Console.Docopt.NoTH
(
parseUsage
, parseUsageOrExit
, module System.Console.Docopt.Public
)
where
import Data.Map as M hiding (null)
import System.Exit
import System.Console.Docopt.Types
import System.Console.Docopt.Public
import System.Console.Docopt.ParseUtils
import System.Consol... |
a41f96cc425ca73fd8a3d03d578454027f1796c10ae0c66313db1125f992a050 | basho/riak_core | riak_core_claim_sim.erl | %% -------------------------------------------------------------------
%%
%% riak_core: Core Riak Application
%%
Copyright ( c ) 2007 - 2012 Basho Technologies , Inc. All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except... | null | https://raw.githubusercontent.com/basho/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/src/riak_core_claim_sim.erl | erlang | -------------------------------------------------------------------
riak_core: Core Riak Application
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
sp... | Copyright ( c ) 2007 - 2012 Basho Technologies , Inc. All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
... |
4175937b2c0a23295e76b8b9b4ee35d55e4bd578fdca6666012cc32a37de3591 | tailrecursion/boot | boot_classloader_test.clj | (ns tailrecursion.boot-classloader-test
(:require [clojure.test :refer :all]
[tailrecursion.boot-classloader :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| null | https://raw.githubusercontent.com/tailrecursion/boot/afdef9fee52937263774c70a9ddd81afb1f2601c/boot-classloader/test/tailrecursion/boot_classloader_test.clj | clojure | (ns tailrecursion.boot-classloader-test
(:require [clojure.test :refer :all]
[tailrecursion.boot-classloader :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| |
d3d5fed9fcb7dc5d0ac995c9ab4df218b52ed7f190ed510ade7185d2327bf334 | arttuka/reagent-material-ui | window_outlined.cljs | (ns reagent-mui.icons.window-outlined
"Imports @mui/icons-material/WindowOutlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def window-outlined (create-sv... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/window_outlined.cljs | clojure | (ns reagent-mui.icons.window-outlined
"Imports @mui/icons-material/WindowOutlined as a Reagent component."
(:require-macros [reagent-mui.util :refer [create-svg-icon e]])
(:require [react :as react]
["@mui/material/SvgIcon" :as SvgIcon]
[reagent-mui.util]))
(def window-outlined (create-sv... | |
3209e6cd937e2a6d443a2397580a1f24ed4c0a4f8de57b644fe84bb8d728e900 | fpco/cache-s3 | Cache.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
-- |
-- Module : Network.AWS.S3.Cache
Copyright : ( c ) FP Complete 2017
-- License : BSD3
Maintainer : < >
-- Stability : experimental
-... | null | https://raw.githubusercontent.com/fpco/cache-s3/2d68e6a5aa1c60d3785420adff24f028ac82ae15/src/Network/AWS/S3/Cache.hs | haskell | # LANGUAGE OverloadedStrings #
|
Module : Network.AWS.S3.Cache
License : BSD3
Stability : experimental
Portability : non-portable
^ Should logger be concise (ommit timestamp and app name)
^ Minimum log level | # LANGUAGE FlexibleContexts #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
Copyright : ( c ) FP Complete 2017
Maintainer : < >
module Network.AWS.S3.Cache
( runCacheS3
, cacheS3Version
, mkCacheS3LogFunc
, module Network.AWS.S3.Cache.Types
) where
... |
caae3eb0c514413e4d82594ddf7e618c51c1a8f3c5fc5f5494b1c8a11d5f68b2 | PixelsCamp/pixelscamp-quiz-stage | util.clj | (ns pixelsquiz.util
(:gen-class))
(defn scores-to-map
[scores]
(mapv (fn [s t] {:score s :team t}) scores [1 2 3 4])
)
(defn sort-teams-by-scores
[scores]
(sort-by :score > (scores-to-map scores))
)
| null | https://raw.githubusercontent.com/PixelsCamp/pixelscamp-quiz-stage/102e6688aac9e72515cc532cc1815de351981fab/src/pixelsquiz/util.clj | clojure | (ns pixelsquiz.util
(:gen-class))
(defn scores-to-map
[scores]
(mapv (fn [s t] {:score s :team t}) scores [1 2 3 4])
)
(defn sort-teams-by-scores
[scores]
(sort-by :score > (scores-to-map scores))
)
| |
bc1052693d56d2669c1192d31f7579b7b154c66a3f1f78ce7ca789380bd2c4de | Drup/dowsing | Subst.ml | type t = Type.t Variable.Map.t
let empty = Variable.Map.empty
let add = Variable.Map.add
let rec apply (env : Type.Env.t) t =
let substitute ty = apply env t ty in
fun (ty : Type.t) ->
match ty with
| Var var ->
begin match Variable.Map.get var t with
| None -> ty
| Some ty -> substi... | null | https://raw.githubusercontent.com/Drup/dowsing/6bf6800fdac2efef954e266b46cdabb5c5c08d84/lib/common/Subst.ml | ocaml | <?> (int, size t1, size t2) | type t = Type.t Variable.Map.t
let empty = Variable.Map.empty
let add = Variable.Map.add
let rec apply (env : Type.Env.t) t =
let substitute ty = apply env t ty in
fun (ty : Type.t) ->
match ty with
| Var var ->
begin match Variable.Map.get var t with
| None -> ty
| Some ty -> substi... |
31f4940344582870ba8fa98d3eaed5bca852867559fdfb82abeb6d4701ba5dfb | vivid-inc/ash-ra-template | resolve.clj | ; Copyright 2020 Vivid 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
distributed under the L... | null | https://raw.githubusercontent.com/vivid-inc/ash-ra-template/f64be7efd6f52ccd451cddb851f02511d1665b11/art-cli/src/vivid/art/cli/resolve.clj | clojure | Copyright 2020 Vivid Inc.
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 speci... | distributed under the License is distributed on an " AS IS " BASIS ,
(ns vivid.art.cli.resolve
"Resolvers of CLI option arguments.
If an argument doesn't appear to be resolvable according to the nature of
a given resolver fn, it returns nil. Otherwise, these fns proceed with
resolution and will signal any e... |
e0e294ea6775d0e6e17b9b16cf02476d28af6fb380a9102d3414e85775a3b865 | gafiatulin/codewars | HTMLComplementaryColor.hs | HTML Complementary Color
--
module Codewars.Kata.HTMLComplementaryColor where
import Data.Char (isHexDigit, toUpper)
import Numeric (showHex, readHex)
getReversedColor :: String -> Maybe String
getReversedColor [] = Just "#FFFFFF"
getReversedColor xs | ((<= 6) . length $ xs) && all isHexDigit xs = Just . ('#':) .... | null | https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/HTMLComplementaryColor.hs | haskell | HTML Complementary Color
module Codewars.Kata.HTMLComplementaryColor where
import Data.Char (isHexDigit, toUpper)
import Numeric (showHex, readHex)
getReversedColor :: String -> Maybe String
getReversedColor [] = Just "#FFFFFF"
getReversedColor xs | ((<= 6) . length $ xs) && all isHexDigit xs = Just . ('#':) . map... | |
e83ed0b71ede8d45eefff8220bd69405e9da83a86ee86fdcc774d63024fbd793 | vnarek/jude | actor.ml | open Jude
module Msg = struct
open Bin_prot.Std
type t = Adioso of string [@@deriving bin_io, eq, show]
end
module Timer = struct
type t = Finished [@@deriving bin_io, eq, show]
end
let receive (type a) (m : a Binable.m) t msg =
let digest, buf = Binable.to_bytes m msg in
Actor.receive t digest buf
let c... | null | https://raw.githubusercontent.com/vnarek/jude/b1e9387d0242cd83b3b72695bce267c970de1857/lib_test/actor.ml | ocaml | open Jude
module Msg = struct
open Bin_prot.Std
type t = Adioso of string [@@deriving bin_io, eq, show]
end
module Timer = struct
type t = Finished [@@deriving bin_io, eq, show]
end
let receive (type a) (m : a Binable.m) t msg =
let digest, buf = Binable.to_bytes m msg in
Actor.receive t digest buf
let c... | |
2edaf52402bb2c9e4557b72109a1dc10d83f78437a5001f4b17b9b5c00ec5bf0 | danieljharvey/mimsa | Evaluate.hs | {-# LANGUAGE OverloadedStrings #-}
module Repl.Actions.Evaluate
( doEvaluate,
)
where
import qualified Language.Mimsa.Actions.Modules.Evaluate as Actions
import Language.Mimsa.Core
import Language.Mimsa.Types.Error
import Language.Mimsa.Types.Project
import Prettyprinter
import Repl.Helpers
import Repl.ReplM
doE... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/564c32cc28d990c9e686f63533a9e30c3736aee4/repl/repl/Repl/Actions/Evaluate.hs | haskell | # LANGUAGE OverloadedStrings #
print
------- |
module Repl.Actions.Evaluate
( doEvaluate,
)
where
import qualified Language.Mimsa.Actions.Modules.Evaluate as Actions
import Language.Mimsa.Core
import Language.Mimsa.Types.Error
import Language.Mimsa.Types.Project
import Prettyprinter
import Repl.Helpers
import Repl.ReplM
doEvaluate ::
Project Annotation ->
... |
8d544ae798983a4e76d383989d8b21b33b5686e42e1dbf1bd207aa684cd5f47e | backtracking/ocaml-bazaar | suffix_tree.ml | (**************************************************************************)
(* *)
Copyright ( C )
(* *)
(* This software is free software;... | null | https://raw.githubusercontent.com/backtracking/ocaml-bazaar/e62c9139eeef1d00c0ef4628f7c8b6a66808cec1/suffix_tree.ml | 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
Following Ukkonen 's algorithm as described in 's book " Algorithms
on Strings , Trees and Sequences "
o... |
dcdadb0789aecd92a6ab37a7c970636ca67660e56b7cc143611a7bc81b7f96cc | plum-umd/c-strider | steensgaard.ml |
*
* Copyright ( c ) 2001 - 2002 ,
* < >
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are
* met :
*
* 1 . Redistributions of source code must retain the abov... | null | https://raw.githubusercontent.com/plum-umd/c-strider/3d3a3743bc28456eb6d50e01805ce484ab3c04e6/tools/cil-1.3.7/src/ext/pta/steensgaard.ml | ocaml | *********************************************************************
distribution for reference only.
... |
*
* Copyright ( c ) 2001 - 2002 ,
* < >
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are
* met :
*
* 1 . Redistributions of source code must retain the abov... |
624ff31a845e11bc72b9fae528f298462e745553f9f78b380d5addd6e9c2708e | agda/agda | Solve.hs | # LANGUAGE ScopedTypeVariables #
module Agda.TypeChecking.Level.Solve where
import Control.Monad
import Control.Monad.Except
import qualified Data.Map.Strict as MapS
import Data.Maybe
import Agda.Interaction.Options
import Agda.Syntax.Common
import Agda.Syntax.Internal
import Agda.TypeChecking.Level
import Agda.T... | null | https://raw.githubusercontent.com/agda/agda/b52a21df3816c2cbc1a36d4e849c68b7e53fffb0/src/full/Agda/TypeChecking/Level/Solve.hs | haskell | | Run the given action. At the end take all new metavariables of
type level for which the only constraints are upper bounds on the
level, and instantiate them to the lowest level. | # LANGUAGE ScopedTypeVariables #
module Agda.TypeChecking.Level.Solve where
import Control.Monad
import Control.Monad.Except
import qualified Data.Map.Strict as MapS
import Data.Maybe
import Agda.Interaction.Options
import Agda.Syntax.Common
import Agda.Syntax.Internal
import Agda.TypeChecking.Level
import Agda.T... |
8c413992eddb05a553e6ed2de363aec3a5263261f7f1ab02540bee1b398e2b53 | nixeagle/cl-irc | package.lisp | $ Id$
;;;; $Source$
;;;; See the LICENSE file for licensing information.
(in-package :cl-user)
;; the exports list needs some cleanup/clarification/categorization
(eval-when (:execute :load-toplevel :compile-toplevel)
(defpackage :cl-irc
(:use :cl)
(:nicknames :irc)
(:export :read-message-loop
... | null | https://raw.githubusercontent.com/nixeagle/cl-irc/efaea15f2962107ea9b1a2fad5cd9db492b4247b/tags/init/package.lisp | lisp | $Source$
See the LICENSE file for licensing information.
the exports list needs some cleanup/clarification/categorization | $ Id$
(in-package :cl-user)
(eval-when (:execute :load-toplevel :compile-toplevel)
(defpackage :cl-irc
(:use :cl)
(:nicknames :irc)
(:export :read-message-loop
:read-message
:start-background-message-handler
:stop-background-message-handler
:send-... |
3c745dc9e10adaab7e13bd36491086a44321545113d642e51c0aacb3513f6830 | ariesteam/aries | sediment_colorado.clj | Copyright 2011 The ARIES Consortium ( )
;;;
;;; This file is part of ARIES.
;;;
;;; ARIES is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;;; (at your option)... | null | https://raw.githubusercontent.com/ariesteam/aries/b3fafd4640f4e7950fff3791bc4ea4c06ee4dcdf/plugins/org.integratedmodelling.aries.core/models/sediment_colorado.clj | clojure |
This file is part of ARIES.
ARIES is free software: you can redistribute it and/or modify it
(at your option) any later version.
ARIES is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ... | Copyright 2011 The ARIES Consortium ( )
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
Sediment regulation model for Colorado
(ns core.models.se... |
13d17b162b31af5126601b6dc314aefb394032e808b18ec3021e9283d2b14422 | goblint/analyzer | contextUtil.ml | open GoblintCil
* Definition of Goblint specific user defined C attributes and their alternatives via options *
type attribute =
| GobContext
| GobPrecision
let attribute_to_string = function
| GobContext -> "goblint_context"
| GobPrecision -> "goblint_precision"
let has_attribute s1 s2 al =
List.exists (... | null | https://raw.githubusercontent.com/goblint/analyzer/78e8ce83e70585e89623ec84af355deb2b3b854d/src/util/contextUtil.ml | ocaml | open GoblintCil
* Definition of Goblint specific user defined C attributes and their alternatives via options *
type attribute =
| GobContext
| GobPrecision
let attribute_to_string = function
| GobContext -> "goblint_context"
| GobPrecision -> "goblint_precision"
let has_attribute s1 s2 al =
List.exists (... | |
d8140427db0463c939e26aa30b85b85a25ee783d4b6da5f10ce631c11135a52c | HuwCampbell/grenade | TypeLits.hs | {-# LANGUAGE CPP #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE PolyKinds #
{-# LANGUAGE TypeOperators #-}
# LANGUAGE GADTs #
module Test.Hedgehog.TypeLits where
import ... | null | https://raw.githubusercontent.com/HuwCampbell/grenade/5206c95c423d9755e620f41576470a281ba59c89/test/Test/Hedgehog/TypeLits.hs | haskell | # LANGUAGE CPP #
# LANGUAGE RankNTypes #
# LANGUAGE DataKinds #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators # | # LANGUAGE PolyKinds #
# LANGUAGE GADTs #
module Test.Hedgehog.TypeLits where
import Data.Constraint (Dict (..))
import Data.Singletons (Proxy (..), Sing (..), SomeSing (..), sing)
#if MIN_VERSION_singletons(2,6,0)
import Data.Singletons.TypeLits (SNat (..))
... |
10332dc752c55aa994fa602bea84c1016768ad87203d4c98613e2cec1d0ecc0d | Gopiandcode/petrol | expr.ml | type 'a t = 'a Types.expr
type 'a expr_list = 'a Types.expr_list =
| [] : unit expr_list
| (::) : ('a t * 'b expr_list) -> ('a * 'b) expr_list
type wrapped_assign = Types.wrapped_assign
type wrapped_value =
Types.wrapped_value = MkWrapped: 'a Type.t * 'a -> wrapped_value
let pp_wrapped_value fmt = function
... | null | https://raw.githubusercontent.com/Gopiandcode/petrol/f6da8cecf34c9f9b1e3d6fd5a5586f8df16fb00f/lib/expr.ml | ocaml | type 'a t = 'a Types.expr
type 'a expr_list = 'a Types.expr_list =
| [] : unit expr_list
| (::) : ('a t * 'b expr_list) -> ('a * 'b) expr_list
type wrapped_assign = Types.wrapped_assign
type wrapped_value =
Types.wrapped_value = MkWrapped: 'a Type.t * 'a -> wrapped_value
let pp_wrapped_value fmt = function
... | |
623743bf2104096c0aa05e91a30f7f863aa7377a12349ee61639e107ca62aa15 | panicz/grasp | extension.scm | (import (hash-table))
(import (define-interface))
(import (define-property))
(import (define-type))
(import (define-object))
(import (mapping))
(import (fundamental))
(import (indexable))
(import (primitive))
(import (infix))
(import (match))
(import (functions))
(import (cursor))
(import (document-operations))
(import... | null | https://raw.githubusercontent.com/panicz/grasp/6143ba09eca2d14ca013b267ca087ac1dbb04abb/src/extension.scm | scheme | at (cursor::Cursor (the-cursor))
in (document (the-document))) | (import (hash-table))
(import (define-interface))
(import (define-property))
(import (define-type))
(import (define-object))
(import (mapping))
(import (fundamental))
(import (indexable))
(import (primitive))
(import (infix))
(import (match))
(import (functions))
(import (cursor))
(import (document-operations))
(import... |
6b9f5d0d76172eb34c25a2f7a21a28675f4ca24bcdd9b536773169523e3dd558 | BekaValentine/SimpleFP-v2 | Unification.hs | {-# OPTIONS -Wall #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE TypeSynonymInstances #-}
# LANGUAGE UndecidableInstances #
-- | This module defines unification of dependent types.
module Modular.Unification.Unification where
import Utils.ABT
im... | null | https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Modular/Unification/Unification.hs | haskell | # OPTIONS -Wall #
# LANGUAGE TypeSynonymInstances #
| This module defines unification of dependent types.
| Equating terms by trivial structural equations.
| Equating case motives as a special helper for the main 'equate' method.
Equating clauses as a special helper for the main 'equate' method. | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
module Modular.Unification.Unification where
import Utils.ABT
import Utils.Elaborator
import Utils.Names
import Utils.Pretty
import Utils.Telescope
import Utils.Unifier
import Modul... |
707ca8aa1ded438ebd12173acf0954dd6c215ae71bb4fc261f63782036a2ecef | aws-beam/aws-erlang | aws_sms.erl | %% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
See -beam/aws-codegen for more details .
%% @doc Product update
%%
We recommend Amazon Web Services Application Migration Service ( Amazon Web
Services MGN ) as the primary migration service for lift - and - shift
%% migrations.
%%
If Amazon Web Services MGN is una... | null | https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_sms.erl | erlang | WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
@doc Product update
migrations.
resources:
<ul> <li> Server Migration Service product page
</li> <li> Server Migration Service User Guide
</li> </ul>
====================================================================
API
========================================... | See -beam/aws-codegen for more details .
We recommend Amazon Web Services Application Migration Service ( Amazon Web
Services MGN ) as the primary migration service for lift - and - shift
If Amazon Web Services MGN is unavailable in a specific Amazon Web
Services Region , you can use the Server Migration Ser... |
e4febe6023308b2760586f4a6add7c5a8d9122f931ffc81312f927694d70aadc | gonzojive/elephant | persistent-proxy.lisp | ;;
;; support inheriting a transient class from persistent classes.
;;
parts are SBCL - specific but can be ported easily .
;;
(defmethod validate-superclass ((class persistent-proxy-metaclass) (super persistent-metaclass))
"Proxy classes may inherit from persistent classes."
t)
(defclass persistent-proxy-metac... | null | https://raw.githubusercontent.com/gonzojive/elephant/b29a012ab75ccea2fc7fc4f1e9d5e821f0bd60bf/src/contrib/lpolzer/persistent-proxy.lisp | lisp |
support inheriting a transient class from persistent classes.
TODO we can figure out the original from the proxy by OID. | parts are SBCL - specific but can be ported easily .
(defmethod validate-superclass ((class persistent-proxy-metaclass) (super persistent-metaclass))
"Proxy classes may inherit from persistent classes."
t)
(defclass persistent-proxy-metaclass (standard-class) nil)
(defclass player-proxy (player) nil
(:metacl... |
4bc60bc920aa7af126a85240c0358b1050dd3d5df50747c001775c6faf00ef43 | gerritjvv/kafka-fast | consumer_node_tests.clj | (ns kafka-clj.consumer-node-tests
(:require [kafka-clj.test-utils :refer [startup-redis shutdown-redis]]
[kafka-clj.redis.core :as redis]
[kafka-clj.consumer.node :refer [copy-redis-queue]])
(:use midje.sweet))
Internal tests for kafka-clj.consumer.node
(defonce system (atom nil))
(de... | null | https://raw.githubusercontent.com/gerritjvv/kafka-fast/fd149d8744c8100b2a8f4d09f1a251812e7baf6a/kafka-clj/test/kafka_clj/consumer_node_tests.clj | clojure | important to note maps must be sent sorted-map | (ns kafka-clj.consumer-node-tests
(:require [kafka-clj.test-utils :refer [startup-redis shutdown-redis]]
[kafka-clj.redis.core :as redis]
[kafka-clj.consumer.node :refer [copy-redis-queue]])
(:use midje.sweet))
Internal tests for kafka-clj.consumer.node
(defonce system (atom nil))
(de... |
5f8ee67e3a2ce08d75af0b8d26084ec1ee3bc5f4ba00b238ece6345cb1287706 | jiesoul/soul-talk | events.cljs | (ns soul-talk.role.events
(:require [re-frame.core :as rf :refer [reg-event-fx reg-event-db]]
[soul-talk.db :refer [api-url]]
[ajax.core :refer [GET POST PATCH DELETE]]
[soul-talk.utils :as utils]
[clojure.string :as str]))
(rf/reg-event-db
:role/init
(fn [db _]
... | null | https://raw.githubusercontent.com/jiesoul/soul-talk/630de08c6549b206d59023764d5f2576d97d1030/admin/src/soul_talk/role/events.cljs | clojure | (ns soul-talk.role.events
(:require [re-frame.core :as rf :refer [reg-event-fx reg-event-db]]
[soul-talk.db :refer [api-url]]
[ajax.core :refer [GET POST PATCH DELETE]]
[soul-talk.utils :as utils]
[clojure.string :as str]))
(rf/reg-event-db
:role/init
(fn [db _]
... | |
105d0e8c15c8674dfa17608ace08b584f0c6587403c2dee0568a2768a7f3b7d3 | wavejumper/boonmee | util.clj | (ns boonmee.util
(:require [clojure.java.io :as io])
(:import (java.io Reader BufferedReader File Closeable IOException)
(java.security MessageDigest)))
(defn -line-handler
[^BufferedReader rdr ^Runnable f]
(let [id (str (gensym "line-handler*"))
thread (Thread. f id)]
(.start thread... | null | https://raw.githubusercontent.com/wavejumper/boonmee/fc0946568bfc53830717d2b68982872972bd532d/src/boonmee/util.clj | clojure | (ns boonmee.util
(:require [clojure.java.io :as io])
(:import (java.io Reader BufferedReader File Closeable IOException)
(java.security MessageDigest)))
(defn -line-handler
[^BufferedReader rdr ^Runnable f]
(let [id (str (gensym "line-handler*"))
thread (Thread. f id)]
(.start thread... | |
4abd46b8875cd8f989f18d9bc3ea272181c64e47aba02276bdcb89b648c16ff7 | agentultra/postgresql-replicant | Protocol.hs | {-# LANGUAGE Strict #-}
|
Module : Database . PostgreSQL.Replicant . Protocol
Description : Streaming replication protocol
Copyright : ( c ) , 2020 , 2021
License : :
Stability : experimental
Portability : POSIX
This module implements the Postgres streaming replication protocol ... | null | https://raw.githubusercontent.com/agentultra/postgresql-replicant/aa31b5a49085ac1d91ace2358bcb494e48bbd9d0/src/Database/PostgreSQL/Replicant/Protocol.hs | haskell | # LANGUAGE Strict #
| The information returned by the @IDENTIFY_SYSTEM@ command
establishes the stream's log start, position, and information about
the database.
some basic system information about the server.
| Create a @START_REPLICATION_SLOT@ query, escaping the slot name
passed in by the user.
| This handles... |
|
Module : Database . PostgreSQL.Replicant . Protocol
Description : Streaming replication protocol
Copyright : ( c ) , 2020 , 2021
License : :
Stability : experimental
Portability : POSIX
This module implements the Postgres streaming replication protocol .
See :
Module ... |
807905ee5a9d21ed6c8ce6fb4fdc47a812986c4f67713d994a3e1ddafb6ab239 | CloudI/CloudI | cloudi_task_size.erl | -*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*-
ex : set utf-8 sts=4 ts=4 sw=4 et nomod :
%%%
%%%------------------------------------------------------------------------
%%% @doc
%%% ==CloudI Task Size Calculation==
%%% @end
%%%
MIT License
%%%
Copyright ( c ) 20... | null | https://raw.githubusercontent.com/CloudI/CloudI/920a35dd34f28561562e1350ace1c4bc3e16d677/src/lib/cloudi_service_map_reduce/src/cloudi_task_size.erl | erlang |
------------------------------------------------------------------------
@doc
==CloudI Task Size Calculation==
@end
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
the rights to use, copy, modify, merge, publish... | -*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*-
ex : set utf-8 sts=4 ts=4 sw=4 et nomod :
MIT License
Copyright ( c ) 2009 - 2022 < mjtruog at protonmail dot com >
to deal in the Software without restriction , including without limitation
and/or sell copies... |
b25e42a10e328af003dd77a3c53a369575acfbb393b4ca16f70b945b56d07c3b | d-cent/objective8 | user.clj | (ns user
(:require [clojure.tools.namespace.repl :as tnr]
[clojure.tools.logging :as log]
[clojure.set :as s]
[korma.db :as kdb]
[objective8.core :as core]
[objective8.config :as config]
[objective8.integration.storage-helpers :as sh]
... | null | https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/dev/user.clj | clojure | Don't try to load ./test and ./integration
Useful helpers | (ns user
(:require [clojure.tools.namespace.repl :as tnr]
[clojure.tools.logging :as log]
[clojure.set :as s]
[korma.db :as kdb]
[objective8.core :as core]
[objective8.config :as config]
[objective8.integration.storage-helpers :as sh]
... |
48eefad4ab3985c8b6e81aa379d105fe7eeda21c8188642cc18a713eba1a78f0 | hunt-framework/hunt | RandomData.hs | {-# LANGUAGE OverloadedStrings #-}
module Main
where
import Control.Monad (mzero)
import Data.Aeson
import Data.Aeson.Encode.Pretty
import qualified Data.ByteString.Lazy as B
import Data.Map (Map ())
import qualified Data.Map as M
... | null | https://raw.githubusercontent.com/hunt-framework/hunt/d692aae756b7bdfb4c99f5a3951aec12893649a8/hunt-test/data/random/src/RandomData.hs | haskell | # LANGUAGE OverloadedStrings #
------------------------------------------------------------
| Positions of Words for each context.
| Positions of words in the document.
| The document accepted via the API.
| Data necessary for adding documents to the index.
| Metadata for index processing
| Text analysis functio... | module Main
where
import Control.Monad (mzero)
import Data.Aeson
import Data.Aeson.Encode.Pretty
import qualified Data.ByteString.Lazy as B
import Data.Map (Map ())
import qualified Data.Map as M
import Data.Monoid ... |
40dec683e92e0e048adc6bfb406b2fd055711e95b01716b801793570e425756a | roosta/herb | herb.clj | (ns hooks.herb
(:require [clj-kondo.hooks-api :as api]))
; -kondo/clj-kondo/blob/master/doc/hooks.md
; -kondo/config
(defn global-keyframes [[m1 m2]]
(fn [{:keys [node]}]
(let [[sym & body] (rest (:children node))
sexpr (api/sexpr node)
new-node (api/list-node
(list
... | null | https://raw.githubusercontent.com/roosta/herb/c19f70abcd4938962d63c7d0dbc92686d97e5a3d/.clj-kondo/hooks/herb.clj | clojure | -kondo/clj-kondo/blob/master/doc/hooks.md
-kondo/config | (ns hooks.herb
(:require [clj-kondo.hooks-api :as api]))
(defn global-keyframes [[m1 m2]]
(fn [{:keys [node]}]
(let [[sym & body] (rest (:children node))
sexpr (api/sexpr node)
new-node (api/list-node
(list
(api/token-node 'def)
... |
75a2fee904b81422db919654fcaf89d0f9938d8d1efde821f495c95857b24980 | ygmpkk/house | DescribeGIF.hs | From InternetLib by ,
-- /~hallgren/InternetLib/
module DescribeGIF where
import GIF
import Data.Array.Unboxed(bounds)
describeGIF = unlines . descr
where
descr (GIF sig sd gcm dbs) =
sig:descrSD sd++descrCM gcm++descrDataBlocks dbs
descrSD (SD {swidth=swidth,sheight=sheight,background=background}... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Gadgets/Images/DescribeGIF.hs | haskell | /~hallgren/InternetLib/ | From InternetLib by ,
module DescribeGIF where
import GIF
import Data.Array.Unboxed(bounds)
describeGIF = unlines . descr
where
descr (GIF sig sd gcm dbs) =
sig:descrSD sd++descrCM gcm++descrDataBlocks dbs
descrSD (SD {swidth=swidth,sheight=sheight,background=background}) =
map unwords
... |
1f9e903ebc0413c1fdc160764689c6abfebf0cc6617b25cfa01212f4c00fee57 | marick/fp-oo | java.clj | ;;; `declare` is a forward declaration. It "predefines" a symbol with
;;; no value, which allows you to write code that uses functions you
;;; haven't defined yet. I'm using this so that this code can
;;; (roughly) match the order of the book.
(declare class-from-instance send-to make)
Note : because Point refers to... | null | https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/sources/java.clj | clojure | `declare` is a forward declaration. It "predefines" a symbol with
no value, which allows you to write code that uses functions you
haven't defined yet. I'm using this so that this code can
(roughly) match the order of the book.
<<= New
Here are methods that take a class-symbol or instance containing one and follo... | (declare class-from-instance send-to make)
Note : because Point refers to the quoted symbol Anything ( not its value ) ,
it can be defined before Anything is . I 'll define Anything second to match
the order used in chapter 6 .
(def Point
{
:__own_symbol__ 'Point
:__instance_methods__
{
:add-instance-... |
d0d8b8d52bd714ea92774e9e695d4a128f219307b69b99c89678d1a90edd1eb8 | fragnix/fragnix | System.Posix.Signals.hs | {-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/Signals.hs" #-}
# LINE 1 " System / Posix / Signals.hsc " #
# LANGUAGE CApiFFI , CPP , DeriveDataTypeable , NondecreasingIndentation #
# LINE 2 " System / Posix / Signals.hsc " #
# ... | null | https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/System.Posix.Signals.hs | haskell | # LANGUAGE Haskell2010 #
# LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/Signals.hs" #
---------------------------------------------------------------------------
|
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : provisional
Portability : non-portable (requir... |
# LINE 1 " System / Posix / Signals.hsc " #
# LANGUAGE CApiFFI , CPP , DeriveDataTypeable , NondecreasingIndentation #
# LINE 2 " System / Posix / Signals.hsc " #
# OPTIONS_GHC -fno - cse #
# LANGUAGE Trustworthy #
Module : System . . Signals
Copyright ... |
791a0e8e1a83214077816d6d12479f0641982ad4685a226b063d55616d906623 | binaryage/chromex | debugger_api.clj | (ns chromex.ext.debugger-api
"The chrome.debugger API serves as an alternate transport for Chrome's remote debugging protocol. Use chrome.debugger to
attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the
Debuggee tabId to target tabs with sendComman... | null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/debugger_api.clj | clojure | -- events -----------------------------------------------------------------------------------------------------------------
docs: /#tapping-events
-- convenience ------------------------------------------------------------------------------------------------------------
--------------------------------------------... | (ns chromex.ext.debugger-api
"The chrome.debugger API serves as an alternate transport for Chrome's remote debugging protocol. Use chrome.debugger to
attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the
Debuggee tabId to target tabs with sendComman... |
43556f5c5e41beb54bd5f22830483687429e7682aab1526979f7e454fb310428 | ocaml-sf/learn-ocaml-corpus | early_fair_bind.ml | let return (x : 'a) : 'a m =
Seq.singleton x
let (>>=) (m1 : 'a m) (f2 : 'a -> 'b m) : 'b m =
m1 |> Seq.map f2 |> Seq.flatten
let fail : 'a m =
Seq.nil
let choose (m1 : 'a m) (m2 : 'a m) : 'a m =
Seq.concat m1 m2
let sols (m : 'a m) : 'a Seq.t =
m
let at_most_once (m : 'a m) : 'a m =
Seq.take 1 m
let ... | null | https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/nondet_monad_seq/wrong/early_fair_bind.ml | ocaml | wrong: missing [delay] | let return (x : 'a) : 'a m =
Seq.singleton x
let (>>=) (m1 : 'a m) (f2 : 'a -> 'b m) : 'b m =
m1 |> Seq.map f2 |> Seq.flatten
let fail : 'a m =
Seq.nil
let choose (m1 : 'a m) (m2 : 'a m) : 'a m =
Seq.concat m1 m2
let sols (m : 'a m) : 'a Seq.t =
m
let at_most_once (m : 'a m) : 'a m =
Seq.take 1 m
let ... |
4becda6f48eb8cdce01f71538266fcbd93910206bdafa1bfad747a13663170d5 | elastic/eui-cljs | icon_app_agent.cljs | (ns eui.icon-app-agent
(:require ["@elastic/eui/lib/components/icon/assets/app_agent.js" :as eui]))
(def appAgent eui/icon)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_app_agent.cljs | clojure | (ns eui.icon-app-agent
(:require ["@elastic/eui/lib/components/icon/assets/app_agent.js" :as eui]))
(def appAgent eui/icon)
| |
1800fa6743a1ec7288a0d567ca8bd188c6fedc300b2e60f97deaac5e57fc7d2b | thephoeron/black-stone | synthesis.lisp | -*- Mode : LISP ; Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*-
;;;; file: lib/synthesis.lisp
Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com >
;;;; See LICENSE for additional information.
(in-package :black-stone)
EOF
| null | https://raw.githubusercontent.com/thephoeron/black-stone/c8f1d76d81de3c9862520c8ddac62e73e831ea55/lib/synthesis.lisp | lisp | Syntax : COMMON - LISP ; Package : BLACK - STONE ; Base : 10 -*-
file: lib/synthesis.lisp
See LICENSE for additional information. |
Copyright ( c ) 2013 - -2015 , " the Phoeron " < //thephoeron.com >
(in-package :black-stone)
EOF
|
e73f1f6b08878ed7e3c94ea2b7495c457bff003dec9a592d4e5a37ee3a77c326 | rfkm/zou | scanner.cljc | (ns zou.component.parser.scanner
(:require [zou.component.parser :as p]
[zou.util :as u]
[zou.util.namespace :as un]
[zou.logging :as log :include-macros true]))
#?(:clj
(do
(defn- find-components [prefixes]
(un/find-tagged-vars
:zou/component
(->> p... | null | https://raw.githubusercontent.com/rfkm/zou/228feefae3e008f56806589cb8019511981f7b01/component/src/zou/component/parser/scanner.cljc | clojure | (ns zou.component.parser.scanner
(:require [zou.component.parser :as p]
[zou.util :as u]
[zou.util.namespace :as un]
[zou.logging :as log :include-macros true]))
#?(:clj
(do
(defn- find-components [prefixes]
(un/find-tagged-vars
:zou/component
(->> p... | |
81fbbcbb2b9e6d05fa53e9c1bd57120e818b1476408cbc9c27d324360b0e524c | gregr/experiments | control-example.rkt | #lang racket
(require racket/control)
(define (walk yield! tree)
(match tree
((cons a d) (walk yield! a) (walk yield! d))
(x (yield! x))))
(define (extract tree)
;; Alternative
#;(define (yield! x)
(match x
('STOP (abort (cons #f '())))
('() ;(shift k (cons k '())) ;; Anot... | null | https://raw.githubusercontent.com/gregr/experiments/cd4c7953f45102539081077bbd6195cf834ba2fa/control/control-example.rkt | racket | Alternative
(define (yield! x)
(shift k (cons k '())) ;; Another alternative
How to discard: times
Alternatively: (shift _ 0)
How to extract: make-append
How to reorder: bring-nth-to-front, A-normalize
How to wrap: printf, state | #lang racket
(require racket/control)
(define (walk yield! tree)
(match tree
((cons a d) (walk yield! a) (walk yield! d))
(x (yield! x))))
(define (extract tree)
(match x
('STOP (abort (cons #f '())))
(void))
(x (shift k (cons k (list x))))))
(define (yield! x... |
f2959c642c004b1399fac27ecaa18d4f209a5bce42deac46c0aa7143342ac036 | developandplay/material-components-web-miso | Select.hs | # LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
module Material.Select
( Config,
config,
setOnChange,
setLabel,
setSelected,
setDisabled,
setRequired,
setValid,
setLeadingIcon,
setAttributes,
filled,
outlined,
)
where
import qualified Data.Function
import... | null | https://raw.githubusercontent.com/developandplay/material-components-web-miso/97a20097bf522b62743c884b66757eb895edd690/sample-app-jsaddle/Material/Select.hs | haskell | # LANGUAGE OverloadedStrings #
| Configuration of a select
| Default configuration of a select
| Specify a select's label
| Specify a select's selected value
| Specify whether a select is disabled
Disabled selects cannot be interacted with an have no visual interaction
effect.
| Specify whether a select is req... | # LANGUAGE NamedFieldPuns #
module Material.Select
( Config,
config,
setOnChange,
setLabel,
setSelected,
setDisabled,
setRequired,
setValid,
setLeadingIcon,
setAttributes,
filled,
outlined,
)
where
import qualified Data.Function
import qualified Data.List as List
import... |
15cf3aa6db2109da2a0fbf2a95f0ef5a1417f58a0f8e038f31f4c4efc560cc0f | informatica-unica/lip | ast.ml | type boolExpr =
True
| False
| If of boolExpr * boolExpr * boolExpr
;;
| null | https://raw.githubusercontent.com/informatica-unica/lip/f3f0ab2297943957c7dd0534895f2367097043dc/expr/boolexpr/src/ast.ml | ocaml | type boolExpr =
True
| False
| If of boolExpr * boolExpr * boolExpr
;;
| |
69a1f0821c3f138e8d122ffa61373f05bd2d63f8c3661c53f800b8b9ddd25d50 | jackfirth/lens | set-filterer.rkt | #lang reprovide
lens/private/set/set-filterer
| null | https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-unstable/unstable/lens/set-filterer.rkt | racket | #lang reprovide
lens/private/set/set-filterer
| |
4053b06a966dd83e749ee88f81c5bd5369e0465054ed0a160c28a3f2715cc91f | gowthamk/ocaml-irmin | test_to_heap1.ml | original = | |
q1 =
q2 = |5||6|
q1 = |5|
q2 = |5||6| *)
module U = struct
let string_of_list f l = "[ " ^ List.fold_left (fun a b -> a ^ (f b) ^ "; ") "" l ^ "]"
let print_header h = Printf.printf "%s" ("\n" ^ h ^ "\n")
end
(* Queue *)
let _ =
U.print_header "Heap1";
let module Atom = stru... | null | https://raw.githubusercontent.com/gowthamk/ocaml-irmin/54775f6c3012e87d2d0308f37a2ec7b27477e887/heap_leftist/mem/test_to_heap1.ml | ocaml | Queue | original = | |
q1 =
q2 = |5||6|
q1 = |5|
q2 = |5||6| *)
module U = struct
let string_of_list f l = "[ " ^ List.fold_left (fun a b -> a ^ (f b) ^ "; ") "" l ^ "]"
let print_header h = Printf.printf "%s" ("\n" ^ h ^ "\n")
end
let _ =
U.print_header "Heap1";
let module Atom = struct
type t ... |
1e7c6cced30cc28c064ebc89a02617948e1f9f4585dd30c92526f7794100e982 | edbutler/nonograms-rule-synthesis | test-math.rkt | #lang racket
(require
rackunit rackunit/text-ui
"../core/core.rkt")
(define (test-choices k lst expected)
(test-case (format "choices-~a-~a" k lst)
(check-true (set=? (choices lst k) expected))))
(define (test-choices-up-to k lst expected)
(test-case (format "choices-~a-~a" k lst)
(check-true (set=? ... | null | https://raw.githubusercontent.com/edbutler/nonograms-rule-synthesis/16f8dacb17bd77c9d927ab9fa0b8c1678dc68088/src/test/test-math.rkt | racket | just to make sure it works with non-integers and duplicates | #lang racket
(require
rackunit rackunit/text-ui
"../core/core.rkt")
(define (test-choices k lst expected)
(test-case (format "choices-~a-~a" k lst)
(check-true (set=? (choices lst k) expected))))
(define (test-choices-up-to k lst expected)
(test-case (format "choices-~a-~a" k lst)
(check-true (set=? ... |
0f3e1310b2fcf35f0a4dbabd94dad52078d4efe94a7f6aa65c8bdb83604f4314 | tonsky/tongue | core.cljc | (ns tongue.test.core
(:require
[tongue.core :as tongue]
#?(:clj [clojure.test :refer [deftest is are testing]]
:cljs [cljs.test :as test :refer-macros [deftest is are testing]]))
(:import #?(:clj [clojure.lang ExceptionInfo])))
#?(:cljs
(def Throwable js/Error))
(deftest test-translate
(let... | null | https://raw.githubusercontent.com/tonsky/tongue/ba5a0ea4944f4fe6f8c91dbd79539ace63254c43/test/tongue/test/core.cljc | clojure | fallbacks
:en-GB => :en
:en-GB-inf => :en-GB
:en-GB-inf => :en-GB => :en
missing key
nested
deeply nested
in the key
arguments
aliases
should work without :tongue/fallback | (ns tongue.test.core
(:require
[tongue.core :as tongue]
#?(:clj [clojure.test :refer [deftest is are testing]]
:cljs [cljs.test :as test :refer-macros [deftest is are testing]]))
(:import #?(:clj [clojure.lang ExceptionInfo])))
#?(:cljs
(def Throwable js/Error))
(deftest test-translate
(let... |
f7f5054aa63d058116200c6547f22678e072bf7a6075a1c03ee29aefa02f099d | chchen/comet | semantics.rkt | #lang rosette/safe
(require "../util.rkt"
"concretize.rkt"
"environment.rkt"
"syntax.rkt"
rosette/lib/match
;; unsafe! be sure you know what you're doing
;; when you use the following
(only-in racket/base
random
symbol?)... | null | https://raw.githubusercontent.com/chchen/comet/005477b761f4d35c9fce175738f4dcbb805909e7/unity-synthesis/unity/semantics.rkt | racket | unsafe! be sure you know what you're doing
when you use the following
Stores a natural number as a new send-buffer
Number is stored as a little-endian list of booleans
Retrieves the "next" boolean from a send-buffer
Buffer data is stored as a little-endian list of booleans
Increment cursor for send-buffer
Buffe... | #lang rosette/safe
(require "../util.rkt"
"concretize.rkt"
"environment.rkt"
"syntax.rkt"
rosette/lib/match
(only-in racket/base
random
symbol?))
(struct guard-trace
(guard
trace)
#:transparent)
(define (external? typ)
(case ty... |
596c5835056a8536ee1beeec3b076f80852c85b47cc7b9cf01f3627b2dfddff3 | ucsd-progsys/nate | ezyGenerate.ml |
open EzyUtils
open EzyUtils.Infix
open EzyOcamlmodules
open EzyAsttypes
open EzyAst
open EzyEnrichedAst
open EzyTypingCoreTypes
open EzyConstraints
open Location
open Clflags
module EzyPredef = EzyEnv.EzyPredef
let logger = new Logger.logger "generate"
(************************************************************... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/easyocaml/ezyGenerate.ml | ocaml | *****************************************************************************
Stuff
************************************************************************ {{{
*********************************************************************** }}} *
Patter... |
open EzyUtils
open EzyUtils.Infix
open EzyOcamlmodules
open EzyAsttypes
open EzyAst
open EzyEnrichedAst
open EzyTypingCoreTypes
open EzyConstraints
open Location
open Clflags
module EzyPredef = EzyEnv.EzyPredef
let logger = new Logger.logger "generate"
let ty_for_constant label c =
let path = match c with
... |
320e2d018d170116911e017d680bb884918fad0650af12eb9590a8576dfc3fc4 | padsproj/pads-haskell | Parser.hs | {-# OPTIONS_HADDOCK prune #-}
|
Module : Language . Pads . Parser
Description : Parser for the syntax of Pads
Copyright : ( c ) 2011
< >
< >
License : MIT
Maintainer : < >
Stability : experimental
This module implements the par... | null | https://raw.githubusercontent.com/padsproj/pads-haskell/8dce6b2b28bf7d98028e67f6faa2be753a6ad691/src/Language/Pads/Parser.hs | haskell | # OPTIONS_HADDOCK prune #
| The main entry point for the Pads QuasiQuoter
-----------------------------------------------------------------------------
* PADS DECLARATIONS
-----------------------------------------------------------------------------
--------------------------------------------------------------------... | |
Module : Language . Pads . Parser
Description : Parser for the syntax of Pads
Copyright : ( c ) 2011
< >
< >
License : MIT
Maintainer : < >
Stability : experimental
This module implements the parser for the PADS syntax in us... |
a3ac3d5ef4935a164f1f6c47962ae90b8ba363c00ea7468e640e29b4fc86f58d | master/ejabberd | ejabberd_node_groups.erl | %%%----------------------------------------------------------------------
%%% File : ejabberd_node_groups.erl
Author : < >
%%% Purpose : Distributed named node groups based on pg2 module
Created : 1 Nov 2006 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
%%%
%%% This program is f... | null | https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/ejabberd_node_groups.erl | erlang | ----------------------------------------------------------------------
File : ejabberd_node_groups.erl
Purpose : Distributed named node groups based on pg2 module
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the ... | Author : < >
Created : 1 Nov 2006 by < >
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License
Found... |
c13ab037f950dcebd1581f9f9c412c68861dab313f7dcde2037014c434986153 | jumarko/clojure-experiments | finger_trees.clj | (ns clojure-experiments.collections.finger-trees
"Experiments with -tree
See discussion here:
(about why clojure's persistent list doesn't support constant-time operations on both ends)."
(:require
[clojure.data.finger-tree :as ft]
[criterium.core :as crit]))
(def my-list (apply ft/double-list (range 10... | null | https://raw.githubusercontent.com/jumarko/clojure-experiments/83e711e98c10f4a92cf215594e816f301b6bf9f0/src/clojure_experiments/collections/finger_trees.clj | clojure | => (0 1 2 3 4 5 6 7 8 9)
=> (0 1 2 3 4 5 6 7 8)
- note: `conj` is implemented through clojure.lang.IPersistentCollection/cons
=> (0 1 2 3 4 5 6 7 8 9 10)
Execution time mean : 77.193018 ns
Variance from outliers : 72.1181 % Variance is severely inflated by outliers
| (ns clojure-experiments.collections.finger-trees
"Experiments with -tree
See discussion here:
(about why clojure's persistent list doesn't support constant-time operations on both ends)."
(:require
[clojure.data.finger-tree :as ft]
[criterium.core :as crit]))
(def my-list (apply ft/double-list (range 10... |
6099d4416a102bb4f53c55078e89a64494075a7489c0485f6f7e8c614a76f558 | MinaProtocol/mina | sql.ml | (* sql.ml -- (Postgresql) SQL queries for extract_blocks app *)
module Subchain = struct
let make_sql ~join_condition =
Core_kernel.sprintf
{sql| WITH RECURSIVE chain AS (
SELECT id,state_hash,parent_id,parent_hash,creator_id,block_winner_id,snarked_ledger_hash_id,
staki... | null | https://raw.githubusercontent.com/MinaProtocol/mina/73d7281b71c93ee1a8145511bc53907be09c2cc4/src/app/extract_blocks/sql.ml | ocaml | sql.ml -- (Postgresql) SQL queries for extract_blocks app
Archive_lib.Processor does not have the queries given here |
module Subchain = struct
let make_sql ~join_condition =
Core_kernel.sprintf
{sql| WITH RECURSIVE chain AS (
SELECT id,state_hash,parent_id,parent_hash,creator_id,block_winner_id,snarked_ledger_hash_id,
staking_epoch_data_id,next_epoch_data_id,min_window_density,total_cur... |
b4df9675fce98cac9feef91508bd2ed3181aa9a0f4f06a4ae718966be6749788 | paurkedal/iplogic | pkg.ml | #! /usr/bin/env ocaml
#use "topfind"
#require "topkg-jbuilder"
open Topkg
let licenses = [Pkg.std_file "COPYING"]
let () = Topkg_jbuilder.describe ~licenses ()
| null | https://raw.githubusercontent.com/paurkedal/iplogic/7c56b5c55c03a681381fafb80220a5c0eba9f212/pkg/pkg.ml | ocaml | #! /usr/bin/env ocaml
#use "topfind"
#require "topkg-jbuilder"
open Topkg
let licenses = [Pkg.std_file "COPYING"]
let () = Topkg_jbuilder.describe ~licenses ()
| |
64ffe7050dbbae5f2635bbb2fc0a5460152e01413dc9fa57a1297f77c1748847 | jyp/topics | IndexedOnlineTree.hs | {-# OPTIONS -fglasgow-exts #-}
import PolishParse3
import Data.Maybe
import qualified Data.Tree as S
import Control.Applicative
data Tree a = Node a (Tree a) (Tree a)
| Leaf
deriving Show
instance Traversable Tree where
traverse f (Node x l r) = Node <$> f x <*> traverse f l <*> travers... | null | https://raw.githubusercontent.com/jyp/topics/8442d82711a02ba1356fd4eca598d1368684fa69/OnlineTree/IndexedOnlineTree.hs | haskell | # OPTIONS -fglasgow-exts #
[S.Node "o"[]]
NOTE: eof (isAfter) here is important for performance (otherwise the
parser would have to keep this case until the very end of input
is reached.
notice the rhs of < * > can never fail .
notice the rhs of <*> can never fail. |
import PolishParse3
import Data.Maybe
import qualified Data.Tree as S
import Control.Applicative
data Tree a = Node a (Tree a) (Tree a)
| Leaf
deriving Show
instance Traversable Tree where
traverse f (Node x l r) = Node <$> f x <*> traverse f l <*> traverse f r
traverse f Leaf = pur... |
79da351dff8be18a5c288b9426e69b6d9311c2e49c4402b30d631c4c25d76422 | mhuebert/chia | hooks_test.cljs | (ns chia.view.hooks-test
(:require ["react" :as react]
["react-dom" :as react-dom]
["react-dom/test-utils" :as dtest]
["react-test-renderer" :as rtest]
[chia.view :as v]
[chia.view.hooks :as hooks]
[cljs.test :refer [deftest testing is are]]
... | null | https://raw.githubusercontent.com/mhuebert/chia/74ee3ee9f86efbdf81d8829ab4f0a44d619c73d3/view/test/chia/view/hooks_test.cljs | clojure | why isn't this updating? | (ns chia.view.hooks-test
(:require ["react" :as react]
["react-dom" :as react-dom]
["react-dom/test-utils" :as dtest]
["react-test-renderer" :as rtest]
[chia.view :as v]
[chia.view.hooks :as hooks]
[cljs.test :refer [deftest testing is are]]
... |
5f0c7fa14b4f0404cca29ce0f0154d24b9806156028b9c8a84b12441441e9d81 | racket/racket-lang-org | testing.rkt | #lang racket/base
(provide rewrite-for-testing)
;; Adjust root URLs for testing purposes.
Root URLs must be written into roots , not
;; paths within a URLs
(define (rewrite-for-testing s)
s)
| null | https://raw.githubusercontent.com/racket/racket-lang-org/88dada2ee769ada9afaf1e3ec1fb28b8ddf216db/testing.rkt | racket | Adjust root URLs for testing purposes.
paths within a URLs | #lang racket/base
(provide rewrite-for-testing)
Root URLs must be written into roots , not
(define (rewrite-for-testing s)
s)
|
81b4ca890f189d41d63ee0c8291036ea709142c4a8a9acb527de5689530d1fc0 | WhatsApp/eqwalizer | booleans.erl | Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved .
%%%
This source code is licensed under the Apache 2.0 license found in
%%% the LICENSE file in the root directory of this source tree.
-module(booleans).
-compile([export_all, nowarn_export_all]).
-spec only_false() -> false.
only_false(... | null | https://raw.githubusercontent.com/WhatsApp/eqwalizer/9935940d71ef65c7bf7a9dfad77d89c0006c288e/eqwalizer/test_projects/check_gradual/src/booleans.erl | erlang |
the LICENSE file in the root directory of this source tree. | Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved .
This source code is licensed under the Apache 2.0 license found in
-module(booleans).
-compile([export_all, nowarn_export_all]).
-spec only_false() -> false.
only_false() -> false.
-spec only_true() -> true.
only_true() -> true.
-spec ... |
d6ab1bdb6e3e9ad66a4abf2af108192544ebc71218b82d687505b405ae78060b | jarohen/phoenix | project.clj | (def version (slurp "../common/phoenix-version"))
(defproject jarohen/phoenix.runtime version
:description "The runtime for the Phoenix plugin"
:url "-henderson/phoenix"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.... | null | https://raw.githubusercontent.com/jarohen/phoenix/f828bf144154f110f0a73f54645f5696e2c8bdab/runtime/project.clj | clojure | (def version (slurp "../common/phoenix-version"))
(defproject jarohen/phoenix.runtime version
:description "The runtime for the Phoenix plugin"
:url "-henderson/phoenix"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.... | |
ccac5696fd5dbf936273d4ddfe720760310befb05bddcae150aa8e52972550d1 | pa-ba/compdata | Thunk.hs | # LANGUAGE TemplateHaskell , TypeOperators , MultiParamTypeClasses , DeriveFunctor ,
FlexibleInstances , FlexibleContexts , UndecidableInstances , ConstraintKinds ,
CPP #
FlexibleInstances, FlexibleContexts, UndecidableInstances, ConstraintKinds,
CPP #-}
-----------------------------------------------------... | null | https://raw.githubusercontent.com/pa-ba/compdata/5783d0e11129097e045cabba61643114b154e3f2/examples/Examples/Thunk.hs | haskell | ------------------------------------------------------------------------------
|
Module : Examples.Thunk
License : BSD3
Stability : experimental
This example illustrates how the ''Data.Comp.Thunk'' package can be
used to implement a non-strict language (or a partially non-strict
language).
------... | # LANGUAGE TemplateHaskell , TypeOperators , MultiParamTypeClasses , DeriveFunctor ,
FlexibleInstances , FlexibleContexts , UndecidableInstances , ConstraintKinds ,
CPP #
FlexibleInstances, FlexibleContexts, UndecidableInstances, ConstraintKinds,
CPP #-}
Copyright : ( c ) 2011 ,
Maintainer : ... |
b1ce47a8a98fa4a7a399c81183783a9e9441d73456157ba32305bce74b121caf | Archenoth/clj-anki | record_test.clj | (ns clj-anki.record-test
(:require [clojure.test :refer :all]
[clj-anki.record :refer :all]))
(deftest convert-map-to-db-test
(let [note (convert-map-to-db {:question "What's up?" :answers ["Not much, you?"]})
keys [:id :guid :mid :mod :usn :tags :flds :sfld :csum :flags :data]]
(testing "... | null | https://raw.githubusercontent.com/Archenoth/clj-anki/c9ae899862038de21eeca7ca1b7a48a1ce24d03e/test/clj_anki/record_test.clj | clojure | (ns clj-anki.record-test
(:require [clojure.test :refer :all]
[clj-anki.record :refer :all]))
(deftest convert-map-to-db-test
(let [note (convert-map-to-db {:question "What's up?" :answers ["Not much, you?"]})
keys [:id :guid :mid :mod :usn :tags :flds :sfld :csum :flags :data]]
(testing "... | |
ed4ce450262550509bb7f3b8aef113bcd080b01d9dc1e91187e988f5911e1ef3 | potatosalad/erlang-jose | jose_jwa_pkcs1.erl | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
%% vim: ts=4 sw=4 ft=erlang noet
%%%-------------------------------------------------------------------
@author < >
2014 - 2022 ,
@doc PKCS # 1 : RSA Cryptography Specifications Version 2.1
%%% See RFC 3447: []
%%% @... | null | https://raw.githubusercontent.com/potatosalad/erlang-jose/dbc4074066080692246afe613345ef6becc2a3fe/src/jwa/jose_jwa_pkcs1.erl | erlang | vim: ts=4 sw=4 ft=erlang noet
-------------------------------------------------------------------
See RFC 3447: []
@end
-------------------------------------------------------------------
Public Key API
API
Types
====================================================================
Public Key API functions
======... | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
@author < >
2014 - 2022 ,
@doc PKCS # 1 : RSA Cryptography Specifications Version 2.1
Created : 28 Jul 2015 by < >
-module(jose_jwa_pkcs1).
-include_lib("public_key/include/public_key.hrl").
-export([decrypt... |
2dc41ba5ed05f10c17044fa2f225a46546a1af9d6fd601a99a91dbb74969d18e | shirok/Gauche | stream.scm | ;;;
util.stream - stream library ( SRFI-40 , 41 & more )
;;;
[ SK ] This module includes code from streams-ext.scm ,
written by and released in Public Domain
;;;
The rest is written by
;;;
Copyright ( c ) 2019 - 2022 < >
;;;
;;; Redistribution and use in source and binary forms, with or ... | null | https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/lib/util/stream.scm | scheme |
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in... | util.stream - stream library ( SRFI-40 , 41 & more )
[ SK ] This module includes code from streams-ext.scm ,
written by and released in Public Domain
The rest is written by
Copyright ( c ) 2019 - 2022 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL... |
e0998efca7a8d2246e71d5a3d161c1f0234a91273653854e2eaf6c3bbd8314f0 | lisp-mirror/clpm | test.lisp | Script to test a CLPM executable
;;;;
This software is part of CLPM . See README.org for more information . See
;;;; LICENSE for license information.
(in-package #:cl-user)
(pushnew :hunchentoot-no-ssl *features*)
(load (merge-pathnames "common.lisp" *load-truename*))
(in-package #:clpm-scripts)
(defparameter ... | null | https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/scripts/test.lisp | lisp |
LICENSE for license information. | Script to test a CLPM executable
This software is part of CLPM . See README.org for more information . See
(in-package #:cl-user)
(pushnew :hunchentoot-no-ssl *features*)
(load (merge-pathnames "common.lisp" *load-truename*))
(in-package #:clpm-scripts)
(defparameter *option-clpm*
(adopt:make-option
:clpm... |
f00ebe7ec2fb9cd92cef68eaa05acd4e029a303cadabc746c43c6257ee534895 | monadbobo/ocaml-core | core_set_test.ml | open OUnit
open Core.Std
open Bin_prot.Utils
module StringSet = Set.Make(String)
let s1 = StringSet.of_list ["a"; "b"; "c"; "d"]
let = Map.of_alist [ " a",1 ; " c",-3 ; " d",4 ; " e",5 ]
type int_set = int Set.Poly.t with bin_io
let test =
"core_fset" >:::
[ "sexp" >::
(fun () ->
let s = "(... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib_test/core_set_test.ml | ocaml | open OUnit
open Core.Std
open Bin_prot.Utils
module StringSet = Set.Make(String)
let s1 = StringSet.of_list ["a"; "b"; "c"; "d"]
let = Map.of_alist [ " a",1 ; " c",-3 ; " d",4 ; " e",5 ]
type int_set = int Set.Poly.t with bin_io
let test =
"core_fset" >:::
[ "sexp" >::
(fun () ->
let s = "(... | |
dc09402999824dd968fb5003ad711c3382e9983beb0b00d06a5d46643208a38b | stelcodes/nuzzle | test_util.clj | (ns nuzzle.test-util
(:require
[nuzzle.core :refer [parse-md]]))
(def render-page (constantly [:h1 "test"]))
(def authors {:donna {:email "",
:name "Donna Hayward",
:url ""},
:josie {:name "Josie Packard"},
:shelly {:email "", :name "Shelly ... | null | https://raw.githubusercontent.com/stelcodes/nuzzle/d65806b39dd60350d9583b3b79712ac047360112/test/nuzzle/test_util.clj | clojure | (ns nuzzle.test-util
(:require
[nuzzle.core :refer [parse-md]]))
(def render-page (constantly [:h1 "test"]))
(def authors {:donna {:email "",
:name "Donna Hayward",
:url ""},
:josie {:name "Josie Packard"},
:shelly {:email "", :name "Shelly ... | |
90cde59a8f5e697ec6ae1cee5d163a573e6ba237fe41ae9e01089c5a9fb72d15 | stefanhts/wacket | ast.rkt | #lang racket
(provide (all-defined-out))
(struct Comment (c) #:prefab)
type Module = ( Module ( definitions ) )
(struct Module (ds) #:prefab)
;; type Import = (Import (modulename funcname FuncSignature))
(struct Import (m f fs) #:prefab)
;; type MemoryExport = ()
(struct MemoryExport () #:prefab)
;; type Export =... | null | https://raw.githubusercontent.com/stefanhts/wacket/8d7bd79554a9a93dbc4ef51dc3e7ec1e18082fae/wat/ast.rkt | racket | type Import = (Import (modulename funcname FuncSignature))
type MemoryExport = ()
type Export = (Export (name ExportFuncSignature))
replace r with empty list for no return value
type ExportFuncSignature = (ExportFuncSignature (name))
type Result = (Result (Type))
type Local = (Local (name? Type))
type Body = (... | #lang racket
(provide (all-defined-out))
(struct Comment (c) #:prefab)
type Module = ( Module ( definitions ) )
(struct Module (ds) #:prefab)
(struct Import (m f fs) #:prefab)
(struct MemoryExport () #:prefab)
(struct Export (n d) #:prefab)
type Global = ( Global ( name type Const ) )
(struct Global (n t i) #:pr... |
3fcb2532e80d9263ecb4c15b0d202afa14ccfd00fb0431809c1ed903e4e5c40d | informatimago/lisp | oclo.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : oclo.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;; This file defines additions to the oclo packag... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/objcl/oclo.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
This file defines additions to the oclo package not provided by
the implementation or implementation specific code.
LEGAL
This program... | FILE : oclo.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2010 - 12 - 17 < PJB > Created .
AGPL3
Copyright 2010 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the Licens... |
e92b7a8ec33bc50bce57dbc748bd14fae612786894f7ce5fbcf458527e479501 | grin-compiler/ghc-wpc-sample-programs | Docbook.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
module Tests.Writers.Docbook (tests) where
import Prelude
import Data.Text (unpack)
import Test.Tasty
import Tests.Helpers
import Text.Pandoc
import Text.Pandoc.Arbitrary ()
import Text.Pandoc.Builder
docbook :: (ToPandoc a) => a -> String
docbook = do... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/test/Tests/Writers/Docbook.hs | haskell | # LANGUAGE OverloadedStrings #
"my test" =: X =?> Y
is shorthand for
test docbook "my test" $ X =?> Y
which is in turn shorthand for
test docbook "my test" (X,Y)
| # LANGUAGE NoImplicitPrelude #
module Tests.Writers.Docbook (tests) where
import Prelude
import Data.Text (unpack)
import Test.Tasty
import Tests.Helpers
import Text.Pandoc
import Text.Pandoc.Arbitrary ()
import Text.Pandoc.Builder
docbook :: (ToPandoc a) => a -> String
docbook = docbookWithOpts def{ writerWrapText =... |
7de03521118cb44135ba19276b9b56eaadd93a136dc30ddb509fd9df955d7f97 | cartazio/language-c | TravMonad.hs | # LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleContexts , FlexibleInstances ,
PatternGuards , RankNTypes , ScopedTypeVariables #
PatternGuards, RankNTypes, ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module ... | null | https://raw.githubusercontent.com/cartazio/language-c/d003206a45baec4e2a2a85026d88bd225162d951/src/Language/C/Analysis/TravMonad.hs | haskell | ---------------------------------------------------------------------------
|
Module : Language.C.Analysis.TravMonad
License : BSD-style
Maintainer :
Stability : alpha
name generation facilities.
Furthermore, the user may provide callbacks to handle declarations and definitions.
--------------... | # LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleContexts , FlexibleInstances ,
PatternGuards , RankNTypes , ScopedTypeVariables #
PatternGuards, RankNTypes, ScopedTypeVariables #-}
Copyright : ( c ) 2008
Portability : ghc
Monad for of the C AST .
For the t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.