_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
6809a18793c8b9ab75e313c49f3f77e9fc45045a813b510017fec5e8d4a19ba7
llvm-hs/llvm-hs-typed
Global.hs
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # {-# LANGUAGE ExplicitForAll #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE FunctionalDependencies # # LANGUAGE TypeFamilyDependencies # # LANGUAGE PolyKinds # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE MultiParam...
null
https://raw.githubusercontent.com/llvm-hs/llvm-hs-typed/efe052cf2a7ac8e6fb8dba1879d75d036f6fcc80/src/LLVM/AST/Tagged/Global.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE GADTs # It is currently a stub | This creates a 'Global' from typed parameters. It is equal to 'functionDefaults' with the fields 'AST.name', 'AST.returnType' and
# LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE FunctionalDependencies # # LANGUAGE TypeFamilyDependencies # # LANGUAGE PolyKinds # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE MultiParamTypeClasses # # LANGUAGE Flexibl...
0488498aaa18954541711fd3201bd593c5fff10e0626a8d290bef44dfeafc973
ideas-edu/ideas
Document.hs
----------------------------------------------------------------------------- Copyright 2019 , Ideas project team . This file is distributed under the terms of the Apache License 2.0 . For more information , see the files " LICENSE.txt " and " NOTICE.txt " , which are included in the distribution . -------...
null
https://raw.githubusercontent.com/ideas-edu/ideas/f84907f92a8c407b7313f99e65a08d2646dc1565/src/Ideas/Text/XML/Document.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- | Maintainer : Stability : provisional --------------------------------------------------------------------------- content particles --------------...
Copyright 2019 , Ideas project team . This file is distributed under the terms of the Apache License 2.0 . For more information , see the files " LICENSE.txt " and " NOTICE.txt " , which are included in the distribution . Portability : portable ( depends on ghc ) Datatype for representing XML docume...
5bf37f59445b7797af102940ae6740b0c46d102eabb7772451768c6b23384efc
bobzhang/fan
option.mli
val may : ('a -> unit) -> 'a option -> unit val map : ('a -> 'b) -> 'a option -> 'b option val bind : 'a option -> ('a -> 'b option) -> 'b option val apply : ('a -> 'a) option -> 'a -> 'a val filter : ('a -> bool) -> 'a option -> 'a option val default : 'a -> 'a option -> 'a val is_some : 'a option -> bool val is_n...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/utils/option.mli
ocaml
val may : ('a -> unit) -> 'a option -> unit val map : ('a -> 'b) -> 'a option -> 'b option val bind : 'a option -> ('a -> 'b option) -> 'b option val apply : ('a -> 'a) option -> 'a -> 'a val filter : ('a -> bool) -> 'a option -> 'a option val default : 'a -> 'a option -> 'a val is_some : 'a option -> bool val is_n...
b75bbdf3694850eddc4a22fe10aec30b35aa6cb4a33d1ea73d84b6b8d43c263e
jlouis/enacl
enacl_ext.erl
%%% @doc module enacl_ext implements various enacl extensions. < p > None of the extensions listed here are part of the official NaCl library . %%% Functions may be removed without further notice if it suddenly ends up being %%% better to do something differently than the solution given here. %%% </p> -module(enacl_e...
null
https://raw.githubusercontent.com/jlouis/enacl/9919871e5313df24497914bb50791f0690a3be97/src/enacl_ext.erl
erlang
@doc module enacl_ext implements various enacl extensions. Functions may be removed without further notice if it suddenly ends up being better to do something differently than the solution given here. </p> Curve25519 @doc scramble_block_16/2 scrambles (encrypt) a block under a given key is scrambled by means of ...
< p > None of the extensions listed here are part of the official NaCl library . -module(enacl_ext). -export([ scramble_block_16/2 ]). -export([ curve25519_keypair/0, curve25519_public_key/1, curve25519_shared/2 ]). The rules are that the block is 16 bytes and ...
bbd77007174484da6c9b48720d829d57ed68dab937a09aa8dee13babc9cebf86
well-typed/cborg
IO.hs
-- | Module : Codec . Serialise . IO Copyright : ( c ) 2015 - 2017 License : BSD3 - style ( see LICENSE.txt ) -- -- Maintainer : -- Stability : experimental Portability : non - portable ( GHC extensions ) -- -- High-level file-based API for serialising and deserialising values. -- module Cod...
null
https://raw.githubusercontent.com/well-typed/cborg/9be3fd5437f9d2ec1df784d5d939efb9a85fd1fb/serialise/src/Codec/Serialise/IO.hs
haskell
| Maintainer : Stability : experimental High-level file-based API for serialising and deserialising values. * @'System.IO.Handle'@ API
Module : Codec . Serialise . IO Copyright : ( c ) 2015 - 2017 License : BSD3 - style ( see LICENSE.txt ) Portability : non - portable ( GHC extensions ) module Codec.Serialise.IO * API writeFileSerialise , readFileDeserialise , hPutSerialise ) where import Codec.Serialise
d775113125549cdb1aa8a8b62929b05b78944a1797f271bf512a8c77dcd0b8eb
HiiGHoVuTi/Catrina
Main.hs
# LANGUAGE RecordWildCards , LambdaCase , BangPatterns , OverloadedStrings # module Main where import Control.Applicative import Control.DeepSeq import Control.Exception import Control.Monad import Control.Monad.Trans import Data.Maybe (fromMaybe) import Data.Text hiding ( foldl1, map, filter, unlines, empty, foldl, ...
null
https://raw.githubusercontent.com/HiiGHoVuTi/Catrina/9e8f6cebf9a3eb29d074f7bde4bcad96bd2f8689/app/Main.hs
haskell
NOTE(Maxime): newtype is only here because linter is mad at me FIXME(Maxime): monad gymnastics getName :: Declaration -> Text getName (ArrowDeclaration _ n _ _) = n getName (ObjectDeclaration _ n _ ) = n filterDecls :: Program -> Program filterDecls (Program i exports' decls) ...
# LANGUAGE RecordWildCards , LambdaCase , BangPatterns , OverloadedStrings # module Main where import Control.Applicative import Control.DeepSeq import Control.Exception import Control.Monad import Control.Monad.Trans import Data.Maybe (fromMaybe) import Data.Text hiding ( foldl1, map, filter, unlines, empty, foldl, ...
c8586bf8fb93612c07c9584d164a75a519337c244de36e3f52aa3b9188840e4f
Deducteam/Dedukti
processor.mli
(** A process module processes entries. It is parameterized by an environment. *) (** {1 How to use processors} *) * As a user of the API of Dedukti , processors are the main entry point . The point of processors is to handle automatically inputs and files for you . The API of has already defined 5 proce...
null
https://raw.githubusercontent.com/Deducteam/Dedukti/abbe11318189c32ae236671ccd8dcf3c89525065/api/processor.mli
ocaml
* A process module processes entries. It is parameterized by an environment. * {1 How to use processors} * Each constructor corresponds to a processor. This type is extensible so that we can use this API with your own processors. * Build a signature without type checking * Pretty print * Compute dependencies ...
* As a user of the API of Dedukti , processors are the main entry point . The point of processors is to handle automatically inputs and files for you . The API of has already defined 5 processors for you , but you are free to define more . This 5 processors are : - TypeChecker : to type check...
e492c18efd7365d1771a21cfd83bd6d6055ed34419f8bb1679feed61b89b6993
Engil/Toolboy
cartridge_internals.ml
module Constants = struct let title = 0x134, 0x143 let manufacturer_proj = 0x13F, 0x142 let cgb_flag = 0x143 let new_licensee_proj = 0x144, 0x145 let sgb_flag = 0x146 let cartridge_flag = 0x147 let rom_size = 0x148 let ram_size = 0x149 end let is_cgb rom = let f = Bytes.get rom Constants.cgb_flag in match Uint8....
null
https://raw.githubusercontent.com/Engil/Toolboy/04fcda69a8b1c79a68fe316a1e85d70c93238a0c/lesserboy/cartridge_internals.ml
ocaml
module Constants = struct let title = 0x134, 0x143 let manufacturer_proj = 0x13F, 0x142 let cgb_flag = 0x143 let new_licensee_proj = 0x144, 0x145 let sgb_flag = 0x146 let cartridge_flag = 0x147 let rom_size = 0x148 let ram_size = 0x149 end let is_cgb rom = let f = Bytes.get rom Constants.cgb_flag in match Uint8....
da72a7a80df09c4d3b890d724eebaa54ddc26a276a3e9b596b0a08f92d280594
janestreet/core_bench
verbosity.ml
* A module internal to [ Core_bench ] . Please look at { ! Bench } . open Core type t = | Quiet | Low | High [@@deriving sexp] let verbosity : t ref = ref Low let set_verbosity v = verbosity := v let print_high s = match !verbosity with | High -> printf s | Low | Quiet -> Printf.ifprintf stdout s ;; let...
null
https://raw.githubusercontent.com/janestreet/core_bench/746d2440aa10795f1ef286df64be46e7d4ff768c/internals/verbosity.ml
ocaml
* A module internal to [ Core_bench ] . Please look at { ! Bench } . open Core type t = | Quiet | Low | High [@@deriving sexp] let verbosity : t ref = ref Low let set_verbosity v = verbosity := v let print_high s = match !verbosity with | High -> printf s | Low | Quiet -> Printf.ifprintf stdout s ;; let...
ebedbd18c28d308af43f1744aba15bc751e7732dffe91e22873c72bf5ef49982
ocamllabs/ocaml-modular-implicits
trace.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/toplevel/trace.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Format type codeptr type traced...
ef650a80c32df35e2bf38c72d24a8a4b8f8461037fbd4e59b9da16cca432cca8
danlentz/datomic-rdf
model_test.clj
(ns datomic-rdf.model-test (:require [clojure.test :refer :all] [datomic-rdf.model :refer :all])) (defn init-db [f] (init-rdf-db) (f)) (use-fixtures :once init-db) (deftest schema-var-tests (is (every? map? (list stmt resource graph resource literal bnode))) (is (every? #(or (fn? %) (instance? ...
null
https://raw.githubusercontent.com/danlentz/datomic-rdf/cffa0d425d70de690a42c354cd3c4c503b17700f/test/datomic_rdf/model_test.clj
clojure
(ns datomic-rdf.model-test (:require [clojure.test :refer :all] [datomic-rdf.model :refer :all])) (defn init-db [f] (init-rdf-db) (f)) (use-fixtures :once init-db) (deftest schema-var-tests (is (every? map? (list stmt resource graph resource literal bnode))) (is (every? #(or (fn? %) (instance? ...
31140b4f37b3fe40078eb6867041dffa5e8b380371b9b4e9d1fb8dfc4995fc4e
katydid/katydid-haskell
Simplify.hs
{-#LANGUAGE GADTs #-} -- | -- This module simplifies Relapse patterns. module Data.Katydid.Relapse.Simplify ( simplify ) where import qualified Data.Set as S import Data.Katydid.Relapse.Ast import Data.Katydid.Relapse.Expr import Data.Katydid.Relapse.Exprs.Logi...
null
https://raw.githubusercontent.com/katydid/katydid-haskell/4588cd8676628cd15c671d61b65bdc2f3a199a38/src/Data/Katydid/Relapse/Simplify.hs
haskell
#LANGUAGE GADTs # | This module simplifies Relapse patterns. | simplify simplifies an input pattern to an equivalent simpler pattern.
module Data.Katydid.Relapse.Simplify ( simplify ) where import qualified Data.Set as S import Data.Katydid.Relapse.Ast import Data.Katydid.Relapse.Expr import Data.Katydid.Relapse.Exprs.Logic simplify :: Grammar -> Pattern -> Pattern simplify g pat = let sim...
59bb095477e62c5bd53989481c5f6e1df517ca52aeea40451e5a2d9d0567941e
composewell/streamly
String.hs
# LANGUAGE TemplateHaskell # -- | Module : Streamly . Internal . Unicode . String Copyright : ( c ) 2022 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC -- -- Convenient template Haskell quasiquoters to format strings. -- Design No...
null
https://raw.githubusercontent.com/composewell/streamly/45e21892bcd25103b589801f114c5153250baab3/core/src/Streamly/Internal/Unicode/String.hs
haskell
| License : BSD-3-Clause Maintainer : Stability : experimental Convenient template Haskell quasiquoters to format strings. Design Notes: Essential requirements are: Haskell expression expansion Newline treatment (continue without introducing a newline) Indentation treatment instead of "#" was ano...
# LANGUAGE TemplateHaskell # Module : Streamly . Internal . Unicode . String Copyright : ( c ) 2022 Composewell Technologies Portability : GHC We choose # { expr } for patching a expression 's value in a string . " $ " commands . Another option was to use just " { } " ( like in PyF package ) but we...
60d22fbd0f9aedf0a2396b610e29c285843c2018b53b5bdcd54dc39d7d617764
camllight/camllight
emitcode.ml
(* Generation of bytecode for .zo files *) #open "misc";; #open "const";; #open "lambda";; #open "instruct";; #open "prim";; #open "opcodes";; #open "prim_opc";; #open "buffcode";; #open "config";; #open "labels";; let out_bool_test tst = function PTeq -> out tst | PTnoteq -> out (tst + 1) | PTlt ...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/windows/src/compiler/emitcode.ml
ocaml
Generation of bytecode for .zo files
#open "misc";; #open "const";; #open "lambda";; #open "instruct";; #open "prim";; #open "opcodes";; #open "prim_opc";; #open "buffcode";; #open "config";; #open "labels";; let out_bool_test tst = function PTeq -> out tst | PTnoteq -> out (tst + 1) | PTlt -> out (tst + 2) | PTgt -> out (ts...
042d0c649ffe7971544542564994586f009792d52c57296eca1b7bea025ba435
juspay/euler-hs
Common.hs
| Module : EulerHS.Core . Types . Common Copyright : ( C ) Juspay Technologies Pvt Ltd 2019 - 2022 License : Apache 2.0 ( see the file LICENSE ) Maintainer : Stability : experimental Portability : non - portable Common types and helper functions . This module is inter...
null
https://raw.githubusercontent.com/juspay/euler-hs/0fdda6ef43c1a6c9c7221d7c194c278e375b9936/src/EulerHS/Core/Types/Common.hs
haskell
* Guid for any flow * Guid for a forked flow * Guid for a safe flow * Network manager selector * Description type * A variable for await results from a forked flow | Guid for any flow. This type can be used to specify a separate logger formatting for each flow. | Guid for a forked flow. Service type, rarely ...
| Module : EulerHS.Core . Types . Common Copyright : ( C ) Juspay Technologies Pvt Ltd 2019 - 2022 License : Apache 2.0 ( see the file LICENSE ) Maintainer : Stability : experimental Portability : non - portable Common types and helper functions . This module is inter...
3111e7c1c670b8743c3f111f49ce3f21e17a92c39a616ec7d99806b2f88a153d
yzhs/ocamlllvm
aux.ml
open Reg val debug : ( * Print a debugging message to stdout val debug : bool ref (* Print a debugging message to stdout *) val print_debug : string -> unit val (++) : 'a -> ('a -> 'b) -> 'b val reg_name : reg -> string val string_of_reg : reg -> string Print the internal representation of an instruction i...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/asmcomp/aux.ml
ocaml
Print a debugging message to stdout Raise an Llvm_error with the string given as an argument.
open Reg val debug : ( * Print a debugging message to stdout val debug : bool ref val print_debug : string -> unit val (++) : 'a -> ('a -> 'b) -> 'b val reg_name : reg -> string val string_of_reg : reg -> string Print the internal representation of an instruction in a notation * inspired by S - expressi...
7b5717584a451548935d9f26003eb98855fc70124db6eeabacf72d0052776d53
aryx/lfs
lfs-tunes.ml
open Common open Commonop (* lablgtk *) (*****************************************************************************) * usage : * ./lfs - tunes -path_xpm_pixmaps /path / to / gui - xpms/ -sleep_time 1000000000 * * lfs - tunes vs iTunes : * Each action have repercursion on all the other windows (...
null
https://raw.githubusercontent.com/aryx/lfs/b931530c7132b77dfaf3c99d452dc044fce37589/gui/lfs-tunes.ml
ocaml
lablgtk *************************************************************************** *************************************************************************** Flags *************************************************************************** old: ignore(Sys.command ("usleep " ^ !_sleep_time)) ********************...
open Common open Commonop * usage : * ./lfs - tunes -path_xpm_pixmaps /path / to / gui - xpms/ -sleep_time 1000000000 * * lfs - tunes vs iTunes : * Each action have repercursion on all the other windows ( orthogonality ) * ( in fact itunes can do that too a little , can browse from query , ha...
fe1bf2b2c8c1d395154fed29d8dc523113773e191c9a2c7242f7703054883c23
pjotrp/guix
fonts.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ;...
null
https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/gnu/packages/fonts.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2014 < > Copyright © 2015 < > Copyright © 2015 < > Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Pu...
a0ebaf66cba2ecb3ceb8eb6ce81e0040137a14cc164844c2e4e5cf91dcb083ec
GaloisInc/pate
Environment.hs
{-# LANGUAGE GADTs #-} # LANGUAGE ImplicitParams # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # module Pa...
null
https://raw.githubusercontent.com/GaloisInc/pate/a48c447156d95686c308a6d5ec696464120e0970/src/Pate/Monad/Environment.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # symbolically executing functions in the "inline callee" feature ^ input equivalence problems to solve ^ expression builder, wrapped with a validity proof ^ start checkpoint for timed events - see 'startTimer' and 'emitEvent' ^ the current assumption frame, accumulated as ...
# LANGUAGE ImplicitParams # # LANGUAGE TypeFamilies # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PolyKinds # module Pate.Monad.Environment ( EquivEnv(..) , envCtxL...
f130e00f0f22496f3bad6c50e30f4d9ab68a4c34f38d5e63c023374290d07f19
lemmaandrew/CodingBatHaskell
minCat.hs
From Given two strings , append them together ( known as \"concatenation\ " ) and return the result . However , if the strings are different lengths , omit chars from the longer string so it is the same length as the shorter string . So \"Hello\ " and \"Hi\ " yield \"loHi\ " . The strings may be any length ....
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/String-1/minCat.hs
haskell
From Given two strings , append them together ( known as \"concatenation\ " ) and return the result . However , if the strings are different lengths , omit chars from the longer string so it is the same length as the shorter string . So \"Hello\ " and \"Hi\ " yield \"loHi\ " . The strings may be any length ....
517ce5551df2971f18983b4398ec97a4a8baaecd97e0461fbf4029e8f0fa998d
agrafix/Spock
Spock.hs
# LANGUAGE DataKinds # {-# LANGUAGE DoAndIfThenElse #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Web.Spock ( -- * Launching Spock runSpock, runSpockNoBanner, spockAsApp, -- * Spock's ro...
null
https://raw.githubusercontent.com/agrafix/Spock/a1c7aeae97b4015fb24212a4734cf98ce00c6f44/Spock/src/Web/Spock.hs
haskell
# LANGUAGE DoAndIfThenElse # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # * Launching Spock * Spock's route definition monad * Defining routes * Rendering routes * Hooking routes * Adding Wai.Middleware * Actions * Accessing internals Spock works with database libraries that alread...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # module Web.Spock runSpock, runSpockNoBanner, spockAsApp, spock, SpockM, SpockCtxM, Path, root, Var, AltVar (..), var, static, (<//>), wildcard, renderRoute, prehook,...
cbc7bd1d0117871627becb98f1e21313cfc9fde3cc9bce3facf7249aca5d6998
mirage/orm
appengine_save.ml
* Copyright ( c ) 2009 - 2010 * < > * < > * * 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 SOFTWAR...
null
https://raw.githubusercontent.com/mirage/orm/24c2e0e3157853b2328d09feacdbe637e34d354c/lib/appengine_save.ml
ocaml
* Copyright ( c ) 2009 - 2010 * < > * < > * * 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 SOFTWAR...
eda68ba734e36b60197ebba9448ae386e0dd9d321788d157b2252c3bb1737ae6
ocamllabs/ocaml-modular-implicits
t15bad.ml
(* Bad - PR 4512 *) module type S' = sig type t = int end module rec M : S' with type t = M.t = struct type t = M.t end;;
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-recmod/t15bad.ml
ocaml
Bad - PR 4512
module type S' = sig type t = int end module rec M : S' with type t = M.t = struct type t = M.t end;;
f914128c4a8e69789f50a76a61b3308a3242f826cfb7575abfdd810f7e50f69a
b0-system/b0
b0_b0.mli
--------------------------------------------------------------------------- Copyright ( c ) 2020 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/b0-system/b0/cbe12b8a55da6b50ab01ed058b339dbed3cfe894/tool-b0/b0_b0.mli
ocaml
* [b0] driver common definitions. FIXME cleanup and move to [B0_cli], cmdlets may be interested. * [driver] is the driver definition. * [list (module Def) c details ns] lists definition [Def] named [ns] with details [details]. If [ns] is empty all definitions are listed. * [get (module Def) k ns] ge...
--------------------------------------------------------------------------- Copyright ( c ) 2020 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
53e80f7dfe3d0a1325a5fcea015a5a413248c300e95550f32efe8e23a39fac6b
luminus-framework/examples
project.clj
(defproject guestbook "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :dependencies [[cheshire "5.8.1"] [cljs-ajax "0.8.0"] [clojure.java-time "0.3.2"] [com.cognitect/transit-clj "0.8.313"] [com.h2database/h2 "1.4.197"] ...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/guestbook-sente/project.clj
clojure
(defproject guestbook "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :dependencies [[cheshire "5.8.1"] [cljs-ajax "0.8.0"] [clojure.java-time "0.3.2"] [com.cognitect/transit-clj "0.8.313"] [com.h2database/h2 "1.4.197"] ...
02930b0532be1cb56682f70545bd3e243f3df478b8738cd82bbb49cc03610f27
Virtual-Insurance-Products/clim-web
package.lisp
(in-package :cl-user) (defpackage :clim-web (:use :cl :climwi :web-monad :com.gigamonkeys.html :web-transpiler :vip-utils :net.aserve :anaphors :monads :web-utils : parenscript :cl-ppcre) (:export #:clim-request-handler #:clim-web-manager #:clim-styles-and-s...
null
https://raw.githubusercontent.com/Virtual-Insurance-Products/clim-web/06aeff0794b50c3efe18a3c99bb495f428908185/package.lisp
lisp
(in-package :cl-user) (defpackage :clim-web (:use :cl :climwi :web-monad :com.gigamonkeys.html :web-transpiler :vip-utils :net.aserve :anaphors :monads :web-utils : parenscript :cl-ppcre) (:export #:clim-request-handler #:clim-web-manager #:clim-styles-and-s...
014b2f6b91f76222919d2cfd65304219b27f4761903055a9fa9bd2762e5840a7
clojure-interop/java-jdk
MetalPopupMenuSeparatorUI.clj
(ns javax.swing.plaf.metal.MetalPopupMenuSeparatorUI "A Metal L&F implementation of PopupMenuSeparatorUI. This implementation is a \"combined\" view/controller." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.metal MetalPopupMenuSeparatorUI])) (defn ->metal-popup-menu-separator-ui...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/metal/MetalPopupMenuSeparatorUI.clj
clojure
(ns javax.swing.plaf.metal.MetalPopupMenuSeparatorUI "A Metal L&F implementation of PopupMenuSeparatorUI. This implementation is a \"combined\" view/controller." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.metal MetalPopupMenuSeparatorUI])) (defn ->metal-popup-menu-separator-ui...
abc642443c3bf5f65f0188863e671e4ea2081814a9d649a4e23b8aea5f3c579a
hjcapple/reading-sicp
monte_carlo_stream.scm
#lang racket ;; [3.5.5 函数式程序的模块化和对象的模块化] (require "stream.scm") (require "infinite_stream.scm") for rand - update , gcd (provide monte-carlo) (define random-init 7) (define random-numbers (cons-stream random-init (stream-map rand-update random-numbers))) (define (map-successive-pairs f s) (con...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_3/monte_carlo_stream.scm
scheme
[3.5.5 函数式程序的模块化和对象的模块化]
#lang racket (require "stream.scm") (require "infinite_stream.scm") for rand - update , gcd (provide monte-carlo) (define random-init 7) (define random-numbers (cons-stream random-init (stream-map rand-update random-numbers))) (define (map-successive-pairs f s) (cons-stream (f (stream-car ...
e281d38c3f502327ebabf22fdd2cee0a490e161f7615d54b24e2c8fef243948c
imandra-ai/ocaml-gcloud
storage.ml
module Scopes = struct let devstorage_read_only = "" end let get_object_stream (bucket_name : string) (object_path : string) : (string Lwt_stream.t, [> Error.t ]) Lwt_result.t = let open Lwt_result.Infix in Auth.get_access_token ~scopes:[ Scopes.devstorage_read_only ] () |> Lwt_result.map_err (fun e ->...
null
https://raw.githubusercontent.com/imandra-ai/ocaml-gcloud/8d8b0f69d4b9099fef97804bdd84bed2b2bf7c51/src/storage.ml
ocaml
Other fields not parsed currently
module Scopes = struct let devstorage_read_only = "" end let get_object_stream (bucket_name : string) (object_path : string) : (string Lwt_stream.t, [> Error.t ]) Lwt_result.t = let open Lwt_result.Infix in Auth.get_access_token ~scopes:[ Scopes.devstorage_read_only ] () |> Lwt_result.map_err (fun e ->...
efc99275d042f5c2ad348c6f6fb7c86e60e597ab8f35e68329c53142e240c37d
glutamate/bugpan
Quantal.hs
# LANGUAGE DeriveDataTypeable , ScopedTypeVariables , NoMonomorphismRestriction , ViewPatterns , PackageImports # module Main where import System.Environment import Database import Query hiding (io) import QueryTypes import QueryUtils hiding (averageSigs) import qualified QueryUtils as QU import Data.Maybe import Dat...
null
https://raw.githubusercontent.com/glutamate/bugpan/d0983152f5afce306049262cba296df00e52264b/FETi/Quantal.hs
haskell
io $ print (amp,sd) io $ print (amp,sd) io $ putStr "init =" io $ print $ initialV set n 300,200,150,100,75,50,30,20,15,10 ] 300,200,150,100,75,50,30,20,15,10] L.scale 1.5 $
# LANGUAGE DeriveDataTypeable , ScopedTypeVariables , NoMonomorphismRestriction , ViewPatterns , PackageImports # module Main where import System.Environment import Database import Query hiding (io) import QueryTypes import QueryUtils hiding (averageSigs) import qualified QueryUtils as QU import Data.Maybe import Dat...
8fb4387d41d8b1af3fe3c127322e13db74eb5f5b7490ffb91c2bd8f5a2f74a69
galdor/tungsten
pointers.lisp
(in-package :json) (deftype pointer () 'list) (deftype child-pointer () '(or list string (integer 0))) (define-condition pointer-parse-error (parse-error) ((format-control :type string :initarg :format-control :reader pointer-parse-error-format-control) (format-arguments :type list :init...
null
https://raw.githubusercontent.com/galdor/tungsten/fdf3c294cd3c46870bfaf39f34b131aaadb6494a/tungsten-json/src/pointers.lisp
lisp
(in-package :json) (deftype pointer () 'list) (deftype child-pointer () '(or list string (integer 0))) (define-condition pointer-parse-error (parse-error) ((format-control :type string :initarg :format-control :reader pointer-parse-error-format-control) (format-arguments :type list :init...
88fb0415d0eabccafd8b230c0ae19fe720952f675f7b49231746e273df37cd70
lierdakil/pandoc-crossref
Native.hs
pandoc - crossref is a pandoc filter for numbering figures , equations , tables and cross - references to them . Copyright ( C ) 2015 < > 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 Foundat...
null
https://raw.githubusercontent.com/lierdakil/pandoc-crossref/6c042487edcc4c7b33518375203f5c8a69516d3a/test/Native.hs
haskell
pandoc - crossref is a pandoc filter for numbering figures , equations , tables and cross - references to them . Copyright ( C ) 2015 < > 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 Foundat...
8d035a4431134ea5d7d3287dac73a0eba5af9a8bacbc7e5b223c2f8a192f7f58
imitator-model-checker/imitator
NonlinearConstraint.ml
open DiscreteExpressions open OCamlUtilities open Constants type variable = int Non - linear custom expression without PPL type nonlinear_inequality = DiscreteExpressions.discrete_arithmetic_expression * DiscreteExpressions.relop * DiscreteExpressions.discrete_arithmetic_expression type nonlinear_constraint = Disc...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/NonlinearConstraint.ml
ocaml
if all true, it's satisfied Check if a nonlinear constraint is satisfied nonlinear_inequalities nonlinear_inequalities nonlinear_inequalities nonlinear_inequalities Get True non-linear constraint Get False non-linear constraint Get string of non-linear constraint inequalities with customized strings ...
open DiscreteExpressions open OCamlUtilities open Constants type variable = int Non - linear custom expression without PPL type nonlinear_inequality = DiscreteExpressions.discrete_arithmetic_expression * DiscreteExpressions.relop * DiscreteExpressions.discrete_arithmetic_expression type nonlinear_constraint = Disc...
64ab13bb9003197d88c22b57986da6288605132025e2367092c29426d52bb4bb
cbaggers/rtg-math
consing.lisp
(in-package :rtg-math.projection) ;;------------------------------------------------------------ Checked against GLM 's perspectiveRH (vari:v-defun perspective-radian-fov ((width :float) (height :float) (near :float) (far :float) (fov :floa...
null
https://raw.githubusercontent.com/cbaggers/rtg-math/29fc5b3d0028a4a11a82355ecc8cca62662c69e0/vari/projection/perspective/consing.lisp
lisp
------------------------------------------------------------ note: is right handed ------------------------------------------------------------
(in-package :rtg-math.projection) Checked against GLM 's perspectiveRH (vari:v-defun perspective-radian-fov ((width :float) (height :float) (near :float) (far :float) (fov :float)) (let* ((aspect (/ width height)) (tan-half-fov (...
9a2c19745c21272495c850df266f022221f3c050fe9fff31ec6ee9ccc7429f12
s-expressionists/ctype
numbers.lisp
(in-package #:ctype.ext.tfun) (defmacro with-ranges ((&rest bindings) &body body) (loop for ((low lxp high hxp) rangeform) in bindings for rsym = (gensym "RANGE") collect `(,rsym ,rangeform) into rbindings collect `(,low (range-low ,rsym)) into rbindings collect `(,lxp (range-low-excl...
null
https://raw.githubusercontent.com/s-expressionists/ctype/4fc4c5ae44c435ed82556969f698005bee50101c/ext/tfun/numbers.lisp
lisp
FIXME: In various places below we check constantness, but we could be a little bit looser. e.g. = on (or (eql 4) (eql 4.0))s is still true. Are the values of t1 and t2 provably never =? of different kind. If some pair of types is disjoint, always false. If some types are constant we may still eke out a false. wh...
(in-package #:ctype.ext.tfun) (defmacro with-ranges ((&rest bindings) &body body) (loop for ((low lxp high hxp) rangeform) in bindings for rsym = (gensym "RANGE") collect `(,rsym ,rangeform) into rbindings collect `(,low (range-low ,rsym)) into rbindings collect `(,lxp (range-low-excl...
e8dc6859e94edca89c38146b494ba781cc518da7b60dd51ee39a3c7e080545df
futurice/haskell-mega-repo
Assignment.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeFamilies # -- | Copyright : ( c ) 2015 Futurice Oy -- License : BSD3 Maintainer : < > module PlanMill.Types.Assignment ( Assignment(....
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/e301c08c8dfdcca048fe82fecce6bb2d02e9558a/planmill-client/src/PlanMill/Types/Assignment.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # | License : BSD3 | 'Assignment' is a @User ∨ Team ~ Task@ relation. In other words, whether user (themselves or as a part of a team) can mark hours to a particular task.
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # Copyright : ( c ) 2015 Futurice Oy Maintainer : < > module PlanMill.Types.Assignment ( Assignment(..), Assignments, AssignmentId, ) where import PlanMill.Internal.Prelude import PlanMill.T...
9275986cd301dfcddfc32f7061f47747ec6627baf1a4faf9e452187f8a227e12
morphismtech/squeal
Window.hs
| Module : Squeal . PostgreSQL.Expression . Window Description : window functions , arguments and definitions Copyright : ( c ) , 2019 Maintainer : Stability : experimental window functions , arguments and definitions Module: Squeal.PostgreSQL.Expression.Window Description: window functions, arguments...
null
https://raw.githubusercontent.com/morphismtech/squeal/f25c3052bcecebe5e88ee95143c4ae446c24ca85/squeal-postgresql/src/Squeal/PostgreSQL/Expression/Window.hs
haskell
* Window Definition * Window Function ** Types #->) ** Functions to the current row ^ `partitionBy` clause ^ `Squeal.PostgreSQL.Expression.Sort.orderBy` clause | The `partitionBy` clause within `Squeal.PostgreSQL.Query.Over` divides the rows into groups, or partitions, that share the same values of the `partiti...
| Module : Squeal . PostgreSQL.Expression . Window Description : window functions , arguments and definitions Copyright : ( c ) , 2019 Maintainer : Stability : experimental window functions , arguments and definitions Module: Squeal.PostgreSQL.Expression.Window Description: window functions, arguments...
4074ee4158461d95c9ec7421186383c9bc4aaf537326071b654dfe0cc779e189
haskell/stylish-haskell
Imports.hs
{-# LANGUAGE BlockArguments #-} {-# LANGUAGE DoAndIfThenElse #-} # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Language.Haskell.Stylish.Step.Imports ( Options (..) , defaultOptions ,...
null
https://raw.githubusercontent.com/haskell/stylish-haskell/05cc9e18f39ee7d465746d8493832e4012d6674b/lib/Language/Haskell/Stylish/Step/Imports.hs
haskell
# LANGUAGE BlockArguments # # LANGUAGE DoAndIfThenElse # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Language.Haskell.Stylish.Step.Imports ( Options (..) , defaultOptions , ImportAlign (..) , ListAlign (..) , LongListAlign (..) , EmptyListAlign (..) , ListPadding (..) , GroupRule (..) , step , pr...
01dc2c672d4a8b31a4cbded7d5a461ab2d332e372a9d59c29c74cfd7850c5e8f
janestreet/bonsai
test_constant_fold.mli
(*_ This file intentionally left blank. *)
null
https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/test/test_constant_fold.mli
ocaml
_ This file intentionally left blank.
9127bb964527500df3891279f219bf98b2bd5ee8d88c4d6d1a3697881b507fa8
chaw/r7rs-libs
modular.sps
(import (except (scheme base) quotient) (scheme write) (slib math-integer) (slib modular) ) (display (extended-euclid 23 57)) (newline) (display (quotient 3 2)) (newline)
null
https://raw.githubusercontent.com/chaw/r7rs-libs/b8b625c36b040ff3d4b723e4346629a8a0e8d6c2/slib-examples/modular.sps
scheme
(import (except (scheme base) quotient) (scheme write) (slib math-integer) (slib modular) ) (display (extended-euclid 23 57)) (newline) (display (quotient 3 2)) (newline)
9d826984cc2207c5b517753be74e4c13235f332520c6f343e21ff1c47feadc60
rems-project/cerberus
gen_version.ml
let version = (* Trick to check whether the watermark has been substituted. *) if "%%VERSION%%" <> "%%" ^ "VERSION%%" then "%%VERSION%%" else (* If not, we fallback to git version. *) let cmd = "git describe --dirty --always" in let (oc, ic, ec) = Unix.open_process_full cmd (Unix.environment ()) in let ver...
null
https://raw.githubusercontent.com/rems-project/cerberus/124c93f10cb4c235f6396adec82ebf9563daeb7e/tools/gen_version.ml
ocaml
Trick to check whether the watermark has been substituted. If not, we fallback to git version.
let version = if "%%VERSION%%" <> "%%" ^ "VERSION%%" then "%%VERSION%%" else let cmd = "git describe --dirty --always" in let (oc, ic, ec) = Unix.open_process_full cmd (Unix.environment ()) in let version = try Printf.sprintf "git-%s" (input_line oc) with End_of_file -> "unknown" in match Unix.clos...
cd72f31066783018333f99f4a8e4fa24829409ebb8b991750b9ce943499acc96
yetanalytics/dave
surfer.clj
(ns com.yetanalytics.dave.filter-scratch.surfer (:require [clojure.java.io :as io] [clojure.datafy :as d] [cheshire.core :as json] [cheshire.factory :as fac] [clojure.core.async :as a]) (:import [org.jsfr.json JacksonParser ParsingContext ...
null
https://raw.githubusercontent.com/yetanalytics/dave/7a71c2017889862b2fb567edc8196b4382d01beb/scratch/filter-scratch/src/main/com/yetanalytics/dave/filter_scratch/surfer.clj
clojure
JsonSurferJackson/INSTANCE
(ns com.yetanalytics.dave.filter-scratch.surfer (:require [clojure.java.io :as io] [clojure.datafy :as d] [cheshire.core :as json] [cheshire.factory :as fac] [clojure.core.async :as a]) (:import [org.jsfr.json JacksonParser ParsingContext ...
bc7ec110b7a93a6d8ea90a691c551a2283885ab3c7c064209b33286ceefa9a68
gdevanla/write-you-a-python-lexer
test_tokenizer5.hs
import RIO import System.IO import qualified RIO.Text as T import qualified Data.Text as T import qualified Data.List as L import Prelude (print, read) import Test.Tasty import Test.Tasty.HUnit import Text.Regex.TDFA import Data.Array import System.FilePath import System.Directory (listDirectory) import TestTokenizer...
null
https://raw.githubusercontent.com/gdevanla/write-you-a-python-lexer/b07bd85df1f29e4505d4f52e975ae0d9dc8a3605/test/test_tokenizer5.hs
haskell
defaultMain $ testGroup "tokenizer_tests" $ tests' defaultMain tests
import RIO import System.IO import qualified RIO.Text as T import qualified Data.Text as T import qualified Data.List as L import Prelude (print, read) import Test.Tasty import Test.Tasty.HUnit import Text.Regex.TDFA import Data.Array import System.FilePath import System.Directory (listDirectory) import TestTokenizer...
14655d98662d1fa4ad679dfb6d4524f4f49df70eef002a6d8dba18fece9952d9
qnikst/okasaki
ex3_7.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # import Data.Heap.Class data ExplicitMin h a = Empty | Heap a (h a) deriving (Show) instance (Heap h) => Heap (ExplicitMin h) where empty = Empty isEmpty Empty = True isEmpty _ = False insert v Empty = Heap v (v `insert` empty) ins...
null
https://raw.githubusercontent.com/qnikst/okasaki/f6f3c4211df16e4dde3a5cb4d6aaf19a68b99b0e/ch03/ex3_7.hs
haskell
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # import Data.Heap.Class data ExplicitMin h a = Empty | Heap a (h a) deriving (Show) instance (Heap h) => Heap (ExplicitMin h) where empty = Empty isEmpty Empty = True isEmpty _ = False insert v Empty = Heap v (v `insert` empty) ins...
5a69795fd80728bc5617a614d5f977ec15b4cd1e63544276d349de5dceabfe39
Rhywun/get-programming-with-haskell
Main.hs
module Main where import Primes import System.IO main :: IO () main = do hSetBuffering stdout NoBuffering putStr "Enter a number to check if it's prime: " num <- getLine let result = isPrime (read num :: Int) -- TODO: Need error-checking here -- Thi...
null
https://raw.githubusercontent.com/Rhywun/get-programming-with-haskell/b9cf06f725b2ef038d69ed49f7d2900f55e98ca3/Unit06/Lesson37/primes/app/Main.hs
haskell
TODO: Need error-checking here This is the subject of the next lesson --reads-- Hard pass...
module Main where import Primes import System.IO main :: IO () main = do hSetBuffering stdout NoBuffering putStr "Enter a number to check if it's prime: " num <- getLine case result of Just True -> putStrLn "It is prime!" Just False -> putStrLn "It's not prime." Nothing -> ...
e3d24a81b46e720599248ad0f8bc699428c96afb801458624a68b3299dc32c11
leanprover/tc
Quotient.hs
| Module : . Quotients Description : Declare quotient . Copyright : ( c ) , 2017 License : GPL-3 Maintainer : Declare quotient . Module : Kernel.Quotients Description : Declare quotient. Copyright : (c) Daniel Selsam, 2017 License : GPL-3 Maintainer : Declare quotient. -...
null
https://raw.githubusercontent.com/leanprover/tc/250a568346f29ae27190fccee169ba10002c7399/src/Kernel/Quotient.hs
haskell
| Module : . Quotients Description : Declare quotient . Copyright : ( c ) , 2017 License : GPL-3 Maintainer : Declare quotient . Module : Kernel.Quotients Description : Declare quotient. Copyright : (c) Daniel Selsam, 2017 License : GPL-3 Maintainer : Declare quotient. -...
c7b55299f9a7a83a483d66b61e21ae54ce4056bd60a304bced57c22199e0fe66
aws-beam/aws-erlang
aws_panorama.erl
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE! See -beam/aws-codegen for more details . %% @doc AWS Panorama %% %% Overview %% This is the AWS Panorama API Reference . %% %% For an introduction to the service, see What is AWS Panorama? in the AWS Panorama Developer Guide . -module(aws_panorama). -export([create_...
null
https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_panorama.erl
erlang
WARNING: DO NOT EDIT, AUTO-GENERATED CODE! @doc AWS Panorama Overview For an introduction to the service, see What is AWS Panorama? in the AWS ==================================================================== API ==================================================================== @doc Creates an applicatio...
See -beam/aws-codegen for more details . This is the AWS Panorama API Reference . Panorama Developer Guide . -module(aws_panorama). -export([create_application_instance/2, create_application_instance/3, create_job_for_devices/2, create_job_for_devices/3, create_node_from_temp...
ec895742cd62cc1aa61de347060f97eb64d3d071363dd2f366f02f6e4e3575d7
snowdriftcoop/snowdrift
SampleSpec.hs
module SampleSpec (spec_sample) where import TestImport spec_sample :: Spec spec_sample = withApp $ describe "various properties" $ it "/home links to /privacy and /terms" $ do get WelcomeR traverse_ htmlHasLink [PrivacyR, TermsR]
null
https://raw.githubusercontent.com/snowdriftcoop/snowdrift/91fd1b84fea5d9c4aa2c419d91d790d886b3d100/website/test/SampleSpec.hs
haskell
module SampleSpec (spec_sample) where import TestImport spec_sample :: Spec spec_sample = withApp $ describe "various properties" $ it "/home links to /privacy and /terms" $ do get WelcomeR traverse_ htmlHasLink [PrivacyR, TermsR]
11a5f11e3a41c1f39fcfeb70b8b46d06ef5d7e5baf1471de062886325ed5285f
vvvvalvalval/datofu
all.clj
(ns datofu.all (:require [datofu.coll.array] [datofu.migration] [datofu.rel] [datofu.uid] [datofu.utils])) (defn schema-tx [] (vec (concat (datofu.coll.array/schema-tx) (datofu.migration/schema-tx) (datofu.rel/schema-tx) (datofu.uid/sche...
null
https://raw.githubusercontent.com/vvvvalvalval/datofu/c596c3beca92309135d88e338f233163c0e9cf5f/src/datofu/all.clj
clojure
(ns datofu.all (:require [datofu.coll.array] [datofu.migration] [datofu.rel] [datofu.uid] [datofu.utils])) (defn schema-tx [] (vec (concat (datofu.coll.array/schema-tx) (datofu.migration/schema-tx) (datofu.rel/schema-tx) (datofu.uid/sche...
0b240765da2d838cb1327a41ee09571b6371421af135373199571c69db9bd5a5
erlangonrails/devdb
db_entry.erl
2010 fuer Informationstechnik Berlin and onScale solutions GmbH 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 applica...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/src/db_entry.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 or implied. See the License for the specific language gov...
2010 fuer Informationstechnik Berlin and onScale solutions GmbH Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : db_entry.erl 906 2010 - 07 - 23 14:09:20Z schuett ...
c8cd678101946220e78f53a56dae1f1366ae9c1dcc5bed659ade94ec597bd321
freckle/stackctl
StackSpecPath.hs
# LANGUAGE NamedFieldPuns # module Stackctl.StackSpecPath ( StackSpecPath -- * Fields , stackSpecPathAccountId , stackSpecPathAccountName , stackSpecPathRegion , stackSpecPathStackName , stackSpecPathBasePath , stackSpecPathFilePath -- * Construction , stackSpecPath , stackSpecPathFromFilePath ...
null
https://raw.githubusercontent.com/freckle/stackctl/a6f86141d55d15e90e045ff803afa473a9dfa7a7/src/Stackctl/StackSpecPath.hs
haskell
* Fields * Construction | Render the (relative) 'StackSpecPath' ^ Must be relative, @stacks/@
# LANGUAGE NamedFieldPuns # module Stackctl.StackSpecPath ( StackSpecPath , stackSpecPathAccountId , stackSpecPathAccountName , stackSpecPathRegion , stackSpecPathStackName , stackSpecPathBasePath , stackSpecPathFilePath , stackSpecPath , stackSpecPathFromFilePath ) where import Stackctl.Prelude...
b621df6b1f2081859ffedd93606c06fb94f075c4119abf40b2686f45aeb45b16
bobeff/playground
013.rkt
Exercise 13 . Define the function string - first , which extracts the first ; 1String from a non-empty string. #lang racket (require rackunit) (define (string-first s) (substring s 0 1)) (check-exn exn:fail? (thunk (string-first ""))) (check-equal? (string-first "1") "1") (check-equal? (string-first "testing") ...
null
https://raw.githubusercontent.com/bobeff/playground/7072dbd7e0acd690749abe1498dd5f247cc21637/htdp-second-edition/exercises/013.rkt
racket
1String from a non-empty string.
Exercise 13 . Define the function string - first , which extracts the first #lang racket (require rackunit) (define (string-first s) (substring s 0 1)) (check-exn exn:fail? (thunk (string-first ""))) (check-equal? (string-first "1") "1") (check-equal? (string-first "testing") "t")
da312459703197ca8cc31fab7368033338bf5b35faf8dca331c461c6c20f645c
bhaskara/programmable-reinforcement-learning
rbe-linear-features.lisp
(defpackage rbe-linear-features (:documentation "Linear features and Q-function for calisp resource balance program") (:use cl rbe-prog calisp-features calisp-q-function rbe set utils) (:export make-rbe-crl-q-function)) (in-package rbe-linear-features) (defun make-rbe-cr...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/calisp-examples/res-balance/rbe-linear-features.lisp
lisp
A. Function that maps a pair I,J of peasant ids to a collision feature the feature depends on both of them B. the set of pairs of peasants we need collision features for first, create set of all pairs of peasants then, pick out pairs of peasants that are close to each other don't pick same pair twice A. fu...
(defpackage rbe-linear-features (:documentation "Linear features and Q-function for calisp resource balance program") (:use cl rbe-prog calisp-features calisp-q-function rbe set utils) (:export make-rbe-crl-q-function)) (in-package rbe-linear-features) (defun make-rbe-cr...
9fdfe39c6447b4263673210bc7deb62eff63fd96ca133fe9609df01faf0b3b60
swtwsk/vinci-lang
ConstDropping.hs
# LANGUAGE LambdaCase # module Core.ConstDropping (dropConsts) where import Control.Monad.Reader import qualified Data.Map as Map import Core.AST import Core.CoreManager import Core.ExpandTypeSynonyms (expandTypeSynonyms) type DropM = Reader (Map.Map (VarId Maybe) (Binding Maybe)) dropConsts :: CoreBindingsManager ...
null
https://raw.githubusercontent.com/swtwsk/vinci-lang/9c7e01953e0b1cf135af7188e0c71fe6195bdfa1/src/Core/ConstDropping.hs
haskell
# LANGUAGE LambdaCase # module Core.ConstDropping (dropConsts) where import Control.Monad.Reader import qualified Data.Map as Map import Core.AST import Core.CoreManager import Core.ExpandTypeSynonyms (expandTypeSynonyms) type DropM = Reader (Map.Map (VarId Maybe) (Binding Maybe)) dropConsts :: CoreBindingsManager ...
d4d83c9310e7212b888525f70fc93723d0fb9ebf4bb3f175188695c4d4ca6edc
kloimhardt/werkbank
manifold.clj
; Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology ; ; This 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 ; ei...
null
https://raw.githubusercontent.com/kloimhardt/werkbank/df66274eb978d060a043b8429b29d0f36c4a2e89/src/sicmutils/calculus/manifold.clj
clojure
This is free software; you can redistribute it and/or modify either version 3 of the License , or ( at your option) any later version. This software 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 PUR...
Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology 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 (ns sicmutils.calculus.manifold ...
97d0da7a192518e6d47877f734f823a8f0087d92fbc804d617ead777b0df9133
mbal/swank-racket
util.rkt
#lang racket (require rackunit "../util.rkt") (test-equal? "fix-truth-values on empty" (schemify-truth-values '()) '()) (test-equal? "fix-truth-values without truth" (schemify-truth-values '(1 (2 3 (4)))) '(1 (2 3 (4)))) (test-equal? "fix-truth-values with...
null
https://raw.githubusercontent.com/mbal/swank-racket/8a2efd2737700a795f301ec8ab47e11734336076/tests/util.rkt
racket
#lang racket (require rackunit "../util.rkt") (test-equal? "fix-truth-values on empty" (schemify-truth-values '()) '()) (test-equal? "fix-truth-values without truth" (schemify-truth-values '(1 (2 3 (4)))) '(1 (2 3 (4)))) (test-equal? "fix-truth-values with...
be1557166ccda2c231b4832736e85015a371322a893275e3011f74e9a4c25297
Deducteam/zenon_modulo
expr.mli
Copyright 2003 INRIA $ I d : expr.mli , v 1.22 2012 - 04 - 11 18:27:26 doligez Exp $ type private_info;; (* Expression definition *) type expr = private | Evar of string * private_info expr = ( ... ) or ( ... ) | Eapp of expr * expr list * private_info (* expr = Evar (...) *) args - > ret ...
null
https://raw.githubusercontent.com/Deducteam/zenon_modulo/9534fbdca0d009a513cb40d9a5a2a98329835c63/expr.mli
ocaml
Expression definition expr = Evar (...) variable, type, body definition-name, defined-ident, type, params, body, decreasing-arg Exceptions Expr comparison Term construction Prop construction Typing Misc functions [diff l1 l2] return [l1] without the formulas present in [l2] [union l1 l2] re...
Copyright 2003 INRIA $ I d : expr.mli , v 1.22 2012 - 04 - 11 18:27:26 doligez Exp $ type private_info;; type expr = private | Evar of string * private_info expr = ( ... ) or ( ... ) args - > ret | Enot of expr * private_info | Eand of expr * expr * private_info | Eor of expr * expr * p...
e15b7f297e607eabcf07df3e6dc6c3c3e95727278f1c6ee5e7642932cb66f04d
mmcqd/pure
lang_parser.ml
module Make (P : Prim_parser.S) (T : Pure.THEORY) = struct open Pure open P let arrow = symbol "->" <|> symbol "→" let forall = symbol "\\/" <|> symbol "∀" <|> symbol "Π" let lambda = symbol "\\" <|> symbol "λ" let rec expr i = chainr1 expr1 (arrow *> return (fun t1 t2 -> PI (("",t1),t2))) i and expr1 i = c...
null
https://raw.githubusercontent.com/mmcqd/pure/1a1dcb29925c6713dc295822164b4972f4c0bfc9/lang_parser.ml
ocaml
module Make (P : Prim_parser.S) (T : Pure.THEORY) = struct open Pure open P let arrow = symbol "->" <|> symbol "→" let forall = symbol "\\/" <|> symbol "∀" <|> symbol "Π" let lambda = symbol "\\" <|> symbol "λ" let rec expr i = chainr1 expr1 (arrow *> return (fun t1 t2 -> PI (("",t1),t2))) i and expr1 i = c...
5c3483a7056afedff10c3fc0152aeb9646be336442a5c6a3adfb765e262c5b57
ghcjs/ghcjs-dom
HTMLAllCollection.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.HTMLAllCollection (js_item, item, item_, itemUnsafe, itemUnchecked, js_namedItem, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLAllCollection.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.HTMLAllCollection (js_item, item, item_, itemUnsafe, itemUnchecked, js_namedItem, namedItem, namedItem_, namedItemUnsafe, namedItemUnchecked, js_getLength, getLength, HTM...
1ba59e7a0358e4d9a3524c67352490eede5175af4c84b35ac394e4275f6c46b5
flavioc/cl-hurd
lock.lisp
(in-package :hurd-common) ;; This file describes all the lock flags ;; associated with file locking. (defbitfield lock-flags (:lock-sh 1) (:lock-ex 2) (:lock-un 8) (:lock-nb 4))
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/common/lock.lisp
lisp
This file describes all the lock flags associated with file locking.
(in-package :hurd-common) (defbitfield lock-flags (:lock-sh 1) (:lock-ex 2) (:lock-un 8) (:lock-nb 4))
f592eccb8608ba7a85c8b4a4f54ed3814d402da342dad29e5105d1e51398833b
kupl/VeriSmart-public
exploitUtils.ml
open Lang open Vlang open Z3Interface open Vocab open Options open Query open Path open Semantics open ReportExploit open Transaction open ExecTran let rec qe_f : vformula -> vformula -> vformula = fun whole vf -> match vf with | VTrue | VFalse -> vf | VNot f -> VNot (qe_f whole f) | VAnd (f1,f2) -> VAnd (qe_f...
null
https://raw.githubusercontent.com/kupl/VeriSmart-public/99be7ba88b61994f1ed4c0d3a8e6a6db0f790431/src/exploit/exploitUtils.ml
ocaml
this case may appear when constraints are invalidated by * assembly block or function calls that are not inlined.
open Lang open Vlang open Z3Interface open Vocab open Options open Query open Path open Semantics open ReportExploit open Transaction open ExecTran let rec qe_f : vformula -> vformula -> vformula = fun whole vf -> match vf with | VTrue | VFalse -> vf | VNot f -> VNot (qe_f whole f) | VAnd (f1,f2) -> VAnd (qe_f...
5b59b30c3aa4c7e820707c06b78e9a9776a7e44b5853842575c284890d3955be
amnh/PCG
Custom.hs
----------------------------------------------------------------------------- -- | Module : TextShow . Custom Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- Utility Functions for working with an...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/serialize/src/TextShow/Custom.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- | Place a copy of the builder element in between each element in...
Module : TextShow . Custom Copyright : ( c ) 2015 - 2021 Ward Wheeler Utility Functions for working with and Builder module TextShow.Custom ( intercalateB ) where import Data.Foldable import Data.List (intersperse) import TextShow (Builder) intercalateB :: Foldable f => Builder -> f...
1f274ecbfbbd730134f02ea3011c765835e4fb574e2420223818bdf2afd679ad
heroku/cowboyku
autobahn_SUITE.erl
Copyright ( c ) 2011 , < > %% %% 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 DISCLAIMS A...
null
https://raw.githubusercontent.com/heroku/cowboyku/ba7120bdb119ac676909e51f0738bde1d4fdd4ee/test/autobahn_SUITE.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 ) 2011 , < > 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(autobahn_SUITE). project . The Autobahn project i...
45f4ee0d6062c7380914ccf2caf6921d12f528ebd7d9f6839987800321eaef98
eeng/shevek
api.clj
(ns shevek.querying.api (:require [shevek.engine.protocol :as e] [shevek.engine.state :refer [dw]] [shevek.db :refer [db]] [shevek.schema.repository :refer [find-cube]] [shevek.querying.auth :as auth] [shevek.schemas.query :refer [Query RawQuery]] ...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/clj/shevek/querying/api.clj
clojure
(ns shevek.querying.api (:require [shevek.engine.protocol :as e] [shevek.engine.state :refer [dw]] [shevek.db :refer [db]] [shevek.schema.repository :refer [find-cube]] [shevek.querying.auth :as auth] [shevek.schemas.query :refer [Query RawQuery]] ...
aff36f53c67aa9418a94f1c1167b059862930150fb9b9bd4bdc8525a9859fd44
ekmett/ad
Double.hs
{-# LANGUAGE Rank2Types #-} ----------------------------------------------------------------------------- -- | Copyright : ( c ) 2010 - 2021 -- License : BSD3 -- Maintainer : -- Stability : experimental Portability : GHC only -- -- Higher order derivatives via a \"dual number tower\". -- --------------...
null
https://raw.githubusercontent.com/ekmett/ad/6454d35d1aa6e2af04db9e549146c9cfe8d8bd3b/src/Numeric/AD/Mode/Tower/Double.hs
haskell
# LANGUAGE Rank2Types # --------------------------------------------------------------------------- | License : BSD3 Maintainer : Stability : experimental Higher order derivatives via a \"dual number tower\". --------------------------------------------------------------------------- * Taylor Series * ...
Copyright : ( c ) 2010 - 2021 Portability : GHC only module Numeric.AD.Mode.Tower.Double ( AD , TowerDouble , auto , taylor , taylor0 , maclaurin , maclaurin0 answer and first derivative of ( Double - > a ) zero padded derivatives of ( Double - > a ) zero padded derivatives of ( Double - > ...
0453eaae56c59fdf4a36d0a5fb547ebbd4b1d18612b15cdab2867947b176c3e9
umd-cmsc330/cmsc330spring22
utils.ml
open MicroCamlTypes open TokenTypes let string_of_token (t : token) : string = match t with | Tok_Sub -> "Tok_Sub" | Tok_RParen -> "Tok_RParen" | Tok_Add -> "Tok_Add" | Tok_Or -> "Tok_Or" | Tok_NotEqual -> "Tok_NotEqual" | Tok_Not -> "Tok_Not" | Tok_Mult -> "Tok_Mult" | Tok_LessEqual -> "Tok_LessEqual"...
null
https://raw.githubusercontent.com/umd-cmsc330/cmsc330spring22/98a187715a27e792d7ae412bb4a364890d2443b0/project4a/src/utils.ml
ocaml
********************************* * BEGIN ACTUAL PARSE HELPER CODE * *********************************
open MicroCamlTypes open TokenTypes let string_of_token (t : token) : string = match t with | Tok_Sub -> "Tok_Sub" | Tok_RParen -> "Tok_RParen" | Tok_Add -> "Tok_Add" | Tok_Or -> "Tok_Or" | Tok_NotEqual -> "Tok_NotEqual" | Tok_Not -> "Tok_Not" | Tok_Mult -> "Tok_Mult" | Tok_LessEqual -> "Tok_LessEqual"...
4de8c0b056a78a9bce8ccc60da1e82e969dded2bc9062c3ebc4b198c9b2ade3d
whamtet/dogfort
testmain.cljs
(ns dogfort.dev.testmain (:use-macros [redlobster.macros :only [promise defer-node waitp when-realised let-realised]] [dogfort.middleware.routes-macros :only [defroutes GET POST ANY]]) (:require-macros [cljs.node-macros :as n] [hiccups.core ...
null
https://raw.githubusercontent.com/whamtet/dogfort/75c2908355cc18bf350a5b761d2906e013ee9f94/src/dogfort/dev/testmain.cljs
clojure
(ns dogfort.dev.testmain (:use-macros [redlobster.macros :only [promise defer-node waitp when-realised let-realised]] [dogfort.middleware.routes-macros :only [defroutes GET POST ANY]]) (:require-macros [cljs.node-macros :as n] [hiccups.core ...
8c2189003149e30fb07d3beace26a901024f66a266af6ee00b4f7500c49cabfd
uw-unsat/serval-sosp19
riscv.rkt
#lang rosette (require (except-in rackunit fail) rackunit/text-ui rosette/lib/roseunit serval/riscv/objdump serval/riscv/shims serval/lib/core serval/lib/unittest serval/spec/refinement "spec.rkt" "state.rkt" "impl.rkt" (prefix-in keystone: "symbols.rkt") (prefix-in keystone: "generated/monit...
null
https://raw.githubusercontent.com/uw-unsat/serval-sosp19/175c42660fad84b44e4c9f6f723fd3c9450d65d4/monitors/keystone/verif/riscv.rkt
racket
Check that the rep invariant holds on init-rep-invariant Check that init-rep-invariant does not overconstrain; the rep-invariant, i.e., executing init-rep-invariant; on a state satisfying the rep-invariant does not change anything.
#lang rosette (require (except-in rackunit fail) rackunit/text-ui rosette/lib/roseunit serval/riscv/objdump serval/riscv/shims serval/lib/core serval/lib/unittest serval/spec/refinement "spec.rkt" "state.rkt" "impl.rkt" (prefix-in keystone: "symbols.rkt") (prefix-in keystone: "generated/monit...
de5aa71ba1aee2aaf42fb4205196abfc324034ef4b6013407434f10a54ee7a15
Frama-C/Frama-C-snapshot
numerors_value.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/values/numerors/numerors_value.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
765f43257d297f796a2e4902ac7dc1c00c8d78cefd27f394ff32e90feac7facd
Hendrick/ring-okta
predicates.clj
(ns ring.ring-okta.predicates (:require [ring.util.request :as ring-request])) (def not-nil? (comp not nil?)) (defn login? [{:keys [request-method] :as request}] (and (= request-method :post) (= (ring-request/path-info request) "/login"))) (defn logout? [{:keys [request-method] :as request}] (and (= req...
null
https://raw.githubusercontent.com/Hendrick/ring-okta/bad2278d2ef7287da108684de8e9f5206d74d510/src/ring/ring_okta/predicates.clj
clojure
(ns ring.ring-okta.predicates (:require [ring.util.request :as ring-request])) (def not-nil? (comp not nil?)) (defn login? [{:keys [request-method] :as request}] (and (= request-method :post) (= (ring-request/path-info request) "/login"))) (defn logout? [{:keys [request-method] :as request}] (and (= req...
14797812bc4481b69b83195a2e8722df68ef40617a893f58c8cb332c734a7b3c
rems-project/cerberus
core_fvs.ml
Created by 2017 - 03 - 10 open Cerb_frontend open Util open Symbol open Core (* FIXME VICTOR *) let sym_compare s1 s2 = match s1, s2 with | Symbol (_, _, Some l1), Symbol (_, _, Some l2) -> String.compare l1 l2 | Symbol (_, n, Some _), Symbol (_, _, None) -> -1 | Symbol (_, _, None), Symbol (_, m, Some _)...
null
https://raw.githubusercontent.com/rems-project/cerberus/be57427bd9d585a95336bd5c90ffb5db01767b94/backend/ocaml/driver/core_fvs.ml
ocaml
FIXME VICTOR
Created by 2017 - 03 - 10 open Cerb_frontend open Util open Symbol open Core let sym_compare s1 s2 = match s1, s2 with | Symbol (_, _, Some l1), Symbol (_, _, Some l2) -> String.compare l1 l2 | Symbol (_, n, Some _), Symbol (_, _, None) -> -1 | Symbol (_, _, None), Symbol (_, m, Some _) -> 1 | Symbol (_...
9f78ae3aad6db4489e878c20f173fbb6ffa37f3fd4cf4010f03c6436f5f3e661
zack-bitcoin/verkle
leaf_verkle.erl
-module(leaf_verkle). -export([new/4, key/1, value/1, meta/1, path/2, path_maker/2, hash/2, put/2, get/2, serialize/2, deserialize/2, delete/2, raw_key/1, put_batch/2, is_serialized_leaf/2, test/1]). -include("constants.hrl"). %-export_type([leaf/0,key/0,value/0,meta/0,leaf_p/0,path/0]). ...
null
https://raw.githubusercontent.com/zack-bitcoin/verkle/3ddcf449ffdf8c243f937a872db3bd43ac6cbce5/src/leaf_verkle.erl
erlang
-export_type([leaf/0,key/0,value/0,meta/0,leaf_p/0,path/0]). is_record(X, leaf). <<(X#leaf.key):P, (X#leaf.meta):M, #leaf{key = Key, value = <<Value:L>>, meta = Meta}. hash:doit(<<(L#leaf.key):P, V/binary>>) verkle_app:start(normal, []), {cfg,32,2,tree01,2,32,ram,1},[]], io:fwrite(CFG), io:fwrite(integer_to_list(size...
-module(leaf_verkle). -export([new/4, key/1, value/1, meta/1, path/2, path_maker/2, hash/2, put/2, get/2, serialize/2, deserialize/2, delete/2, raw_key/1, put_batch/2, is_serialized_leaf/2, test/1]). -include("constants.hrl"). is_serialized_leaf(X, CFG) -> P = cfg_verkle:path(CFG), ...
50094ad88684aa77eb9fa0867d8dc07fb2a2856ef8c14a41af0b8b7e2988c97b
thheller/shadow-cljs
stuff.cljs
(ns demo.stuff (:require ["./foo" :as foo])) (defmulti foo ::bar)
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/dev/demo/stuff.cljs
clojure
(ns demo.stuff (:require ["./foo" :as foo])) (defmulti foo ::bar)
2869933218965139500eb561ede1639047218c74303e791007b65ab8644181a6
ostera/serde.ml
ser.ml
type data = Serde__Data.t type 'err ser_error = Unimplemented | Custom of 'err module type Mapper = sig type output type error val one : data -> (output, error ser_error) result val map : data list -> (output list, error ser_error) result val map_field : (string * data) list -> ((string * output) list,...
null
https://raw.githubusercontent.com/ostera/serde.ml/d8c8819f21fb64c903bd3ae64a089652cd293547/serde/ser.ml
ocaml
type data = Serde__Data.t type 'err ser_error = Unimplemented | Custom of 'err module type Mapper = sig type output type error val one : data -> (output, error ser_error) result val map : data list -> (output list, error ser_error) result val map_field : (string * data) list -> ((string * output) list,...
c153ace33f1dd231d857ac9bc8b125d72c633718d4aa7ae3801fdeaf2c9fbc75
clojureverse/clojurians-log-app
message_parser.clj
(ns clojurians-log.message-parser (:require [clojure.java.io :as io] [clojure.string :as str])) (set! *warn-on-reflection* true) (defn re-seq-pos [pattern string] (let [m (re-matcher pattern string)] (for [n (range) :while (.find m)] (cond-> {:start (.start m) :end (.end m) :match (.group m)...
null
https://raw.githubusercontent.com/clojureverse/clojurians-log-app/d34c9bd715e492c8f1899653548716d32c623fad/src/clojurians_log/message_parser.clj
clojure
Order matches such that... Items with smallest start fields sorts to the top. block/pattern takes precedence and sorts to the top. We shouldn't really reach here. (println "................... collapse-match-stack ................... ") (println "message: " message) (println "stack") (clojure.pprint/pprint stac...
(ns clojurians-log.message-parser (:require [clojure.java.io :as io] [clojure.string :as str])) (set! *warn-on-reflection* true) (defn re-seq-pos [pattern string] (let [m (re-matcher pattern string)] (for [n (range) :while (.find m)] (cond-> {:start (.start m) :end (.end m) :match (.group m)...
86f59b00562171a392783abd0f6bf78edd864979b866644cabf3eb21e2b62b18
hiroshi-unno/coar
apply.ml
(* USED: PLDI2011 as apply *) let apply (f:int->unit) x = f x let g (y:int) (z:int) = assert (y=z) let rec k n = apply (g n) n; k(n+1) let main () = k 0 [@@@assert "typeof(main) <: unit -> unit"]
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/benchmarks/OCaml/safety/tacas2015/apply.ml
ocaml
USED: PLDI2011 as apply
let apply (f:int->unit) x = f x let g (y:int) (z:int) = assert (y=z) let rec k n = apply (g n) n; k(n+1) let main () = k 0 [@@@assert "typeof(main) <: unit -> unit"]
c49564dd2f70c857948f5660c54b603c230f4770e8bd068b0a251b8e3b70df88
boot-clj/boot
repl_server.clj
(ns boot.repl-server (:require [boot.repl :as repl] [boot.util :as util] [clojure.java.io :as io] [nrepl.server :as server] [nrepl.middleware :as middleware] [nrepl.middle...
null
https://raw.githubusercontent.com/boot-clj/boot/64334b4d5744b1444634f4a5a5a52b3ae67dddeb/boot/pod/src/boot/repl_server.clj
clojure
(ns boot.repl-server (:require [boot.repl :as repl] [boot.util :as util] [clojure.java.io :as io] [nrepl.server :as server] [nrepl.middleware :as middleware] [nrepl.middle...
620a8fb4930307ac17f6e3b94091be6a68849d017d77892e57889524ef6ecaa7
NorfairKing/smos
Work.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Smos.Report.Work where import Conduit import Control.Monad import Cursor.Simple.Forest import qualified Data.Conduit.Combinators as C import Data.Function import Data.List import Data.Map (Map) import qualified Data.Map ...
null
https://raw.githubusercontent.com/NorfairKing/smos/3b7021c22915ae16ae721c7da60d715e24f4e6bb/smos-report/src/Smos/Report/Work.hs
haskell
# LANGUAGE OverloadedStrings # Current time, for computing whether something is overdue Projects, for deciding whether a file is a project Base filter, for filtering out most things and selecting next action entries Filter for the current context The property to filter time by, Nothing means no time filtering The...
# LANGUAGE DeriveGeneric # # LANGUAGE RecordWildCards # module Smos.Report.Work where import Conduit import Control.Monad import Cursor.Simple.Forest import qualified Data.Conduit.Combinators as C import Data.Function import Data.List import Data.Map (Map) import qualified Data.Map as M import Data.Maybe import Data....
d848330afd812c7c7663d47a7f314d3ac6a71d8178535a42ab9bf5b3ed0d674a
openmusic-project/OMChroma
chord.lisp
;===================================================== ; CHROMA ;===================================================== part of the OMChroma library - > High - level control of sound synthesis in OM ;===================================================== ; ;This program is free software; you can redistribute it and/...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/chroma/vps/chord.lisp
lisp
===================================================== CHROMA ===================================================== ===================================================== This program is free software; you can redistribute it and/or either version 2 of the License, or (at your option) any later version. See file LIC...
part of the OMChroma library - > High - level control of sound synthesis in OM modify it under the terms of the GNU General Public License File author : (in-package :cr) (defclass CHORD (VPS) ((sp-list :initform nil :documentation "list of symbolic-pitch objects" :accessor sp-lis...
9432a6ec6a32d638b9de4eae1ad9bcff0ce2a64da228724f6d7866a58df7deb0
jfacorro/fp-interpreter-in-lisp
debug.lisp
(in-package :com.facorro.debug) (defparameter *debugging-package?* (make-hash-table)) (defun debugging? (name) (gethash name *debugging-package?*)) (defun debug-on (name) (setf (gethash name *debugging-package?*) t)) (defun debug-off (name) "If the package had been registered for debugging sets it off...
null
https://raw.githubusercontent.com/jfacorro/fp-interpreter-in-lisp/b0c520593e98cce83b571939a22d7efd7926c711/src/debug.lisp
lisp
(in-package :com.facorro.debug) (defparameter *debugging-package?* (make-hash-table)) (defun debugging? (name) (gethash name *debugging-package?*)) (defun debug-on (name) (setf (gethash name *debugging-package?*) t)) (defun debug-off (name) "If the package had been registered for debugging sets it off...
b02a4fa7847bf24ea575e72b687d99468612dd24a07a0eb6d2335468a05f1720
haskell/haskell-ide-engine
Stack.hs
# LANGUAGE CPP # module Stack where import Development.Shake import Development.Shake.FilePath import Control.Monad import System.Directory ( copyFile ) -- import System.FilePath ( (</>) ) import Version import...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/install/src/Stack.hs
haskell
import System.FilePath ( (</>) ) | copy the built binaries into the localBinDir | check `stack` has the required version | Get the local binary path of stack. Equal to the command `stack path --local-bin` | Execute a stack command for a specified stack.yaml file, discarding the ...
# LANGUAGE CPP # module Stack where import Development.Shake import Development.Shake.FilePath import Control.Monad import System.Directory ( copyFile ) import Version import Print stackInstallHieWithErrMsg :: Maybe VersionNumber -> [...
d53319d22f8705011f57e5f88f91d0515f851e0c30de4e26db554a672bf79fc6
jomch/chatroom
mk_sup.erl
-module(mk_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> Procs = [], {ok, {{one_for_one, 1, 5}, Procs}}.
null
https://raw.githubusercontent.com/jomch/chatroom/d5d608410a92fd7938c011ebf6027b76b33aad18/libs/mk/src/mk_sup.erl
erlang
-module(mk_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> Procs = [], {ok, {{one_for_one, 1, 5}, Procs}}.
aa14e36e38eb93de6d8bd3c4be94c26ad4c8b60105dfa9441b5374aab83ff128
input-output-hk/project-icarus-importer
CLI.hs
# LANGUAGE ApplicativeDo # -- | Functions for working with command-line options. module Bench.Cardano.Wallet.Config.CLI ( getOptions ) where import Universum import Options.Applicative (Parser, execParser, fullDesc, header, ...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/wallet-new/bench/Bench/Cardano/Wallet/Config/CLI.hs
haskell
| Functions for working with command-line options. | Parser for command-line options. | Get command-line options.
# LANGUAGE ApplicativeDo # module Bench.Cardano.Wallet.Config.CLI ( getOptions ) where import Universum import Options.Applicative (Parser, execParser, fullDesc, header, help, helper, info, l...
bc32ff240e71e90f85449ac7f27e4d887605bcf5204b9e6b4b7f8e6d2d25d749
conjure-cp/conjure
Primitive.hs
# LANGUAGE QuasiQuotes # module Conjure.Representations.Primitive ( primitive ) where -- conjure import Conjure.Prelude import Conjure.Language import Conjure.Representations.Internal primitive :: forall m . MonadFailDoc m => Representation m primitive = Representation { rCheck = \ _ domain -> return $ ...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Representations/Primitive.hs
haskell
conjure
# LANGUAGE QuasiQuotes # module Conjure.Representations.Primitive ( primitive ) where import Conjure.Prelude import Conjure.Language import Conjure.Representations.Internal primitive :: forall m . MonadFailDoc m => Representation m primitive = Representation { rCheck = \ _ domain -> return $ cas...
cf923eb362d4c552905f5b8be6569a0da89d214959c7dcbc830aa21b735e64c8
sjl/caves
core.clj
(ns caves.core (:use [caves.ui.core :only [->UI]] [caves.ui.drawing :only [draw-game]] [caves.entities.core :only [tick]] [caves.ui.input :only [get-input process-input]]) (:require [lanterna.screen :as s])) ; Data Structures ------------------------------------------------------------- (d...
null
https://raw.githubusercontent.com/sjl/caves/d39ee73eb5c54877d9706b16193b6cb044b2aaf6/src/caves/core.clj
clojure
Data Structures ------------------------------------------------------------- Main ------------------------------------------------------------------------
(ns caves.core (:use [caves.ui.core :only [->UI]] [caves.ui.drawing :only [draw-game]] [caves.entities.core :only [tick]] [caves.ui.input :only [get-input process-input]]) (:require [lanterna.screen :as s])) (defrecord Game [world uis input debug-flags]) (defn tick-entity [world entity] ...
f15bc004f9cd34971796c634b2a62e82dc728023feb8c48ad872dbd648044c20
YoshikuniJujo/test_haskell
Middle.hs
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.Pipeline.Layout.Middle ( -- * Type L, -- * Create and Destroy create, destroy, CreateInfo(..), CreateFlags ) where import Gpu.Vulkan.Pipeline.Layout.Middle.Internal
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/27ccc38bc7eff9fe68d0aff14fa853826ffc73f6/themes/gui/vulkan/try-vulkan-middle/src/Gpu/Vulkan/Pipeline/Layout/Middle.hs
haskell
* Type * Create and Destroy
# OPTIONS_GHC -Wall -fno - warn - tabs # module Gpu.Vulkan.Pipeline.Layout.Middle ( L, create, destroy, CreateInfo(..), CreateFlags ) where import Gpu.Vulkan.Pipeline.Layout.Middle.Internal
ea771534fca46e07db6dd50f96efc556d79ba254e0d8e863c181837e15cd434c
mitchellwrosen/hspolls
TBroadcastChan.hs
module Hp.TBroadcastChan ( TBroadcastChan , unsafeTBroadcastChanToTChan , newTBroadcastChan , newTBroadcastChanIO , dupTBroadcastChan , dupTBroadcastChanIO , writeTBroadcastChan , writeTBroadcastChanIO ) where import Control.Concurrent.STM newtype TBroadcastChan a = TBroadcastChan (TChan a) -- | ...
null
https://raw.githubusercontent.com/mitchellwrosen/hspolls/22efea743194ade091f7daa112a2d9ce985a4500/src/Hp/TBroadcastChan.hs
haskell
| Forget that a channel can only be written to.
module Hp.TBroadcastChan ( TBroadcastChan , unsafeTBroadcastChanToTChan , newTBroadcastChan , newTBroadcastChanIO , dupTBroadcastChan , dupTBroadcastChanIO , writeTBroadcastChan , writeTBroadcastChanIO ) where import Control.Concurrent.STM newtype TBroadcastChan a = TBroadcastChan (TChan a) unsaf...
37d180f6d468cbea8fdfbd45e6e6cfb7a98c0e17fe8c4631cb04ebf4c8c72e18
codinuum/cca
v_fact.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/langs/verilog/v_fact.ml
ocaml
fact extractor filter out inactive nodes self#add (entity, p_file_digest, tree#encoded_source_digest); of class Verilog.Fact.extractor main function
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
c7fdcb7e201370e8c28c4c0133ceeed3da729b30f39d1015d3cc87a204139674
GaloisInc/semmc
Core.hs
# LANGUAGE BinaryLiterals # # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # # LANGUAGE ImplicitParams # module SemMC.Architecture.PPC.Base.Core ( BitSize(..), bitSizeValue, naturalBV, -- * Operand Classes module SemMC.Architecture.PPC.Base.Core.OperandClasses, -- * Registers module Se...
null
https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc-ppc/src/SemMC/Architecture/PPC/Base/Core.hs
haskell
# LANGUAGE GADTs # * Operand Classes * Registers * IP Wrapper * Forms * Shared * Uninterpreted Functions memrixOffset, memrixReg IP Helper Wrapper | Type-safe definition of the semantics for a PPC opcode, with an implicit update of the instruction pointer defining dotted variants of non-vector instructions)...
# LANGUAGE BinaryLiterals # # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE ImplicitParams # module SemMC.Architecture.PPC.Base.Core ( BitSize(..), bitSizeValue, naturalBV, module SemMC.Architecture.PPC.Base.Core.OperandClasses, module SemMC.Architecture.PPC.Base.Core.Registers, OpcodeParamDef(..),...
e906b8a13efe99c3ba86f9f6008db1183f867d05b05d235e233cbd494e564d94
kowainik/summoner
Spec.hs
module Main (main) where import StackFull (projectName) main :: IO () main = putStrLn ("Tests for " ++ projectName)
null
https://raw.githubusercontent.com/kowainik/summoner/0e9343880171b81e515bc7bfebe8c6156330f9f2/summoner-cli/examples/stack-full/test/Spec.hs
haskell
module Main (main) where import StackFull (projectName) main :: IO () main = putStrLn ("Tests for " ++ projectName)
d3d89477cf5c9c151a172f20e006077e6951da426400d779e3cf7348f93ee2a7
apache/couchdb-mochiweb
mochifmt_records.erl
@author < > @copyright 2008 Mochi Media , Inc. %% %% 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 to use, copy, modif...
null
https://raw.githubusercontent.com/apache/couchdb-mochiweb/d3c47a9e8833cd878c9227093e30a2341ee32900/src/mochifmt_records.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above copyright noti...
@author < > @copyright 2008 Mochi Media , Inc. to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF AN...
ca391016c2ecff5d5a2d9835f53b424be1ac9e05bb89c74e0fdd73776043b9c3
ntoronto/pict3d
flt3.rkt
#lang typed/racket/base (require "flv3.rkt" "flplane3.rkt" "flv4.rkt" "fllinear3.rkt" "flaffine3.rkt" "flprojective3.rkt") (provide (all-defined-out) (all-from-out "fllinear3.rkt" "flaffine3.rkt" "flprojective3.rkt")) ;; ============...
null
https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/pict3d/private/math/flt3.rkt
racket
=================================================================================================== =================================================================================================== =================================================================================================== Inversion =====...
#lang typed/racket/base (require "flv3.rkt" "flplane3.rkt" "flv4.rkt" "fllinear3.rkt" "flaffine3.rkt" "flprojective3.rkt") (provide (all-defined-out) (all-from-out "fllinear3.rkt" "flaffine3.rkt" "flprojective3.rkt")) (define-type F...
555f047daad0a03fd22a977279728130df37d59a8bcb4a3fc159367222cc51bb
pavankumarbn/DroneGUIROS
navdata_trims.lisp
; Auto-generated. Do not edit! (cl:in-package ardrone_autonomy-msg) // ! \htmlinclude (cl:defclass <navdata_trims> (roslisp-msg-protocol:ros-message) ((header :reader header :initarg :header :type std_msgs-msg:Header :initform (cl:make-instance 'std_msgs-msg:Header)) (drone_time :reader d...
null
https://raw.githubusercontent.com/pavankumarbn/DroneGUIROS/745320d73035bc50ac4fea2699e22586e10be800/devel/share/common-lisp/ros/ardrone_autonomy/msg/navdata_trims.lisp
lisp
Auto-generated. Do not edit!
(cl:in-package ardrone_autonomy-msg) // ! \htmlinclude (cl:defclass <navdata_trims> (roslisp-msg-protocol:ros-message) ((header :reader header :initarg :header :type std_msgs-msg:Header :initform (cl:make-instance 'std_msgs-msg:Header)) (drone_time :reader drone_time :initarg :drone_t...
810884827e1c70678ab6037de4f1bd01f8be2265eccae52e47c7cc0eb0eb60dc
racket/racklog
lang.rkt
#lang racket (require racket/runtime-path tests/eli-tester) (define-runtime-path lang "lang") (test (for ([p (in-list (directory-list lang))] #:when (regexp-match #rx"rkt$" (path->bytes p))) (define test-rkt (build-path lang p)) (define test-txt (build-path lang (path-replace-suffix p #".txt"))) (test...
null
https://raw.githubusercontent.com/racket/racklog/89e983ec7d2df0ed919e6630403b0f4d0393728e/tests/lang.rkt
racket
#lang racket (require racket/runtime-path tests/eli-tester) (define-runtime-path lang "lang") (test (for ([p (in-list (directory-list lang))] #:when (regexp-match #rx"rkt$" (path->bytes p))) (define test-rkt (build-path lang p)) (define test-txt (build-path lang (path-replace-suffix p #".txt"))) (test...
2f24f7d7c7709a2f9056eb10ca25ce6fa732946709d9698b327543371d9c9454
ghc/packages-dph
Basics.hs
# LANGUAGE CPP # #include "fusion-phases.h" -- | Basic segmented operations on unlifted arrays. module Data.Array.Parallel.Unlifted.Sequential.Basics ( replicateSU, replicateRSU , appendSU , indicesSU, indicesSU') where import Data.Array.Parallel.Unlifted.Stream import Data.Array.Parallel.Unlif...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-prim-seq/Data/Array/Parallel/Unlifted/Sequential/Basics.hs
haskell
| Basic segmented operations on unlifted arrays. | Segmented replicate of a vector based on the lengths of the segments | Regular sgemented replicate. | Segmented append. | Segmented indices.
# LANGUAGE CPP # #include "fusion-phases.h" module Data.Array.Parallel.Unlifted.Sequential.Basics ( replicateSU, replicateRSU , appendSU , indicesSU, indicesSU') where import Data.Array.Parallel.Unlifted.Stream import Data.Array.Parallel.Unlifted.Sequential.Vector import Data.Array.Parallel.Unl...
9dc0adcf2309c01f31ea9ce752359b6532630a5ac76fa70cc52d362835dbc5a2
nikomatsakis/a-mir-formality
type-check-reify.rkt
#lang racket (require redex/reduction-semantics "../../util.rkt" "../../ty/user-ty.rkt" "../grammar.rkt" "../prove.rkt" ) (module+ test ;; Program: ;; ;; fn foo(x: &()) {} ;; ;; fn main() { ;; let f: fn(&'static ()) = foo; ;; } (traced '() (te...
null
https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/2816027dd59428dd1824418892b7303b27ecf67f/racket-src/rust/test/type-check-reify.rkt
racket
Program: fn foo(x: &()) {} fn main() { let f: fn(&'static ()) = foo; }
#lang racket (require redex/reduction-semantics "../../util.rkt" "../../ty/user-ty.rkt" "../grammar.rkt" "../prove.rkt" ) (module+ test (traced '() (test-equal #f (term (rust:is-core-crate-ok [(fn foo[(lifetime %a)] ((& %a...
844763daddfc9737c172f3f39ea70b779bcf35f793cbc5d837d7886825e80b20
hbr/albatross
term.ml
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
null
https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/alba1/term.ml
ocaml
fterm, args, inop args, fgs, t, is_all name, type, rules other cases not possible with types illegal call predicates don't have preconditions preconditions are not counted The number of nodes in the term t preconditions are not counted * Fold the free variables with their level (from the top) in the o...
Copyright ( C ) < helmut dot brandl at gmx dot net > This file is distributed under the terms of the GNU General Public License version 2 ( GPLv2 ) as published by the Free Software Foundation . This file is distributed under the terms of the GNU General Public License version 2 (GPLv2) as publ...
08270e8620380a98fa011e98b4e55b28865e551fd151d597bfaa7f4500d08c13
jumarko/clojure-experiments
symbol.clj
(ns clojure-experiments.clojure-1-10.symbol) symbol - able to get namespaced symbol from Var now : ;;; #34-other-enhancements ;;; > schmee speaking of, how does one go from a var to the namespaced symbol of the var? > , as of latest 1.10 , with ` symbol ` :) > but otherwise you have to reach into the private f...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/clojure_1_10/symbol.clj
clojure
#34-other-enhancements > schmee speaking of, how does one go from a var to the namespaced symbol of the var? ---------------------------------------------------------------------------- => clojure.core/prn => hello
(ns clojure-experiments.clojure-1-10.symbol) symbol - able to get namespaced symbol from Var now : > , as of latest 1.10 , with ` symbol ` :) > but otherwise you have to reach into the private fields of clojure.lang . (symbol #'prn) previously ( in Clojure 1.9 ) you 'd get following error 1 . Unhandled ...
e26518eafdf1c642504854a74925a80ac78b59038a420c4473da8b64e7052cb0
fujimura/hi
CommandLineOption.hs
module Hi.CommandLineOption ( CommandLineOption(..) , commandLineOption , defaultRepo ) where import Options.Applicative import Data.Monoid data CommandLineOption = CommandLineOption { packageName :: String , moduleName ...
null
https://raw.githubusercontent.com/fujimura/hi/a55cf5ee87e3607f398a08aeb078f5ef63e6f4c5/src/Hi/CommandLineOption.hs
haskell
module Hi.CommandLineOption ( CommandLineOption(..) , commandLineOption , defaultRepo ) where import Options.Applicative import Data.Monoid data CommandLineOption = CommandLineOption { packageName :: String , moduleName ...
7c33ade12c9ba5d35baf70ec251151250da5727d82b85f3086af56176323bf00
greglook/merkle-db
user.clj
(ns movie-lens.user (:require [clojure.spec.alpha :as s])) ;; User attributes. (s/def ::id integer?)
null
https://raw.githubusercontent.com/greglook/merkle-db/449f58005cac0390a40ea15f9bf5403443f3be7d/examples/movie-lens/src/movie_lens/user.clj
clojure
User attributes.
(ns movie-lens.user (:require [clojure.spec.alpha :as s])) (s/def ::id integer?)