_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
ab2b21b696f0b9aef4142aafe05d5c494cb1db75ab2f4006932b0b00d496766d
mvoidex/hsdev
Transaction.hs
# LANGUAGE TypeApplications , MultiWayIf , OverloadedStrings # module HsDev.Database.SQLite.Transaction ( TransactionType(..), Retries(..), def, noRetry, retryForever, retryN, -- * Transactions withTransaction, beginTransaction, commitTransaction, rollbackTransaction, transaction, transaction_, -- * Retry func...
null
https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/src/HsDev/Database/SQLite/Transaction.hs
haskell
* Transactions * Retry functions | Three types of transactions | Retry config | Don't retry | Retry forever | Retry with interval N times | Run actions inside transaction | Begin transaction | Commit transaction | Rollback transaction | Run transaction in @SessionMonad@ | Transaction with default retries c...
# LANGUAGE TypeApplications , MultiWayIf , OverloadedStrings # module HsDev.Database.SQLite.Transaction ( TransactionType(..), Retries(..), def, noRetry, retryForever, retryN, withTransaction, beginTransaction, commitTransaction, rollbackTransaction, transaction, transaction_, retry, retry_ ) where import Con...
adb4e0d8469ebe02325709e144554785ebb609f3252be149a877a4c659de55e6
OlivierSohn/hamazed
Continuous.hs
# LANGUAGE NoImplicitPrelude # module Imj.Geo.Continuous (-- * Continuous coordinates Vec2(..) , module Imj.Geo.Continuous.Conversion -- * Sampled continuous geometry -- ** Circle , fullCircle , translatedFullCircle , fullCircleF...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/6c2b20d839ede7b8651fb7b425cb27ea93808a4a/imj-base/src/Imj/Geo/Continuous.hs
haskell
* Continuous coordinates * Sampled continuous geometry ** Circle ** Parabola * Vec2 utilities | Sums two 'Vec2'. | Multiplies a 'Vec2' by a scalar. | Integrate twice a constant acceleration over a duration, return a position | Integrate once a constant acceleration over a duration, return a velocity | Integra...
# LANGUAGE NoImplicitPrelude # module Imj.Geo.Continuous Vec2(..) , module Imj.Geo.Continuous.Conversion , fullCircle , translatedFullCircle , fullCircleFromQuarterArc , translatedFullCircleFromQuarterArc , parabola * Polygon extremities ...
9cbdcba0e64f73a5dd3a7eace2a22d3b7001e54b9960120a28a8478b7807e38c
coccinelle/coccinelle
single_statement.mli
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/parsing_cocci/single_statement.mli
ocaml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
474e4c6ffdfc20497757021d4c8bf40bae5eddd6bd33da8b8eb95d5d79569726
uber/queryparser
Test.hs
Copyright ( c ) 2017 Uber Technologies , 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, modify, mer...
null
https://raw.githubusercontent.com/uber/queryparser/6015e8f273f4498326fec0315ac5580d7036f8a4/test/Database/Sql/Util/Lineage/ColumnPlus/Test.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
1ab4e132dec83093f44a7cb0a8ca11351d48007e7cbd69cfd41fb59b7b64a7a9
imandra-ai/ocaml-opentelemetry
status_pp.mli
(** status.proto Pretty Printing *) * { 2 Formatters } val pp_status : Format.formatter -> Status_types.status -> unit (** [pp_status v] formats v *)
null
https://raw.githubusercontent.com/imandra-ai/ocaml-opentelemetry/62d1a9cec785186966e880c91c4c109875b0dd62/src/status_pp.mli
ocaml
* status.proto Pretty Printing * [pp_status v] formats v
* { 2 Formatters } val pp_status : Format.formatter -> Status_types.status -> unit
2dcb63f7376eaaacaf8ff96084bcae74198fd67a8a9614c6087d05c49d32081b
gedge-platform/gedge-platform
rabbit_mirror_queue_slave.erl
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 ) 2010 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mirror_queue_slave). %% For gener...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/rabbit_mirror_queue_slave.erl
erlang
For general documentation of HA design, see rabbit_mirror_queue_coordinator messages can arrive either before or after the 'actual' message. in which they're received. ---------------------------------------------------------------------------- milliseconds Master depth - local depth --------------------------...
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 ) 2010 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mirror_queue_slave). We receive messa...
a4f15177f6c95527f5c93f8ce6640d8ab5f4a5797ea43e8e8812d5de8490858c
hedgehogqa/haskell-hedgehog-classes
Bifunctor.hs
module Spec.Bifunctor (testBifunctor) where import Data.Functor.Const (Const(..)) import Hedgehog import Hedgehog.Classes import qualified Hedgehog.Gen as Gen import Prelude hiding (either, const) testBifunctor :: [(String, [Laws])] testBifunctor = [ ("Either", lawsEither) , ("Const", lawsConst) ] lawsEither...
null
https://raw.githubusercontent.com/hedgehogqa/haskell-hedgehog-classes/4d97b000e915de8ba590818f551bce7bd862e7d4/test/Spec/Bifunctor.hs
haskell
module Spec.Bifunctor (testBifunctor) where import Data.Functor.Const (Const(..)) import Hedgehog import Hedgehog.Classes import qualified Hedgehog.Gen as Gen import Prelude hiding (either, const) testBifunctor :: [(String, [Laws])] testBifunctor = [ ("Either", lawsEither) , ("Const", lawsConst) ] lawsEither...
aa1fe47792081d642c66a8d3968a56b4358101e2041b50b17c6a7ddee5b16851
manuel-serrano/bigloo
specialize.scm
;*=====================================================================*/ * ... /prgm / project / bigloo / / comptime / Cfa / specialize.scm * / ;* ------------------------------------------------------------- */ ;* Author : SERRANO Manuel */ * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Cfa/specialize.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * Author : SERRANO Manuel */ * ------------------------------------------------------------- */ * regarding Cfa type info...
* ... /prgm / project / bigloo / / comptime / Cfa / specialize.scm * / * Creation : Fri Apr 11 13:18:21 1997 * / * Last change : We d Jun 16 15:57:38 2021 ( serrano ) * / * Copyright : 1997 - 2021 , see LICENSE file * / * This ...
d68fbe2cf1fa8d226b7148ec462842391531b2cd64e4092d24d1dab2a4a7e29d
spawnfest/eep49ers
base64_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2017 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/test/base64_SUITE.erl
erlang
%CopyrightBegin% 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 l...
Copyright Ericsson AB 2007 - 2017 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(base64_SUITE). -include_lib("common_test/include/ct.hrl"). -export([all/0, suite/0, groups/0, group/1]). ...
4199d6bd3745feb87eeb189e7539bb629237ab2aaaff509a2693586172192de4
input-output-hk/hydra
CardanoClient.hs
-- | A cardano-node client used in end-to-end tests and benchmarks. -- -- This modules contains some more functions besides the re-exported basic -- querying of hydra-node's 'Hydra.Chain.CardanoClient'. module CardanoClient ( module Hydra.Chain.CardanoClient, module CardanoClient, ) where import Hydra.Prelude imp...
null
https://raw.githubusercontent.com/input-output-hk/hydra/97a5650cd24b264837ddf7c0ea233ace7f7d55e0/hydra-cluster/src/CardanoClient.hs
haskell
| A cardano-node client used in end-to-end tests and benchmarks. This modules contains some more functions besides the re-exported basic querying of hydra-node's 'Hydra.Chain.CardanoClient'. | Build an address give a key. From <runAddressBuild -output-hk/cardano-node/blob/master/cardano-cli/src/Cardano/CLI/Shell...
module CardanoClient ( module Hydra.Chain.CardanoClient, module CardanoClient, ) where import Hydra.Prelude import Hydra.Cardano.Api hiding (Block) import Hydra.Chain.CardanoClient import qualified Cardano.Api.UTxO as UTxO import qualified Data.Map as Map import qualified Hydra.Chain.CardanoClient as CardanoClie...
50ebbb9f99c2deff7dc3ca29c7ed0a976426ab4cc8671b023ea7ab515014f23b
phoe/wordnet
representation.lisp
CommonLisp interface to WordNet 1995 , Artificial Intelligence Laboratory Massachusetts Institute of Technology Representation of WordNet data . Uses the lower layers defined in ;;; "wordnet-database-files" and "parse-wordnet-data" to extract data from the WordNet database files and then constructs an ...
null
https://raw.githubusercontent.com/phoe/wordnet/e8434f3f5113967dc1868aabaf8fd1fbf0cd8533/representation.lisp
lisp
"wordnet-database-files" and "parse-wordnet-data" to extract data from the representation. Representation constructing the objects The objects we've made are kept in a cache so that if we ever get a request for the same object again, we can fetch the existing one rather than read Relationships among words and...
CommonLisp interface to WordNet 1995 , Artificial Intelligence Laboratory Massachusetts Institute of Technology Representation of WordNet data . Uses the lower layers defined in WordNet database files and then constructs an object oriented (in-package #:wordnet) (defclass wordnet-object () ()) (def...
1a97c6bf2884dede5549b7b876d0e27921897747712cad68da4c210506ce522c
GaloisInc/jvm-parser
Parser.hs
| Module : Language . JVM.Parser Copyright : Galois , Inc. 2012 - 2014 License : : Stability : stable Portability : portable for the JVM bytecode format . Module : Language.JVM.Parser Copyright : Galois, Inc. 2012-2014 License : BSD3 Maintainer : Stability : stabl...
null
https://raw.githubusercontent.com/GaloisInc/jvm-parser/6cb3fce6c390d8b4963ca211d0a3ca88fb6ec2ca/src/Language/JVM/Parser.hs
haskell
* Class declarations * Field declarations * Method declarations ** Instruction declarations ** Exception table declarations ** Misc utility functions/values * Debugging information * Re-exports ** Types ** Instructions ** Class names | Indicate parse failure with the given error message. Note that failure ...
| Module : Language . JVM.Parser Copyright : Galois , Inc. 2012 - 2014 License : : Stability : stable Portability : portable for the JVM bytecode format . Module : Language.JVM.Parser Copyright : Galois, Inc. 2012-2014 License : BSD3 Maintainer : Stability : stabl...
9e99c0b9562123e845b54865fb037cb13298f14fae16d0601e48bfb49a7ba73d
aeternity/aeternity
sophia_bytecode_aevm_SUITE.erl
-module(sophia_bytecode_aevm_SUITE). %% common_test exports -export( [ all/0 , init_per_suite/1 , end_per_suite/1 ]). %% test case exports -export( [ execute_identity_fun_from_sophia_file/1 ]). -include_lib("aecontract/include/aecontract.hrl"). -include_lib("aebytecode/include/aeb_opcodes.hrl")...
null
https://raw.githubusercontent.com/aeternity/aeternity/f61163c89dc8bf01a8e2297f1189c02c3d3563f9/test/sophia_bytecode_aevm_SUITE.erl
erlang
common_test exports test case exports Create the call data
-module(sophia_bytecode_aevm_SUITE). -export( [ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export( [ execute_identity_fun_from_sophia_file/1 ]). -include_lib("aecontract/include/aecontract.hrl"). -include_lib("aebytecode/include/aeb_opcodes.hrl"). -include_lib("common_test/include/ct.hrl")...
e84db4173355c343580da4d52dacba5d1313f4c81631ccd36d92512d8cfe5245
buntine/Simply-Scheme-Exercises
4-10.scm
; Write a procedure to compute the tip you should leave at a restaurant. It should take the total bill as its argument and return the amount of the tip . It should tip by 15 % , ; but it should know to round up so that the total amount of money you leave (tip plus ; original bill) is a whole number of dollars. (Use t...
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/04-defining-your-own-procedures/4-10.scm
scheme
Write a procedure to compute the tip you should leave at a restaurant. It should but it should know to round up so that the total amount of money you leave (tip plus original bill) is a whole number of dollars. (Use the ceiling procedure to round up.)
take the total bill as its argument and return the amount of the tip . It should tip by 15 % , > ( tip 19.98 ) 3.02 > ( tip 29.23 ) 4.77 > ( tip 7.54 ) 1.46 (define (discount price reduction) (if (and (> reduction 0) (> 100 reduction)) (- price (* (/ price 100) reduction)))) (defi...
529c9a9777c50a1ececcabdbbc0f2ad15e5994663c191f2153acf78e3eb812b3
EDToaster/CSC324-A2-TestingSuite
testIfNonAtomic.rkt
(if (cps:equal? (cps:+ 10 10) (cps:+ 20 20)) (cps:+ (cps:* 10 2) (cps:* 10 3)) (cps:* (cps:+ 1 2) (cps:+ 3 4)))
null
https://raw.githubusercontent.com/EDToaster/CSC324-A2-TestingSuite/f07cbd01587a46c61aac29c52a6804864a4eb77b/tests/testIfNonAtomic.rkt
racket
(if (cps:equal? (cps:+ 10 10) (cps:+ 20 20)) (cps:+ (cps:* 10 2) (cps:* 10 3)) (cps:* (cps:+ 1 2) (cps:+ 3 4)))
9fa5e3bd041490759d19caaa2f036bc781f0e1c642072a5bdfa0843492f6abc0
footprintanalytics/footprint-web
normalize.cljc
(ns metabase.mbql.normalize "Logic for taking any sort of weird MBQL query and normalizing it into a standardized, canonical form. You can think of this like taking any 'valid' MBQL query and rewriting it as-if it was written in perfect up-to-date MBQL in the latest version. There are four main things done here, ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/shared/src/metabase/mbql/normalize.cljc
clojure
-> true -> true +----------------------------------------------------------------------------------------------------------------+ | NORMALIZE TOKENS | +--------------------------------------------------------------------...
(ns metabase.mbql.normalize "Logic for taking any sort of weird MBQL query and normalizing it into a standardized, canonical form. You can think of this like taking any 'valid' MBQL query and rewriting it as-if it was written in perfect up-to-date MBQL in the latest version. There are four main things done here, ...
d37fe3af3cb7087aa2b08ed58822af995bcb9b2829fa5aa135a2e0049bbb1efa
vituscze/norri
Context.hs
-- | Contexts used during type inference - kind contexts, typing contexts, -- error location contexts and type signature contexts. module Compiler.TypeChecking.Context ( -- * Kinds Kind , KindCtx -- * Types , TyCtx -- * Type signatures , SigCtx -- * Error location context ...
null
https://raw.githubusercontent.com/vituscze/norri/133aef0b42b2c5bdd789ce2fa2655aecfcb96424/src/Compiler/TypeChecking/Context.hs
haskell
| Contexts used during type inference - kind contexts, typing contexts, error location contexts and type signature contexts. * Kinds * Types * Type signatures * Error location context * Type inference context | The type for kinds. Since the only possible kinds are of the form @* -> * -> ... -> *@, we c...
module Compiler.TypeChecking.Context ( Kind , KindCtx , TyCtx , SigCtx , ErrCtx , TICtx(..) ) where import Data.Map (Map) import Compiler.AST import Compiler.TypeChecking.Error type Kind = Int type KindCtx = Map TyName Kind type TyCtx = Map Name Scheme type SigCtx = Map N...
a5fd36784a97f97c91c93a4f11b9c8fc2693328130219d8ce5462a9c0ec60051
aumouvantsillage/Virgule-CPU-Racket
device.rkt
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 /. #lang racket (require syntax/parse/define "signal.rkt") (provide (all-defined-out)) (struct device (start-address size)) (define (devic...
null
https://raw.githubusercontent.com/aumouvantsillage/Virgule-CPU-Racket/47348d9e3a211560fc9d7a59c49d6d250d2369c5/src/device.rkt
racket
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 /. #lang racket (require syntax/parse/define "signal.rkt") (provide (all-defined-out)) (struct device (start-address size)) (define (devic...
41023c7a71dd4b8d3e002a4006b893b9a87a8a2e80785bdd676b3b6fd472cedd
OCamlPro/typerex-lint
lint_init_dynload.ml
(**************************************************************************) (* *) (* OCamlPro Typerex *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/tools/ocp-lint/main/lint_init_dynload.ml
ocaml
************************************************************************ OCamlPro Typerex This file is distributed ...
Copyright OCamlPro 2011 - 2016 . All rights reserved . ( GNU General Public Licence version 3.0 ) . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE...
1e8c88094d2856b3c841e015d65d483d4daaa9ed90bbcc1cf37d6a18e2abdf83
sellout/haskerwaul
Laws.hs
module Haskerwaul.Lattice.Laws where import Haskerwaul.Category.Monoidal.Cartesian import Haskerwaul.Semilattice.Laws import Haskerwaul.Lattice data LatticeLaws c a = LatticeLaws { meetSemilattice :: SemilatticeLaws c (Meet a) , joinSemilattice :: SemilatticeLaws c (Join a) } latticeLaws :: (Cartesia...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cdd4a61c6abe0f757e32058f4832cf616025b45f/src/Haskerwaul/Lattice/Laws.hs
haskell
module Haskerwaul.Lattice.Laws where import Haskerwaul.Category.Monoidal.Cartesian import Haskerwaul.Semilattice.Laws import Haskerwaul.Lattice data LatticeLaws c a = LatticeLaws { meetSemilattice :: SemilatticeLaws c (Meet a) , joinSemilattice :: SemilatticeLaws c (Join a) } latticeLaws :: (Cartesia...
6d7e73ff8929381603481226135cec6521aea817957f39a3a915ec141dbfa3f7
xapi-project/message-switch
data_source.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/rrd/data_source.ml
ocaml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
2a199f9e98e30b656fb1b1369e72f93984ca51bc369f96ac7f613b005a098b4f
ChrisTitusTech/gimphelp
210_Shapes_circle-create.scm
210_Shapes_circle-creator.scm last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 ;================================================== ; ; Installation: ; This script should be placed in the user or system-wide script folder. ; ; Windows 7/10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts ; o...
null
https://raw.githubusercontent.com/ChrisTitusTech/gimphelp/fdbc7e3671ce6bd74cefd83ecf7216e5ee0f1542/gimp_scripts-2.10/210_Shapes_circle-create.scm
scheme
================================================== Installation: This script should be placed in the user or system-wide script folder. Windows 7/10 or Linux /home/yourname/.config/GIMP/2.10/scripts or Linux system-wide /usr/share/gimp/2.0/scripts ================================================== ...
210_Shapes_circle-creator.scm last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts C:\Users\YOUR - NAME\AppData\Roaming\GIMP\2.10\scripts it under the terms of the GNU General Public License as published by the Free Software Foundatio...
55bd94c7968e960c61e9a2db9d66968975e74fe27e3e81a73f8422a9a41f05f7
waxeye-org/waxeye
gen.rkt
;; Waxeye Parser Generator ;; www.waxeye.org Copyright ( C ) 2008 - 2010 Orlando Hill Licensed under the MIT license . See ' LICENSE ' for details . #lang racket/base (require waxeye/ast) (provide (all-defined-out)) (define *eof-check* #t) (define *expression-level* '()) (define *file-header* #f) (define *module-...
null
https://raw.githubusercontent.com/waxeye-org/waxeye/723da0475fc0c8e3dd43da46665ef7c62734857b/src/waxeye/gen.rkt
racket
Waxeye Parser Generator www.waxeye.org This method exists in racket/list since Racket v6.7,
Copyright ( C ) 2008 - 2010 Orlando Hill Licensed under the MIT license . See ' LICENSE ' for details . #lang racket/base (require waxeye/ast) (provide (all-defined-out)) (define *eof-check* #t) (define *expression-level* '()) (define *file-header* #f) (define *module-name* #f) (define *name-prefix* #f) (define *...
0de34704a3940ec34ba1a769c5ba94977d87d01b91f851e13176bbcb9700ed61
nvim-treesitter/nvim-treesitter
highlights.scm
(symbol) @variable (label name: (symbol) @label) [ (instruction_mnemonic) (directive_mnemonic) ] @function.builtin (include (directive_mnemonic) @include) (include_bin (directive_mnemonic) @include) (include_dir (directive_mnemonic) @include) (size) @attribute (macro_definition name: (symbol) @function.macro)...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/9fdd6765fc05632c2f3af1ad825dc4e9cc0b041f/queries/m68k/highlights.scm
scheme
(symbol) @variable (label name: (symbol) @label) [ (instruction_mnemonic) (directive_mnemonic) ] @function.builtin (include (directive_mnemonic) @include) (include_bin (directive_mnemonic) @include) (include_dir (directive_mnemonic) @include) (size) @attribute (macro_definition name: (symbol) @function.macro)...
348e9dbead8cfd269c10c7569a9397488c0495286d40597301bb84df8d2ec7af
okuoku/nausicaa
proof-makers.sps
-*- coding : utf-8 - unix -*- ;;; Part of : / Scheme ;;;Contents: proof for makers Date : Sat May 22 , 2010 ;;; ;;;Abstract ;;; ;;; ;;; Copyright ( c ) 2010 < > ;;; ;;;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...
null
https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/scheme/proofs/proof-makers.sps
scheme
Contents: proof for makers Abstract This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ...
-*- coding : utf-8 - unix -*- Part of : / Scheme Date : Sat May 22 , 2010 Copyright ( c ) 2010 < > the Free Software Foundation , either version 3 of the License , or ( at General Public License for more details . You should have received a copy of the GNU General Public License #!r6rs (import (rnrs) ...
b683a0e73dd16af9d580a982831750c76c1ee046a99dcc774d6fe75915e79a68
camllight/camllight
syntaxe.mli
type constante = Entière of int | Booléenne of bool;; type expr_type = Integer (* le type des entiers *) | Boolean (* le type des booléens *) | Array of int * int * expr_type;; (* le type des tableaux *) (* (les deux "int" sont le...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/examples/pascal/syntaxe.mli
ocaml
le type des entiers le type des booléens le type des tableaux (les deux "int" sont les bornes) appel de procédure bloc begin ... end
type constante = Entière of int | Booléenne of bool;; type expr_type = type expression = Constante of constante | Variable of string | Application of string * expression list | Op_unaire of string * expression | Op_binaire of string * expression * expression | Accès_tableau of expression * expressi...
982ed77d89538fea1dc8879abc2951fbf2e81f9f86d5950c47caf4c0c35a1a8f
clj-kondo/clj-kondo
errors.cljs
Copyright ( c ) , , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to ...
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/inlined/clj_kondo/impl/toolsreader/v1v2v2/cljs/tools/reader/impl/errors.cljs
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , , Rich Hickey & contributors . (ns ^{:no-doc true} clj-kondo.impl.toolsreader.v1v2v2.cljs.tools.reader.impl.errors (:require [clj-kondo.impl.toolsreader.v1v2v2.cljs.tools.reader.reader-types :as types] [clojure.string :as s] [clj-kondo.impl.toolsreader.v1v2v2.cljs.to...
8a58cdb3dca6e67f105fd33bcfa17d40444c0a93e18f90374f2596a4f054c1da
g000001/tagger
analysis-sysdcl.lisp
-*- Package : TDB ; Syntax : Common - Lisp ; Mode : Lisp ; Base : 10 -*- Copyright ( c ) 1992 by Xerox Corporation . All rights reserved . TDB Analysis components (cl:eval-when (cl:compile cl:eval cl:load) (pdefsys:load-system-def :tdb-sysdcl)) (cl:in-package :tdb) (def-tdb-system :analysis ((:dir "ana...
null
https://raw.githubusercontent.com/g000001/tagger/a4e0650c55aba44250871b96e2220e1b4953c6ab/orig/src/sysdcl/analysis-sysdcl.lisp
lisp
Syntax : Common - Lisp ; Mode : Lisp ; Base : 10 -*- analysis pipeline elements analysis mixins
Copyright ( c ) 1992 by Xerox Corporation . All rights reserved . TDB Analysis components (cl:eval-when (cl:compile cl:eval cl:load) (pdefsys:load-system-def :tdb-sysdcl)) (cl:in-package :tdb) (def-tdb-system :analysis ((:dir "analysis") (:sub-systems :util)) "analysis-protocol") (def-tdb-system :s...
3929f1bf16ebf48a40ea2bb47c52216ce5f67dff20aec8e3e12cdd0d0b253461
psg-mit/twist-popl22
static.mli
exception Error of string val check : Ast.program -> unit
null
https://raw.githubusercontent.com/psg-mit/twist-popl22/1195333cd4156f759c1d10a1ca7b1bcaab60c4e3/src/static.mli
ocaml
exception Error of string val check : Ast.program -> unit
0ce55f66e63ef5cc977df0fc754f3cac3efdb5481b1f77913a9a915c47a2cfed
racket/rhombus-prototype
uses-pack.rkt
#lang racket/base (require syntax/parse/pre "pack.rkt") (provide unpack-uses pack-uses) (define (unpack-uses v) (syntax-parse v [(stx ...) #'(brackets (group stx) ...)])) (define (pack-uses v who) (syntax-parse v #:datum-literals (brackets group) [(brackets (group stx) ...) ...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/dcf7fb9b002c0957fc0adbf9bd3475c26a8b2c01/rhombus/private/uses-pack.rkt
racket
#lang racket/base (require syntax/parse/pre "pack.rkt") (provide unpack-uses pack-uses) (define (unpack-uses v) (syntax-parse v [(stx ...) #'(brackets (group stx) ...)])) (define (pack-uses v who) (syntax-parse v #:datum-literals (brackets group) [(brackets (group stx) ...) ...
ec909bea5cf20f14c1c839afa60f9d8f4966044d6617de879b2eead60b956603
YoshikuniJujo/funpaala
rsa.hs
xxcrypt n ed = (`mod` n) . (^ ed)
null
https://raw.githubusercontent.com/YoshikuniJujo/funpaala/5366130826da0e6b1180992dfff94c4a634cda99/samples/07_polymorphic/rsa.hs
haskell
xxcrypt n ed = (`mod` n) . (^ ed)
02e56063f2987da5872bc489e85bc870a232510f568fc9e454e905e7187cdc2c
mzp/coq-ide-for-ios
bigint.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/lib/bigint.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i Arbitrary large integer numbers...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : bigint.mli 13323 20...
d335cc72dd7dd8c029a0875345aa5905dc3fb9661f726a3858ec1edb6b8776db
henryw374/cljc.java-time
period.clj
(ns cljc.java-time.period (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time Period])) (def zero java.time.Period/ZERO) (clojure.core/defn get-months {:arglists (quote (["java.time.Period"]))} (^java.lang.Integer [^jav...
null
https://raw.githubusercontent.com/henryw374/cljc.java-time/2e47e8104bc2ec7f68a01bf751a7b9a2dee391b4/src/cljc/java_time/period.clj
clojure
(ns cljc.java-time.period (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness]) (:import [java.time Period])) (def zero java.time.Period/ZERO) (clojure.core/defn get-months {:arglists (quote (["java.time.Period"]))} (^java.lang.Integer [^jav...
b339728cbcd267c52b88221670792109fbd7f3297af2ddc324e39cf64e3269b9
janestreet/rpc_parallel
start_app.ml
open! Core open! Async let backend = (module Backend : Rpc_parallel.Backend) let backend_and_settings = Rpc_parallel.Backend_and_settings.T ((module Backend), ()) let start_app ?rpc_max_message_size ?rpc_handshake_timeout ?rpc_heartbeat_config ?when_parsing_succeeds ?complete_subcommands...
null
https://raw.githubusercontent.com/janestreet/rpc_parallel/968259d389c35aa33cc1c02e089bfc442fb4294d/unauthenticated/start_app.ml
ocaml
open! Core open! Async let backend = (module Backend : Rpc_parallel.Backend) let backend_and_settings = Rpc_parallel.Backend_and_settings.T ((module Backend), ()) let start_app ?rpc_max_message_size ?rpc_handshake_timeout ?rpc_heartbeat_config ?when_parsing_succeeds ?complete_subcommands...
5d0760dedbd7cf0d0dd02621d152a9ee01ea02b20cf73dde4ab064f6883479fa
soegaard/metapict
snake.rkt
#lang racket ;; ;; SNAKE ;; An unfinished experiment . See snakes in the TikZ manual . ; The goal is to make a wiggly curve than can be used to draw wiggly arrows. ; (require "def.rkt" "parameters.rkt" "graph.rkt" "pt-vec.rkt" "curve.rkt") (require metapict metapict/graph) (define (wave len amplitude) (define (...
null
https://raw.githubusercontent.com/soegaard/metapict/47ae265f73cbb92ff3e7bdd61e49f4af17597fdf/metapict/snake.rkt
racket
SNAKE The goal is to make a wiggly curve than can be used to draw wiggly arrows. (require "def.rkt" "parameters.rkt" "graph.rkt" "pt-vec.rkt" "curve.rkt")
#lang racket An unfinished experiment . See snakes in the TikZ manual . (require metapict metapict/graph) (define (wave len amplitude) (define (f x) (* amplitude (sin (/ (* x 2pi) len)))) (define (df x) (* (/ amplitude 2pi len) (cos (/ (* x 2pi) len)))) (graph f 0 len #:samples 16 #:diff df)) (define (sna...
d1057c3ab4b39fe0b4316d148488bcc7bea6f8f0bbc2abb0bef086bddfb9884d
lspitzner/brittany
Test534.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } runBrittany tabSize text = do let config' = staticDefaultConfig config = config' { _conf_layout = (_conf_layout config') { _lconfig_indentAmount = coerce tabSize } , _c...
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test534.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
runBrittany tabSize text = do let config' = staticDefaultConfig config = config' { _conf_layout = (_conf_layout config') { _lconfig_indentAmount = coerce tabSize } , _conf_forward = forwardOptionsSyntaxExtsEnabled } parsePrintModule config text
b9fc90339fb56420b21dff6e46689d9a640aebe8f6caf836c974228ad844aa44
bramford/2d-exploration-game
entity.mli
type t val to_string : t option -> string val fg : t -> Notty.A.color val draw : t option -> Notty.image val is_human : t option -> bool val make_player : string -> t option -> (t, string) result val is_player : t option -> bool val is_specific_player : string -> t option -> bool val random : int -> t option
null
https://raw.githubusercontent.com/bramford/2d-exploration-game/0660ced6ec4aa39d4548b0ecc1f20f8269bf4c6b/src/entity.mli
ocaml
type t val to_string : t option -> string val fg : t -> Notty.A.color val draw : t option -> Notty.image val is_human : t option -> bool val make_player : string -> t option -> (t, string) result val is_player : t option -> bool val is_specific_player : string -> t option -> bool val random : int -> t option
3a1dd02d0f63116605c6e9ed99a46f77011852d045ab888e26b266d05c193e1d
clojurebook/ClojureProgramming
types.clj
(ns eventing.types) (derive 'sales/purchase 'sales/all) (derive 'sales/purchase 'finance/accounts-receivable) (derive 'finance/accounts-receivable 'finance/all) (derive 'finance/all 'events/all) (derive 'sales/all 'events/all) (derive 'sales/RFQ 'sales/lead-generation) (derive 'sales/lead-generation 'sales/all) (deriv...
null
https://raw.githubusercontent.com/clojurebook/ClojureProgramming/bcc7c58862982a5793e22788fc11a9ed7ffc548f/ch15-couchdb/src/eventing/types.clj
clojure
(ns eventing.types) (derive 'sales/purchase 'sales/all) (derive 'sales/purchase 'finance/accounts-receivable) (derive 'finance/accounts-receivable 'finance/all) (derive 'finance/all 'events/all) (derive 'sales/all 'events/all) (derive 'sales/RFQ 'sales/lead-generation) (derive 'sales/lead-generation 'sales/all) (deriv...
5c4a2e23b000ac22f2e3881771981047f0c767e65da8b86277acc39d05ef3c3e
mauricioszabo/repl-tooling
renderer.cljs
(ns repl-tooling.editor-integration.renderer (:require [reagent.core :as r] [promesa.core :as p] [clojure.string :as str] [repl-tooling.eval :as eval] [repl-tooling.editor-integration.renderer.protocols :as proto] [repl-tooling.editor-helpers :as helpers] ...
null
https://raw.githubusercontent.com/mauricioszabo/repl-tooling/1cea9b411cc118d71266cb8e035e146325baf410/src/repl_tooling/editor_integration/renderer.cljs
clojure
FIXME - This may be possible now... (.. (definition/resolve-possible-path aux-repl {:file file :line row}) (then #(open-editor (assoc % :else (trace-span file row))]]))) FIXME: is this really necessary? Can we use the exception renderer?
(ns repl-tooling.editor-integration.renderer (:require [reagent.core :as r] [promesa.core :as p] [clojure.string :as str] [repl-tooling.eval :as eval] [repl-tooling.editor-integration.renderer.protocols :as proto] [repl-tooling.editor-helpers :as helpers] ...
e7bbfde2977d50b684c79cbd2a8200291204eae28a90342d0e404638c899ce75
kelsey-sorrels/robinson
fs.clj
(ns robinson.fs (:require clojure.string [clojure.java.io :as io] [taoensso.timbre :as log])) (defn cwd [] (let [jar-path (-> *ns* class .getProtectionDomain .getCodeSource .getLocation .to...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/src/robinson/fs.clj
clojure
(ns robinson.fs (:require clojure.string [clojure.java.io :as io] [taoensso.timbre :as log])) (defn cwd [] (let [jar-path (-> *ns* class .getProtectionDomain .getCodeSource .getLocation .to...
3f2fd420b5862d7ec696634bac48af5da77e07758da8c254429533a35ae4afff
qkrgud55/ocamlmulti
path.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/typing/path.ml
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 . $ I d : path.ml 12035 2012 - 01 - 18 ...
4ac1d00bf2b146ed85485ef54f9ea756c92489e9118ae1674f35f73685f3ed83
goblint/analyzer
floatDomain.mli
(** Abstract Domains for floats. These are domains that support the C * operations on double/float values. *) open GoblintCil exception ArithmeticOnFloatBot of string module type FloatArith = sig type t val neg : t -> t * Negating a float value : [ -x ] val add : t -> t -> t (** Addition: [x + y] *) val ...
null
https://raw.githubusercontent.com/goblint/analyzer/2587de294aeda1b15fdb78f9c03cf4627ec3ba3f/src/cdomains/floatDomain.mli
ocaml
* Abstract Domains for floats. These are domains that support the C * operations on double/float values. * Addition: [x + y] * Subtraction: [x - y] * Multiplication: [x * y] * Division: [x / y] * Maximum * Minimum * {unary functions} ceil(x) floor(x) * fabs(x) * acos(x) * asin(x) * atan(x) * tan(x) *...
open GoblintCil exception ArithmeticOnFloatBot of string module type FloatArith = sig type t val neg : t -> t * Negating a float value : [ -x ] val add : t -> t -> t val sub : t -> t -> t val mul : t -> t -> t val div : t -> t -> t val fmax : t -> t -> t val fmin : t -> t -> t val ceil: t -> t v...
24a7fd3941351223a6380e7641d288dbed465e9df890e6198c03682e275adedf
vseloved/cl-nlp
en.lisp
( c ) 2019 Vsevolod Dyomkin (in-package #:nlp.core) (named-readtables:in-readtable rutilsx-readtable) (def-lang-profile :en :word-tags (dict-from-file (lang-file :en "word-tags.txt") :test 'eql :key-transform 'tag:export-tag) :dep-tags (dict-from-file (lang-file :en "dep-tags.txt")...
null
https://raw.githubusercontent.com/vseloved/cl-nlp/f180b6c3c0b9a3614ae43f53a11bc500767307d0/langs/en/en.lisp
lisp
( c ) 2019 Vsevolod Dyomkin (in-package #:nlp.core) (named-readtables:in-readtable rutilsx-readtable) (def-lang-profile :en :word-tags (dict-from-file (lang-file :en "word-tags.txt") :test 'eql :key-transform 'tag:export-tag) :dep-tags (dict-from-file (lang-file :en "dep-tags.txt")...
8a512be1945beb91f984cf7a4705b8d065893ab0df580c98419c89b492abadd7
richhickey/clojure-contrib
test_with_ns.clj
(ns clojure.contrib.test-with-ns (:use clojure.test clojure.contrib.with-ns)) (deftest test-namespace-gets-removed (let [all-ns-names (fn [] (map #(.name %) (all-ns)))] (testing "unexceptional return" (let [ns-name (with-temp-ns (ns-name *ns*))] (is (not (some #{ns-name} (all-ns-names)))))) ...
null
https://raw.githubusercontent.com/richhickey/clojure-contrib/40b960bba41ba02811ef0e2c632d721eb199649f/src/test/clojure/clojure/contrib/test_with_ns.clj
clojure
(ns clojure.contrib.test-with-ns (:use clojure.test clojure.contrib.with-ns)) (deftest test-namespace-gets-removed (let [all-ns-names (fn [] (map #(.name %) (all-ns)))] (testing "unexceptional return" (let [ns-name (with-temp-ns (ns-name *ns*))] (is (not (some #{ns-name} (all-ns-names)))))) ...
ba1c233c0c6b56a6a13541bace61ef917baac6332f792a1f73fa373c8eea55e5
wlitwin/graphv
createFlags.mli
include Flags.S val antialias : t val stencil_strokes : t val debug : t val tesselate_afd : t
null
https://raw.githubusercontent.com/wlitwin/graphv/d0a09575c5ff5ee3727c222dd6130d22e4cf62d9/webgl1/core/createFlags.mli
ocaml
include Flags.S val antialias : t val stencil_strokes : t val debug : t val tesselate_afd : t
bb444498b517671c7ff7c8e48cfee1ffbb515efdef693117aedf6ad8bc6965c7
geremih/xcljb
xproto_internal.clj
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.xproto-internal (:require [xcljb common gen-common] [xcljb.gen xproto-types])) (clojure.core/defmethod xcljb.common/read-reply [nil 3] [_ _ reply-buf] (xcljb.gen-common/deserialize xcljb.gen.xproto-types/GetWindowAttributesRep...
null
https://raw.githubusercontent.com/geremih/xcljb/59e9ff795bf00595a3d46231a7bb4ec976852396/src/xcljb/gen/xproto_internal.clj
clojure
Manually written.
This file is automatically generated . DO NOT MODIFY . (clojure.core/ns xcljb.gen.xproto-internal (:require [xcljb common gen-common] [xcljb.gen xproto-types])) (clojure.core/defmethod xcljb.common/read-reply [nil 3] [_ _ reply-buf] (xcljb.gen-common/deserialize xcljb.gen.xproto-types/GetWindowAttributesRep...
c8e2566375b3454e39fc01b2122b3f94fcc3e06eee4fe9a05be23728fe09d1df
wdebeaum/step
urge.lisp
;;;; ;;;; W::urge ;;;; (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::urge (SENSES ((LF-PARENT ONT::suggest) (example "Abrams urged Browne to hire Chiang") (meta-data :origin csli-ts :entry-date 20070313 :change-date nil :comments nil :wn nil) (SEM (F::Aspect F::unbounded) (F...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/urge.lisp
lisp
W::urge
(define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::urge (SENSES ((LF-PARENT ONT::suggest) (example "Abrams urged Browne to hire Chiang") (meta-data :origin csli-ts :entry-date 20070313 :change-date nil :comments nil :wn nil) (SEM (F::Aspect F::unbounded) (F::Time-span F::extended...
51d453d82fc86541da1451e505ef4b7461dfcb659f749866e1dd99e1a02adbd7
input-output-hk/cardano-ledger
Deleg.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeSynonymInstances #-} module Test.Cardan...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/1e2ff13f02a989241f637fd9413f1852675b74f0/eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Rules/Deleg.hs
haskell
# LANGUAGE TypeSynonymInstances # | Various properties of the POOL STS Rule, tested on longer traces (double the default length) | Check stake key registration | Check stake key de-registration | Check stake key delegation | Check that the sum of rewards does not change and that each element
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NamedFieldPuns # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Test.Cardano.Ledger.Shelley.Rules.Deleg ( tests...
c11483c8624e1c6fb8d89b998f1b36625fc162c4e9f916a42302368b920635fa
robert-strandh/SICL
nunion-defun.lisp
(cl:in-package #:sicl-cons) ;;; We take advantage of the fact that the standard doesn't require ;;; this function to have any side effects. (defun nunion (list1 list2 &key key (test nil test-given) (test-not nil test-not-given)) (when (and test-given test-not-given) (error 'both-test-and-test-not...
null
https://raw.githubusercontent.com/robert-strandh/SICL/32d995c4f8e7d228e9c0cda6f670b2fa53ad0287/Code/Cons/nunion-defun.lisp
lisp
We take advantage of the fact that the standard doesn't require this function to have any side effects.
(cl:in-package #:sicl-cons) (defun nunion (list1 list2 &key key (test nil test-given) (test-not nil test-not-given)) (when (and test-given test-not-given) (error 'both-test-and-test-not-given)) (let ((use-hash (> (* (length list1) (length list2)) 1000))) (if key (if test-given ...
c417728958f1af6be7716761f5e0f012b242c763f77dca726516610998f6a907
rajasegar/cl-djula-tailwind
tailwind-backgrounds.lisp
(defpackage cl-djula-tailwind.backgrounds (:use :cl :cl-djula-tailwind.colors) (:export :*backgrounds*)) (in-package cl-djula-tailwind.backgrounds) (defun get-list-key (prefix key) (ppcre:regex-replace-all "\\\"" (concatenate 'string prefix (write-to-string key)) "")) (defun get-list-value (prefix key valu...
null
https://raw.githubusercontent.com/rajasegar/cl-djula-tailwind/c51fafc76b898525b207eecf061ceacb7bbaf7e9/src/tailwind-backgrounds.lisp
lisp
background colors
(defpackage cl-djula-tailwind.backgrounds (:use :cl :cl-djula-tailwind.colors) (:export :*backgrounds*)) (in-package cl-djula-tailwind.backgrounds) (defun get-list-key (prefix key) (ppcre:regex-replace-all "\\\"" (concatenate 'string prefix (write-to-string key)) "")) (defun get-list-value (prefix key valu...
0e8f10af3b457cba5a6e999bf276feff536912efcb3b883eb949911f9ad0b592
flexsurfer/re-frisk
interop.cljs
(ns ^{:mranderson/inlined true} re-frisk.inlined-deps.reagent.v1v0v0.reagent.interop (:require-macros [re-frisk.inlined-deps.reagent.v1v0v0.reagent.interop]))
null
https://raw.githubusercontent.com/flexsurfer/re-frisk/638d820c84e23be79b8c52f8f136a611d942443f/re-frisk/src/re_frisk/inlined_deps/reagent/v1v0v0/reagent/interop.cljs
clojure
(ns ^{:mranderson/inlined true} re-frisk.inlined-deps.reagent.v1v0v0.reagent.interop (:require-macros [re-frisk.inlined-deps.reagent.v1v0v0.reagent.interop]))
249485a0cb56d4fdb64e6e087e0cdf14e706749a8379c9cbc271a08f12f449bd
astanin/moo
moo-tests.hs
import System.Exit import Test.HUnit import Tests.Internals.TestFundamentals (testFundamentals) import Tests.Internals.TestControl (testControl) import Tests.Internals.TestSelection (testSelection) import Tests.Internals.TestCrossover (testCrossover) import Tests.Internals.TestConstraints (testConstraints) import Test...
null
https://raw.githubusercontent.com/astanin/moo/2e77a94a543d21360f7610c1ee0dda52813997c4/moo-tests.hs
haskell
import System.Exit import Test.HUnit import Tests.Internals.TestFundamentals (testFundamentals) import Tests.Internals.TestControl (testControl) import Tests.Internals.TestSelection (testSelection) import Tests.Internals.TestCrossover (testCrossover) import Tests.Internals.TestConstraints (testConstraints) import Test...
1b540e6e544055fcd85591ba9c8f4e71a7f6ded4826243e5752033d7a1966c51
ChrisTitusTech/gimphelp
210_sharpness-softer_blur-non-edges.scm
210_sharpness-softer_blur-non-edges.scm last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 ;================================================== ; ; Installation: ; This script should be placed in the user or system-wide script folder. ; ; Windows 7/10 C:\Program Files\GIMP 2\share\gimp\2.0\s...
null
https://raw.githubusercontent.com/ChrisTitusTech/gimphelp/fdbc7e3671ce6bd74cefd83ecf7216e5ee0f1542/gimp_scripts-2.10/210_sharpness-softer_blur-non-edges.scm
scheme
================================================== Installation: This script should be placed in the user or system-wide script folder. Windows 7/10 or Linux /home/yourname/.config/GIMP/2.10/scripts or Linux system-wide /usr/share/gimp/2.0/scripts ================================================== ...
210_sharpness-softer_blur-non-edges.scm last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts C:\Users\YOUR - NAME\AppData\Roaming\GIMP\2.10\scripts Blur Non - Edges version 0.9.1 Blurs those areas of a picture which are considered not edges...
65d4e20a590e6b1e41b7a300b34399edb59698135e0d2c5db1e58b5098243d41
yogthos/memory-hole
md_editor.cljs
(ns memory-hole.widgets.md-editor (:require [reagent.core :as r] [re-frame.core :refer [dispatch subscribe]])) (def ^{:private true} hint-limit 10) (def ^{:private true} word-pattern-left #".*(#.*)$") (def ^{:private true} word-pattern-right #"^(#?.*).*") (defn- current-word [cm] "Returns current wo...
null
https://raw.githubusercontent.com/yogthos/memory-hole/925e399b0002d59998d10bd6f54ff3464a4b4ddb/src/cljs/memory_hole/widgets/md_editor.cljs
clojure
move editor into text area create new instance via fromTextArea (recommended) dereference hints, so add-watch is not optimized out
(ns memory-hole.widgets.md-editor (:require [reagent.core :as r] [re-frame.core :refer [dispatch subscribe]])) (def ^{:private true} hint-limit 10) (def ^{:private true} word-pattern-left #".*(#.*)$") (def ^{:private true} word-pattern-right #"^(#?.*).*") (defn- current-word [cm] "Returns current wo...
063cb82ae2717134e36160febdfe2c523fdb59b51938fad7e039a2371731cadd
xapi-project/xenopsd
xenops_server_plugin.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xenopsd/f4da21a4ead7c6a7082af5ec32f778faf368cf1c/lib/xenops_server_plugin.ml
ocaml
no_sharept XXX cancel
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
e98a66b636a2420dc60d1dabdb10de5ffe3ffe4aadf0e262e039c8332f2334b2
glondu/belenios
election.mli
include Belenios_core.Versioned_sig.ELECTION_SIG
null
https://raw.githubusercontent.com/glondu/belenios/d267ee3c410855a0936f8f435f9961022ab885e0/src/lib/v1/election.mli
ocaml
include Belenios_core.Versioned_sig.ELECTION_SIG
9660b7ec554e642fcf4991baf7ec30d69ff1cbe4a491f1a80ef8c49c1b240994
probcomp/haskell-trace-types
BasicExamples.hs
# LANGUAGE DataKinds , GADTs , KindSignatures , TypeFamilies , TypeOperators , TypeApplications , ScopedTypeVariables , MultiParamTypeClasses , OverloadedLabels , InstanceSigs , FlexibleContexts , FlexibleInstances , RankNTypes , UndecidableInstances , ConstraintKinds , OverlappingInstances , TypeFamilyDependencies # #...
null
https://raw.githubusercontent.com/probcomp/haskell-trace-types/d7b209a61f31f6d77d3e285716abe1d96244e1ae/src/BasicExamples.hs
haskell
# LANGUAGE PartialTypeSignatures, NoMonomorphismRestriction # ----------------------------- ----------------------------- -- Valid & Invalid Inference -- -- ----------------------------- ----------------------------- weight_model :: MonadInfer m => P m ("weight" ...
# LANGUAGE DataKinds , GADTs , KindSignatures , TypeFamilies , TypeOperators , TypeApplications , ScopedTypeVariables , MultiParamTypeClasses , OverloadedLabels , InstanceSigs , FlexibleContexts , FlexibleInstances , RankNTypes , UndecidableInstances , ConstraintKinds , OverlappingInstances , TypeFamilyDependencies # #...
a124b818e4b5475d1b2d8ec04bde23a1f31da417e9af4e7d0df9bdaa0d126522
leftaroundabout/manifolds
PseudoAffine.hs
-- | -- Module : Data.Manifold.PseudoAffine Copyright : ( c ) 2015 -- License : GPL v3 -- -- Maintainer : (@) jsag $ hvl.no -- Stability : experimental -- Portability : portable -- This is the second prototype of a manifold class . It appears to give considerable -- advantages over 'Data.Manifold...
null
https://raw.githubusercontent.com/leftaroundabout/manifolds/4bcf39ee970cf437458dadc8f9b0dc66d2ae09ed/manifolds/Data/Manifold/PseudoAffine.hs
haskell
| Module : Data.Manifold.PseudoAffine License : GPL v3 Maintainer : (@) jsag $ hvl.no Stability : experimental Portability : portable advantages over 'Data.Manifold.Manifold', so that class will probably soon be replaced with the one we define here (though 'PseudoAffine' does not follow the stan...
Copyright : ( c ) 2015 This is the second prototype of a manifold class . It appears to give considerable Manifolds with boundary ( which we call , never /manifold/ ! ) To understand how this module works , best first forget about boundaries – in this case , @'Interior ' x ~ , ' fromInterior ' and ' to...
0015a089d756ae721aa4fb1ae21969b1e2182494bec822f2a01795a0290229db
brendanhay/amazonka
Amazonka.hs
# OPTIONS_GHC -fno - warn - duplicate - exports # -- | -- Module : Amazonka Copyright : ( c ) 2013 - 2021 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : provisional Portability : non - portable ( GHC extensions ) -- -- This module provides simple...
null
https://raw.githubusercontent.com/brendanhay/amazonka/7b8c332d91a13d47cb6478529264b8cb6d0dd5a3/lib/amazonka/src/Amazonka.hs
haskell
| Module : Amazonka Stability : provisional This module provides simple 'Env' and 'IO'-based operations which * Usage $usage * Authentication and Environment ** Service Configuration $service ** Running AWS Actions $discovery ** Supported Regions ** Service Endpoints * Sending Requests $sending ...
# OPTIONS_GHC -fno - warn - duplicate - exports # Copyright : ( c ) 2013 - 2021 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) can be performed against remote Amazon Web Services APIs , for use with the types supplie...
356423c2aa9c12e393f12feb139dcf0393f5ce47d7c258eac8abaef505be3949
TerrorJack/ghc-alter
Utils.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- This is a non-exposed internal module. -- -- This code contains utility function and data structures that are used -- to improve the efficiency of several instances in the Data.* nam...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Data/Functor/Utils.hs
haskell
--------------------------------------------------------------------------- This is a non-exposed internal module. This code contains utility function and data structures that are used to improve the efficiency of several instances in the Data.* namespace. -----------------------------------------------------------...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # module Data.Functor.Utils where import Data.Coerce (Coercible, coerce) import GHC.Base ( Applicative(..), Functor(..), Maybe(..), Monoid(..), Ord(..) , ($), otherwise ) We do n't expose and because , as pointed out to me , there are two ...
fb0052e82a31049f92339441a11ce53194721f612266307b532051e851c605c5
ocaml/oasis2debian
myocamlbuild.ml
(******************************************************************************) (* oasis2debian: create and maintain a debian/ directory using _oasis *) (* *) Copyright ( C ) 2010 , OCamlCore SARL , (* ...
null
https://raw.githubusercontent.com/ocaml/oasis2debian/41d268cada4afdac8c906ac99277d7c685bc15ae/myocamlbuild.ml
ocaml
**************************************************************************** oasis2debian: create and maintain a debian/ directory using _oasis This librar...
Copyright ( C ) 2010 , OCamlCore SARL , the Free Software Foundation ; either version 2.1 of the License , or ( at You should have received a copy of the GNU Lesser General Public License along with this library ; if not , write to the Free Software Foundation , Inc. , 51 Franklin S...
411a951def766f1b05b15cdb622aa0c69f75b28e697aedabcd82acbdb7931d53
cbaggers/cepl
docs-image-formats.lisp
(in-package :cepl.image-formats) (docs:define-docs (defun image-formatp " This function returns t if the value provided is a keyword that can be found in *image-formats* ") (defun valid-image-format-for-buffer-backed-texturep " This function returns t if the value provided is a keyword that can be fou...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/types/docs-image-formats.lisp
lisp
(in-package :cepl.image-formats) (docs:define-docs (defun image-formatp " This function returns t if the value provided is a keyword that can be found in *image-formats* ") (defun valid-image-format-for-buffer-backed-texturep " This function returns t if the value provided is a keyword that can be fou...
5a2a873393ac47c9632f17bcc199d964eba0083144a37cafac946d163435a9d0
google/haskell-trainings
Solution.hs
Copyright 2021 Google LLC -- 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 distributed und...
null
https://raw.githubusercontent.com/google/haskell-trainings/214013fc324fd6c8f63b874a58ead0c1d3e6788c/haskell_101/codelab/04_abstractions/src/Solution.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 2021 Google LLC Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # # OPTIONS_GHC -fno - warn - unused - binds # # OPTI...
9c5396b1e4a6105316b54ebf01052ac3055f139866178eacf158794ed8c158b3
quephird/fun-with-quil
cityscape.clj
(ns fun-with-quil.sketches.cityscape (:require [quil.core :as q :include-macros true] [quil.middleware :as m]) (:import [processing.core PGraphics])) (defn make-windows [n] (into [] (repeatedly n (fn [] (rand-int 3))))) (defn- make-skyscraper [] (let [storeys (+ 10 (rand-int 20)) windows-p...
null
https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/src/fun_with_quil/sketches/cityscape.clj
clojure
Give x,y coords for each skyscraper; there should be gaps between buildings Maybe simulate clouds? Render lights Rippling effect? Combine draw-skyscraper and draw-reflection somehow (.fill pg 255 255 200) This is to avoid an IndexOutOfBoundsException Blinking windows?
(ns fun-with-quil.sketches.cityscape (:require [quil.core :as q :include-macros true] [quil.middleware :as m]) (:import [processing.core PGraphics])) (defn make-windows [n] (into [] (repeatedly n (fn [] (rand-int 3))))) (defn- make-skyscraper [] (let [storeys (+ 10 (rand-int 20)) windows-p...
651aad97dd7e0b7576a0cc08635b3cd314124d4457e1a70c9b7b6661191f0854
RichiH/git-annex
Alert.hs
git - annex assistant alerts - - Copyright 2012 - 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012-2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE OverloadedStrings , CPP , BangPatterns # module Assistant.Alert where import ...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/Alert.hs
haskell
Displayed when a shutdown is occurring, so will be seen after shutdown - has happened. Show a message that relates to a list of files. - - The most recent several files are shown, and a count of any others. This is only used as a success alert after a transfer, not during it.
git - annex assistant alerts - - Copyright 2012 - 2014 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012-2014 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # LANGUAGE OverloadedStrings , CPP , BangPatterns # module Assistant.Alert where import ...
59189bcbc057410ad2e68c64c599c9e50577bec9a06a3482b5be7d87d1c5aca4
egonSchiele/salty
KeywordParser.hs
module Parser.KeywordParser where import Types import Utils import Text.Parsec import Text.ParserCombinators.Parsec.Char import Text.Parsec.Combinator saltySpace = debug "saltySpace" >> do space return SaltySpace maybeToSpace Nothing = "" maybeToSpace (Just _) = " " saltyKeyword followupParser = debug "saltyKey...
null
https://raw.githubusercontent.com/egonSchiele/salty/7cb31f35ef0c9d63777d7499174884d7a4054dbb/src/Parser/KeywordParser.hs
haskell
module Parser.KeywordParser where import Types import Utils import Text.Parsec import Text.ParserCombinators.Parsec.Char import Text.Parsec.Combinator saltySpace = debug "saltySpace" >> do space return SaltySpace maybeToSpace Nothing = "" maybeToSpace (Just _) = " " saltyKeyword followupParser = debug "saltyKey...
20ec943510da0831ce6f6393348b4f48c1d61603c08994246b754dafef48da88
ygrek/mldonkey
commonSearch.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/daemon/common/commonSearch.ml
ocaml
should call a handler to send the result to the GUI ... ******************************************************************** SEARCH FILTERING ********************************************************************
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
5989e7b85c6a33db2c2e69853c0e821bce8f3ad4bd14ea4fe05600e43af9a852
Denommus/LuaOCaml
ast.ml
type unop = UMinus | Not | Octo [@@deriving show] type binop = And | Or | Plus | Minus | Times | Div | Mod | Exp | DoubleDot | Lt | Lte | Gt | Gte | Eq | Diff [@@deriving show] type funcname = FuncName of var * bool and var = Name of string | NestedVar of exp * exp and exp = Nil | False | True | Numbe...
null
https://raw.githubusercontent.com/Denommus/LuaOCaml/b562a6fd79cf2497f53aafd4f9a4e63370854dd9/library/ast.ml
ocaml
type unop = UMinus | Not | Octo [@@deriving show] type binop = And | Or | Plus | Minus | Times | Div | Mod | Exp | DoubleDot | Lt | Lte | Gt | Gte | Eq | Diff [@@deriving show] type funcname = FuncName of var * bool and var = Name of string | NestedVar of exp * exp and exp = Nil | False | True | Numbe...
84e830bf2e883cb7220da70e5aff4ad0a0004afbf309fba37f57cb777dd0fca8
tolysz/prepare-ghcjs
Functor.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Functor Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- St...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/base/Data/Functor.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Functor License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable 'Data.List.map' function on lists. $setup | An infix synonym for 'fmap'. ...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) The University of Glasgow 2001 Functors : uniform action over a parameterized type , generalizing the module Data.Functor ( Functor(fmap), (<$), ($>), (<$>), void, ) where import GHC.Base ( Functo...
d894a5cba8c4f9f86af1faea9e1b2ee6420ba50f76f75d191ba0210fd2964e6f
pfeodrippe/ummoi
example_bb.clj
#!/usr/bin/env bb Cheers to ;; Taken and modified to add request body parsing from -common/blob/master/wee_httpd.bb (ns wee-httpd) (import (java.net ServerSocket)) (require '[clojure.string :as string] '[clojure.java.io :as io] '[cheshire.core :as json]) (defn create-worker-thread [client-soc...
null
https://raw.githubusercontent.com/pfeodrippe/ummoi/46d11cdb684418fea089855abac3c32ffdd37c29/examples/example_bb.clj
clojure
Taken and modified to add request body parsing from -common/blob/master/wee_httpd.bb Keep the shell script from returning. When evaling the whole buffer, comment this out.
#!/usr/bin/env bb Cheers to (ns wee-httpd) (import (java.net ServerSocket)) (require '[clojure.string :as string] '[clojure.java.io :as io] '[cheshire.core :as json]) (defn create-worker-thread [client-socket request-handler] (.start (Thread. (fn [] (with-open [out (io/writer (...
a30453c6d87d145563d3045fd1c113eef314fdc71c15150cf8448d553897ed82
bevuta/pepa
core.cljs
(ns ^:figwheel-always pepa.core (:require pepa.style pepa.navigation [pepa.data :as data] [pepa.preloader :as preloader] [pepa.components.root :refer [root-component]] [pepa.components.draggable :as draggable] [om.core :as om :include-macros tr...
null
https://raw.githubusercontent.com/bevuta/pepa/0a9991de0fd1714515ca3def645aec30e21cd671/src-cljs/pepa/core.cljs
clojure
Preload Images
(ns ^:figwheel-always pepa.core (:require pepa.style pepa.navigation [pepa.data :as data] [pepa.preloader :as preloader] [pepa.components.root :refer [root-component]] [pepa.components.draggable :as draggable] [om.core :as om :include-macros tr...
9cd4dbd1654133f02c3182e28fb8a0887ee5735f94002581370757580e66503a
Leberwurscht/Diaspora-User-Directory
dbMessages.ml
(************************************************************************) This file is part of SKS . SKS is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or (...
null
https://raw.githubusercontent.com/Leberwurscht/Diaspora-User-Directory/1ca4a06a67d591760516edffddb0308b86b6314c/trie_manager/dbMessages.ml
ocaml
********************************************************************** ********************************************************************* ********************************* ********************************* Data Types ******************* ********************************* must make other changes.... DEPRECATED *...
This file is part of SKS . SKS is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distributed in ...
34fa6e36c1873bcfc5dca1d2560862ea249755a35bc612b0a1717981e6381667
fortytools/holumbus
PortRegistryData.hs
-- ---------------------------------------------------------------------------- | Module : Holumbus . Network . PortRegistry . PortRegistryData Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/distribution/source/Holumbus/Network/PortRegistry/PortRegistryData.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- * Creation and Destruction ---------------------------------------------------------------------------- ---------------------------------------------------------...
| Module : Holumbus . Network . PortRegistry . PortRegistryData Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 This module contains the main datatype for the PortRegistry . Mo...
b6c42da98200dbc7374e134bbcb6f95d55a54c1a27b847f03094090c8754b07a
Novus-School/novus
datomic.clj
(ns griffin.components.datomic (:require [datomic.client.api :as d] ; [novus.validation :as validation] [clojure.edn :as edn] [clojure.java.io :as io])) (defn ident-has-attr? [db ident attr] (contains? (d/pull db {:eid ident :selector '[*]}) attr)) ;; (defn load-dataset [co...
null
https://raw.githubusercontent.com/Novus-School/novus/505ac5c6126a588ff833d0efca1526e89e0fc66e/novus/src/main/griffin/components/datomic.clj
clojure
[novus.validation :as validation]
(ns griffin.components.datomic (:require [datomic.client.api :as d] [clojure.edn :as edn] [clojure.java.io :as io])) (defn ident-has-attr? [db ident attr] (contains? (d/pull db {:eid ident :selector '[*]}) attr)) (defn load-dataset [conn] (let [db (d/db conn) tx #(d/transact ...
45dccad0412cf0094b4b1d1dbcc132070d0f87f9381cb648effa4420d9d85075
ocharles/blog
2013-12-07-threepenny-gui.hs
import Control.Monad (void) import Control.Concurrent.STM import Data.Map (Map) import Data.Set (Set) import qualified Data.Map as Map import qualified Data.Set as Set import Graphics.UI.Threepenny.Core import qualified Graphics.UI.Threepenny as UI type Database = Map UserName ToDoList type UserName = String type ToD...
null
https://raw.githubusercontent.com/ocharles/blog/fa8e911d3c03b134eee891d187a1bb574f23a530/code/2013-12-07-threepenny-gui.hs
haskell
import Control.Monad (void) import Control.Concurrent.STM import Data.Map (Map) import Data.Set (Set) import qualified Data.Map as Map import qualified Data.Set as Set import Graphics.UI.Threepenny.Core import qualified Graphics.UI.Threepenny as UI type Database = Map UserName ToDoList type UserName = String type ToD...
11cf1bedcd26ac8ea3b9e9b67e26a6df8b27489e20d4f575771bb187b2003f48
clarle/ai-class
project.clj
(defproject unit02 "1.0.0-SNAPSHOT" :description "ai-class unit 2 algorithms in Clojure" :dependencies [[org.clojure/clojure "1.2.1"] [org.clojure/clojure-contrib "1.2.0"] [incanter "1.2.4"]] :dev-dependencies [[lein-marginalia "0...
null
https://raw.githubusercontent.com/clarle/ai-class/44ca6d34380942600fb3a61a09e6a2dc4a4841c1/unit02/clojure/unit02/project.clj
clojure
(defproject unit02 "1.0.0-SNAPSHOT" :description "ai-class unit 2 algorithms in Clojure" :dependencies [[org.clojure/clojure "1.2.1"] [org.clojure/clojure-contrib "1.2.0"] [incanter "1.2.4"]] :dev-dependencies [[lein-marginalia "0...
37993af6f34a2ffb9e20462f0d64c9b6a97f0085ea53ea688fe322af47e658c7
appleshan/cl-http
sysdcl.lisp
-*- Syntax : Ansi - Common - Lisp ; Base : 10 ; Mode : lisp ; Package : common - lisp - user -*- ;;; Copyright 1994 - 99 , 2005 , . ;;; All rights reserved. ;;;------------------------------------------------------------------- ;;; SYSTEM DEFINITION FOR MCL CL - HTTP ;;; ;; If you want to just start up the se...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/mcl/server/sysdcl.lisp
lisp
Base : 10 ; Mode : lisp ; Package : common - lisp - user -*- All rights reserved. ------------------------------------------------------------------- If you want to just start up the server using the standard demo configuration, you should load http:mcl;start-server.lisp instead. If you load this file and eval...
Copyright 1994 - 99 , 2005 , . SYSTEM DEFINITION FOR MCL CL - HTTP (in-package :cl-user) #+ccl-3 (when (fboundp 'ccl::process-poll) (pushnew :process-poll *features*)) Check whether to run the native Open Transport interface #+ppc-target (when (probe-file "ccl:library;OpenTransport.lisp") (pushnew :o...
aad32582e70d993c1aa0be988569aef564108e02ae1628bed0b220a7ba14a75a
dyzsr/ocaml-selectml
t165-apply.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let f _ _ _ _ = 0 in f 0 0 0 0;; * 0 CONSTINT 42 ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t165-apply.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let f _ _ _ _ = 0 in f 0 0 0 0;; * 0 CONSTINT 42 ...
647a9abcfe117a74f553b7783ff7fef471fcae7f45f8d55cd7df9eb3aa510ba3
fare/xcvb
helpers.lisp
#+xcvb (module (:depends-on ("package"))) (in-package #:xcvb-test) (declaim (optimize (debug 3) (safety 3))) (defun rm-rfv (x) (let* ((p (pathname x)) (d (pathname-directory p)) (n (namestring p))) (assert (not (wild-pathname-p p))) (assert (consp d)) (assert (eq :absolute (first d)))...
null
https://raw.githubusercontent.com/fare/xcvb/460e27bd4cbd4db5e7ddf5b22c2ee455df445258/t/helpers.lisp
lisp
#+xcvb (module (:depends-on ("package"))) (in-package #:xcvb-test) (declaim (optimize (debug 3) (safety 3))) (defun rm-rfv (x) (let* ((p (pathname x)) (d (pathname-directory p)) (n (namestring p))) (assert (not (wild-pathname-p p))) (assert (consp d)) (assert (eq :absolute (first d)))...
0b2e414434d1a28ffd4e2871900743bf09c75f67ec03a9892cfcb931d8c28990
nunchaku-inria/nunchaku
nunchaku.ml
* { 1 Main program } open Nunchaku_core module E = CCResult module A = UntypedAST module TI = TermInner module Backends = Nunchaku_backends module Tr = Nunchaku_transformations type input = | I_guess | I_nunchaku | I_tptp | I_tip let inputs_ = [ "nunchaku", I_nunchaku ; "tptp", I_tptp ; "tip", I_tip ...
null
https://raw.githubusercontent.com/nunchaku-inria/nunchaku/16f33db3f5e92beecfb679a13329063b194f753d/src/main/nunchaku.ml
ocaml
TODO: tip output? NOTE: also modify list_solvers_ below if you modify this solver string specification parse list of prelude files type inference conversion to FO build a pipeline, depending on options setup pipeline solvers Tr.Skolem.pipe ~skolems_in_model:!skolems_in_model_ ~print:(...
* { 1 Main program } open Nunchaku_core module E = CCResult module A = UntypedAST module TI = TermInner module Backends = Nunchaku_backends module Tr = Nunchaku_transformations type input = | I_guess | I_nunchaku | I_tptp | I_tip let inputs_ = [ "nunchaku", I_nunchaku ; "tptp", I_tptp ; "tip", I_tip ...
1892a09c79dd9dad491a1e268aca944f77f1cb2a4e3d9f8dd2ffc4bff817112f
dwayne/eopl3
exb.5.test.rkt
#lang racket (require "./exb.5.interpreter.rkt") (require rackunit) (check-eq? (interpret "-1") -1) (check-eq? (interpret "-x") -5) (check-eq? (interpret "-(x+y)") -15) (check-eq? (interpret "-x--y+z") 20)
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/appendix-b/exb.5.test.rkt
racket
#lang racket (require "./exb.5.interpreter.rkt") (require rackunit) (check-eq? (interpret "-1") -1) (check-eq? (interpret "-x") -5) (check-eq? (interpret "-(x+y)") -15) (check-eq? (interpret "-x--y+z") 20)
68ea77d7b99c071fddc8b4ff2bdcc7f3cc5b6a4e0765eab614d6df9d8bc9e105
mpickering/eventlog2html
Data.hs
{-# LANGUAGE OverloadedStrings #-} module Eventlog.Data (generateJson, generateJsonValidate, generateJsonData ) where import Prelude hiding (readFile) import Data.Aeson (Value(..), (.=), object) import qualified Data.Map as Map import Eventlog.Args (Args(..)) import Eventlog.Bands (bands) import qualified Eventlog.Ev...
null
https://raw.githubusercontent.com/mpickering/eventlog2html/a18ec810328c71122ccc630fccfcea5b48c0e937/src/Eventlog/Data.hs
haskell
# LANGUAGE OverloadedStrings # Only supply the cost centre view in cost centre profiling mode.
module Eventlog.Data (generateJson, generateJsonValidate, generateJsonData ) where import Prelude hiding (readFile) import Data.Aeson (Value(..), (.=), object) import qualified Data.Map as Map import Eventlog.Args (Args(..)) import Eventlog.Bands (bands) import qualified Eventlog.Events as E import qualified Eventlog...
e8451c31578bd9d9464225fdaa7925d216cdda772935af2353690e7e5543cfda
artyom-poptsov/guile-dsv
dsv.scm
dsv.scm -- DSV parser . Copyright ( C ) 2013 , 2014 < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your option) any later version. ...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-dsv/ece5701906a900a42ab184b03c8c9e9110b7caa3/modules/dsv.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ...
dsv.scm -- DSV parser . Copyright ( C ) 2013 , 2014 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License Procedures for working with delimiter - ...
6d53803329bcb9eee80aab1e5e3eb1238d1ce06d487c7b3efe1fd9c0a082e61c
mfoemmel/erlang-otp
wxAuiPaneInfo.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/wxAuiPaneInfo.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(wxAuiPaneInfo). -include("wxe.hrl...
25e87dd98975b30a5f76ed99439eac111ae402f185e67696ee7acbc84ae42f5c
fortytools/holumbus
Console.hs
-- ---------------------------------------------------------------------------- | Module : Holumbus . Console . Console Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 This module pro...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/distribution/source/Holumbus/Console/Console.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- * Console datatype * Operations ---------------------------------------------------------------------------- datatypes ----------------------------------------...
| Module : Holumbus . Console . Console Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 This module provides a tiny and nice implementation of a little command shell . It can be f...
bf39de71cab4b76bfff82628b2e21ddaac70288937106488983c3dc857548e98
bbarker/timekeeping-template
hledger-time-report.hs
#!/usr/bin/env stack stack script --nix --resolver lts-15.12 --nix - packages pcre --no - nix - pure --package conduit --package containers --package csv - conduit --package non - empty - text --package optparse - generic --package pcre - heavy --package safe --package text ...
null
https://raw.githubusercontent.com/bbarker/timekeeping-template/fb0969374be8495ef1a0bca22bf1180839aeb8f2/hledger-time-report.hs
haskell
nix --resolver lts-15.12 nix - packages pcre no - nix - pure package conduit package containers package csv - conduit package non - empty - text package optparse - generic package pcre - heavy package safe package text package time package transformers package turtle package unexceptionalio - trans extra...
#!/usr/bin/env stack -} # LANGUAGE GeneralizedNewtypeDeriving # for pcre - heavy module Main where import Prelude hiding (error) import Conduit import Control.Monad (forM) import Control.Monad.Trans.Except (ExceptT(..), except, runExceptT) import Data.Bifun...
879bc5c7a69cb0d260b07b3b858361d911f9749e15102d20642eeb86759724f8
thelema/ocaml-community
pr5757.ml
Random.init 3;; for i = 0 to 100_000 do ignore (String.create (Random.int 1_000_000)) done;; Printf.printf "hello world\n";;
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/testsuite/tests/regression/pr5757/pr5757.ml
ocaml
Random.init 3;; for i = 0 to 100_000 do ignore (String.create (Random.int 1_000_000)) done;; Printf.printf "hello world\n";;
a54a93ccfc717bd2b2456dc8518775cefdb8dff346fe29d91a1e49032633d4ed
kmi/irs
service-spec.lisp
Mode : Lisp ; Package : The Open University (in-package "OCML") (in-ontology exchange-rate-provider-ontology) (def-class exchange-rate-provision (goal-specification-task)?task ((has-input-role :value has-source-currency :value has-target-currency ) (has-output-role...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/publisher/services/soap-ex-rate/service-spec.lisp
lisp
Package : this is the ontology name this is the task name
The Open University (in-package "OCML") (in-ontology exchange-rate-provider-ontology) (def-class exchange-rate-provision (goal-specification-task)?task ((has-input-role :value has-source-currency :value has-target-currency ) (has-output-role :value has-exchange-rate) ...
8d4c03031d3d800dbd82a5111bed8eaca970f2b92e14b4c6acb4ea48c485ba6e
nikita-volkov/rerebase
Types.hs
module GHC.IO.Handle.Types ( module Rebase.GHC.IO.Handle.Types ) where import Rebase.GHC.IO.Handle.Types
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/GHC/IO/Handle/Types.hs
haskell
module GHC.IO.Handle.Types ( module Rebase.GHC.IO.Handle.Types ) where import Rebase.GHC.IO.Handle.Types
ca7105f04ce341b31d208ad58a5606e434b4f0193a93595cfeb6282ff0c4b322
onedata/op-worker
transfer_links.erl
%%%------------------------------------------------------------------- @author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%%-------------------------------------------------------------------- %%% @doc %%% Util functions for operating on transfer l...
null
https://raw.githubusercontent.com/onedata/op-worker/5cb17b2fbb812138b6c2750d0257a91ec9d97c6c/src/modules/transfer/transfer_links.erl
erlang
------------------------------------------------------------------- -------------------------------------------------------------------- @doc Util functions for operating on transfer links trees. @end ------------------------------------------------------------------- API link utils functions =====================...
@author ( C ) 2018 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(transfer_links). -author("Jakub Kudzia"). -include("modules/datastore/datastore_models.hrl"). -include("modules/datastore/datastore_runner.hrl"). -include("modules/datastore/transfer.hrl")....
97664cfa8a91f700922ed6065fc73b526484207bd6c9fc710135f9f4381e6933
bsaleil/lc
conform.scm.scm
;;------------------------------------------------------------------------------ Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultbak/m5rponly/conform.scm.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Gabriel benchmarks C benchmarks Other benchmarks Functional and unstable SET O...
Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst) `(vector ,@lst)) (def-macro (FLOATmake-vector n . init) `(make-vector ,...
e30827e696755fc2f11ad3fc9a3980081ec1148cec46b238f6451eb0b6b8438c
Leofltt/Kairos
FlashCrash.hs
FLASHCRASH - June 4 2022 -- @leofltt -- setup model:cycles addI "mck" $ models csd1 1 addI "mcs" $ models csd1 2 addI "mcp" $ models csd1 3 addI "mcc" $ models csd1 4 addI "mct" $ models csd1 5 addI "mcb" $ models csd1 6 -- a comfy bpm cT 131 s ( 2 ) pats : s1 , s2 , s3 , s4 pitch "mcs" (toPfs [60, 65, 61...
null
https://raw.githubusercontent.com/Leofltt/Kairos/0ffaba6f043b5774626a26f924256857de533d4b/Performances/FlashCrash.hs
haskell
@leofltt setup model:cycles a comfy bpm pats: b1
FLASHCRASH - June 4 2022 addI "mck" $ models csd1 1 addI "mcs" $ models csd1 2 addI "mcp" $ models csd1 3 addI "mcc" $ models csd1 4 addI "mct" $ models csd1 5 addI "mcb" $ models csd1 6 cT 131 s ( 2 ) pats : s1 , s2 , s3 , s4 pitch "mcs" (toPfs [60, 65, 61, 59]) nv addC "mcs" "s3" =<< patternWithDensity...
82ba2f603710e6aebc21faa9d54c91e2578f991de236a8e8c833ebc59741ef35
robert-strandh/Second-Climacs
command-table.lisp
(cl:in-package #:second-climacs-clim-view-fundamental) (clim:define-command-table fundamental-table :inherit-from (clim-base:global-table clim-base:ascii-insert-table clim-base:delete-table clim-base:motion-table))
null
https://raw.githubusercontent.com/robert-strandh/Second-Climacs/e49ff97abb07a76a05f7a4467b0e79168cfce057/Code/GUI/McCLIM-ESA/View/Fundamental/command-table.lisp
lisp
(cl:in-package #:second-climacs-clim-view-fundamental) (clim:define-command-table fundamental-table :inherit-from (clim-base:global-table clim-base:ascii-insert-table clim-base:delete-table clim-base:motion-table))
a4ca97bf96a90bd763812e6c3bc643caa7e3fb5ad8ae0dc6bc6e3c78bb30f506
jdan/ocaml-web-framework
template_test.ml
open Template let go () = assert ("<div>Hello, world!</div>" = div ["Hello, world!"]); assert ("<div>Hello, <strong>world!</strong></div>" = div [ "Hello, " ; strong ["world!"] ; ]); assert ("<h1 id=\"title\" class=\"huge\">Title</h1>" = h1 ~attr...
null
https://raw.githubusercontent.com/jdan/ocaml-web-framework/bfa2f240a9aecc4edbf02ab87a73cfd20da482a4/test/template_test.ml
ocaml
open Template let go () = assert ("<div>Hello, world!</div>" = div ["Hello, world!"]); assert ("<div>Hello, <strong>world!</strong></div>" = div [ "Hello, " ; strong ["world!"] ; ]); assert ("<h1 id=\"title\" class=\"huge\">Title</h1>" = h1 ~attr...
8ef486eed1e30a2ac1ef18204c2b7746f9801dad9aacc4cfb263a7f6aae07580
tweag/funflow2
Lib.hs
-- Any extra library functions, etc. can go here. module Lib where
null
https://raw.githubusercontent.com/tweag/funflow2/642cbb6a1eb3c03b31fe32d22886e4eba4b877cc/cookiecutter-funflow/%7B%7Bcookiecutter.project_name%7D%7D/src/Lib.hs
haskell
Any extra library functions, etc. can go here.
module Lib where
906cc74a1fbca62f4c911bb8f99904da75640d0ad932e527e998f20ce9cee75b
rhaberkorn/ermacs
edit_extended.erl
-module(edit_extended). -include("edit.hrl"). -compile(export_all). -compile({parse_transform, edit_transform}). extended_command(State, Mod, Func, Args) -> {Params, _Doc} = find_cmd_info(Mod, Func), NewState = execute(State, Mod, Func, Args, Params), NewState#state{lastcmd={Mod, Func, Args}}. execute(S...
null
https://raw.githubusercontent.com/rhaberkorn/ermacs/35c8f9b83ae85e25c646882be6ea6d340a88b05b/src/edit_extended.erl
erlang
last argument, we're done! disable minibuffer reselect the window that the command is being done in Callbacks from key bindings M-x History FIXME: This function fails when it tries to activate the minibuffer to search regexp, but the minibuffer is already active.
-module(edit_extended). -include("edit.hrl"). -compile(export_all). -compile({parse_transform, edit_transform}). extended_command(State, Mod, Func, Args) -> {Params, _Doc} = find_cmd_info(Mod, Func), NewState = execute(State, Mod, Func, Args, Params), NewState#state{lastcmd={Mod, Func, Args}}. execute(S...
0af1b74d55a02dc80c741043a593466199f47b210d18e7d47345a84ca062e46d
pfdietz/ansi-test
array-in-bounds-p.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jan 21 19:57:29 2003 ;;;; Contains: Tests for ARRAY-IN-BOUNDS-P (deftest array-in-bounds-p.1 (array-in-bounds-p #() 0) nil) (deftest array-in-bounds-p.2 (array-in-bounds-p #() -1) nil) (deftest array-in-bounds-p.3 (let ((a #(a b c d))) (loop f...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/arrays/array-in-bounds-p.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for ARRAY-IN-BOUNDS-P Fill pointer tests Displaced arrays Multidimensional arrays Very large indices Order of evaluation tests Error tests
Author : Created : Tue Jan 21 19:57:29 2003 (deftest array-in-bounds-p.1 (array-in-bounds-p #() 0) nil) (deftest array-in-bounds-p.2 (array-in-bounds-p #() -1) nil) (deftest array-in-bounds-p.3 (let ((a #(a b c d))) (loop for i from 0 to 4 collect (notnot (array-in-bounds-p a i)))) (t t ...
7dab0b317d05d7cacf368d065cc7964f6c972fa1036c93b02767b2f719f6bb89
viercc/coercible-subtypes
Union.hs
# LANGUAGE ScopedTypeVariables # {-# LANGUAGE RankNTypes #-} # LANGUAGE ExistentialQuantification # module Newtype.Union( module Data.Type.Coercion.Related, IsUnion(..), withUnion, unique, greater, idemp, commutative, associative ) where import Prelude hiding (id, (.)) import Control.Category import Data.T...
null
https://raw.githubusercontent.com/viercc/coercible-subtypes/761f1f0df06860abe0fd1442d7d255e241ce98fe/src/Newtype/Union.hs
haskell
# LANGUAGE RankNTypes # | @IsUnion x y z@ witnesses the fact: * All @x, y, z@ share the same runtime representation * @'Sub' x z@ * @Sub y z@ * For any type @r@ satisfying both of @(Sub x r, Sub y r)@, @Sub z r@. ^ @x@ can be safely coerced to @z@ ^ @y@ can be safely coerced to @z@ ^ Given both ...
# LANGUAGE ScopedTypeVariables # # LANGUAGE ExistentialQuantification # module Newtype.Union( module Data.Type.Coercion.Related, IsUnion(..), withUnion, unique, greater, idemp, commutative, associative ) where import Prelude hiding (id, (.)) import Control.Category import Data.Type.Coercion.Sub (sub, equiv...
9c453a6f648d32303aba2134b6918a811c52dece3927037783d6792e66bf1295
donaldsonjw/bigloo
evaluate.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Eval / evaluate.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : Fri Jul 2 10:01:28 2010 ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/runtime/Eval/evaluate.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / runtime / Eval / evaluate.scm * / * Author : * / * Creation : Fri Jul 2 10:01:28 2010 * / * Last change : We d Nov 19 13:25:11 2014 ( serrano ) * / * Copyright : 2010 - 14 ...
b3eac431146b726229e1ec31b61629d34edb52e5f9ad6a012bdacce7dcb7246a
vindarel/cl-torrents-web
torrents-reblocks.lisp
(defpackage torrents-reblocks (:use #:cl #:torrents ;; local project #:weblocks-ui/form #:weblocks/html) (:import-from #:weblocks/app #:defapp) (:import-from #:weblocks/widget #:get-html-tag #:render #:update #...
null
https://raw.githubusercontent.com/vindarel/cl-torrents-web/c35e93ec658aa69aadf4df70f33e31f37c609f06/src/torrents-reblocks.lisp
lisp
local project See also Quickutil to import only the utility we need. xxx the magnet should be in a "torrent" object, not alist. useless for others, unhandled errors (we might want to do the same).
(defpackage torrents-reblocks (:use #:cl #:weblocks-ui/form #:weblocks/html) (:import-from #:weblocks/app #:defapp) (:import-from #:weblocks/widget #:get-html-tag #:render #:update #:defwidget) (:import-from #:webloc...