_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
bcdd8515095c2e10b1a3f34ff01930c28a8fce724232fa2c6b8ed9802414fb4b
thi-ng/demos
meshworker.cljs
(.importScripts js/self "base.js") (ns meshworker (:require-macros [cljs-log.core :refer [debug info warn]]) (:require [thi.ng.math.core :as m] [thi.ng.geom.core :as g] [thi.ng.geom.matrix :as mat] [thi.ng.geom.mesh.io :as mio] [thi.ng.geom.gl.glmesh :as glm] [thi.ng.strf.core :as f])) (defn ...
null
https://raw.githubusercontent.com/thi-ng/demos/048cd131099a7db29be56b965c053908acad4166/ws-ldn-11/day2/ex05b/src/ex05b/meshworker.cljs
clojure
(.importScripts js/self "base.js") (ns meshworker (:require-macros [cljs-log.core :refer [debug info warn]]) (:require [thi.ng.math.core :as m] [thi.ng.geom.core :as g] [thi.ng.geom.matrix :as mat] [thi.ng.geom.mesh.io :as mio] [thi.ng.geom.gl.glmesh :as glm] [thi.ng.strf.core :as f])) (defn ...
471e530d5550734f94b76dd421d069365155e75ee7dce4af38bfc04169d5882a
conjure-cp/conjure
Or.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # # LANGUAGE UndecidableInstances # module Conjure.Language.Expression.Op.Or where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common import qualified Data.Aeson as JSON -- aeson import qualified D...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/Or.hs
haskell
aeson unordered-containers vector there were true's there were false's
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # # LANGUAGE UndecidableInstances # module Conjure.Language.Expression.Op.Or where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common data OpOr x = OpOr x deriving (Eq, Ord, Show, Data, Functor, Traversa...
5246f8c977043acd3bd1dbff1dac3e5afc59104ef87563f72ab90543c42871a2
eighttrigrams/cljc-minimals
env.clj
(ns env) (def wrap-env-defaults identity)
null
https://raw.githubusercontent.com/eighttrigrams/cljc-minimals/fa2c925ffa56386b23f502990270b80ea47b8cbc/mount/env/prod/env.clj
clojure
(ns env) (def wrap-env-defaults identity)
3f22332517a086a7c312b8f13a8ec31c45a18c22cca63e38cf6c741a59d91ae2
Feuerlabs/exometer_core
exometer_folsom_monitor.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtai...
null
https://raw.githubusercontent.com/Feuerlabs/exometer_core/358d5c6724b823104f122ca4f16439ae0e767c82/src/exometer_folsom_monitor.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- @doc Hook API for following folsom-based legacy code with exometer This module installs hooks into folsom, allowing subscribers to trap the creation of metrics using the fols...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(exometer_folsom_monitor). -behaviour(gen_server). -expo...
c73d991ea30d297cfbd094600ef32867f18669bebd72651bc8a1f563a4fd63d7
TrustInSoft/tis-interpreter
integer.zarith.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/libraries/stdlib/integer.zarith.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
4fdddf37be02ea03bd455f765795c98cdba4fdf2addb38d94f594911093fb776
elginer/Delve
DelveVM.hs
The Delve Programming Language Copyright 2009 Distributed under the terms of the GNU General Public License v3 , or ( at your option ) any later version . This file is part of Delve . Delve is free software : you can redistribute it and/or modify it under the terms of the GNU Ge...
null
https://raw.githubusercontent.com/elginer/Delve/997c25d2c43ac3ab06f7d70304a59f4a8d5f9670/src/DelveVM.hs
haskell
The virtual machine for the delve programming language # OPTIONS -XBangPatterns # hiding ( newIORef , modifyIORef , readIORef , writeIORef ) import qualified Data.IORef as I ( newIORef , modifyIORef , readIORef , writeIORef ) SHOULD THESE EVEN BE STRICT ! ! ? ! a strict version of ' newIORef ' a strict version o...
The Delve Programming Language Copyright 2009 Distributed under the terms of the GNU General Public License v3 , or ( at your option ) any later version . This file is part of Delve . Delve is free software : you can redistribute it and/or modify it under the terms of the GNU Ge...
68f4061cf505c51e096207f6aea8844c030f4b1c626c75734ad0ae8d29c53d8b
ghc/packages-directory
RenamePath.hs
# LANGUAGE CPP # module RenamePath where #include "util.inl" main :: TestEnv -> IO () main _t = do createDirectory "a" T(expectEq) () ["a"] =<< listDirectory "." renamePath "a" "b" T(expectEq) () ["b"] =<< listDirectory "." writeFile tmp1 contents1 renamePath tmp1 tmp2 T(expectEq) () contents1 =<< read...
null
https://raw.githubusercontent.com/ghc/packages-directory/75165a9d69bebba96e0e3a1e519ab481d1362dd2/tests/RenamePath.hs
haskell
# LANGUAGE CPP # module RenamePath where #include "util.inl" main :: TestEnv -> IO () main _t = do createDirectory "a" T(expectEq) () ["a"] =<< listDirectory "." renamePath "a" "b" T(expectEq) () ["b"] =<< listDirectory "." writeFile tmp1 contents1 renamePath tmp1 tmp2 T(expectEq) () contents1 =<< read...
4cf7d8322fd7ed6ebf8c400ada92dd281d56004ee4515b8505bfadd766a27d3f
runeksvendsen/blockchain-restful-address-index
Util.hs
module Util ( fromMaybe , forM , cs , try , fmapL , (<>) , Reader.ask, Reader.liftIO , decodeHex ) where import Data.Maybe (fromMaybe) import Control.Monad (forM) import Data.Monoid ((<>)) import Data.String.Conver...
null
https://raw.githubusercontent.com/runeksvendsen/blockchain-restful-address-index/7ec677ca91e0ea551b5cf93153aea65114924bba/src/Util.hs
haskell
module Util ( fromMaybe , forM , cs , try , fmapL , (<>) , Reader.ask, Reader.liftIO , decodeHex ) where import Data.Maybe (fromMaybe) import Control.Monad (forM) import Data.Monoid ((<>)) import Data.String.Conver...
cca3170a8b369016c48a8ca6871079a8492f17fb740415714b5801f477429188
slegrand45/mysql_protocol
mp_protocol.ml
type protocol_version = Protocol_version_40 | Protocol_version_41 let protocol_version_to_string v = let version = match v with | Protocol_version_40 -> "4.0" | Protocol_version_41 -> "4.1" in version
null
https://raw.githubusercontent.com/slegrand45/mysql_protocol/eb28d33dfbee7b12f88a7f798c2dbb40e1fb1bb0/src/mp_protocol.ml
ocaml
type protocol_version = Protocol_version_40 | Protocol_version_41 let protocol_version_to_string v = let version = match v with | Protocol_version_40 -> "4.0" | Protocol_version_41 -> "4.1" in version
bce57373baa62b12152df063721cde2074cb5b655071b8a34d80a22033a783e0
kahaani/TINY-in-Haskell
Main.hs
module Main where import Scan(scan) import Parse(parse) import TypeCheck(typeCheck) import BuildSymtab(buildSymtab,testSymtab) import CodeGen(codeGen) main :: IO () main = do contents <- getContents mapM_ putStrLn . codeGen . buildSymtab . typeCheck . parse . scan $ contents print . testSymtab . . parse . scan $ c...
null
https://raw.githubusercontent.com/kahaani/TINY-in-Haskell/9149c71faa09d33a18b00a08180cefeb6359de77/v1/Main.hs
haskell
print . parse . scan $ contents mapM_ print . scan $ contents print . scan $ contents
module Main where import Scan(scan) import Parse(parse) import TypeCheck(typeCheck) import BuildSymtab(buildSymtab,testSymtab) import CodeGen(codeGen) main :: IO () main = do contents <- getContents mapM_ putStrLn . codeGen . buildSymtab . typeCheck . parse . scan $ contents print . testSymtab . . parse . scan $ c...
28b932c5dc38f4b07c79d0a1a5f974570854f7d094fedf836f9ee5cc1d188bb5
juspay/euler-hs
CachedSqlDBQuery.hs
{-# LANGUAGE OverloadedStrings #-} module EulerHS.CachedSqlDBQuery ( create , createSql , updateOne , updateOneWoReturning , updateOneSql , updateOneSqlWoReturning , updateExtended , findOne , findOneSql , findAll , findAllSql , findAllExtended , SqlReturning(..) ) where import D...
null
https://raw.githubusercontent.com/juspay/euler-hs/0fdda6ef43c1a6c9c7221d7c194c278e375b9936/src/EulerHS/CachedSqlDBQuery.hs
haskell
# LANGUAGE OverloadedStrings # ------------- Core API --------------- | Create a new database entry with the given value. | Update an element matching the query to the new value. Cache the value at the given key if the DB update succeeds. Right xs -> do let message = "DB returned \"" <> show xs <> "\" after up...
module EulerHS.CachedSqlDBQuery ( create , createSql , updateOne , updateOneWoReturning , updateOneSql , updateOneSqlWoReturning , updateExtended , findOne , findOneSql , findAll , findAllSql , findAllExtended , SqlReturning(..) ) where import Data.Aeson (encode) import qualified...
2696b10e2eba94f4b6962cd25c8f300d15820f2d3a1f91c44ceaed98c4190961
hammerlab/secotrec
coclobas.mli
open Common module Aws_batch_cluster: sig type t = { queue: string; bucket: string; } [@@deriving make] end type cluster = [ | `GKE of Gke_cluster.t | `Local of int | `Aws_batch of Aws_batch_cluster.t ] type t val make : ?name:string -> ?opam_pin: Opam.Pin.t list -> ?root:string -> ?port:int ...
null
https://raw.githubusercontent.com/hammerlab/secotrec/c801a43fdb0feea98da6d3636145f948aed4e7be/src/lib/coclobas.mli
ocaml
open Common module Aws_batch_cluster: sig type t = { queue: string; bucket: string; } [@@deriving make] end type cluster = [ | `GKE of Gke_cluster.t | `Local of int | `Aws_batch of Aws_batch_cluster.t ] type t val make : ?name:string -> ?opam_pin: Opam.Pin.t list -> ?root:string -> ?port:int ...
e984f6312c80a2489d07134a2a899e1b3ed8581eba21f3fbde532e3f59612fb1
sheyll/mediabus
Segment.hs
# LANGUAGE UndecidableInstances # -- | Media segments with a fixed duration module Data.MediaBus.Media.Segment ( Segment (..), segmentContent, CanSegment (..), ) where import Control.DeepSeq (NFData) import Control.Lens (Iso, iso) import Data.Default (Default) import Data.MediaBus.Basics.Ticks ( CoerceR...
null
https://raw.githubusercontent.com/sheyll/mediabus/2bc01544956b2c30dedbb0bb61dc115eef6aa689/src/Data/MediaBus/Media/Segment.hs
haskell
| Media segments with a fixed duration | A segment is some content with a fixed (maximum) duration. The content is shorter at the end of a stream or when a 'Start' | Class of types that support splitting values into parts with a certain duration. | Try to split the packet into the a part which has the given du...
# LANGUAGE UndecidableInstances # module Data.MediaBus.Media.Segment ( Segment (..), segmentContent, CanSegment (..), ) where import Control.DeepSeq (NFData) import Control.Lens (Iso, iso) import Data.Default (Default) import Data.MediaBus.Basics.Ticks ( CoerceRate (..), HasDuration (getDuration), ...
705a194b5793a633925071c309fe35aad2e164a30293e03eb16cb10513ccaf4d
riemann/riemann
keenio.clj
(ns riemann.keenio "Forwards events to Keen IO" (:require [clj-http.client :as client]) (:require [cheshire.core :as json])) (def ^:private event-url "/") (defn post "POST to Keen IO." [collection project-id write-key request] (let [final-event-url (str event-url project-id "/events/" collection)...
null
https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/src/riemann/keenio.clj
clojure
(ns riemann.keenio "Forwards events to Keen IO" (:require [clj-http.client :as client]) (:require [cheshire.core :as json])) (def ^:private event-url "/") (defn post "POST to Keen IO." [collection project-id write-key request] (let [final-event-url (str event-url project-id "/events/" collection)...
0624698aa06a01da517f2dd35981373602eca6671da0768470ab77c07befc35f
andersfugmann/aws-s3
body.ml
open StdLabels module Make(Io : Types.Io) = struct open Io open Deferred type t = | String of string | Empty | Chunked of { pipe: string Pipe.reader; length: int; chunk_size: int } let null () = let rec read reader = Pipe.read reader >>= function | None -> return () | Some _...
null
https://raw.githubusercontent.com/andersfugmann/aws-s3/84af629119e313ba46cf3eab9dd7b914e6bae5e9/aws-s3/body.ml
ocaml
Only write whats expected and discard the rest Found it. Return data Reset sep index. Look for the next element.
open StdLabels module Make(Io : Types.Io) = struct open Io open Deferred type t = | String of string | Empty | Chunked of { pipe: string Pipe.reader; length: int; chunk_size: int } let null () = let rec read reader = Pipe.read reader >>= function | None -> return () | Some _...
a04cc01e95ee37f2609e35387e4c21060adf40ae132621d16412db026a9c0c13
xapi-project/ocaml-opasswd
common.ml
let get_password name = if Shadow.shadow_enabled () then Shadow.(with_lock (fun () -> match getspnam name with | None -> None | Some sp -> Some sp.passwd)) else match Passwd.getpwnam name with | None -> None | Some pw -> Some pw.Passwd.passwd let put_password name cipher = if Shadow.s...
null
https://raw.githubusercontent.com/xapi-project/ocaml-opasswd/f7e608846d4f8a8b06343e97b662673897c73472/lib/common.ml
ocaml
Local Variables: indent-tabs-mode: nil End:
let get_password name = if Shadow.shadow_enabled () then Shadow.(with_lock (fun () -> match getspnam name with | None -> None | Some sp -> Some sp.passwd)) else match Passwd.getpwnam name with | None -> None | Some pw -> Some pw.Passwd.passwd let put_password name cipher = if Shadow.s...
47bdf3c5eca9ac9dea87ce7312e5ec0d6d6062a7f06dcfaf0c39f5b6a780331a
WhatsApp/eqwalizer
regular.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(regular).
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/9935940d71ef65c7bf7a9dfad77d89c0006c288e/mini-elp/crates/parse_server/fixtures/regular.erl
erlang
the LICENSE file in the root directory of this source tree.
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(regular).
e79ff8aed537229d28c8c4e3a7fe51d7ee5f196de23d5d838447b1b55bc8626f
tamarin-prover/tamarin-prover
Rule.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeOperator...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/e6854c9355274a7363c7481d27b753789604c2e2/lib/theory/src/Theory/Model/Rule.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # # LANGUAGE TypeSynonymInstances # | License : GPL v3 (see LICENSE) Portability : portable Rewriting rules representing protocol execution and in...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE MultiParamTypeClasses # Copyright : ( c ) 2010 - 2012 Maintainer : < > modulo the full Diffie - Hellman equational theory...
e8071ddbfaf2b3b4fe2445b3d4ff621e808c4b6fc322290aebac6de40a645d4f
jeromesimeon/Galax
pervasive.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/base/pervasive.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : pervasive.mli , v 1.5 2007/02/01 22:08:45 simeon Exp $ val pervasive : string
14f057b2f8e330b2737f4d4378acaabbf2dedaad502b9e50f23fac2ddf8d2cce
ocamllabs/ocaml-modular-implicits
pr2719.ml
open Printf let bug () = let mat = [| [|false|] |] and test = ref false in printf "Value of test at the beginning : %b\n" !test; flush stdout; (try let _ = mat.(0).(-1) in (test := true; printf "Am I going through this block of instructions ?\n"; flush stdout) with Invalid_argum...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/basic-more/pr2719.ml
ocaml
open Printf let bug () = let mat = [| [|false|] |] and test = ref false in printf "Value of test at the beginning : %b\n" !test; flush stdout; (try let _ = mat.(0).(-1) in (test := true; printf "Am I going through this block of instructions ?\n"; flush stdout) with Invalid_argum...
2c2a6a745b97c637710698d382604ee7f995bb50ba5cf19b15e42ac6d30841fe
hidaris/thinking-dumps
a7-5.rkt
#lang racket ;; $ stand for $tream (define-syntax cons$ (syntax-rules () ((cons$ x y) (cons x (delay y))))) (define car$ car) (define cdr$ (lambda ($) (force (cdr $)))) (define take$ (lambda (n $) (cond [(zero? n) '()] [else (cons (car$ $) (let ((n- (sub1 n))) ...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/ce13154e2d9e3140197b2230e7cea2f8be2ae84c/c311/a7-5.rkt
racket
$ stand for $tream
#lang racket (define-syntax cons$ (syntax-rules () ((cons$ x y) (cons x (delay y))))) (define car$ car) (define cdr$ (lambda ($) (force (cdr $)))) (define take$ (lambda (n $) (cond [(zero? n) '()] [else (cons (car$ $) (let ((n- (sub1 n))) (cond ...
b28a56e1f9d6a45a687c7735b0d785dd30cd62e0ce62dbb3493b096386371701
schemedoc/implementation-metadata
scheme2c.scm
(tagline "The original Scheme->C system, the first of its kind") (rnrs 4) (person "Joel Bartlett") (repology "scheme2c")
null
https://raw.githubusercontent.com/schemedoc/implementation-metadata/6280d9c4c73833dc5bd1c9bef9b45be6ea5beb68/schemes/scheme2c.scm
scheme
(tagline "The original Scheme->C system, the first of its kind") (rnrs 4) (person "Joel Bartlett") (repology "scheme2c")
7f80c00a9540df09b17bb1b640f531155b78fbfc36767c5aea18d62e9085620e
swarmpit/swarmpit
list.cljs
(ns swarmpit.component.service.list (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.list.basic :as list] [material.component.list.util :as list-util] [material.component.composite :as c...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/service/list.cljs
clojure
(ns swarmpit.component.service.list (:require [material.icon :as icon] [material.components :as comp] [material.component.form :as form] [material.component.list.basic :as list] [material.component.list.util :as list-util] [material.component.composite :as c...
ac22a0b9548c8f4b18fb8a45ad354b9f697526486fcd4298a700f4d6dd26c4b6
fakedata-haskell/fakedata
SwordArtOnline.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} module Faker.JapaneseMedia.SwordArtOnline where import Data.Text import Faker import Faker.Internal import Faker.Provider.SwordArtOnline import Faker.TH $(generateFakeField "swordArtOnline" "real_name") $(generateFakeField "swordArtOnline" "game_name")...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/src/Faker/JapaneseMedia/SwordArtOnline.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.JapaneseMedia.SwordArtOnline where import Data.Text import Faker import Faker.Internal import Faker.Provider.SwordArtOnline import Faker.TH $(generateFakeField "swordArtOnline" "real_name") $(generateFakeField "swordArtOnline" "game_name") $(generateFakeField "swordArtOnli...
edc26d63ccceee5bb3dde426ddb4985847967df7e7fcf46b5ba02a326100e9b5
chrisdone/duet
placeholders.hs
data List a = Nil | Cons a (List a) foldr = \f z l -> case l of Nil -> z Cons x xs -> f x (foldr f z xs) foldl = \f z l -> case l of Nil -> z Cons x xs -> foldl f (f z x) xs list = (Cons True (Cons False Nil)) main = foldr _f _nil list
null
https://raw.githubusercontent.com/chrisdone/duet/959d40db68f4c2df04cabb7677724900d4f71db4/examples/placeholders.hs
haskell
data List a = Nil | Cons a (List a) foldr = \f z l -> case l of Nil -> z Cons x xs -> f x (foldr f z xs) foldl = \f z l -> case l of Nil -> z Cons x xs -> foldl f (f z x) xs list = (Cons True (Cons False Nil)) main = foldr _f _nil list
d5c1493a776212ce0585b5486e3a25fa993fdc51e33e6b7683a605a3824dad4a
BIMSBbioinfo/guix-bimsb-nonfree
kentutils.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 , 2021 , 2022 < > ;;; ;;; This file is NOT part of GNU Guix, but is supposed to be used with GNU ;;; Guix and thus has the same license. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU Genera...
null
https://raw.githubusercontent.com/BIMSBbioinfo/guix-bimsb-nonfree/c14c89321b7a4a69f0f1bfec7236621e9902c67e/non-free/kentutils.scm
scheme
GNU Guix --- Functional package management for GNU This file is NOT part of GNU Guix, but is supposed to be used with GNU Guix and thus has the same license. 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 t...
Copyright © 2019 , 2021 , 2022 < > 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 (non-free kentutils) #:use-module ((guix licenses) #:prefix license:) #:use-modul...
20e2befee4f7ef0bb7fcaf28d125152e4d925cd65db46218a39e2b49e784c029
dyzsr/ocaml-selectml
parsetree.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/42cccb99506f8f33dac87d3bdb65391269b31d05/parsing/parsetree.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes type constant = | Pconst_integer of string * char option * Integer constants such as [ ...
8f0cdfe9af5b0ffb1bc9735065e938cc9145e81b9a5c499cb0bca6dd1c105e87
data61/Mirza
Schema.hs
module Mirza.OrgRegistry.Database.Schema ( module Current , migration , orgRegistryDB , checkedOrgRegistryDB , primaryKey ) where import Control . ( ( > > > ) ) import Database.Beam (DatabaseSettings) import Database.Beam.Migrate.Types ...
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/or_scs/src/Mirza/OrgRegistry/Database/Schema.hs
haskell
>>> migrationStep "Add LocationT table" V0002.migration
module Mirza.OrgRegistry.Database.Schema ( module Current , migration , orgRegistryDB , checkedOrgRegistryDB , primaryKey ) where import Control . ( ( > > > ) ) import Database.Beam (DatabaseSettings) import Database.Beam.Migrate.Types ...
dff84cbf2d5bd2ad6c35f948122fe8c8adc9d52c70d5ca9b282b00ce9301fccf
danhper/evm-analyzer
taggers.mli
open Core val all: TracerTypes.Tagger.t List.t List.t val for_vulnerability: String.t -> TracerTypes.Tagger.t List.t List.t val per_block: TracerTypes.Tagger.t List.t List.t val per_tx: TracerTypes.Tagger.t List.t List.t
null
https://raw.githubusercontent.com/danhper/evm-analyzer/9fb1cf6dc743c2f779973b2f0892047ebbd4e5fd/src/taggers.mli
ocaml
open Core val all: TracerTypes.Tagger.t List.t List.t val for_vulnerability: String.t -> TracerTypes.Tagger.t List.t List.t val per_block: TracerTypes.Tagger.t List.t List.t val per_tx: TracerTypes.Tagger.t List.t List.t
d113983ca806a8221422b04c6f4a0d57aa2a9576035f556c4117cd5ec6e03cb2
DogLooksGood/holdem
event_handler.clj
(ns poker.game.event-handler "Implementations of engine's event handler." (:require [poker.game.misc :as misc] [poker.game.model :as model] [poker.game.event-handler.impl :as impl] [poker.utils :refer [filter-vals map-vals]] [clojure.tools.logging :as log])) ;; errors (defn thr...
null
https://raw.githubusercontent.com/DogLooksGood/holdem/fddc99c25b004647b5d4e5cbe56bdcb4e18ac9a0/src/clj/poker/game/event_handler.clj
clojure
errors assertions Only acted and wait-for-action can call the raise ---------------------------------------------------------------------------- validate game event ---------------------------------------------------------------------------- Ensure the player is not in the game Check player id Ensure player st...
(ns poker.game.event-handler "Implementations of engine's event handler." (:require [poker.game.misc :as misc] [poker.game.model :as model] [poker.game.event-handler.impl :as impl] [poker.utils :refer [filter-vals map-vals]] [clojure.tools.logging :as log])) (defn throw-no-enou...
9aad7ddb04452595e7c4e5cadd053e737dea9661ce88f261d95eae3f056b9572
metaocaml/ber-metaocaml
mtype.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/mtype.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types val scrape: Env.t -> module_type -> module_type val scrape_for_functor_arg: Env.t -> module_...
47e6028ad244e208668fb9637ca9e73cab53cf3b55d4ee9283c3b3445e099a6a
nuprl/gradual-typing-performance
streams-stream-unfold.rkt
#lang racket/base (provide stream-unfold) (require "streams-struct.rkt") Destruct a stream into its first value and the new stream produced by de - thunking the tail ;(: stream-unfold (-> stream (values Natural stream))) (define (stream-unfold st) (values (stream-first st) ((stream-rest st))))
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/micro/sieve/untyped/streams-stream-unfold.rkt
racket
(: stream-unfold (-> stream (values Natural stream)))
#lang racket/base (provide stream-unfold) (require "streams-struct.rkt") Destruct a stream into its first value and the new stream produced by de - thunking the tail (define (stream-unfold st) (values (stream-first st) ((stream-rest st))))
f8a87b48ab797bd8aa63cfd1dc1b217026e0b546c504cdd1b16beddca1134837
mfoemmel/erlang-otp
wxTextDataObject.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxTextDataObject.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxTextDataObject). -include("wxe....
3dc149c16419b68414d8d5acbd16e6964674e8209ee512984ae314e094f5c3d9
chr15m/sitefox
sync-deps.cljs
(ns update-deps (:require ["fs" :as fs] [clojure.edn :as edn] [clojure.pprint :refer [pprint]])) (let [package (js/require "../package.json") js-deps (js->clj (aget package "dependencies")) deps (edn/read-string (fs/readFileSync "src/deps.cljs" "utf8")) deps-updated (assoc deps :npm-dep...
null
https://raw.githubusercontent.com/chr15m/sitefox/3e85c8eb4a56459fb225ca16c21f7a16de62e6cd/bin/sync-deps.cljs
clojure
(ns update-deps (:require ["fs" :as fs] [clojure.edn :as edn] [clojure.pprint :refer [pprint]])) (let [package (js/require "../package.json") js-deps (js->clj (aget package "dependencies")) deps (edn/read-string (fs/readFileSync "src/deps.cljs" "utf8")) deps-updated (assoc deps :npm-dep...
fcbe604b4443076c74f89447e9eeceb752f9ceaff7f20f4a6e926bb6db02e206
racket/plot
plot-bitmap.rkt
#lang typed/racket/base (require typed/racket/draw "../common/type-doc.rkt" "../common/types.rkt" "../common/parameters.rkt" "../common/nonrenderer.rkt" "../plot2d/renderer.rkt" "../plot3d/renderer.rkt" "plot2d.rkt" "plot3d.rkt" typed/rac...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-lib/plot/private/no-gui/plot-bitmap.rkt
racket
#lang typed/racket/base (require typed/racket/draw "../common/type-doc.rkt" "../common/types.rkt" "../common/parameters.rkt" "../common/nonrenderer.rkt" "../plot2d/renderer.rkt" "../plot3d/renderer.rkt" "plot2d.rkt" "plot3d.rkt" typed/rac...
57c14038a0c7904cfa852311d97a33d5eea9a21f6d62aa7bfec6f7cc1c7445e8
nvim-treesitter/nvim-treesitter
locals.scm
;; Definitions (variable_declarator . (identifier) @definition.var) (variable_declarator (tuple_pattern (identifier) @definition.var)) (declaration_expression name: (identifier) @definition.var) (for_each_statement left: (identifier) @definition.var) (for_each_statement left: (tuple_pattern (ident...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/d8d5e4eb8100f402b27ae98b9de4db9363f2248f/queries/c_sharp/locals.scm
scheme
Definitions References Scope
(variable_declarator . (identifier) @definition.var) (variable_declarator (tuple_pattern (identifier) @definition.var)) (declaration_expression name: (identifier) @definition.var) (for_each_statement left: (identifier) @definition.var) (for_each_statement left: (tuple_pattern (identifier) @definit...
376bfd205f30466485424146ecbf16d58b53df262da0ce5b94dd28ddcc14a4b4
fakedata-haskell/fakedata
Futurama.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.Futurama where import Config import Control.Monad.Catch import Data.Text (Text) import Data.Vector (Vector) import Data.Monoid ((<>)) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.TH import Language.Haske...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/Futurama.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.Futurama where import Config import Control.Monad.Catch import Data.Text (Text) import Data.Vector (Vector) import Data.Monoid ((<>)) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.TH import Language.Haskell.TH parseFuturama :: FromJSON a...
84a31f13edd94c56cf0587aa75f61d0e536b0626bfe74e4d74d0b54e9a71676d
NoRedInk/haskell-libraries
QueryParser.hs
-- | Parse some high - level information out of a query , for use in tracing . -- We try to find the query method (SELECT / INSERT / ...) and queried table in the root SQL query . We assume the root query to be the first query not -- in a sub query. We assume everything between parens `( ... )` to be a -- sub query...
null
https://raw.githubusercontent.com/NoRedInk/haskell-libraries/7af1e05549e09d519b08ab49dff956b5a97d4f7e/nri-postgresql/src/Postgres/QueryParser.hs
haskell
| We try to find the query method (SELECT / INSERT / ...) and queried table in a sub query. We assume everything between parens `( ... )` to be a sub query.
Parse some high - level information out of a query , for use in tracing . in the root SQL query . We assume the root query to be the first query not module Postgres.QueryParser ( parse, QueryMeta (..), ) where import Control.Applicative import Control.Monad (void) import Data.Attoparsec.Text (Parser, anyCh...
56e188f835c5cba571a432da5a21cbb4d3deebcddd27f939cd3ce6902f0ce3e5
herbelin/coq-hh
termdn.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/tactics/termdn.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** If we have: f a b c ..., decomp give...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open Nam...
7d8b237d2be24b84980b42aaae78700120ee955a6cbe1110f6299f3daf7ee298
Dasudian/DSDIN
dsdso_abi_tests.erl
-module(dsdso_abi_tests). -include_lib("eunit/include/eunit.hrl"). encode_call_with_integer_test() -> [64, 128, 42, 4, "main"] = dsdso_test_utils:dump_words( dsdso_abi:create_calldata("", "main", "42")).
null
https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdsophia/test/dsdso_abi_tests.erl
erlang
-module(dsdso_abi_tests). -include_lib("eunit/include/eunit.hrl"). encode_call_with_integer_test() -> [64, 128, 42, 4, "main"] = dsdso_test_utils:dump_words( dsdso_abi:create_calldata("", "main", "42")).
6ab608124b041c5f317923d5fb6c50b7bcde4ecf831495f788a1395854d60672
c4-project/c4f
mem.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz_actions/test/mem.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
2146753ced1e7e7158154451fc16e80b6822fd89c0462794c03bfd60daa85a83
yav/hobbit
MonadIO.hs
module Type.MonadIO where import AST import Data.IORef import Utils import Error getVar :: TyVar -> IO (Maybe Type) getVar (TyVar _ r _) = readIORef r getVar (TyUser {}) = return Nothing setVar :: TyVar -> Type -> IO () setVar (TyVar _ r _) t = w...
null
https://raw.githubusercontent.com/yav/hobbit/31414ba1188f4b39620c2553b45b9e4d4aa40169/src/Type/MonadIO.hs
haskell
XXX: Cannot happen
module Type.MonadIO where import AST import Data.IORef import Utils import Error getVar :: TyVar -> IO (Maybe Type) getVar (TyVar _ r _) = readIORef r getVar (TyUser {}) = return Nothing setVar :: TyVar -> Type -> IO () setVar (TyVar _ r _) t = w...
5689f5c2a401810ba07e5fa927c0d794c2119d219faad4b574d891dd2c33251f
marigold-dev/easier-proofs
main.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Marigold < > (* ...
null
https://raw.githubusercontent.com/marigold-dev/easier-proofs/49aa431be997df8c7363c8a81f7b64c0c70af0a8/examples/bool/bin/main.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Marigold < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER ...
804b4c663dd884abe715447ae7902748af0dfac360058a13e5ed73ce5276c97a
yoriyuki/Camomile
tbl31.ml
(** Tbl31 : fast table keyed by integers *) Copyright ( C ) 2002 , 2003 (* This library is free software; you can redistribute it and/or *) (* modify it under the terms of the GNU Lesser General Public License *) as published by the Free Software Foundation ; either version 2 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/yoriyuki/Camomile/d7d8843c88fae774f513610f8e09a613778e64b3/Camomile/internal/tbl31.ml
ocaml
* Tbl31 : fast table keyed by integers This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License may link, statically or dynamically, a "work that uses this library" with a publicly distributed version of this library to produce an executa...
Copyright ( C ) 2002 , 2003 as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . As a special exception to the GNU Library General Public License , you additional requirements listed in clause 6 of the GNU Library General we mean eith...
ace8b9777bd1f4d49d5479e43b1fb61e02cb61887cce9386d1846f91e74415a1
dimitri/pgloader
mysql-connection.lisp
;;; ;;; Tools to handle MySQL connection and querying ;;; (in-package :pgloader.source.mysql) (defvar *connection* nil "Current MySQL connection") ;;; ;;; General utility to manage MySQL connection ;;; (defclass mysql-connection (db-connection) ((use-ssl :initarg :use-ssl :accessor myconn-use-ssl))) (defmethod in...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/sources/mysql/mysql-connection.lisp
lisp
Tools to handle MySQL connection and querying General utility to manage MySQL connection apply mysql-settings, if any return the connection object The generic API query is recent, used to look like this:
(in-package :pgloader.source.mysql) (defvar *connection* nil "Current MySQL connection") (defclass mysql-connection (db-connection) ((use-ssl :initarg :use-ssl :accessor myconn-use-ssl))) (defmethod initialize-instance :after ((myconn mysql-connection) &key) "Assign the type slot to mysql." (setf (slot-value ...
dc330b3ed4db6b75f174ada73de4f17f8619118fba866a3715553e1517224c3d
turquoise-hexagon/euler
solution.scm
(import (euler)) (define (solve l n) (let ((m (expt 10 n))) (do ((i 1 (+ i 1)) (acc 0 (modulo (+ acc (modular-expt i i m)) m))) ((> i l) acc)))) (let ((_ (solve 1000 10))) (print _) (assert (= _ 9110846700)))
null
https://raw.githubusercontent.com/turquoise-hexagon/euler/5034b7024cbe20f61ea162e9be4e73c40a367a67/src/048/solution.scm
scheme
(import (euler)) (define (solve l n) (let ((m (expt 10 n))) (do ((i 1 (+ i 1)) (acc 0 (modulo (+ acc (modular-expt i i m)) m))) ((> i l) acc)))) (let ((_ (solve 1000 10))) (print _) (assert (= _ 9110846700)))
4aacfa10c7a5962164f19426ec378690500c38b240cebac52d6458ffc8fcd622
reborg/clojure-essential-reference
2.clj
(ns com.package.myns) < 1 > com.package.myns
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/VarsandNamespaces/the-ns%2Cns-nameandnamespace/2.clj
clojure
(ns com.package.myns) < 1 > com.package.myns
6be75f1d523c694914ce78dffbb75840f42fd36891f9db27a9af1f3cfb2932d3
vusec/poking-holes
preallocations.ml
open Core.Std open Sexplib_num.Std.Big_int type t = { sizes : big_int list; low : big_int; high : big_int; } with sexp
null
https://raw.githubusercontent.com/vusec/poking-holes/4184960e4d8d7a5832f74d4d33fd06022786b6d2/preallocations.ml
ocaml
open Core.Std open Sexplib_num.Std.Big_int type t = { sizes : big_int list; low : big_int; high : big_int; } with sexp
98e07db2008cfb9f56260667b381ccfe05fe8a5e65bfa08f758573d61a12195f
penpot/penpot
render.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.main.render "Rendering utilities and components for penpot SVG. NOTE: This namespace is used from...
null
https://raw.githubusercontent.com/penpot/penpot/c3ce0eb7945b5412f72a50e55312a7341387ba51/frontend/src/app/main/render.cljs
clojure
Copyright (c) KALEIDOS INC we need to be careful when adding new requires because Don't wrap svg elements inside a <g> otherwise some can break Component that serves for render frame thumbnails, mainly used in the viewer and inspector Bounds without shadows/blur will be the bounds of the thumbnail Component for...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.main.render "Rendering utilities and components for penpot SVG. NOTE: This namespace is used from worker and from many parts of th...
1f407e8637cb450edd34404838bcfb372bd8245113feb8999296e221ac77a063
anwyn/cl-horde3d
examples.lisp
;;; examples.lisp --- Examples of the standard horde3d distribution ported to Lisp ;;; _ ;;; _____ ____ _ _ __ ___ _ __ | | ___ ___ / _ \ \/ / _ ` | ' _ ` _ \| ' _ \| |/ _ \/ _ _ | ;;; | __/> < (_| | | | | | | |_) | | __/\__ \ ;;; \___/_/\_\__,_|_| |_| |_| .__/|_|\___||___/ ;...
null
https://raw.githubusercontent.com/anwyn/cl-horde3d/0576aba1879ab6c0f7688566c604d022cc538b4c/examples/examples.lisp
lisp
examples.lisp --- Examples of the standard horde3d distribution ported to Lisp _ _____ ____ _ _ __ ___ _ __ | | ___ ___ | __/> < (_| | | | | | | |_) | | __/\__ \ \___/_/\_\__,_|_| |_| |_| .__/|_|\___||___/ |_| Redraw display leave example Key ...
/ _ \ \/ / _ ` | ' _ ` _ \| ' _ \| |/ _ \/ _ _ | Copyright ( C ) 2009 < > (in-package :horde3d-examples) (defparameter *horde3d-home-directory* (asdf:system-relative-pathname (asdf:find-system :horde3d-examples) (make-pathname :directory '(:relative "Horde3D")))) (defclass...
a234426cc4c2a83fdf7ef44f71bada0d1067be0bc6960c1bcd4ca83e8f42a271
realworldocaml/examples
multiple_inheritance.ml
open Core.Std open Async.Std open Async_graphics class virtual shape x y = object(self) method virtual private contains: int -> int -> bool val mutable x: int = x method x = x val mutable y: int = y method y = y method on_click ?start ?stop f = on_click ?start ?stop (fun {mouse_x;mouse_y} -> ...
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/classes-async/multiple_inheritance.ml
ocaml
open Core.Std open Async.Std open Async_graphics class virtual shape x y = object(self) method virtual private contains: int -> int -> bool val mutable x: int = x method x = x val mutable y: int = y method y = y method on_click ?start ?stop f = on_click ?start ?stop (fun {mouse_x;mouse_y} -> ...
7a2a9fb68c10bf9e529796c8a12af2c616a3156f4c5dfb363c1867a8e7a918b6
clojure-interop/aws-api
S3ControlClientOptions.clj
(ns com.amazonaws.services.s3control.S3ControlClientOptions (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.s3control S3ControlClientOptions])) (defn ->s-3-control-client-options "Constructor." (^S3ControlClientOptions [] (new S3ControlClientOptions ))) (def *-dualstack-e...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.s3control/src/com/amazonaws/services/s3control/S3ControlClientOptions.clj
clojure
(ns com.amazonaws.services.s3control.S3ControlClientOptions (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.s3control S3ControlClientOptions])) (defn ->s-3-control-client-options "Constructor." (^S3ControlClientOptions [] (new S3ControlClientOptions ))) (def *-dualstack-e...
552480a585ddcce450088c1f6f444997ba6d67f08473877b02b2b8d5ad3fe19b
erlangonrails/devdb
riak_kv_wm_raw.erl
%% ------------------------------------------------------------------- %% raw_http_resource : Webmachine resource for serving data %% Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may no...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/riak-0.11.0/apps/riak_kv/src/riak_kv_wm_raw.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissi...
raw_http_resource : Webmachine resource for serving data Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an ...
4349640a68fec0ebb2c06f4d91c8427a59def2e773e01c330697140896bd88a5
turtlesoupy/haskakafka
ConsumerExample.hs
module Haskakafka.ConsumerExample where import Control.Arrow ((&&&)) import Haskakafka import Haskakafka.Consumer import Haskakafka.InternalRdKafkaEnum () iterator :: [Integer] iterator = [0 .. 20] runConsumerExample :: IO () runConsumerExample = do res <...
null
https://raw.githubusercontent.com/turtlesoupy/haskakafka/cae3348be1a3934629cf58d433c224d87ff59608/src/Haskakafka/ConsumerExample.hs
haskell
unnecessary, demo only -----------------------------------------------------------------
module Haskakafka.ConsumerExample where import Control.Arrow ((&&&)) import Haskakafka import Haskakafka.Consumer import Haskakafka.InternalRdKafkaEnum () iterator :: [Integer] iterator = [0 .. 20] runConsumerExample :: IO () runConsumerExample = do res <...
7478ba141da76dc36877f40cd17a4531cb41b45da7398e3da7378f4bfa3d8846
clojure-interop/aws-api
AWSXRayAsyncClientBuilder.clj
(ns com.amazonaws.services.xray.AWSXRayAsyncClientBuilder "Fluent builder for AWSXRayAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.xray AWSXRayAsyncClientBuilder])) (defn *standard "return...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.xray/src/com/amazonaws/services/xray/AWSXRayAsyncClientBuilder.clj
clojure
(ns com.amazonaws.services.xray.AWSXRayAsyncClientBuilder "Fluent builder for AWSXRayAsync. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.xray AWSXRayAsyncClientBuilder])) (defn *standard "return...
1a9c79fa70683f9b88cb3a24b22a10cf5972be1c972100c2d08703e0dee14b28
cpeikert/ALCHEMY
Arithmetic.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Crypto.Alchemy.Language.Arithmetic where import Crypto.Alchemy.Language.Lambda -- | Addition. class Add_ expr a where -- | Addition. add_ :: expr e (a -> a -> a) -- | Negation. neg_ :: expr e (a -> a) infixl 6 +:, -: (+:), (-:) :...
null
https://raw.githubusercontent.com/cpeikert/ALCHEMY/adbef64576c6f6885600da66f59c5a4ad91810b7/src/Crypto/Alchemy/Language/Arithmetic.hs
haskell
| Addition. | Addition. | Negation. | Convenient metalanguage version of 'add_'. | Convenient metalanguage version of subtraction. | Addition of (metalanguage) literals to (object language) expressions. | Multiplication. | Convenient metalanguage version of 'mul'. | Multiplication of (metalanguage) literals t...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Crypto.Alchemy.Language.Arithmetic where import Crypto.Alchemy.Language.Lambda class Add_ expr a where add_ :: expr e (a -> a -> a) neg_ :: expr e (a -> a) infixl 6 +:, -: (+:), (-:) :: (Add_ expr a, Lambda_ expr) => expr e a -> expr...
cf6c7c413ca767ed3995619f7ad1536e85277d665e31829945471262014824ad
kappelmann/eidi2_repetitorium_tum
List_Stack.ml
open Stack module ListStack : Stack = struct type 'a stack = 'a list let empty = [] let is_empty s = s=[] let push s e = e::s let pop = function [] -> (None,[]) | x::xs -> (Some x, xs) end let s = ListStack.empty let s = ListStack.push s 1 let s = ListStack.push s 2 let s = ListSta...
null
https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/2017/ocaml/data_structures/case_example_stack/List_Stack.ml
ocaml
open Stack module ListStack : Stack = struct type 'a stack = 'a list let empty = [] let is_empty s = s=[] let push s e = e::s let pop = function [] -> (None,[]) | x::xs -> (Some x, xs) end let s = ListStack.empty let s = ListStack.push s 1 let s = ListStack.push s 2 let s = ListSta...
2921dfa7e834cbff6743b2cc3a84a55cea044ef93efafdddcde989cdafc4e6ea
psholtz/MIT-SICP
exercise1-23.scm
;; Exercise 1.23 ;; ;; The "smallest-divisor" procedure shown at the start of this section does lots of needless testing : After it checks to see if the number is divisible by 2 , there ;; is no point in checking to see if it is divisible by any larger even numbers. This suggests that the values used for " test ...
null
https://raw.githubusercontent.com/psholtz/MIT-SICP/01e9b722ac5008e26f386624849117ca8fa80906/Section-1.2/mit-scheme/exercise1-23.scm
scheme
The "smallest-divisor" procedure shown at the start of this section does lots of is no point in checking to see if it is divisible by any larger even numbers. This rather 2,3,5,7,9... To implement this change, define a procedure "next" that returns With "timed-prime-test" incorporaitng this modified version of "...
Exercise 1.23 needless testing : After it checks to see if the number is divisible by 2 , there suggests that the values used for " test - divisor " should not be 2,3,4,5,6 , ... but 3 if its input is equal to 2 , and otherwise returns its input plus 2 . Modify the " smallest - divisor " procedure to use " ( ...
dc59dca4a4f0926fef6f8deb94a76b408261528d5054d539230cd4199a5b6b84
hugoduncan/makejack
uber.clj
(ns makejack.tasks.uber (:require [babashka.fs :as fs] [clojure.tools.build.api :as b] [makejack.defaults.api :as defaults] [makejack.deps.api :as mj-deps] [makejack.project-data.api :as project-data] [makejack.verbose.api :as v])) (defn uber "Build an uberjar file" [params] (v/println params...
null
https://raw.githubusercontent.com/hugoduncan/makejack/6968c6c8f2433d5a618acf8820eaa27f41464b95/bases/tasks/src/makejack/tasks/uber.clj
clojure
(ns makejack.tasks.uber (:require [babashka.fs :as fs] [clojure.tools.build.api :as b] [makejack.defaults.api :as defaults] [makejack.deps.api :as mj-deps] [makejack.project-data.api :as project-data] [makejack.verbose.api :as v])) (defn uber "Build an uberjar file" [params] (v/println params...
fe5762dfec289c96a2abeeed03240115813ebd0996d3e59f0773401801eb3e48
garrigue/lablgl
test17.ml
#!/usr/bin/env lablglut Ported to lablglut by Issac Trotts on Sun Aug 11 14:55:37 MDT 2002 . open Printf Copyright ( c ) . (* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. ...
null
https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/LablGlut/examples/glut3.7/test/test17.ml
ocaml
This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. Test for GLUT 3.0's overlay functionality. strange: this never gets set to true... -ijt raises exception if overlay is not in use: ...
#!/usr/bin/env lablglut Ported to lablglut by Issac Trotts on Sun Aug 11 14:55:37 MDT 2002 . open Printf Copyright ( c ) . let transP = ref 0 let main_win = ref 0 let x = ref 0.0 and y = ref 0.0 let render_normal () = Glut.useLayer(Glut.NORMAL); GlClear.clear [`color]; GlDraw.color (0.0,0.0,1.0); ...
5a1597680ec2d276873d15d5f45edc84a25df991cd378041f142a43a23ec7b7c
falsetru/htdp
23.3.3.scm
(define (g-fives-closed i) (* 3 (expt 5 i))) (define (seq-g-fives n) (build-list n g-fives-closed)) (require rackunit) (require rackunit/text-ui) (define seq-g-fives-tests (test-suite "Test for seq-g-fives" (check-equal? (seq-g-fives 3) '(3 15 75)) )) (exit (run-tests seq-g-fives-tests))
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/23/23.3.3.scm
scheme
(define (g-fives-closed i) (* 3 (expt 5 i))) (define (seq-g-fives n) (build-list n g-fives-closed)) (require rackunit) (require rackunit/text-ui) (define seq-g-fives-tests (test-suite "Test for seq-g-fives" (check-equal? (seq-g-fives 3) '(3 15 75)) )) (exit (run-tests seq-g-fives-tests))
76e8dc9e38cfe9fa162a3f6718fcfcd0c9cf7cc948e1fb664727b3192e707d94
ocamllabs/opamfu
opamfuFormula.mli
* Copyright ( c ) 2013 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/ocamllabs/opamfu/bfb9f24cd624f0889a26afb979a856e547344391/lib/opamfuFormula.mli
ocaml
* Simplified boolean expression type
* Copyright ( c ) 2013 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
65cfd1c7cd8ba462ac2b908bf490e6dcf5f075513e35fff2b91c16f1d685da37
kosmikus/records-sop
Record.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # {-# LANGUAGE TypeInType #-} # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # ...
null
https://raw.githubusercontent.com/kosmikus/records-sop/ef368fb9b402b4726ba642227bb8ca3f7da9da35/src/Generics/SOP/Record.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE TypeInType # * A suitable representation for single-constructor records * Computing the record code * Conversion between a type and its record representation. * Utilities ------------------------------------------------------------------------ A suitable representation for s...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unticked - promoted - constructors ...
b9fd2e5569bff4bd039dcc45a4561a74eab4a9486c47b92a705d98e89d0fb4e9
marick/specter-book-code
generalized.clj
(ns book-code.ch2.generalized (:use midje.sweet commons.clojure.core)) Protocols (defprotocol Navigator (select* [this structure continuation])) Generic support code (defn navigation-worker [worker-kw selector-element] (-> (find-protocol-impl Navigator selector-element) (get worker-kw))) (defn mkfn...
null
https://raw.githubusercontent.com/marick/specter-book-code/e416d4ce8164084057d36d29d89b17d114d1ab28/src/book_code/ch2/generalized.clj
clojure
Implementations of different types of selector elements. Tests
(ns book-code.ch2.generalized (:use midje.sweet commons.clojure.core)) Protocols (defprotocol Navigator (select* [this structure continuation])) Generic support code (defn navigation-worker [worker-kw selector-element] (-> (find-protocol-impl Navigator selector-element) (get worker-kw))) (defn mkfn...
7e08673ec71e09dd6b505b542f13e58693afb03ff5251047692842419512cda9
IvanIvanov/fp2013
list-to-number.scm
; слепя две числа заедно (define (glue-ints a b) (+ (* a 10) b)) в началото на Ако списъкът е само с 0ли , списък ; Може да бъде написано и с drop-while (define (remove-leading-zeroes l) (define (zero? n) (= n 0)) (cond ( (null? l) (list) ) ( (not (zero? (car l))) l ) (else (r...
null
https://raw.githubusercontent.com/IvanIvanov/fp2013/2ac1bb1102cb65e0ecbfa8d2fb3ca69953ae4ecf/lab2-and-3/homework4/list-to-number.scm
scheme
слепя две числа заедно Може да бъде написано и с drop-while
(define (glue-ints a b) (+ (* a 10) b)) в началото на Ако списъкът е само с 0ли , списък (define (remove-leading-zeroes l) (define (zero? n) (= n 0)) (cond ( (null? l) (list) ) ( (not (zero? (car l))) l ) (else (remove-leading-zeroes (cdr l))))) (define (list-to-number l) (...
91ff32ceaaf39fde33c1b26745a5dfe76fc9960c931813d78152f5d200251b46
jozefg/nbe-for-mltt
check.mli
type env_entry = Term of {term : Domain.t; tp : Domain.t} | TopLevel of {term : Domain.t; tp : Domain.t} type env = env_entry list val env_to_sem_env : env -> Domain.env type error = Cannot_synth_term of Syntax.t | Type_mismatch of Domain.t * Domain.t | Expecting_universe of Domain.t | Misc of string ...
null
https://raw.githubusercontent.com/jozefg/nbe-for-mltt/6e7e1985ee2aaab26d83380afaf9a8135cf6feb9/src/lib/check.mli
ocaml
type env_entry = Term of {term : Domain.t; tp : Domain.t} | TopLevel of {term : Domain.t; tp : Domain.t} type env = env_entry list val env_to_sem_env : env -> Domain.env type error = Cannot_synth_term of Syntax.t | Type_mismatch of Domain.t * Domain.t | Expecting_universe of Domain.t | Misc of string ...
e25f6bffee066736f4153cd0f55deb3c297212e0d6ff94de1586c759d6c04575
haskell-jp/makeMistakesToLearnHaskell
Ex03.hs
{-# OPTIONS_GHC -Wno-unused-imports #-} module Education.MakeMistakesToLearnHaskell.Exercise.Ex03 ( exercise3 ) where #include <imports/external.hs> import Education.MakeMistakesToLearnHaskell.Exercise.Core import Education.MakeMistakesToLearnHaskell.Exercise.Types exercise3 :: Exercise exercise3 = Exercise "3"...
null
https://raw.githubusercontent.com/haskell-jp/makeMistakesToLearnHaskell/554e74ce09372d8b4c3c2d1158b9ca0784f2b571/src/Education/MakeMistakesToLearnHaskell/Exercise/Ex03.hs
haskell
# OPTIONS_GHC -Wno-unused-imports #
module Education.MakeMistakesToLearnHaskell.Exercise.Ex03 ( exercise3 ) where #include <imports/external.hs> import Education.MakeMistakesToLearnHaskell.Exercise.Core import Education.MakeMistakesToLearnHaskell.Exercise.Types exercise3 :: Exercise exercise3 = Exercise "3" $ runHaskellExercise diag3 $ Text.unlin...
7bb0ff0210c2f81c24faa192756a29785af8ddb5913268f1730b9aa855ebff76
tvraman/aster-math
new-document-objects.lisp
;;; -*- Mode: LISP -*- ;;; (in-package :aster) ;;{{{ mbox ;;; mbox should be handled differently from ordinary text blocks. ;;; This is because they way tex works, new blocks inherit from the sorrounding environment , whereas mbox introduced a new ;;; environment. The earlier simple approach of handling mb...
null
https://raw.githubusercontent.com/tvraman/aster-math/1023f636b80aeb971ec60a1201daab2ea2d175aa/lisp/read-aloud/new-document-objects.lisp
lisp
-*- Mode: LISP -*- ;;; {{{ mbox mbox should be handled differently from ordinary text blocks. This is because they way tex works, new blocks inherit from the environment. The earlier simple approach of handling mbox like any other block will therefore cause problems }}} {{{fbox For the present treating fb...
(in-package :aster) sorrounding environment , whereas mbox introduced a new (define-text-object :macro-name "mbox" :number-args 1 :processing-function mbox-expand :object-name text-box :supers (document) ) (define-text-object :macro-name "fbox" :number-args 1 :processing-function fbox-exp...
a1ef81d759536ddec7063e26fb4c557e79784a4df43e407b3bc6bbaf1dcaf4c2
boris-ci/boris
Pin.hs
# LANGUAGE NoImplicitPrelude # module Boris.Git.Pin ( Pin , newPin , checkPin , waitForPin , pullPin ) where import Boris.Prelude import Control.Concurrent.MVar import System.IO newtype Pin = Pin { pin :: MVar () } newPin :: IO Pin newPin = Pin <$> newEmptyMVar chec...
null
https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-git/src/Boris/Git/Pin.hs
haskell
# LANGUAGE NoImplicitPrelude # module Boris.Git.Pin ( Pin , newPin , checkPin , waitForPin , pullPin ) where import Boris.Prelude import Control.Concurrent.MVar import System.IO newtype Pin = Pin { pin :: MVar () } newPin :: IO Pin newPin = Pin <$> newEmptyMVar chec...
a8b83fec53d0b1bfe20192ee049c8c0244c71a4010d5964c1c0af0ebb403d3a6
basvandijk/nixtodo
IndexTemplater.hs
{-# language PackageImports #-} {-# language OverloadedStrings #-} module Nixtodo.Backend.IndexTemplater ( Config(..) , parseConfig , Handle , getConfig , with , getHashed , getClient ) where import qualified "SHA" Data.Digest.Pure.SHA as SHA import "base" Contro...
null
https://raw.githubusercontent.com/basvandijk/nixtodo/b22cc584208f74258a697e2a4143eb068af55aec/hs-pkgs/nixtodo-backend/src/Nixtodo/Backend/IndexTemplater.hs
haskell
# language PackageImports # # language OverloadedStrings #
module Nixtodo.Backend.IndexTemplater ( Config(..) , parseConfig , Handle , getConfig , with , getHashed , getClient ) where import qualified "SHA" Data.Digest.Pure.SHA as SHA import "base" Control.Concurrent.MVar (MVar, newMVar, withMVar) import "base"...
d955f074727ea8a334b73c8d76a6a07389244d711c16c4c38eac38f815ae8c5e
NetComposer/nksip
core_test_client2.erl
-module(core_test_client2). Include nkserver macros %% -include_lib("nkserver/include/nkserver_module.hrl"). -include_lib("eunit/include/eunit.hrl"). -include_lib("nksip/include/nksip.hrl"). -include_lib("nkserver/include/nkserver_module.hrl"). -export([config/1]). -export([sip_get_user_pass/4, sip_invite/2, sip_...
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/callbacks/core_test_client2.erl
erlang
-include_lib("nkserver/include/nkserver_module.hrl"). Util %%%%%%%%%%%%%%%%%%%%
-module(core_test_client2). Include nkserver macros -include_lib("eunit/include/eunit.hrl"). -include_lib("nksip/include/nksip.hrl"). -include_lib("nkserver/include/nkserver_module.hrl"). -export([config/1]). -export([sip_get_user_pass/4, sip_invite/2, sip_reinvite/2, sip_cancel/3, sip_bye/2, sip_info/2, sip_...
dc87edcdf89d1e7f671afd4cc5b2513bba7676d83275458e25af4cb736a658f0
tjknoth/resyn
Type.hs
# LANGUAGE DeriveFunctor # -- | Refinement Types module Synquid.Type where import Synquid.Logic import Synquid.Util import qualified Data.Set as Set import Data.Set (Set) import qualified Data.Map as Map import Data.Map.Ordered (OMap) import qualified Data.Map.Ordered as OMap import Dat...
null
https://raw.githubusercontent.com/tjknoth/resyn/54ff304c635f26b4b498b82be267923a65e0662d/src/Synquid/Type.hs
haskell
| Refinement Types Type skeletons | Type skeletons (parametrized by refinements, potentials) Ignore predicates | Unrefined typed | Refined types | Unrefined schemas | Refined schemas | Refinement base type isScalarType (LetT _ _ t) = isScalarType t isFunctionType (LetT _ _ t) = isFunctionType t | Conventio...
# LANGUAGE DeriveFunctor # module Synquid.Type where import Synquid.Logic import Synquid.Util import qualified Data.Set as Set import Data.Set (Set) import qualified Data.Map as Map import Data.Map.Ordered (OMap) import qualified Data.Map.Ordered as OMap import Data.Map (Map) import ...
c8a63520019d5956c6b542da196daff6ce6fae50fcb17d7fb8682e85b0ff632a
mikera/alchemy
dungeon.clj
(ns mikera.alchemy.dungeon (:use mikera.orculje.core) (:use mikera.orculje.util) (:use mikera.cljutils.error) (:import [mikera.util Rand]) (:require [mikera.cljutils.find :as find]) (:require [mikera.alchemy.lib :as lib]) (:require [mikera.orculje.mapmaker :as mm])) (defmacro and-as-> [expr sym & body] ...
null
https://raw.githubusercontent.com/mikera/alchemy/57d47eea6ecbef20e97c9a360b57d50985039bf0/src/main/clojure/mikera/alchemy/dungeon.clj
clojure
an empty room (println connections) prefer split on longer dimension.... width of connecting wall
(ns mikera.alchemy.dungeon (:use mikera.orculje.core) (:use mikera.orculje.util) (:use mikera.cljutils.error) (:import [mikera.util Rand]) (:require [mikera.cljutils.find :as find]) (:require [mikera.alchemy.lib :as lib]) (:require [mikera.orculje.mapmaker :as mm])) (defmacro and-as-> [expr sym & body] ...
8ad5081f341116bdbe7f036009e55cda2568ed705571ce9ac2ace6b53d3c777b
eugeneia/athens
test.lisp
;; test.lisp (defpackage :garbage-pools.test (:use #:cl #:garbage-pools #:lift) (:nicknames #:gp.test) (:export #:run-garbage-pools-tests)) (in-package #:garbage-pools.test) (deftestsuite garbage-pools-test () ()) ;;; test-cleanup-pool (addtest (garbage-pools-test) test-cleanup-pool (ensure-same '(1 2 3...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/garbage-pools-20130720-git/test.lisp
lisp
test.lisp test-cleanup-pool test-with-garbage-pool-1 test-with-cleanup-pool-2 test-cleanup-object-1 test-cleanup-object-2 test-object-register-and-defcleanup run-garbage-pools-tests
(defpackage :garbage-pools.test (:use #:cl #:garbage-pools #:lift) (:nicknames #:gp.test) (:export #:run-garbage-pools-tests)) (in-package #:garbage-pools.test) (deftestsuite garbage-pools-test () ()) (addtest (garbage-pools-test) test-cleanup-pool (ensure-same '(1 2 3 4) (let ((list nil)...
f9664a4e4233bb067311a5f8ffbd16ddb38f62c5d854042156ccce3f29806307
nboldi/c-parser-in-haskell
MiniC.hs
# LANGUAGE FlexibleContexts , MultiParamTypeClasses , TypeOperators , TupleSections # -- | Tests for the C parser module MiniC where import MiniC.ParseProgram import MiniC.Parser import MiniC.Parser.Lexical import MiniC.Parser.Base hiding (tuple) import MiniC.AST import MiniC.MiniCPP import MiniC.Semantics...
null
https://raw.githubusercontent.com/nboldi/c-parser-in-haskell/1a92132e7d1b984cf93ec89d6836cc804257b57d/MiniC.hs
haskell
| Tests for the C parser * Literal tests * Expressions tests | Tests that each expression is parsed successfully and printed back the same * Instruction tests | Tests that each statement is parsed successfully and printed back the same * Type tests * Declaration tests * Sample program tests * Helper ...
# LANGUAGE FlexibleContexts , MultiParamTypeClasses , TypeOperators , TupleSections # module MiniC where import MiniC.ParseProgram import MiniC.Parser import MiniC.Parser.Lexical import MiniC.Parser.Base hiding (tuple) import MiniC.AST import MiniC.MiniCPP import MiniC.Semantics import MiniC.SymbolTable i...
d5398ac9ca0cadd561a8501766aaed8aa4d02e78b6fe35b49785c600d206c5b3
racket/racket7
demo2.rkt
#lang racket/base (time (let loop ([j 10]) (unless (zero? j) (let () (define p (open-input-file "compiled/io.rktl")) (port-count-lines! p) (let loop () (define s (read-string 100 p)) (unless (eof-object? s) (loop))) (close-input-port p) (loop (su...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/io/demo2.rkt
racket
#lang racket/base (time (let loop ([j 10]) (unless (zero? j) (let () (define p (open-input-file "compiled/io.rktl")) (port-count-lines! p) (let loop () (define s (read-string 100 p)) (unless (eof-object? s) (loop))) (close-input-port p) (loop (su...
fba9a9bfe893f298221045f70abdb3ec1fd110e26dd013d328a945dd32cfb763
bvaugon/ocapic
thermostat.ml
(*************************************************************************) (* *) (* OCaPIC *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/tests/thermostat1/thermostat.ml
ocaml
*********************************************************************** OCaPIC ...
This file is distributed under the terms of the CeCILL license . open Pic;; open Lcd;; exception StartStop;; type kind = Nothing | Plus | Minus | Twice 80.0 ° C 32.5 ° C 2.0 ° C let output = RD1;; let plus_button = RD5;; let minus_butto...
9ae37a6da8b1d7c00db4beaec2c61d976ceeb008ac7a7814cc8fceda7c542e7e
mirage/qubes-mirage-skeleton
unikernel.ml
Copyright ( C ) 2016 , See the README file for details . See the README file for details. *) open Lwt open Qubes let src = Logs.Src.create "unikernel" ~doc:"Main unikernel code" module Log = (val Logs.src_log src : Logs.LOG) Get the first IPv4 address from a list of addresses . let rec first_v4 = funct...
null
https://raw.githubusercontent.com/mirage/qubes-mirage-skeleton/18d2f18d15efc5d1011101baeb1df72e0a07e5cd/unikernel.ml
ocaml
Start qrexec agent and GUI agent in parallel Wait for clients to connect Test by downloading
Copyright ( C ) 2016 , See the README file for details . See the README file for details. *) open Lwt open Qubes let src = Logs.Src.create "unikernel" ~doc:"Main unikernel code" module Log = (val Logs.src_log src : Logs.LOG) Get the first IPv4 address from a list of addresses . let rec first_v4 = funct...
4eaaa2aaebb67efa7943c01ff4bebb2f555994ea9c8299a28178cfe2cda24091
brownplt/lambda-py
python-compile.rkt
#lang plai-typed/untyped (require "python-core-syntax.rkt" "python-phases.rkt" "python-desugar.rkt" "util.rkt" "parser/parser.rkt" (typed-in "get-structured-python.rkt" (get-structured-python : ('a -> 'b))) (typed-in racket/base (open-input-f...
null
https://raw.githubusercontent.com/brownplt/lambda-py/c3ee39502c8953d36b886e5a203f2eb51d2f495b/base/python-compile.rkt
racket
skip %locals trick a more stable way to find globals in expr (define (get-global-names expr-str) (get-module-level-globals (get-structured-python (parse-python/string expr-str (get-pypath))))) built-in compile function, which takes source, filename, mode and code class as its arguments
#lang plai-typed/untyped (require "python-core-syntax.rkt" "python-phases.rkt" "python-desugar.rkt" "util.rkt" "parser/parser.rkt" (typed-in "get-structured-python.rkt" (get-structured-python : ('a -> 'b))) (typed-in racket/base (open-input-f...
9943b010c1f223843ad0fd3d68b4aa5a14438b06df1cfcdad2e9991f6eb4750b
Zulu-Inuoe/clution
server.lisp
(defpackage #:qlot/server (:use #:cl) (:import-from #:qlot/source #:*dist-base-url* #:prepare #:source-prepared #:url-path-for #:project.txt #:distinfo.txt #:releases.txt #:systems.txt ...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/qlot-20180131-git/server.lisp
lisp
Use PATH If PATH is an URL, not an URL path.
(defpackage #:qlot/server (:use #:cl) (:import-from #:qlot/source #:*dist-base-url* #:prepare #:source-prepared #:url-path-for #:project.txt #:distinfo.txt #:releases.txt #:systems.txt ...
606fa47bd5e50849f1c20021edad02ebc13fc18ed8fc55182e15c15d65457b96
v-kolesnikov/sicp
3_01.clj
(ns sicp.chapter03.3-01) (defn make-accumulator [start] (let [counter (atom start)] (fn [x] (swap! counter + x))))
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/src/sicp/chapter03/3_01.clj
clojure
(ns sicp.chapter03.3-01) (defn make-accumulator [start] (let [counter (atom start)] (fn [x] (swap! counter + x))))
46401edf9da5e2b80388b92b767b811235023dab95666740e2c464a4dcb6fd7a
jrheard/voke
visualize.cljs
(ns voke.world.visualize (:require [reagent.core :as r] [voke.util :refer [timeout]] [voke.world.generation :as generate])) ;; Constants (def grid-width 100) (def grid-height 100) (def canvas-height 800) (def canvas-width 800) ; TODO revisit *all* of these atoms (defonce selected-tab (r/at...
null
https://raw.githubusercontent.com/jrheard/voke/15b272955d214ce0c531fb2b8d645feb217255c2/src/voke/world/visualize.cljs
clojure
Constants TODO revisit *all* of these atoms drunkard's automata Reagent components Main
(ns voke.world.visualize (:require [reagent.core :as r] [voke.util :refer [timeout]] [voke.world.generation :as generate])) (def grid-width 100) (def grid-height 100) (def canvas-height 800) (def canvas-width 800) (defonce selected-tab (r/atom :drunkard)) (defonce rng-seed (atom (.valueOf...
9bb4120eef12167cbe4b7027c1472a30896d8514864d0869fb597f7ae2a6e1df
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude ` signatures ` field used with cabal - version < 2.0 main = cabalTest $ fails $ cabal "check" []
null
https://raw.githubusercontent.com/haskell/cabal/1da1893e985a5f51e9dae384880ef16e12383a19/cabal-testsuite/PackageTests/Check/ConfiguredPackage/Sanity/VersionSignatures/cabal.test.hs
haskell
import Test.Cabal.Prelude ` signatures ` field used with cabal - version < 2.0 main = cabalTest $ fails $ cabal "check" []
cd784e8a712f6969d8d9e18f2cdef9d5575fccdd1ecff8e1c2a0cc1b5cb91af7
timbertson/vdoml
event.ml
include Event_.Event
null
https://raw.githubusercontent.com/timbertson/vdoml/fcbf81e89df989206bdad4a92327e593078525b2/src/event.ml
ocaml
include Event_.Event
1f6f9f1cf2e4a8e6a480a31c61fc615202b68a64bf98e5042e7e5a00271191f4
samplecount/shake-language-c
Language.hs
Copyright 2012 - 2014 Samplecount S.L. -- Licensed under the Apache License , Version 2.0 ( the " License " ) ; -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- -2.0 -- -- Unless required by applicable law or agreed to in writing, software di...
null
https://raw.githubusercontent.com/samplecount/shake-language-c/7eba37910bf711cc4c3fe6e7f065c8108858eea4/src/Development/Shake/Language/C/Language.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2012 - 2014 Samplecount S.L. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , # LANGUAGE TemplateHaskell # module Development.Shake.Language.C.Language ( Language(..) , defaultLanguageMap , languageOf ) w...
536f8def692438e973985bf7d324465e5d8b48e6883d48e8c7ba59aeee8e152f
thheller/shadow-experiments
worker.cljs
(ns todomvc.split.worker (:require [shadow.experiments.grove.worker :as sw] [todomvc.split.env :as env] [todomvc.split.db])) ;; this is running in the worker thread (defn ^:dev/after-load after-load [] (sw/refresh-all-queries! env/rt-ref)) (defn init [] (sw/init! env/rt-ref))
null
https://raw.githubusercontent.com/thheller/shadow-experiments/a2170c2214778b6b9a9253166383396d64d395a4/src/dev/todomvc/split/worker.cljs
clojure
this is running in the worker thread
(ns todomvc.split.worker (:require [shadow.experiments.grove.worker :as sw] [todomvc.split.env :as env] [todomvc.split.db])) (defn ^:dev/after-load after-load [] (sw/refresh-all-queries! env/rt-ref)) (defn init [] (sw/init! env/rt-ref))
340b7edb37215c39d7612eb273d0b855b5ccb251c2665f357eccb4d7396ebef0
helium/erlang-dkg
dkg_util.erl
-module(dkg_util). -export([allnodes/1, wrap/2, commitment_cache_fun/0]). allnodes(N) -> lists:seq(1, N). %% wrap a subprotocol's outbound messages with a protocol identifier -spec wrap(Tag :: {vss, non_neg_integer()}, [{multicast, Msg :: any()} | {unicast, non_neg_integer(), Msg :: any()}]) -> [{multicast, {Tag, M...
null
https://raw.githubusercontent.com/helium/erlang-dkg/a22b841ae6cb31b17e547a6f208e93fa35f04b7f/src/dkg_util.erl
erlang
wrap a subprotocol's outbound messages with a protocol identifier
-module(dkg_util). -export([allnodes/1, wrap/2, commitment_cache_fun/0]). allnodes(N) -> lists:seq(1, N). -spec wrap(Tag :: {vss, non_neg_integer()}, [{multicast, Msg :: any()} | {unicast, non_neg_integer(), Msg :: any()}]) -> [{multicast, {Tag, Msg}} | {unicast, non_neg_integer(), {Tag, Msg}}]. wrap(_, []) -> ...
1d63c2f00ef7a8a42cc1adda7eb03445d540c7af8cdb66a1a4161f27755bd816
8c6794b6/hpc-codecov
Report.hs
# LANGUAGE CPP # -- | Module : Trace . Hpc . . Report Copyright : ( c ) 2022 8c6794b6 -- License: BSD3 Maintainer : 8c6794b6 < > -- -- Generate Codecov report data. module Trace.Hpc.Codecov.Report ( -- * Types Report(..) , CoverageEntry(..) , LineHits , Hit(..) -- * Functions , gen...
null
https://raw.githubusercontent.com/8c6794b6/hpc-codecov/bb450af48b51e4e71057385e5a966ecd0ac6660d/src/Trace/Hpc/Codecov/Report.hs
haskell
| License: BSD3 Generate Codecov report data. * Types * Functions base array bytestring directory filepath hpc ------------------------------------------------------------------------ Exported ------------------------------------------------------------------------ | Data type to hold information f...
# LANGUAGE CPP # Module : Trace . Hpc . . Report Copyright : ( c ) 2022 8c6794b6 Maintainer : 8c6794b6 < > module Trace.Hpc.Codecov.Report Report(..) , CoverageEntry(..) , LineHits , Hit(..) , genReport , genCoverageEntries , emitCoverageJSON ) where import Control.Exception ...
4f678d17f7d96418c82a7a2f5f11645d014d60ae1e0816a786ebd7aa093c0473
input-output-hk/plutus
Main.hs
-- editorconfig-checker-disable-file {-# LANGUAGE LambdaCase #-} # LANGUAGE TypeApplications # module Main where import Prelude ((<>)) import Prelude qualified as Hs import Control.Lens hiding (argument) import Control.Monad () import Control.Monad.Trans.Except (runExceptT) import Data.ByteString qualified as ...
null
https://raw.githubusercontent.com/input-output-hk/plutus/bb9b5a18c26476fbf6b2f446ab267706426fec3a/plutus-benchmark/nofib/exe/Main.hs
haskell
editorconfig-checker-disable-file # LANGUAGE LambdaCase # | A program together with its arguments | The actions this program can perform Clausify options -- Primes options -- Main parsers -- -------------- Evaluation ---------------- Extra information about the available programs. We need a Doc becaus...
# LANGUAGE TypeApplications # module Main where import Prelude ((<>)) import Prelude qualified as Hs import Control.Lens hiding (argument) import Control.Monad () import Control.Monad.Trans.Except (runExceptT) import Data.ByteString qualified as BS import Data.Char (isSpace) import Data.Foldable (traverse_) import F...
98e9a8c7b199fa06e00933ffead61e52e616cf1cc87678741e396acd875aa680
pascalpoizat/fbpmn
Model.hs
module Fbpmn.Analysis.Alloy.Model where data AlloyProperty = Safety | SimpleTermination | CorrectTermination data AlloyAction = Run | Check data AlloyVerification = AlloyVerification { action :: AlloyAction , property :: AlloyProperty , nb :: Natural }
null
https://raw.githubusercontent.com/pascalpoizat/fbpmn/f4c4443c40d576c76969b1fc971137c41bfc5c6f/src/Fbpmn/Analysis/Alloy/Model.hs
haskell
module Fbpmn.Analysis.Alloy.Model where data AlloyProperty = Safety | SimpleTermination | CorrectTermination data AlloyAction = Run | Check data AlloyVerification = AlloyVerification { action :: AlloyAction , property :: AlloyProperty , nb :: Natural }
7733a38ae205b939c637b1dda86843894d6afd6bda618d5820d6e78e98aefec0
csabahruska/jhc-components
Locale.hs
module System.Locale where data TimeLocale = TimeLocale { full and abbreviated week days full and abbreviated months amPm :: (String, String), -- AM/PM symbols dateTimeFmt, dateFmt, -- formatting strings timeFmt, time12Fmt :: String } deriving (Eq, Ord,Show) defau...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/haskell-extras/System/Locale.hs
haskell
AM/PM symbols formatting strings
module System.Locale where data TimeLocale = TimeLocale { full and abbreviated week days full and abbreviated months timeFmt, time12Fmt :: String } deriving (Eq, Ord,Show) defaultTimeLocale :: TimeLocale defaultTimeLocale = TimeLocale { wDays = [("Sunday", "Sun"), ("Monday", "Mon...
4bcb294455901d65d29add3441c8d34c4741438bbd07d7039f647981fcfb9726
hammerlab/prohlatype
multi_par.ml
Typing via a Parametric PHMM . open Prohlatype open Cmdline_options open Cmdliner let app_name = "multi_par" let to_read_size_dependent (* Allele information source *) file_prefix_or_directory only_class1 gen_nuc_mgd ~distance (* Cache logic. *) ~skip_disk_cache = let inputs = ...
null
https://raw.githubusercontent.com/hammerlab/prohlatype/3acaf7154f93675fc729971d4c76c2b133e90ce6/src/app/multi_par.ml
ocaml
Allele information source Cache logic. We do NOT accept selectors. Input Process What to do? options outputting logic. how are we typing Allele information source What to do ? What are we typing options. output logic. How are we typing
Typing via a Parametric PHMM . open Prohlatype open Cmdline_options open Cmdliner let app_name = "multi_par" let to_read_size_dependent file_prefix_or_directory only_class1 gen_nuc_mgd ~distance ~skip_disk_cache = let inputs = file_prefix_or_directory_to_allele_input_list ~distance...
9dd143863174c1541e2e8798901c54c679e86c79546d1735afb49a3e3949cd1d
hexlet-codebattle/battle_asserts
string_format.clj
(ns battle-asserts.issues.string-format (:require [clojure.test.check.generators :as gen])) (def level :elementary) (def tags ["strings"]) (def description {:en "Given a number as input, return a string \"Value is `num`\", where `num` is the given number with zeros added to the beginning so that there are 5 digi...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/e571121ee5e79543cd158ed42061268556caff56/src/battle_asserts/issues/string_format.clj
clojure
(ns battle-asserts.issues.string-format (:require [clojure.test.check.generators :as gen])) (def level :elementary) (def tags ["strings"]) (def description {:en "Given a number as input, return a string \"Value is `num`\", where `num` is the given number with zeros added to the beginning so that there are 5 digi...
b5ea5d7d836f4a0a8cd218dfeb5b073910b93e6f7f86bfbbb5c797ffb14dc02a
sentenai/reinforce
EpsilonGreedy.hs
module Reinforce.Policy.EpsilonGreedy where import Control.Monad.IO.Class import Data.List (maximumBy) import Data.Ord (comparing) import Control.MonadMWCRandom epsilonGreedy :: (MonadIO m, Ord r, Variate r, MonadMWCRandom m) => [(a, r)] -> r -> m a epsilonGreedy acts = epsilonChoice (fst $ maximumBy (comparing snd)...
null
https://raw.githubusercontent.com/sentenai/reinforce/03fdeea14c606f4fe2390863778c99ebe1f0a7ee/reinforce-algorithms/src/Reinforce/Policy/EpsilonGreedy.hs
haskell
module Reinforce.Policy.EpsilonGreedy where import Control.Monad.IO.Class import Data.List (maximumBy) import Data.Ord (comparing) import Control.MonadMWCRandom epsilonGreedy :: (MonadIO m, Ord r, Variate r, MonadMWCRandom m) => [(a, r)] -> r -> m a epsilonGreedy acts = epsilonChoice (fst $ maximumBy (comparing snd)...
1e6f9768de3866df81fe23eed71f084fe5384fa577cd1006f3870602c9314f46
fission-codes/cli
Pin.hs
-- | Pin files via the CLI module Fission.CLI.IPFS.Pin (add) where import Fission.Prelude import Servant.Client import Network.IPFS.CID.Types import Fission.Web.Client as Client import qualified Fission.Web.Client.IPFS as Fission import Fission.CLI.Display.Error as CLI.Error im...
null
https://raw.githubusercontent.com/fission-codes/cli/dc3500babad35a6cb44835fa503d27d672cbcdb3/library/Fission/CLI/IPFS/Pin.hs
haskell
| Pin files via the CLI
module Fission.CLI.IPFS.Pin (add) where import Fission.Prelude import Servant.Client import Network.IPFS.CID.Types import Fission.Web.Client as Client import qualified Fission.Web.Client.IPFS as Fission import Fission.CLI.Display.Error as CLI.Error import qualified Fission.CLI....
abe41ac61d7a1d7f5de609d9c33520397093df037523c9152ee898a1ae8523d5
racket/typed-racket
submodule.rkt
#lang typed/racket/base/shallow ;; Test importing a flat value (module u racket/base (define x 3) (provide x)) (require/typed 'u (x Byte)) (+ x 1)
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/submodule.rkt
racket
Test importing a flat value
#lang typed/racket/base/shallow (module u racket/base (define x 3) (provide x)) (require/typed 'u (x Byte)) (+ x 1)
a8cac1c9d182f5641ad4f0074caa742322cf269283bcfb49760544e49ff8ba90
sjl/dram
project.clj
(defproject dram "0.1.0-SNAPSHOT" :description "Clojure templating that won't make you want to drink." :url "/" :license {:name "MIT/X11"} :dependencies [[org.clojure/clojure "1.4.0"] [the/parsatron "0.0.3"]])
null
https://raw.githubusercontent.com/sjl/dram/64d620ca4f90c2ce2128b15d19e20733fedb80b8/project.clj
clojure
(defproject dram "0.1.0-SNAPSHOT" :description "Clojure templating that won't make you want to drink." :url "/" :license {:name "MIT/X11"} :dependencies [[org.clojure/clojure "1.4.0"] [the/parsatron "0.0.3"]])
528977ce77348e21c9f706a910c45c3defd0c0ff4531206856b12f39d9434204
dselsam/arc
DyeInputs.hs
Copyright ( c ) 2020 Microsoft Corporation . All rights reserved . Released under Apache 2.0 license as described in the file LICENSE . Authors : , , . # LANGUAGE ScopedTypeVariables # {-# LANGUAGE StrictData #-} module Solver.Tactics.DyeInputs where import Util.Imports import qualified Util.List as List ...
null
https://raw.githubusercontent.com/dselsam/arc/7e68a7ed9508bf26926b0f68336db05505f4e765/src/Solver/Tactics/DyeInputs.hs
haskell
# LANGUAGE StrictData # for input-output grids `g1` and `g2`, a color `c` is `kept` if for every `idx`, `Grid.get g1 idx == c` implies that `Grid.get g2 idx == c` @jesse: this is an assertion/sanity check right? are you sure you want silent failures for this?
Copyright ( c ) 2020 Microsoft Corporation . All rights reserved . Released under Apache 2.0 license as described in the file LICENSE . Authors : , , . # LANGUAGE ScopedTypeVariables # module Solver.Tactics.DyeInputs where import Util.Imports import qualified Util.List as List import Solver.SolveM import ...
5d2f371ab76cfa564724feb2140e2ae1bbfe4901ed9f9193e4e52cbc4327b739
dyzsr/ocaml-selectml
test.ml
(* TEST * expect *) module Exp = struct type _ t = | IntLit : int -> int t | BoolLit : bool -> bool t | Pair : 'a t * 'b t -> ('a * 'b) t | App : ('a -> 'b) t * 'a t -> 'b t | Abs : ('a -> 'b) -> ('a -> 'b) t let rec eval : type s . s t -> s = function | IntL...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-gadts/test.ml
ocaml
TEST * expect warn warn warn : Any here s = s*s! ok fails fails fails fails fails fails ok! ok! ok ok ok ok (u non-ambiguous) fails because u : (int | a) option ref ok ok fail Effect of external consraints ok ok ok ok returns 'a Combination with local modules ...
module Exp = struct type _ t = | IntLit : int -> int t | BoolLit : bool -> bool t | Pair : 'a t * 'b t -> ('a * 'b) t | App : ('a -> 'b) t * 'a t -> 'b t | Abs : ('a -> 'b) -> ('a -> 'b) t let rec eval : type s . s t -> s = function | IntLit x -> x | Boo...
9f853b4b72d616b77eca0cf0268dd700f8354e0db77535a2e67fa414928c3e0b
ml4tp/tcoq
indfun.mli
open Misctypes val warn_cannot_define_graph : ?loc:Loc.t -> Pp.std_ppcmds * Pp.std_ppcmds -> unit val warn_cannot_define_principle : ?loc:Loc.t -> Pp.std_ppcmds * Pp.std_ppcmds -> unit val do_generate_principle : bool -> (Vernacexpr.fixpoint_expr * Vernacexpr.decl_notation list) list -> unit val function...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/plugins/funind/indfun.mli
ocaml
open Misctypes val warn_cannot_define_graph : ?loc:Loc.t -> Pp.std_ppcmds * Pp.std_ppcmds -> unit val warn_cannot_define_principle : ?loc:Loc.t -> Pp.std_ppcmds * Pp.std_ppcmds -> unit val do_generate_principle : bool -> (Vernacexpr.fixpoint_expr * Vernacexpr.decl_notation list) list -> unit val function...