_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
db4adb5bd1c451ba4f0a6a868e7196c84f88ec16a41438e9293357be7852b388
eugeneia/athens
md5.lisp
;;;; This file implements The MD5 Message-Digest Algorithm, as defined in RFC 1321 by , published April 1992 . ;;;; It was originally written by , with copious input from the cmucl - help mailing - list hosted at cons.org , in November 2001 and has been placed into the public domain . In the meantime ;;;...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/md5-20180228-git/md5.lisp
lisp
This file implements The MD5 Message-Digest Algorithm, as defined in various fixes and improvements for other implementations as well WARNING: The MD5 Message-Digest Algorithm has been compromised as a cryptographically secure hash for some time, with known theoretical and practical attacks. Therefore use of th...
RFC 1321 by , published April 1992 . It was originally written by , with copious input from the cmucl - help mailing - list hosted at cons.org , in November 2001 and has been placed into the public domain . In the meantime as maintenance have been provided by , Dejneka , , , , , and ,...
030b5465a0d185a9f145db205acc1466ca6708acf642b953fba4b550870e4524
softlab-ntua/bencherl
scheduling_one_initial_non_terminating_actor_test.erl
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca 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 ) a...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/sim-diasca/src/core/src/scheduling/tests/scheduling_one_initial_non_terminating_actor_test.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the If not, see </>. Overall unit test of the Sim-Diasca actor scheduling. still alive. For all facilities common to all tests: ...
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Sim - Diasca is distributed in the hope tha...
4646a3e4f61275ec5096d84c44bb6043f9bd547cbc6847fe26230fef83e9916a
Feldspar/raw-feldspar
Selection.hs
# LANGUAGE CPP # -- | Data structure for describing selections of values module Data.Selection ( Selection , includes , selectBy , empty , universal , select , union , intersection , difference , allExcept ) where -- | Selection: description of a set of values data Selection a = Selection (a ...
null
https://raw.githubusercontent.com/Feldspar/raw-feldspar/84664bc5b2becf68c78b0c4ff3ebc491cd1b7714/src/Data/Selection.hs
haskell
| Data structure for describing selections of values | Selection: description of a set of values | @ `mempty` = `empty` `mappend` = `union` @ | Check whether a value is included in a selection | Select the values that fulfill a predicate | Empty selection | Select all values | Union of selections | Inters...
# LANGUAGE CPP # module Data.Selection ( Selection , includes , selectBy , empty , universal , select , union , intersection , difference , allExcept ) where data Selection a = Selection (a -> Bool) #if MIN_VERSION_base(4,11,0) instance Semigroup (Selection a) where (<>) = union #endif...
fcf08e6cef86a466bc2e4b1bbd1c1fa294e369e0a32373ab68c8bcfe5f9409b8
dparis/gen-phzr
frame_data.cljs
(ns phzr.impl.accessors.frame-data) (def frame-data-get-properties {:total "total"}) (def frame-data-set-properties {})
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/impl/accessors/frame_data.cljs
clojure
(ns phzr.impl.accessors.frame-data) (def frame-data-get-properties {:total "total"}) (def frame-data-set-properties {})
12628c4ae57a97d6420ee4410952c92bb9b0c9f192427d576c99520641b7e837
ghcjs/ghcjs
numsparks001.hs
import GHC.Conc main = do let x = length [1..100] numSparks >>= print x `par` numSparks >>= print x `par` numSparks >>= print x `par` numSparks >>= print x `par` numSparks >>= print
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/concurrent/numsparks001.hs
haskell
import GHC.Conc main = do let x = length [1..100] numSparks >>= print x `par` numSparks >>= print x `par` numSparks >>= print x `par` numSparks >>= print x `par` numSparks >>= print
c47de041ea7df680a4f946ed5ff9f05474e3a6021a1da472da0a2cc34d1aed34
sky-big/RabbitMQ
rabbit_table.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/src/rabbit_table.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. schema表:Mnesia系...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
b4e0238482ac5c9fb7b959dd36f5f616e8bdf147fb4c6afa2f5bccfbeee780be
FreeProving/free-compiler
Syntax.hs
-- | This module exports the syntax constructs for the lifted IR representation. module FreeC.LiftedIR.Syntax ( module FreeC.LiftedIR.Syntax.Expr , module FreeC.LiftedIR.Syntax.Name , module FreeC.LiftedIR.Syntax.Type ) where import FreeC.LiftedIR.Syntax.Expr import FreeC.LiftedIR.Syntax.Na...
null
https://raw.githubusercontent.com/FreeProving/free-compiler/6931b9ca652a185a92dd824373f092823aea4ea9/src/lib/FreeC/LiftedIR/Syntax.hs
haskell
| This module exports the syntax constructs for the lifted IR representation.
module FreeC.LiftedIR.Syntax ( module FreeC.LiftedIR.Syntax.Expr , module FreeC.LiftedIR.Syntax.Name , module FreeC.LiftedIR.Syntax.Type ) where import FreeC.LiftedIR.Syntax.Expr import FreeC.LiftedIR.Syntax.Name import FreeC.LiftedIR.Syntax.Type
5def819cd0cf5b2d6615ebeedae0337a7dc6de3deed5c4c4297ba6df2432d131
richmit/mjrcalc
tst-mat.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; @file @author < > ;; @brief Unit Tests.@EOL ;; @...
null
https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/tst-mat.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @brief Unit Tests.@EOL @std Common Lisp @see use-mat.lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: and/o...
@file @author < > @parblock Copyright ( c ) 1995 - 2010,2013,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in binary form must reproduce the ab...
573036ea2c15d43cd024de6efddd1d01875713f9104fc72f9799a48ec946206d
sile/ppg
ppg_sup.erl
Copyright ( c ) 2016 , < > %% This software is released under the MIT License . %% See the LICENSE file in the project root for full license information. %% %% @doc Root Supervisor @private -module(ppg_sup). -behaviour(supervisor). %%---------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/sile/ppg/2bf2a6ddb0b21f4661eeb22b04cf5e1ad44f7af9/src/ppg_sup.erl
erlang
See the LICENSE file in the project root for full license information. @doc Root Supervisor ---------------------------------------------------------------------------------------------------------------------- Exported API -------------------------------------------------------------------------------------------...
Copyright ( c ) 2016 , < > This software is released under the MIT License . @private -module(ppg_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -spec start_link() -> {ok, pid()} | {error, Reason::term()}. start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). ...
1d434876137ebc5d0dfa6b42bfbad419d5d02b05948cb88ea7d19c3694bbcb31
leo-project/leo_object_storage
leo_object_storage_haystack.erl
%%====================================================================== %% %% Leo Object Storage %% Copyright ( c ) 2012 - 2017 Rakuten , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obt...
null
https://raw.githubusercontent.com/leo-project/leo_object_storage/139a3d8f174e334aaf54f4e53d2f4fb8db04fc83/src/leo_object_storage_haystack.erl
erlang
====================================================================== Leo Object Storage 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 langu...
Copyright ( c ) 2012 - 2017 Rakuten , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY Leo Object Storage - Haystack . ...
ddf1d5a4d665992eec0bcedf355ba3282eea2028ec8abe077ff50a66bbfee8e9
harpocrates/inline-rust
TH.hs
module Language.Rust.Inline.TH ( adtCtx, rustTyCtx, mkStorable, mkTupleStorable ) where import Language.Rust.Inline.TH.Utilities ( getTyConOpt, getTyCon ) import Language.Rust.Inline.TH.ReprC import Language.Rust.Inline.TH.Storable ( mkStorable, mkTupleStorable ) import Language.Rust.Inline.Context import Language.R...
null
https://raw.githubusercontent.com/harpocrates/inline-rust/5ecff8c92526000e5fc358a2dfede9b60ef59a1a/src/Language/Rust/Inline/TH.hs
haskell
^ how many generic parameters ^ impl's of @MarshalInto@ Filter out incorrect path types Look up generic args recursively Compute the intermediate #[repr(C)] rust type (if we even need one) Compute the Haskell type Filter out incorrect type constructors Look up parameters recursively Compute the Rust type | TO...
module Language.Rust.Inline.TH ( adtCtx, rustTyCtx, mkStorable, mkTupleStorable ) where import Language.Rust.Inline.TH.Utilities ( getTyConOpt, getTyCon ) import Language.Rust.Inline.TH.ReprC import Language.Rust.Inline.TH.Storable ( mkStorable, mkTupleStorable ) import Language.Rust.Inline.Context import Language.R...
b2a712b452d43a8524bcbb6673069d3ec8c5f6a6f8fb64a278e9971645eb1b9c
bcc32/projecteuler-ocaml
debug_printing.mli
open! Core open! Import module Export : sig (** When true, enable debugging and progress printing in various places in solutions. Enabled by setting the [EULER_DEBUG] environment variable to a non-empty string. *) val debug : bool (** When [debug] is true, [debug_timing here f x] prints the ...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/d67aca3a9017bec6443aa46d6e24cd9e6d83b65b/sol/lib/debug_printing.mli
ocaml
* When true, enable debugging and progress printing in various places in solutions. Enabled by setting the [EULER_DEBUG] environment variable to a non-empty string. * When [debug] is true, [debug_timing here f x] prints the elapsed time taken to evaluate (f x) and returns the result.
open! Core open! Import module Export : sig val debug : bool val debug_timing : Source_code_position.t -> string -> (unit -> 'a) -> 'a end
a35d30abfe4aa90c0f8612f56a46157415703797aadc2fefd2fb9108894e93e3
rudymatela/speculate
plus-abs-ineq.hs
import QuickSpec main = quickSpec signature { maxTermSize = Just 9 Just 5 , maxTests = Just 500 , constants = [ constant "0" (0 :: Int) , constant "1" (1 :: Int) , constant "True" (True :: Bool) , constant "+" ((+) :: Int -> Int -> Int) , constant "id" (id :: Int -> In...
null
https://raw.githubusercontent.com/rudymatela/speculate/8ec39747d03033db4349d554467d4b78bb72935d/bench/qs2/plus-abs-ineq.hs
haskell
import QuickSpec main = quickSpec signature { maxTermSize = Just 9 Just 5 , maxTests = Just 500 , constants = [ constant "0" (0 :: Int) , constant "1" (1 :: Int) , constant "True" (True :: Bool) , constant "+" ((+) :: Int -> Int -> Int) , constant "id" (id :: Int -> In...
c10ef33b19f654082da5808b950c294d5fbae0731b6a093e95804f72c0b1c054
zhming0/mock-clj
project.clj
(defproject mock-clj "0.2.1" :description "A minimalist & non-invasive API for mocking in Clojure" :url "-clj" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :repl-options {:init-ns mock-clj.core})
null
https://raw.githubusercontent.com/zhming0/mock-clj/fc3ac83faf39c80458a3abf11ce6146d2352df0f/project.clj
clojure
(defproject mock-clj "0.2.1" :description "A minimalist & non-invasive API for mocking in Clojure" :url "-clj" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :repl-options {:init-ns mock-clj.core})
95a7269362c88f2357eb25ef4dc25f580a26a939d0709c9b0a3e7a5e09840322
SamB/coq
scheme.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/contrib/extraction/scheme.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i s Production of Scheme synt...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Na...
6facf3527d1672b7fd2a4060d3e5ba2e44759ba54e4aa8e03d758df6e1f0d5e0
gree/haskell-test-sandbox
Sandbox.hs
# LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Test.Hspec.Sandbox ( with ) where import Test.Sandbox.Internals import qualified Test.Hspec.Core.Spec as Hspec import qualified Test.Hspec as Hspec with :: SandboxStateRef -> Hspec.SpecWith SandboxStateRef -> Hsp...
null
https://raw.githubusercontent.com/gree/haskell-test-sandbox/3d1593ec44d1e804d71a9a3ef8b1eeafcfafefbb/hspec-test-sandbox/src/Test/Hspec/Sandbox.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Test.Hspec.Sandbox ( with ) where import Test.Sandbox.Internals import qualified Test.Hspec.Core.Spec as Hspec import qualified Test.Hspec as Hspec with :: SandboxStateRef -> Hspec.SpecWith SandboxStateRef -> Hsp...
ac23fd0ef065cdb4e7d11123a89767bd7d20fccc0a194c7bfb872a9b1946372c
johnlawrenceaspden/hobby-code
namespaces.clj
(create-ns 'test) (count (ns-map 'test)) (count (ns-interns 'test)) (for [x (ns-map 'test)] (format "%s: %s\n" (first x) (rest x))) (for [x (ns-interns 'test)] (format "%s: %s\n" (first x) (rest x))) (in-ns 'test) (clojure.core/defn three [] 3) (in-ns 'user) (count (ns-map 'test)) (count (ns-interns 'test)) (for [x (...
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/namespaces.clj
clojure
(create-ns 'test) (count (ns-map 'test)) (count (ns-interns 'test)) (for [x (ns-map 'test)] (format "%s: %s\n" (first x) (rest x))) (for [x (ns-interns 'test)] (format "%s: %s\n" (first x) (rest x))) (in-ns 'test) (clojure.core/defn three [] 3) (in-ns 'user) (count (ns-map 'test)) (count (ns-interns 'test)) (for [x (...
0280c116f7b77314ef9626caa89fe5ad6d83c73c8107d36aaab232a82a05dec2
cognitect-labs/aws-api
credentials.clj
Copyright ( c ) Cognitect , Inc. ;; All rights reserved. (ns cognitect.aws.credentials "Contains credentials providers and helpers for discovering credentials. Alpha. Subject to change." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [clojure.string :as str] ...
null
https://raw.githubusercontent.com/cognitect-labs/aws-api/7352ec647ff19f6a14cbbfc5e581c48a8183ebf1/src/cognitect/aws/credentials.clj
clojure
All rights reserved. Credentials subsystem Providers java sdk v1
Copyright ( c ) Cognitect , Inc. (ns cognitect.aws.credentials "Contains credentials providers and helpers for discovering credentials. Alpha. Subject to change." (:require [clojure.java.io :as io] [clojure.tools.logging :as log] [clojure.string :as str] [cognitect.aws.util...
801ef9b4700962cc61f179996025e067bff55a1a57eaadd3ae2469f4bbaff001
jguhlin/ODG
miscellaneous.clj
(ns odg.miscellaneous (:require clojure.java.io clojure.string [odg.db :as db] [odg.batch :as batch] [odg.util :as util])) ; TargetP specific filter (defn- -is-data [line] (let [after (clojure.string/split line #"\s+")] (if (and (not= (first after) "N...
null
https://raw.githubusercontent.com/jguhlin/ODG/c8a09f273c278ba7b3acbd37155477979f8b4851/src/odg/miscellaneous.clj
clojure
TargetP specific filter incomplete [config options [filename]]
(ns odg.miscellaneous (:require clojure.java.io clojure.string [odg.db :as db] [odg.batch :as batch] [odg.util :as util])) (defn- -is-data [line] (let [after (clojure.string/split line #"\s+")] (if (and (not= (first after) "Name") (= (count ...
d930fa7fc4279bed03500c51e4314f65c0315763fa4c41462d28b2a6bd81313f
lpsmith/postgresql-simple
PQResultUtils.hs
# LANGUAGE CPP # ------------------------------------------------------------------------------ -- | -- Module: Database.PostgreSQL.Simple.Internal.PQResultUtils Copyright : ( c ) 2011 MailRank , Inc. ( c ) 2011 - 2012 License : BSD3 Maintainer : < > -- Stability: experimen...
null
https://raw.githubusercontent.com/lpsmith/postgresql-simple/ce9def5019c2a6f8b93d3e3478587f33993bba56/src/Database/PostgreSQL/Simple/Internal/PQResultUtils.hs
haskell
---------------------------------------------------------------------------- | Module: Database.PostgreSQL.Simple.Internal.PQResultUtils Stability: experimental ---------------------------------------------------------------------------- # INLINE forM' #
# LANGUAGE CPP # Copyright : ( c ) 2011 MailRank , Inc. ( c ) 2011 - 2012 License : BSD3 Maintainer : < > module Database.PostgreSQL.Simple.Internal.PQResultUtils ( finishQueryWith , getRowWith ) where import Control.Exception as E import Data.By...
fd535b371c9661287927f3dc39e0ca8c8c6d5c9a673a64fe68f8232b5d2976c5
locusmath/locus
object_system.clj
(ns locus.algebra.category.system.object-system (:require [locus.set.logic.core.set :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.copresheaf.structure.core.protocols :refer :all] [locus.alge...
null
https://raw.githubusercontent.com/locusmath/locus/b232579217be4e39458410893827a84d744168e4/src/clojure/locus/algebra/category/system/object_system.clj
clojure
Let C be a category, and Ob(C) its set of objects. Then the power set P(Ob(C)) the theory of ideals and filters of lattices.
(ns locus.algebra.category.system.object-system (:require [locus.set.logic.core.set :refer :all] [locus.set.mapping.general.core.object :refer :all] [locus.set.logic.structure.protocols :refer :all] [locus.set.copresheaf.structure.core.protocols :refer :all] [locus.alge...
a08fdf7c615f766666c8c8d5410fa65968d2fa2474f012e05e78c51d9372282b
quil-lang/qvm
state-representation.lisp
(in-package #:qvm) This file implements pure and density matrix states for the QVM . ;;; General Overview This file implements classes to represent two different types of ;;; quantum states: pure states and density matrix states. These ;;; states support the application of QUIL gates, superoperators, and ;;; noi...
null
https://raw.githubusercontent.com/quil-lang/qvm/de95ead6e7df70a1f8e0212455a802bd0cef201c/src/state-representation.lisp
lisp
General Overview quantum states: pure states and density matrix states. These states support the application of QUIL gates, superoperators, and noisy quantum channels. channels to the state. TEMPORARY-STATE, which is used as an intermediate placeholder for MATRIX-VIEW which is displaced to the STATE-ELEMENTS. T...
(in-package #:qvm) This file implements pure and density matrix states for the QVM . This file implements classes to represent two different types of A PURE - STATE of n qubits is represented as a length 2^n vector of AMPLITUDES . The PURE - STATE object also contains a % TRIAL - AMPLITUDES slot , which i...
adaf8b0f1afc1751a3d29d6a3412396374ce024f6c4ae04693036b499bf2eee5
mirage/ocaml-git
lwt_backend.mli
open Sigs module Scheduler : SCHED with type +'a s = 'a Lwt.t module Flow : module type of Unixiz.Make (Mimic) val lwt : Scheduler.t scheduler val lwt_io : (Flow.t, Flow.error, Scheduler.t) flow val lwt_fail : exn -> ('a, Scheduler.t) io
null
https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/test/smart/lwt_backend.mli
ocaml
open Sigs module Scheduler : SCHED with type +'a s = 'a Lwt.t module Flow : module type of Unixiz.Make (Mimic) val lwt : Scheduler.t scheduler val lwt_io : (Flow.t, Flow.error, Scheduler.t) flow val lwt_fail : exn -> ('a, Scheduler.t) io
bd712941695a43c7b5913797322120a1ff7eb76f8375256bb5b83dfab0aa7462
haroldcarr/learn-haskell-coq-ml-etc
Ch00_Tests.hs
# OPTIONS_GHC -fno - warn - unused - do - bind # module Ch00_Tests where import Ch05_02_rank_n_types import Ch05_03_universal_quantification import Ch05_04_existential_quantification import Ch05_05_phantom_types import Ch05_06_gadt import Ch05_07_typecase import Ch05_08_dynamic_types_01 main = do runTests_Ch05_02 ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/book/2015-Haskell_Design_Patterns/src/Ch00_Tests.hs
haskell
# OPTIONS_GHC -fno - warn - unused - do - bind # module Ch00_Tests where import Ch05_02_rank_n_types import Ch05_03_universal_quantification import Ch05_04_existential_quantification import Ch05_05_phantom_types import Ch05_06_gadt import Ch05_07_typecase import Ch05_08_dynamic_types_01 main = do runTests_Ch05_02 ...
f865b93b3c306119303bcb16f47f9789cb0d2469b0f6e6e8c8fe0d26781bda70
avsm/platform
opamDarcs.mli
(**************************************************************************) (* *) Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/repository/opamDarcs.mli
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special module VCS: OpamVCS.VCS module B: OpamRepositoryBackend.S
d632f8091c6973dff8d94bb7c003a845d2fe5c9f16a96dd975944e9ffbd77220
emiflake/Advent-of-Code-2019
Solution.hs
# LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE BlockArguments # # LANGUAGE ViewPatterns # # LANGUAGE LambdaCase # module Solution where import qualified Data.Text as T import Common import Test.Hspec import Control.Monad.Writer import q...
null
https://raw.githubusercontent.com/emiflake/Advent-of-Code-2019/f48328c223ea51288523cb616f8e7a01a603b223/Day22/haskell/src/Solution.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE BlockArguments # # LANGUAGE ViewPatterns # # LANGUAGE LambdaCase # module Solution where import qualified Data.Text as T import Common import Test.Hspec import Control.Monad.Writer import q...
4460805263253f9f40994313314dbf5f1bf3f9631b8caf85558680ebd7ff0804
smucclaw/dsl
Lib.hs
# LANGUAGE TupleSections # {-# LANGUAGE MultiWayIf #-} module Explainable.Lib where import qualified Data.Map as Map import Control.Monad.IO.Class (MonadIO(..)) import Text.Megaparsec ( choice, some, Parsec, MonadParsec(try) ) import Text.Megaparsec.Char ( numberChar ) import Text.PrettyPrint.Boxes ( Box, nullBox ) i...
null
https://raw.githubusercontent.com/smucclaw/dsl/bd7db2c2c5b979d2c952ab922effc946d26a05ee/lib/haskell/explainable/src/Explainable/Lib.hs
haskell
# LANGUAGE MultiWayIf # we'll do the mathlang parser using control.onad.combinators.expr later. * Set up some ExplainableIO computations offset losses
# LANGUAGE TupleSections # module Explainable.Lib where import qualified Data.Map as Map import Control.Monad.IO.Class (MonadIO(..)) import Text.Megaparsec ( choice, some, Parsec, MonadParsec(try) ) import Text.Megaparsec.Char ( numberChar ) import Text.PrettyPrint.Boxes ( Box, nullBox ) import qualified Text.PrettyP...
2dd6c31307de9c7fb178b227f239602e5792f6425aece71029d20eb8671d1b5d
faylang/fay
Defined.hs
-- | Functions for the 'Defined' type. module Data.Defined where import FFI -- | Convert from defined to maybe. fromDefined :: Defined a -> Maybe a fromDefined (Defined x) = Just x fromDefined Undefined = Nothing -- | Convert from maybe to defined. toDefined :: Maybe a -> Defined a toDefined (Just x) = Defined x to...
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/fay-base/src/Data/Defined.hs
haskell
| Functions for the 'Defined' type. | Convert from defined to maybe. | Convert from maybe to defined.
module Data.Defined where import FFI fromDefined :: Defined a -> Maybe a fromDefined (Defined x) = Just x fromDefined Undefined = Nothing toDefined :: Maybe a -> Defined a toDefined (Just x) = Defined x toDefined Nothing = Undefined
36e81814261c36231ef3e620c29d9ac3f0d09684ce7d58060a2bd0b20cd1ab36
bob-cd/bob
util.clj
; Copyright 2018- Rahul De ; Use of this source code is governed by an MIT - style ; license that can be found in the LICENSE file or at ; . (ns apiserver.util (:require [aero.core :as aero] [apiserver.system] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.test :as t] [common.system...
null
https://raw.githubusercontent.com/bob-cd/bob/e3de6aaeecf62a8e6f907da76773943b259b66b6/apiserver/test/apiserver/util.clj
clojure
Copyright 2018- Rahul De license that can be found in the LICENSE file or at .
Use of this source code is governed by an MIT - style (ns apiserver.util (:require [aero.core :as aero] [apiserver.system] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.test :as t] [common.system :as cs] [integrant.core :as ig] [next.jdbc :as jdbc])) (defn with-system [tes...
954b5be41317d06a554d21a4363d37624ed18f0bb2770fdee08815d6a685e1ff
portkey-cloud/edn-to-cfn
iam.clj
(ns portkey.cloudformation.iam "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.iam/user [___19567__auto__] (clojure.spec.alpha/keys :req [:port...
null
https://raw.githubusercontent.com/portkey-cloud/edn-to-cfn/7a3d247d35b7c4988c9b55634d03a008b87a2449/src/portkey/cloudformation/iam.clj
clojure
(ns portkey.cloudformation.iam "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.iam/user [___19567__auto__] (clojure.spec.alpha/keys :req [:port...
dc8c12b53c60d79cf0d20e8798efb917a3bbad709d7ee6988568af1b9720cedd
lambdabot/IOSpec
Types.hs
# LANGUAGE OverlappingInstances , TypeOperators , FlexibleInstances # -- | This module contains the basic data types underlying the ' IOSpec ' library . Most of the types and classes in this module -- are described in -- </~W.Swierstra/Publications/DataTypesALaCarte.pdf> module Test.IOSpec.Types ( * The ' IOSpec ...
null
https://raw.githubusercontent.com/lambdabot/IOSpec/76235f77942ab7672f70fca4b9e133ef667606a4/src/Test/IOSpec/Types.hs
haskell
| This module contains the basic data types underlying the are described in </~W.Swierstra/Publications/DataTypesALaCarte.pdf> * Coproducts of functors | The coproduct of functors | The (:<:) class
# LANGUAGE OverlappingInstances , TypeOperators , FlexibleInstances # ' IOSpec ' library . Most of the types and classes in this module module Test.IOSpec.Types ( * The ' IOSpec ' type . IOSpec(..) , foldIOSpec , (:+:)(..) * Injections from one functor to another , (:<:) , inject ) where import C...
53957038a1a4b2222a8a7275b1259cdae3bbc22ebc151b957439336b8402b5c6
jwiegley/notes
Exio4.hs
# LANGUAGE FlexibleInstances , GADTs , OverloadedStrings # import GHC.Exts data Param a where Str :: String -> Param String Flt :: Float -> Param Float instance (a ~ String) => IsString (Param a) where fromString = Str instance (a ~ Float) => Num (Param a) where fromInteger = Flt . fromInteger ...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/Exio4.hs
haskell
and other instances following the same patterns..
# LANGUAGE FlexibleInstances , GADTs , OverloadedStrings # import GHC.Exts data Param a where Str :: String -> Param String Flt :: Float -> Param Float instance (a ~ String) => IsString (Param a) where fromString = Str instance (a ~ Float) => Num (Param a) where fromInteger = Flt . fromInteger ...
60c2be84a6a500542ddcd65d2888082ffd96f9ab40f618ec7d237d551682f2d9
YoshikuniJujo/test_haskell
try-surface-source.hs
# LANGUAGE BlockArguments # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # # OPTIONS_GHC -Wall -fno - warn - tabs # module Main where import Data.ImageData import System.Environment import Trial.TryCairo import Trial.MakePng import Trial.ReadPng main :: IO () main = do [fp] <- getArgs maybe (putStrLn "bad im...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/7f68ddfa73bef2b28a648117aad72df185a10019/themes/gui/cairo/try-image-data/app/try-surface-source.hs
haskell
# LANGUAGE BlockArguments # # LANGUAGE TypeApplications # # LANGUAGE DataKinds # # OPTIONS_GHC -Wall -fno - warn - tabs # module Main where import Data.ImageData import System.Environment import Trial.TryCairo import Trial.MakePng import Trial.ReadPng main :: IO () main = do [fp] <- getArgs maybe (putStrLn "bad im...
6b8dfe5ceb5e4179c2e0e6cbedeff77505d97ec092705e6a203d80255a17c4c0
ermine/sulci
ru_time.ml
let expand_time_proc cause years months days hours minutes seconds = (if years = 0 then "" else Printf.sprintf "%d %s " years (match years with | x when x >=5 && x <= 20 -> "лет" | x when x mod 10 = 1 -> "год" | x when x mod 10 = 2 -> "года" | x when x mod 10 = 3 -> "го...
null
https://raw.githubusercontent.com/ermine/sulci/3ee4bd609b01e2093a6d37bf74579728d0a93b70/lang/ru_time.ml
ocaml
let expand_time_proc cause years months days hours minutes seconds = (if years = 0 then "" else Printf.sprintf "%d %s " years (match years with | x when x >=5 && x <= 20 -> "лет" | x when x mod 10 = 1 -> "год" | x when x mod 10 = 2 -> "года" | x when x mod 10 = 3 -> "го...
8a3bce5ca38425f7675a9806792b08b66f81fb82589a583f203ce5ea0fe78f5f
oscaro/eq
core.cljs
(ns eq.core (:require [clojure.string :as cs] [cljs.reader :as edn] [cljs.pprint :as pprint] [cljs.nodejs :as node] [eq.io :refer [file-lines]])) (node/enable-util-print!) ; allows (println ..) to print to console.log (def fs (js/require "fs")) (defn ->selector "Bu...
null
https://raw.githubusercontent.com/oscaro/eq/9766e4b882795bc65fd0647abb955a3053f4c36b/src/eq/core.cljs
clojure
allows (println ..) to print to console.log "", "." -> identity ":foo" -> :foo ":foo.bar" -> :foo.bar ".foo.bar" -> (-> :foo :bar) identity hacky way to avoid double-newlines sends node's process.argv to -main
(ns eq.core (:require [clojure.string :as cs] [cljs.reader :as edn] [cljs.pprint :as pprint] [cljs.nodejs :as node] [eq.io :refer [file-lines]])) (def fs (js/require "fs")) (defn ->selector "Build an eq selector to be used by eq/select." [expr] (cond (or (n...
304c205c4d99d21a280c0e954a17bdbcb7b4080ddcfb31759953bc6ae4330d21
circuithub/rel8
Column.hs
# language DataKinds # # language StandaloneKindSignatures # {-# language TypeFamilies #-} module Rel8.Column ( Column , TColumn ) where -- base import Data.Kind ( Type ) import Prelude () -- rel8 import Rel8.FCF ( Eval, Exp ) import qualified Rel8.Schema.Kind as K import Rel8.Schema.Result ( Result ) | Th...
null
https://raw.githubusercontent.com/circuithub/rel8/f47423ec17c36f441bab4c0cbb2036dc8aecacbd/src/Rel8/Column.hs
haskell
# language TypeFamilies # base rel8 'Rel8able' definitions), and @a@ is the type of the column.
# language DataKinds # # language StandaloneKindSignatures # module Rel8.Column ( Column , TColumn ) where import Data.Kind ( Type ) import Prelude () import Rel8.FCF ( Eval, Exp ) import qualified Rel8.Schema.Kind as K import Rel8.Schema.Result ( Result ) | This type family is used to specify columns in '...
06b1bf6e8541700b95146c4ca9e98f7a885497a0590cf689df25e96bb957337b
cljfx/cljfx
e26_tooltips.clj
(ns e26-tooltips (:require [cljfx.api :as fx] [cljfx.ext.node :as fx.ext.node]) (:import [javafx.scene.input ScrollEvent])) ;; Hover over circle, observe tooltip indicating radius, scroll to change it ;; Note that this tooltip configuration only needed for non-control tooltips, because ;; controls have...
null
https://raw.githubusercontent.com/cljfx/cljfx/ec3c34e619b2408026b9f2e2ff8665bebf70bf56/examples/e26_tooltips.clj
clojure
Hover over circle, observe tooltip indicating radius, scroll to change it Note that this tooltip configuration only needed for non-control tooltips, because controls have `:tooltip` prop which makes it easier to specify tooltips for them jdk 11 only
(ns e26-tooltips (:require [cljfx.api :as fx] [cljfx.ext.node :as fx.ext.node]) (:import [javafx.scene.input ScrollEvent])) (def *radius (atom 20)) (defn- circle-view [{:keys [radius]}] {:fx/type fx.ext.node/with-tooltip-props :props {:tooltip {:fx/type :tooltip : show - duration [ 1 : h ] ...
edb237165e2e6f22acfc8935de18d4fee49c94b6f422a24002b26fe902b67284
ghcjs/ghcjs-dom
OESVertexArrayObject.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.OESVertexArrayObject (js_createVertexArrayOES, createVertexArrayOES, createVert...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/OESVertexArrayObject.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.OESVertexArrayObject (js_createVertexArrayOES, createVertexArrayOES, createVertexArrayOES_, js_deleteVertexArrayOES, deleteVertexArrayOES, js_isVertexArrayOES, isVertexAr...
dad9997f7ccf66ba5e1c70b4194d338ec91026b93db22235454b1ccb730cd8db
faber-lang/faber
Errors.hs
module Errors where data Error = MatchFail deriving (Show, Eq) message :: Error -> String message MatchFail = "pattern match failed."
null
https://raw.githubusercontent.com/faber-lang/faber/d022f52b22f209f1f10609949495b689e886c75f/src/Errors.hs
haskell
module Errors where data Error = MatchFail deriving (Show, Eq) message :: Error -> String message MatchFail = "pattern match failed."
d53fff3ef609eaed9d5bc7e81f606f47586065b4041d578ab54c59bec6d1a032
SKS-Keyserver/sks-keyserver
heap.mli
(***********************************************************************) heap.mli - Simple heap implementation , adapted from CLR (* *) Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 201...
null
https://raw.githubusercontent.com/SKS-Keyserver/sks-keyserver/a4e5267d817cddbdfee13d07a7fb38a9b94b3eee/heap.mli
ocaml
********************************************************************* redistribute it and/or modify it under the terms of the GNU General ...
heap.mli - Simple heap implementation , adapted from CLR Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 , 2011 , 2012 , 2013 and Contributors This file is part of SKS . SKS is free software ; you can Public License as published ...
ec84cbaa4b45aa038e61a64b0d397281be0ebcc53d16b41855e115d091e28c4e
kevinmershon/copy-trader
user.clj
(ns user) (defn dev [] (println "Enter (go) to start")) (defn go [] (require 'copy-trader.console) (in-ns 'copy-trader.console) (eval '(go)) (println "Running. Use (halt) to stop.")) (dev)
null
https://raw.githubusercontent.com/kevinmershon/copy-trader/9947e34092d6bf5eca74737dd63a7c0c4b07e824/src/dev/user.clj
clojure
(ns user) (defn dev [] (println "Enter (go) to start")) (defn go [] (require 'copy-trader.console) (in-ns 'copy-trader.console) (eval '(go)) (println "Running. Use (halt) to stop.")) (dev)
263379dbcf8db697b54de1a95537d258bc19f34121afee232321f480fc075dfd
Helium4Haskell/helium
Overlap4.hs
main :: Int -> () main 1 = () main 2 = () main 1 = () main _ = () main 3 = ()
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/staticwarnings/Overlap4.hs
haskell
main :: Int -> () main 1 = () main 2 = () main 1 = () main _ = () main 3 = ()
f1f22687e9ffb33861a6e99e4c942b056444bb7208156145c7eee480cff3de14
owlbarn/actor
actor_peer_sgd1.ml
* Actor - Parallel & Distributed Engine of Owl System * Copyright ( c ) 2016 - 2018 < > * Actor - Parallel & Distributed Engine of Owl System * Copyright (c) 2016-2018 Liang Wang <> *) Distributed Stochastic Gradient open Owl open Actor_types module MX = Mat module P2P = Actor_peer (* variables ...
null
https://raw.githubusercontent.com/owlbarn/actor/878f4588f4ee235994bbc4e77648858bb562bdd2/lib/actor_peer_sgd1.ml
ocaml
variables used in distributed sgd prepare data, model, gradient, loss register schedule, push, pull functions start running the ps
* Actor - Parallel & Distributed Engine of Owl System * Copyright ( c ) 2016 - 2018 < > * Actor - Parallel & Distributed Engine of Owl System * Copyright (c) 2016-2018 Liang Wang <> *) Distributed Stochastic Gradient open Owl open Actor_types module MX = Mat module P2P = Actor_peer let data_x = ...
8392d56a1b5777332f8da7bcca9eccbb1dc7aa436b19ca2a0ecf1ea2fd9aaeb5
rudymatela/leancheck
stats.hs
Copyright ( c ) 2017 - 2020 . -- Distributed under the 3-Clause BSD licence (see the file LICENSE). import Test import System.Exit (exitFailure) import Test . -- already exported by Test import Test.LeanCheck.Stats import Data.List (elemIndices) import Data.Function (on) main :: IO () main = do putStrLn "...
null
https://raw.githubusercontent.com/rudymatela/leancheck/af299d3616a362816c21931ada6fa49a2af7f911/test/stats.hs
haskell
Distributed under the 3-Clause BSD licence (see the file LICENSE). already exported by Test
Copyright ( c ) 2017 - 2020 . import Test import System.Exit (exitFailure) import Test.LeanCheck.Stats import Data.List (elemIndices) import Data.Function (on) main :: IO () main = do putStrLn "sum :: [Int] -> Bool" classStats 100 (sum :: [Int] -> Int) putStrLn "length :: [Int] -> Int" classStats ...
938c34ce1fb3034084af1691d8c3261a9e663aeaa67da6ba2d536e349f9f949a
yuriy-chumak/ol
parser.scm
(define-library (file parser) (export (exports (owl parse)) uint16 uint32 ; string float) (import (otus lisp) (owl parse)) (begin (define uint16 (let-parse* ( (a0 byte) (a1 byte)) (+ a0 (<< a1 8)))) (define uint32 (let-parse* ( ...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/04b0aa29bac724b31d2ebe76312d2f66e9c249a9/libraries/file/parser.scm
scheme
string
(define-library (file parser) (export (exports (owl parse)) uint16 uint32 float) (import (otus lisp) (owl parse)) (begin (define uint16 (let-parse* ( (a0 byte) (a1 byte)) (+ a0 (<< a1 8)))) (define uint32 (let-parse* ( (a0 ...
ef89cd2f7dcf364dc27815deee05d4dbb0b13c5876589b46dbc5852e59a4046a
kind2-mc/kind2
var.mli
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/c601470eb68af9bd3b88828b04dbcdbd6bd6bbf5/src/terms/var.mli
ocaml
* {1 Types and hash-consing} * Comparison function on variables * Equality function on variables * Hashing function on variables * Hash table over variables * Set over variables * Map over variables * {1 Constructors} * Return a constant state variable. The state variable must be constant. * Return an ins...
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
54a461fe805f88f7c4e96b408f466215609cc573f29cdd754ee117b4fb36f2ad
RichiH/git-annex
Distribution.hs
Data type for a distribution of git - annex - - Copyright 2013 , 2017 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2013, 2017 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Types.Distribution where import Utility.PartialPrelude import Util...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Types/Distribution.hs
haskell
Data type for a distribution of git - annex - - Copyright 2013 , 2017 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2013, 2017 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Types.Distribution where import Utility.PartialPrelude import Util...
530b5fe8127a5f6c91889b20e7972ead61ad0b5045d5121a30bc7312c9c3454e
quil-lang/magicl
constants.lisp
;;;; constants.lisp ;;;; Author : (in-package #:magicl-tests) (alexandria:define-constant +magicl-types+ '(single-float double-float (complex single-float) (complex double-float) (signed-byte 32)) :test #'equal) (alexandria:define-constant +magicl-float-types+ '(single-float double-floa...
null
https://raw.githubusercontent.com/quil-lang/magicl/45eae6e60329e8312496d25f1abfbf15274f4c89/tests/constants.lisp
lisp
constants.lisp
Author : (in-package #:magicl-tests) (alexandria:define-constant +magicl-types+ '(single-float double-float (complex single-float) (complex double-float) (signed-byte 32)) :test #'equal) (alexandria:define-constant +magicl-float-types+ '(single-float double-float (complex single-flo...
a16234800a2ec505694b246cbc4cbe19058bd0bf26c9ad359984ccf680d1a510
pjotrp/guix
image.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2015 < > Copyright © 2014 , 2015 < > Copyright © 2014 , 2015 < > Copyright © 2014 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free ...
null
https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/gnu/packages/image.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2015 < > Copyright © 2014 , 2015 < > Copyright © 2014 , 2015 < > Copyright © 2014 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU ...
9e2eac9d5be622f9e1b5dfb45753e67091c45b5118bf004af9c19c097f976e8d
ksrky/Plato
Pretty.hs
module Plato.Test.Core.Pretty where import Plato.Core.Context import Plato.Core.Pretty import Plato.Transl.PsToTyp import Plato.Transl.SrcToPs import Plato.Transl.TypToCore import Plato.Types.Monad import Control.Exception.Safe import Control.Monad.IO.Class import qualified Data.Text.IO as T import Prettyprinter impo...
null
https://raw.githubusercontent.com/ksrky/Plato/02b1a043efa92cf2093ff7d721a607d8abe9d876/test/Plato/Test/Core/Pretty.hs
haskell
module Plato.Test.Core.Pretty where import Plato.Core.Context import Plato.Core.Pretty import Plato.Transl.PsToTyp import Plato.Transl.SrcToPs import Plato.Transl.TypToCore import Plato.Types.Monad import Control.Exception.Safe import Control.Monad.IO.Class import qualified Data.Text.IO as T import Prettyprinter impo...
9cc11421199d0ff8f8013ef15019b163c1a24fe2a6c18d3f7aaf49920474207a
tfausak/patrol
PatrolSpec.hs
module PatrolSpec where import qualified Patrol.ClientSpec import qualified Patrol.ConstantSpec import qualified Patrol.Extra.AesonSpec import qualified Patrol.Extra.ListSpec import qualified Patrol.Type.AppContextSpec import qualified Patrol.Type.AppleDebugImageSpec import qualified Patrol.Type.BreadcrumbSpec import ...
null
https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/test-suite/PatrolSpec.hs
haskell
module PatrolSpec where import qualified Patrol.ClientSpec import qualified Patrol.ConstantSpec import qualified Patrol.Extra.AesonSpec import qualified Patrol.Extra.ListSpec import qualified Patrol.Type.AppContextSpec import qualified Patrol.Type.AppleDebugImageSpec import qualified Patrol.Type.BreadcrumbSpec import ...
2c945371abd568f3c66d5ba386150a386d7cc9c322171a232d4981a155be13fa
penpot/penpot
presence.cljs
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) KALEIDOS INC (ns app.main.ui.workspace.presence (:require [app.config :as cfg] [app.main.refs :as refs] [rumext....
null
https://raw.githubusercontent.com/penpot/penpot/41d5a490d47be67cd4d01cdfca77304eb6a19cd3/frontend/src/app/main/ui/workspace/presence.cljs
clojure
Copyright (c) KALEIDOS INC
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 /. (ns app.main.ui.workspace.presence (:require [app.config :as cfg] [app.main.refs :as refs] [rumext.v2 :as mf])) --- SESSION (mf...
ce529388c6707e310d0340317e0f9e5f1da3a9c3cda4ffb4a63452aecf245972
ChrisTitusTech/gimphelp
210_contrast_change-shadow-highlights.scm
; 210_contrast_change-contrast.scm last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 ;================================================== ; ; Installation: ; This script should be placed in the user or system-wide script folder. ; ; Windows 7/10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts ...
null
https://raw.githubusercontent.com/ChrisTitusTech/gimphelp/fdbc7e3671ce6bd74cefd83ecf7216e5ee0f1542/gimp_scripts-2.10/210_contrast_change-shadow-highlights.scm
scheme
210_contrast_change-contrast.scm ================================================== Installation: This script should be placed in the user or system-wide script folder. Windows 7/10 or Linux /home/yourname/.config/GIMP/2.10/scripts or Linux system-wide /usr/share/gimp/2.0/scripts =================...
last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts C:\Users\YOUR - NAME\AppData\Roaming\GIMP\2.10\scripts it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Lice...
138dd3e83571010687c840ed85507b2c67e6dffa210e62e6b5b04c4baf3e592b
expipiplus1/vulkan
VK_EXT_validation_cache.hs
{-# language CPP #-} -- | = Name -- VK_EXT_validation_cache - device extension -- = = VK_EXT_validation_cache -- -- [__Name String__] -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 161 -- -- [__Revision__] 1 -- -- [__Extension and Version Dependencies__...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Extensions/VK_EXT_validation_cache.hs
haskell
# language CPP # | = Name [__Name String__] [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] [__Contact__] == Other Extension Metadata [__Last Modified Date__] [__IP Status__] No known IP claims. [__Contrib...
VK_EXT_validation_cache - device extension = = VK_EXT_validation_cache 161 1 - Requires support for Vulkan 1.0 - < -Docs/issues/new?body=[VK_EXT_validation_cache ] @cdwfs%0A*Here describe the issue or question you have about the VK_EXT_validation_cache extension * > ...
37dcc3cd0bb717396f6b880e22156a9447333268549ce7dfa71505061dc90426
maxlapshin/parsexml
parsexml_SUITE.erl
-module(parsexml_SUITE). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). all() -> [{group, parsexml}]. groups() -> [{parsexml, [parallel], [ parse1, parse2, parse3 ]}]. parse1(_) -> ?assertEqual({<<"html">>, [], []}, parsexml:parse(<<"<?xml version=\"1.0\" encoding=\"utf-8\"?>...
null
https://raw.githubusercontent.com/maxlapshin/parsexml/6910cae5bd25fe00edf7dec4ee44e1e2bc08b505/test/parsexml_SUITE.erl
erlang
-module(parsexml_SUITE). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). all() -> [{group, parsexml}]. groups() -> [{parsexml, [parallel], [ parse1, parse2, parse3 ]}]. parse1(_) -> ?assertEqual({<<"html">>, [], []}, parsexml:parse(<<"<?xml version=\"1.0\" encoding=\"utf-8\"?>...
2962694228cff69b675d30f1dff4870ca878f1af91274d75387ecd6bbd0d331e
otto-de-legacy/oscillator
page.clj
(ns de.otto.oscillator.view.page (:require [compojure.core :as compojure] [de.otto.oscillator.view.layout :as layout] [de.otto.oscillator.view.component :as vc] [clojure.data.json :as json])) (def build-in-pages [{:url "/detail" :heading "" :type :detail}]) (defn...
null
https://raw.githubusercontent.com/otto-de-legacy/oscillator/c1ddf409a70cb91329f0039b95c7bc12289922e2/src/de/otto/oscillator/view/page.clj
clojure
(ns de.otto.oscillator.view.page (:require [compojure.core :as compojure] [de.otto.oscillator.view.layout :as layout] [de.otto.oscillator.view.component :as vc] [clojure.data.json :as json])) (def build-in-pages [{:url "/detail" :heading "" :type :detail}]) (defn...
6c1966ea25e6132f33f9233f738cfb6f387edc63d28332bc9e85bbc2d6d6b806
uw-unsat/leanette-popl22-artifact
filterWedgeProp.rkt
#lang rosette (require (file "therapyControl-symbolic/db.rkt")) (require (file "therapyControl-symbolic/arith.rkt")) (require (file "therapyControl-symbolic/explanations.rkt")) (require (file "therapyControl-symbolic/tracing.rkt")) (require (file "therapyControl-symbolic/model-completion.rkt")) (current-bitwidth 5) ...
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-4/neutrons/filterWedgeProp.rkt
racket
CYCWatchdogAOKCalc processes periodically. Every time it does, This isn't exactly that property, but it's close. When turntable motion is enabled, the therapy sum interlock should be 0. if any of these fail. For that to work, they must all be >= 0. This is our central result about the beam turning off when any ext...
#lang rosette (require (file "therapyControl-symbolic/db.rkt")) (require (file "therapyControl-symbolic/arith.rkt")) (require (file "therapyControl-symbolic/explanations.rkt")) (require (file "therapyControl-symbolic/tracing.rkt")) (require (file "therapyControl-symbolic/model-completion.rkt")) (current-bitwidth 5) ...
a2f58bf6cc86ca5a1b39e7c26ced7b1c62c128500a86eae514731962661d2bb8
metaocaml/ber-metaocaml
mltest.ml
(* TEST include unix flags += "-strict-sequence -safe-string -w A -warn-error A" * windows-unicode ** toplevel *) let foreign_names = List.sort compare [ "simple"; "\xE4\xBD\xA0\xE5\xA5\xBD"; (* "你好" *) " sœur " "e\204\129te\204\129"; (* "été" *) ] ;; let test_files = List.map (fun s -...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/win-unicode/mltest.ml
ocaml
TEST include unix flags += "-strict-sequence -safe-string -w A -warn-error A" * windows-unicode ** toplevel "你好" "été" "骆驼" "اونٹ" "ఒంటె" "وشتر" "اٺ" let env0 = List.sort compare (List.mapi (fun i v -> Printf.sprintf "OCAML_UTF8_VAR%d=%s" i v) foreign_names2) let read_all ic...
let foreign_names = List.sort compare [ "simple"; " sœur " ] ;; let test_files = List.map (fun s -> s ^ ".txt") foreign_names ;; let to_create_and_delete_files = [ " верблюды " "\xD0\xB2\xD0\xB5\xD1\x80\xD0\xB1\xD0\xBB\xD1\x8E\xD0\xB4\xD1\x8B"; " " " đà " "\224\174\146\224\174\1...
812f2b99a2dd92800f992fa0970857ce90faf60de03defdb125c7523ff2c50b5
futurice/haskell-mega-repo
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import Data.Aeson import Data.Char (isAlphaNum) import Futurice.EnvConfig (getConfig) import Futurice.Prelude import Prelude () import Text.PrettyPrint.ANSI.Leijen.AnsiPretty (linebreak, putDoc) impor...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/95fe8e33ad6426eb6e52a9c23db4aeffd443b3e5/okta-client/cli/Main.hs
haskell
# LANGUAGE OverloadedStrings # if it's not valid JSON, but looks like an identifier ----------------------------------------------------------------------------- putPretty -----------------------------------------------------------------------------
module Main (main) where import Data.Aeson import Data.Char (isAlphaNum) import Futurice.EnvConfig (getConfig) import Futurice.Prelude import Prelude () import Text.PrettyPrint.ANSI.Leijen.AnsiPretty (linebreak, putDoc) import Okta.Eval import Okta.Request imp...
0e3562e1ed4cfc2b22bcda2250a9d40d94fc0fe8dfc751b40b4227805ec71610
nasa/Common-Metadata-Repository
keyword.clj
(ns cmr.search.test.api.keyword "Tests to verify functionality in cmr.search.api.keyword namespace." (:require [clojure.test :refer :all] [cmr.common-app.services.kms-fetcher :as kms-fetcher] [cmr.common.util :as util] [cmr.search.api.keyword :as k] [cmr.transmit.kms :as kms])) (deftest parse-hierar...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/e351eedc144547aced05fa35bf0d679b5b5b8b83/search-app/test/cmr/search/test/api/keyword.clj
clojure
(ns cmr.search.test.api.keyword "Tests to verify functionality in cmr.search.api.keyword namespace." (:require [clojure.test :refer :all] [cmr.common-app.services.kms-fetcher :as kms-fetcher] [cmr.common.util :as util] [cmr.search.api.keyword :as k] [cmr.transmit.kms :as kms])) (deftest parse-hierar...
64602e41061c97fae0aa2f207fb4549d27630fc105be15ca23020ef6f7f9be12
yenda/guix-packages
i3.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/yenda/guix-packages/0675fe15e5fc1e00ca91f069a6e279cfcdb29f42/i3.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (i3) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (gnu packages lin...
c33590c1a59e68aa75ff49f2073a10929a11f9d278617989e2fc9e25f579323e
bracevac/corrl
Layout.hs
------------------------------------------------------------------------------ Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the ro...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Syntax/Layout.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Add braces and semicolons based on layout. ------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . module Syntax.Layout( layout, testFile, combineLineComments ) where import Common.Range hiding (after) import Lib . Trace import ...
ec4b4d77a4526378ab844d0a2b94cd5ff16ef51bb22b724fed332865adfad23c
frenchy64/fully-satisfies
fully_satisfies.clj
(ns io.github.frenchy64.fully-satisfies (:refer-clojure :exclude [satisfies?]) (:import [java.lang.reflect Method Modifier])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) TODO can we use a cached find - protocol - impl ? ;; -1814 ;; from clojure.core (defn- super-chain [^Class c] (wh...
null
https://raw.githubusercontent.com/frenchy64/fully-satisfies/ba4617826e995fde01bc075f68a6c4645432e587/src/io/github/frenchy64/fully_satisfies.clj
clojure
-1814 from clojure.core from clojure.core from find-protocol-impl use deterministic impl from -2656 # moved
(ns io.github.frenchy64.fully-satisfies (:refer-clojure :exclude [satisfies?]) (:import [java.lang.reflect Method Modifier])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) TODO can we use a cached find - protocol - impl ? (defn- super-chain [^Class c] (when c (cons c (super-chain ...
b0120d2fa637115173d9fb9b01a414068dd47b702ae42280ee4659567a8f5fb1
clj-commons/seesaw
core.clj
(ns window-builder.test.core (:use [window-builder.core]) (:use [clojure.test])) (deftest replace-me ;; FIXME: write (is false "No tests have been written."))
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/examples/window-builder/test/window_builder/test/core.clj
clojure
FIXME: write
(ns window-builder.test.core (:use [window-builder.core]) (:use [clojure.test])) (is false "No tests have been written."))
87d0f16a195889b9dea5a9ed4bc53049df6f70cca759482f5b514a6bb4f64802
mirage/irmin
types_intf.ml
* Copyright ( c ) 2018 - 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...
null
https://raw.githubusercontent.com/mirage/irmin/347d885fd9d7f7605f4a980a3f733f44c7ccaede/src/libirmin/types_intf.ml
ocaml
* Copyright ( c ) 2018 - 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...
60d5f74f12566c6684f060bf92ee2ffa6fc499270ab836fc10cfc9178ccda6f8
tengstrand/lein-polylith
delete_test.clj
(ns leiningen.polylith.cmd.delete-test (:require [clojure.test :refer :all] [leiningen.polylith.cmd.test-helper :as helper] [leiningen.polylith.file :as file])) (use-fixtures :each helper/test-setup-and-tear-down) (deftest delete--interface-not-shared-with-another-component--delete-interface...
null
https://raw.githubusercontent.com/tengstrand/lein-polylith/27bf508a7b4806e4d2dfac01787e99edf2c1c306/test/leiningen/polylith/cmd/delete_test.clj
clojure
(ns leiningen.polylith.cmd.delete-test (:require [clojure.test :refer :all] [leiningen.polylith.cmd.test-helper :as helper] [leiningen.polylith.file :as file])) (use-fixtures :each helper/test-setup-and-tear-down) (deftest delete--interface-not-shared-with-another-component--delete-interface...
600f1f7b321d3413a7ae79040830cc787b3651acfb95a36d89bbe440888ad7ae
expipiplus1/vulkan
Space.hs
{-# language CPP #-} No documentation found for Chapter " Space " module OpenXR.Core10.Space ( destroySpace , enumerateReferenceSpaces , createReferenceSpace , withReferenceSpace , createActionSpace ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/openxr/src/OpenXR/Core10/Space.hs
haskell
# language CPP # # SOURCE # | xrDestroySpace - Creates a space based on a pose action == Parameter Descriptions = Description 'OpenXR.Core10.Handles.Space' handles are destroyed using 'destroySpace'. The runtime /may/ still use this space if there are active dependencies (e.g, compositions in progress). == V...
No documentation found for Chapter " Space " module OpenXR.Core10.Space ( destroySpace , enumerateReferenceSpaces , createReferenceSpace , withReferenceSpace , createActionSpace ...
f258f6a877ade414f07c1eb0807d4746b99f993d9298a56792f06a7634af66bd
ritschmaster/caveman2-widgets
widget.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; This file is a part of the - widgets project . ;; Copyright ( c ) 2016 ( ) LICENSE : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package :cl-user) (defpackage caveman2-widgets.widget ...
null
https://raw.githubusercontent.com/ritschmaster/caveman2-widgets/b58d6115b848ac7192299cbf3767e9eac414dc38/src/widget.lisp
lisp
not proctected protected and authorized protected and not authorized not found something bad happened not proctected protected and authorized protected and not authorized
This file is a part of the - widgets project . Copyright ( c ) 2016 ( ) LICENSE : (in-package :cl-user) (defpackage caveman2-widgets.widget (:use :cl :caveman2 :caveman2-widgets.util) (:export :*protection-circles-session-key* :<widget> :render-widget-header :render-widget-...
4a6b26e286e58595d0cb96ea6133420963da6cf288aea555301e815cc6d3cedd
ghc/packages-Cabal
enable-tests.test.hs
import Test.Cabal.Prelude main = cabalTest $ do withRepo "repo" . withSourceCopy $ do cabal "v1-freeze" ["--enable-tests"] cwd <- fmap testCurrentDir getTestEnv assertFileDoesContain (cwd </> "cabal.config") "test-framework"
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Freeze/enable-tests.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest $ do withRepo "repo" . withSourceCopy $ do cabal "v1-freeze" ["--enable-tests"] cwd <- fmap testCurrentDir getTestEnv assertFileDoesContain (cwd </> "cabal.config") "test-framework"
82b0e1ac6233394427f256e5c950211d3accf9c4ff1250455dbdb0b5ec43f62b
waldheinz/ads
Insert.hs
{-# LANGUAGE OverloadedStrings #-} module Freenet.Insert ( InsertTarget(..), InsertData(..), insert ) where import Control.Concurrent ( forkIO ) import Control.Monad ( void ) import qualified Data.Binary as BIN import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BSL import Data.Digest...
null
https://raw.githubusercontent.com/waldheinz/ads/7695a157d76f35849351b2e039890eae1b419088/src/lib/Freenet/Insert.hs
haskell
# LANGUAGE OverloadedStrings # ^ CHK insert | block if it's 32kiB or less in size, or by creating a splitfile for larger chunks. ^ the data to insert
module Freenet.Insert ( InsertTarget(..), InsertData(..), insert ) where import Control.Concurrent ( forkIO ) import Control.Monad ( void ) import qualified Data.Binary as BIN import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BSL import Data.Digest.Pure.SHA import qualified Data.Tex...
f519b6177014aea0b378a44d6ea2c609e55ff60d4f9b0b343c9968a9266118e3
mirage/rosetta
rosetta.mli
type encoding = [ `UTF_7 | Uuuu.encoding | Coin.encoding ] (** The type of encoding. *) val encoding_of_string: string -> encoding (** [encoding_of_string s] converts a (case insensitive) {{:-sets}IANA character set name} to an encoding. *) val encoding_to_string: encoding -> string (** [encoding_to_string e] i...
null
https://raw.githubusercontent.com/mirage/rosetta/6c57ee2cb501d8d7a159e0b7ad21575c38c6a35e/src/rosetta.mli
ocaml
* The type of encoding. * [encoding_of_string s] converts a (case insensitive) {{:-sets}IANA character set name} to an encoding. * [encoding_to_string e] is a {{:-sets}IANA character set name} for [e]. * The type for decoders. * The type for input sources. With a [`Manual] source the client must provide...
type encoding = [ `UTF_7 | Uuuu.encoding | Coin.encoding ] val encoding_of_string: string -> encoding val encoding_to_string: encoding -> string type 'kind decoder constraint 'kind = [< encoding ] type src = [ `Manual | `Channel of in_channel | `String of string ] type decode = [ `Await | `End | `Uchar of Uchar.t ...
fc21704b4ce9fed7707b39dc03c411b36421f2d935cc33dd2c5da94358ea333f
FailWhaleBrigade/water-wars
CollisionTest.hs
module WaterWars.Core.CollisionTest where import Test.Hspec import ClassyPrelude import WaterWars.Core.Physics.Collision import WaterWars.Core.Game import WaterWars.Core.TerrainsUtils import WaterWars.Core.Physics.Geometry physicsTests :: Spec physicsTests ...
null
https://raw.githubusercontent.com/FailWhaleBrigade/water-wars/bdd0616b1eed281ace499f059b4cc1e72bc50d05/test-suite/WaterWars/Core/CollisionTest.hs
haskell
TODO: detailled tests for middle-blocks TODO: redo tests
module WaterWars.Core.CollisionTest where import Test.Hspec import ClassyPrelude import WaterWars.Core.Physics.Collision import WaterWars.Core.Game import WaterWars.Core.TerrainsUtils import WaterWars.Core.Physics.Geometry physicsTests :: Spec physicsTests ...
612e2024a8cfd8355346b3205c6eb2e2497684b6f606defa6887a7925a7b4574
vlstill/hsExprTest
refl-fold.2.ok.hs
lengthFold :: [a] -> Int lengthFold = foldr (\_ l -> 1 + l) 0
null
https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/test/refl-fold.2.ok.hs
haskell
lengthFold :: [a] -> Int lengthFold = foldr (\_ l -> 1 + l) 0
c9342e29856b2fce866ada0e7957f6256dd6845ead7668686cc301423952f0ab
domainlanguage/time-count
allens_algebra_tests.clj
(ns time-count.allens-algebra-tests (:require [midje.sweet :refer :all] [time-count.allens-algebra :refer [relation converse-relation]] TODO move relation to separate protocol ? [time-count.metajoda] ; Must have some implementation! [time-count.iso8601 :re...
null
https://raw.githubusercontent.com/domainlanguage/time-count/f2d26a1e5fe1a137f5d1a01be295dde0385cc31e/test/time_count/allens_algebra_tests.clj
clojure
Must have some implementation! etc.
(ns time-count.allens-algebra-tests (:require [midje.sweet :refer :all] [time-count.allens-algebra :refer [relation converse-relation]] TODO move relation to separate protocol ? [time-count.iso8601 :refer [from-iso t-> t->>]])) (facts "about Allen's Interval Algebra" (fact "Defines a r...
36bcd80727bd001c26ce2ba21fcfc15e1c10c3b408c2e8c07d8b5986e483f590
haskell-tls/hs-tls
Backend.hs
# LANGUAGE CPP # -- | Module : Network . TLS.Backend -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : unknown -- A Backend represents a unified way to do IO on different -- types without burdening our calling API with multiple -- ways to initialize a new contex...
null
https://raw.githubusercontent.com/haskell-tls/hs-tls/31e95f40b75b541c9817b6b56c363e74c2f3b57d/core/Network/TLS/Backend.hs
haskell
| License : BSD-style Stability : experimental Portability : unknown types without burdening our calling API with multiple ways to initialize a new context. Typically, a backend provides: * a way to read data * a way to write data * a way to close the stream * a way to flush the stream | Connection...
# LANGUAGE CPP # Module : Network . TLS.Backend Maintainer : < > A Backend represents a unified way to do IO on different module Network.TLS.Backend ( HasBackend(..) , Backend(..) ) where import Network.TLS.Imports import qualified Data.ByteString as B import System.IO (Handle, hSetBufferi...
abe9e93e93f9c83c7b8879d35da8b48cc7c6f2212ac9dc906cbe2b7160303623
cubicle-model-checker/cubicle
cubicle_brab_map__Cubicle_BRAB.ml
(* This file has been generated from Why3 module Cubicle_BRAB *) open Fol__FOL module AQ = Abstract_queue__AbstractQueue type result = | Safe | Unsafe type kind = | Undef | Appr | Orig let finite_model : Fol__FOL.t = (* TODO: change this *) Fol__FOL.ffalse exception Unsafe_trace let visited : (Fol__...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/why/extraction_api/cubicle_brab_map__Cubicle_BRAB.ml
ocaml
This file has been generated from Why3 module Cubicle_BRAB TODO: change this ----------------- Begin manually edited ------------------ ------------------ End manually edited ------------------- ----------------- Begin manually edited ------------------ ------------------ End manually edited -------------------...
open Fol__FOL module AQ = Abstract_queue__AbstractQueue type result = | Safe | Unsafe type kind = | Undef | Appr | Orig Fol__FOL.ffalse exception Unsafe_trace let visited : (Fol__FOL.t Pervasives.ref) = ref ffalse let bad : (Fol__FOL.t Pervasives.ref) = ref ffalse let faulty : (Fol__FOL.t...
5ff2eca45ceea87f13643fc3e49eb43e95f095a03ce70529c01537fbf26c8948
c4-project/c4f
dump_stats.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/cmd_c/src/dump_stats.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
7756b33c5e0e2cd8ba5d51b75c4076f5950dd10fd9760607be0b89ac6795c619
lambda-fairy/sylvia
Model.hs
{-# LANGUAGE Rank2Types #-} -- | Module : . Model Copyright : -- -- Maintainer : -- Portability : portable (Rank2Types) -- The ' Exp ' data type , for representing lambda expressions using -- indices, plus basic abstraction and application operations. module Sylvia.Model ( -- * Types ...
null
https://raw.githubusercontent.com/lambda-fairy/sylvia/8c34f8f6e48a2887c6674e048ea73c971acb1657/Sylvia/Model.hs
haskell
# LANGUAGE Rank2Types # | Maintainer : Portability : portable (Rank2Types) indices, plus basic abstraction and application operations. * Types * Conversions * Abstracting * Applying * Simplifying | A structure for representing whole numbers. The problem with referring to variables with plain integers is...
Module : . Model Copyright : The ' Exp ' data type , for representing lambda expressions using module Sylvia.Model ( Inc(..) , Exp(..) , verify , verify' , abstract , match , shiftUp , apply , subst , shiftDown , evalHNF ) where import Cont...
b884e411d211277756ac4b1618de517b43cfeba991d7e96b73c0f9fe034184bc
sigscale/radierl
radius_app.erl
%%%--------------------------------------------------------------------- 2016 - 2018 SigScale Global Inc @author < > [ ] %%% @end %%% Copyright ( c ) 2016 - 2018 , SigScale Global Inc %%% %%% All rights reserved. %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not us...
null
https://raw.githubusercontent.com/sigscale/radierl/2d0b70e7c7d001cc07d31859385904d72e8a5a20/src/radius_app.erl
erlang
--------------------------------------------------------------------- @end All rights reserved. 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 CONDIT...
2016 - 2018 SigScale Global Inc @author < > [ ] Copyright ( c ) 2016 - 2018 , SigScale Global Inc Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(radius_app). -copyright('Copyright (c) 2016-2018 SigScale Gl...
6f3522512e6cb77a81992788d7721037367494fd41cfe8ebe786e00c48985bac
OCamlPro/ez_api
test_loads_lib.ml
let output = Json_encoding.(obj1 (req "success" (constant "true"))) let section = EzAPI.Doc.section "main" let arg = EzAPI.Arg.string ~example:"machin" "id" let params = [ EzAPI.Param.string "foo" ] let h _s = EzAPIServerUtils.return_ok () [@@get {path="/test/{arg}"; output; section; params}] let ppx_dir = EzLoads_...
null
https://raw.githubusercontent.com/OCamlPro/ez_api/42ec84f952f3d2d93c4edd34103f98de923f3050/test/loads/test_loads_lib.ml
ocaml
let output = Json_encoding.(obj1 (req "success" (constant "true"))) let section = EzAPI.Doc.section "main" let arg = EzAPI.Arg.string ~example:"machin" "id" let params = [ EzAPI.Param.string "foo" ] let h _s = EzAPIServerUtils.return_ok () [@@get {path="/test/{arg}"; output; section; params}] let ppx_dir = EzLoads_...
b9d9a8838bd0f77f2af20c94a134adec99df138857b90f56d58e978ae5897e40
IBM/probzelus
run.ml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
null
https://raw.githubusercontent.com/IBM/probzelus/3bdd60e3c4010452239bfe7bc79165802e5d941b/benchmarks/coin/ds_nogc/run.ml
ocaml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
21397957bdb8c68700c94c54669c5302d003242eadfc267f5c003b8cc877abdc
racket/gui
init.rkt
#lang scheme/private/provider racket/gui/init
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/scheme/gui/init.rkt
racket
#lang scheme/private/provider racket/gui/init
fed75ccc0ba3ac632995cd6763a9de05e26c08a350dde8e1a067b31e020ea5a9
kumarshantanu/calfpath
core.cljc
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the ...
null
https://raw.githubusercontent.com/kumarshantanu/calfpath/e923ad59106661cd66389cf94954b47558799d00/src/calfpath/core.cljc
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 LICENSE 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 ...
Copyright ( c ) . All rights reserved . (ns calfpath.core "Routing macros in Calfpath." #?(:cljs (:require-macros calfpath.core)) (:require [clojure.string :as str] [calfpath.internal :as i])) (defmacro ->uri "Given a ring request map and pairs of URI-templates (e.g. '/user/:id/profile/:type/'...
8fa2b0450b3ecb7f7f191bc9dcf4b214e26810e034b7adab0cb3eecb8dc5fe00
input-output-hk/cardano-sl
Example.hs
# OPTIONS_GHC -fno - warn - orphans # module Pos.Util.Example where import Universum import Data.Aeson (ToJSON) import qualified Data.Map.Strict as Map import Data.Swagger (Definitions, NamedSchema (..), Schema, sketchSchema) import Data.Swagger.Declare (De...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/lib/src/Pos/Util/Example.hs
haskell
NOTE: we don't want to see empty list examples in our swagger doc :) NOTE: we don't want to see "null" examples in our swagger doc :) NOTE: we don't want to see empty maps in our swagger doc :) HELPERS | Generates an example for type `a` with a static seed. by calling `sketchSchema` under the hood.
# OPTIONS_GHC -fno - warn - orphans # module Pos.Util.Example where import Universum import Data.Aeson (ToJSON) import qualified Data.Map.Strict as Map import Data.Swagger (Definitions, NamedSchema (..), Schema, sketchSchema) import Data.Swagger.Declare (De...
4dd9e126f575e6ee8ded9e7494c65f3802e34994e03862a76d27a341aeb53d98
paf31/dovetail
Main.hs
# LANGUAGE BlockArguments # {-# LANGUAGE DerivingStrategies #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleContexts # # LANGUAGE ImportQualifiedPost # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings ...
null
https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/examples/fake-data/Main.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE OverloadedStrings # | This example implements a generator for randomized fake data, which value for the expression which builds randomized outputs. It can be run on the command line as follows: @ cat > build.purs module Main where import Choo...
# LANGUAGE BlockArguments # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE FlexibleContexts # # LANGUAGE ImportQualifiedPost # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications ...
a1c95513fde98be4822d23b702649fc58940c9d5e20bba6e3dc517457f391b2f
ytomino/headmaster
c_scanner.ml
open C_lexical;; open C_lexical_scanner;; open C_literals;; open C_version;; open Position;; module type ScannerType = sig module Literals: LiteralsType module LexicalElement: LexicalElementType with module Literals := Literals module Language: LanguageType module NumericScanner: NumericScannerType with modu...
null
https://raw.githubusercontent.com/ytomino/headmaster/11571992e480aa9fbc5821fe1be1b62edf5f924f/source/c_scanner.ml
ocaml
error messages char handling scanner reading functions error recovery skip line shared buffer main nested functions body \n in outside of string in glibc <sys/sysmacros.h> macro-line continuation '\' and line feed be skipped replace %: to #, mixing and starting macro with %: are not supported...
open C_lexical;; open C_lexical_scanner;; open C_literals;; open C_version;; open Position;; module type ScannerType = sig module Literals: LiteralsType module LexicalElement: LexicalElementType with module Literals := Literals module Language: LanguageType module NumericScanner: NumericScannerType with modu...
0a868a930f01f2cc68d3e2f2bff71586bf87b1542e8162e45a98bbe17d3540d4
ocaml/ocamlbuild
hello.mli
val hello: string
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/examples/04-library/libdemo/hello.mli
ocaml
val hello: string
f641d8a562a87e99b984a9c780d0fae4cf27a88158e1b595eacc62ca37c50333
barbuz/Husk
IntSeq.hs
# LANGUAGE UndecidableInstances , FlexibleInstances , FlexibleContexts , BangPatterns # module IntSeq where -- Built-in integer sequences import Data.List import Defs func_intseq :: Char -> [TNum] --Alternate signs func_intseq '±' = concat $ transpose [[1..],[-1,-2..]] --All integers func_intseq 'Z' = 0 : func_int...
null
https://raw.githubusercontent.com/barbuz/Husk/03b3cf96e93824075cc70cef4bb3fd7242bd2ad0/IntSeq.hs
haskell
Built-in integer sequences Alternate signs All integers Yes/no sequence Negatives Even Odd Fibonacci Primes (defined in Defs.hs) Euro coins and notes values Squares Powers of -1 Inverses of positive integers
# LANGUAGE UndecidableInstances , FlexibleInstances , FlexibleContexts , BangPatterns # module IntSeq where import Data.List import Defs func_intseq :: Char -> [TNum] func_intseq '±' = concat $ transpose [[1..],[-1,-2..]] func_intseq 'Z' = 0 : func_intseq '±' func_intseq '¬' = cycle [1,0] func_intseq '-' = [-1,-...
b89695a43df29a0cf707a9a0efbf33c0fbdd6ffa5f89147627cd2c98490d2ab1
bobzhang/fan
test_fan_camlp4_generate_origin.ml
open Format; #load "fan_camlp4_generate_origin.cma"; open Fan_camlp4_generate_origin; value p_expr = fprintf fmt "@[<hov 1>%a@]" Print.pp_print_expr ; ( << 3 + 4 + 4 + 2 + ( 32 * 4 ) |> 3 >> |> p_expr );
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/test_fan_camlp4_generate_origin.ml
ocaml
open Format; #load "fan_camlp4_generate_origin.cma"; open Fan_camlp4_generate_origin; value p_expr = fprintf fmt "@[<hov 1>%a@]" Print.pp_print_expr ; ( << 3 + 4 + 4 + 2 + ( 32 * 4 ) |> 3 >> |> p_expr );
431db57c59cf30a7756afd0257fa8aafa295b1c055f65e268d5091f12fc579b0
bondy-io/bondy
bondy_app.erl
%% ============================================================================= %% bondy_app - %% Copyright ( c ) 2016 - 2022 Leapsight . All rights reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obt...
null
https://raw.githubusercontent.com/bondy-io/bondy/00acdfafda3bdfd0edfaf72114114bbd383ed9a2/apps/bondy/src/bondy_app.erl
erlang
============================================================================= bondy_app - 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 AN...
Copyright ( c ) 2016 - 2022 Leapsight . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(bondy_app). -behaviour(application). -include_lib("kernel/include/logger.hrl"). -include("bondy.hrl"). ...
bc579c4d16dc709db1dd279db3aa9c4414ff1ca555513937b7cd9e9491b5d61d
lixiangqi/medic
graph-pasteboard.rkt
#lang racket (require mrlib/graph racket/gui/base (only-in racket/string string-normalize-spaces) (only-in pict/color dark light) "quadtree.rkt") (provide graph-pasteboard%) (define node-size 20) (define radius (/ node-size 2)) (define (create-node-bitmap label color w) (define...
null
https://raw.githubusercontent.com/lixiangqi/medic/0920090d3c77d6873b8481841622a5f2d13a732c/trace-browser/graph-pasteboard.rkt
racket
Supports stable incremental layout. When a new node is added and if a linked node already has an initial position, the corresponding coordinates are applied to the new node, rather than generating random position.
#lang racket (require mrlib/graph racket/gui/base (only-in racket/string string-normalize-spaces) (only-in pict/color dark light) "quadtree.rkt") (provide graph-pasteboard%) (define node-size 20) (define radius (/ node-size 2)) (define (create-node-bitmap label color w) (define...
b95ebb5242f3dcf67a4765085194998ad4b69232fe13da7a6af41579c614c5e8
hsyl20/haskus-system
Main.hs
# LANGUAGE LambdaCase # import Haskus.Apps.System.Build.Config import Haskus.Apps.System.Build.Linux import Haskus.Apps.System.Build.Syslinux import Haskus.Apps.System.Build.CmdLine import Haskus.Apps.System.Build.Utils import Haskus.Apps.System.Build.Ramdisk import Haskus.Apps.System.Build.Stack import Haskus.Apps.Sy...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system-build/src/apps/Haskus/Apps/System/Build/Main.hs
haskell
read command-line options get latest templates copy template override config TODO: use lenses override config TODO: use lenses
# LANGUAGE LambdaCase # import Haskus.Apps.System.Build.Config import Haskus.Apps.System.Build.Linux import Haskus.Apps.System.Build.Syslinux import Haskus.Apps.System.Build.CmdLine import Haskus.Apps.System.Build.Utils import Haskus.Apps.System.Build.Ramdisk import Haskus.Apps.System.Build.Stack import Haskus.Apps.Sy...
79dded595afdcda8c8dad2a5f6a3760efec33baa10456c79432b88e3ba4aeb91
brainsickcc/bscc
Main.hs
Copyright © 2013 -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later version. -- -- This program is distributed in th...
null
https://raw.githubusercontent.com/brainsickcc/bscc/f47a83f5c77d0ef483e957032715ac4007fcb44d/test/Test/Bscc/Main.hs
haskell
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 General ...
Copyright © 2013 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Affero General Public License module Test.Bscc.Main (mainTests) where import Bscc.Main (main) import C...
56b1a600d8ccb51bd4e4ae2a927fdc19ec2008fcbe5721ae27f5653fa46c5620
LexiFi/menhir
middle.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/middle.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
9c024f6b44a11c3e6d344f4cfe41e27eb85d369355e032a9cb12d33279640116
AccelerateHS/accelerate
Issues.hs
{-# LANGUAGE RankNTypes #-} -- | -- Module : Data.Array.Accelerate.Test.NoFib.Issues Copyright : [ 2009 .. 2020 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GHC extensions ) -- module Data.Array.Accelerate.Test.NoFib.Is...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate/63e53be22aef32cd0b3b6f108e637716a92b72dc/src/Data/Array/Accelerate/Test/NoFib/Issues.hs
haskell
# LANGUAGE RankNTypes # | Module : Data.Array.Accelerate.Test.NoFib.Issues License : BSD3 Stability : experimental module Data.Array.Accelerate.Test.NoFib.Issues.Issue286, import Data.Array.Accelerate.Test.NoFib.Issues.Issue286 , test_issue286 runN
Copyright : [ 2009 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Array.Accelerate.Test.NoFib.Issues ( test_issues, module Data.Array.Accelerate.Test.NoFib.Issues.Issue93, module Data.Array.Accelerate.Test.NoFib.Issues.Issue102, modul...
5497db4423c914b424582503b5b90c4c74010dd1c9fe368507c4e645d99ecc85
votinginfoproject/data-processor
external_file_test.clj
(ns vip.data-processor.validation.v6.external-file-test (:require [clojure.test :refer :all] [vip.data-processor.pipeline :as pipeline] [vip.data-processor.db.postgres :as psql] [vip.data-processor.validation.xml :as xml] [vip.data-processor.test-helpers :refer :al...
null
https://raw.githubusercontent.com/votinginfoproject/data-processor/b4baf334b3a6219d12125af8e8c1e3de93ba1dc9/test/vip/data_processor/validation/v6/external_file_test.clj
clojure
(ns vip.data-processor.validation.v6.external-file-test (:require [clojure.test :refer :all] [vip.data-processor.pipeline :as pipeline] [vip.data-processor.db.postgres :as psql] [vip.data-processor.validation.xml :as xml] [vip.data-processor.test-helpers :refer :al...
f79eb7787c5c4f1ad039d8e73807266ea709b23c0a9ccdfcd05b1cc8a9f3c600
racket/slideshow
start-param.rkt
(module start-param mzscheme (provide file-to-load trust-me?) (define file-to-load (make-parameter #f)) (define trust-me? (make-parameter #t)))
null
https://raw.githubusercontent.com/racket/slideshow/4588507e83e9aa859c6841e655b98417d46987e6/slideshow-lib/slideshow/start-param.rkt
racket
(module start-param mzscheme (provide file-to-load trust-me?) (define file-to-load (make-parameter #f)) (define trust-me? (make-parameter #t)))
7a6af0bf6b2e66149e7d1fd69cc0d6518e3ff444fb3bd9bfb9bfc23c1d21cf14
unisonweb/unison
TypeLookup.hs
module Unison.Typechecker.TypeLookup where import qualified Data.Map as Map import Unison.ConstructorReference (ConstructorReference, GConstructorReference (..)) import qualified Unison.ConstructorType as CT import Unison.DataDeclaration (DataDeclaration, EffectDeclaration) import qualified Unison.DataDeclaration as D...
null
https://raw.githubusercontent.com/unisonweb/unison/55781fe58b62b0e90d1a2461ad04d702839c7972/parser-typechecker/src/Unison/Typechecker/TypeLookup.hs
haskell
Used for typechecking. bombs if not found
module Unison.Typechecker.TypeLookup where import qualified Data.Map as Map import Unison.ConstructorReference (ConstructorReference, GConstructorReference (..)) import qualified Unison.ConstructorType as CT import Unison.DataDeclaration (DataDeclaration, EffectDeclaration) import qualified Unison.DataDeclaration as D...
0b17922711a3b4d597aac1bffe09f4b4b0882ee7965a417c3cf7e586ca7dd178
phadej/write-yourself-a-typed-functional-language
LLC.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # {-# LANGUAGE DeriveTraversable #-} module LLC where import Bound import Bound.Var (unvar) import Control.Monad (ap, guard) import Data.Functor.Classes import Data.String (IsString (..)) import Control.Monad.Trans.State -----------...
null
https://raw.githubusercontent.com/phadej/write-yourself-a-typed-functional-language/1e50173076aa432490b0901a8358a8fa70da7d1f/src/LLC.hs
haskell
# LANGUAGE DeriveTraversable # ----------------------------------------------------------------------------- Ty ----------------------------------------------------------------------------- imagine this is a lollipop: -o ----------------------------------------------------------------------------- Syntax -----------...
# LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # module LLC where import Bound import Bound.Var (unvar) import Control.Monad (ap, guard) import Data.Functor.Classes import Data.String (IsString (..)) import Control.Monad.Trans.State data Ty = Ty String deriving (Eq, Ord, ...
834e57f31632278e05bdc11c05d589cb6c4f37150d782777c041521a0a6c7c7d
thheller/shadow-experiments
fragments.cljs
(ns shadow.experiments.arborist.fragments (:require-macros [shadow.experiments.arborist.fragments]) (:require [shadow.experiments.arborist.protocols :as p] [shadow.experiments.arborist.attributes :as a] [shadow.experiments.arborist.common :as common])) (defn fragment-id ;; -compiler/wiki/Id-Generator...
null
https://raw.githubusercontent.com/thheller/shadow-experiments/a2170c2214778b6b9a9253166383396d64d395a4/src/main/shadow/experiments/arborist/fragments.cljs
clojure
-compiler/wiki/Id-Generator-Annotations FIXME: maybe take document from env, easier to mock out later FIXME: maybe create fn in macro that saves traversing exports exports may contain many regular dom nodes and those don't need this but this is called once in the entire lifecycle so this should be fine create-fn ...
(ns shadow.experiments.arborist.fragments (:require-macros [shadow.experiments.arborist.fragments]) (:require [shadow.experiments.arborist.protocols :as p] [shadow.experiments.arborist.attributes :as a] [shadow.experiments.arborist.common :as common])) (defn fragment-id {:jsdoc ["@idGenerator {consis...