_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
b10cc6b02fb879144e5d8d566e4c71e9054ad12b1883c178794b49e9c1118466
Nibre/BlamScript-Research
highcharity_base.lisp
��
null
https://raw.githubusercontent.com/Nibre/BlamScript-Research/dd17538dcbdc78f391effb341846fbaf9a1f8643/h2v/07a_highcharity/highcharity_base.lisp
lisp
��
698eeb42db1c4f2564f767bac1452da105cdf56daa5e8c411c301aaf482f0e08
codelion/SpinR
parser.ml
open Camlp4 open PreCast open Promela open Promela.Statement module M = Camlp4.PreCast let model = Gram.Entry.mk "model" EXTEND Gram GLOBAL: model; model: [[ g = LIST0 decl;p = LIST1 process -> if (List.length g == 0) then Model.create p Declarations.empty else Model.create p (List.fold_left (fun a b ...
null
https://raw.githubusercontent.com/codelion/SpinR/8d3a3d99cf3192a4ede3f326eff0c07c22906dee/parser.ml
ocaml
parse from a string parse from a file
open Camlp4 open PreCast open Promela open Promela.Statement module M = Camlp4.PreCast let model = Gram.Entry.mk "model" EXTEND Gram GLOBAL: model; model: [[ g = LIST0 decl;p = LIST1 process -> if (List.length g == 0) then Model.create p Declarations.empty else Model.create p (List.fold_left (fun a b ...
ac3dce2a3aa409eb0ed4551d4a3f27ed045743cdd3de54e98fcdc6208c737c21
samply/blaze
fhir_client_test.clj
(ns blaze.fhir-client-test (:require [blaze.fhir-client :as fhir-client] [blaze.fhir-client-spec] [blaze.fhir.spec.type] [blaze.test-util :as tu :refer [given-failed-future]] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [are deftest is testing]] [cognitect.anomalies :as a...
null
https://raw.githubusercontent.com/samply/blaze/6441a0a2f988b8784ed555c1d20f634ef2df7e4a/modules/fhir-client/test/blaze/fhir_client_test.clj
clojure
(ns blaze.fhir-client-test (:require [blaze.fhir-client :as fhir-client] [blaze.fhir-client-spec] [blaze.fhir.spec.type] [blaze.test-util :as tu :refer [given-failed-future]] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [are deftest is testing]] [cognitect.anomalies :as a...
1fa5659852bb83b00091c1695efe1eef74f54fae68848fff4550ca2d6877d1d4
MinaProtocol/mina
run_snark_worker.ml
open Core_kernel open Async module Prod = Snark_worker__Prod.Inputs let command = let open Command.Let_syntax in Command.async ~summary:"Run snark worker directly" (let%map_open spec = flag "--spec-sexp" ~doc:"" (required (sexp_conv Prod.single_spec_of_sexp)) and proof_level = flag ...
null
https://raw.githubusercontent.com/MinaProtocol/mina/34961ab38efc5608c41e384489644948cad815a4/src/lib/snark_worker/standalone/run_snark_worker.ml
ocaml
open Core_kernel open Async module Prod = Snark_worker__Prod.Inputs let command = let open Command.Let_syntax in Command.async ~summary:"Run snark worker directly" (let%map_open spec = flag "--spec-sexp" ~doc:"" (required (sexp_conv Prod.single_spec_of_sexp)) and proof_level = flag ...
7d910ac2f46dcf6a75aa45868c50187900c2666209e1e5442125ffcc649061b7
lamdu/lamdu
LiteralEdit.hs
module Lamdu.GUI.Expr.LiteralEdit ( make ) where import qualified Control.Lens as Lens import qualified Data.ByteString.Base16 as Hex import Data.ByteString.Lens (chars) import qualified Data.Char as Char import Data.Property (Property(..)) import qualified Data.Property as Property import ...
null
https://raw.githubusercontent.com/lamdu/lamdu/5b15688e53ccbf7448ff11134b3e51ed082c6b6c/src/Lamdu/GUI/Expr/LiteralEdit.hs
haskell
The literal edit should behave like holes, in that the "pick option" key goes to the resulting expr. Only taken when the literal edit doesn't handle it by jumping to next entry: '-' at last position should apply operator rather than negate Allow to delete when text is empty Avoid taking keys that don't belong to...
module Lamdu.GUI.Expr.LiteralEdit ( make ) where import qualified Control.Lens as Lens import qualified Data.ByteString.Base16 as Hex import Data.ByteString.Lens (chars) import qualified Data.Char as Char import Data.Property (Property(..)) import qualified Data.Property as Property import ...
71b1f10e32f35c422aa135e335c528f8eb3cbb42c03f9aea4dff2871291d3b29
fadbadml-dev/FADBADml
fadiff.mli
(**************************************************************************) (* *) (* FADBADml *) (* *) ...
null
https://raw.githubusercontent.com/fadbadml-dev/FADBADml/bd5668433b8ad297aa70e91a032953d55923b533/src/fadiff.mli
ocaml
************************************************************************ FADBADml ...
OCaml port by and Based on FADBAD++ , written by and Copyright 2019 - 2020 This file is distributed under the terms of the CeCILL - C license . module FTypeName (T : Types.OpS) : sig include Types.OpS with type elt...
f9f6e27ba8836d5afc1e3c197fad9479be87e473408642964ed194d183ed63be
clojure-emacs/sayid
view.clj
(ns com.billpiel.sayid.view (:require [com.billpiel.sayid.util.other :as util])) ;; ================================================================== ;; These also exist in query. Move to some common location. (defn get-some* [f v] (cond (fn? f) (f v) (set? f) (f v) :default (get v ...
null
https://raw.githubusercontent.com/clojure-emacs/sayid/27f35778de9509067716a7bed14306787334a589/src/com/billpiel/sayid/view.clj
clojure
================================================================== These also exist in query. Move to some common location. added this ==================================================================
(ns com.billpiel.sayid.view (:require [com.billpiel.sayid.util.other :as util])) (defn get-some* [f v] (cond (fn? f) (f v) (set? f) (f v) :default (get v f))) (defn get-some [coll v] (loop [coll coll v v] (if ((some-fn empty? nil?) coll) v (let [[f & r] ...
61cdbecac59f0f08035e553d62db1581f5087422c93f851b2430685f2ab065bd
hdevtools/hdevtools
Server.hs
module Server where import Control.Exception (bracket, finally, handleJust, tryJust) import Control.Monad (guard) import Data.IORef (IORef, newIORef, readIORef, writeIORef) import GHC.IO.Exception (IOErrorType (ResourceVanished)) import Network.Socket (F...
null
https://raw.githubusercontent.com/hdevtools/hdevtools/a866f017b74f4b27fabda0861f635da82e43d9fe/src/Server.hs
haskell
Ignore possible error if socket file does not exist EPIPE means that the client is no longer there. Must close the handle here because we are exiting the loop so it won't be closed in the code above
module Server where import Control.Exception (bracket, finally, handleJust, tryJust) import Control.Monad (guard) import Data.IORef (IORef, newIORef, readIORef, writeIORef) import GHC.IO.Exception (IOErrorType (ResourceVanished)) import Network.Socket (F...
325dfcd682a77a87d7360ac0cbba7140980afb60c012dc399e529ffb93624861
bobbae/gosling-emacs
man.ml
(defun (manual-entry entry-name (setq entry-name (arg 1 ": manual-entry (for) ")) (save-excursion (pop-to-buffer "man-entry") (setq mode-line-format (concat " Manual entry for " entry-name " %M %[%p%]")) (setq needs-checkpointing 0) (erase-buffer)...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/maclib/man.ml
ocaml
(defun (manual-entry entry-name (setq entry-name (arg 1 ": manual-entry (for) ")) (save-excursion (pop-to-buffer "man-entry") (setq mode-line-format (concat " Manual entry for " entry-name " %M %[%p%]")) (setq needs-checkpointing 0) (erase-buffer)...
1ceb7401b6b6d5012b040a4ce380e9e39dcea899520cbe80505b9cf5505b5288
finnishtransportagency/harja
tilannekuva.cljs
(ns harja.views.tilannekuva.tilannekuva (:require [reagent.core :refer [atom]] [harja.ui.komponentti :as komp] [harja.tiedot.tilannekuva.tilannekuva :as tiedot] [harja.tiedot.tilannekuva.tilannekuva-kartalla :as tilannekuva-kartalla] [harja.views.tilannekuva.tienakyma :...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/45cc68480e2927f97fc1d61b971648854d91690a/src/cljs/harja/views/tilannekuva/tilannekuva.cljs
clojure
vai toiseen näkymään (-> taso pois)
(ns harja.views.tilannekuva.tilannekuva (:require [reagent.core :refer [atom]] [harja.ui.komponentti :as komp] [harja.tiedot.tilannekuva.tilannekuva :as tiedot] [harja.tiedot.tilannekuva.tilannekuva-kartalla :as tilannekuva-kartalla] [harja.views.tilannekuva.tienakyma :...
62251114d779ec915fb70ca91ef2b3b270770445006d9f2afe02565e9c329e03
markcox80/template-function
packages.lisp
(defpackage "TEMPLATE-FUNCTION" (:use "COMMON-LISP") ;; Argument specification (:export "&OTHERS" "ARGUMENT-SPECIFICATION-LAMBDA" "NAMED-ARGUMENT-SPECIFICATION-LAMBDA" "DESTRUCTURING-ARGUMENT-SPECIFICATION" "DEFUN/ARGUMENT-SPECIFICATION") ;; Object Layer (:export ...
null
https://raw.githubusercontent.com/markcox80/template-function/bb1f1f2582a224c84a177058a9a64558326f35e7/src/packages.lisp
lisp
Argument specification Object Layer Glue Layer Syntax Layer Parameter Protocol Parameters Protocol argument-specification-lambda
(defpackage "TEMPLATE-FUNCTION" (:use "COMMON-LISP") (:export "&OTHERS" "ARGUMENT-SPECIFICATION-LAMBDA" "NAMED-ARGUMENT-SPECIFICATION-LAMBDA" "DESTRUCTURING-ARGUMENT-SPECIFICATION" "DEFUN/ARGUMENT-SPECIFICATION") (:export "TEMPLATE-FUNCTION-CLASS" "TEMPLATE...
8f83c4c9b34b28d8bcb01199deac1a05ce2235e16f1fcd53dd06c0a564b60244
cstar/erldis
erldis_binaries.erl
-module(erldis_binaries). -export([to_binary/1, join/2, encode_key/1, encode_key_parts/1]). to_binary(X) when is_list(X) -> list_to_binary(X); to_binary(X) when is_atom(X) -> list_to_binary(atom_to_list(X)); to_binary(X) when is_binary(X) -> X; to_binary(X) when is_integer(X) -> list_to_binary(integer_to_list(X)); to...
null
https://raw.githubusercontent.com/cstar/erldis/375260795e6a3de2600e297658f364deedbe6f1b/src/erldis_binaries.erl
erlang
-module(erldis_binaries). -export([to_binary/1, join/2, encode_key/1, encode_key_parts/1]). to_binary(X) when is_list(X) -> list_to_binary(X); to_binary(X) when is_atom(X) -> list_to_binary(atom_to_list(X)); to_binary(X) when is_binary(X) -> X; to_binary(X) when is_integer(X) -> list_to_binary(integer_to_list(X)); to...
d880e8ebcdd408cee55881c544d3e510933fbc367b8b6c939e6667952afcdd8b
re-ops/re-core
digital.clj
(ns re-core.test.digital (:require [re-core.model :refer (vconstruct)] [re-core.fixtures.data :refer [redis-digital]]) (:use clojure.test)) (deftest digital-vconstruct (let [{:keys [machine digital-ocean]} redis-digital] (testing "legal digital-ocean system" (is (= (get-in (vconstruct redis-digit...
null
https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/test/re_core/test/digital.clj
clojure
(ns re-core.test.digital (:require [re-core.model :refer (vconstruct)] [re-core.fixtures.data :refer [redis-digital]]) (:use clojure.test)) (deftest digital-vconstruct (let [{:keys [machine digital-ocean]} redis-digital] (testing "legal digital-ocean system" (is (= (get-in (vconstruct redis-digit...
d5c53d46176038703cb1ac202f339f34e62f2f915a0ed0078ed2d78b61c6c9ea
mstksg/inCode
Archive.hs
{-# LANGUAGE ImplicitParams #-} {-# LANGUAGE OverloadedStrings #-} module Blog.Compiler.Archive where import Blog.Compiler.Entry import Blog.Types import Blog.View.Archive import Data.Default import Hakyll import Hakyll.Web.Blaze import qualified Data.Tex...
null
https://raw.githubusercontent.com/mstksg/inCode/e1f80a3dfd83eaa2b817dc922fd7f331cd1ece8a/src/Blog/Compiler/Archive.hs
haskell
# LANGUAGE ImplicitParams # # LANGUAGE OverloadedStrings #
module Blog.Compiler.Archive where import Blog.Compiler.Entry import Blog.Types import Blog.View.Archive import Data.Default import Hakyll import Hakyll.Web.Blaze import qualified Data.Text as T archiveCompiler :: (?config :: Config) => Ar...
664e6bddaa2ebe37a54b1f7e946aeafbbdda62a7ae5aa81f5725dc0c4817a969
ocaml-community/lambda-term
print_sequences.ml
* print_sequences.ml * ------------------ * Copyright : ( c ) 2012 , < > * Licence : BSD3 * * This file is a part of Lambda - Term . * print_sequences.ml * ------------------ * Copyright : (c) 2012, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of Lambda-Term. *) (* Scr...
null
https://raw.githubusercontent.com/ocaml-community/lambda-term/bcb949e420d97c1aac67f93a95d25aca5ac2cb8d/print_sequences.ml
ocaml
Script to print sequences returned by the terminal. You can execute it like this: # ocaml print_sequences.ml Setup terminal attributes. Read and print key sequences. Reset terminal attributes.
* print_sequences.ml * ------------------ * Copyright : ( c ) 2012 , < > * Licence : BSD3 * * This file is a part of Lambda - Term . * print_sequences.ml * ------------------ * Copyright : (c) 2012, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of Lambda-Term. *) #load...
d99eb32edb557ba070994a3b7551802cb049c86a82133c00367daf65cc715c39
lilydjwg/myhaskells
routespeed.hs
import Control.Applicative ((<$>)) import Control.Concurrent (threadDelay) import Data.List import Data.List.Split (endBy) import Data.Maybe import Data.Time (formatTime, getZonedTime) import Network.Browser import Network.HTTP import Network.URI (parseURI) import System.Locale (defaultTimeLocale) import Text.Printf (p...
null
https://raw.githubusercontent.com/lilydjwg/myhaskells/9a028c36a46e811e56d47a11ac4f261787fba0cf/routespeed/routespeed.hs
haskell
import Control.Applicative ((<$>)) import Control.Concurrent (threadDelay) import Data.List import Data.List.Split (endBy) import Data.Maybe import Data.Time (formatTime, getZonedTime) import Network.Browser import Network.HTTP import Network.URI (parseURI) import System.Locale (defaultTimeLocale) import Text.Printf (p...
7896417eee575b10a3575ceee48d6e4203f476ec7042b2eb8bb4acb92b02a12f
TatriX/cl-sdl2-tutorial
16-true-type-fonts.lisp
(defpackage #:sdl2-tutorial-16-true-type-fonts (:use :cl) (:export :run) (:import-from :sdl2-tutorial-utils :asset-pathname)) (in-package #:sdl2-tutorial-16-true-type-fonts) (defparameter *screen-width* 640) (defparameter *screen-height* 480) (defparameter *font* nil) (defclass tex () ((renderer :initar...
null
https://raw.githubusercontent.com/TatriX/cl-sdl2-tutorial/ac3613160df0120c4b12de6f7989add0e81c9e63/16-true-type-fonts.lisp
lisp
clean up
(defpackage #:sdl2-tutorial-16-true-type-fonts (:use :cl) (:export :run) (:import-from :sdl2-tutorial-utils :asset-pathname)) (in-package #:sdl2-tutorial-16-true-type-fonts) (defparameter *screen-width* 640) (defparameter *screen-height* 480) (defparameter *font* nil) (defclass tex () ((renderer :initar...
c74d32f1f8e88c9a269d92ef81e25bd62153bb92ebd0c378eea81197f454e773
haskell-opengl/OpenGLRaw
CopyImage.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.CopyImage Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ----------------------------------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/CopyImage.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.CopyImage License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Functions
Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.CopyImage ( glGetNVCopyImage, gl_NV_copy_image, glCopyImageSubDataNV ) where import Graphics.GL.ExtensionPredicates import Graphics.GL.Functions
f83ebf9a094ae5cc843689fb0e8d1023951e0ca45f943cd357e1f3d451133486
mkoppmann/eselsohr
Permission.hs
module Lib.Ui.Web.Page.ViewModel.Permission ( OverviewPermsVm (..) , toOverviewPermsVm , ArticlesPermsVm (..) , toArticlesPermsVm , ArticlePermsVm (..) , toArticlePermsVm ) where import Lib.Domain.Capability ( ArticlePerms (..) , ArticlesPerms (..) , OverviewPerms (..) ) da...
null
https://raw.githubusercontent.com/mkoppmann/eselsohr/3bb8609199c1dfda94935e6dde0c46fc429de84e/src/Lib/Ui/Web/Page/ViewModel/Permission.hs
haskell
module Lib.Ui.Web.Page.ViewModel.Permission ( OverviewPermsVm (..) , toOverviewPermsVm , ArticlesPermsVm (..) , toArticlesPermsVm , ArticlePermsVm (..) , toArticlePermsVm ) where import Lib.Domain.Capability ( ArticlePerms (..) , ArticlesPerms (..) , OverviewPerms (..) ) da...
8b44828b52a228f131ef56a4a551d08426f55e1d512769aa922c4bd1a5382316
juspay/atlas
Call.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Product/Call.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
2480b4a69b6c99d83120ab533724b4c32c8ba9f0676064b100ab2b5c6bd7757f
ocamllabs/ocaml-modular-implicits
scheduling.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/asmcomp/amd64/scheduling.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 2000 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . let fundecl f = f
1b53a3b48703c53a3a9944d9e0fc2898f9d4f880cb1c5ddecda6a286ea77baba
Holworth/SICP_Solutions
exercise2-69.rkt
#lang sicp (define (make-leaf symbol weight) (list 'leaf symbol weight)) (define (leaf? object) (eq? (car object) 'leaf)) (define (symbol-leaf x) (cadr x)) (define (weight-leaf x) (caddr x)) (define (make-code-tree left right) (list left right (append (symbols left) (symbols right)) (+ (w...
null
https://raw.githubusercontent.com/Holworth/SICP_Solutions/1da953555315d77ab1b4d834366e16195d7f8114/solutions/chap2/code/exercise2-69.rkt
racket
#lang sicp (define (make-leaf symbol weight) (list 'leaf symbol weight)) (define (leaf? object) (eq? (car object) 'leaf)) (define (symbol-leaf x) (cadr x)) (define (weight-leaf x) (caddr x)) (define (make-code-tree left right) (list left right (append (symbols left) (symbols right)) (+ (w...
d97b0b6e8f9bab7ff1a5e42628023a2b2d56030a339dfffbca9071371e70f455
angavrilov/ecl-compute
ranges.lisp
;;; -*- mode:lisp; indent-tabs-mode: nil; -*- (in-package fast-compute) (defparameter *range-cache* (make-hash-table)) (defun compute-range-ranging (expr prev-expr) (if (equal expr prev-expr) expr (compute-range-ranging (match expr ((when (or (get smin 'full-expr) (g...
null
https://raw.githubusercontent.com/angavrilov/ecl-compute/466f0d287f8b6ab0e2b5c2ac03693ad4f4df6a3f/expr/ranges.lisp
lisp
-*- mode:lisp; indent-tabs-mode: nil; -*-
(in-package fast-compute) (defparameter *range-cache* (make-hash-table)) (defun compute-range-ranging (expr prev-expr) (if (equal expr prev-expr) expr (compute-range-ranging (match expr ((when (or (get smin 'full-expr) (get smax 'full-expr)) (ranging-spec...
9bc019e8d061c15bdfaf40f41e0cf65ae0e863a0d173544f0284cf6168597de2
ilya-klyuchnikov/lambdapi
Check.hs
module LambdaPi.Check where import Control.Monad.Except import Text.PrettyPrint.HughesPJ hiding (parens) import Common import LambdaPi.AST import LambdaPi.Eval import LambdaPi.Quote import LambdaPi.Printer iType0_ :: (NameEnv Value_,Context_) -> ITerm_ -> Result Type_ iType0_ = iType_ 0 iType_ :: Int -> (NameEnv V...
null
https://raw.githubusercontent.com/ilya-klyuchnikov/lambdapi/79ddf21581e03ea34a94cc00ffd5c8684d845ed9/src/LambdaPi/Check.hs
haskell
module LambdaPi.Check where import Control.Monad.Except import Text.PrettyPrint.HughesPJ hiding (parens) import Common import LambdaPi.AST import LambdaPi.Eval import LambdaPi.Quote import LambdaPi.Printer iType0_ :: (NameEnv Value_,Context_) -> ITerm_ -> Result Type_ iType0_ = iType_ 0 iType_ :: Int -> (NameEnv V...
01e4aa09bdb75648a3061501f1e3e1ddbc4ac9aedc8fc8203fdf90ade23f81b6
rrnewton/haskell-lockfree
Raw781_test.hs
# LANGUAGE MagicHash , UnboxedTuples # Test the primops in GHC 7.8.1 directly . module Main where import GHC.Prim import GHC.IORef import GHC.STRef import GHC.ST import GHC.IO # NOINLINE str # str :: String str = "hello" t :: MutVar# d a -> a -> a -> State# d -> (# State# d, Int#, a #) t = casMutVar# (===) :: In...
null
https://raw.githubusercontent.com/rrnewton/haskell-lockfree/87122157cbbc96954fcc575b4b110003d3e5c2f8/atomic-primops/testing/Raw781_test.hs
haskell
-------------------------------------- | Performs a machine-level compare and swap operation on an 'STRef'. Returns a tuple containing a 'Bool' which is 'True' when a swap is performed, along with the 'current' value from the 'STRef'. Note \"compare\" here means pointer equality in the sense of 'GHC.Prim.reallyU...
# LANGUAGE MagicHash , UnboxedTuples # Test the primops in GHC 7.8.1 directly . module Main where import GHC.Prim import GHC.IORef import GHC.STRef import GHC.ST import GHC.IO # NOINLINE str # str :: String str = "hello" t :: MutVar# d a -> a -> a -> State# d -> (# State# d, Int#, a #) t = casMutVar# (===) :: In...
0c5082e679b28dab8c2d01b5903bce6d05e4e040af6829d6661f9b9333d0d472
mzp/coq-ruby
declarations.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/kernel/declarations.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i This module defines the interna...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : declarations.mli ...
885d40fda72789228725f11b8f31c2e06ef7e7b079be65e1188b7d619aacfafd
flosell/lambdacd
stress_test.clj
(ns lambdacd.stress-test (:require [clojure.test :refer :all] [lambdacd.execution.core :as execution] [clojure.core.async :as async] [lambdacd.steps.control-flow :refer [in-parallel]] [lambdacd.util.internal.temp :as temp-utils] [lambdacd.stepsupport.output ...
null
https://raw.githubusercontent.com/flosell/lambdacd/e9ba3cebb2d5f0070a2e0e1e08fc85fc99ee7135/test/clj/lambdacd/stress_test.clj
clojure
(ns lambdacd.stress-test (:require [clojure.test :refer :all] [lambdacd.execution.core :as execution] [clojure.core.async :as async] [lambdacd.steps.control-flow :refer [in-parallel]] [lambdacd.util.internal.temp :as temp-utils] [lambdacd.stepsupport.output ...
ec7ff207272789d94bd9e0ade363de2064a1e05662ef9a65facab04b662fd94f
lspector/Clojush
digital_multiplier.clj
;; digital-multiplier.clj an example problem for clojush , a Push / PushGP system written in Clojure ;; ;; This is code for the digital multiplier problem, as defined in: , J.A. ; Miller , , " The Automatic Acquisition , Evolution and Reuse of Modules in Cartesian Genetic Programming , " Evolutionary ...
null
https://raw.githubusercontent.com/lspector/Clojush/685b991535607cf942ae1500557171a0739982c3/src/clojush/problems/boolean/digital_multiplier.clj
clojure
digital-multiplier.clj This is code for the digital multiplier problem, as defined in: Miller , , " The Automatic Acquisition , Evolution and in(2*n) and out0 through out(2*n) respectively. Borrowed from mux examples Define input and output instructions and symbols Define atom generators for the problem Crea...
an example problem for clojush , a Push / PushGP system written in Clojure Reuse of Modules in Cartesian Genetic Programming , " Evolutionary Computation , IEEE Transactions on , vol.12 , no.4 , pp.397,417 , Aug. 2008 The n - bit digital multiplier takes 2 n - bit numbers and outputs their product ....
4363edc4c6513e3ddc561dc4cd8b4ebb92257687cb4c8f8e12845bc6b6e1b88f
rvantonder/hack_parallel
fork.ml
* * Copyright ( c ) 2015 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the " hack " directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . ...
null
https://raw.githubusercontent.com/rvantonder/hack_parallel/c9d0714785adc100345835c1989f7c657e01f629/src/utils/fork.ml
ocaml
* Sometimes it is more convenient to clear buffers in the children (to * avoid the double writing of data) instead of the parent on a successful * fork. We store those callbacks here. You should always use this instead of Unix.fork, so that the callbacks get * invoked
* * Copyright ( c ) 2015 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the " hack " directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . ...
f67f77eeaf72ef4dbfed766f8ad856790d64a4dbebb0e54ec2a3c2740848c307
bobbae/gosling-emacs
mh-util.ml
; These utility functions return message number, file name, or path ; information. They are explicitly loaded from the root. (defun (&mh-get-msgnum (save-excursion (temp-use-buffer (concat "+" mh-folder)) (beginning-of-line) (while (= (following-char) ' ') (forward-character)) (set-mark) ...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/stanford/mh-util.ml
ocaml
; These utility functions return message number, file name, or path ; information. They are explicitly loaded from the root. (defun (&mh-get-msgnum (save-excursion (temp-use-buffer (concat "+" mh-folder)) (beginning-of-line) (while (= (following-char) ' ') (forward-character)) (set-mark) ...
bf701ef632215b352ee0b976f1ed0d04e5d303adc3900d64a4405b217107ea36
mwand/eopl3
drscheme-init.scm
drscheme-init.scm - compatibility file for DrScheme ;; usage: (require "drscheme-init.scm") ;;; makes structs printable, and provides basic functionality for ;;; testing. This includes pretty-printing and tracing. (module drscheme-init mzscheme ;; show the contents of define-datatype values (print-struct #t)...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter3/let-lang/drscheme-init.scm
scheme
usage: (require "drscheme-init.scm") makes structs printable, and provides basic functionality for testing. This includes pretty-printing and tracing. show the contents of define-datatype values safely apply procedure fn to a list of args. if successful, return (cons #t val) if eopl:error is invoked, returns (c...
drscheme-init.scm - compatibility file for DrScheme (module drscheme-init mzscheme (print-struct #t) (require (lib "pretty.ss")) (provide (all-from (lib "pretty.ss"))) (require (lib "trace.ss")) (provide (all-from (lib "trace.ss"))) (provide make-parameter) (provide run-experiment run-tes...
59de4ea604cc8fc1641c450ac23351176ccb2cafc5568e2daa7cecc5098041df
Brat-vseznamus/hi
Evaluator.hs
module HW3.Evaluator where import Codec.Compression.Zlib (bestCompression, compressWith, decompress, defaultCompressParams) import Codec.Compression.Zlib.Raw (CompressParams (CompressParams)) import Codec.Serialise (deserialise, serialise) import Control.Monad.Except (ExceptT, MonadError (throwError), MonadTrans (li...
null
https://raw.githubusercontent.com/Brat-vseznamus/hi/ce50c72046711f2acc63a71321a790e94cb9d051/hw3/src/HW3/Evaluator.hs
haskell
HiFunAnd -> computeLogic and l HiFunIf -> do let [conc', a, b] = l in case conc' of (HiValueBool cond) -> if not (sameConstr a b) then throwError HiErrorInvalidArgument else return $ if cond then a else b _ -> throwError HiErrorInvalidArgument
module HW3.Evaluator where import Codec.Compression.Zlib (bestCompression, compressWith, decompress, defaultCompressParams) import Codec.Compression.Zlib.Raw (CompressParams (CompressParams)) import Codec.Serialise (deserialise, serialise) import Control.Monad.Except (ExceptT, MonadError (throwError), MonadTrans (li...
854195b3d3e1514e6df66672c9b4a99e93c849db396ce4cac8d32a0066342160
emaphis/HtDP2e-solutions
ex083.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex083) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/1-Fixed-Size-Data/05-Adding-Structure/ex083.rkt
racket
about the language level of this file in a form that our tools can easily process. Design the function render, which consumes an Editor and produces an image. data definition An Editor is a structure: interpretation (make-editor s t) describes an editor whose visible text is (string-append s t) with the cursor d...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex083) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Ex . 83 : (require 2htdp/image) (require 2htdp/universe) (def...
43ef415f1e9744433fac8b605cab30b90c5c8fca07251b414ab4c9e6307e9c44
paracetamolo/elastic-mechanism
formats.ml
Copyright ( C ) 2014 , , All Rights Reserved . This file is distributed under the terms of the GNU General Public License version 3 or later . This file is distributed under the terms of the GNU General Public License version 3 or later. *) * Parser / Printer for geojson , gpx , plt formats . ...
null
https://raw.githubusercontent.com/paracetamolo/elastic-mechanism/a0e0a9cc56bccf23475300e563371ca8ae6479b0/formats.ml
ocaml
Type of a freshly parsed trace meta information attached to an elaborated trace, to be dumped parse a gpx and return a list of list of points latitude and longitude are in decimal degrees and converted to planar coordinates the head of the list are the most recent poi...
Copyright ( C ) 2014 , , All Rights Reserved . This file is distributed under the terms of the GNU General Public License version 3 or later . This file is distributed under the terms of the GNU General Public License version 3 or later. *) * Parser / Printer for geojson , gpx , plt formats . ...
22b2d17f05b51892c502d61a168f71a1f746dd761e9c7994262ddda25fd1edc3
weavejester/codox
core.clj
(ns codox.example2.core "Namespace with three parts") (defn inner [x])
null
https://raw.githubusercontent.com/weavejester/codox/bc41c2bbc270f52bceba095e57be30de80b892e0/example/src/clojure/codox/example2/core.clj
clojure
(ns codox.example2.core "Namespace with three parts") (defn inner [x])
f9b55066434217dde20b24145aa5b854e0c0c3876e5b9026d47ff12562749da8
huangjs/cl
generate.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Packages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (eval-when (load eval compile) (unless (find-package :generate) (make-package :generate :use (list (or (find-package :common-lisp) ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cs325/www.cs.northwestern.edu/academics/courses/325/programs/generate.lisp
lisp
Packages Module Dependencies Exports Pattern expresser functions Generator (GENERATE spec-concept [pattern]) => expression Given a specialized concept, such as that produced by patterns attached to the concepts and role fillers. Example: (null l) nil (if (consp l) (car l) l))))) .... > (...
(eval-when (load eval compile) (unless (find-package :generate) (make-package :generate :use (list (or (find-package :common-lisp) (find-package :lisp)))))) (in-package :generate) (require "tables") (use-package :tables) (require "mops") (use-package :mops) ...
d7233a19c98c66e24060661fb441bce134a209ec45aad78536d790038133eafe
archaelus/webmachine
skel_deps.erl
@author author < > YYYY author . %% @doc Ensure that the relatively-installed dependencies are on the code %% loading path, and locate resources relative %% to this application's path. -module(skel_deps). -author('author <>'). -export([ensure/0, ensure/1]). -export([get_base_dir/0, get_base_dir/1]). ...
null
https://raw.githubusercontent.com/archaelus/webmachine/1d30b6a1763d6a66664f3aff4c811753e7e1a5ed/priv/skel/src/skel_deps.erl
erlang
@doc Ensure that the relatively-installed dependencies are on the code loading path, and locate resources relative to this application's path. @doc List of project dependencies on the path. @doc Find new siblings paths relative to Module that aren't already on the code path. @doc Ensure that all e...
@author author < > YYYY author . -module(skel_deps). -author('author <>'). -export([ensure/0, ensure/1]). -export([get_base_dir/0, get_base_dir/1]). -export([local_path/1, local_path/2]). -export([deps_on_path/0, new_siblings/1]). ( ) - > [ ProjNameAndVers ] deps_on_path() -> F = fun (X, Acc) -> ...
69b83c0cea490b42d30da34ebce8b2b6147146464b9c5047fd5b2d9c6eed23fe
monadbobo/ocaml-core
core_string_test.ml
open Core.Std open OUnit;; open Quickcheck module S = String let str1 = "1234567890" let test = "core_string" >::: [ "slice" >:: (fun () -> "all" @? (S.slice str1 0 0 = str1); "ordinary" @? (S.slice str1 1 3= "23"); "neg1" @? (S.slice str1 0 (-1) = "123456789"); ...
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib_test/core_string_test.ml
ocaml
open Core.Std open OUnit;; open Quickcheck module S = String let str1 = "1234567890" let test = "core_string" >::: [ "slice" >:: (fun () -> "all" @? (S.slice str1 0 0 = str1); "ordinary" @? (S.slice str1 1 3= "23"); "neg1" @? (S.slice str1 0 (-1) = "123456789"); ...
fdad2b335d6ab4e0da3716fffc4bb899a722206e2a6fb78be67ccd652ce9be9f
techascent/tvm-clj
rpc.clj
(ns tvm-clj.impl.fns.rpc (:require [tvm-clj.impl.tvm-ns-fns :as tvm-ns-fns])) (tvm-ns-fns/export-tvm-functions "rpc")
null
https://raw.githubusercontent.com/techascent/tvm-clj/1088845bd613b4ba14b00381ffe3cdbd3d8b639e/src/tvm_clj/impl/fns/rpc.clj
clojure
(ns tvm-clj.impl.fns.rpc (:require [tvm-clj.impl.tvm-ns-fns :as tvm-ns-fns])) (tvm-ns-fns/export-tvm-functions "rpc")
70d59a1fe17d1301c21546a085dcd73555d9791e8c5ecea7c46d533566547777
moby/datakit
cI_ACL.mli
open Datakit_github (** Access control lists. *) type t = [ `Everyone | `Username of string | `Github_org of string | `Can_read of Repo.t | `Any of t list ] val everyone : t val username : string -> t val github_org : string -> t val can_read_github : string -> t val any : t list -> t
null
https://raw.githubusercontent.com/moby/datakit/e047e55a2dfa3aaec02398d7d7699f4f7afd2b47/ci/src/cI_ACL.mli
ocaml
* Access control lists.
open Datakit_github type t = [ `Everyone | `Username of string | `Github_org of string | `Can_read of Repo.t | `Any of t list ] val everyone : t val username : string -> t val github_org : string -> t val can_read_github : string -> t val any : t list -> t
4b53ad4214bc1428e79bc7db8f286b4c6c55c29b8bfde655941f072356988921
Helium4Haskell/helium
PMC15.hs
module PMC15 where main :: Bool main = not2 False not2 :: Bool -> Bool not2 True = False
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/runtimeerrors/PMC15.hs
haskell
module PMC15 where main :: Bool main = not2 False not2 :: Bool -> Bool not2 True = False
9765410b63ab90eaf671425e25289355c4036786d8929faa02d833de1a138def
xapi-project/xen-api
stream_vdi.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/20b0574fa0f60c72b5a8eeafbc84bb485ebb6c22/ocaml/xapi/stream_vdi.ml
ocaml
* Maximum range for sparseness query Supported checksum formats directory prefix in tar file size to send/recieve * Represent the progress made streaming a set of disks Write the checksum as a separate file * [descriptor_list] should be a list of non-overlapping extents, ordered from lowest offset to high...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
b44d2e28f77e26a81c1a8a4eab0cf2d90e1639e3f959131d965d55e097ddebf2
racket/web-server
filesystem-map-test.rkt
#lang racket/base (require rackunit net/url racket/list racket/path web-server/private/util racket/runtime-path web-server/dispatchers/filesystem-map) (provide filesystem-map-tests) (module+ test (require rackunit/text-ui) (run-tests filesystem-map-tests)) (de...
null
https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-test/tests/web-server/dispatchers/filesystem-map-test.rkt
racket
#lang racket/base (require rackunit net/url racket/list racket/path web-server/private/util racket/runtime-path web-server/dispatchers/filesystem-map) (provide filesystem-map-tests) (module+ test (require rackunit/text-ui) (run-tests filesystem-map-tests)) (de...
d854da08af14b5e41c84b818fecc605d7be2337dceb2e6e816e3c5c819bd0f87
Clojure2D/clojure2d-examples
sphere.clj
(ns rt4.in-one-weekend.ch12a.sphere (:require [rt4.in-one-weekend.ch12a.hittable :as hittable] [rt4.in-one-weekend.ch12a.interval :as interval] [rt4.in-one-weekend.ch12a.ray :as ray] [fastmath.core :as m] [fastmath.vector :as v])) (set! *warn-on-reflection* true) (set!...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/in_one_weekend/ch12a/sphere.clj
clojure
(ns rt4.in-one-weekend.ch12a.sphere (:require [rt4.in-one-weekend.ch12a.hittable :as hittable] [rt4.in-one-weekend.ch12a.interval :as interval] [rt4.in-one-weekend.ch12a.ray :as ray] [fastmath.core :as m] [fastmath.vector :as v])) (set! *warn-on-reflection* true) (set!...
98d4d3dfe2dee2f7edad4aa8a54755118c084419f2e2d9b9de69c9b311a55a9a
imrehg/ypsilon
scroll.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gdk scroll) (export gdk_scroll_direction_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libgdk-x11-...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/gdk/scroll.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon gdk scroll) (export gdk_scroll_direction_get_type) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libgdk-x11-...
c8aa510090308e216faea71d7052eb287fd59fc11599715d70af1100d5b1cbf6
AdaCore/why3
run.ml
open Format open Prover let pr_symbol fmt s = match s with | NLFVar_symbol v -> fprintf fmt "f%s" (Z.to_string v) | NLBruijn_symbol n -> fprintf fmt "v%s" (Z.to_string n) let rec pr_term fmt t = match t with | NLFVar_fo_term v -> fprintf fmt "f%s" (Z.to_string v) | NLBruijn_fo_term n -> f...
null
https://raw.githubusercontent.com/AdaCore/why3/e0dc747dcbdbf58ddad668a234c7d05defc65cee/examples/prover/run.ml
ocaml
too long -> sat ? run_test "zenon6" (Prover.zenon6 ()); suppressing quantified variables from the env assert false mk_not f ? mk_not f ? mk_not f ?
open Format open Prover let pr_symbol fmt s = match s with | NLFVar_symbol v -> fprintf fmt "f%s" (Z.to_string v) | NLBruijn_symbol n -> fprintf fmt "v%s" (Z.to_string n) let rec pr_term fmt t = match t with | NLFVar_fo_term v -> fprintf fmt "f%s" (Z.to_string v) | NLBruijn_fo_term n -> f...
5177210955f436588158563fea2d92790c2f44789626d425995d079c18efdb14
tweag/hyperion
Measurement.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Hyperion.Measurement ( Measurement(..) , batchSize , duration , Sample(..) , measurements ) where import Data.Aeson (FromJSON, ToJSON) im...
null
https://raw.githubusercontent.com/tweag/hyperion/4b123d51cbd4d94891fa1097b5f52bac19839357/src/Hyperion/Measurement.hs
haskell
# UNPACK # # UNPACK #
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Hyperion.Measurement ( Measurement(..) , batchSize , duration , Sample(..) , measurements ) where import Data.Aeson (FromJSON, ToJSON) im...
ed2ecd647f3cb5ee3c1bfb6f8feab8e02e847c03943649ad7e27a360e114d1f9
qfpl/reflex-tutorial
Config.hs
# LANGUAGE TemplateHaskell # module Util.Grid.Config ( GridConfig(..) , gcRows , gcColumns , gcSquareSize , gcTextWidth , gcTextGap , defaultGridConfig , gridWidth , gridHeight , gridXOffset , gridYOffset , wholeWidth , wholeHeight ) where import Control.Lens.TH data GridConfig = GridC...
null
https://raw.githubusercontent.com/qfpl/reflex-tutorial/07c1e6fab387cbeedd031630ba6a5cd946cc612e/code/grid/src/Util/Grid/Config.hs
haskell
# LANGUAGE TemplateHaskell # module Util.Grid.Config ( GridConfig(..) , gcRows , gcColumns , gcSquareSize , gcTextWidth , gcTextGap , defaultGridConfig , gridWidth , gridHeight , gridXOffset , gridYOffset , wholeWidth , wholeHeight ) where import Control.Lens.TH data GridConfig = GridC...
be02a8494f85626a904edd1c38fb7f800321bf48e98c9d13cc063025cc3713b0
kindl/Hypatia
Sorting.hs
module Sorting where import Syntax import Data.List(partition) import Data.Generics.Uniplate.Data(transformBiM, para) import Data.Foldable(foldMap') import qualified Data.HashSet as Set -- Sorting of declarations in let bindings and modules sortDeclsMod (ModuleDeclaration modName imports decls) = let f (...
null
https://raw.githubusercontent.com/kindl/Hypatia/25f73b029e8ea0045c833cb8719ce2dd1d86d4f2/src/Sorting.hs
haskell
Sorting of declarations in let bindings and modules Only look at the dependency on local variables Remove recursive dependency on itself they have no value dependencies but define an id here these ids get marked as done which allows cycles Gather variables used in an expression the dependencies of the child expr...
module Sorting where import Syntax import Data.List(partition) import Data.Generics.Uniplate.Data(transformBiM, para) import Data.Foldable(foldMap') import qualified Data.HashSet as Set sortDeclsMod (ModuleDeclaration modName imports decls) = let f (LetExpression ds e) = fmap (flip LetExpress...
23924d4f83c4badb8508fdf8e704c1b98a79cb62ba0480cbd1d94dfa2e8c7881
penpot/penpot
button_link.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.components.button-link (:require [app.util.keyboard :as kbd] [rumext.v2 :as mf])) (mf...
null
https://raw.githubusercontent.com/penpot/penpot/ac7cb3c8c735106efedc8352dcafc631fd922102/frontend/src/app/main/ui/components/button_link.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.components.button-link (:require [app.util.keyboard :as kbd] [rumext.v2 :as mf])) (mf/defc button-link [{:keys [action...
f323f539ccf84ba64d15d26c3c20fa92837ec85c4dc4a1854274c3195e7dee37
philc/watchman
migrations.clj
(ns lobos.migrations "Database migrations using the Lobos framework." (:refer-clojure :exclude [alter drop bigint boolean char double float time]) (:use (lobos [migration :only [defmigration]] core schema config) [clojure.java.shell :only [sh]] Some of 's functions ( like table ) collide...
null
https://raw.githubusercontent.com/philc/watchman/15bbe618c11784ec1f6460d322ffa935cce06708/src/lobos/migrations.clj
clojure
down, up, or unknown.
(ns lobos.migrations "Database migrations using the Lobos framework." (:refer-clojure :exclude [alter drop bigint boolean char double float time]) (:use (lobos [migration :only [defmigration]] core schema config) [clojure.java.shell :only [sh]] Some of 's functions ( like table ) collide...
bc156fb06248d9d67b848fb939dd9d8a278bfa0f7f30c39068fe2659f2a66a80
haskell/statistics
ChiSquared.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE DeriveDataTypeable , DeriveGeneric # -- | -- Module : Statistics.Distribution.ChiSquared Copyright : ( c ) 2010 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : portable -- -- The chi-squared distribution. This is a continuous p...
null
https://raw.githubusercontent.com/haskell/statistics/a2aa25181e50cd63db4a785c20c973a3c4dd5dac/Statistics/Distribution/ChiSquared.hs
haskell
# LANGUAGE OverloadedStrings # | Module : Statistics.Distribution.ChiSquared License : BSD3 Maintainer : Stability : experimental Portability : portable The chi-squared distribution. This is a continuous probability distribution of sum of squares of k independent standard normal distributions. It's ...
# LANGUAGE DeriveDataTypeable , DeriveGeneric # Copyright : ( c ) 2010 module Statistics.Distribution.ChiSquared ( ChiSquared , chiSquaredNDF , chiSquared , chiSquaredE ) where import Control.Applicative import Data.Aeson (FromJSON(..), ToJSON, Value(..), (.:)) ...
4d7ea10372bb473c4ca6a05576e6b42d5e76728ee72297c348b000cc4f1e096b
richcarl/erlguten
eg_mk_hyphen.erl
%%========================================================================== Copyright ( C ) 2003 %% %% Permission is hereby granted, free of charge, to any person obtaining a %% copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including ...
null
https://raw.githubusercontent.com/richcarl/erlguten/debd6120907e5e18b4bca5fbd5bdd9cb653f282d/src/eg_mk_hyphen.erl
erlang
========================================================================== Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, following conditions: The above cop...
Copyright ( C ) 2003 " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to the in all copies or substantial portions of the Software . THE SOFTWAR...
4ac9cb15fa4a424eb49a5274ee5f0d2c7a20101d4d790cef33e203e8eabe81b4
xvw/muhokama
context.ml
open Lib_common open Lib_crypto module Migration_map = Map.Make (Int) type t = Migration.t Migration_map.t let equal = Migration_map.equal Migration.equal let store_migration migrations_dir filepath ctx label given_index previous_hash = let open Effect in let* jsonm = read_migration_file_to_assoc migrations_dir ...
null
https://raw.githubusercontent.com/xvw/muhokama/dcfa488169677ff7f1a3ed71182524aeb0b13c53/lib/migration/context.ml
ocaml
open Lib_common open Lib_crypto module Migration_map = Map.Make (Int) type t = Migration.t Migration_map.t let equal = Migration_map.equal Migration.equal let store_migration migrations_dir filepath ctx label given_index previous_hash = let open Effect in let* jsonm = read_migration_file_to_assoc migrations_dir ...
aa7dddd0d4c62d7dbecda0a2a37b3188ab4642cfbfe9ebf798d4145bd7060579
phadej/insert-ordered-containers
Internal.hs
{-# LANGUAGE GADTs #-} module Data.HashMap.InsOrd.Internal where import Prelude hiding (filter, foldr, lookup, map, null) import Control.Applicative ((<**>)) ------------------------------------------------------------------------------- SortedAp --------------------------------------------------------------------...
null
https://raw.githubusercontent.com/phadej/insert-ordered-containers/08538a422c3282c2300a947fe13dd08301b830b7/src/Data/HashMap/InsOrd/Internal.hs
haskell
# LANGUAGE GADTs # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Sort using insertion sort Hopefully it's fast enough for where we need it otherwise: -sorting.html also related Free applicative which re-o...
module Data.HashMap.InsOrd.Internal where import Prelude hiding (filter, foldr, lookup, map, null) import Control.Applicative ((<**>)) SortedAp Mostly from ` free ` package . data SortedAp f a where Pure :: a -> SortedAp f a SortedAp :: !Int -> f a -> SortedAp f (a -> b) -> SortedAp f b instance ...
a1ad777d5d658dd5fdb4492f5fff73acf67346da3c96170ab4df8207dc6c1281
ConsenSys/constellation
Test.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE StrictData #-} module Constellation.Node.Storage.Sqlite.Test where import ClassyPrelude import System.IO.Temp (withSystemTempDirectory) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCaseSteps) import Constellation.Node.Storage.Sqlite (sqliteStorage) i...
null
https://raw.githubusercontent.com/ConsenSys/constellation/8fcd2d38b097da5242f511d2fb2149a9764f2f7b/test/Constellation/Node/Storage/Sqlite/Test.hs
haskell
# LANGUAGE StrictData #
# LANGUAGE NoImplicitPrelude # module Constellation.Node.Storage.Sqlite.Test where import ClassyPrelude import System.IO.Temp (withSystemTempDirectory) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCaseSteps) import Constellation.Node.Storage.Sqlite (sqliteStorage) import Constellation.Node.Sto...
4ba5ae4e11b9d9b67f75f465e0b1e3c3da30ce426c0c6161f246f925269517dc
ocaml-multicore/tezos
michelson_v1_gas.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/michelson_v1_gas.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
0b464c23bff0fae7aa8f0d51bf575f682846a506f793cafa7fbe67c446f75663
racket/math
chebyshev.rkt
#lang typed/racket/base (require (for-syntax racket/base syntax/parse) racket/vector "../../base.rkt" "../../bigfloat.rkt" "../flonum/flonum-functions.rkt" "../unsafe.rkt") (provide chebyshev-poly chebyshev-poly? chebyshev-poly-min chebyshev-poly-max chebyshev-poly-coefs ...
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/polynomial/chebyshev.rkt
racket
#lang typed/racket/base (require (for-syntax racket/base syntax/parse) racket/vector "../../base.rkt" "../../bigfloat.rkt" "../flonum/flonum-functions.rkt" "../unsafe.rkt") (provide chebyshev-poly chebyshev-poly? chebyshev-poly-min chebyshev-poly-max chebyshev-poly-coefs ...
9fab6ce849a69c114bbfae3da247e32df21f60780a443c6853a4c1dcb9b79628
MinaProtocol/mina
non_zero_curve_point.ml
[%%import "/src/config.mlh"] open Core_kernel open Snark_params.Tick [%%ifdef consensus_mechanism] let parity y = Bigint.(test_bit (of_field y) 0) [%%else] let parity y = Field.parity y [%%endif] let gen_uncompressed = Quickcheck.Generator.filter_map Field.gen_uniform ~f:(fun x -> let open Option.Let_syn...
null
https://raw.githubusercontent.com/MinaProtocol/mina/d6436be74fd3fa5e38bbf95ad2f2c6dfd10cfe37/src/lib/non_zero_curve_point/non_zero_curve_point.ml
ocaml
module with same type t as Stable below, to build functor argument for compatibility with legacy Base58Check serialization snarky-dependent end snarky-dependent as for yojson, use the Base58check-based sexps from the compressed representation so we can make sets of public keys snarky-dependent end snarky...
[%%import "/src/config.mlh"] open Core_kernel open Snark_params.Tick [%%ifdef consensus_mechanism] let parity y = Bigint.(test_bit (of_field y) 0) [%%else] let parity y = Field.parity y [%%endif] let gen_uncompressed = Quickcheck.Generator.filter_map Field.gen_uniform ~f:(fun x -> let open Option.Let_syn...
e12ecf1879054a27627da3cd5c395c65145132d7dad3e74ce172ffee3f30b373
blynn/compiler
Parser2.hs
FFI across multiple modules . -- Rewrite with named fields. module Parser where import Base import Ast import Map Parser . data ParserState = ParserState { readme :: [(Char, (Int, Int))] , landin :: String , indents :: [Int] , precs :: Map String (Int, Assoc) } data Parser a = Parser { getParser :: Parse...
null
https://raw.githubusercontent.com/blynn/compiler/b9fe455ad4ee4fbabe77f2f5c3c9aaa53cffa85b/inn/Parser2.hs
haskell
Rewrite with named fields.
FFI across multiple modules . module Parser where import Base import Ast import Map Parser . data ParserState = ParserState { readme :: [(Char, (Int, Int))] , landin :: String , indents :: [Int] , precs :: Map String (Int, Assoc) } data Parser a = Parser { getParser :: ParserState -> Either String (a, Pa...
ee61f46e65be7e5b63748ddcc86bfdd1ead1b3f2fb1a08c819f715442b215282
wavejumper/rehook
project.clj
(defproject rehook/dom "2.1.11" :description "React component DSL for Clojurescript" :url "" :dependencies [[org.clojure/clojure "1.10.1" :scope "provided"] [org.clojure/clojurescript "1.10.520" :scope "provided"]] :source-paths ["src"])
null
https://raw.githubusercontent.com/wavejumper/rehook/c1a4207918827f4b738cdad9a9645385e5e10ff4/rehook-dom/project.clj
clojure
(defproject rehook/dom "2.1.11" :description "React component DSL for Clojurescript" :url "" :dependencies [[org.clojure/clojure "1.10.1" :scope "provided"] [org.clojure/clojurescript "1.10.520" :scope "provided"]] :source-paths ["src"])
a4bc9d426ea303e30e2f090c39e4d32ae575ea1c0dd885f51ca5c93b8e59195f
ztellman/lamina
queue.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by...
null
https://raw.githubusercontent.com/ztellman/lamina/07c3fb84fdb3f4a4892c0bdbe3abf28788bdeb29/src/lamina/time/queue.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns lamina.time.queue (:use [lamina.core.utils] [potemkin]) (:import [java.util.concurrent ThreadFactory TimeUnit ThreadPoolExecutor ScheduledThreadPoolExecutor LinkedBlockingQueue ConcurrentLinkedQueue ConcurrentSkipListS...
0dac97840bb1ae7d7b3f02be293023d3417938231c2feb5722dee5c826291487
anmonteiro/ocaml-h2
stream.ml
---------------------------------------------------------------------------- * Copyright ( c ) 2019 * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1...
null
https://raw.githubusercontent.com/anmonteiro/ocaml-h2/fceaad2cfa198f090b47d6d72cb1c4ea9dee4a07/lib/stream.ml
ocaml
Received an RST_STREAM frame from the peer. When a stream is closed, we may want to keep it around in the hash * table for a while (e.g. to know whether this stream was reset by the * peer - some error handling code depends on that). We start with a * default value, and on every writer yie...
---------------------------------------------------------------------------- * Copyright ( c ) 2019 * * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are met : * * 1...
d29e70335ac4105832bcdeac985ae4a04366a9a9f83d696939aea42ffb97eba2
Flexiana/xiana-template
project.clj
(defproject {{sanitized-name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :min-lein-version "2.0.0" :dependencies [[com.flexiana/framework "0.5.0-rc3"] [piotr-yuxuan/closeable-map "0.36.2"] [org.clojure/tools.namespace "1.3.0"] [thheller/shadow-cljs...
null
https://raw.githubusercontent.com/Flexiana/xiana-template/a19a967de1dcf47f95154d27033270cdbdba4b68/resources/leiningen/new/xiana/project.clj
clojure
(defproject {{sanitized-name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :min-lein-version "2.0.0" :dependencies [[com.flexiana/framework "0.5.0-rc3"] [piotr-yuxuan/closeable-map "0.36.2"] [org.clojure/tools.namespace "1.3.0"] [thheller/shadow-cljs...
06d68091a29ddaec8527802579ffa8e089dd24fcba56f4a8a4b8b4f0bb97759d
sfahlman/scone
bootstrap.lisp
;;; -*- Mode:Lisp -*- ;;; *************************************************************************** Scone Knowledge Representation System Bootstrap KB definitions . ;;; Author & Maintainer : ;;; *************************************************************************** Copyright ( C ) 2003 - 2014 , Carneg...
null
https://raw.githubusercontent.com/sfahlman/scone/f519dba45882a201edaa3bf6bb80f52e4940f3ec/kb/bootstrap.lisp
lisp
-*- Mode:Lisp -*- *************************************************************************** *************************************************************************** distributed with the software. The license can also be found at -2.0. Unless required by applicable law or agreed to in writing, IS" BASIS...
Scone Knowledge Representation System Bootstrap KB definitions . Author & Maintainer : Copyright ( C ) 2003 - 2014 , Carnegie Mellon University . The software is made available to the public under the Apache 2.0 open source license . A copy of this license is software distributed under the License i...
57c67b21775103b23081f7a83486afa30d8c685ffbab8b518e7bf61fb2e64d67
qitab/ace.core
fx.lisp
Copyright 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . ;;; Arithmetic and boolean operations on fixnums. ;;; ;;; Using the functions may help to optimize code. ;;; On the other side, it prevents the compiler to do some optim...
null
https://raw.githubusercontent.com/qitab/ace.core/e6eb21ff67b0c5eaec21c9b543b6dce18d7c8e6d/fx.lisp
lisp
license that can be found in the LICENSE file or at . Arithmetic and boolean operations on fixnums. Using the functions may help to optimize code. On the other side, it prevents the compiler to do some optimizations in case the In this case the compiler may generate boxing code. There is no assumption that the...
Copyright 2020 Google LLC Use of this source code is governed by an MIT - style the operation could be performed on un - boxed machine words ( e.g. 64 bit words ) . The operations are optimized unless the code is compiled with the DBG feature . (cl:defpackage #:ace.core.fx (:use #:ace.core.defun #:a...
edd3420b6976f54fbf81f93f754bebfab9a43cc32a4f81e380677eece8811c4d
MastodonC/kixi.datastore
event_handler.clj
(ns kixi.datastore.filestore.event-handler (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [medley.core :as m] [taoensso.timbre :as log] [kixi.datastore.schemastore.utils :as sh] [kixi.datastore.filestore :as fs :refer [FileStoreUploadC...
null
https://raw.githubusercontent.com/MastodonC/kixi.datastore/f33bba4b1fdd8c56cc7ac0f559ffe35254c9ca99/src/kixi/datastore/filestore/event_handler.clj
clojure
(ns kixi.datastore.filestore.event-handler (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [medley.core :as m] [taoensso.timbre :as log] [kixi.datastore.schemastore.utils :as sh] [kixi.datastore.filestore :as fs :refer [FileStoreUploadC...
1e5c22fd0b3908885fd22652a460b3b289981f64fd33cb4318e68cbf24fa3192
semilin/layoup
Wreathy.lisp
(MAKE-LAYOUT :NAME "Wreathy" :MATRIX (APPLY #'KEY-MATRIX '("qgdfvjluo," "nsthywreai" "bcmpkzx/'.")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/Wreathy.lisp
lisp
(MAKE-LAYOUT :NAME "Wreathy" :MATRIX (APPLY #'KEY-MATRIX '("qgdfvjluo," "nsthywreai" "bcmpkzx/'.")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
4a59520cb80ea18996f2773edbc614f4d111b5304ff5766226187f7a6aa9b8ca
HealthSamurai/dojo.clj
model_test.clj
(ns app.events.model-test (:require [app.events.model :as sut] [server] [clojure.test :refer :all])) (deftest test-events (server/ensure-server) )
null
https://raw.githubusercontent.com/HealthSamurai/dojo.clj/94922640f534897ab2b181c608b54bfbb8351d7b/ui/test/app/events/model_test.clj
clojure
(ns app.events.model-test (:require [app.events.model :as sut] [server] [clojure.test :refer :all])) (deftest test-events (server/ensure-server) )
0af3ea21ca9ef94ed0ea5ce99352d2b9e7d66a822b12631e49d88ee5f64b1398
clojure-interop/java-jdk
XPathFactoryConfigurationException.clj
(ns javax.xml.xpath.XPathFactoryConfigurationException "XPathFactoryConfigurationException represents a configuration error in a XPathFactory environment." (:refer-clojure :only [require comment defn ->]) (:import [javax.xml.xpath XPathFactoryConfigurationException])) (defn ->x-path-factory-configuration-excepti...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/xpath/XPathFactoryConfigurationException.clj
clojure
(ns javax.xml.xpath.XPathFactoryConfigurationException "XPathFactoryConfigurationException represents a configuration error in a XPathFactory environment." (:refer-clojure :only [require comment defn ->]) (:import [javax.xml.xpath XPathFactoryConfigurationException])) (defn ->x-path-factory-configuration-excepti...
a1247f3f99b053824945f751bfde5ee833322da3c1588600a14abcccdd25c0f9
mbutterick/aoc-racket
input-b.rkt
#lang reader "lang.rkt" 35651584, 10010000000110000
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2016/day16/input-b.rkt
racket
#lang reader "lang.rkt" 35651584, 10010000000110000
7516c403660b76e8cd31bbb07168c4da11a138cf47f63533f8a5b608bdf551c5
pheaver/netlist-verilog
Examples.hs
-------------------------------------------------------------------------------- -- | -- Module : Language.Netlist.Examples Copyright : ( c ) Signali Corp. 2010 -- License : All rights reserved -- Maintainer : -- Stability : experimental -- Portability : non-portable -- -- Examples of Net...
null
https://raw.githubusercontent.com/pheaver/netlist-verilog/9bc9e7864f64fadf74dffd628243cc2543abcd8d/netlist/Language/Netlist/Examples.hs
haskell
------------------------------------------------------------------------------ | Module : Language.Netlist.Examples License : All rights reserved Stability : experimental Portability : non-portable Examples of Netlist AST. ------------------------------------------------------------------------...
Copyright : ( c ) Signali Corp. 2010 Maintainer : # LANGUAGE ParallelListComp # module Language.Netlist.Examples where import Language.Netlist.AST import Language.Netlist.Util t :: Module t = Module "foo" (f ins) (f outs) [] ds where f xs = [ (x, makeRange Down sz) | (x, sz) <- xs ] ins = [...
f590ca77d51becb30e1d2d97cd6df0b679f966b6d4da018add289845f877a3a1
open-telemetry/opentelemetry-erlang
otel_resource_SUITE.erl
-module(otel_resource_SUITE). -compile(export_all). -include_lib("stdlib/include/assert.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("opentelemetry_api/include/opentelemetry.hrl"). -include_lib("opentelemetry_semantic_conventions/include/resource.hrl"). -include("otel_span.hrl"). -include("otel_te...
null
https://raw.githubusercontent.com/open-telemetry/opentelemetry-erlang/1c7c9150f0a7e290d5e00e5c62d49c32a988f116/apps/opentelemetry/test/otel_resource_SUITE.erl
erlang
TODO: negative testing. What a valid value is is still in flux so nothing bothering to write tests to limit what can be a value only have them become valid values. sort because this is created from a map and need to make sure the order is always the same when we do the assertion
-module(otel_resource_SUITE). -compile(export_all). -include_lib("stdlib/include/assert.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("opentelemetry_api/include/opentelemetry.hrl"). -include_lib("opentelemetry_semantic_conventions/include/resource.hrl"). -include("otel_span.hrl"). -include("otel_te...
57f8a62f72ef1f1a4538078a8110470aeb91fd07ad85d6788b6a37ed3e16f099
input-output-hk/plutus-apps
Error.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DerivingVia #-} # LANGUAGE LambdaCase # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Plutus.Contract.Error ( ContractError(..) , AsContractError(..) ...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/006f4ae4461094d3e9405a445b0c9cf48727fa81/plutus-contract/src/Plutus/Contract/Error.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DerivingVia # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # | An error | An error emitted when an 'Assertion' fails. | This lets people use 'T.Text' as their error type. ^ The endpoint description which the decoding error occurred from ^ The endpoint ...
# LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # module Plutus.Contract.Error ( ContractError(..) , AsContractError(..) , MatchingError(..) , AsMatchingError(..) , AssertionError(..) , AsAssertionError(..) ) where import Control.Lens (prism') ...
7d509a1d3c4bfd1bb73f1bedadf9ff2d32ce870bb700e4c5a7e19b24876b7ace
RefactoringTools/HaRe
TiDs.hs
-- Type checking sequences of declarations module TiDs where import Data.List(nub,(\\),intersect,partition) import Data.Maybe(mapMaybe,fromMaybe) import HasBaseStruct(HasBaseStruct(..),GetBaseStruct(..)) import SrcLoc1(SrcLoc,HasSrcLoc(..)) import HsLiteral(HsLiteral) import HsDeclStruct import HsPatStruct(PI) import ...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/TI/TiDs.hs
haskell
Type checking sequences of declarations - } sccD ds = [ds] -- dummy How to type check a (possibly recursive) group of declarations: Recursive type synonyms and suprtclass relations can cause the type checker to loop, so start by checking... Infer the kinds of all class/type identifers, including type variables. ...
module TiDs where import Data.List(nub,(\\),intersect,partition) import Data.Maybe(mapMaybe,fromMaybe) import HasBaseStruct(HasBaseStruct(..),GetBaseStruct(..)) import SrcLoc1(SrcLoc,HasSrcLoc(..)) import HsLiteral(HsLiteral) import HsDeclStruct import HsPatStruct(PI) import TI hiding (Subst) import TiNameMaps import ...
b3710918652577495afe0863173b7f7dd4edb3b3508985c3d745f1f1afa136ed
ocaml-gospel/cameleer
cli.ml
open Format let fname = ref None let debug = ref false let batch = ref false let extract = ref false let prover = ref None let path = Queue.create () let version = "0.1~dev" let spec = [ ( "-L", Arg.String (fun s -> Queue.add s path), "add <dir> to the search path" ); ("--debug", Arg.Unit (fun (...
null
https://raw.githubusercontent.com/ocaml-gospel/cameleer/11730187347b171bee4c12ff33b049a476af6b2d/bin/cli.ml
ocaml
open Format let fname = ref None let debug = ref false let batch = ref false let extract = ref false let prover = ref None let path = Queue.create () let version = "0.1~dev" let spec = [ ( "-L", Arg.String (fun s -> Queue.add s path), "add <dir> to the search path" ); ("--debug", Arg.Unit (fun (...
e0795f38488ff3cb078146947eaa060e729002daf42048c90c523a5678a0ac89
massemanet/gtknode
hello.erl
%%%------------------------------------------------------------------- %%% File : hello.erl Author : Mats < locmacr@mwlx084 > %%% Description : %%% Created : 27 Nov 2006 by Mats < locmacr@mwlx084 > %%%------------------------------------------------------------------- -module(hello). -export([start/0]). -d...
null
https://raw.githubusercontent.com/massemanet/gtknode/69493096cea0948aa591868d824a5d8e769250fd/priv/examples/hello/hello.erl
erlang
------------------------------------------------------------------- File : hello.erl Description : -------------------------------------------------------------------
Author : Mats < locmacr@mwlx084 > Created : 27 Nov 2006 by Mats < locmacr@mwlx084 > -module(hello). -export([start/0]). -define(G(C,A),gtknode:cmd(hello,C,A)). start() -> gtknode:start(hello), Win = ?G('Gtk_window_new',['GTK_WINDOW_TOPLEVEL']), But = ?G('Gtk_button_new_with_label',["butt"]), ?G('Gtk_...
eea2caf5504ce59ec76bc39772b282dd5d21100b328277972451e51f30267cec
lispbuilder/lispbuilder
rendering.lisp
(in-package #:rm)
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-openrm/openrm/rendering.lisp
lisp
(in-package #:rm)
30418e005d46c8e61a503ec0df5ff1d349e6003637d1ccdfb8e066e76e723ac7
wireless-net/erlang-nommu
sasl_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2011 - 2014 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/sasl/test/sasl_SUITE.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2011 - 2014 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(sasl_SUITE). -include_lib("common_t...
6c43c50f745cac4b706c1f23b81b5d3e439bf016ca06ced6883284c8259fd269
kaizhang/Taiji
ATACSeq.hs
-------------------------------------------------------------------------------- -- ATAC-seq data processing -------------------------------------------------------------------------------- # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Taiji.Component.ATACSeq...
null
https://raw.githubusercontent.com/kaizhang/Taiji/f6a050ba0ee6acb6077435566669279455cef350/Taiji/src/Taiji/Component/ATACSeq.hs
haskell
------------------------------------------------------------------------------ ATAC-seq data processing ------------------------------------------------------------------------------ # LANGUAGE OverloadedStrings # remoteParam .= "-pe smp 4"
# LANGUAGE FlexibleContexts # # LANGUAGE TemplateHaskell # module Taiji.Component.ATACSeq (builder) where import Bio.Data.Bed (chrom, chromEnd, chromStart) import Bio.Data.Experiment.Types import Bio.Data.Experiment.Utils import Bio.Pipeline.NGS import ...
30cb523b6db6b60d668ed32da365a6e8625e138fadb84ec09cbf80cd815e9b11
ashinn/alschemist
opcodes.scm
opcodes.scm - Sassy 's opcode parsers and code generators Copyright ( C ) 2005 ; This library is free software; you can redistribute it and/or ; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your o...
null
https://raw.githubusercontent.com/ashinn/alschemist/13d7105c1291a881b8d8d69c8e60e045428c04b1/jkode/sassy/opcodes.scm
scheme
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See t...
opcodes.scm - Sassy 's opcode parsers and code generators Copyright ( C ) 2005 version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin St , Fifth Floor , Boston , MA 02110 - 1301 USA ...
f1a2db89b6544228613c954e4c9d1475899b877a6f469bdd4f0b9b0adddb9a82
ZHaskell/z-io
ProcessSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Z.IO.ProcessSpec where import Control.Concurrent import Control.Monad import Control.Monad.IO.Class import Data.Bits import Z.IO.Buffered import Z.IO.Process import Z.IO.Resource import Z.IO.FileSy...
null
https://raw.githubusercontent.com/ZHaskell/z-io/dcb21d553661dec68849306a9884c82d000e13d0/test/Z/IO/ProcessSpec.hs
haskell
# LANGUAGE OverloadedStrings # clean up file
module Z.IO.ProcessSpec where import Control.Concurrent import Control.Monad import Control.Monad.IO.Class import Data.Bits import Z.IO.Buffered import Z.IO.Process import Z.IO.Resource import Z.IO.FileSystem import Test.Hspec im...
35567814ba49af9bc764af6c4c21eda0532b73300717573fe22780d1d9d7fb1f
oshyshko/uio
gz.clj
(ns uio.codecs.gz (:require [uio.impl :refer [ext->is->is ext->os->os]]) (:import (java.util.zip GZIPInputStream GZIPOutputStream))) (defmethod ext->is->is :gz [_] #(GZIPInputStream. %)) (defmethod ext->os->os :gz [_] #(GZIPOutputStream. %))
null
https://raw.githubusercontent.com/oshyshko/uio/4e73ec5da0be1764e449ccc86e567ec701862332/src/uio/codecs/gz.clj
clojure
(ns uio.codecs.gz (:require [uio.impl :refer [ext->is->is ext->os->os]]) (:import (java.util.zip GZIPInputStream GZIPOutputStream))) (defmethod ext->is->is :gz [_] #(GZIPInputStream. %)) (defmethod ext->os->os :gz [_] #(GZIPOutputStream. %))
ade1566a8538a3a98ccb928133b565b56f7562941bb8bc1a53c42ad449b99666
fogus/trammel
ref_tests.clj
ref_tests.clj -- Contracts programming library for Clojure by Mar 30 , 2012 Copyright ( c ) , 2010 - 2012 . 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 COPYING the root of this ;;...
null
https://raw.githubusercontent.com/fogus/trammel/8d5cd1144af105d8027fab6161191814877331b6/test/fogus/me/ref_tests.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file COPYING the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
ref_tests.clj -- Contracts programming library for Clojure by Mar 30 , 2012 Copyright ( c ) , 2010 - 2012 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns fogus.me.ref-tests (:use [trammel.core]) (:use [clojure.test :only [deftest is]])) (...
dd520a4b75ba87b2b12b198c47a16bab74e7bf39e6a9481d23c905873e58ce75
haskell-tools/haskell-tools
TypeFamily.hs
# LANGUAGE TypeFamilies # module Decl.TypeFamily where type family Array a :: * type instance Array () = Int
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/Decl/TypeFamily.hs
haskell
# LANGUAGE TypeFamilies # module Decl.TypeFamily where type family Array a :: * type instance Array () = Int
c302009c8f1ed6dd876d9e42defa4f158eb7aae6f4ede58696846eee3a82a2de
threatgrid/ctia
schemas.clj
(ns ctia.store-service.schemas (:require [schema.core :as s])) (s/defschema StoreID "An identifier for a store." (s/pred simple-keyword?)) (s/defschema Store (s/pred map?)) (s/defschema GetStoreFn "ctia.store-service/get-store in the service graph." (s/=> Store (s/named StoreID 'store-id))) (s/d...
null
https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/src/ctia/store_service/schemas.clj
clojure
(ns ctia.store-service.schemas (:require [schema.core :as s])) (s/defschema StoreID "An identifier for a store." (s/pred simple-keyword?)) (s/defschema Store (s/pred map?)) (s/defschema GetStoreFn "ctia.store-service/get-store in the service graph." (s/=> Store (s/named StoreID 'store-id))) (s/d...
31bd6c7bed3932cd3af11775ff95b3c7f1363ecbfff22bcf277c21b59f604f53
mirage/ocaml-github
tags.ml
open Lwt open Printf let get_auth_token_from_jar auth_id = Github_cookie_jar.init () >>= fun jar -> Github_cookie_jar.get jar ~name:auth_id >>= function | Some auth -> return auth | None -> Lwt.fail (Failure ("id '"^auth_id^"' not in cookie jar")) let get_tags_and_times ~user ~repo = let stream = Github...
null
https://raw.githubusercontent.com/mirage/ocaml-github/5ff0db61fe034e2bb9c76eb633727fca67960ecd/lib_test/tags.ml
ocaml
open Lwt open Printf let get_auth_token_from_jar auth_id = Github_cookie_jar.init () >>= fun jar -> Github_cookie_jar.get jar ~name:auth_id >>= function | Some auth -> return auth | None -> Lwt.fail (Failure ("id '"^auth_id^"' not in cookie jar")) let get_tags_and_times ~user ~repo = let stream = Github...
7dda4fbd6f0bd87d5d3ac57b273a0ca89e8e41ae0a5257b46e304220e20f7f55
okuoku/nausicaa
compile-all.ikarus.sps
;;; Part of : Nausicaa / Pango Contents : compile script for Ikarus Scheme Date : Sat Oct 31 , 2009 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( c ) 2009 < > ;;; ;;;This program is free software: you can redistribute it and/or modify ;;;it under the terms of the GNU General Public License as published by the Free Softw...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/pango/src/libraries/compile-all.ikarus.sps
scheme
Abstract This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warra...
Part of : Nausicaa / Pango Contents : compile script for Ikarus Scheme Date : Sat Oct 31 , 2009 Copyright ( c ) 2009 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License (impor...
b064eff37e6eb4e4b8edcc620ba22abb341bfb781d165a7875ee100eafd80357
ltoth/unison
uitext.mli
Unison file synchronizer : src / uitext.mli Copyright 1999 - 2010 , ( see COPYING for details ) module Body : Uicommon.UI
null
https://raw.githubusercontent.com/ltoth/unison/e763510165e3d93c5140a4c5f2ea0dcbf5825a0c/uitext.mli
ocaml
Unison file synchronizer : src / uitext.mli Copyright 1999 - 2010 , ( see COPYING for details ) module Body : Uicommon.UI
d7f19b94e85a00daf29e6b3cf26680f9338cf3daf73c7f7b06590a52608bf515
melange-re/melange
bsb_db_decode.ml
Copyright ( C ) 2019 - Present , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any l...
null
https://raw.githubusercontent.com/melange-re/melange/d40ae922fc3b317da5351dec5f5f79b8b52cf3f2/meldep/bsb_db_decode.ml
ocaml
string is whole content Char.code '0' TODO: shall we check the consistency of digest which is Bsb_db.case
Copyright ( C ) 2019 - Present , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any l...
1fe529f5f80f2c7fa849b7b14002462052b70c10e29eabce6b839aef0414586e
qingliangcn/mgee
mgee.erl
%%%---------------------------------------------------------------------- %%% File : mgee.erl %%% Author : Qingliang %%% Purpose : MGEE application Created : 2010 - 01 - 01 Description : Ming game engine erlang %%%---------------------------------------------------------------------- -module(mgee). -behaviour...
null
https://raw.githubusercontent.com/qingliangcn/mgee/b65babc3a34ef678ae2b25ce1a8fdd06b2707bb8/src/mgee.erl
erlang
---------------------------------------------------------------------- File : mgee.erl Author : Qingliang Purpose : MGEE application ---------------------------------------------------------------------- -------------------------------------------------------------------- Include files -----------------------...
Created : 2010 - 01 - 01 Description : Ming game engine erlang -module(mgee). -behaviour(application). -export([ start/2, stop/1, start/0, stop/0 ]). -export([]). Macros -define(APPS, [sasl, mgee]). Records start() -> try ok = mgee_misc:start_applications(?APPS) after ...
55185dda700f16f380e31fcc62e7fe6aa43c9a03ec8122ecf06666280feeda3a
AppsFlyer/mate-clj
core_test.clj
(ns mate-clj.core-test (:require [clojure.test :refer :all] [mate-clj.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1)))) (deftest das-test (testing "das->" (is (= (as-> 1 n (* 2 n) (+ n n) (+ n 2 3 4)) (das-> 1 n ...
null
https://raw.githubusercontent.com/AppsFlyer/mate-clj/2b15c185a890be478cb22d0da0b863d5d83ac35e/test/mate_clj/core_test.clj
clojure
(ns mate-clj.core-test (:require [clojure.test :refer :all] [mate-clj.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1)))) (deftest das-test (testing "das->" (is (= (as-> 1 n (* 2 n) (+ n n) (+ n 2 3 4)) (das-> 1 n ...
f0392ad3c9e53b51ded752c86ef899c7301ca5c66d0d1cf54166f706d213e82a
wrengr/bytestring-trie
UnionWith.hs
{-# OPTIONS_GHC -Wall -fwarn-tabs #-} # LANGUAGE CPP , BangPatterns # ---------------------------------------------------------------- ~ 2022.02.21 -- | -- Module : Bench.UnionWith Copyright : 2008 - -2022 wren romano -- License : BSD-3-Clause -- Mai...
null
https://raw.githubusercontent.com/wrengr/bytestring-trie/53e3b0e0eca0ef8980b155b4ad110835a78716e6/dev/Bench/UnionWith.hs
haskell
# OPTIONS_GHC -Wall -fwarn-tabs # -------------------------------------------------------------- | Module : Bench.UnionWith License : BSD-3-Clause Maintainer : Stability : provisional Portability : portable Benchmarking the benefits of 'TI.wip_unionWith' vs 'TC.unionWith'. --------------------...
# LANGUAGE CPP , BangPatterns # ~ 2022.02.21 Copyright : 2008 - -2022 wren romano module Main (main) where import qualified Data.Trie as T import qualified Data.Trie.Internal as TI import qualified Data.Trie.Convenience as TC import qualified Data....
ee9ad81cdff8a1bebd69df9a0baf442f9a3f327b7a204852d1a45a1125c476c0
konn/ghc-typelits-presburger
Presburger.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternGuards # {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # module Data.Single...
null
https://raw.githubusercontent.com/konn/ghc-typelits-presburger/fc8272997ffa3ea35b0e35fee63cd419ffecfc47/singletons-presburger/src/Data/Singletons/TypeNats/Presburger.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # (n :<=? m) ~ 'True
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE PatternGuards # # LANGUAGE RecordWildCards # # LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # module Data.Singletons.TypeNats.Presburger ( plugin, singletonTranslation, ) where import Control.Mo...
a98966a90ab64a0fbcbfb8bb8f9a9efb126f0d1427693c624822b633a6f91c39
fare/xcvb
bootstrap.lisp
;;; Lisp implementations #+xcvb (module (:build-depends-on ("driver") :depends-on ("lisp-invocation"))) (in-package :xcvb-driver) (defun lisp-present-p (lisp &key cross-compile) (equal "JUST ANOTHER LISP HACKER" (ignore-errors (run-program (lisp-invocation:lisp-invocation-arglist :implementatio...
null
https://raw.githubusercontent.com/fare/xcvb/460e27bd4cbd4db5e7ddf5b22c2ee455df445258/bootstrap.lisp
lisp
Lisp implementations These are the only supported so far -- please add support for more! for side-effects
#+xcvb (module (:build-depends-on ("driver") :depends-on ("lisp-invocation"))) (in-package :xcvb-driver) (defun lisp-present-p (lisp &key cross-compile) (equal "JUST ANOTHER LISP HACKER" (ignore-errors (run-program (lisp-invocation:lisp-invocation-arglist :implementation-type lisp :cross-...
fbc3b32d99e98ac9bfa054a07c990be127f7870760e006d251c644f4b4ea6788
lthms/spatial-sway
sway_version.ml
type t = { major : int64; minor : int64; patch : int64; human_readable : string; loaded_config_file_name : string; } type sway_version = t let decoder = let open Json_decoder in let open Syntax in let+ major = field "major" int64 and+ minor = field "minor" int64 and+ patch = field "patch" int64 ...
null
https://raw.githubusercontent.com/lthms/spatial-sway/7f8430cb34007d71da9b2718027c9e2758ac59ad/lib/sway_ipc_types/sway_version.ml
ocaml
type t = { major : int64; minor : int64; patch : int64; human_readable : string; loaded_config_file_name : string; } type sway_version = t let decoder = let open Json_decoder in let open Syntax in let+ major = field "major" int64 and+ minor = field "minor" int64 and+ patch = field "patch" int64 ...
edae174cf646170cde37885a6978c0eb7f3accbaaf2dc860b375e2c0bf054b27
kxcteam/kxclib-ocaml
kxclib_jsoo.ml
open Kxclib module Json_ext : sig open Kxclib.Json type xjv * external json value , simply a JavaScript value val to_xjv : jv -> xjv val of_xjv : xjv -> jv val to_json_string : jv -> string val of_json_string_opt : string -> jv option end = struct external _cast : 'a -> 'b = "%identity" open Js_of_o...
null
https://raw.githubusercontent.com/kxcteam/kxclib-ocaml/22610601d6a0b09720391bf935c7a67dc72e8ac6/jsoo/kxclib_jsoo.ml
ocaml
open Kxclib module Json_ext : sig open Kxclib.Json type xjv * external json value , simply a JavaScript value val to_xjv : jv -> xjv val of_xjv : xjv -> jv val to_json_string : jv -> string val of_json_string_opt : string -> jv option end = struct external _cast : 'a -> 'b = "%identity" open Js_of_o...
8c19422d34e78bb8be96131735fd642796781ad7d51d717a76f78cedb842f681
DATX02-17-26/DATX02-17-26
Function.hs
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
null
https://raw.githubusercontent.com/DATX02-17-26/DATX02-17-26/f5eeec0b2034d5b1adcc66071f8cb5cd1b089acb/libsrc/Util/Function.hs
haskell
* Operations ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ when given the last accepted x and f x. This function is a generalization of 'until' | 'untilEq': specialization of 'untilMatch' for '(==)' | 'a...
DATX02 - 17 - 26 , automated assessment of imperative programs . - Copyright , 2017 , see AUTHORS.md . - - This program is free software ; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation ; either version 2 - ...
80ca2b9e575f089f4fad58f4e540d84dedce02813648c79833fb346177cdd6cb
fpco/wai-middleware-auth
Test.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Network.Wai.Auth.Test (ChangeProvider , FakeProviderConf(..) , fakeProvider , const200 , get ) where import Control.Monad.IO.Class (liftIO) import Data.ByteString (ByteSt...
null
https://raw.githubusercontent.com/fpco/wai-middleware-auth/77b83b91240916e74a8a61c74cd63aa3905c6a9f/test/Network/Wai/Auth/Test.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # module Network.Wai.Auth.Test (ChangeProvider , FakeProviderConf(..) , fakeProvider , const200 , get ) where import Control.Monad.IO.Class (liftIO) import Data.ByteString (ByteString) import qualified Data.IORef ...
0a8affc32a599993c101eac58056a16206574932e3e2b5910028a5d539532f05
randomseed-io/phone-number
sample.clj
(ns ^{:doc "Clojure interface to Libphonenumber, sample." :author "Paweł Wilk" :added "8.12.4-2" :no-doc true} phone-number.sample) (comment nil)
null
https://raw.githubusercontent.com/randomseed-io/phone-number/99ac91d5b89f3bca44db4d03b5e27e0999760908/src/phone_number/sample.clj
clojure
(ns ^{:doc "Clojure interface to Libphonenumber, sample." :author "Paweł Wilk" :added "8.12.4-2" :no-doc true} phone-number.sample) (comment nil)