_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
b0e56f78d1210e7cfdf30650b5622639a87366b4c273b3124bdd970969dcd7bf
cbaggers/varjo
traits.lisp
(in-package :varjo.internals) ;;------------------------------------------------------------ ;; ;; - adding functions needs to check if the name is bound to a trait function ;; if so then fail ;; - defining a function that takes or return traits is fine. They will need to ;; be monomorphised though. ;; - For now d...
null
https://raw.githubusercontent.com/cbaggers/varjo/9e77f30220053155d2ef8870ceba157f75e538d4/src/varjo.internals/traits.lisp
lisp
------------------------------------------------------------ - adding functions needs to check if the name is bound to a trait function if so then fail - defining a function that takes or return traits is fine. They will need to be monomorphised though. - For now dont allow parametized type names to implement...
(in-package :varjo.internals) (defclass trait-function (v-function) ((trait :initarg :trait))) (defun trait-function-p (x) (typep x 'trait-function)) (defvar *traits* (make-hash-table)) (defclass trait-spec () ((type-vars :initarg :type-vars) (function-signatures :initarg :function-signatures))) (defmacro...
083371b84cccd41a30b0e8e38e54967625b5c69470b51923865d4b56979b3ca2
danr/hipspec
Properties.hs
{- All properties from the article. -} module Properties where import HipSpec import Prelude(Bool(..)) import Definitions -- Theorems prop_T01 :: Nat -> Prop Nat prop_T01 x = double x =:= x + x prop_T02 :: [a] -> [a] -> Prop Nat prop_T02 x y = length (x ++ y ) =:= length (y ++ x) prop_T03 :: [a] -> [a] -> Pr...
null
https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/testsuite/prod/Properties.hs
haskell
All properties from the article. Theorems
module Properties where import HipSpec import Prelude(Bool(..)) import Definitions prop_T01 :: Nat -> Prop Nat prop_T01 x = double x =:= x + x prop_T02 :: [a] -> [a] -> Prop Nat prop_T02 x y = length (x ++ y ) =:= length (y ++ x) prop_T03 :: [a] -> [a] -> Prop Nat prop_T03 x y = length (x ++ y ) =:= length (y ) + ...
8d2d0ce9c1fd15a525aa984b6c91e875c4bb8b701a81ed66e896a41b839068dd
threatgrid/ctim
disposition_test.cljc
(ns ctim.domain.disposition-test (:require #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer-macros [deftest is testing]]) [ctim.domain.disposition :as sut])) (deftest sort-by-importance-test (testing "sorting disposition strings" (is (= (sut/sort-by-importa...
null
https://raw.githubusercontent.com/threatgrid/ctim/2ecae70682e69495cc3a12fd58a474d4ea57ae9c/test/ctim/domain/disposition_test.cljc
clojure
(ns ctim.domain.disposition-test (:require #?(:clj [clojure.test :refer [deftest is testing]] :cljs [cljs.test :refer-macros [deftest is testing]]) [ctim.domain.disposition :as sut])) (deftest sort-by-importance-test (testing "sorting disposition strings" (is (= (sut/sort-by-importa...
c49035fd7ebf94f90845f97f8b01048a20e32cc3a4f871c8c4a95511f72dc810
zendesk/clj-headlights
pardo.clj
(ns clj-headlights.pardo (:require [schema.core :as s] [clojure.tools.logging :as log] [clojure.string :as string] [clj-headlights.clj-fn-call :as clj-fn-call] [clj-headlights.pcollections :as pcollections]) (:import (java.util List) (clojure.lang Reflector...
null
https://raw.githubusercontent.com/zendesk/clj-headlights/095ab05337c1a35583776a74137041ba9d783383/src/clj_headlights/pardo.clj
clojure
co-group-by-key just happened group-by-key just happened no aggregation yet happened we find out what namespace that function came from, and require it, so all its dependencies are met. Only do that once per bundle (though no-op reqs are fast anyway). TODO: is about pcollections, should be moved to pcollections ...
(ns clj-headlights.pardo (:require [schema.core :as s] [clojure.tools.logging :as log] [clojure.string :as string] [clj-headlights.clj-fn-call :as clj-fn-call] [clj-headlights.pcollections :as pcollections]) (:import (java.util List) (clojure.lang Reflector...
0a8b266a792627a61d219424bcedee1a03993a91d0f26c162adda3175a8c5725
upgradingdave/cljs
dev.cljs
(ns up.reframe.dev (:require [devcards.core :as dc :include-macros true] [reagent.core :as r] [up.reframe.core :as c]) (:require-macros [devcards.core :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (deftest unit-tests (testing "Sanity" (is (= false false)))) ...
null
https://raw.githubusercontent.com/upgradingdave/cljs/1026b6db905214586fb7e04800df078da19b37cc/src/cljs/up/reframe/dev.cljs
clojure
(ns up.reframe.dev (:require [devcards.core :as dc :include-macros true] [reagent.core :as r] [up.reframe.core :as c]) (:require-macros [devcards.core :refer [defcard deftest defcard-doc]] [cljs.test :refer [is testing]])) (deftest unit-tests (testing "Sanity" (is (= false false)))) ...
619b949400de32e08bd33ed86083302a7b9945cc6acafdf08dc572cb31b5166f
OCamlPro/ocp-build
metaConfig.mli
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-build/meta/metaConfig.mli
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file val load_config : ?ocamlfind:string list -> unit -> string list
cd23548eaeb09ac107b467718cc1b0708ec1364bf0014309e511b348cb6eca36
huangjs/cl
code-mops.lisp
(in-package :cs325-user) (eval-when (:compile-toplevel :load-toplevel :execute) (require "mops") ) (defmop programming-language) (defmop lisp-language (programming-language) :name "Lisp" :run-time-types "yes") (defmop common-lisp (lisp-language) :name "Common Lisp" ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cs325/www.cs.northwestern.edu/academics/courses/325/programs/code-mops.lisp
lisp
(in-package :cs325-user) (eval-when (:compile-toplevel :load-toplevel :execute) (require "mops") ) (defmop programming-language) (defmop lisp-language (programming-language) :name "Lisp" :run-time-types "yes") (defmop common-lisp (lisp-language) :name "Common Lisp" ...
a1e20f3cd1556f8afae0273d108b4a081eb8ef423c13a0ed983a25737efd24fe
tobias/progress
file.clj
(ns progress.file (:use progress.bar progress.util) (:require [clojure.java.io :as io])) (defn file-ratio "Generates a file size ratio string based on the given sizes" [current-size final-size] (str (convert-unit current-size) " / " (convert-unit final-size))) (defn display-file-progress "Display...
null
https://raw.githubusercontent.com/tobias/progress/35b6a72cff7b09b849d8170a80626690058a6bd3/src/progress/file.clj
clojure
(ns progress.file (:use progress.bar progress.util) (:require [clojure.java.io :as io])) (defn file-ratio "Generates a file size ratio string based on the given sizes" [current-size final-size] (str (convert-unit current-size) " / " (convert-unit final-size))) (defn display-file-progress "Display...
24d1e047d0a5015f0e753560d154802c63911a07dbb9e2a5bf1b4a1a346a2c01
collaborativetrust/WikiTrust
online_revision.ml
Copyright ( c ) 2007 - 2009 The Regents of the University of California All rights reserved . Authors : Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the ...
null
https://raw.githubusercontent.com/collaborativetrust/WikiTrust/9dd056e65c37a22f67d600dd1e87753aa0ec9e2c/analysis/online_revision.ml
ocaml
* This is the revision object used for the on-line author reputation and text trust evaluation. The creation parameters correspond to the information that can be found for standard = uncolored revisions. revision id page id text id (for uncolored text) time, as a string yyyymmddhhmmss user id name...
Copyright ( c ) 2007 - 2009 The Regents of the University of California All rights reserved . Authors : Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : 1 . Redistributions of source code must retain the ...
cfdc1752d0f683950c8e8bfbe60fcc0d6dcea5537858c4fcae7ac74785953ee2
cs136/seashell
compiler.rkt
#lang typed/racket Seashell 's compiler system . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License ,...
null
https://raw.githubusercontent.com/cs136/seashell/17cc2b0a6d2cdac270d7168e03aa5fed88f9eb02/src/collects/seashell/compiler.rkt
racket
This program is free software: you can redistribute it and/or modify (at your option) any later version. See also 'ADDITIONAL TERMS' at the end of the included LICENSE file. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTAB...
#lang typed/racket Seashell 's compiler system . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (re...
5b9bc49aa244494c1955dbe49d2565754be598a33bb71963724abe814a9a94db
mariachris/Concuerror
etsi_3.erl
-module(etsi_3). -export([etsi_3/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. etsi_3() -> ets:new(table, [public, named_table]), ets:insert(table, {x, 0}), ets:insert(table, {y, 0}), ets:insert(table, {z, 0}), spawn(fun() -> ets:insert(table, {y,1}) end), spawn(fun() ->...
null
https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/dpor/src/etsi_3.erl
erlang
-module(etsi_3). -export([etsi_3/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, inf, dpor}]. etsi_3() -> ets:new(table, [public, named_table]), ets:insert(table, {x, 0}), ets:insert(table, {y, 0}), ets:insert(table, {z, 0}), spawn(fun() -> ets:insert(table, {y,1}) end), spawn(fun() ->...
87250f10f95283f14134831574a9086035d3f765ce5eaacbeed7c6e9d82ea9d6
xoken/xoken-core
Crypto.hs
| Module : Network . . Test . Crypto Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Module : Network.Xoken.Test.Crypto Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX -} module Net...
null
https://raw.githubusercontent.com/xoken/xoken-core/34399655febdc8c0940da7983489f0c9d58c35d2/core/src/Network/Xoken/Test/Crypto.hs
haskell
| Module : Network . . Test . Crypto Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX Module : Network.Xoken.Test.Crypto Copyright : Xoken Labs License : Open BSV License Stability : experimental Portability : POSIX -} module Net...
bef831cc9bf292dbd7b26f5ed9682596d408a00e637a67f0ddb045cf6b3a34d3
magthe/sandi
Base64Url.hs
-- | -- Module: Data.Conduit.Codec.Base64Url Copyright : ( c ) 2014 -- License: BSD3 module Data.Conduit.Codec.Base64Url where import qualified Codec.Binary.Base64Url as B64U import qualified Data.Conduit.Codec.Util as U import Control.Monad.Catch (MonadThrow) import Data.ByteString (ByteString, empty) import Dat...
null
https://raw.githubusercontent.com/magthe/sandi/a8ef86ec3798a640d86342421a7fa7fa97bdedd4/sandi/src/Data/Conduit/Codec/Base64Url.hs
haskell
| Module: Data.Conduit.Codec.Base64Url License: BSD3
Copyright : ( c ) 2014 module Data.Conduit.Codec.Base64Url where import qualified Codec.Binary.Base64Url as B64U import qualified Data.Conduit.Codec.Util as U import Control.Monad.Catch (MonadThrow) import Data.ByteString (ByteString, empty) import Data.Conduit (ConduitT) encode :: (Monad m) => ConduitT ByteStri...
7fdad65b4490c9f59de32ed4a52015486bf5db1224f09872f21d5d9b0f156c9f
Smart-Sql/smart-sql
my_smart_scenes.clj
(ns org.gridgain.plus.sql.my-smart-scenes (:require [org.gridgain.plus.dml.select-lexical :as my-lexical] [org.gridgain.plus.dml.my-select-plus :as my-select-plus] [org.gridgain.plus.dml.my-smart-token-clj :as my-smart-token-clj] [org.gridgain.plus.dml.my-insert :as my-insert] ...
null
https://raw.githubusercontent.com/Smart-Sql/smart-sql/d2f237f935472942a143816925221cdcf8246aff/src/main/clojure/org/gridgain/plus/sql/my_smart_scenes.clj
clojure
生成 class 的类名 init 构造函数 :methods [^:static [invokeScenes [org.apache.ignite.Ignite Long String java.util.List] Object] ^:static [myInvokeScenes [org.apache.ignite.Ignite Long Long] Object] ^:static [myInit [] void] ^:static [myShowCode [org.apache.ignite.Ignite Long String] String] ...
(ns org.gridgain.plus.sql.my-smart-scenes (:require [org.gridgain.plus.dml.select-lexical :as my-lexical] [org.gridgain.plus.dml.my-select-plus :as my-select-plus] [org.gridgain.plus.dml.my-smart-token-clj :as my-smart-token-clj] [org.gridgain.plus.dml.my-insert :as my-insert] ...
5843cc0e157d59c9d9390db1762b46002f35a9fb021bb566f5a1177edd28b660
weyrick/roadsend-php
core-builtins.scm
;; ***** BEGIN LICENSE BLOCK ***** Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2008 Roadsend , 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 ; either version 2....
null
https://raw.githubusercontent.com/weyrick/roadsend-php/d6301a897b1a02d7a85bdb915bea91d0991eb158/runtime/core-builtins.scm
scheme
***** BEGIN LICENSE BLOCK ***** This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 2.1 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER...
Roadsend PHP Compiler Runtime Libraries Copyright ( C ) 2008 Roadsend , Inc. of the License , or ( at your option ) any later version . GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License Foundation , Inc. , 51 Franklin Street , Fifth...
cac38ed344b3e3c7d65246e35891041eedb43978827a8a102c8cf7b0b09b0e34
grin-compiler/grin
ConstantPropagation.hs
# LANGUAGE LambdaCase , TupleSections , ViewPatterns # module Transformations.Optimising.ConstantPropagation where import Text.Printf import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Functor.Foldable as Foldable import Grin.Grin import Transformations.Util type Env = Map Val Val {- ...
null
https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/Transformations/Optimising/ConstantPropagation.hs
haskell
HINT: propagates only tag values but not literals GRIN is not a supercompiler HINT: in each alternative set val value like it was matched track values HINT: default pattern (minor hack)
# LANGUAGE LambdaCase , TupleSections , ViewPatterns # module Transformations.Optimising.ConstantPropagation where import Text.Printf import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Functor.Foldable as Foldable import Grin.Grin import Transformations.Util type Env = Map Val Val cons...
0f8a890424fad775fc9e79b83acbefb479270e1780175fd616c7e27d98ed25be
gonzojive/sbcl
test-driver.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/contrib/sb-introspect/test-driver.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. XUUQ's lambda list should look similiar to ARRAY is a primitive type with associated translator function. Test allocation-information Skip...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (defpackage :sb-introspect-test (:use "SB-INTROSPECT" "CL" "SB-RT")) (in-package :sb-introspect-test) (deftest function-la...
40c6d76c4da97f50a51321f45523b93e037bdfa31b4d128292cebd42e1e7026b
D00mch/PWA-clojure
middleware.clj
(ns pwa.middleware (:require [pwa.env :refer [defaults]] [cheshire.generate :as cheshire] [cognitect.transit :as transit] [clojure.tools.logging :as log] [pwa.layout :refer [error-page]] [ring.middleware.anti-forgery :refer [wrap-anti-forgery]] [pwa.middleware.formats :as formats] [muu...
null
https://raw.githubusercontent.com/D00mch/PWA-clojure/39ab4d3690c7a8ddbdd8095d65a782961f92c183/src/clj/pwa/middleware.clj
clojure
since they're not compatible with this middleware
(ns pwa.middleware (:require [pwa.env :refer [defaults]] [cheshire.generate :as cheshire] [cognitect.transit :as transit] [clojure.tools.logging :as log] [pwa.layout :refer [error-page]] [ring.middleware.anti-forgery :refer [wrap-anti-forgery]] [pwa.middleware.formats :as formats] [muu...
2811e7e718d98844dc22a1498fd85a689543c14c5a29cb37bc345e3a5e92e652
CSCfi/rems
resource.cljs
(ns rems.administration.resource (:require [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.administration.blacklist :as blacklist] [rems.administration.components :refer [inline-info-field]] [rems.administration.license :refer [licen...
null
https://raw.githubusercontent.com/CSCfi/rems/6c34d51199289c395b0cd0b9a3176bc5f0e83758/src/cljs/rems/administration/resource.cljs
clojure
(ns rems.administration.resource (:require [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.administration.blacklist :as blacklist] [rems.administration.components :refer [inline-info-field]] [rems.administration.license :refer [licen...
a36594a39e086d007361f45b740a767f0c5f92983f24b40ad48b423eaf922861
ralsei/graphite
titles.rkt
#lang racket/base (require pict plot/no-gui racket/format racket/match racket/math "util.rkt" "with-area.rkt") (provide px->pt pt->px title add-title add-all-titles add-facet-label) (define (px->pt px) (* px 3/4)) (define (pt->px pt) (* pt 4/3)) (define (->pict-fo...
null
https://raw.githubusercontent.com/ralsei/graphite/06aca4a3f630ea589c2618eaa322243d2ea8315e/graphite-lib/titles.rkt
racket
NOTE on facet labels: when faceting, we want a common baseline to work on. the way facet labels are added, we account for the top-extras in order to _induce_ that baseline. this way we have something common to align on and can use lt-superimpose we also do not add a background because we want transparency for whe...
#lang racket/base (require pict plot/no-gui racket/format racket/match racket/math "util.rkt" "with-area.rkt") (provide px->pt pt->px title add-title add-all-titles add-facet-label) (define (px->pt px) (* px 3/4)) (define (pt->px pt) (* pt 4/3)) (define (->pict-fo...
111d8a4f3f21d439cde2ae8516e74c0f5cb3c24524131981cb078c6355b32a29
GillianPlatform/Gillian
debugger_intf.ml
module type S = sig type tl_ast type debug_state module Inspect : sig type debug_state_view [@@deriving yojson] val get_debug_state : debug_state -> debug_state_view val get_unification : Logging.Report_id.t -> debug_state -> Logging.Report_id.t * Unify_map.t end val launch : string -> s...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/c794de7417f29e3c23146f9958ead7e4ad0216ce/GillianCore/debugging/debugger/debugger_intf.ml
ocaml
*/* */*
module type S = sig type tl_ast type debug_state module Inspect : sig type debug_state_view [@@deriving yojson] val get_debug_state : debug_state -> debug_state_view val get_unification : Logging.Report_id.t -> debug_state -> Logging.Report_id.t * Unify_map.t end val launch : string -> s...
1cff8e155b1a2f364acc39c813016c6c2708adf6405fcdd663695c763fb35082
astrada/google-drive-ocamlfuse
keyValueStore.ml
exception File_not_found module type FileStore = sig type data type t = { path : string; data : data } val path : (t, string) GapiLens.t val data : (t, data) GapiLens.t val save : t -> unit val load : string -> t end module type Data = sig type t val of_table : (string, string) Hashtbl.t -> t val ...
null
https://raw.githubusercontent.com/astrada/google-drive-ocamlfuse/9027602dbbaf7473cfacc8bd44865d2bef7c41c7/src/keyValueStore.ml
ocaml
exception File_not_found module type FileStore = sig type data type t = { path : string; data : data } val path : (t, string) GapiLens.t val data : (t, data) GapiLens.t val save : t -> unit val load : string -> t end module type Data = sig type t val of_table : (string, string) Hashtbl.t -> t val ...
ca379b30c8f909a73ce9cfd8ba6812806ee9c39761ae88550d107d008a9a56a0
yogthos/reagent-example
project.clj
(defproject reagent-example "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :dependencies [[org.clojure/clojure "1.6.0"] [lib-noir "0.8.4"] [ring-server "0.3.1"] [selmer "0.6.8"] [com.taoensso/timbre "3.2.1"] [com.taoens...
null
https://raw.githubusercontent.com/yogthos/reagent-example/2512a61dfd8c00169af05fce253920567182095e/project.clj
clojure
:source-map "resources/public/js/app.js.map"
(defproject reagent-example "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :dependencies [[org.clojure/clojure "1.6.0"] [lib-noir "0.8.4"] [ring-server "0.3.1"] [selmer "0.6.8"] [com.taoensso/timbre "3.2.1"] [com.taoens...
a583f1f35be21507e2357b4a16c4654533e2eda94ef4f4fdb2955295406720d4
Javran/advent-of-code
Day16.hs
module Javran.AdventOfCode.Y2020.Day16 ( ) where import Control.Monad import qualified Data.IntMap.Strict as IM import qualified Data.IntSet as IS import Data.List import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP data Day16 deriving (Generic) type Range = (Int, Int) type FieldRangeInfo = (St...
null
https://raw.githubusercontent.com/Javran/advent-of-code/676ef13c2f9d341cf7de0f383335a1cf577bd73d/src/Javran/AdventOfCode/Y2020/Day16.hs
haskell
collect possible relations: key is field index and value is list of possible val sets.
module Javran.AdventOfCode.Y2020.Day16 ( ) where import Control.Monad import qualified Data.IntMap.Strict as IM import qualified Data.IntSet as IS import Data.List import Javran.AdventOfCode.Prelude import Text.ParserCombinators.ReadP data Day16 deriving (Generic) type Range = (Int, Int) type FieldRangeInfo = (St...
beb98fdb53d2c101a75c1b22921bfb4686942f5b004963268bf68da37a4609b4
wooga/erlang_prelude
ep_code_tests.erl
-module(ep_code_tests). -include_lib("eunit/include/eunit.hrl"). -define(IT, ep_code). % just to test has_behaviour/2 -behaviour(ep_deploy). -export([reload/1]). reload(_) -> ok. has_behaviour_test() -> ?assertEqual(true, ?IT:has_behaviour(ep_deploy, ?MODULE)), ?assertEqual(false, ?IT:has_behaviour(not_exi...
null
https://raw.githubusercontent.com/wooga/erlang_prelude/ce7e96ef58dee98e8f67232b21cd5aabc7963f2f/test/ep_code_tests.erl
erlang
just to test has_behaviour/2
-module(ep_code_tests). -include_lib("eunit/include/eunit.hrl"). -define(IT, ep_code). -behaviour(ep_deploy). -export([reload/1]). reload(_) -> ok. has_behaviour_test() -> ?assertEqual(true, ?IT:has_behaviour(ep_deploy, ?MODULE)), ?assertEqual(false, ?IT:has_behaviour(not_existing, ?MODULE)), ?assertEqu...
cce4f5e8dda3c69b24c95faf39c83fe07c62d248984cacf7e528db9987a1f8e3
kthielen/stlcc
CFG.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances , FlexibleContexts , TypeSynonymInstances , ImpredicativeTypes # module Util.CFG where import Util.String import Util.Sequence import Util.Pointed import Util.State import Util.Num import Util.Graphviz import Data.List import Da...
null
https://raw.githubusercontent.com/kthielen/stlcc/369492daad6498a93c00f5924a99ceb65b5f1062/Util/CFG.hs
haskell
Basic block construction for generic instruction sequences (plus definitions of assembly code statements and abstract machine statements as generic instructions)
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances , FlexibleContexts , TypeSynonymInstances , ImpredicativeTypes # module Util.CFG where import Util.String import Util.Sequence import Util.Pointed import Util.State import Util.Num import Util.Graphviz import Data.List import Da...
f1c8125dd33293b208d64609d0ee6b358b7c1b3209356ffc7c05b3c43b95573f
zachjs/sv2v
Inside.hs
sv2v - Author : < > - - Conversion for ` inside ` expressions and cases - - The expressions are compared to each candidate using ` = = ? ` , the wildcard - comparison . As required by the specification , the result of each comparison - is combined using an OR reduction . - - ` case ... i...
null
https://raw.githubusercontent.com/zachjs/sv2v/a2b99fa9ddec5af70020cba1668ac8b873ece27e/src/Convert/Inside.hs
haskell
evaluate expressions with side effects once underlying inside case elaboration
sv2v - Author : < > - - Conversion for ` inside ` expressions and cases - - The expressions are compared to each candidate using ` = = ? ` , the wildcard - comparison . As required by the specification , the result of each comparison - is combined using an OR reduction . - - ` case ... i...
9857e0cc0bea5e6bc8282e4d2846b4aff45fbc4e9914ac22530780f9e4e2a652
kimwnasptd/YAAC-Yet-Another-Alan-Compiler
Emit.hs
{-# LANGUAGE OverloadedStrings #-} module Emit where import LLVM.AST import LLVM.Module import LLVM.Context import LLVM.Prelude import LLVM.AST.Type import LLVM.PassManager import LLVM.Analysis import qualified LLVM.AST.IntegerPredicate as IPRD import qualified LLVM.AST as AST import qualified LLVM.AST.Constant as C...
null
https://raw.githubusercontent.com/kimwnasptd/YAAC-Yet-Another-Alan-Compiler/73046cb21d29aaeb5ab3f83ae6ff6978d445afc8/Codegen/Emit.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- Compilation ----------------------------------------------------------------------------- the optimizations we want to run Convert ByteString -> String --------------------------------------------------------...
module Emit where import LLVM.AST import LLVM.Module import LLVM.Context import LLVM.Prelude import LLVM.AST.Type import LLVM.PassManager import LLVM.Analysis import qualified LLVM.AST.IntegerPredicate as IPRD import qualified LLVM.AST as AST import qualified LLVM.AST.Constant as C import qualified LLVM.AST.Float as...
ee0f5ba5dd6509724ad3d320864c6591f660bd65ab4e4ba3ef3cb1337d249040
RDTK/generator
protocol.lisp
;;;; protocol.lisp --- Protocol provided by the project module. ;;;; Copyright ( C ) 2012 - 2019 Jan Moringen ;;;; Author : < > (cl:in-package #:build-generator.model) ;;; Ancestors protocol (defgeneric parent (thing) (:documentation "Return the parent of THING or NIL.")) (defgeneric ancestors (thing) ...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/model/protocol.lisp
lisp
protocol.lisp --- Protocol provided by the project module. Ancestors protocol Default behavior Named and ancestors protocol Default behavior Dependencies protocol Default behavior Access protocol Instantiation protocol Default behavior Implementation protocol Specification protocol
Copyright ( C ) 2012 - 2019 Jan Moringen Author : < > (cl:in-package #:build-generator.model) (defgeneric parent (thing) (:documentation "Return the parent of THING or NIL.")) (defgeneric ancestors (thing) (:documentation "Return a list of ancestors of THING, including THING.")) (defmethod ancest...
16f3725c83636a7e13b67b6bdc1687f1b42f4989479346cd1c7725dff0595f57
ccfontes/eg
user.clj
(ns user (:require [clojure.tools.namespace.repl :refer [refresh]] [clojure.test :as test :refer [deftest is]] [clojure.spec.alpha :as spec] [eg :as eg :refer [eg ge ex]] [eg.spec :as eg-spec] [eg.test.fixtures :as fixtures] [eg.test.pass.unit] ...
null
https://raw.githubusercontent.com/ccfontes/eg/b46796b3e1fc07d835673900dbed927fa51925cf/repl/user.clj
clojure
(ns user (:require [clojure.tools.namespace.repl :refer [refresh]] [clojure.test :as test :refer [deftest is]] [clojure.spec.alpha :as spec] [eg :as eg :refer [eg ge ex]] [eg.spec :as eg-spec] [eg.test.fixtures :as fixtures] [eg.test.pass.unit] ...
0689d63db11fac5ec7f79ff557dccdd00ea0387b34982119802a01fb2330795d
runeksvendsen/restful-payment-channel-server
Handler.hs
module AppPrelude.Types.Handler where import qualified Control.Monad.Reader as Reader import qualified Servant -- |We use this monad for the handlers, which gives access to configuration data -- of type 'conf'. type AppM conf = Reader.ReaderT conf Servant.Handler
null
https://raw.githubusercontent.com/runeksvendsen/restful-payment-channel-server/0fe65eadccad5ef2b840714623ec407e509ad00b/src/AppPrelude/Types/Handler.hs
haskell
|We use this monad for the handlers, which gives access to configuration data of type 'conf'.
module AppPrelude.Types.Handler where import qualified Control.Monad.Reader as Reader import qualified Servant type AppM conf = Reader.ReaderT conf Servant.Handler
175573168ce6230f9aee3afc30156c6d0730f4bc240fe19d4b2afb4f165af06c
ytomino/headmaster
c_lexical_output.ml
open C_lexical;; open C_literals;; module type LexicalOutputType = sig module Literals: LiteralsType module LexicalElement: LexicalElementType with module Literals := Literals val print_element: (string -> unit) -> LexicalElement.t -> unit end;; module LexicalOutput (Literals: LiteralsType) (LexicalElement...
null
https://raw.githubusercontent.com/ytomino/headmaster/11571992e480aa9fbc5821fe1be1b62edf5f924f/source/c_lexical_output.ml
ocaml
no suffix
open C_lexical;; open C_literals;; module type LexicalOutputType = sig module Literals: LiteralsType module LexicalElement: LexicalElementType with module Literals := Literals val print_element: (string -> unit) -> LexicalElement.t -> unit end;; module LexicalOutput (Literals: LiteralsType) (LexicalElement...
f0b3eee217e1893020d26e12a0b74272dacfef2086a842a8691212a1f26e8fbc
kappelmann/engaging-large-scale-functional-programming
Test.hs
# LANGUAGE CPP # module Test where import qualified Interface as Sub import qualified Solution as Sol import Test.Tasty import Test.Tasty.Runners.AntXML import Test.Tasty.QuickCheck as QC import Control.Monad import qualified Mock.System.IO.Internal as Mock import System.Environment (setEnv) getAverage s i j ps ...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/28905255605b55353de2d06239f79448c6fe4230/resources/io_mocking/stocks/test/Test.hs
haskell
We show the console dump if the test fails and fail the test if an error occurs this transfers control to the submission code set the default output file path as expected by bamboo the path can be overwritten by passing --xml=<pathGoesHere> on the server (production mode), run tests with xml output locally, run t...
# LANGUAGE CPP # module Test where import qualified Interface as Sub import qualified Solution as Sol import Test.Tasty import Test.Tasty.Runners.AntXML import Test.Tasty.QuickCheck as QC import Control.Monad import qualified Mock.System.IO.Internal as Mock import System.Environment (setEnv) getAverage s i j ps ...
0ff54d8e38dc657cb37e874ff1e9218ad01f18c05ed9aaf9d307ff0dc52f9fb6
parsonsmatt/gear-tracker
DB.hs
-- | This namespace contains all database access code for the project. module GT.DB where
null
https://raw.githubusercontent.com/parsonsmatt/gear-tracker/b7a597b32322e8938192a443572e6735219ce8ff/src/GT/DB.hs
haskell
| This namespace contains all database access code for the project.
module GT.DB where
e704ddc6d7e6a1c6eb0419064c3632ce0b06eab6a9e16388cc9a5073abbb2ff3
uw-unsat/serval
bitfield-move.rkt
#lang racket/base (require "lib.rkt") (define tests (test-suite+ "Bitfield move" (arm64-case* [choose-sf choose-imm6 choose-imm6 choose-reg choose-reg] sbfm bfm ubfm) Shift ( immediate ) , aliases of sbfm / ubfm (arm64-case* [choose-sf choose-imm6 choose-reg choose-reg] ; no ror ye...
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/test/arm64/bitfield-move.rkt
racket
no ror yet
#lang racket/base (require "lib.rkt") (define tests (test-suite+ "Bitfield move" (arm64-case* [choose-sf choose-imm6 choose-imm6 choose-reg choose-reg] sbfm bfm ubfm) Shift ( immediate ) , aliases of sbfm / ubfm (arm64-case* [choose-sf choose-imm6 choose-reg choose-reg] asr l...
95703f538eb53755a43a09f3fa3321554d02fb578f9149537146a869cde9b500
LambdaScientist/CLaSH-by-example
SimpleInOut.hs
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module InAndOut.Models.SimpleInOut where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Control.Monad.Trans.State import SAFE.TestingTools import SAFE.CommonClash import Text....
null
https://raw.githubusercontent.com/LambdaScientist/CLaSH-by-example/e783cd2f2408e67baf7f36c10398c27036a78ef3/ConvertedClashExamples/src/InAndOut/Models/SimpleInOut.hs
haskell
inputs Outputs and state data Signal st
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module InAndOut.Models.SimpleInOut where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Control.Monad.Trans.State import SAFE.TestingTools import SAFE.CommonClash import Text....
ce668219565f8aad50a8aba9dc67378310dc5e75451ca16ccc29b2646a6a4fd9
c4-project/c4f
common.mli
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/regress_tests/common.mli
ocaml
* Common functionality for regress tests
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...
8b3db0c27c2db3c2228365b2ac861fe296e36a4be8e8da4465fd1bb89aa14fdd
horie-t/iacc-riscv
compiler.scm
(import (srfi 1)) (import (rnrs hashtables)) (load "test_cases.scm") ;;;; ユーティリティ関数 ;;; 書式と引数を取って表示し、改行を付け加えます。 例 : ( emit " addi t0 , t0 , ~s " 1 ) addi t0 , t0 , 1 ;; が表示されます。 (define (emit . args) (apply format #t args) (newline)) ;;; ユニーク・ラベル生成 ;; 重複のない、ラベルを返します。 (define unique-label (let ((count 0)) ...
null
https://raw.githubusercontent.com/horie-t/iacc-riscv/2aea0b27f712f4b9354ecf04a7a0cb08f5c2117e/12.13_AssignmentAndExtendingTheSyntax/compiler.scm
scheme
ユーティリティ関数 書式と引数を取って表示し、改行を付け加えます。 が表示されます。 ユニーク・ラベル生成 重複のない、ラベルを返します。 シンボルに変換する必要はある? ユニーク・ラベルのリストを生成します。 vars ラベルの一部を形成する文字のリスト 重複のない、変数名を返します。 値比較ユーティリティ a0と値を比較し、booleanオブジェクトをa0に設定します。 args 比較する即値、省略時はt0と比較 式の書式判定ユーティリティ スタック関連 スタックに値を保存します。 si スタック・インデックス 次のスタックインデックスを返します。 スタック・ポインタを移動させます。 環境関...
(import (srfi 1)) (import (rnrs hashtables)) (load "test_cases.scm") 例 : ( emit " addi t0 , t0 , ~s " 1 ) addi t0 , t0 , 1 (define (emit . args) (apply format #t args) (newline)) (define unique-label (let ((count 0)) (lambda () (set! count (+ count 1)) L)))) (define (unique-labels vars) (map (lam...
4e09ea6db4ae0a2286b0f6bd2eafa3b7670b9c91d2413f59e6750130e771d20e
jkk/formative-demo
project.clj
(defproject formative-demo "0.0.2-SNAPSHOT" :description "Demo app for the Formative lib" :url "-demo.herokuapp.com" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/clojurescript "0.0-2138"] [compo...
null
https://raw.githubusercontent.com/jkk/formative-demo/c379800c205c29ea46f08fba9ce4d1ff5b8acb42/project.clj
clojure
(defproject formative-demo "0.0.2-SNAPSHOT" :description "Demo app for the Formative lib" :url "-demo.herokuapp.com" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/clojurescript "0.0-2138"] [compo...
5144814574d55785a32f1936e0da74199eafcde230c48f6d84d4ea0a02ff46af
input-output-hk/marlowe-cardano
ChainIndexer.hs
{-# LANGUAGE Arrows #-} # LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} module Language.Marlowe.Runtime.ChainIndexer ( ChainIndexerDependencies(..) , ChainIndexerSelector(..) , chainIndexer , getChainIndexerSelectorConfig ) where import Cardano.Ap...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/4b652fbaeafdea9a6b499a695db86e621813a23f/marlowe-chain-sync/chain-indexer/Language/Marlowe/Runtime/ChainIndexer.hs
haskell
# LANGUAGE Arrows # # LANGUAGE GADTs # # LANGUAGE RankNTypes #
# LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # module Language.Marlowe.Runtime.ChainIndexer ( ChainIndexerDependencies(..) , ChainIndexerSelector(..) , chainIndexer , getChainIndexerSelectorConfig ) where import Cardano.Api (CardanoMode, ChainPoint(..), ChainTip(..), LocalNodeClientProtocolsInMod...
cad925198f7f3b030a9b14e1d710b44500ec0eda4ce535855bce397b2ea26923
caradoc-org/caradoc
console.ml
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 (* ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/util/console.ml
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have rece...
664fafc4211b5e104acc8dc335918894dd88ff45578ca52ae4cc49877e6d3847
peerdrive/peerdrive
peerdrive_servlet_sup.erl
PeerDrive Copyright ( C ) 2011 < jan DOT kloetzke AT freenet DOT de > %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or %% (at your option) any la...
null
https://raw.githubusercontent.com/peerdrive/peerdrive/94389e2536cc9b1a0c168ec56ba3912910eb0c35/server/apps/peerdrive/src/peerdrive_servlet_sup.erl
erlang
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public...
PeerDrive Copyright ( C ) 2011 < jan DOT kloetzke AT freenet DOT de > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License -module(peerdrive_servlet_sup). ...
db37f241b5f9e02177ef808e0e02baafbfc66acafb0e656ff816cbb486713294
lambda-pi-plus/lambda-pi-plus
Main.hs
module Main where import Common import qualified ConstraintBased as CB import System.Environment (getArgs) import PatternUnify.Tm as Tm import Constraint as Constraint import PatternUnify.Kit main :: IO () main = do args <- getArgs case args of [] -> repLP CB.checker True (fileName:_) -> do ...
null
https://raw.githubusercontent.com/lambda-pi-plus/lambda-pi-plus/78eba7ebb7b2ed94f7cb06f0d1aca4d07eb3626f/src/Main.hs
haskell
module Main where import Common import qualified ConstraintBased as CB import System.Environment (getArgs) import PatternUnify.Tm as Tm import Constraint as Constraint import PatternUnify.Kit main :: IO () main = do args <- getArgs case args of [] -> repLP CB.checker True (fileName:_) -> do ...
3f063855bd14650a369a86a95d98a0cde0a6509a2af0683487c19618e5ca5512
alexkazik/qrcode
Special.hs
# LANGUAGE BinaryLiterals # # LANGUAGE NoImplicitPrelude # module Codec.QRCode.Intermediate.Special ( emptyNumericSegment , emptyAlphanumericSegment , emptyByteSegment , emptyKanjiSegment ) where import Codec.QRCode.Base import Codec.QRCode.Data.QRSegment.Internal emptyNumericSegment :...
null
https://raw.githubusercontent.com/alexkazik/qrcode/7ee12de893c856a968dc1397602a7f81f8ea2c68/qrcode-core/src/Codec/QRCode/Intermediate/Special.hs
haskell
# LANGUAGE BinaryLiterals # # LANGUAGE NoImplicitPrelude # module Codec.QRCode.Intermediate.Special ( emptyNumericSegment , emptyAlphanumericSegment , emptyByteSegment , emptyKanjiSegment ) where import Codec.QRCode.Base import Codec.QRCode.Data.QRSegment.Internal emptyNumericSegment :...
fbd97102e15e1f4e1da41fa4605b3beafee30fca63da04b742aa9e74ebf5feb5
tolysz/ghcjs-stack
System.hs
# OPTIONS_GHC -fno - warn - orphans # module UnitTests.Distribution.System ( tests ) where import Control.Monad (liftM2) import Distribution.Text (Text(..), display, simpleParse) import Distribution.System import Test.Tasty import Test.Tasty.QuickCheck textRoundtrip :: (Show a, Eq a, Text a) => a -> Property ...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal/Cabal/tests/UnitTests/Distribution/System.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module UnitTests.Distribution.System ( tests ) where import Control.Monad (liftM2) import Distribution.Text (Text(..), display, simpleParse) import Distribution.System import Test.Tasty import Test.Tasty.QuickCheck textRoundtrip :: (Show a, Eq a, Text a) => a -> Property ...
9882a0f6b7e50f25fe0c7914979d1683d9d43f315a7262152771b76c68f92aeb
naveensundarg/prover
lisp.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-lisp -*- ;;; File: lisp.lisp 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 di...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/lisp.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-lisp -*- File: lisp.lisp 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 la...
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 SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2011 . ...
92c381ce63bedce369b27ed42e9b601e226a26545ead89e1be077ce8dd086fae
DrTom/clj-pg-types
uuid_test.clj
(ns pg-types.uuid-test (:require [pg-types.all] [pg-types.connection :refer :all] [clojure.java.jdbc :as jdbc] [clojure.test :refer :all])) (def db-spec (env-db-spec)) (deftest uuid (jdbc/with-db-transaction [tx db-spec] (jdbc/db-do-commands tx "CREATE TEMP TABLE test (id uuid)") (let [st...
null
https://raw.githubusercontent.com/DrTom/clj-pg-types/d847735c46b2da173fd50a6ebe492bead0d75dd5/test/pg_types/uuid_test.clj
clojure
(ns pg-types.uuid-test (:require [pg-types.all] [pg-types.connection :refer :all] [clojure.java.jdbc :as jdbc] [clojure.test :refer :all])) (def db-spec (env-db-spec)) (deftest uuid (jdbc/with-db-transaction [tx db-spec] (jdbc/db-do-commands tx "CREATE TEMP TABLE test (id uuid)") (let [st...
d344014b66d4784f0f47dd5957c97c0d5789d583c8e479038ed5f5c7c4f7f5a0
ku-fpg/hermit
GHC.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module HERMIT.Dictionary.GHC * GHC - based Transformations | This module contains transformations that are reflections of GHC functions , or derived from GHC functions . externals -- ** Dynamic Loadi...
null
https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/src/HERMIT/Dictionary/GHC.hs
haskell
** Dynamic Loading ** Substitution ** Utilities A zombie is an identifer that has 'OccInfo' 'IAmDead', but still has occurrences. ---------------------------------------------------------------------- ---------------------------------------------------------------------- | Substitute all occurrences of a variable ...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module HERMIT.Dictionary.GHC * GHC - based Transformations | This module contains transformations that are reflections of GHC functions , or derived from GHC functions . externals , loadLemmaLibraryT ...
40ae0d958638f172d82d69a07416c7a368902bd8046301e243af2c145ad62c2e
GlideAngle/flare-timing
Coincident.hs
module Ellipsoid.Coincident (coincidentUnits) where import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit ((@?=), testCase) import Data.UnitsOfMeasure (u, convert, fromRational') import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.Distance (TaskDistance(..), PathDistance(..)) import Flight.Zone...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/test-suite-zones/Ellipsoid/Coincident.hs
haskell
module Ellipsoid.Coincident (coincidentUnits) where import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit ((@?=), testCase) import Data.UnitsOfMeasure (u, convert, fromRational') import Data.UnitsOfMeasure.Internal (Quantity(..)) import Flight.Distance (TaskDistance(..), PathDistance(..)) import Flight.Zone...
24790eb4cf63b4de821bdb66da42c4448313f31b17e47a2014f1864c8d19c7ba
dhleong/wish
gdrive.cljs
(ns ^{:author "Daniel Leong" :doc "Google Drive powered Provider"} wish.providers.gdrive (:require-macros [cljs.core.async :refer [go]] [wish.util.async :refer [call-with-cb->chan]] [wish.util.log :as log :refer [log]]) (:require [clojure.core.async :refer [promise-chan...
null
https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/providers/gdrive.cljs
clojure
Constants Array of API discovery doc URLs for APIs used by the quickstart Authorization scopes required by the API; multiple scopes can be included, separated by spaces. refresh creds and retry upload retry succeeded! network error unexpected error: no problem; pass it along gapi availability channel....
(ns ^{:author "Daniel Leong" :doc "Google Drive powered Provider"} wish.providers.gdrive (:require-macros [cljs.core.async :refer [go]] [wish.util.async :refer [call-with-cb->chan]] [wish.util.log :as log :refer [log]]) (:require [clojure.core.async :refer [promise-chan...
f305cc960ba78ade73b1634840f1cb539f38cb3b61c8ea94fdcb84778dd5596a
ocaml/odoc
comment_desc.mli
val docs : Odoc_model.Comment.docs Type_desc.t val docs_or_stop : Odoc_model.Comment.docs_or_stop Type_desc.t
null
https://raw.githubusercontent.com/ocaml/odoc/2f639d7d661bc5397afce83dfaa71af53d2a8677/src/model_desc/comment_desc.mli
ocaml
val docs : Odoc_model.Comment.docs Type_desc.t val docs_or_stop : Odoc_model.Comment.docs_or_stop Type_desc.t
a194e1bea738b24a0222b80b15f19b2debc972636dbc6b6a3b245613d3b0b2d6
zcaudate-me/lein-repack
common.clj
(ns repack.common)
null
https://raw.githubusercontent.com/zcaudate-me/lein-repack/1eb542d66a77f55c4b5625783027c31fd2dddfe5/example/repack.advance/src/clj/repack/common.clj
clojure
(ns repack.common)
ab690580b4341b255d60b2e35fdff3884ac27eb39b674d6fa5710f43badaed81
ds-wizard/engine-backend
Detail_Bundle_GET.hs
module Registry.Specs.API.Locale.Detail_Bundle_GET ( detail_bundle_get, ) where import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hiding (shouldRespondWith) import qualified Registry.Database.Migration.Development.Locale.LocaleMigration as LOC_Migration import Regist...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/0ec94a4b0545f2de8a4e59686a4376023719d5e7/engine-registry/test/Registry/Specs/API/Locale/Detail_Bundle_GET.hs
haskell
------------------------------------------------------------------------ GET /locales/{lclId}/bundle ------------------------------------------------------------------------ ---------------------------------------------------- ---------------------------------------------------- ----------------------------------...
module Registry.Specs.API.Locale.Detail_Bundle_GET ( detail_bundle_get, ) where import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hiding (shouldRespondWith) import qualified Registry.Database.Migration.Development.Locale.LocaleMigration as LOC_Migration import Regist...
0a0c95cf1dac2ea1dffafe251edf98ec82e6cdbef053ad4894b7710d04ec8c91
fccm/OCamlSDL2
sdlquit.ml
OCamlSDL2 - An OCaml interface to the SDL2 library Copyright ( C ) 2013 This software is provided " AS - IS " , without any express or implied warranty . In no event will the authors be held liable for any damages arising from the use of this software . Permission is granted to anyone to use this...
null
https://raw.githubusercontent.com/fccm/OCamlSDL2/01fa29187cab90052d2581eb509d1bca1a85418f/src/sdlquit.ml
ocaml
* Quit SDL
OCamlSDL2 - An OCaml interface to the SDL2 library Copyright ( C ) 2013 This software is provided " AS - IS " , without any express or implied warranty . In no event will the authors be held liable for any damages arising from the use of this software . Permission is granted to anyone to use this...
b5f2fe3b0a1cfa346f8a6debf71c799670d869f7396dfdcb06fe845e856b1d15
msakai/toysolver
Polynomial.hs
# OPTIONS_GHC -Wall # ----------------------------------------------------------------------------- -- | -- Module : ToySolver.Data.Polynomial Copyright : ( c ) 2012 - 2013 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Polynomials -- -- R...
null
https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/Data/Polynomial.hs
haskell
--------------------------------------------------------------------------- | Module : ToySolver.Data.Polynomial License : BSD-style Maintainer : Stability : provisional Portability : portable Polynomials References: * constructive-algebra package <-algebra> ---------------------------...
# OPTIONS_GHC -Wall # Copyright : ( c ) 2012 - 2013 * Monomial order < > * Polynomial class for < -u.ac.jp/~kodama/tips-RubyPoly.html > module ToySolver.Data.Polynomial ( Polynomial , Var (..) , constant , terms , fromTerms , coeffMap , fromCoeffMap , fromTerm , Degree (..) , Va...
7a9cfb2478451097d1e84e16d0661bc7820f2706c9457dbac4d28d3f41ce6626
gedge-platform/gedge-platform
cow_qs.erl
Copyright ( c ) 2013 - 2018 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/cowlib/src/cow_qs.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2013 - 2018 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(cow_qs). -export([parse_qs/1]). -export([qs/...
ae59d53fac80ba1db5fb792aa4748513e9d60e123ec02d5477481250ce3d13c9
uhc/uhc
Random1.hs
---------------------------------------------------------------------------------------- what : library System . Random expected : ok constraints : exclude - if - js ---------------------------------------------------------------------------------------- what : library System.Random expe...
null
https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/test/regress/99/Random1.hs
haskell
-------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------- -}
what : library System . Random expected : ok constraints : exclude - if - js what : library System.Random expected: ok constraints: exclude-if-js module Main where import System.Random intRange :: (Int, Int) intRange = (-100,100) boolRange :: (Bool, Bool) boolRange = (False,True) flo...
3ca025024c31721037eb8c6c7da78266995ab2079fc82ea2371fa13418b39f9a
esl/MongooseIM
metrics_c2s_SUITE.erl
%%============================================================================== Copyright 2013 Erlang Solutions 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 %% ...
null
https://raw.githubusercontent.com/esl/MongooseIM/997ce8cc01dacf8bf1f1f4e3a984ee10f0ce5dd6/big_tests/tests/metrics_c2s_SUITE.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2013 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(metrics_c2s_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("escalus/include/escalus.hrl"). -include_lib("common...
851684f326906815bbd6e9108e1e733dd43e10579ae62f268ca4cf47ddf2720a
arsenm/Clutterhs
PathTest.hs
This tests Path and BehaviourPath import Prelude import qualified Prelude as P import Graphics.UI.Clutter import System.Glib.Signals import Control.Monad (when) import System.IO testForeachFunc :: PathCallback testForeachFunc pn = putStr "PathCallback: " >> print pn -- example from docs For example , to move an ...
null
https://raw.githubusercontent.com/arsenm/Clutterhs/ad3390895264c46906b5d3d954c4b04b04d96b1d/clutter/demo/PathTest.hs
haskell
example from docs see if the string description is correct Path2 tests using string descriptions
This tests Path and BehaviourPath import Prelude import qualified Prelude as P import Graphics.UI.Clutter import System.Glib.Signals import Control.Monad (when) import System.IO testForeachFunc :: PathCallback testForeachFunc pn = putStr "PathCallback: " >> print pn For example , to move an actor in a 100 by 100...
c0736360d98a8ac609fbf0d27777c53020564c37cf01310f33eda0405510d1ba
Ferdinand-vW/sessiontypes-distributed
Normalize.hs
# LANGUAGE DataKinds # # OPTIONS_GHC -Wno - simplifiable - class - constraints # | This module provides three functions for normalizing session typed programs . -- -- With normalizing we mean that we apply rewrites to a session typed program until we can no longer do so -- and that do not change the semantics of the ...
null
https://raw.githubusercontent.com/Ferdinand-vW/sessiontypes-distributed/5b0889008f69b130355ee2887793774b49793844/src/Control/Distributed/Session/Normalize.hs
haskell
With normalizing we mean that we apply rewrites to a session typed program until we can no longer do so and that do not change the semantics of the program. Sometimes, one of these programs might not have a session type that is dual to the session type of the other program, but we can rewrite the program and the...
# LANGUAGE DataKinds # # OPTIONS_GHC -Wno - simplifiable - class - constraints # | This module provides three functions for normalizing session typed programs . The motivation for this module is that for two session typed programs to run as a session they must be dual . A rewrite is isomorphic if we have two prog...
bd3c67c6dd896876e00da21c8442bbdb5a8d3938eac1019868a63d84d74bacae
IvanIvanov/fp2013
digits-sum.scm
(define (digits-sum n) (cond ( (= n 0) 0) (else (+ (remainder n 10) (digits-sum (quotient n 10))))))
null
https://raw.githubusercontent.com/IvanIvanov/fp2013/2ac1bb1102cb65e0ecbfa8d2fb3ca69953ae4ecf/lab2-and-3/homework1/digits-sum.scm
scheme
(define (digits-sum n) (cond ( (= n 0) 0) (else (+ (remainder n 10) (digits-sum (quotient n 10))))))
931eab42cb991fb7f2df22428d0fa4a045c79b477162aa78e8ab148d40c9a146
tsoding/aoc-2019
Intcode.hs
{-# LANGUAGE OverloadedStrings #-} module Intcode where import qualified Data.Text as T import qualified Data.Text.IO as T import Data.Array import Text.Printf import Data.List type Address = Int type Memory = Array Address Int data Machine = Machine { getMemory :: !Memory , getIp :: !Int , isHalt :: !Bool ...
null
https://raw.githubusercontent.com/tsoding/aoc-2019/bd186aa96558676a4380a465351b877dbaae261d/02/Intcode.hs
haskell
# LANGUAGE OverloadedStrings #
module Intcode where import qualified Data.Text as T import qualified Data.Text.IO as T import Data.Array import Text.Printf import Data.List type Address = Int type Memory = Array Address Int data Machine = Machine { getMemory :: !Memory , getIp :: !Int , isHalt :: !Bool } deriving (Show) memoryFromFile :...
4ab199de27bd9c39d3766a3b24b8fd11c759143a0a77ce4eaabff88753df7423
elsamuko/gimp-elsamuko
elsamuko-color-tint.scm
; The GIMP -- an image manipulation program Copyright ( C ) 1995 and ; ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ; (at your option) any later ve...
null
https://raw.githubusercontent.com/elsamuko/gimp-elsamuko/d64e60321553ee4a621841eda5a3353f68a94fc1/scripts/elsamuko-color-tint.scm
scheme
The GIMP -- an image manipulation program This program is free software; you can redistribute it and/or modify either version 3 of the License , or (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 ...
Copyright ( C ) 1995 and it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . Copyright ( C ) 2008 elsamuko < > (define (elsamuko-color-tint aimg adraw color opacit...
2e68e8763f0ccc2be0431c587bef8a44a40990a51f5607479cfe729b7fc6fd04
yapsterapp/er-cassandra
edn_codec.cljc
(ns er-cassandra.model.callbacks.edn-codec (:require [taoensso.timbre #?(:clj :refer :cljs :refer-macros) [debug]] #?(:clj [clojure.edn :as edn] :cljs [cljs.reader :as edn]))) (defn edn-serialize-callback [col] (assert (keyword? col)) (fn [r] (let [col? (contains? r col) v (get r col)...
null
https://raw.githubusercontent.com/yapsterapp/er-cassandra/1d059f47bdf8654c7a4dd6f0759f1a114fdeba81/src/er_cassandra/model/callbacks/edn_codec.cljc
clojure
i would prefer not to set the value if the key wasn't in the map, but it breaks a lot of tests :perms to get temporarily removed from :org_user records during import with consequent perms failures :completion_status [:started] nil i would prefer not to set the value if the key wasn't in the map, but lots of test...
(ns er-cassandra.model.callbacks.edn-codec (:require [taoensso.timbre #?(:clj :refer :cljs :refer-macros) [debug]] #?(:clj [clojure.edn :as edn] :cljs [cljs.reader :as edn]))) (defn edn-serialize-callback [col] (assert (keyword? col)) (fn [r] (let [col? (contains? r col) v (get r col)...
49316714dc3936d987583d81c184efa395582917abab5a5c7a075e288247eb67
lambe-lang/nethra
term.ml
(* *) type implicit = bool type lit = | Int of int | Char of char | String of string type builtin = | Fst | Snd | Inl | Inr | Fold | Unfold type 'a t = (* Basic type, identifier and literals *) | Type of int * 'a option | Id of string * string option * 'a option | Literal of lit * 'a optio...
null
https://raw.githubusercontent.com/lambe-lang/nethra/c84871f475ef090653a87bf50bb416f7f6153fd8/lib/nethra/lang/ast/term.ml
ocaml
Basic type, identifier and literals Function type and data Pair type and data Sum type and data Recursion builtin Type for inference Type annotation Propositional equality Record type and Access
type implicit = bool type lit = | Int of int | Char of char | String of string type builtin = | Fst | Snd | Inl | Inr | Fold | Unfold type 'a t = | Type of int * 'a option | Id of string * string option * 'a option | Literal of lit * 'a option | Pi of string * 'a t * 'a t * implicit * 'a o...
ce24c76e2854a78912473e5f16c91c65c05ef54bb9eece6c875b2807e89429e7
barracudanetworks/lighthouse
project.clj
(defproject com.barracuda/lighthouse #=(clojure.string/trim #=(slurp "resources/VERSION")) :description "A data-driven Kubernetes pre-processor" :dependencies [[org.clojure/clojure "1.10.3"] [borkdude/sci "0.2.5"] [borkdude/edamame "0.0.11"] [borkdude/rewrite-edn "...
null
https://raw.githubusercontent.com/barracudanetworks/lighthouse/b66e5e431d407a3e7d5983d71b03806713b91df6/project.clj
clojure
(defproject com.barracuda/lighthouse #=(clojure.string/trim #=(slurp "resources/VERSION")) :description "A data-driven Kubernetes pre-processor" :dependencies [[org.clojure/clojure "1.10.3"] [borkdude/sci "0.2.5"] [borkdude/edamame "0.0.11"] [borkdude/rewrite-edn "...
3ebf46b843327f9e88cf672bd864f0a4785c29a8e636103033df707ebc88b823
robert-strandh/SICL
gui.lisp
(cl:in-package #:sicl-boot-backtrace-inspector) (clim:define-application-frame inspector () ((%stack :initarg :stack :reader stack) (%current-entry :initform nil :accessor current-entry)) (:panes (arguments :application :scroll-bars nil :end-of-line-action :allow ...
null
https://raw.githubusercontent.com/robert-strandh/SICL/37752269e983495c89a4a5b49fd303d67910f810/Code/Boot/Backtrace-inspector/gui.lisp
lisp
Display all the lines preceding the source location
(cl:in-package #:sicl-boot-backtrace-inspector) (clim:define-application-frame inspector () ((%stack :initarg :stack :reader stack) (%current-entry :initform nil :accessor current-entry)) (:panes (arguments :application :scroll-bars nil :end-of-line-action :allow ...
eb0dfe159a51a541173a5b6ad5fdf3e46d388cdb792108edee74c033d7c7cd0b
tarides/dune-release
opam_file.mli
val upgrade : filename:OpamTypes.filename -> url:OpamFile.URL.t -> id:string -> version:[ `V1 of OpamFile.Descr.t | `V2 ] -> OpamFile.OPAM.t -> OpamFile.OPAM.t (** [upgrade ~filename ~url ~id ~version opam_t] produces the content of the opam file for the opam package, from the old [opam_t] content, migr...
null
https://raw.githubusercontent.com/tarides/dune-release/6bfed0f299b82c0931c78d4e216fd0efedff0673/lib/opam_file.mli
ocaml
* [upgrade ~filename ~url ~id ~version opam_t] produces the content of the opam file for the opam package, from the old [opam_t] content, migrating to the most supported format if needed (depending on [version]), setting the 'url' field with [url], setting the 'x-commit-hash' to [id], and stripping the ...
val upgrade : filename:OpamTypes.filename -> url:OpamFile.URL.t -> id:string -> version:[ `V1 of OpamFile.Descr.t | `V2 ] -> OpamFile.OPAM.t -> OpamFile.OPAM.t
a4624983f9b0dd13e9bfa4a8cfc62d9a4334de24fbab614380cfc68fc54f0f73
mirage/index
force_merge.ml
module Hook = Index.Private.Hook module Semaphore = Semaphore_compat.Semaphore.Binary open Common let root = Filename.concat "_tests" "unix.force_merge" module Context = Common.Make_context (struct let root = root end) let after f = Hook.v (function `After -> f () | _ -> ()) let after_clear f = Hook.v (function `A...
null
https://raw.githubusercontent.com/mirage/index/fe5e962534d192389484ecc63a25e4ab4668a2f0/test/unix/force_merge.ml
ocaml
A force merge has an implicit flush, however, if the replace occurs at the end of the merge, the value is not flushed * RW adds a value in log and flushes it, so every subsequent RO sync should find that value. But if the RO sync occurs during a merge, after a clear but before a generation change, then the va...
module Hook = Index.Private.Hook module Semaphore = Semaphore_compat.Semaphore.Binary open Common let root = Filename.concat "_tests" "unix.force_merge" module Context = Common.Make_context (struct let root = root end) let after f = Hook.v (function `After -> f () | _ -> ()) let after_clear f = Hook.v (function `A...
04e53892d26a6bf08535f84e45408d134693522e1d144df767349ea7063d31d6
chenyukang/eopl
lang.scm
;;;;;;;;;;;;;;;; grammatical specification ;;;;;;;;;;;;;;;; (define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol) (number (digit (arbno digit)) number) ...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter3/let-lang/lang.scm
scheme
grammatical specification ;;;;;;;;;;;;;;;; sllgen boilerplate ;;;;;;;;;;;;;;;;
(define the-lexical-spec '((whitespace (whitespace) skip) (comment ("%" (arbno (not #\newline))) skip) (identifier (letter (arbno (or letter digit "_" "-" "?"))) symbol) (number (digit (arbno digit)) number) (number ("-" digit (arbno digit)) number) )) (d...
8f9503c16589512499be8a0e428850a8b36bb52185bda68c6335897000fbe7d9
lukstafi/invargent
NumS.mli
* Numeric sort operations for InvarGenT. Released under the GNU General Public Licence ( version 2 or higher ) , NO WARRANTY of correctness etc . ( C ) 2013 @author ( AT ) gmail.com @since Mar 2013 Released under the GNU General Public Licence (version 2 or higher), NO WARRANTY ...
null
https://raw.githubusercontent.com/lukstafi/invargent/e25d8b12d9f9a8e2d5269001dd14cf93abcb7549/src/NumS.mli
ocaml
* Start abduction on all branches rather than only non-recursive. * Treat the numerical domain as integers when pruning formulas. Default [true]. * When pruning, discard constraints that force a variable to a single value. Default [false]. * Do not create subopti atoms of the form [k<=max(C,..)] etc. where ...
* Numeric sort operations for InvarGenT. Released under the GNU General Public Licence ( version 2 or higher ) , NO WARRANTY of correctness etc . ( C ) 2013 @author ( AT ) gmail.com @since Mar 2013 Released under the GNU General Public Licence (version 2 or higher), NO WARRANTY ...
5bb6b35d4c97394a3b90e0746c6e7f13e23dbe5682bee672620c5f521b05d983
plumatic/plumbing
lazymap.clj
;- Copyright 2008 - 2011 ( c ) Meikel Brandmeyer . ; All rights reserved. ; ; Permission is hereby granted, free of charge, to any person obtaining a copy ; of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights ; t...
null
https://raw.githubusercontent.com/plumatic/plumbing/e6f99d8f50789633559eb637df3362ed5f129035/src/plumbing/lazymap.clj
clojure
- All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The...
Copyright 2008 - 2011 ( c ) Meikel Brandmeyer . in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY...
db12f52ae5cad319b5d5f707b379793a21e0f4ce8519b3033fd8a5da7a0f218b
lambdamikel/DLMAPS
timeout.lisp
;;;-*- Mode: Lisp; Package: COMMON-LISP-USER -*- (in-package :cl-user) (defmacro with-timeout ((seconds . timeout-forms) &body body) #+:ALLEGRO `(mp:with-timeout (,seconds . ,timeout-forms) ,@body) #+:MCL `(with-timeout-1 ,seconds #'(lambda () ,@timeout-forms) #'(lambda () ,@body))) (defmacro with-timeo...
null
https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/prover/dl-benchmark-suite/timeout.lisp
lisp
-*- Mode: Lisp; Package: COMMON-LISP-USER -*-
(in-package :cl-user) (defmacro with-timeout ((seconds . timeout-forms) &body body) #+:ALLEGRO `(mp:with-timeout (,seconds . ,timeout-forms) ,@body) #+:MCL `(with-timeout-1 ,seconds #'(lambda () ,@timeout-forms) #'(lambda () ,@body))) (defmacro with-timeout ((seconds . timeout-forms) &body body) #+:AL...
869ae45489791878c4070ea81950b7b15846d06ac0f430c447bafcf622baed62
williamleferrand/accretio
ys_widgets.ml
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * 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 o...
null
https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/library/client/ys_widgets.ml
ocaml
let's put some factored code in there .. this widget displays a list of elements that can be created from a string
* Accretio is an API , a sandbox and a runtime for social playbooks * * Copyright ( C ) 2015 * * 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 o...
d97f6c45c132944de53a521c0e39563694c65b503b50389b4b5f3064a0930a81
morazanm/fsm
state.rkt
FSM Library Version 1.0 Copyright ( C ) 2015 by and Written by : and , 2015 ;;; STATE ; A state is a symbol. ; A superstate is a (listof state) (module state racket (require "misc.rkt" "constants.rkt" "rules.rkt" "string.rkt") (provide get-result minus-set empties get-final-super-states compute-...
null
https://raw.githubusercontent.com/morazanm/fsm/0a7e96e8d69cda7d22b8496375d5c792cd5d320d/fsm-core/private/state.rkt
racket
STATE A state is a symbol. A superstate is a (listof state) remove duplicates to keep res a set (print superS) (newline) superstates superstate --> state
FSM Library Version 1.0 Copyright ( C ) 2015 by and Written by : and , 2015 (module state racket (require "misc.rkt" "constants.rkt" "rules.rkt" "string.rkt") (provide get-result minus-set empties get-final-super-states compute-P compute-super-states extract-sstates extract-final-ss ...
76425d45793fc60c01ab871404ee8ea02f67166ac1ef52a1b0e45747439c9e0b
emqx/emqx-exhook
emqx_extension_hook.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/emqx-exhook/906ba8c0ac907414b85738c24c7dbef880da844e/src/emqx_extension_hook.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. 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(emqx_extension_hook). -include("emqx_extension_hook.hrl"). -include_lib("emqx/include/logger.h...
147c10a1e047e07c0508a63a0776ebfb401554e466230a5ff91b9ae5716589ff
luc-tielen/llvm-codegen
Flag.hs
# LANGUAGE RoleAnnotations # module LLVM.Codegen.Flag ( Flag(..) ) where data Flag a = On | Off deriving (Eq, Ord, Show) type role Flag nominal
null
https://raw.githubusercontent.com/luc-tielen/llvm-codegen/ee415723fecfb85525654394b61e77bb3e99a67a/lib/LLVM/Codegen/Flag.hs
haskell
# LANGUAGE RoleAnnotations # module LLVM.Codegen.Flag ( Flag(..) ) where data Flag a = On | Off deriving (Eq, Ord, Show) type role Flag nominal
b4f3580b279dec5a328fc269b65ec8f2568a14b2d06fa33005cf51feedf9a6ca
ralsei/sawzall
syntax.rkt
#lang racket/base (require (for-syntax racket/base racket/list) data-frame racket/contract/base syntax/parse/define "grouped-df.rkt") (provide (struct-out column-proc) (struct-out row-proc) (for-syntax column-syntax-form row...
null
https://raw.githubusercontent.com/ralsei/sawzall/61f147cd523466b74422c3990fd95cd6ead64559/sawzall-lib/syntax.rkt
racket
#lang racket/base (require (for-syntax racket/base racket/list) data-frame racket/contract/base syntax/parse/define "grouped-df.rkt") (provide (struct-out column-proc) (struct-out row-proc) (for-syntax column-syntax-form row...
058f261f8d8a8a6eba0e0a4ec286667aafe2c8fe343110c387153d8df14427cf
kit-clj/kit
test_utils.clj
(ns <<ns-name>>.test-utils (:require [<<ns-name>>.core :as core] [integrant.repl.state :as state])) (defn system-state [] (or @core/system state/system)) (defn system-fixture [] (fn [f] (when (nil? (system-state)) (core/start-app {:opts {:profile :test}})) (f)))
null
https://raw.githubusercontent.com/kit-clj/kit/9a38fbdfce072e056e6b0d79001f810e5deebe62/libs/deps-template/resources/io/github/kit_clj/kit/test/clj/test_utils.clj
clojure
(ns <<ns-name>>.test-utils (:require [<<ns-name>>.core :as core] [integrant.repl.state :as state])) (defn system-state [] (or @core/system state/system)) (defn system-fixture [] (fn [f] (when (nil? (system-state)) (core/start-app {:opts {:profile :test}})) (f)))
bdc8221390570990bda50e41d386fc0d51d78ac9eefd82e5ed885a972d269dca
antono/guix-debian
derivations.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 < > ;;; ;;; 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...
null
https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/tests/derivations.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 © 2012 , 2013 , 2014 < > 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 (test-derivations) #:use-module (guix derivations) #:use-module (guix store) #...
1ee8d080c44edd6f58d1e99adadd744787796e2813fac129aef623b8fa99bc2d
lumberdev/auth0-clojure
management.clj
(ns auth0-clojure.descriptors.management) ;; TODO - better docs ;; TODO - query params (in the format {:filter "string"} for now (def api-descriptor {:version "2.0" :metadata {:endpoint-prefix "/api/v2/"} :operations { ;; Branding :get-branding-settings {:name ...
null
https://raw.githubusercontent.com/lumberdev/auth0-clojure/ed01e95d7a11e6948d286a35aead100ab5a39a00/src/auth0_clojure/descriptors/management.clj
clojure
TODO - better docs TODO - query params (in the format {:filter "string"} for now Branding Client Grants Clients Custom Domains Device Credentials Grants Logs Prompts Roles Rules Rules Configs User Blocks Users Email Templates Emails Jobs Stats Tenants Anomaly Tickets
(ns auth0-clojure.descriptors.management) (def api-descriptor {:version "2.0" :metadata {:endpoint-prefix "/api/v2/"} :operations { :get-branding-settings {:name :get-branding-settings :doc "Use this endpoint to retriev...
305dc00d707b2a093f9e5e74378fc4126279d128069080fab83de45b18c3d535
otakar-smrz/elixir-fm
O.hs
module Elixir.Data.Sunny.Regular.O (section) where import Elixir.Lexicon lexicon = include section cluster_1 = cluster |> "l ^g l ^g" <| [ KaRDaS `verb` {- <la^gla^g> -} [ ['s','t','a','m','m','e','r'], ['s','t','u','t','t','e','r'] ], TaKaRDaS `verb` ...
null
https://raw.githubusercontent.com/otakar-smrz/elixir-fm/fae5bab6dd53c15d25c1e147e7787b2c254aabf0/Haskell/ElixirFM/Elixir/Data/Sunny/Regular/O.hs
haskell
<la^gla^g> <tala^gla^g> <la^glA^g> <mula^gla^g> <la^gam> <la^g^gam> <'al^gam> <ilta^gam> <li^gAm> <mal^gUm> <mul^gam> <tal^gIm> <la^gin> <la^gnaT> <lu^gayn> <lA.hib> <lA.hib> <la.ha^g> <la.had> <'al.had> <ilta.had> <la.hd> <la.had> <la.hdIy> <la.hUd> <la.h.hAd> <'il....
module Elixir.Data.Sunny.Regular.O (section) where import Elixir.Lexicon lexicon = include section cluster_1 = cluster |> "l ^g l ^g" <| [ cluster_2 = cluster |> "l ^g m" <| [ `imperf` FCuL, `plural` HaFCiL |< aT ...
d7de311b3aa1457151abc5911fc34868da79b2c91bb76d85877e6ceb5374fae8
herd/herdtools7
AArch64PteVal.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/6a5b3085a9d2357f98f4d560d7dd12add34edabe/lib/AArch64PteVal.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris , France . Copyright 2020 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribute...
bddbda1383d9b3486574d6253126886dd47cdbdeea915567b737c28f018d51e8
mistupv/cauder-core
tcp.erl
-module(tcp). -export([main/0, server_fun/3, client_fun/4, ack/5]). main() -> Server_PID = spawn(?MODULE, server_fun, [self(), 50, 500]), spawn(?MODULE, client_fun, [Server_PID, 57, 100, client1]), spawn(?MODULE, client_fun, [Server_PID, 50, 200, client2]), receive {data,D} -> D end. server_fun(Main_PID, P...
null
https://raw.githubusercontent.com/mistupv/cauder-core/b676fccd1bbd629eb63f3cb5259f7a9a8c6da899/case-studies/tcp/tcp.erl
erlang
-module(tcp). -export([main/0, server_fun/3, client_fun/4, ack/5]). main() -> Server_PID = spawn(?MODULE, server_fun, [self(), 50, 500]), spawn(?MODULE, client_fun, [Server_PID, 57, 100, client1]), spawn(?MODULE, client_fun, [Server_PID, 50, 200, client2]), receive {data,D} -> D end. server_fun(Main_PID, P...
de722796654a2559680f970e082a0e4de69d3ef2d5170f280598d1a7ac34393e
maximvl/erl9p
lib9p.erl
-module(lib9p). -include("9p.hrl"). -export([parse_message/2, pack_message/3]). %% Version -spec parse_message(byte(), binary()) -> false | tuple() | binary(). parse_message(?Tversion, <<MSize:32/little-integer, S:16/little-integer, Version:S/binary>>) ...
null
https://raw.githubusercontent.com/maximvl/erl9p/c5410da3797811578a248ea4d2b8e449fabd0541/src/lib9p.erl
erlang
Version Packing Error Flush Attach Walk Open Create read Write Clunk Remove Stat
-module(lib9p). -include("9p.hrl"). -export([parse_message/2, pack_message/3]). -spec parse_message(byte(), binary()) -> false | tuple() | binary(). parse_message(?Tversion, <<MSize:32/little-integer, S:16/little-integer, Version:S/binary>>) -> {MSize...
df83622ff4f0ecc82e9e373200b781be80faaccf27cee663e43b811e99e7dbf6
jordanthayer/ocaml-search
dwa_optimistic.ml
(** Optimistic Search *) open Optimistic_search let make_expand expand hd wt initial_d = (** Takes the [expand] function for the domain nodes and converts it into an expand function which will operate on search nodes. [hd] is a cost distance estimator. [wt] is the optimistic weight, and [initial_d] i...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/optimistic/dwa_optimistic.ml
ocaml
* Optimistic Search * Takes the [expand] function for the domain nodes and converts it into an expand function which will operate on search nodes. [hd] is a cost distance estimator. [wt] is the optimistic weight, and [initial_d] is the estimated distance from the root node to a goal. *************...
open Optimistic_search let make_expand expand hd wt initial_d = let make_child = (fun (n, g) -> let h,d = hd n in let factor = Math.fmax 1. (Math.fmin wt (wt *. (d /. initial_d))) in { fp = g +. factor *. h; h = h; g = g; fpos = Dpq.no_position; ppos = Dpq.no_position; dpo...
88512a0235dbe403269220ddf98d7a6e93e7143d9249b28241a10194daf4c851
jacobobryant/mystery-cows
lib.clj
(ns cows.lib) (defmacro capture-env [nspace] `(capture-env* (ns-publics ~nspace))) (defmacro defcursors [db & forms] `(do ~@(for [[sym path] (partition 2 forms)] `(defonce ~sym (rum.core/cursor-in ~db ~path))))) (defn flatten-form [form] (if (some #(% form) [list? #(instance? clo...
null
https://raw.githubusercontent.com/jacobobryant/mystery-cows/5edbab7d5ca5dcd8b14f855ae4665690d9b1387e/src/cows/lib.clj
clojure
(ns cows.lib) (defmacro capture-env [nspace] `(capture-env* (ns-publics ~nspace))) (defmacro defcursors [db & forms] `(do ~@(for [[sym path] (partition 2 forms)] `(defonce ~sym (rum.core/cursor-in ~db ~path))))) (defn flatten-form [form] (if (some #(% form) [list? #(instance? clo...
7dfe2c0940bb381849e46bb66ed0186e7bd843f70b2a2cc62accd6768654bc1c
xsc/kithara
config.clj
(ns kithara.config "Lyra configuration builders." (:import [net.jodah.lyra.config RecoveryPolicies RetryPolicies] [net.jodah.lyra.util Duration])) # # Helper Macro (defn- generate-builder [result-class method] (if (sequential? method) (let [[method-name _ & processors...
null
https://raw.githubusercontent.com/xsc/kithara/3394a9e9ef5e6e605637a74e070c7d24bfaf19cc/src/kithara/config.clj
clojure
## RecoveryPolicy ## Behaviour Config node info SSL client info behaviour
(ns kithara.config "Lyra configuration builders." (:import [net.jodah.lyra.config RecoveryPolicies RetryPolicies] [net.jodah.lyra.util Duration])) # # Helper Macro (defn- generate-builder [result-class method] (if (sequential? method) (let [[method-name _ & processors...
b6577564c87a45b2a66abe3feea8ed82553bdff565c9cab457596d676e4a6e48
haskell-compat/base-compat
Repl.hs
{-# LANGUAGE PackageImports #-} # OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # | Reexports " Control . . Compat " -- from a globally unique namespace. module Control.Monad.Compat.Repl ( module Control.Monad.Compat ) where import "this" Control.Monad.Compat
null
https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat/src/Control/Monad/Compat/Repl.hs
haskell
# LANGUAGE PackageImports # from a globally unique namespace.
# OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # | Reexports " Control . . Compat " module Control.Monad.Compat.Repl ( module Control.Monad.Compat ) where import "this" Control.Monad.Compat
9d2026393f19b5b60331cb7f5fa2f45a599b35c31598bdd8ae1aa66580026545
tlehman/sicp-exercises
ex-2.06.scm
Exercise 2.06 : In case representing pairs with procedures was n't ; mind-boggling enough, consider that, in a language that can ; manipulate procedures, we can get by without numbers by implementing 0 and the operation of adding 1 as : \sz.z (define zero (lambda (s) (lambda (z) z)) ; \nfx.f(nfx) (defin...
null
https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-2.06.scm
scheme
mind-boggling enough, consider that, in a language that can manipulate procedures, we can get by without numbers by implementing \nfx.f(nfx) This representation is know as Church numerals, after its inventor, (lambda (f) (lambda (x) (lambda (f) (lambda (x) (f (id x)))) (lambda (f) (lambda (x) ...
Exercise 2.06 : In case representing pairs with procedures was n't 0 and the operation of adding 1 as : \sz.z (define zero (lambda (s) (lambda (z) z)) (define add-1 (lambda (n) (lambda (f) (lambda (x) (f ((n f) x)))))) Alonzo Church , the logician who invented lambda calculus . ( 2.06 )...
6d64ad46cd84181f63e7800ea16acc502e823d77af03aeab1b704cad99cca1ed
realworldocaml/book
ext_pointer.ml
* [ Ext_pointer ] uses values of the OCaml type " int " to represent pointers to 2 - byte aligned memory blocks allocated outside the OCaml heap . The least significant bit of the address of a 2 - byte aligned memory block is 0 . This bit is used by this library to represent the address as an OCaml i...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ocaml_intrinsics/src/ext_pointer.ml
ocaml
* [load_immediate t] assumes without checking that the value pointed to by [t] is immediate. * [store_int t i] stores the immediate [i] to the memory address represented by [t]. * [load_int t] reads untagged int pointed to by [t] and returns the corresponding tagged int. This should only be used t...
* [ Ext_pointer ] uses values of the OCaml type " int " to represent pointers to 2 - byte aligned memory blocks allocated outside the OCaml heap . The least significant bit of the address of a 2 - byte aligned memory block is 0 . This bit is used by this library to represent the address as an OCaml i...
0e39adb3d37bd4d98d6b56d665549e1e4edee806fefb741d38880af772f37df6
malcolmreynolds/GSLL
bernoulli.lisp
Regression test BERNOULLI for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST BERNOULLI (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 0 1 1 0 1 1 0 0 0 0 0)) (MULTIPLE-VALUE-LIST (LET ((RNG (MAKE-RANDOM-NUMBER-GENERATOR +MT19937+ 0))) (LOOP FOR I FROM 0 TO 10 COLLECT (...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/bernoulli.lisp
lisp
Regression test BERNOULLI for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST BERNOULLI (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 0 1 1 0 1 1 0 0 0 0 0)) (MULTIPLE-VALUE-LIST (LET ((RNG (MAKE-RANDOM-NUMBER-GENERATOR +MT19937+ 0))) (LOOP FOR I FROM 0 TO 10 COLLECT (...
604dd33a935824d588ab45ff7d0880ad24a10cb5aa71a0704d0380dc2bdb5b76
nasa/pvslib
patch-20210421-prooflite.lisp
;; ;; prooflite.lisp Release : ( 11/05/20 ) ;; Contact : ( ) NASA Langley Research Center ;; ;; Copyright ( c ) 2011 - 2012 United States Government as represented by the National Aeronautics and Space Administration . No copyright is claimed in the United States under Title 17 , U.S.Code . All Other...
null
https://raw.githubusercontent.com/nasa/pvslib/d3601073537a52eb99946a94d1563760cdd5272b/pvs-patches/patch-20210421-prooflite.lisp
lisp
prooflite.lisp Rights Reserved. Save proof to prf file only if requested time the file was parsed. Returns a list of theories imported in theory-names Returns a list of immediately imported theories in the theory-name Returns a list of theories imported in the theory-name
Release : ( 11/05/20 ) Contact : ( ) NASA Langley Research Center Copyright ( c ) 2011 - 2012 United States Government as represented by the National Aeronautics and Space Administration . No copyright is claimed in the United States under Title 17 , U.S.Code . All Other (defparameter *prooflite-vers...
c1a953f9167a18115d534eaf42be5f30eb57eda44b12fe9d1fd333103e8f62c8
TakaiKinoko/Cornell_CS3110_OCaml
set.ml
module type Set = sig type 'a t (* [empty] is the empty set *) val empty : 'a t (* [mem x s] holds iff [x] is an element of [s] *) val mem : 'a -> 'a t -> bool (* [add x s] is the set [s] unioned with the set containing exactly [x] *) val add : 'a -> 'a t -> 'a t (* [elts s] is ...
null
https://raw.githubusercontent.com/TakaiKinoko/Cornell_CS3110_OCaml/0a830bc50a5e39f010074dc289161426294cad1d/Chap5_Modules/03more_examples/set.ml
ocaml
[empty] is the empty set [mem x s] holds iff [x] is an element of [s] [add x s] is the set [s] unioned with the set containing exactly [x] [elts s] is a list containing the elements of [s]. No guarantee * is made about the ordering of that list. *an implementation of that interface using a list to represent...
module type Set = sig type 'a t val empty : 'a t val mem : 'a -> 'a t -> bool val add : 'a -> 'a t -> 'a t val elts : 'a t -> 'a list end module ListSetNoDups : Set = struct type 'a t = 'a list let empty = [] let mem x s = List.mem x s let add x s = if mem x s then s...
4200438bb6989133500df4b3a02838509c51059ef20bbc2af0e2e71958136c9e
johnwhitington/camlpdf
pdftransform.mli
* Affine Transformations in Two Dimensions (** {2 Types} *) (** A single transformation operation. *) type transform_op = | Scale of (float * float) * float * float | Rotate of (float * float) * float | Translate of float * float | ShearX of (float * float) * float | ShearY of (float * float) * float * A l...
null
https://raw.githubusercontent.com/johnwhitington/camlpdf/dc7cfafaf9671bed1503a5c4143632922226b02d/pdftransform.mli
ocaml
* {2 Types} * A single transformation operation. * The identity transform * Make a string of a transform for debug purposes. * The identity matrix * String of a transformation matrix. * Make a transformation matrix from x and y translation. * Make a transformation matrix from an x and y scale and a point to scal...
* Affine Transformations in Two Dimensions type transform_op = | Scale of (float * float) * float * float | Rotate of (float * float) * float | Translate of float * float | ShearX of (float * float) * float | ShearY of (float * float) * float * A list of transformations , the first at the end of the list (...
ece27e73921d9c991de3f626d7d9662874e3c5d0d1bb2ba72ba04d023d450f0f
ghcjs/ghcjs
drvrun007.hs
module Main( main ) where -- This one crashed Hugs98 data X = X | X :\ X deriving Show main = putStrLn (show (X :\ X))
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/deriving/drvrun007.hs
haskell
This one crashed Hugs98
module Main( main ) where data X = X | X :\ X deriving Show main = putStrLn (show (X :\ X))
6b0f2d377324f90affeb6b0698cb4a2c149a732adc436f6300ebce85af307b8a
fakedata-haskell/fakedata
Address.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Address where import Data.Text (Text) import Faker (Fake, FakeT(..), FakerSettings(..), getLocale) import Faker.Internal (cachedRandomUnresolvedVec, cachedRandomVec, cachedRegex, RegexFakeValue(..)) import Faker.Provider.Address import Faker...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/d27461f8a97cf3d6e08d7cbd0134661aecd31459/src/Faker/Address.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Address where import Data.Text (Text) import Faker (Fake, FakeT(..), FakerSettings(..), getLocale) import Faker.Internal (cachedRandomUnresolvedVec, cachedRandomVec, cachedRegex, RegexFakeValue(..)) import Faker.Provider.Address import Faker.TH import Control.Monad.Catch impo...
e29edf671a66d04baaab780d83a679a163e8acf3f5b54ce604d26fe152b04c03
jaspervdj/advent-of-code
15.hs
import AdventOfCode.Main import qualified AdventOfCode.NanoParser as NP import Data.List (foldl') import Data.Maybe (mapMaybe) -------------------------------------------------------------------------------- data RangeSet = RSCons {-# UNPACK #-} !Int {-# UN...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/33130b9814f2017916016381be42ddaaf2493e4b/2022/15.hs
haskell
------------------------------------------------------------------------------ # UNPACK # # UNPACK # ------------------------------------------------------------------------------ # UNPACK # # UNPACK # ------------------------------------------------------------------------------
import AdventOfCode.Main import qualified AdventOfCode.NanoParser as NP import Data.List (foldl') import Data.Maybe (mapMaybe) data RangeSet | RSNil empty :: RangeSet empty = RSNil insert :: Int -> Int -> RangeSet -> RangeSet insert l h RSNil = RSCons l h...
eae327fd8bd396bde957e15c6f58312b08deb01d6b97f2d8fa4266e34e55ac02
aantron/bisect_ppx
at_exit_hook.ml
[@@@coverage exclude_file] let is_child = ref false let () = at_exit (fun () -> if !is_child then begin Unix.sleep 5; print_endline "I should've been woken up by now." end)
null
https://raw.githubusercontent.com/aantron/bisect_ppx/a12047019fc021d51488be6157e89a014a210e93/test/sigterm/at_exit_hook.ml
ocaml
[@@@coverage exclude_file] let is_child = ref false let () = at_exit (fun () -> if !is_child then begin Unix.sleep 5; print_endline "I should've been woken up by now." end)
4ed9849faff5f72931229c7c2583462f359087c68602aa03b72225ed44a06bf0
ocaml-flambda/flambda-backend
lambda_to_flambda_primitives_helpers.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/cef317cfa2fc02b27006ae398bdd09fdc189c0a3/middle_end/flambda2/from_lambda/lambda_to_flambda_primitives_helpers.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2019 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the open! Flambda.Import open Closure_conversion_aux module P = Flambda_...