_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
a99069ed5409b15a962e8048f299a1d1f26d88d2ed2a33e0b9cfcc1878465c66
backtracking/ocamlgraph
dGraphTreeModel.ml
(**************************************************************************) (* *) (* This file is part of OcamlGraph. *) (* *) Copyright...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/dGraphTreeModel.ml
ocaml
************************************************************************ This file is part of OcamlGraph. ...
Copyright ( C ) 2009 - 2010 CEA ( Commissariat � l' � ) Lesser General Public License as published by the Free Software Foundation , version 2.1 , with a linking exception . ( ) ...
bc7fc8f657c825a94be5d4f5b1d1b564746333acfdf0828407e4836a9091ce66
f-f/dhall-clj
alpha_normalize.clj
(ns dhall-clj.alpha-normalize (:require [dhall-clj.ast :refer :all] [medley.core :refer [map-vals]])) (defprotocol IAlphaNormalize (alpha-normalize [this] "α-normalize an expression by renaming all variables to `_` and using De Bruijn indices to distinguish them")) (extend-protocol IAlphaNor...
null
https://raw.githubusercontent.com/f-f/dhall-clj/05d25d2464972bbeae46d828b478b4cfd59836dc/src/dhall_clj/alpha_normalize.clj
clojure
(ns dhall-clj.alpha-normalize (:require [dhall-clj.ast :refer :all] [medley.core :refer [map-vals]])) (defprotocol IAlphaNormalize (alpha-normalize [this] "α-normalize an expression by renaming all variables to `_` and using De Bruijn indices to distinguish them")) (extend-protocol IAlphaNor...
4cb0b261ebe52950cbe764fd7bbd563d4f8684e0b73dc0fafee7a554686af13e
serokell/qtah
Gui.hs
This file is part of Qtah . -- Copyright 2015 - 2018 The Qtah Authors . -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) ...
null
https://raw.githubusercontent.com/serokell/qtah/abb4932248c82dc5c662a20d8f177acbc7cfa722/qtah-generator/src/Graphics/UI/Qtah/Generator/Interface/Gui.hs
haskell
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
This file is part of Qtah . Copyright 2015 - 2018 The Qtah Authors . the Free Software Foundation , either version 3 of the License , or GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License module Graphics.UI.Qtah.Generator.Interface.Gu...
1d4903a27d912dfbe42aed5b0d8dcebf0b3cd7a52edd6a7f93d4d21c0cf0f06e
spurious/sagittarius-scheme-mirror
packet.scm
-*- mode : scheme ; coding : utf-8 -*- ;;; ;;; net/mq/mqtt/packet.scm - MQTT v3.1.1 packet ;;; Copyright ( c ) 2010 - 2014 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Re...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/net/mq/mqtt/packet.scm
scheme
coding : utf-8 -*- net/mq/mqtt/packet.scm - MQTT v3.1.1 packet 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 con...
Copyright ( c ) 2010 - 2014 < > " 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 MQTT is one simple protocol so we do n't ...
c0d01d7f33c8aada826b835182bb10f4849b5910e272bbc7ed88eb06abfea2a9
herd/herdtools7
op.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/d0fa745ab09a1607b4a192f8fcb16548786f7a9e/lib/op.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
68c7d93685e33a28963ceac6b6aa865f7e55e2fc82bf6e44214657a81aa7bd6f
OlivierSohn/hamazed
Hue.hs
# LANGUAGE NoImplicitPrelude # | Every ' Color8 ' can be decomposed in a /saturated/ part and a /gray/ part . Throughout this module , the notion of hue applies to the /saturated/ part . Throughout this module, the notion of hue applies to the /saturated/ part. -} module Imj.Graphics.Color.Hue ( rota...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/6c2b20d839ede7b8651fb7b425cb27ea93808a4a/imj-base/src/Imj/Graphics/Color/Hue.hs
haskell
| Generates a color that has the same /gray/ component as the input color, ^ The angle, in Turns (as defined < here>), ie @1@ is a full circle. angles may generate the same color. You may want to use 'countHuesOfSameIntensity' to compute the minimum angle that will produce a different color. | Returns all 'Color...
# LANGUAGE NoImplicitPrelude # | Every ' Color8 ' can be decomposed in a /saturated/ part and a /gray/ part . Throughout this module , the notion of hue applies to the /saturated/ part . Throughout this module, the notion of hue applies to the /saturated/ part. -} module Imj.Graphics.Color.Hue ( rota...
717d88c37838f63e3e07902953220c5be5e4ffb6e6eb47b4b835d3495a49aa47
ocsigen/js_of_ocaml
lazy.ml
Js_of_ocaml tests * / * Copyright ( C ) 2019 Hugo Heuzard * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/4b1253d25c7539a73305f4320a945ee9751abfee/compiler/tests-compiler/lazy.ml
ocaml
Js_of_ocaml tests * / * Copyright ( C ) 2019 Hugo Heuzard * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , or * ( at your option ) any...
5edf1b3646fe68b4cfb44527c74a3d4b389886d77a5b20fc1cd0f6a221838df1
deech/fltkhs-demos
nativefilechooser-simple-app.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import qualified Graphics.UI.FLTK.LowLevel.FL as FL import Graphics.UI.FLTK.LowLevel.Fl_Types import Graphics.UI.FLTK.LowLevel.Fl_Enumerations import Graphics.UI.FLTK.LowLevel.FLTKHS import System.Directory import System.Exit import qualified Data.Text as T openFile ...
null
https://raw.githubusercontent.com/deech/fltkhs-demos/64ed6dfd281d309535ea94d6396c0260395b37d0/src/Examples/nativefilechooser-simple-app.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import qualified Graphics.UI.FLTK.LowLevel.FL as FL import Graphics.UI.FLTK.LowLevel.Fl_Types import Graphics.UI.FLTK.LowLevel.Fl_Enumerations import Graphics.UI.FLTK.LowLevel.FLTKHS import System.Directory import System.Exit import qualified Data.Text as T openFile :: FilePath -> IO () openFile fp = ...
158b39a87bfcac65d159bc6129e425cffa0dfca3583d01556a57c7d218a9407f
racket/scribble
manual-utils.rkt
#lang racket/base (require "../struct.rkt" "../base.rkt" (only-in "../core.rkt" content? style?) racket/contract/base racket/list) (provide doc-prefix) (provide/contract [spacer element?] [to-flow (content? . -> . flow?)] [flow-spacer flow?] ...
null
https://raw.githubusercontent.com/racket/scribble/d36a983e9d216e04ac1738fa3689c80731937f38/scribble-lib/scribble/private/manual-utils.rkt
racket
#lang racket/base (require "../struct.rkt" "../base.rkt" (only-in "../core.rkt" content? style?) racket/contract/base racket/list) (provide doc-prefix) (provide/contract [spacer element?] [to-flow (content? . -> . flow?)] [flow-spacer flow?] ...
4ca7b5587ea893e346e44da2e0e25ac0036dde5b9e401db0f0d55549267155a6
marick/Midje
experimental.clj
(ns midje.experimental (:require [midje.parsing.0-to-fact-form.generative :as parse-generative] [pointer.core :as pointer])) (defmacro for-all "Check facts using values generated using test.check generators, as long as the generators are independent of each other (see gen-let for a more general a...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/src/midje/experimental.clj
clojure
(ns midje.experimental (:require [midje.parsing.0-to-fact-form.generative :as parse-generative] [pointer.core :as pointer])) (defmacro for-all "Check facts using values generated using test.check generators, as long as the generators are independent of each other (see gen-let for a more general a...
dcf79973656b7ef5d3bfa29833f84ee710dab0a4d4d8f0c37d228a386272cd2b
mirage/irmin
irmin_unix.ml
* Copyright ( c ) 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND ...
null
https://raw.githubusercontent.com/mirage/irmin/76d8f910c294029b9a994607f25feaca9bfb8ea0/src/irmin/unix/irmin_unix.ml
ocaml
* Copyright ( c ) 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND ...
09ba1fbcfedd0d35fda209eecbe577b8f50075e948d67c8f27724eda28138701
Liqwid-Labs/liqwid-plutarch-extra
Star.hs
module Plutarch.Extra.Star ( -- * Type PStar (..), -- * Functions papplyStar, ) where import Plutarch.Extra.Applicative (PApplicative (ppure), PApply (pliftA2)) import Plutarch.Extra.Bind (PBind ((#>>=))) import Plutarch.Extra.Category (PCategory (pidentity), PSemigroupoid ((#>>>))) import Plutarch.Extra.Func...
null
https://raw.githubusercontent.com/Liqwid-Labs/liqwid-plutarch-extra/e354b559c358c1500854ad3c9f14133b258b7531/src/Plutarch/Extra/Star.hs
haskell
* Type * Functions > f b@ using ' PSemigroupoid ' > b@ , provided that @f@ > ' at ends of a ' PStar ' , provided @f@ is at > f b@ using 'PSemigroupoid' > b@, provided that @f@ >' at /both/ ends of a 'PStar', provided @f@ is at > f b)) > ' . >'. > f b )
module Plutarch.Extra.Star ( PStar (..), papplyStar, ) where import Plutarch.Extra.Applicative (PApplicative (ppure), PApply (pliftA2)) import Plutarch.Extra.Bind (PBind ((#>>=))) import Plutarch.Extra.Category (PCategory (pidentity), PSemigroupoid ((#>>>))) import Plutarch.Extra.Functor (PFunctor (PSubcategory, ...
03d51b7b49e4ca5cad06517f956377920687608515b6482f27af9d8cefd76450
rabbitmq/rabbitmq-sharding
rabbit_sharding_policy_validator.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_sharding_policy_validator). -beha...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-sharding/722f8165f156b03ffa2cb7890999b8c37446d3a6/src/rabbit_sharding_policy_validator.erl
erlang
----------------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_sharding_policy_validator). -behaviour(...
c69ac79a3e8dfa0d269a0bd41613afa0a0301ca42fc618d6266ccf5402ef3ba1
m-schmidt/Asm6502
Commandline.hs
-- |Module to parse the command line module Commandline ( OutFormat(..) , Options(..) , commandLineOptions ) where import Control.Monad import Data.Char import Data.List import Error import System.Console.GetOpt import System.FilePath import Text.Read -- |Supported output formats data OutFormat = PRG ...
null
https://raw.githubusercontent.com/m-schmidt/Asm6502/bec7b262088b2a125445292ddb9a7cc34859527f/src/Commandline.hs
haskell
|Module to parse the command line |Supported output formats ^ A binary format directly loadable by an emulator ^ A textual hexdump |Command line options of the assembler ^ Tracing: dump parsed input program ^ Raw output format as specified on command line ^ The output file ^ Show help and terminate program ^ ...
module Commandline ( OutFormat(..) , Options(..) , commandLineOptions ) where import Control.Monad import Data.Char import Data.List import Error import System.Console.GetOpt import System.FilePath import Text.Read data OutFormat deriving (Eq,Show,Read) data Options = Options ^ output format } deri...
812088aa4fd00010ec7a25fd7d065d6c511c74299e89538ce515a917a8e6703d
pveber/biotk
random_dna_sequence.ml
module Dna_sequence = struct let random_base gc = match Float.(Random.float 1. > gc, Random.float 1. > 0.5) with false, false -> 'c' | false, true -> 'g' | true, false -> 'a' | true, true -> 't' let random n gc = String.init n ~f:(fun _ -> random_base gc) let random_base comp = if ...
null
https://raw.githubusercontent.com/pveber/biotk/9e6fe7fc6fcda7fd91d4d637b66db5961a4a247e/lib/motif_inference/random_dna_sequence.ml
ocaml
module Dna_sequence = struct let random_base gc = match Float.(Random.float 1. > gc, Random.float 1. > 0.5) with false, false -> 'c' | false, true -> 'g' | true, false -> 'a' | true, true -> 't' let random n gc = String.init n ~f:(fun _ -> random_base gc) let random_base comp = if ...
b7995da2acd6b56c85722169c36d2e499344827e69d8eae73e586d833a27cced
DK318/fp-hw1-tests
T7Spec.hs
module T7Spec where import Hedgehog import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Range as Range import Test.Hspec import Test.Tasty import Test.Tasty.Hedgehog import Test.Tasty.Hspec import HW1.T7 (DotString (..), Fun (..), Inclusive (..), ListPlus (..)) instance Eq a => Eq (ListPlus a) where (...
null
https://raw.githubusercontent.com/DK318/fp-hw1-tests/f6e10e712c98398d1e13913c886ea85cb611780a/test/T7/T7Spec.hs
haskell
module T7Spec where import Hedgehog import qualified Hedgehog.Gen as Gen import qualified Hedgehog.Range as Range import Test.Hspec import Test.Tasty import Test.Tasty.Hedgehog import Test.Tasty.Hspec import HW1.T7 (DotString (..), Fun (..), Inclusive (..), ListPlus (..)) instance Eq a => Eq (ListPlus a) where (...
f96c32125d84d062d4aa1617deb073c1c97ae530cd1b9883c1359f6b3cf63422
ocaml-multicore/multicoretests
stm_tests.ml
open QCheck open STM * parallel STM tests of Ephemeron module Ephemeron . S = sig type key type ' a t val create : int - > ' a t val clear : ' a t - > unit val reset : ' a t - > unit val copy : ' a t - > ' a t val add : ' a t - > key - > ' a - > unit val remove : ...
null
https://raw.githubusercontent.com/ocaml-multicore/multicoretests/e409e0e37c814ce42ad43563837a20695a45e5f8/src/ephemeron/stm_tests.ml
ocaml
some entries may have been GC'ed - test only for inclusion effectively: no postcond succeed fail
open QCheck open STM * parallel STM tests of Ephemeron module Ephemeron . S = sig type key type ' a t val create : int - > ' a t val clear : ' a t - > unit val reset : ' a t - > unit val copy : ' a t - > ' a t val add : ' a t - > key - > ' a - > unit val remove : ...
79bd403d4f01bbb620c43190e4d2440b6fe5b422ac0289907f3cdb3e26b684b0
locusmath/locus
object.clj
(ns locus.graph.core.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.logic.structure.protocols :refer :all] ...
null
https://raw.githubusercontent.com/locusmath/locus/fb6068bd78977b51fd3c5783545a5f9986e4235c/src/clojure/locus/graph/core/object.clj
clojure
Graphs: Let F be a presheaf, then F is naturally associated to a lattice of presheaves of graphs that of a graph on a set to a graph on a presheaf. In the case of a set this returns an ordinary graph, in the case of a function this produces a graph homomorphism, and in general this produces a homomorphism of graph...
(ns locus.graph.core.object (:require [locus.set.logic.core.set :refer :all] [locus.set.logic.limit.product :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.logic.sequence.object :refer :all] [locus.set.logic.structure.protocols :refer :all] ...
2c146f27925f0f7d8bba9d48bb006d265c0ec006d8f7947f177186da2119cd78
evincarofautumn/kitten
Regeneralize.hs
| Module : Kitten . Regeneralize Description : Stack - generalization of types Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.Regeneralize Description : Stack-generalization of types Copyright : (c) Jon Purdy, 2...
null
https://raw.githubusercontent.com/evincarofautumn/kitten/a5301fe24dbb9ea91974abee73ad544156ee4722/lib/Kitten/Regeneralize.hs
haskell
# LANGUAGE OverloadedStrings # | Because all functions are polymorphic with respect to the part of the stack they don't touch, all words of order n can be regeneralized to words of rank n with respect to the stack-kinded type variables. This means that if a stack-kinded (ρ) type variable occurs only twice in a ty...
| Module : Kitten . Regeneralize Description : Stack - generalization of types Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.Regeneralize Description : Stack-generalization of types Copyright : (c) Jon Purdy, 2...
379a8bfbfca777e7c60ee231e20a62ce05687ef9b64c4a34e9a484da78ed494b
flyspeck/flyspeck
realax.ml
(* ========================================================================= *) (* Theory of real numbers. *) (* *) , University of Cambridge Computer Laboratory (* ...
null
https://raw.githubusercontent.com/flyspeck/flyspeck/05bd66666b4b641f49e5131a37830f4881f39db9/azure/hol-light-nat/realax.ml
ocaml
========================================================================= Theory of real numbers. ===============...
, University of Cambridge Computer Laboratory ( c ) Copyright , University of Cambridge 1998 ( c ) Copyright , 1998 - 2007 open Parser include Lists parse_as_infix("++",(16,"right"));; parse_as_infix("**",(20,"right"));; par...
69ebf6ef601e8b6d1dbce9fe582917453e22bec45f1b78730fba9424dbb33115
nixeagle/cl-irc
package.lisp
$ Id$ ;;;; $Source$ ;;;; See the LICENSE file for licensing information. (in-package :cl-user) (eval-when (:execute :load-toplevel :compile-toplevel) (defpackage :cl-irc-test (:use :cl :rt) (:nicknames :cl-irc-test) (:export :do-tests)))
null
https://raw.githubusercontent.com/nixeagle/cl-irc/efaea15f2962107ea9b1a2fad5cd9db492b4247b/tags/cl_irc_0_7/test/package.lisp
lisp
$Source$ See the LICENSE file for licensing information.
$ Id$ (in-package :cl-user) (eval-when (:execute :load-toplevel :compile-toplevel) (defpackage :cl-irc-test (:use :cl :rt) (:nicknames :cl-irc-test) (:export :do-tests)))
24435960a7dc3d948f876c3d9aef1eec4a07fa6f55a69f017bd81a2c40454066
racket/drdr
sema.rkt
#lang racket/base (require racket/contract/base) (define (semaphore-wait* sema how-many) (unless (zero? how-many) (semaphore-wait sema) (semaphore-wait* sema (sub1 how-many)))) (provide/contract [semaphore-wait* (semaphore? exact-nonnegative-integer? . -> . void)])
null
https://raw.githubusercontent.com/racket/drdr/a3e5e778a1c19e7312b98bab25ed95075783f896/sema.rkt
racket
#lang racket/base (require racket/contract/base) (define (semaphore-wait* sema how-many) (unless (zero? how-many) (semaphore-wait sema) (semaphore-wait* sema (sub1 how-many)))) (provide/contract [semaphore-wait* (semaphore? exact-nonnegative-integer? . -> . void)])
350f79b71024a509cb79a7f9234e4c1e91ca897b5544fe7d8c54e025ec3c605e
cxphoe/SICP-solutions
2.08.rkt
(load "2.7.rkt") (define (sub-interval x y) (make-interval (- (lower-bound x) (upper-bound y)) (- (upper-bound x) (lower-bound y))))
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%202-Building%20Abstractions%20with%20Data/1.Introduction%20to%20Data%20Abstraction/2.08.rkt
racket
(load "2.7.rkt") (define (sub-interval x y) (make-interval (- (lower-bound x) (upper-bound y)) (- (upper-bound x) (lower-bound y))))
94f58ef5f465a4204e6dd767e43570ae6bc9c333be86e9f4abb873d47d4820e3
realworldocaml/book
ppx_hash_expander.ml
open Base open Ppxlib open Ast_builder.Default module Attrs = struct let ignore_label_declaration = Attribute.declare "hash.ignore" Attribute.Context.label_declaration Ast_pattern.(pstr nil) () ;; let ignore_core_type = Attribute.declare "hash.ignore" Attribute.Context.core_type ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_hash/expander/ppx_hash_expander.ml
ocaml
Avoid confusing errors with [ { mutable field : (value[@ignore]) } ] vs [ { mutable field : value [@ignore] } ] by treating them the same. Generate code to compute hash values of type [t] in folding style, following the structure of the type. Incorporate all structure when computing hash values, to maximi...
open Base open Ppxlib open Ast_builder.Default module Attrs = struct let ignore_label_declaration = Attribute.declare "hash.ignore" Attribute.Context.label_declaration Ast_pattern.(pstr nil) () ;; let ignore_core_type = Attribute.declare "hash.ignore" Attribute.Context.core_type ...
f95722fa10242c1bfc77bb8fc4e0cac86fa05e541474084866dc0787bcfbb943
UU-ComputerScience/js-asteroids
HTML5.hs
module Language.UHC.JS.W3C.HTML5 ( Document , documentAnchors , documentForms , documentImages , documentLinks , document , documentWriteln, documentWrite , documentGetElementById, documentGetElementsByName, documentGetElementsByTagName , documentCreateElement , Anchor , anchorCharset , anchorH...
null
https://raw.githubusercontent.com/UU-ComputerScience/js-asteroids/b7015d8ad4aa57ff30f2631e0945462f6e1ef47a/uhc-js/uhc-js/src/Language/UHC/JS/W3C/HTML5.hs
haskell
module Language.UHC.JS.W3C.HTML5 ( Document , documentAnchors , documentForms , documentImages , documentLinks , document , documentWriteln, documentWrite , documentGetElementById, documentGetElementsByName, documentGetElementsByTagName , documentCreateElement , Anchor , anchorCharset , anchorH...
852b215fe210d74df586e0738f15a47d047fa2596299d14800a01ed6aec0b183
george-steel/maxent-learner
FeatureTableEditor.hs
# LANGUAGE LambdaCase , OverloadedStrings , ExtendedDefaultRules # module FeatureTableEditor ( createEditableFT, displayFeatureMatrix, displayDynFeatureTable ) where import Graphics.UI.Gtk import Control.FRPNow hiding (swap) import Control.FRPNow.GTK import Control.FRPNow.GTK.MissingFFI import Control.Mon...
null
https://raw.githubusercontent.com/george-steel/maxent-learner/dfa29387338418e55f681886a7b3e5ca46bba459/maxent-learner-hw-gui/app/FeatureTableEditor.hs
haskell
sync $ fileChooserAddFilter saveDialog allfilter
# LANGUAGE LambdaCase , OverloadedStrings , ExtendedDefaultRules # module FeatureTableEditor ( createEditableFT, displayFeatureMatrix, displayDynFeatureTable ) where import Graphics.UI.Gtk import Control.FRPNow hiding (swap) import Control.FRPNow.GTK import Control.FRPNow.GTK.MissingFFI import Control.Mon...
6c3558f969715a18329e5b3a10e2a9d356860f9d07b87571bdaad9c84036c491
LambdaScientist/CLaSH-by-example
TestSimpleDFlopWithReset.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # module ClocksAndRegisters.TestSimpleDFlopWithReset where import CLaSH.Prelude import SAFE.TestingTools import SAFE.CommonClash import ClocksAndRegisters.Models.SimpleDFlopWithReset import Text.PrettyPrint.HughesPJClass import GHC.Generics (Generic) impo...
null
https://raw.githubusercontent.com/LambdaScientist/CLaSH-by-example/e783cd2f2408e67baf7f36c10398c27036a78ef3/ConvertedClashExamples/src/ClocksAndRegisters/TestSimpleDFlopWithReset.hs
haskell
-TESTING
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # module ClocksAndRegisters.TestSimpleDFlopWithReset where import CLaSH.Prelude import SAFE.TestingTools import SAFE.CommonClash import ClocksAndRegisters.Models.SimpleDFlopWithReset import Text.PrettyPrint.HughesPJClass import GHC.Generics (Generic) impo...
d8fedb3be94593fc4615b2b77a8ff4baa43700c2c06d7a5a945c67da43512a91
oden-lang/oden
Lint.hs
module Oden.CLI.Lint where import Oden.QualifiedName import Oden.SourceFile import Oden.CLI import Oden.CLI.Build lint :: FilePath -> CLI () lint path = do _ <- compileFile (OdenSourceFile path (NativePackageName ["main"])) return ()
null
https://raw.githubusercontent.com/oden-lang/oden/10c99b59c8b77c4db51ade9a4d8f9573db7f4d14/cli/Oden/CLI/Lint.hs
haskell
module Oden.CLI.Lint where import Oden.QualifiedName import Oden.SourceFile import Oden.CLI import Oden.CLI.Build lint :: FilePath -> CLI () lint path = do _ <- compileFile (OdenSourceFile path (NativePackageName ["main"])) return ()
b53a45d826e455ce7e0d50ea5e44a064a593d7fc9be63977d42ed38397315399
juspay/atlas
PaymentTransaction.hs
# OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd 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 agre...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/parking-bap/src/Domain/PaymentTransaction.hs
haskell
# OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd 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 agre...
fe7cbc1f3ea4f1e05e5a71f45903813766e667483663e8a995a0bf903de08ee5
sky-big/RabbitMQ
rabbit_mgmt_wm_extensions.erl
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITH...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-management/src/rabbit_mgmt_wm_extensions.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. --------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ Management Plugin . The Initial Developer of the Original Code...
5cd391e39573f1b9658361c68d951413e25bcbedbf2b7c79ee3950ce308a879a
UU-ComputerScience/uhc
Error.hs
----------------------------------------------------------------------------- -- | Module : System . . Error Copyright : ( c ) The University of Glasgow 2002 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : non-por...
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/ehclib/unix/System/Posix/Error.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : non-portable (requires POSIX) POSIX error support -------------------------------------------------------------...
Module : System . . Error Copyright : ( c ) The University of Glasgow 2002 module System.Posix.Error ( throwErrnoPath, throwErrnoPathIf, throwErrnoPathIf_, throwErrnoPathIfNull, throwErrnoPathIfMinus1, throwErrnoPathIfMinus1_, ) where import Foreign.C.Error
a289db522190033d42e981cac44643f4b03867d5c2c1e4a8151bac47f592023f
input-output-hk/project-icarus-importer
CLI.hs
module CLI where import Universum import Data.String.Conv (toS) import Options.Applicative (auto, eitherReader, help, long, metavar, option, strOption, switch) import Options.Generic (ParseRecord (..)) import Pos.Util.Servant (dec...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/tools/src/dbgen/CLI.hs
haskell
^ The path to the config file ^ The path to a valid rocksdb database. ^ The path to the secret key from the database. ^ The path to a valid acid-state database. ^ The path to a valid cardano-sl configuration. ^ The configuration profile to use. ^ The systemStart for the application ^ If true, print the stats fo...
module CLI where import Universum import Data.String.Conv (toS) import Options.Applicative (auto, eitherReader, help, long, metavar, option, strOption, switch) import Options.Generic (ParseRecord (..)) import Pos.Util.Servant (dec...
4d4ec6128ee620bb1bcaf963d7f53597662472a7665bf6e7d0b22783dbf8092f
Feuerlabs/netlink
netlink.erl
%%%---- BEGIN COPYRIGHT ------------------------------------------------------- %%% Copyright ( C ) 2012 Feuerlabs , Inc. All rights reserved . %%% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one ...
null
https://raw.githubusercontent.com/Feuerlabs/netlink/82579a8435472094494fe287df905cb07c1dee80/src/netlink.erl
erlang
---- BEGIN COPYRIGHT ------------------------------------------------------- ---- END COPYRIGHT --------------------------------------------------------- ------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API gen_serve...
Copyright ( C ) 2012 Feuerlabs , Inc. All rights reserved . This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. @author < > Netlink state monitor Created : 11 Jun 2012 by < > -mod...
136d9a1c0f5f2bbdd763553c442ea1f569cc1af4baa684fbbfbc3e4d3b98487d
tweag/asterius
cgrun057.hs
-- For testing +RTS -xc import Control.Exception main = try (evaluate (f ())) :: IO (Either SomeException ()) f x = g x g x = error (show x)
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/codeGen/cgrun057.hs
haskell
For testing +RTS -xc
import Control.Exception main = try (evaluate (f ())) :: IO (Either SomeException ()) f x = g x g x = error (show x)
4f24231e6d411bde14608e4b2e27f913a7f5c653f7de110cb84f0f226daa9cc7
ankushdas/Nomos
Typecheck.ml
(* Type Checking *) Use the syntax - directed rules to check the types and * raises ErrorMsg . Error if an error is discovered * raises ErrorMsg.Error if an error is discovered *) module R = Arith module A = Ast module PP = Pprint module E = TpError module I = Infer module F = RastFlags let error = ErrorMsg.err...
null
https://raw.githubusercontent.com/ankushdas/Nomos/db678f3981e75a1b3310bb55f66009bb23430cb1/rast/Typecheck.ml
ocaml
Type Checking ******************* Validity of types ******************* Equi-Synchronizing Session Types Purely linear types are always equi-synchronizing Occurrences of |> and <| are restricted to * positive and negative positions in a type, respectively allowing 0, for uniformity allowing 0, for unifor...
Use the syntax - directed rules to check the types and * raises ErrorMsg . Error if an error is discovered * raises ErrorMsg.Error if an error is discovered *) module R = Arith module A = Ast module PP = Pprint module E = TpError module I = Infer module F = RastFlags let error = ErrorMsg.error ErrorMsg.Type;; ...
f0f956cd89d38a2963a51c58c2c93b49655b0f9d004fd0ec6a2a5f146356e9ba
brunjlar/neural
Layer.hs
{-# OPTIONS_HADDOCK show-extensions #-} # LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE RankNTypes #-} | Module : Numeric . Neural . Layer Description : layer components Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : ex...
null
https://raw.githubusercontent.com/brunjlar/neural/1211d1a2bed14b4036f48c500f945fea027cd3b9/src/Numeric/Neural/Layer.hs
haskell
# OPTIONS_HADDOCK show-extensions # # LANGUAGE RankNTypes # | Creates a /linear/ @'Layer'@, i.e. a layer that multiplies the input with a weight @'Matrix'@ and adds a bias to get the output. | Creates a @'Layer'@ as a combination of a linear layer and a non-linear activation function. | This is a simple @'Layer'@...
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE ScopedTypeVariables # | Module : Numeric . Neural . Layer Description : layer components Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : portable This modules defines special ...
ccb5be6ac79ff0824fa1e6868c7a153bc81f594cb4d2ca433cb357826b53ebb8
HumbleUI/HumbleUI
7guis_converter.clj
(ns examples.7guis-converter (:require [clojure.string :as str] [io.github.humbleui.core :as core] [io.github.humbleui.ui :as ui])) (def *celsius (atom {:text "5" :from 1 :to 1})) (def *fahrenheit (atom {:text "41"})) (def ^:dynamic *editing* false) (add-watch *celsius ::update...
null
https://raw.githubusercontent.com/HumbleUI/HumbleUI/b0a596028dac8ebebf178a378e88d1c9f971e9dd/dev/examples/7guis_converter.clj
clojure
(ns examples.7guis-converter (:require [clojure.string :as str] [io.github.humbleui.core :as core] [io.github.humbleui.ui :as ui])) (def *celsius (atom {:text "5" :from 1 :to 1})) (def *fahrenheit (atom {:text "41"})) (def ^:dynamic *editing* false) (add-watch *celsius ::update...
2db55e17c2e468325ba4174747395d4f64ed9f2bf4286e7c73a8a4482d7922a4
acl2/acl2
defevaluator-theorems-tests.lisp
; Tests of defevaluator-theorems. ; Copyright ( C ) 2023 Kestrel Institute ; License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "ACL2") (include-book "defevaluator-plus") (includ...
null
https://raw.githubusercontent.com/acl2/acl2/2790a294db676f428d72175afcfa5dfff2b05979/books/kestrel/evaluators/defevaluator-theorems-tests.lisp
lisp
Tests of defevaluator-theorems.
Copyright ( C ) 2023 Kestrel Institute License : A 3 - clause BSD license . See the file books/3BSD - mod.txt . Author : ( ) (in-package "ACL2") (include-book "defevaluator-plus") (include-book "defevaluator-theorems") (defevaluator+ myev binary-*) (defevaluator-theorems myev myev-list)
42714ae0fae5b8519b422f285671b7119ddc6c516ed930be771e7bcde3298f99
Kah0ona/re-datagrid
core.cljs
(ns re-datagrid.core (:require [reagent.core :as reagent] [re-frame.core :as re-frame] [re-datagrid.events] [re-datagrid.subs] [re-datagrid.schema] [re-datagrid.views] [re-datagrid.config]))
null
https://raw.githubusercontent.com/Kah0ona/re-datagrid/0dc1407a7da98adfec865cb02bbeecd950b18c1e/src/cljs/re_datagrid/core.cljs
clojure
(ns re-datagrid.core (:require [reagent.core :as reagent] [re-frame.core :as re-frame] [re-datagrid.events] [re-datagrid.subs] [re-datagrid.schema] [re-datagrid.views] [re-datagrid.config]))
95ac1dcc82b4738524ff06cc3669034250c160ba148aa4a990f9a93915b2227b
lpw25/ocaml-typed-effects
bigrecmod.ml
module type Big = sig type a val f000 : a val f001 : a val f002 : a val f003 : a val f004 : a val f005 : a val f006 : a val f007 : a val f008 : a val f009 : a val f010 : a val f011 : a val f012 : a val f013 : a val f014 : a val f015 : a val f016 : a val f017 : a val f018 : a val f019 : a val f020 : a val f02...
null
https://raw.githubusercontent.com/lpw25/ocaml-typed-effects/79ea08b285c1fd9caf3f5a4d2aa112877f882bea/testsuite/tests/promotion/bigrecmod.ml
ocaml
module type Big = sig type a val f000 : a val f001 : a val f002 : a val f003 : a val f004 : a val f005 : a val f006 : a val f007 : a val f008 : a val f009 : a val f010 : a val f011 : a val f012 : a val f013 : a val f014 : a val f015 : a val f016 : a val f017 : a val f018 : a val f019 : a val f020 : a val f02...
cb9fe5ea4bb4f52585869a9662a878eca2d658764a0bdec43260b2085f670e85
brendanhay/amazonka
Types.hs
# LANGUAGE DisambiguateRecordFields # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . -- | -- Module : Amazonka.WorkLink.Types Copyright : ( c ) ...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-worklink/gen/Amazonka/WorkLink/Types.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkLink.Types Stability : auto-generated * Service Configuration * Errors | The service is temporarily unavailable. | The request is not valid. | The resource already exists. | The requested resource was not found. | The number...
# LANGUAGE DisambiguateRecordFields # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Port...
4360480aba3fec0828012be14a895d217e5ac2d21f8808174287842123256636
levand/qttt
reagent.cljs
(ns qttt.ui.reagent (:require [reagent.core :as r] [qttt.game :as game])) (def game (r/atom game/new-game)) (def css-transition-group (js/React.createFactory js/React.addons.CSSTransitionGroup)) (defn class-name "Return a class name string given multiple CSS classes. Nil classes are filtered out." ...
null
https://raw.githubusercontent.com/levand/qttt/5be7e03a181a7d621638e112a2a514badfa065c2/src/qttt/ui/reagent.cljs
clojure
(ns qttt.ui.reagent (:require [reagent.core :as r] [qttt.game :as game])) (def game (r/atom game/new-game)) (def css-transition-group (js/React.createFactory js/React.addons.CSSTransitionGroup)) (defn class-name "Return a class name string given multiple CSS classes. Nil classes are filtered out." ...
d5393b176694898cbfd2edd804b075c5bc9f001ba4ee575236db97d37f9cea83
input-output-hk/marlowe-cardano
Server.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} -- | A view of the chain sync protocol from the point of view of the -- server. This provides a simplified interface for implementing the server -- role of the protocol. The types should be much easier to use than the...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/a1bc3d0fde8774c91bb7e12f547503c643230be9/marlowe-protocols/src/Network/Protocol/ChainSeek/Server.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | A view of the chain sync protocol from the point of view of the server. This provides a simplified interface for implementing the server role of the protocol. The types should be much easier to use than the underlying typed protocol types. | A chain sync protocol server...
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # module Network.Protocol.ChainSeek.Server where import Network.Protocol.ChainSeek.Types import Network.TypedProtocol (Peer(..), PeerHasAgency(..)) import Network.TypedProtocol.Core (PeerRole(..)) newtype ChainSeekServer query point tip m a = ChainSeekServer { ru...
9f658fcece627360ab863e6c8db05e0bff67c3027508d2bd087dcd21c4973aa1
ocaml-omake/omake
lm_index.mli
* Index module based on tables . * An index is essentially a multi - level table . * Each entry has an associated data item and subtable . * * ---------------------------------------------------------------- * * Copyright ( C ) 2002 , Caltech * * This library is free software ; you can redi...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/libmojave/lm_index.mli
ocaml
* Elements. * This type specifies the type of the keys used in the index. * These are the functions provided by the index. index maps key lists to elements of type 'a empty index and empty test tests/lookups - single level tests/lookups - multi level addition and removal - single level addition of a ch...
* Index module based on tables . * An index is essentially a multi - level table . * Each entry has an associated data item and subtable . * * ---------------------------------------------------------------- * * Copyright ( C ) 2002 , Caltech * * This library is free software ; you can redi...
136b2fe6923e46f5740396e229873908780b51170d85640f9b6eaf0429631ac4
ds-wizard/engine-backend
Api.hs
module Wizard.Api.Handler.DocumentTemplateDraft.File.Api where import Servant import Servant.Swagger.Tags import Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_Content_GET import Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_Content_PUT import Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_DELETE i...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Handler/DocumentTemplateDraft/File/Api.hs
haskell
module Wizard.Api.Handler.DocumentTemplateDraft.File.Api where import Servant import Servant.Swagger.Tags import Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_Content_GET import Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_Content_PUT import Wizard.Api.Handler.DocumentTemplateDraft.File.Detail_DELETE i...
b54276fed2c3f990129a85ca25dcef42b2b647d62853bee240264906b4a899fc
zack-bitcoin/amoveo
block_hashes.erl
-module(block_hashes). % keep the hash of every block we attempt to verify, that way we don't waste time trying to verify the same block twice. each blockhash is about 32 bytes . We need to prepare for about 10000000 blocks . So that would be 32 megabytes of data . We can keep this all in ram . -behaviour(gen_server). ...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo/257f3e8cc07f1bae9df1a7252b8bc67a0dad3262/apps/amoveo_core/src/consensus/chain/block_hashes.erl
erlang
keep the hash of every block we attempt to verify, that way we don't waste time trying to verify the same block twice. set is all the hashes io:fwrite("start block_hashes\n"), for every hash stored in the set, check if we are storing a block. If we are not storing a block, then remove it from the set. check if we are ...
-module(block_hashes). each blockhash is about 32 bytes . We need to prepare for about 10000000 blocks . So that would be 32 megabytes of data . We can keep this all in ram . -behaviour(gen_server). -export([start_link/0,code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2, add/1,check/1,second...
9834d29e32743a957760bf4f78236b82b91470cbb331cb76f7ae86ca072ab8f2
engineyard/vertebra-erl
test_suite.erl
Copyright 2008 , Engine Yard , Inc. % This file is part of Vertebra . % Vertebra is free software : you can redistribute it and/or modify it under the % terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any % lat...
null
https://raw.githubusercontent.com/engineyard/vertebra-erl/cf6e7c84f6dfbf2e31f19c47e9db112ae292ec27/lib/eye_update/tests/test_suite.erl
erlang
terms of the GNU Lesser General Public License as published by the Free later version. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Copyright 2008 , Engine Yard , Inc. This file is part of Vertebra . Vertebra is free software : you can redistribute it and/or modify it under the Software Foundation , either version 3 of the License , or ( at your option ) any Vertebra is distributed in the hope that it will be useful , but WITHOUT ANY Yo...
73a9d373f3d222705098ccb60bdc7a5582ff1767e6026068568cc3896f229905
ryanpbrewster/haskell
RandomHands.hs
module Main where import Poker.Data import Poker.Analysis import qualified Data.Set as S import System.Random import System.Random.Shuffle import Control.Monad import Data.Map (Map) import qualified Data.Map as M import Data.Ord (Down(..)) import Data.List (sortOn) trials = 10000 main :: IO () main = do forM_ ...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/poker/app/RandomHands.hs
haskell
module Main where import Poker.Data import Poker.Analysis import qualified Data.Set as S import System.Random import System.Random.Shuffle import Control.Monad import Data.Map (Map) import qualified Data.Map as M import Data.Ord (Down(..)) import Data.List (sortOn) trials = 10000 main :: IO () main = do forM_ ...
8bfb4f93155d405fd716363e7e25a7855069886dbf2cb935ac0b5808c76813e6
gas2serra/mcclim-desktop
system-browser.lisp
(in-package :desktop-user) (register-application "system-browser" 'standard-cl-application :pretty-name "System Browser" :icon nil :menu-p nil :home-page "-open-browser" :git-repo "-open-browser.git" :system-name "trivial-open-browser")
null
https://raw.githubusercontent.com/gas2serra/mcclim-desktop/f85d19c57d76322ae3c05f98ae43bfc8c0d0a554/dot-mcclim-desktop/apps/system-browser.lisp
lisp
(in-package :desktop-user) (register-application "system-browser" 'standard-cl-application :pretty-name "System Browser" :icon nil :menu-p nil :home-page "-open-browser" :git-repo "-open-browser.git" :system-name "trivial-open-browser")
8b68367b910eeec1c2677a23afcc9e1ae6724b339ea225a686c9398e5ae0d743
rvantonder/hack_parallel
scheduler.ml
* Copyright ( c ) 2016 - present , Facebook , Inc. Modified work Copyright ( c ) 2018 - 2019 Rijnard van Tonder This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree . Modified work Copyright (c) 2018-2019 Rijnard van Tonder This...
null
https://raw.githubusercontent.com/rvantonder/hack_parallel/c9d0714785adc100345835c1989f7c657e01f629/src/interface/scheduler.ml
ocaml
* Copyright ( c ) 2016 - present , Facebook , Inc. Modified work Copyright ( c ) 2018 - 2019 Rijnard van Tonder This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree . Modified work Copyright (c) 2018-2019 Rijnard van Tonder This...
f70454ad6556d99751f48d768771f1a0d12a00109e8295c9220551abc51883a8
Clozure/ccl-tests
char-compare.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Oct 5 19:36:00 2002 ;;;; Contains: Tests of character comparison functions (in-package :cl-test) ;;; The character comparisons should throw a PROGRAM-ERROR when ;;; safe-called with no arguments (deftest char-compare-no-args (loop for f in '(char= char/= c...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/char-compare.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of character comparison functions The character comparisons should throw a PROGRAM-ERROR when safe-called with no arguments Case-insensitive comparisons
Author : Created : Sat Oct 5 19:36:00 2002 (in-package :cl-test) (deftest char-compare-no-args (loop for f in '(char= char/= char< char> char<= char>= char-lessp char-greaterp char-equal char-not-lessp char-not-greaterp char-not-equal) collect (eval `(signals-error (funcall ',f) program-erro...
132ef9507944e2ffd667c943c22825b2300b6ad8c7173b0ae443892ad67889ee
opencog/miner
surp-mozi-ai.scm
;; Script to calculate the surprisingness of a given collection of ;; patterns over a given kb. This is convenient to test if the ;; surprisingness of a given pattern holds across multiple kbs. ;; ;; Make sure you disable compiling ;; ;; guile --no-auto-compile -l surp-mozi-ai.scm ;; Parameters (define kb-filename "al...
null
https://raw.githubusercontent.com/opencog/miner/d46a2c4e4c4df8e0d3115dafca32ac51889e0a23/examples/miner/mozi-ai/surp-mozi-ai.scm
scheme
Script to calculate the surprisingness of a given collection of patterns over a given kb. This is convenient to test if the surprisingness of a given pattern holds across multiple kbs. Make sure you disable compiling guile --no-auto-compile -l surp-mozi-ai.scm Parameters Load modules & utils Set loggers Set ...
(define kb-filename "all-pp.scm") (define ptns-filename "test.scm") (define surp 'nisurp) (define max-cnjs 3) (define db-ratio 1) (use-modules (srfi srfi-1)) (use-modules (opencog logger)) (use-modules (opencog ure)) (use-modules (opencog miner)) (use-modules (opencog bioscience)) (load "mozi-ai-utils.scm") (define ...
0cdf9045cdce84468eefb64870d84fe23fa403394bd6c701b0413793d6845c67
jcclinton/wow-emulator
client_sup.erl
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x %% Copyright ( C ) 2014 < jamieclinton.com > %% %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Found...
null
https://raw.githubusercontent.com/jcclinton/wow-emulator/21bc67bfc9eea131c447c67f7f889ba040dcdd79/src/client_sup.erl
erlang
This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU G...
This is a World of Warcraft emulator written in erlang , supporting client 1.12.x Copyright ( C ) 2014 < jamieclinton.com > it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy...
de6e2874a326666c1500c36d4494f93b5b3d37db8e69694b9cec9e94a0cef3bb
glguy/5puzzle
Nonogram.hs
module Main where import RegExp.AST import RegExp.Match (match) import Ersatz import Booleans import Control.Monad import Data.List (intercalate,transpose) import Prelude hiding ((&&),(||),all,and,any,or,not) import Data.Colour.SRGB import Diagrams.Prelude (Diagram, mkSizeSpec, scale, fc, square) import Diagram...
null
https://raw.githubusercontent.com/glguy/5puzzle/4d86cf9fad3ec3f70c57a167417adea6a3f9f30b/Nonogram.hs
haskell
module Main where import RegExp.AST import RegExp.Match (match) import Ersatz import Booleans import Control.Monad import Data.List (intercalate,transpose) import Prelude hiding ((&&),(||),all,and,any,or,not) import Data.Colour.SRGB import Diagrams.Prelude (Diagram, mkSizeSpec, scale, fc, square) import Diagram...
d7c2c241f77df7e697b60d012ea8278fcbec3fdf655e769a32093dd57a2ff21c
michaelnisi/feeder
feeder_entries.erl
-module(feeder_entries). -include("feeder_records.hrl"). -export([get/2]). get(author, E) -> E#entry.author; get(categories, E) -> E#entry.categories; get(duration, E) -> E#entry.duration; get(enclosure, E) -> E#entry.enclosure; get(id, E) -> E#entry.id; get(image, E) -> E#entry.image; get(link, E) -> ...
null
https://raw.githubusercontent.com/michaelnisi/feeder/de2004cb954a5a70390a680e2cb0ed697dfcfd27/src/feeder_entries.erl
erlang
-module(feeder_entries). -include("feeder_records.hrl"). -export([get/2]). get(author, E) -> E#entry.author; get(categories, E) -> E#entry.categories; get(duration, E) -> E#entry.duration; get(enclosure, E) -> E#entry.enclosure; get(id, E) -> E#entry.id; get(image, E) -> E#entry.image; get(link, E) -> ...
c787912b2379322e1fc5241333351a020297b42b2fed1e1ce7d0e859cba51ce3
AndrasKovacs/ELTE-func-lang
Gy04_pre.hs
# language InstanceSigs # # options_ghc -Wincomplete - patterns # module Orai.Gy04_pre where data SparseList a = Nil | Skip (SparseList a) | Cons a (SparseList a) deriving (Show) exampleList :: SparseList Char exampleList = Cons 's' (Cons 'a' (Skip (Cons 'j' (Skip (Cons 't' Nil))))) exampleList' :: SparseL...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/4379226df753916053774f95a482ce4b56c04ee0/2022-23-1/gyak3/Gy04_pre.hs
haskell
∙ / \ / \ / \ ∙ \ / \ \ / \ \ "the" "cake" ∙ / \ / \ "is" ∙ / \ / \ "a" "lie" ...
# language InstanceSigs # # options_ghc -Wincomplete - patterns # module Orai.Gy04_pre where data SparseList a = Nil | Skip (SparseList a) | Cons a (SparseList a) deriving (Show) exampleList :: SparseList Char exampleList = Cons 's' (Cons 'a' (Skip (Cons 'j' (Skip (Cons 't' Nil))))) exampleList' :: SparseL...
738621fdbc102760fcc0a6a00f28b34fa76c4613c169b06760c5e1286bacdd2d
racketscript/racketscript
import-renamed.rkt
#lang racket (require "private/renamed-out.rkt") (say-hello "Hello World!")
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/modules/import-renamed.rkt
racket
#lang racket (require "private/renamed-out.rkt") (say-hello "Hello World!")
4955aed2ea38611cec1cd956022c3be362d273d67568690a0dbbc565ce024f49
sockjs/sockjs-erlang
sockjs.erl
-module(sockjs). -export([send/2, close/1, close/3, info/1]). -type(conn() :: {sockjs_session, any()}). %% Send data over a connection. -spec send(iodata(), conn()) -> ok. send(Data, Conn = {sockjs_session, _}) -> sockjs_session:send(Data, Conn). %% Initiate a close of a connection. -spec close(conn()) -> ok. c...
null
https://raw.githubusercontent.com/sockjs/sockjs-erlang/66ea7f3fabac8d0f66aa88a354577b7c6be8fe9a/src/sockjs.erl
erlang
Send data over a connection. Initiate a close of a connection.
-module(sockjs). -export([send/2, close/1, close/3, info/1]). -type(conn() :: {sockjs_session, any()}). -spec send(iodata(), conn()) -> ok. send(Data, Conn = {sockjs_session, _}) -> sockjs_session:send(Data, Conn). -spec close(conn()) -> ok. close(Conn) -> close(1000, "Normal closure", Conn). -spec close(n...
9c48a6ec55f5fbc642e42440ece8f385d0dadb15b0c237ca3af210912d6128e1
atzeus/FRPNow
Time.hs
# LANGUAGE TupleSections , TypeOperators , MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # ----------------------------------------------------------------------------- -- | -- Module : Control.FRPNow.Time Copyright : ( c ) 2015 -- License : BSD-style -- Maintainer : -- St...
null
https://raw.githubusercontent.com/atzeus/FRPNow/58073b88dfd725eab6851a75b4c9f01f9d3f97d2/Control/FRPNow/Time.hs
haskell
--------------------------------------------------------------------------- | Module : Control.FRPNow.Time License : BSD-style Maintainer : Stability : provisional Portability : portable Various utility functions for FRPNow related to the passing of time. All take a "clock" as an argument, i...
# LANGUAGE TupleSections , TypeOperators , MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # Copyright : ( c ) 2015 gives the seconds since the program started . GUI library you are using FRP with such as ' Control . FRPNow . ' module Control.FRPNow.Time(localTime,timeFrac, lastInpu...
de11bde8ffa417a69a9349e0af552cdb7839b9915e24df2ea4742c51c0470378
gsakkas/rite
2053.ml
let rec assoc (d,k,l) = let rec helper (a,b,c) = match c with | [] -> a | (n,v)::t -> if n = c then v else helper (a, b, t) in helper (d, k, l);; (* fix let rec assoc (d,k,l) = let rec helper (a,b,c) = match c with | [] -> a | (n,v)::t -> if n = b then v else helper (a, b, t) in help...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/2053.ml
ocaml
fix let rec assoc (d,k,l) = let rec helper (a,b,c) = match c with | [] -> a | (n,v)::t -> if n = b then v else helper (a, b, t) in helper (d, k, l);;
let rec assoc (d,k,l) = let rec helper (a,b,c) = match c with | [] -> a | (n,v)::t -> if n = c then v else helper (a, b, t) in helper (d, k, l);; changed spans ( 6,26)-(6,27 ) b VarG (6,26)-(6,27) b VarG *) type error slice ( 4,5)-(6,56 ) ( 4,11)-(4,12 ) ( 6,22)-(6,23 ) ( 6,22...
b99fae37274adc3f55315a9b4dd7df54f5d1cd5d5b312d49c7a089d5e9fa41f4
HugoPeters1024/hs-sleuth
Utf8.hs
# LANGUAGE CPP , MagicHash , BangPatterns # -- | -- Module : Data.Text.Internal.Encoding.Utf8 Copyright : ( c ) 2008 , 2009 , ( c ) 2009 , 2010 , ( c ) 2009 -- -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : GHC -- -- /Warning/:...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/385655e62031959a14a3bac5e9ccd1c42c045f0c/test-project/text-1.2.4.0/Data/Text/Internal/Encoding/Utf8.hs
haskell
| Module : Data.Text.Internal.Encoding.Utf8 License : BSD-style Maintainer : Stability : experimental /Warning/: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk! ...
# LANGUAGE CPP , MagicHash , BangPatterns # Copyright : ( c ) 2008 , 2009 , ( c ) 2009 , 2010 , ( c ) 2009 Portability : GHC module Data.Text.Internal.Encoding.Utf8 ( ord2 , ord3 , ord4 , chr2 , chr3 , chr4 , validate1 , validate2 ,...
ab02ad6cbe7262b3fd9e5447cd09e8fd91a72298220efbab557b4f8861445930
tommaisey/aeon
amp-comp-a.help.scm
( amp - compA freq root rootAmp ) ;; ANSI A-weighting curve. ;; Basic psychoacoustic amplitude compensation ;; Higher frequencies are normally perceived as louder, which amp-compA compensates . Following the measurings by Fletcher and , the ;; ANSI standard describes a function for loudness vs. frequency. ;; N...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/filters/amp-comp-a.help.scm
scheme
ANSI A-weighting curve. Basic psychoacoustic amplitude compensation Higher frequencies are normally perceived as louder, which amp-compA ANSI standard describes a function for loudness vs. frequency. Note that this curve is only valid for standardized amplitude. For a simpler but more flexible curve, see amp-comp...
( amp - compA freq root rootAmp ) compensates . Following the measurings by Fletcher and , the rootAmp - amplitude at the root frequency . ( default 1 ) apart from freq , the values are not (let* ((x (mouse-x kr 300 15000 1 0.1)) (y (mouse-y kr 0 1 0 0.1)) (o (mul (sin-osc ar...
df309501ce9a8b23adee85970c4f380a45fdce852f6b88bad1fb94d2fc6bd88c
mzp/coq-ide-for-ios
dp_why.mli
open Fol (* generation of the Why file *) val output_file : string -> query -> unit table to translate the proofs back to Coq ( used in dp_zenon ) type proof = | Immediate of Term.constr | Fun_def of string * (string * typ) list * typ * term val add_proof : proof -> string val find_proof : string -> proof ...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/coq-8.2pl2/plugins/dp/dp_why.mli
ocaml
generation of the Why file
open Fol val output_file : string -> query -> unit table to translate the proofs back to Coq ( used in dp_zenon ) type proof = | Immediate of Term.constr | Fun_def of string * (string * typ) list * typ * term val add_proof : proof -> string val find_proof : string -> proof
210a4503861e4e7d18905d8c4c7f0002282192f5fcaae5545b467ce19dfa833a
theodormoroianu/SecondYearCourses
HaskellChurch_20210415163415.hs
{-# LANGUAGE RankNTypes #-} module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163415.hs
haskell
# LANGUAGE RankNTypes # The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair. a function to be applied on the values, it will apply i...
module HaskellChurch where A boolean is any way to choose between two alternatives newtype CBool = CBool {cIf :: forall t. t -> t -> t} An instance to show as regular Booleans instance Show CBool where show b = "cBool " <> show (cIf b True False) The boolean constant true always chooses the first alternativ...
6208da14c7e2ef286ec92834e0ec2a9e84e14f444b9984a9106739ca2f488d8b
ranjitjhala/haddock-annot
Convert.hs
# LANGUAGE PatternGuards # ----------------------------------------------------------------------------- -- | Module : . Convert Copyright : ( c ) , -- License : BSD-like -- -- Maintainer : -- Stability : experimental -- Portability : portable -- Conversion between TyThing and HsDecl ...
null
https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/haddock-2.9.3/src/Haddock/Convert.hs
haskell
--------------------------------------------------------------------------- | License : BSD-like Maintainer : Stability : experimental Portability : portable --------------------------------------------------------------------------- Some other functions turned out to be useful for converting the m...
# LANGUAGE PatternGuards # Module : . Convert Copyright : ( c ) , Conversion between TyThing and HsDecl . This functionality may be moved into GHC at some point . module Haddock.Convert where instance heads , which are n't , so just export everything . import HsSyn import TcType ( tcSplitS...
c5e40fc7cce4d76dfb20e999fd2da58890cc5f16a80f8fbf8ee508a18dc873ab
vascokk/rivus_cep
rivus_cep_server_sup.erl
%%------------------------------------------------------------------------------ Copyright ( c ) 2014 %% 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 ...
null
https://raw.githubusercontent.com/vascokk/rivus_cep/e9fe6ed79201d852065f7fb2a24a880414031d27/src/rivus_cep_server_sup.erl
erlang
------------------------------------------------------------------------------ you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eithe...
Copyright ( c ) 2014 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(rivus_cep_server_sup). -behaviour(supervisor). -export([start_link/0, init/1, stop/1]). -export([start_socket/0]). -compile([{parse_transform, ...
5e330b0dec41a8ead96d264126f7f01acb8ed3d7f52c678a1fd37348f90f3e10
developandplay/material-components-web-miso
Ripple.hs
{-# LANGUAGE OverloadedStrings #-} module Material.Ripple ( Config, config, setColor, setAttributes, bounded, unbounded, Color, primary, accent, ) where import qualified Data.Map as Map import qualified Data.Maybe as Maybe import qualified Miso -- | Ripple configuration data Confi...
null
https://raw.githubusercontent.com/developandplay/material-components-web-miso/97a20097bf522b62743c884b66757eb895edd690/sample-app-jsaddle/Material/Ripple.hs
haskell
# LANGUAGE OverloadedStrings # | Ripple configuration | Default ripple configuration | Specify a ripple effect's color | Specify additional attributes | Ripple effect's color | Primary variant of a ripple effect's color | Accent variant of a ripple effect's color | Bounded ripple view function | Unbounded ripp...
module Material.Ripple ( Config, config, setColor, setAttributes, bounded, unbounded, Color, primary, accent, ) where import qualified Data.Map as Map import qualified Data.Maybe as Maybe import qualified Miso data Config msg = Config { color :: Maybe Color, additionalAttrib...
c3e4f4c2b49b21f5472a2528717a0d31613ae60e9ba8207a07dc742065fb093d
clojure/tools.analyzer.js
validate.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clojure/tools.analyzer.js/f0dbadd26393b6bb0d8b64f5f0f6891384228696/src/main/clojure/clojure/tools/analyzer/passes/js/validate.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns clojure.tools.analyzer.passes.js.validate (:require [clojure.tools.analyzer.ast :refer [prewalk]] [clojure.tools.analyzer.passes.cleanup :refer [cleanup]] [clojure.tools.analyzer.passes.js.infer-tag :refer [infer-tag]] [cloj...
5de0ac3676cecf2dd37219ed1dc66169c8166d2dcaed9e1059e0b1abba072347
kitten-lang/kitten
Interact.hs
{-# LANGUAGE OverloadedStrings #-} module Interact ( run ) where import Control.Exception (catch) import Control.Monad.IO.Class (liftIO) import Data.IORef (IORef, newIORef, readIORef, writeIORef) import Data.List (isPrefixOf, partition, sort, stripPrefix) import Data.Maybe (fromJust) import Data.Monoid import Dat...
null
https://raw.githubusercontent.com/kitten-lang/kitten/4a760b3d144702e39214347cfd8aa3899b34c10b/src/Interact.hs
haskell
# LANGUAGE OverloadedStrings # Commands with arguments. Kitten code. Each entry gets its own definition in the dictionary, so it can be executed individually, and later conveniently referred to. TODO: Avoid stringly typing. Checking that the main definition is able to operate on an empty stack is the same as ver...
module Interact ( run ) where import Control.Exception (catch) import Control.Monad.IO.Class (liftIO) import Data.IORef (IORef, newIORef, readIORef, writeIORef) import Data.List (isPrefixOf, partition, sort, stripPrefix) import Data.Maybe (fromJust) import Data.Monoid import Data.Text (Text) import Kitten (runKit...
eead4bd1f45464e9f88c4263fd28c33165d170bc923b394787074cdc2c9d3055
basho/riak_cs
riak_cs_mp_utils.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/src/riak_cs_mp_utils.erl
erlang
--------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permiss...
Copyright ( c ) 2007 - 2013 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 ...
544e4aa68259112ee56388ae1d825d9059507a1364350483b1bf8ec569d6723c
nirum-lang/nirum
PythonSpec.hs
# LANGUAGE OverloadedLists # # LANGUAGE ScopedTypeVariables # module Nirum.Targets.PythonSpec where import qualified Data.Map.Strict as M import Data.Either import System.FilePath ((</>)) import Test.Hspec.Meta import Nirum.Constructs.Annotation hiding (null) import Nirum.Constructs.Annotation.Internal import Nirum.C...
null
https://raw.githubusercontent.com/nirum-lang/nirum/4d4488b0524874abc6e693479a5cc70c961bad33/test/Nirum/Targets/PythonSpec.hs
haskell
# LANGUAGE OverloadedLists # # LANGUAGE ScopedTypeVariables # module Nirum.Targets.PythonSpec where import qualified Data.Map.Strict as M import Data.Either import System.FilePath ((</>)) import Test.Hspec.Meta import Nirum.Constructs.Annotation hiding (null) import Nirum.Constructs.Annotation.Internal import Nirum.C...
be90735ff824e54a9c31c0dda2b47ea85a31cfd38d49d6dd9cce520456d7aad8
haroldcarr/learn-haskell-coq-ml-etc
RLPItem.hs
module RLPItem (Item(String, List), encode, decode) where import PPrelude import Control.Error import Data.Attoparsec.ByteString as A import Data.Bits import qualified Data.ByteString as BS data Item = String ByteString | List [Item] deriving (...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/playpen/blockchain/ben-kirwin-merkle/src/RLPItem.hs
haskell
module RLPItem (Item(String, List), encode, decode) where import PPrelude import Control.Error import Data.Attoparsec.ByteString as A import Data.Bits import qualified Data.ByteString as BS data Item = String ByteString | List [Item] deriving (...
5c4771d9c440f2aac0a6f3cb547e6428a3dbb7eb53f7f0660b1327e4f8bdfba8
zkincaid/duet
ai.ml
(** Abstract interpretation utilities, and an interface to APRON for numerical domains *) open Core open Srk open Apron type abstract_domain = Box | Octagon | Polyhedron magic is an uninhabited type that is used as a parameter to and Manager.t . We always coerce managers and abstract values to their mag...
null
https://raw.githubusercontent.com/zkincaid/duet/eb3dbfe6c51d5e1a11cb39ab8f70584aaaa309f9/duet/ai.ml
ocaml
* Abstract interpretation utilities, and an interface to APRON for numerical domains Default abstract domain Constants Look up an access path in an abstract value Compute a common environment for the abstract values x and y, and then apply the function f to the numerical abstract values for x and y in ...
open Core open Srk open Apron type abstract_domain = Box | Octagon | Polyhedron magic is an uninhabited type that is used as a parameter to and Manager.t . We always coerce managers and abstract values to their magical counterparts so that the type stays the same even if the abstract domain change...
f512e9650b86be4e67afd1371cfb615ddea6f9eaaf0253b3ffc82eaeb8d4c8c0
haskus/haskus-system
Main.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE BangPatterns #-} # LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE DataKinds # # LANGUAGE BlockArguments #...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system-examples/src/test/Main.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # onEvent (graphicCardChan card) <| \ev -> do select highest mode set mode and connectors let gamma = (gamma',gamma',gamma') setControllerGamma ctrl gamma ga <- getControllerGamma ctrl frame switch switch to another thread show FPS shutdown the comp...
# LANGUAGE TemplateHaskell # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE LambdaCase # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE DataKinds # # LANGUAGE BlockArguments # import Haskus.System import Haskus.System.Linux.FileSystem.Dir...
4b38b2ae980afd147622c75950209c3ac90ba368ca7c077b39b7791b16f35337
mzp/coq-ruby
tacticals.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/tactics/tacticals.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i Tacticals i.e. functions from t...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : tacticals.mli 117...
38c21da19768c658c1d419b6b0395282e508f3fe85e61ef5b547c45d41e940ad
chenyukang/eopl
21.scm
(load-relative "../libs/init.scm") (load-relative "./base/classes/test.scm") (load-relative "./base/classes/store.scm") (load-relative "./base/classes/data-structures.scm") (load-relative "./base/classes/environments.scm") (load-relative "./base/classes/lang.scm") (load-relative "./base/classes/interp.scm") (load-relat...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/ch9/21.scm
scheme
use hash-table for method-env find-method : Sym * Sym -> Method merge-method-envs : MethodEnv * MethodEnv -> MethodEnv method-decls->method-env : Listof(MethodDecl) * ClassName * Listof(FieldName) -> MethodEnv just use hash-table? initialize-class-decl! : ClassDecl -> Unspecified
(load-relative "../libs/init.scm") (load-relative "./base/classes/test.scm") (load-relative "./base/classes/store.scm") (load-relative "./base/classes/data-structures.scm") (load-relative "./base/classes/environments.scm") (load-relative "./base/classes/lang.scm") (load-relative "./base/classes/interp.scm") (load-relat...
279c320c1ddf2f7d49be7998d5a711eb17e40d603c940faf22d6a6770495fc35
mayconamaro/ringell
Spec.hs
import Generation () import Generator import Test.QuickCheck import Test.HUnit import Parsing (allUnitTests) main :: IO () main = do runTestTT allUnitTests quickCheck (withMaxSuccess 100 propWellTyped) quickCheck (withMaxSuccess 100 propSemPreservation)
null
https://raw.githubusercontent.com/mayconamaro/ringell/4bca3d89188d775f1089575552588630710276b2/Compiler%20first%20version/test/Spec.hs
haskell
import Generation () import Generator import Test.QuickCheck import Test.HUnit import Parsing (allUnitTests) main :: IO () main = do runTestTT allUnitTests quickCheck (withMaxSuccess 100 propWellTyped) quickCheck (withMaxSuccess 100 propSemPreservation)
9e48ff3157a6f55b76987b1ad99096cb220477502198c75fecf0a7b2986bc101
Ferada/cl-mock
mock.lisp
-*- mode : lisp ; syntax : common - lisp ; coding : utf-8 - unix ; package : cl - mock - tests ; -*- (in-package #:cl-mock-tests) (in-suite cl-mock) (def-test call-with-mocks.empty () (is (eq T (with-mocks () T)))) (def-test call-with-mocks.discards-values () (is (equal '(1 2 3) (multiple-value...
null
https://raw.githubusercontent.com/Ferada/cl-mock/01762fda96718fefd3745ce4a20a4013a865b109/tests/mock.lisp
lisp
syntax : common - lisp ; coding : utf-8 - unix ; package : cl - mock - tests ; -*- utility function to check asynchronous results
(in-package #:cl-mock-tests) (in-suite cl-mock) (def-test call-with-mocks.empty () (is (eq T (with-mocks () T)))) (def-test call-with-mocks.discards-values () (is (equal '(1 2 3) (multiple-value-list (with-mocks () (values 1 2 3)))))) (declaim (notinline foo/simple)) (defun foo...
0caa2906654483cc0edb0d5b94fca86dac35767a44925bed0bc39787ee5e6bf7
ygmpkk/house
Parse.hs
| A parser for the Xtract command - language . ( The string input is -- tokenised internally by the lexer 'lexXtract'.) -- See <> for the grammar that -- is accepted. Because the original Xtract grammar was left - recursive , we have -- transformed it into a non-left-recursive form. module Text.XML.HaX...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/HaXml/src/Text/XML/HaXml/Xtract/Parse.hs
haskell
tokenised internally by the lexer 'lexXtract'.) See <> for the grammar that is accepted. transformed it into a non-left-recursive form. -- Auxiliary Parsing Functions ---- original Xtract grammar ---- -- transformed grammar ( removing left recursion ) current context also current context root contex...
| A parser for the Xtract command - language . ( The string input is Because the original Xtract grammar was left - recursive , we have module Text.XML.HaXml.Xtract.Parse (parseXtract) where #ifdef __NHC__ import NonStdTrace (trace) #endif import Text.ParserCombinators.HuttonMeijerWallace hiding (bracket,els...
20b3cb4ef2dfa018effa420ad87909f1cfca8f9a91c6c4f4dad79e2656a9c6d4
mbouaziz/jsx
myPervasives.ml
include LambdaJS.Prelude let (&) f x = f x let (|>) x f = f x let (@>) f g x = g (f x) module Char = struct include Char let is_alpha = function | 'a'..'z' | 'A'..'Z' -> true | _ -> false end module List = struct include List let assoc_opt x l = try Some (assoc x l) with | Not_found -> None ...
null
https://raw.githubusercontent.com/mbouaziz/jsx/b70768890e9e2d52e189d1a96f1a73c59a572a0f/myPervasives.ml
ocaml
fold_left but with fold_right syntax
include LambdaJS.Prelude let (&) f x = f x let (|>) x f = f x let (@>) f g x = g (f x) module Char = struct include Char let is_alpha = function | 'a'..'z' | 'A'..'Z' -> true | _ -> false end module List = struct include List let assoc_opt x l = try Some (assoc x l) with | Not_found -> None ...
80d3ce5dc4de547576c78a6e9abe3fbf621e0fb9f2d992a02e5ed65e024fbeef
jahfer/othello
server.clj
(ns plaintext.server (:use [org.httpkit.server :only [run-server]]) (:require [clojure.java.io :as io] [compojure.core :refer [ANY GET PUT POST DELETE defroutes]] [compojure.route :refer [resources]] [ring.middleware.defaults :refer [wrap-defaults site-defaults]] [rin...
null
https://raw.githubusercontent.com/jahfer/othello/443fc3aae65a6d7ebd8f5943279f029a091edf4c/examples/plaintext/src/clj/plaintext/server.clj
clojure
(ns plaintext.server (:use [org.httpkit.server :only [run-server]]) (:require [clojure.java.io :as io] [compojure.core :refer [ANY GET PUT POST DELETE defroutes]] [compojure.route :refer [resources]] [ring.middleware.defaults :refer [wrap-defaults site-defaults]] [rin...
65675ff5e32a24f74402ebfbd3e15172a9ebc1ae5b0d0c3d37d1bce5067ba380
gvannest/piscine_OCaml
Card.ml
module Color = struct type t = Spade | Heart | Diamond | Club let all = [Spade ; Heart ; Diamond ; Club] let toString (color:t) = match color with | Spade -> "S" | Heart -> "H" | Diamond -> "D" | Club -> "C" let toStringVerbose (color:t) = match color with | S...
null
https://raw.githubusercontent.com/gvannest/piscine_OCaml/2533c6152cfb46c637d48a6d0718f7c7262b3ba6/d04/ex02/Card.ml
ocaml
module Color = struct type t = Spade | Heart | Diamond | Club let all = [Spade ; Heart ; Diamond ; Club] let toString (color:t) = match color with | Spade -> "S" | Heart -> "H" | Diamond -> "D" | Club -> "C" let toStringVerbose (color:t) = match color with | S...
e54c5a2f06174483edd8ea6e52362bd6014e2b24d229fe3c10330e0ba23dfb94
tweag/inline-java
Unsafe.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | Low - level bindings to the Java Native Interface ( JNI ) . -- -- Read the -- < JNI spec> -- for authoritative...
null
https://raw.githubusercontent.com/tweag/inline-java/a2daaa3cfc5cb172b6334bf5904d1a57025e709a/jni/src/common/Foreign/JNI/Unsafe.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # Read the < JNI spec> for authoritative documentation as to what each of the functions in this module does. The names of the bindings in this module were chosen to type @JNIEnv *@. If the current OS thread has not yet been "attached" to the The 'String'...
# LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | Low - level bindings to the Java Native Interface ( JNI ) . match the names of the functions in the JNI spec . All bindings in this module access the JNI via a thread - loca...
e7299b9389248ebc662a9550663b241476d983dcfeddcec09acf72e22317333d
coq/coq
globEnv.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/110921a449fcb830ec2a1cd07e3acc32319feae6/pretyping/globEnv.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
0b3f198f91538d49dc3d3ea9504dd9c2662cedc5f72b3a284ef71a6b4aee1a2e
carl-eastlund/mischief
stylish.rkt
#lang mischief (provide stylish-test-suite) (require rackunit (for-syntax mischief)) (module+ test (require rackunit/text-ui) (void (run-tests stylish-test-suite))) (module+ main (require rackunit/gui) (test/gui stylish-test-suite #:wait? #true)) (define-syntax (test stx) (syntax-parse stx [(_ actual...
null
https://raw.githubusercontent.com/carl-eastlund/mischief/ce58c3170240f12297e2f98475f53c9514225825/mischief/tests/stylish.rkt
racket
#lang mischief (provide stylish-test-suite) (require rackunit (for-syntax mischief)) (module+ test (require rackunit/text-ui) (void (run-tests stylish-test-suite))) (module+ main (require rackunit/gui) (test/gui stylish-test-suite #:wait? #true)) (define-syntax (test stx) (syntax-parse stx [(_ actual...
e0548ac0953b357435fdbc7fc9c58d4e238f89af531fe1827a26084abc5bfb1b
evincarofautumn/kitten
Enter.hs
| Module : Kitten . Enter Description : Inserting entries into the dictionary Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.Enter Description : Inserting entries into the dictionary Copyright : (c) Jon Purdy, 2...
null
https://raw.githubusercontent.com/evincarofautumn/kitten/a5301fe24dbb9ea91974abee73ad544156ee4722/lib/Kitten/Enter.hs
haskell
# LANGUAGE OverloadedStrings # | Enters a program fragment into a dictionary. TODO: Link constructors to parent type. We enter declarations of all traits and intrinsics. Then declare all permissions. With everything type-level declared, we can resolve type signatures. And declare regular words. Then resolve thei...
| Module : Kitten . Enter Description : Inserting entries into the dictionary Copyright : ( c ) , 2016 License : MIT Maintainer : Stability : experimental Portability : GHC Module : Kitten.Enter Description : Inserting entries into the dictionary Copyright : (c) Jon Purdy, 2...
02a6331ce30096dbba348cc2935a534f2150997124228b7a5d61cd9d441f031f
robstewart57/rdf4h
OWL.hs
# LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signatures # module Data.RDF.Vocabulary.OWL where import qualified Data.RDF.Namespace (mkPrefixedNS) import qualified Data.RDF.Types (unode) import Data.RDF.Vocabulary.Generator.VocabularyGenerator (genVocabulary) import qualif...
null
https://raw.githubusercontent.com/robstewart57/rdf4h/22538a916ec35ad1c46f9946ca66efed24d95c75/src/Data/RDF/Vocabulary/OWL.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - signatures # module Data.RDF.Vocabulary.OWL where import qualified Data.RDF.Namespace (mkPrefixedNS) import qualified Data.RDF.Types (unode) import Data.RDF.Vocabulary.Generator.VocabularyGenerator (genVocabulary) import qualif...
5c31a032d90059883be31a8a128297f0a5a4eb7487cc5a46ea1e8122e04b3673
mariari/Misc-Lisp-Scripts
sort.lisp
(ql:quickload 'trivia) (use-package 'trivia) (defun heap-sort (a &optional (func #'<) (count (length a))) "Heap sort, pass a function (#'< or #'>) to sort the final array default is max at end" (macrolet ((ref (i) `(aref a ,i)) (swap (i j) `(rotatef (ref ,i) (ref ,j))) (ref< (i j) `(funca...
null
https://raw.githubusercontent.com/mariari/Misc-Lisp-Scripts/acecadc75fcbe15e6b97e084d179aacdbbde06a8/sort.lisp
lisp
---------------------------------------------------- (test-worst 'list) (defun my-merge-sort (sequence) (labels (merge-them)) sequence ; MERGE is a standard common - lisp function , which does just ;; what we want. (merge-them (subseq sequence 0 half)))))
(ql:quickload 'trivia) (use-package 'trivia) (defun heap-sort (a &optional (func #'<) (count (length a))) "Heap sort, pass a function (#'< or #'>) to sort the final array default is max at end" (macrolet ((ref (i) `(aref a ,i)) (swap (i j) `(rotatef (ref ,i) (ref ,j))) (ref< (i j) `(funca...
d767bbee37c2e4f0167402a71a6224fe15b2c5a050b4c878be853b4aa6d25c81
dancrumb/clojure-brave-and-true
core_test.clj
(ns clojure-brave-and-true.core-test (:require [clojure.test :refer :all] [clojure-brave-and-true.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/dancrumb/clojure-brave-and-true/6ae47dcfc3274b6751156f54c486b0732d0e5edc/test/clojure_brave_and_true/core_test.clj
clojure
(ns clojure-brave-and-true.core-test (:require [clojure.test :refer :all] [clojure-brave-and-true.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
a93757906a0fa1a9f591ea4f6a6b4d840875f928d6df341b047267cfcc1dff16
janestreet/async_smtp
server_plugin_intf.ml
open Core open Async open Async_smtp_types module type State = T module type Start_tls = sig type session * [ upgrade_to_tls ] is called when initiating an upgrade to TLS . [ Session.greeting ] will be called to send a suitable greeting after the upgrade . [Session.greeting] will be called to send a ...
null
https://raw.githubusercontent.com/janestreet/async_smtp/f900fa3f028725539f1336900b5631d2522fc154/src/server_plugin_intf.ml
ocaml
* [greeting] to send to clients after the connection has been accepted. * [extensions] that are supported including the associated implementations. It is assumed that this will only change after [connect], [helo] and [Start_tls.upgrade_to_tls]. * [disconnect] is called when an SMTP connection is closed. I...
open Core open Async open Async_smtp_types module type State = T module type Start_tls = sig type session * [ upgrade_to_tls ] is called when initiating an upgrade to TLS . [ Session.greeting ] will be called to send a suitable greeting after the upgrade . [Session.greeting] will be called to send a ...
3d8cea1fea2f19556cbd8ba92d33bd837db77a77a50790791e16664e21556cf9
tomgr/libcspm
Names.hs
# LANGUAGE DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances # TypeSynonymInstances #-} | Names used by the evaluator . This is heavily inspired by GHC . module CSPM.Syntax.Names ( -- * Data Types OccName(..), UnRenamedName(..), Name(..), NameType(..),...
null
https://raw.githubusercontent.com/tomgr/libcspm/24d1b41954191a16e3b5e388e35f5ba0915d671e/src/CSPM/Syntax/Names.hs
haskell
* Data Types * Construction Helpers * Utility Functions | A name that occurs in the source code somewhere. | A name that has not yet been renamed. Created by the parser. | A renamed name and is the exclusive type used after the renamer. Names code: @ @ This will be renamed to: @ @ | The type of this na...
# LANGUAGE DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances # TypeSynonymInstances #-} | Names used by the evaluator . This is heavily inspired by GHC . module CSPM.Syntax.Names ( OccName(..), UnRenamedName(..), Name(..), NameType(..), mkExternalName,...
faf11391ec156090d6f2eca2e8937ba81497672895024b381127fe612747fb8b
oliyh/re-graph
core.cljc
(ns re-graph.core (:require [re-frame.core :as re-frame] [re-graph.internals :as internals :refer [interceptors]] [re-graph.logging :as log] [clojure.string :as string] [clojure.spec.alpha :as s] [re-graph.spec :as spec])) ;; queries and mutati...
null
https://raw.githubusercontent.com/oliyh/re-graph/250f2ebd0eb68752e96bd524c2ee86b1e93e0887/src/re_graph/core.cljc
clojure
queries and mutations duplicate in-flight mutation prepend `query` if it is omitted (and not a fragment declaration) duplicate in-flight query subscriptions duplicate subscription re-graph lifecycle
(ns re-graph.core (:require [re-frame.core :as re-frame] [re-graph.internals :as internals :refer [interceptors]] [re-graph.logging :as log] [clojure.string :as string] [clojure.spec.alpha :as s] [re-graph.spec :as spec])) (re-frame/reg-event-...
eef16b870834e2b7b3e09de8239ecd188cc00f4c39b08d4febd1677b29e2e575
footprintanalytics/footprint-web
premium_features_test.clj
(ns metabase.public-settings.premium-features-test (:require [cheshire.core :as json] [clj-http.client :as http] [clj-http.fake :as http-fake] [clojure.test :refer :all] [metabase.config :as config] [metabase.models.user :refer [User]] [metabase.public-settings :as public-settings] [metabase.p...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/public_settings/premium_features_test.clj
clojure
`metabase-enterprise.test` in `metabase.test` as well *if* EE code is available audit app will be enabled for body, but no other premium features throw an ex-info here for bug reports to come in +----------------------------------------------------------------------------------------------------------------+ +---...
(ns metabase.public-settings.premium-features-test (:require [cheshire.core :as json] [clj-http.client :as http] [clj-http.fake :as http-fake] [clojure.test :refer :all] [metabase.config :as config] [metabase.models.user :refer [User]] [metabase.public-settings :as public-settings] [metabase.p...
6236579ab29f84827a9c1fa1554ff61ec3163a6cfddead5125c0735bdd07a345
pallet/pallet-aws
s3.clj
(ns pallet.blobstore.s3 "Amazon s3 provider for pallet" (:require [clojure.java.io :refer [input-stream]] [clojure.string :as string] [com.palletops.awaze.s3 :as s3] [com.palletops.aws.api :as aws] [pallet.blobstore :as blobstor] [pallet.blobstore.implementation :as implementation] [pallet.comp...
null
https://raw.githubusercontent.com/pallet/pallet-aws/6f650ca93c853f8a574ad36875f4d164e46e8e8d/src/pallet/blobstore/s3.clj
clojure
(ns pallet.blobstore.s3 "Amazon s3 provider for pallet" (:require [clojure.java.io :refer [input-stream]] [clojure.string :as string] [com.palletops.awaze.s3 :as s3] [com.palletops.aws.api :as aws] [pallet.blobstore :as blobstor] [pallet.blobstore.implementation :as implementation] [pallet.comp...
fb702e5e7f5b0c6f68e9a0f823d3fca230565a4e4621c1de7d50268ba2acd5e5
s-expressionists/Cleavir
staple.ext.lisp
(in-package #:cleavir-documentation-generation) (defmethod staple:page-type ((sys (eql (asdf:find-system :cleavir-bir-transformations)))) 'cleavir-page)
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/b211c882e075867b0e18f5ccfc8d38a021df7eb8/BIR-transformations/staple.ext.lisp
lisp
(in-package #:cleavir-documentation-generation) (defmethod staple:page-type ((sys (eql (asdf:find-system :cleavir-bir-transformations)))) 'cleavir-page)
f6dbb322a8e0a56e43f83aaf96e52daff1a0558fda08caac341e2483f77192fb
malcolmsparks/up
nrepl.clj
Copyright © 2013 , . All Rights Reserved . ;; ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; ;; By using this software in any fashion, you are agreeing to be bound by...
null
https://raw.githubusercontent.com/malcolmsparks/up/4ce578f60f6d60661d32965026bf3c2a854a0d52/up-nrepl/src/up/nrepl.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Copyright © 2013 , . All Rights Reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns up.nrepl (:require [clojure.tools.nrepl.server :refer (start-server stop-server default-handler)]) (:import (up.start Lifecycle))) (defrecord NReplService [pctx] Lifecycle (start [_] {:pre [(number? (-> pctx :o...
3f9da2e7b88833b06f29726ac0438ef821dbd93c1aa53fdd9e54b427bc6ccd00
TerrorJack/ghc-alter
encodingerror001.hs
import System.IO import System.IO.Error import Text.Printf import Control.Monad main = do hSetEncoding stdout latin1 forM [NoBuffering, LineBuffering, BlockBuffering Nothing, BlockBuffering (Just 3), BlockBuffering (Just 9), BlockBuffering (Just 32)] $ \b -> do hSetBuff...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/IO/encodingerror001.hs
haskell
nothing gets written we should write at least the 'H' we should write at least the "Hello "
import System.IO import System.IO.Error import Text.Printf import Control.Monad main = do hSetEncoding stdout latin1 forM [NoBuffering, LineBuffering, BlockBuffering Nothing, BlockBuffering (Just 3), BlockBuffering (Just 9), BlockBuffering (Just 32)] $ \b -> do hSetBuff...
13ef26b038e582b8c3f889d55f749057a627e5927d270b86b0643032ba1bef00
Commonfare-net/secrets
webpage.clj
;; Secrets part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 - 2017 Dyne.org foundation designed , written and maintained by < > ;; This program is free software: you can redistribute it and/or modify i...
null
https://raw.githubusercontent.com/Commonfare-net/secrets/74d2a71da540cb14fa2158c45a5692e3bfa5090c/src/secrets/webpage.clj
clojure
Secrets This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero ...
part of Decentralized Citizen Engagement Technologies ( D - CENT ) R&D funded by the European Commission ( FP7 / CAPS 610349 ) Copyright ( C ) 2015 - 2017 Dyne.org foundation designed , written and maintained by < > it under the terms of the GNU Affero General Public License as published by the Fr...
9147cd654e82cd2d29f15616c6b819d4894292fad2c74e0d09dbcd819b495d7c
racket/web-server
dir.rkt
#lang racket/base (require web-server/servlet) (provide (all-defined-out)) (define interface-version 'v1) (define timeout +inf.0) (define (start initial-request) (send/back (response/xexpr `(html (head (title "Current Directory Page")) (body (h1 "Current Directory Page") (p "...
null
https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-lib/web-server/default-web-root/htdocs/servlets/examples/dir.rkt
racket
#lang racket/base (require web-server/servlet) (provide (all-defined-out)) (define interface-version 'v1) (define timeout +inf.0) (define (start initial-request) (send/back (response/xexpr `(html (head (title "Current Directory Page")) (body (h1 "Current Directory Page") (p "...
9bc40d1645a2ae17635bc55bcb8193bb154cc69bd395c4c837bde44b185d9cac
buildsome/buildsome
Meddling.hs
{-# LANGUAGE DeriveDataTypeable #-} module Buildsome.Meddling ( ThirdPartyMeddlingError(..), assertFileMTime, assertSameMTime ) where import Prelude.Compat hiding (FilePath) import Control.Monad import Data.Typeable (Typeable) import Lib.FileDesc (fileStatDescOfStat) import Lib.FilePath (FilePath) import qualifie...
null
https://raw.githubusercontent.com/buildsome/buildsome/479b92bb74a474a5f0c3292b79202cc850bd8653/src/Buildsome/Meddling.hs
haskell
# LANGUAGE DeriveDataTypeable #
module Buildsome.Meddling ( ThirdPartyMeddlingError(..), assertFileMTime, assertSameMTime ) where import Prelude.Compat hiding (FilePath) import Control.Monad import Data.Typeable (Typeable) import Lib.FileDesc (fileStatDescOfStat) import Lib.FilePath (FilePath) import qualified Control.Exception as E import qual...