_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
c8be2321be0c0b1786f904eaee71d96c69e97392a909681996d003e8d7b18225
Z572/gwwm
buffer.scm
(define-module (gwwm buffer) #:use-module (system foreign-object) #:use-module (cairo) #:use-module (oop goops) #:export (cairo-buffer-create cairo-buffer-base cairo-buffer-cairo .cairo)) ;; (use-modules (gwwm buffer) ;; (oop goops describe) ( cl...
null
https://raw.githubusercontent.com/Z572/gwwm/a8c9fc212bf7d436627c2196af1be8251e383060/gwwm/buffer.scm
scheme
(use-modules (gwwm buffer) (oop goops describe) (wlroots types scene)) (spawn "emacs" '("emacs")) (wlr-scene-buffer-create (client-scene (car (client-list))) #:accessor .data
(define-module (gwwm buffer) #:use-module (system foreign-object) #:use-module (cairo) #:use-module (oop goops) #:export (cairo-buffer-create cairo-buffer-base cairo-buffer-cairo .cairo)) ( client ) ( cairo ) ( define buf ( cairo - buffer - c...
1c1608d15d361d32f14bdf3007e21ecc8ac849a10acc2ac0f28bc2849f7191c4
noinia/hgeometry
Chan.hs
module Geometry.Algorithms.RedBlueLineSegmentIntersection where import qualified Data.Foldable as F import Data.Monoid using ` ` A Simple Trapezoid Sweep Algorithm for Reporting Red / Blue Segment Intersections ( 1994 ) '' by -----------------------------------------------------------------------...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/src/Algorithms/Geometry/RedBlueLineSegmentIntersection/Chan.hs
haskell
------------------------------------------------------------------------------ | Size balanced trees, similar to Data.Set, but with the function on which we order stored explicitly. Balancing weight-balanced trees -------------------------------------- | Get the compare function ----------------------------------...
module Geometry.Algorithms.RedBlueLineSegmentIntersection where import qualified Data.Foldable as F import Data.Monoid using ` ` A Simple Trapezoid Sweep Algorithm for Reporting Red / Blue Segment Intersections ( 1994 ) '' by type Size = Int YOICHI HIRAI The University of Tokyo , JSPS Resea...
e3c127a17aa6f156c58b3a77a1764ec8b92bb3e1c4dc8cf406db7e9437a71066
lamdu/lamdu
Codec.hs
module Tests.Codec (test) where import qualified Control.Lens as Lens import qualified Data.Aeson as Aeson import qualified Data.Aeson.Diff as AesonDiff import qualified Data.Aeson.Encode.Pretty as AesonPretty import qualified Data.ByteString.Lazy as LBS import qualified Data.ByteString.Lazy.Char8 as LBSChar import ...
null
https://raw.githubusercontent.com/lamdu/lamdu/2dba7d7ce3e5c8456e1b647326290d9aedaf6d9e/test/Tests/Codec.hs
haskell
module Tests.Codec (test) where import qualified Control.Lens as Lens import qualified Data.Aeson as Aeson import qualified Data.Aeson.Diff as AesonDiff import qualified Data.Aeson.Encode.Pretty as AesonPretty import qualified Data.ByteString.Lazy as LBS import qualified Data.ByteString.Lazy.Char8 as LBSChar import ...
6190780d2fc3fb07215c0c615fdccbbe84e8364216fdd73070dea7cfaa5fc535
lwhjp/rince
run-c.rkt
#lang racket/base (require racket/cmdline raco/command-name rince/compile rince/libc rince/link) (define source-file (command-line #:program (short-program+command-name) #:args (source-file) source-file)) (define go (link/executable (list (compile (string->path sour...
null
https://raw.githubusercontent.com/lwhjp/rince/61664bfee27a53d18fcb9880e1202eb5cc8f4a5f/commands/run-c.rkt
racket
#lang racket/base (require racket/cmdline raco/command-name rince/compile rince/libc rince/link) (define source-file (command-line #:program (short-program+command-name) #:args (source-file) source-file)) (define go (link/executable (list (compile (string->path sour...
866ba2739c518e2f9b1bf1fc51df62f988ef6d22bdd73f6d72c3dd3fbccba928
sbcl/sbcl
arm64-simd.lisp
This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provided with absolutely no wa...
null
https://raw.githubusercontent.com/sbcl/sbcl/cd72be375dc2ef70638dfae6f72456ca7370740d/src/code/arm64-simd.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Basically like the x86 with-pinned-object, but here only the boxed registers are pinned. This doesn't prevent the var from going to the stack...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-VM") #+sb-unicode (assert (= base-char-code-limit 128)) (eval-when (:compile-toplevel :load-toplevel :execut...
9b82315bf4bef8b102962088b8edc19664dfe27be2dae2603965c868efac10ab
reborg/clojure-essential-reference
8.clj
< 1 > v1 (into [] (take 2) itr) v2 (into [] (comp (drop 2) (take 2)) itr)] (into v1 v2)) ;; eval 0 eval 1 eval 2 eval 3 ;; [0 1 2 3] < 2 > v1 (into [] (take 2) itr) v2 (into [] (comp (drop 2) (take 2)) itr)] (into v1 v2)) ;; eval 0 ;; eval 0 eval 1 eval 2 ;; [0 1 2 3]
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialGeneration/AbstractGenerators/iterate/8.clj
clojure
eval 0 [0 1 2 3] eval 0 eval 0 [0 1 2 3]
< 1 > v1 (into [] (take 2) itr) v2 (into [] (comp (drop 2) (take 2)) itr)] (into v1 v2)) eval 1 eval 2 eval 3 < 2 > v1 (into [] (take 2) itr) v2 (into [] (comp (drop 2) (take 2)) itr)] (into v1 v2)) eval 1 eval 2
13442e360027470b5fb8ec25f483d925e1bd29d6cad507950295a3f1f81f78a7
russ/openpoker
server.erl
Copyright ( C ) 2005 - 2008 Wager Labs , SA %%%% %%%% THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ( " CCPL " OR " LICENSE " ) . THE WORK IS %%%% PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF %%%% THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICE...
null
https://raw.githubusercontent.com/russ/openpoker/62edd72a35b9ef52f55da9303cf1e06142e95895/src/server.erl
erlang
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERM...
Copyright ( C ) 2005 - 2008 Wager Labs , SA CREATIVE COMMONS PUBLIC LICENSE ( " CCPL " OR " LICENSE " ) . THE WORK IS -nc-sa/3.0/us/ -module(server). -behaviour(gen_server). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([start/1, start/2, start/3,...
52582edffea9101da9e371cff4b175768d6b50c81d58c29d693f6463c4de5caf
tfausak/evoke
Hsc.hs
module Evoke.Hsc ( addWarning, throwError, ) where import qualified Control.Monad.IO.Class as IO import qualified GHC as Ghc import qualified GHC.Data.Bag as Ghc import qualified GHC.Driver.Errors as Ghc import qualified GHC.Plugins as Ghc import qualified GHC.Utils.Error as Ghc -- | Adds a warning, which onl...
null
https://raw.githubusercontent.com/tfausak/evoke/0d9bd6114e091417caa40dc13b743507b7d7fd36/source/library/Evoke/Hsc.hs
haskell
| Adds a warning, which only causes compilation to fail if @-Werror@ is enabled. | Throws an error, which will cause compilation to fail.
module Evoke.Hsc ( addWarning, throwError, ) where import qualified Control.Monad.IO.Class as IO import qualified GHC as Ghc import qualified GHC.Data.Bag as Ghc import qualified GHC.Driver.Errors as Ghc import qualified GHC.Plugins as Ghc import qualified GHC.Utils.Error as Ghc addWarning :: Ghc.SrcSpan -> G...
e8109f249fc3778c509e3dd68aa1d66cda1ba5924dcd5de22ccd5e51974285a6
achirkin/vulkan
VK_KHR_16bit_storage.hs
# OPTIONS_GHC -fno - warn - missing - pattern - synonym - signatures # # OPTIONS_HADDOCK not - home # {-# LANGUAGE DataKinds #-} {-# LANGUAGE MagicHash #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE Strict #-} {-# LANGUAGE ViewPatterns #-} module Graphics.Vulkan.Ext.VK_KHR_16bit_storage * Vulka...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_KHR_16bit_storage.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE Strict # # LANGUAGE ViewPatterns # | supported: @vulkan@ author: @KHR@ type: @device@ Extension number: @84@ Required extensions: 'VK_KHR_get_physical_device_properties2', 'VK_KHR_storage_buffer_storage_class'. ** Required ex...
# OPTIONS_GHC -fno - warn - missing - pattern - synonym - signatures # # OPTIONS_HADDOCK not - home # # LANGUAGE PatternSynonyms # module Graphics.Vulkan.Ext.VK_KHR_16bit_storage * Vulkan extension : @VK_KHR_16bit_storage@ contact : @Jan - VkPhysicalDevice16BitStorageFeaturesKHR, VK_KHR_16BIT_...
da84f6c37489011789ad5362e82d4354279e786c2fb310889078bc0cff4dbdf7
soegaard/sci
expm.rkt
#lang racket/base (provide expm) ;;; Matrix Exponential ;;; This module implements ` expm ` the so - called matrix exponential . ; The standard exponential function `exp` can be written as as an infinite sum ( the series of exp ) . ; x x^2 x^3 ; exp(x) = 1 + -- + --- + --- + ... ...
null
https://raw.githubusercontent.com/soegaard/sci/f6f7ddb56754775a773c54db47efb1e11c5bc3b0/flomat/expm.rkt
racket
The standard exponential function `exp` can be written as x x^2 x^3 exp(x) = 1 + -- + --- + --- + ... The matrix exponential expm(A) of a square matrix A is defined as the limit of: A A^2 A^3 if the limit exist (otherwise expm(A) is undefined). but the convergence is ...
#lang racket/base (provide expm) Matrix Exponential This module implements ` expm ` the so - called matrix exponential . as an infinite sum ( the series of exp ) . 1 ! 2 ! 3 ! exp(A ) = 1 + -- + --- + --- + ... 1 ! 2 ! 3 ! In principle one could use ...
f78d938e2f294097436682389cd6ce8e5204a8a83a337961211a8b965aa88ba6
RazvanRanca/GenericPretty
GenericPretty.hs
# LANGUAGE TypeOperators , FlexibleInstances , FlexibleContexts , DefaultSignatures # # LANGUAGE CPP # | GenericPretty is a library that supports automatic derivation of pretty printing functions on user defined data types . The output provided is a pretty printed version of that provided by ' Pr...
null
https://raw.githubusercontent.com/RazvanRanca/GenericPretty/e01c87fcc8e20c53416e69247c7ba6bcc9ff3e70/Text/PrettyPrint/GenericPretty.hs
haskell
It provides conversion of values to pretty printable Pretty.Doc's. Derived instances of 'Out' have the following properties expression containing only constants, given the fixity declarations in force at the point where the type is declared. It contains only the constructor names defined in the data type...
# LANGUAGE TypeOperators , FlexibleInstances , FlexibleContexts , DefaultSignatures # # LANGUAGE CPP # | GenericPretty is a library that supports automatic derivation of pretty printing functions on user defined data types . The output provided is a pretty printed version of that provided by ' Pr...
ad4cd7877b5345a3e8c9181d3c3b288c445a56f49516b6fe5066fdc1ad844f5e
haskell-works/avro
DecodeRaw.hs
module Data.Avro.Internal.DecodeRaw ( DecodeRaw(..) ) where import Data.Avro.Internal.Zag import Data.Binary.Get import Data.Bits import Data.Int import Data.List import Data.Word getNonNegative :: (Bits i, Integral i) => Get i getNonNegative = do orig <- getWord8s return $! foldl' (\a x -> (a `shiftL` 7) + f...
null
https://raw.githubusercontent.com/haskell-works/avro/aeea12b07a1c6fcc3708d1afe7209c5497665296/src/Data/Avro/Internal/DecodeRaw.hs
haskell
module Data.Avro.Internal.DecodeRaw ( DecodeRaw(..) ) where import Data.Avro.Internal.Zag import Data.Binary.Get import Data.Bits import Data.Int import Data.List import Data.Word getNonNegative :: (Bits i, Integral i) => Get i getNonNegative = do orig <- getWord8s return $! foldl' (\a x -> (a `shiftL` 7) + f...
d7ecda1c5a2988e25164ff75a155c7de10a3a5d016f2c1454c388cbac51731ec
eugeneia/erlangen
registry.lisp
;;;; Named agent registry. (in-package :erlangen.registry) (defvar *registry* (make-hash-table :lock-free t)) (defvar *registry*/lock (make-read-write-lock)) (defun register (name &optional (agent (agent))) "*Arguments and Values:* _name_—a _keyword_. _agent_—an _agent_. Default is the _calling agent_. ...
null
https://raw.githubusercontent.com/eugeneia/erlangen/204166b33833c49841617bbc6ecfaf4dd77cf6d8/registry.lisp
lisp
Named agent registry.
(in-package :erlangen.registry) (defvar *registry* (make-hash-table :lock-free t)) (defvar *registry*/lock (make-read-write-lock)) (defun register (name &optional (agent (agent))) "*Arguments and Values:* _name_—a _keyword_. _agent_—an _agent_. Default is the _calling agent_. *Description*: {regis...
76629df1c83d9994a87acb160abe5490bb122048de5010702be4faf84e2622ed
sourabhxyz/haskell-competitive-programming
at_practice2_k.hs
{-# OPTIONS_GHC -O2 #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TemplateHaskell #-} # LANGUAGE TypeFamilies # import Control.Arrow ((>>>)) import Control.Monad import Data.Bits import qualified Data.ByteString.Cha...
null
https://raw.githubusercontent.com/sourabhxyz/haskell-competitive-programming/250ff65b167a69079c90ddea8e9333294039beee/segment-trees/at_practice2_k.hs
haskell
# OPTIONS_GHC -O2 # # LANGUAGE TemplateHaskell # # INLINE left #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # import Control.Arrow ((>>>)) import Control.Monad import Data.Bits import qualified Data.ByteString.Char8 as B import Data.Char import Data...
db6970d451eb363e4e80f602ade50940398604b8e0975602faa819d10e7a71cc
stabilized/clojurescript
reducers.cljs
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/stabilized/clojurescript/f38f141525576b2a89cde190f25f9cf2fc4c418a/src/cljs/clojure/core/reducers.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 ) . All rights reserved . (ns ^{:doc "A library for reduction and parallel folding. Alpha and subject to change. Note that fold and its derivatives require jsr166y.jar for fork/join support. See Clojure's pom.xml for the dependency info." :author "Rich Hickey"} cloj...
8378d3a0a9e11e91c0114d392fb8c750919c5ab637e2ba6b87bc81dad74fa34b
input-output-hk/cardano-prelude
Orphans.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # -- | Orphan instances for external types/classes. module Cardano.Prelude.Orphans () where import Cardano.Prelude.Base import Data.Tagged (Tagged (Tagged)) import Formatting.Buildable (Buildable (....
null
https://raw.githubusercontent.com/input-output-hk/cardano-prelude/94b37483937cfb7c07d69a708c950a090bb9670f/cardano-prelude/src/Cardano/Prelude/Orphans.hs
haskell
# LANGUAGE OverloadedStrings # | Orphan instances for external types/classes. ------------------------------------------------------------------------------ Buildable ------------------------------------------------------------------------------ | This orphan instance is sometimes useful and why not have it?
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - orphans # module Cardano.Prelude.Orphans () where import Cardano.Prelude.Base import Data.Tagged (Tagged (Tagged)) import Formatting.Buildable (Buildable (..)) import qualified Formatting as F instance Buildable () where build _ = "()" ...
a914c190991fce9e21f2b2be37d7156b6458ee87b48ede9b430ee92ce308b7eb
shonfeder/alg_structs
monoid.mli
* An interface for a type with a binary , associative operator over it and a privileged [ unit ] value . A { { ! module - type : S } Monoid } is a { { ! module - type : Semigroup . S } Semigroup } enriched an identity element , called { { ! : S.unit } unit } . Some well known monoids are ...
null
https://raw.githubusercontent.com/shonfeder/alg_structs/09a57285ffae77dce2d2dd0581a0d453d31fb332/lib/monoid.mli
ocaml
* {1 Seed} * A monoid is a set of objects with an associative binary operation over it and a privileged [unit] element that acts as an identity. * [Law] notes the laws that should be obeyed by any instantiation of {{!module-type:S} Monoid} in the form of predicates that should hold true for any arguments ...
* An interface for a type with a binary , associative operator over it and a privileged [ unit ] value . A { { ! module - type : S } Monoid } is a { { ! module - type : Semigroup . S } Semigroup } enriched an identity element , called { { ! : S.unit } unit } . Some well known monoids are ...
1ac5cd2f4c2c21f9ac08bd191041d886dab9c89f038eeff9caa2a75e2cbbba35
auser/hermes
thrift_base64_transport.erl
-module(thrift_base64_transport). -behaviour(thrift_transport). %% API -export([new/1, new_transport_factory/1]). %% thrift_transport callbacks -export([write/2, read/2, flush/1, close/1]). State -record(b64_transport, {wrapped}). new(Wrapped) -> State = #b64_transport{wrapped = Wrapped}, thrift_transpor...
null
https://raw.githubusercontent.com/auser/hermes/32741eb75398ebbcbf640e2c73dfd2a54f0d1241/deps/thrift/src/thrift_base64_transport.erl
erlang
API thrift_transport callbacks base64 doesn't support reading quite yet since it would involve nasty buffering and such % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
-module(thrift_base64_transport). -behaviour(thrift_transport). -export([new/1, new_transport_factory/1]). -export([write/2, read/2, flush/1, close/1]). State -record(b64_transport, {wrapped}). new(Wrapped) -> State = #b64_transport{wrapped = Wrapped}, thrift_transport:new(?MODULE, State). write(#b64_t...
150336d656068378049c5d7e865101e6aa25f0fc211304e00e75d67892acd282
cyverse-archive/DiscoveryEnvironmentBackend
stat.clj
(ns donkey.services.filesystem.stat (:use [clojure-commons.validators] [clj-jargon.init :only [with-jargon]] [clj-jargon.item-info :only [exists? is-dir? stat]] [clj-jargon.item-ops :only [input-stream]] [clj-jargon.metadata :only [get-attribute]] [clj-jargon.permissions :only ...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/Donkey/src/donkey/services/filesystem/stat.clj
clojure
(ns donkey.services.filesystem.stat (:use [clojure-commons.validators] [clj-jargon.init :only [with-jargon]] [clj-jargon.item-info :only [exists? is-dir? stat]] [clj-jargon.item-ops :only [input-stream]] [clj-jargon.metadata :only [get-attribute]] [clj-jargon.permissions :only ...
b83c038cd1665ce626d8434e718d113687aba3cab1b5344647b9c520d27032e7
protojure/lib
user.clj
Copyright © 2019 State Street Bank and Trust Company . All rights reserved Copyright © 2019 - 2022 Manetu , Inc. All rights reserved ;; SPDX - License - Identifier : Apache-2.0 (ns user (:require [clojure.tools.namespace.repl :refer [refresh]] [eftest.runner :refer [find-tests run-tests]])) ...
null
https://raw.githubusercontent.com/protojure/lib/5b0b986d55455739ed18842557fbec9d6fd3ead5/test/dev-resources/user.clj
clojure
to see output, use (run-tests ... {:capture-output? false})
Copyright © 2019 State Street Bank and Trust Company . All rights reserved Copyright © 2019 - 2022 Manetu , Inc. All rights reserved SPDX - License - Identifier : Apache-2.0 (ns user (:require [clojure.tools.namespace.repl :refer [refresh]] [eftest.runner :refer [find-tests run-tests]])) to ...
440351527df840776aaf0eaa7fbbbcd3a10be65d639ceb7a57fb805b9f5d6913
gyanaggarwal/erlang_crdt
ec_data_manager_api.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright ( c ) 2016 . All Rights Reserved . %% This file is provided ...
null
https://raw.githubusercontent.com/gyanaggarwal/erlang_crdt/e3f025027a177dfde08214dd2e57e10da52f340a/src/ec_data_manager_api.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at ...
Copyright ( c ) 2016 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software di...
d08388e89788d56f181bc6dcbe1022537fdd182c33d6ca5e907a5caabd6d1194
spechub/Hets
Helper.hs
| Module : ./HolLight / Helper.hs Description : Helper functions for dealing with terms ( mainly for pretty printing which is directly adapted from ) Copyright : ( c ) , DFKI GmbH 2010 License : GPLv2 or higher , see LICENSE.txt Maintainer : ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/HolLight/Helper.hs
haskell
exactly one of these is not Nothing doesn't happen lib.ml fusion.ml basics.ml printer.ml printer.ml - pp_print_term
| Module : ./HolLight / Helper.hs Description : Helper functions for dealing with terms ( mainly for pretty printing which is directly adapted from ) Copyright : ( c ) , DFKI GmbH 2010 License : GPLv2 or higher , see LICENSE.txt Maintainer : ...
5bff45cdb85e486993762a5b90c46b17c8922705f168e593c8d11ef17dc16ef4
ninenines/asciideck
asciideck.erl
Copyright ( c ) 2016 - 2018 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISC...
null
https://raw.githubusercontent.com/ninenines/asciideck/e9a597168760eca6cedbe4a5726b1f90b7a6d21b/src/asciideck.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2016 - 2018 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(asciideck). -export([parse_stdin/0]). -expor...
bd0e7cad5a9ba63f8b5516ed89084b945b0c1911317bbe949528a8761b376dce
input-output-hk/ouroboros-network
Rekeying.hs
# LANGUAGE ExistentialQuantification # # LANGUAGE LambdaCase # {-# LANGUAGE NamedFieldPuns #-} module Test.ThreadNet.Rekeying ( Rekeying (..) , fromRekeyingToRekeyM ) where import Data.Functor ((<&>)) import Ouroboros.Consensus.Block import Ouroboros.C...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/c82309f403e99d916a76bb4d96d6812fb0a9db81/ouroboros-consensus-test/src/Test/ThreadNet/Rekeying.hs
haskell
# LANGUAGE NamedFieldPuns # | Functionality used by test node in order to update its operational key This is the conceptual interface demanded from the test-specific logic. It is used to define 'tnaRekeyM', which the test infrastructure invokes per the node cannot lead. and diffused (eg no @PBftExceed...
# LANGUAGE ExistentialQuantification # # LANGUAGE LambdaCase # module Test.ThreadNet.Rekeying ( Rekeying (..) , fromRekeyingToRekeyM ) where import Data.Functor ((<&>)) import Ouroboros.Consensus.Block import Ouroboros.Consensus.Node.ProtocolInfo import ...
2d8b1ec1e0bb337e2df7ea192f56a8034d2fbc9980a814667b09311d8692f6b2
kit-ty-kate/opam-grep
main.mli
SPDX - License - Identifier : MIT TODO : Replace by ( executables_implicit_empty_intf true ) when upgrading to dune 3.0 . See
null
https://raw.githubusercontent.com/kit-ty-kate/opam-grep/aa23a3be8bcc1059cd2c0f1a98e12debcbcf2ca9/src/main.mli
ocaml
SPDX - License - Identifier : MIT TODO : Replace by ( executables_implicit_empty_intf true ) when upgrading to dune 3.0 . See
64948f47d12da4c4a62f0cae8e14761b16f8d98d21e2a6a90c4e8bc1cf82c6d7
agda/agda
List2.hs
# LANGUAGE TemplateHaskell # module Internal.Utils.List2 ( tests ) where import Data.Maybe import Agda.Utils.List (uncons) import Agda.Utils.List1 (List1) import Agda.Utils.List2 as List2 import Internal.Helpers instance Arbitrary a => Arbitrary (List2 a) where arbitrary = List2 <$> arbitrary <*> arbitrary <*> ...
null
https://raw.githubusercontent.com/agda/agda/42e7b7e2e0a3c6c8e60b9b7670179fd962d2cbfe/test/Internal/Utils/List2.hs
haskell
drop x drop y drop from ys ---------------------------------------------------------------------- * Properties ---------------------------------------------------------------------- ---------------------------------------------------------------------- * All tests --------------------------------------------------...
# LANGUAGE TemplateHaskell # module Internal.Utils.List2 ( tests ) where import Data.Maybe import Agda.Utils.List (uncons) import Agda.Utils.List1 (List1) import Agda.Utils.List2 as List2 import Internal.Helpers instance Arbitrary a => Arbitrary (List2 a) where arbitrary = List2 <$> arbitrary <*> arbitrary <*> ...
962a67b952b8cc61f8c989249f8fafb1b551b3a167694be6718d9222ff0769c9
ocsigen/ocaml-eliom
btype.ml
(**************************************************************************) (* *) (* OCaml *) (* *) and ,...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/typing/btype.ml
ocaml
************************************************************************ OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Asttypes open Types module TypeSet = Set.Make(TypeOps) module TypeMap = Map.Make (TypeOps) module Typ...
4ba41bfd8a7e77602f7b3bb14f117811035557a51231d1a989847c1462607e58
arclanguage/Clamp
sort.lisp
Utilities for specific kinds of sorting . (in-package :clamp) (use-syntax :clamp) (def compare (comparer scorer) "Returns a procedure which compares its arguments score from SCORER using COMPARER. Generally should use the :key argument to other procedures instead of using compare." (fn (x y) (call compare...
null
https://raw.githubusercontent.com/arclanguage/Clamp/9f165b057a109564cd0e836cf611d1e81e43cb12/src/sort.lisp
lisp
It should be easy to modify best so that it works on all sequences as well as lists.
Utilities for specific kinds of sorting . (in-package :clamp) (use-syntax :clamp) (def compare (comparer scorer) "Returns a procedure which compares its arguments score from SCORER using COMPARER. Generally should use the :key argument to other procedures instead of using compare." (fn (x y) (call compare...
d89895372123c12ba01dba9226008459a6ca103b0dd21969d58e387b079ed704
evturn/haskellbook
28.09-text.hs
module Main where import Control.Monad import qualified Data.Text as T import qualified Data.Text.IO as TIO import qualified Data.Text.Lazy as TL import qualified Data.Text.Lazy.IO as TLIO import qualified System.IO as SIO dictWords :: IO String dictWords = SIO.readFile "/usr/share/d...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/28/28.09-text.hs
haskell
module Main where import Control.Monad import qualified Data.Text as T import qualified Data.Text.IO as TIO import qualified Data.Text.Lazy as TL import qualified Data.Text.Lazy.IO as TLIO import qualified System.IO as SIO dictWords :: IO String dictWords = SIO.readFile "/usr/share/d...
5326602dd470399c86bc3db7504e239f41e0e31cca8ff0e515de6a69c7a8ff72
well-typed/large-records
HL060.hs
module Common.HListOfSize.HL060 (Fields) where import Bench.Types type Fields = '[ -- 00 .. 09 T 00 , T 01 , T 02 , T 03 , T 04 , T 05 , T 06 , T 07 , T 08 , T 09 10 .. 19 , T 10 , T 11 , T 12 , T 13 , T 14 , T 15 , T 16 , T 17 , T ...
null
https://raw.githubusercontent.com/well-typed/large-records/551f265845fbe56346988a6b484dca40ef380609/large-records-benchmarks/bench/typelet/Common/HListOfSize/HL060.hs
haskell
00 .. 09
module Common.HListOfSize.HL060 (Fields) where import Bench.Types type Fields = '[ T 00 , T 01 , T 02 , T 03 , T 04 , T 05 , T 06 , T 07 , T 08 , T 09 10 .. 19 , T 10 , T 11 , T 12 , T 13 , T 14 , T 15 , T 16 , T 17 , T 18 , T 19 20...
536f4f9e37a4222347b84b160f989c153a2dff5d557dfdbe2e79a343c2e2617e
ucsd-progsys/dsolve
div.ml
qualifier NONZERO(x) = not(x = 0);; qualifier POS(x) = 0 < x;; qualifier NNEG(x) = 0 <= x;; let abs x = if x < 0 then (0 - x) else x in let trunc i j = let ai = abs i in let aj = abs j in if aj <= ai then j else (fun k -> k) aj in let s = trunc 0 0 in let t = trunc 10 1 in s;;
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/tests/POPL2008/div.ml
ocaml
qualifier NONZERO(x) = not(x = 0);; qualifier POS(x) = 0 < x;; qualifier NNEG(x) = 0 <= x;; let abs x = if x < 0 then (0 - x) else x in let trunc i j = let ai = abs i in let aj = abs j in if aj <= ai then j else (fun k -> k) aj in let s = trunc 0 0 in let t = trunc 10 1 in s;;
d9095e4a6385083082468cec1b86369735a8f499604c9cc44b664f5a914bb96d
facebookarchive/pfff
graph_code_class_analysis.mli
It can actually be a DAG , as with interfaces and traits one can fake * multiple inheritance . * The direction of the graph is efficient to get the children * of a class : Parent - > Children . * * multiple inheritance. * The direction of the graph is efficient to get the children * of a class: Par...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/graph_code/graph_code_class_analysis.mli
ocaml
Return the toplevel methods for each method name in the graph. * The returned hashtbl uses the Hashtbl.find_all property. list Return the possible dispatched methods. a method print optimization opportunities, also print dead fields
It can actually be a DAG , as with interfaces and traits one can fake * multiple inheritance . * The direction of the graph is efficient to get the children * of a class : Parent - > Children . * * multiple inheritance. * The direction of the graph is efficient to get the children * of a class: Par...
1a1f5a02cc772ebaca020321bad6522a5363eb7294a7e0e56fb22fb4cadf9abd
justinethier/nugget
cat.scm
CAT -- One of the and benchmarks . Rewritten by into more idiomatic Scheme . #; (import (scheme base) (scheme file) (scheme read) (scheme write) (scheme time)) (define (catport in out) (let ((x (read-char in))) (if (not (eof-object? x)) (begin (write-cha...
null
https://raw.githubusercontent.com/justinethier/nugget/0c4e3e9944684ea83191671d58b5c8c342f64343/benchmarks/chicken/cat.scm
scheme
(import (scheme base) The following code is appended to all benchmarks. Given an integer and an object, returns the object without making it too easy for compilers to tell the object will be returned. Given the name of a benchmark, the number of times it should be executed, a thunk that runs the benchmark once,...
CAT -- One of the and benchmarks . Rewritten by into more idiomatic Scheme . (scheme file) (scheme read) (scheme write) (scheme time)) (define (catport in out) (let ((x (read-char in))) (if (not (eof-object? x)) (begin (write-char x out) (catpor...
d3894b83a6bdb9056c118d1885763d9eb7c1bee2f5d99c6064d61a33d0cfcbfd
scheme/scsh
top.scm
;;; The scsh argv switch parser. Copyright ( c ) 1995 by . See file COPYING . ;;; Imports: ;;; COMMAND-PROCESSOR: set-batch-mode?! command-loop ;;; ENSURES-LOADED: really-ensure-loaded ;;; ENVIRONMENTS: set-interaction-environment! environment-ref ;;; environment-define! ;;; ERROR-PACKAGE: error ;;; EVAL...
null
https://raw.githubusercontent.com/scheme/scsh/114432435e4eadd54334df6b37fcae505079b49f/scheme/top.scm
scheme
The scsh argv switch parser. Imports: COMMAND-PROCESSOR: set-batch-mode?! command-loop ENSURES-LOADED: really-ensure-loaded ENVIRONMENTS: set-interaction-environment! environment-ref environment-define! ERROR-PACKAGE: error EVALUATION: eval INTERFACES: make-simple-interface INTERRUPTS: interrupt...
Copyright ( c ) 1995 by . See file COPYING . EXTENDED - PORTS : make - string - input - port SCSH - LEVEL-0 - INTERNALS : set - command - line - args ! (comp-env-macro-eval (if (package? env) (package->environment env) env))) (define (scsh-get-struc...
a65ec71f0fb60aea80d5aab553a12ae8f60747bef099135ccb82ac2e7caba4d4
metaocaml/ber-metaocaml
t20ok.ml
(* TEST flags = " -w a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) PR 4557 module PR_4557 = struct module F ( X : Set.OrderedType ) = struct module rec Mod : sig module XSet : sig type elt = X.t type t = Set.Make( X ).t end modu...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-recmod/t20ok.ml
ocaml
TEST flags = " -w a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output
PR 4557 module PR_4557 = struct module F ( X : Set.OrderedType ) = struct module rec Mod : sig module XSet : sig type elt = X.t type t = Set.Make( X ).t end module XMap : sig type key = X.t type 'a t = 'a Map.Make(X).t end ...
400ff6963baab1fe3c3d9397e57336fc1b49de27d273b4956f72bc89baf810a2
zepto-lang/zepto
TypeCheckPrimitives.hs
module Zepto.Primitives.TypeCheckPrimitives where import Control.Monad.Except (liftIO) import Data.Complex (imagPart) import System.IO (hIsReadable, hIsWritable) import Zepto.Types TODO : does this really belong here ? buildDoc :: String -> String buildDoc t = "build a new " ++ t ++ ".\n\ \n\ complexity: O(1)\n\ ...
null
https://raw.githubusercontent.com/zepto-lang/zepto/564fc1db72530040100d55538f49fec6fd9ff300/src/Zepto/Primitives/TypeCheckPrimitives.hs
haskell
module Zepto.Primitives.TypeCheckPrimitives where import Control.Monad.Except (liftIO) import Data.Complex (imagPart) import System.IO (hIsReadable, hIsWritable) import Zepto.Types TODO : does this really belong here ? buildDoc :: String -> String buildDoc t = "build a new " ++ t ++ ".\n\ \n\ complexity: O(1)\n\ ...
0a771a84917698b893b170f038b77a66c655e3074faac4a0c7b5fe30a4831ffb
mirage/mirage-random
mirage_random.ml
* Copyright ( c ) 2011 - 2015 Anil Madhavapeddy < > * Copyright ( c ) 2013 - 2015 < > * Copyright ( c ) 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyrigh...
null
https://raw.githubusercontent.com/mirage/mirage-random/2f2434c30cedb476b44b10c55cec0052f1eaa1f4/src/mirage_random.ml
ocaml
* {1 Operations to generate random numbers} * The state of the generator. * [generate ~g n] generates a random buffer of length [n] using [g].
* Copyright ( c ) 2011 - 2015 Anil Madhavapeddy < > * Copyright ( c ) 2013 - 2015 < > * Copyright ( c ) 2013 Citrix Systems Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyrigh...
86256cc16f95427dfd0214b47e467117ae5dafba90dec312214632b231a90393
exoscale/clojure-kubernetes-client
apps_v1beta1_rolling_update_deployment.clj
(ns clojure-kubernetes-client.specs.apps-v1beta1-rolling-update-deployment (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare apps-v1beta1-rolling-update-deployment-data apps-v1beta1-rolling-update-deployment) (...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/apps_v1beta1_rolling_update_deployment.clj
clojure
(ns clojure-kubernetes-client.specs.apps-v1beta1-rolling-update-deployment (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare apps-v1beta1-rolling-update-deployment-data apps-v1beta1-rolling-update-deployment) (...
fef4b41e6ad14763f159e971bfce2058d8ca0520144585326bc808ff1aee222c
NicklasBoto/funQ
Core.hs
# LANGUAGE OverloadedLists # {-| Module : Internal.Core Description : Core language internals Stability : experimental Internal matrix and measurment operations -} module Lib.Internal.Core where import Data.Bit ( Bit ) import Lib.QM ( QState(QState), Ix, QBit (Ptr), stateSize ) import Data.Bits ( Bits((.&.)) ...
null
https://raw.githubusercontent.com/NicklasBoto/funQ/9444da05273be215a66044b976d031229d8832fc/src/Lib/Internal/Core.hs
haskell
| Module : Internal.Core Description : Core language internals Stability : experimental Internal matrix and measurment operations to collapse to their bit counterparts Model probability as a rational number. Find all the amplitudes where that qubit is one and converts it to probabilities. | Finds the ampl...
# LANGUAGE OverloadedLists # module Lib.Internal.Core where import Data.Bit ( Bit ) import Lib.QM ( QState(QState), Ix, QBit (Ptr), stateSize ) import Data.Bits ( Bits((.&.)) ) import Numeric.LinearAlgebra ( Complex, magnitude, flatten, outer, normalize, size, toList, fro...
d226e05b2d5b65b3aa46d689d2de157079d626e54a5bf7e1759b91561d53edec
zeromq/chumak
chumak_acceptance_version.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 /. -module(chumak_acceptance_version). -include_lib("eunit/include/eunit.hrl"). -define(PORT, 3010). single_test_() -> [ { "Shou...
null
https://raw.githubusercontent.com/zeromq/chumak/02f56f153d0c6988858483c9dd0a1c233e2aa342/test/chumak_acceptance_version.erl
erlang
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(chumak_acceptance_version). -include_lib("eunit/include/eunit.hrl"). -define(PORT, 3010). single_test_() -> [ { "Shou...
afc858ba0dd53f97eefe8b59ee512a4f295730b24439d44192619df1fa9ca663
AndreasVoellmy/openflow
UDP.hs
module Network.Data.IPv4.UDP ( UDPHeader , UDPPortNumber , getUDPHeader ) where import Data.Binary.Get import Data.Word type UDPHeader = (UDPPortNumber, UDPPortNumber) type UDPPortNumber = Word16 getUDPHeader :: Get UDPHeader getUDPHeader = do srcp <- getWord16be dstp <-...
null
https://raw.githubusercontent.com/AndreasVoellmy/openflow/1dc9c6e9b594d0edaa895b3db145752383e3b431/src/Network/Data/IPv4/UDP.hs
haskell
module Network.Data.IPv4.UDP ( UDPHeader , UDPPortNumber , getUDPHeader ) where import Data.Binary.Get import Data.Word type UDPHeader = (UDPPortNumber, UDPPortNumber) type UDPPortNumber = Word16 getUDPHeader :: Get UDPHeader getUDPHeader = do srcp <- getWord16be dstp <-...
708116271a408bcf6ec55ea1e18f24c6eacb7bcaf2a524dc30b7ebe4fb478072
tweag/lagoon
StrictList.hs
Copyright 2020 Pfizer Inc. 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 under th...
null
https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/src/backend/src/Lagoon/Util/StrictList.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 permiss...
Copyright 2020 Pfizer Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , # LANGUAGE DeriveFunctor # module Lagoon.Util.StrictList ( StrictList(..) , cons , fromList , reverse , singleton ) where import P...
f65d86cb191d1b786fdb23d20cd2086886e266ea7e7e3dad61d6268ebaa0de32
vyorkin/tiger
driver.ml
let process line = let linebuf = Lexing.from_string line in try Printf.printf "%s\n%!" (Parser.main Lexer.token linebuf) with | Lexer.Error msg -> Printf.fprintf stderr "%s%!" msg | Parser.Error -> Printf.fprintf stderr "At offset %d: syntax error.\n%!" (Lexing.lexeme_start linebuf) let pro...
null
https://raw.githubusercontent.com/vyorkin/tiger/54dd179c1cd291df42f7894abce3ee9064e18def/play/menhir/morse-code/driver.ml
ocaml
let process line = let linebuf = Lexing.from_string line in try Printf.printf "%s\n%!" (Parser.main Lexer.token linebuf) with | Lexer.Error msg -> Printf.fprintf stderr "%s%!" msg | Parser.Error -> Printf.fprintf stderr "At offset %d: syntax error.\n%!" (Lexing.lexeme_start linebuf) let pro...
1932378ed14a60011602928c0931fc6a768631c71a14b4cef13dd1ebe136d801
potapenko/playphraseme-site
model.cljs
(ns playphraseme.views.login.model (:require [re-frame.core :refer [dispatch reg-event-db reg-sub]] [playphraseme.common.localstorage :as localstorage]) (:require-macros [re-frame-macros.core :as mcr])) (mcr/reg-sub-event ::error-message nil) (mcr/reg-sub-event ::email nil) (mcr/reg-sub-event ::passwor...
null
https://raw.githubusercontent.com/potapenko/playphraseme-site/d50a62a6bc8f463e08365dca96b3a6e5dde4fb12/src/cljs/playphraseme/views/login/model.cljs
clojure
(ns playphraseme.views.login.model (:require [re-frame.core :refer [dispatch reg-event-db reg-sub]] [playphraseme.common.localstorage :as localstorage]) (:require-macros [re-frame-macros.core :as mcr])) (mcr/reg-sub-event ::error-message nil) (mcr/reg-sub-event ::email nil) (mcr/reg-sub-event ::passwor...
c8aaa82e0aeac81be182d1f32a0f7752fb7ba7699ee058559c13b91c4ca3637c
RolfRolles/PandemicML
X86ToIRUtil.ml
open X86 open IR open IRUtil let vEax = Variable(0 , TypeReg_32) let vEcx = Variable(1 , TypeReg_32) let vEdx = Variable(2 , TypeReg_32) let vEbx = Variable(3 , TypeReg_32) let vEsp = Variable(4 , TypeReg_32) let vEbp = Variable(5 , TypeReg_32) let vEsi = Variable(6 , TypeReg_32) let vEdi = Variable(7 , TypeReg_32) le...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/IRTranslators/X86ToIRUtil.ml
ocaml
Frequently-needed variables (registers, esp); all reserved variables as a set Raises Not_found if x is not a general register variable Raises Not_found if x is not a general register variable Raises Not_found if x is not a general register variable DOES NOT INCLUDE MEMORY Save space by creating "root" elemen...
open X86 open IR open IRUtil let vEax = Variable(0 , TypeReg_32) let vEcx = Variable(1 , TypeReg_32) let vEdx = Variable(2 , TypeReg_32) let vEbx = Variable(3 , TypeReg_32) let vEsp = Variable(4 , TypeReg_32) let vEbp = Variable(5 , TypeReg_32) let vEsi = Variable(6 , TypeReg_32) let vEdi = Variable(7 , TypeReg_32) le...
09452ac759558e953c3ce1bc83ad76c9e7035aafd284e4abbd9a9b6e29ee401d
exercism/haskell
Transpose.hs
module Transpose (transpose) where import Data.List (dropWhileEnd) import Data.Maybe (fromMaybe, isNothing) transpose :: [String] -> [String] transpose [] = [] transpose rows = map toString $ foldr (zipWith (:) . padRight . map Just) (replicate longestLength []) rows where longestLength = maximum ...
null
https://raw.githubusercontent.com/exercism/haskell/ae17e9fc5ca736a228db6dda5e3f3b057fa6f3d0/exercises/practice/transpose/.meta/examples/success-standard/src/Transpose.hs
haskell
module Transpose (transpose) where import Data.List (dropWhileEnd) import Data.Maybe (fromMaybe, isNothing) transpose :: [String] -> [String] transpose [] = [] transpose rows = map toString $ foldr (zipWith (:) . padRight . map Just) (replicate longestLength []) rows where longestLength = maximum ...
8f2c1656e0c46db512b9885da944145997c316f1922bbe347407b7679469b0b2
jlouis/etorrent_core
etorrent_endgame.erl
%% @doc Assignor process for endgame mode. -module(etorrent_endgame). -behaviour(gen_server). %% exported functions -export([start_link/1]). %% gproc registry entries -export([register_server/1, lookup_server/1, await_server/1]). -export([debug_info/1]). %% gen_server callbacks -export([init/1, ...
null
https://raw.githubusercontent.com/jlouis/etorrent_core/7db7f4ef36c1d055812504f00df92c6a67c2e4af/src/etorrent_endgame.erl
erlang
@doc Assignor process for endgame mode. exported functions gproc registry entries gen_server callbacks will be initially filled by messages from the pending process. @doc @end @doc @end @doc @end @doc @end This chunk was fetched by this peer. This chunk was fetched by another peer. This chunk was not as...
-module(etorrent_endgame). -behaviour(gen_server). -export([start_link/1]). -export([register_server/1, lookup_server/1, await_server/1]). -export([debug_info/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -...
36e41a8c187cabe361b0b1ba6ad5f3ee975e62f1ccf0dbf3e1eb334adda12a41
sunshineclt/Racket-Helper
1-简易scheme解释器.rkt
#lang racket (require r5rs) (define (myeval exp env) (cond ((self-evaluating? exp) exp) ((variable? exp) (lookup-variable-value exp env)) ((quoted? exp) (text-of-quotation exp)) ((assignment? exp) (eval-assignment exp env)) ((definition? exp) (eval-definition exp env)) ((if? e...
null
https://raw.githubusercontent.com/sunshineclt/Racket-Helper/bf85f38dd8d084db68265bb98d8c38bada6494ec/%E5%BE%90%E7%8E%89%E9%BA%9F/%E4%BD%9C%E4%B8%9A9/1-%E7%AE%80%E6%98%93scheme%E8%A7%A3%E9%87%8A%E5%99%A8.rkt
racket
#lang racket (require r5rs) (define (myeval exp env) (cond ((self-evaluating? exp) exp) ((variable? exp) (lookup-variable-value exp env)) ((quoted? exp) (text-of-quotation exp)) ((assignment? exp) (eval-assignment exp env)) ((definition? exp) (eval-definition exp env)) ((if? e...
28f568be4f9498392018124289eed1122a0f3794c5128e4a0453d25929a5972f
finkel-lang/finkel
Exception.hs
;;; -*- mode: finkel -*- (:require Finkel.Core) (defmodule Finkel.Tool.Internal.Exception (export (FinkelToolException ..) finkel-tool-exception-handler) (import ;; base (Control.Exception [(Exception ..) handle]) (System.Environment [getProgName]) (System.Exit [exitFailure]) (System.IO [hPutS...
null
https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/finkel-tool/src/Finkel/Tool/Internal/Exception.hs
haskell
;;; -*- mode: finkel -*- (:require Finkel.Core) (defmodule Finkel.Tool.Internal.Exception (export (FinkelToolException ..) finkel-tool-exception-handler) (import ;; base (Control.Exception [(Exception ..) handle]) (System.Environment [getProgName]) (System.Exit [exitFailure]) (System.IO [hPutS...
7631cb509f93d0f300047321677390259ccbaa95e5add2f26432e8616bfaf09a
nuty/vela
info.rkt
#lang info (define collection 'multi) (define deps '("web-server")) (define pkg-desc "Simple web framework to build restful app in Racket.")
null
https://raw.githubusercontent.com/nuty/vela/5998a2cf7101a9b98d91fce11c4c1d86f0f5a274/vela-lib/info.rkt
racket
#lang info (define collection 'multi) (define deps '("web-server")) (define pkg-desc "Simple web framework to build restful app in Racket.")
c7c229ae0643d161c962c9be01993c26321af4fb94d54226b5f100dd290da96e
vitorenesduarte/exp
exp_simulations_SUITE.erl
%% Copyright ( c ) 2018 . All Rights Reserved . Copyright ( c ) 2016 . All Rights Reserved . %% This file is provided to you 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 %% %% -...
null
https://raw.githubusercontent.com/vitorenesduarte/exp/99486aba658c1b5f077275ceca3eef173375d050/test/exp_simulations_SUITE.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ----------------------------...
Copyright ( c ) 2018 . All Rights Reserved . Copyright ( c ) 2016 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES ...
151b3247d649fb3fd805cc691013eacaab8c47fa5cf2ec7b941b10e060a675bc
dongcarl/guix
java-utils.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 < > Copyright © 2016 < > Copyright © 2018 < > Copyright © 2020 , 2021 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public ...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/guix/build/java-utils.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2016 < > Copyright © 2016 < > Copyright © 2018 < > Copyright © 2020 , 2021 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build ja...
4d1de0f6f8953a1488c0e3dc4e4b8445aaae4a42892ee5e11a8d30ae16038b26
iu-parfunc/lvars
PNCounterTests.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DataKinds # | Tests for the Data . LVar . PNCounter module . module PNCounterTests(tests, runTests) where import Test.Tasty.HUnit import Test.Tasty (TestTree, defaultMain, testGroup) import Test . HUnit ( Assertion , assertEqual , assertBool , Counts ( .. ) ) import Test.Ta...
null
https://raw.githubusercontent.com/iu-parfunc/lvars/78e73c96a929aa75aa4f991d42b2f677849e433a/src/lvish-extra/tests/PNCounterTests.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ TODO: Write tests.
# LANGUAGE TemplateHaskell # # LANGUAGE DataKinds # | Tests for the Data . LVar . PNCounter module . module PNCounterTests(tests, runTests) where import Test.Tasty.HUnit import Test.Tasty (TestTree, defaultMain, testGroup) import Test . HUnit ( Assertion , assertEqual , assertBool , Counts ( .. ) ) import Test.Ta...
3775315d650af8a43492dde71f6b7b74961dfef50932824beeff2365020f7b35
afiniate/aws_async
ec2_inst_meta_unit_tests_run.ml
open Core.Std open Async.Std let test () = Ec2_inst_meta_tests.unit () >>= function | Error _ -> print_string "tests failed!\n"; exit 1 | Ok _ -> print_string "test passed!\n"; return () let _ = Command.async ~summary:"Unit tests for Aws_inst_meta" Command.Spec.empty test |> Command.run
null
https://raw.githubusercontent.com/afiniate/aws_async/44c27bf9f18f76e9e6405c2252098c4aa3d9a8bc/lib/ec2_inst_meta/ec2_inst_meta_unit_tests_run.ml
ocaml
open Core.Std open Async.Std let test () = Ec2_inst_meta_tests.unit () >>= function | Error _ -> print_string "tests failed!\n"; exit 1 | Ok _ -> print_string "test passed!\n"; return () let _ = Command.async ~summary:"Unit tests for Aws_inst_meta" Command.Spec.empty test |> Command.run
f9e4517d53856eb41f7432c8192cd5ca0da25b097f9f77abd142dd276cd37a95
mirage/irmin
time.mli
* Copyright ( c ) 2020 < > * Copyright ( c ) 2020 Anirudh Sunder Raj < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * ...
null
https://raw.githubusercontent.com/mirage/irmin/09c0226673906c738e8036e7f58ecb8dce6848ba/src/irmin-containers/time.mli
ocaml
* [Time] specifies a source of timestamps. Timestamps must be monotonic for the data structures to function properly. * Signature for the timestamps * Type of the timestamp * Returns a timestamp * A timestamp method using system-specific monotonic clocks (as provided by the [Mtime] package).
* Copyright ( c ) 2020 < > * Copyright ( c ) 2020 Anirudh Sunder Raj < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * ...
da1e0580e33fc862c7dbe67d36aaec9bbe155307f969b6f723db19d815477853
clojure-interop/java-jdk
BasicOptionPaneUI$ButtonAreaLayout.clj
(ns javax.swing.plaf.basic.BasicOptionPaneUI$ButtonAreaLayout "ButtonAreaLayout behaves in a similar manner to FlowLayout. It lays out all components from left to right. If syncAllWidths is true, the widths of each component will be set to the largest preferred size width. This class should be treated as a \...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/basic/BasicOptionPaneUI%24ButtonAreaLayout.clj
clojure
(ns javax.swing.plaf.basic.BasicOptionPaneUI$ButtonAreaLayout "ButtonAreaLayout behaves in a similar manner to FlowLayout. It lays out all components from left to right. If syncAllWidths is true, the widths of each component will be set to the largest preferred size width. This class should be treated as a \...
c42151e6bac0d8585da9f3715df5d2cc670389a81349f6e8328c86f00d5ea366
jumper149/go
Run.hs
module Game.Run ( MisoGame (..) ) where import GHC.TypeLits import Miso.Html import qualified Go.Game.Game as G import qualified Go.Run.JSON as G import qualified Game.Board.Default as D import Game.Operation class G.JSONGame b => MisoGame b where viewBoard :: b -> Maybe (G.AssociatedCoord b) -> [...
null
https://raw.githubusercontent.com/jumper149/go/603e61f64e8e7c890bbc914fef6033b5ed7dd005/client/Game/Run.hs
haskell
module Game.Run ( MisoGame (..) ) where import GHC.TypeLits import Miso.Html import qualified Go.Game.Game as G import qualified Go.Run.JSON as G import qualified Game.Board.Default as D import Game.Operation class G.JSONGame b => MisoGame b where viewBoard :: b -> Maybe (G.AssociatedCoord b) -> [...
10fba39622f57653e4b45d05bbd172d7f9634e2183712959eaa15d509a018c6f
qiao/sicp-solutions
3.29.scm
;; |\ a1 ---| o---- ~a1 ---+ ;; |/ | +-----+ + -------| | |\ | & |-- ~a1^~a2 --| o---- ;; +-------| | |/ ;; |\ | +-----+ ;; a2 -...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter3/3.29.scm
scheme
|\ |/ | +-----+ +-------| | |/ |\ | +-----+ a2 ---| o---- ~a2 ---+ |/ delay of ``or-gate'' is the delay of ``and-gate'' plus twice the delay of ``inverter''.
a1 ---| o---- ~a1 ---+ + -------| | |\ | & |-- ~a1^~a2 --| o---- (define (or-gate a1 a2 output) (define (or-action-procedure) (let ((~a1 (make-wire)) (~a2 (make-wire)) (~a1^~a2 (make-wire))) ...
2ea1380dea9dcd32a2beaf4d345315f984d9c990a237b15356cf7de8a060ff4e
clojure-interop/java-jdk
BasicPopupMenuUI.clj
(ns javax.swing.plaf.basic.BasicPopupMenuUI "A Windows L&F implementation of PopupMenuUI. This implementation is a \"combined\" view/controller." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.basic BasicPopupMenuUI])) (defn ->basic-popup-menu-ui "Constructor." (^BasicPopupMen...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/basic/BasicPopupMenuUI.clj
clojure
(ns javax.swing.plaf.basic.BasicPopupMenuUI "A Windows L&F implementation of PopupMenuUI. This implementation is a \"combined\" view/controller." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.basic BasicPopupMenuUI])) (defn ->basic-popup-menu-ui "Constructor." (^BasicPopupMen...
598a8e9650ee4bb7ba26bbe1534ff16628fdc860953135b95be7502361d113b5
potapenko/playphraseme-site
model.cljs
(ns playphraseme.views.playlist.model (:require [re-frame.core :refer [dispatch reg-event-db reg-sub]] [playphraseme.common.localstorage :as localstorage]) (:require-macros [re-frame-macros.core :as mcr])) (mcr/reg-sub-event ::playlist nil)
null
https://raw.githubusercontent.com/potapenko/playphraseme-site/d50a62a6bc8f463e08365dca96b3a6e5dde4fb12/src/cljs/playphraseme/views/playlist/model.cljs
clojure
(ns playphraseme.views.playlist.model (:require [re-frame.core :refer [dispatch reg-event-db reg-sub]] [playphraseme.common.localstorage :as localstorage]) (:require-macros [re-frame-macros.core :as mcr])) (mcr/reg-sub-event ::playlist nil)
d7f7250793bf9a0ea03574f600db6a61cbf01971c9b0e17e46a36edcc9072c07
bitemyapp/fp-course
ExtendSpec.hs
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE NoImplicitPrelude # module Course.ExtendSpec where import Test.Hspec (Spec, describe, it, shouldBe) import Course.Core import Course.ExactlyOne (ExactlyOne (ExactlyOne)) import Course.Functor ((<$>)) import ...
null
https://raw.githubusercontent.com/bitemyapp/fp-course/a9a325cd895a0953151ec3d02f40006eb7993fb8/test/Course/ExtendSpec.hs
haskell
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE NoImplicitPrelude # module Course.ExtendSpec where import Test.Hspec (Spec, describe, it, shouldBe) import Course.Core import Course.ExactlyOne (ExactlyOne (ExactlyOne)) import Course.Functor ((<$>)) import ...
8d10f735d16f6626bda5e46f79678176e37f8a0568546389ea60bc5e357dc04f
thelema/ocaml-community
str.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/str/str.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with * { 6 Regular expressions } type re...
4049f9ad288dd450865e321f6c6d06de08677fc6a988d640354366c0e3304144
alexanderjamesking/spy
protocol_test.clj
(ns spy.protocol-test (:require [clojure.test :refer [deftest is testing]] [spy.core :as spy] [spy.protocol :as protocol] [spy.assert :as assert] [spy.my-protocol :as my-protocol])) (defprotocol Greeter (hey [this x])) (defrecord KeywordGreeter [] Greeter (hey [...
null
https://raw.githubusercontent.com/alexanderjamesking/spy/6467cf3bb364bd4a3a716ce5a7f409dd2142840f/test/clj/spy/protocol_test.clj
clojure
(ns spy.protocol-test (:require [clojure.test :refer [deftest is testing]] [spy.core :as spy] [spy.protocol :as protocol] [spy.assert :as assert] [spy.my-protocol :as my-protocol])) (defprotocol Greeter (hey [this x])) (defrecord KeywordGreeter [] Greeter (hey [...
22a36b66e52973ad0eb54c6504ed2f1a2d5a67b5fd979638930fbba25e3eb65a
ivarref/clj-paginate
bst_before.clj
(ns com.github.ivarref.clj-paginate.impl.bst-before (:import (clojure.lang IPersistentVector))) (defn get-nth [^IPersistentVector x idx] (.nth x idx)) (defn init-vector [v] [v 0 (count v)]) (defn contains-index [^IPersistentVector v idx] (when (and (< idx (count ^IPersistentVector v)) (>= idx 0)...
null
https://raw.githubusercontent.com/ivarref/clj-paginate/673d5a3e775a8b651a8d0d356794406842d985c3/src/com/github/ivarref/clj_paginate/impl/bst_before.clj
clojure
(ns com.github.ivarref.clj-paginate.impl.bst-before (:import (clojure.lang IPersistentVector))) (defn get-nth [^IPersistentVector x idx] (.nth x idx)) (defn init-vector [v] [v 0 (count v)]) (defn contains-index [^IPersistentVector v idx] (when (and (< idx (count ^IPersistentVector v)) (>= idx 0)...
00af4cd864ccd4efd90eec2b4dd3e8aef23d376d3f431624b0d298401f823f93
htmfilho/minimily
account_test.clj
(ns minimily.accounting.model.account-test (:require [clojure.test :refer :all] [minimily.accounting.model.account :refer :all])) (deftest test-percentage-used-credit (testing "Check division by 0" (let [zero (BigDecimal. 0) one (BigDecimal. 1)]) (is (= (percenta...
null
https://raw.githubusercontent.com/htmfilho/minimily/b317b6b67bc79773163f1a6f7c3b46db795ef979/test/minimily/accounting/model/account_test.clj
clojure
(ns minimily.accounting.model.account-test (:require [clojure.test :refer :all] [minimily.accounting.model.account :refer :all])) (deftest test-percentage-used-credit (testing "Check division by 0" (let [zero (BigDecimal. 0) one (BigDecimal. 1)]) (is (= (percenta...
c666222ad2a996026e4469a49e8bf850addfe0db90ef4aba9ef3de1024d85105
google/mlir-hs
Generators.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 un...
null
https://raw.githubusercontent.com/google/mlir-hs/8caeadd4077c428b29b197a03f326b91ec8dd2ac/test/MLIR/Test/Generators.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 per...
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 -Wno - orphans # module MLIR.Test.Generators where import Control.Monad import Test.QuickCheck import GHC.Generics import Generic.Ran...
48a7e316610192e93351621de0d6262e351fed9b06ff6d8503c93fd25ea7f43b
overtone/overtone
pitch.clj
(ns ^{:doc "Functions to help generate and manipulate frequencies and sets of related frequencies. This is the place for functions representing general musical knowledge, like scales, chords, intervals, etc." :author "Jeff Rose, Sam Aaron & Marius Kempe"} overtone.music.pitch (:use [overtone.helpe...
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/music/pitch.clj
clojure
intervals. Perfect consonance Imperfect consonance MIDI Manipulating pitch using midi note numbers => \"Eb3\"" => nil" * Each note in a scale acts as either a generator or a collector of other notes, depending on their relations in time within a sequence. - How can this concept be developed into parameterized ...
(ns ^{:doc "Functions to help generate and manipulate frequencies and sets of related frequencies. This is the place for functions representing general musical knowledge, like scales, chords, intervals, etc." :author "Jeff Rose, Sam Aaron & Marius Kempe"} overtone.music.pitch (:use [overtone.helpe...
8437b5a061b03355083726e8ee9aa462fcb4ec45dcba5052167a0b737c7eb83f
coleslaw-org/coleslaw
sitemap.lisp
(defpackage :coleslaw-sitemap (:use :cl) (:import-from :coleslaw #:*config* #:index #:page-url #:find-all #:publish #:theme-fn #:add-document ...
null
https://raw.githubusercontent.com/coleslaw-org/coleslaw/c5b368aa8af7f63ba592e17445a84c8328670063/plugins/sitemap.lisp
lisp
We do 'discovery' in the publish method here because we can't ensure the sitemap discover method is called last. Need all other content to be discovered/in the DB.
(defpackage :coleslaw-sitemap (:use :cl) (:import-from :coleslaw #:*config* #:index #:page-url #:find-all #:publish #:theme-fn #:add-document ...
491bad896027e95838e4a41b54eafade847a5ddda5ab925ec69ddbc2f0ca3884
erikd/system-linux-proc
Hedgehog.hs
module Test.System.Linux.Proc.Hedgehog ( assertShow , predicate , predicate2 , propertyWithTests ) where import GHC.Stack (HasCallStack, withFrozenCallStack) import Hedgehog (Property, PropertyT, TestLimit, diff, property, success, withTests) import Hedgehog...
null
https://raw.githubusercontent.com/erikd/system-linux-proc/b5fc50b0e9f2b28a92c3152908799e53ae16589e/test/Test/System/Linux/Proc/Hedgehog.hs
haskell
module Test.System.Linux.Proc.Hedgehog ( assertShow , predicate , predicate2 , propertyWithTests ) where import GHC.Stack (HasCallStack, withFrozenCallStack) import Hedgehog (Property, PropertyT, TestLimit, diff, property, success, withTests) import Hedgehog...
5392303ec985b774b1266ae641e085074fe587607de0bf0173b0f37418231660
clojure-interop/java-jdk
XmlElementRef$DEFAULT.clj
(ns javax.xml.bind.annotation.XmlElementRef$DEFAULT "Used in XmlElementRef.type() to signal that the type be inferred from the signature of the property." (:refer-clojure :only [require comment defn ->]) (:import [javax.xml.bind.annotation XmlElementRef$DEFAULT])) (defn ->default "Constructor." (^XmlElem...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/bind/annotation/XmlElementRef%24DEFAULT.clj
clojure
(ns javax.xml.bind.annotation.XmlElementRef$DEFAULT "Used in XmlElementRef.type() to signal that the type be inferred from the signature of the property." (:refer-clojure :only [require comment defn ->]) (:import [javax.xml.bind.annotation XmlElementRef$DEFAULT])) (defn ->default "Constructor." (^XmlElem...
bb9b291850d5210a13e5753d41fd01e5022df86c2753abaabd85f61fa6ca3d5d
data61/Mirza
Types.hs
{-# LANGUAGE DeriveGeneric #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE UndecidableInstances #-} # OPTIONS_GHC -Wno - orph...
null
https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/or_scs/src/Mirza/SupplyChain/Types.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # ***************************************************************************** Context Types ***************************************************************************** A signature is an EventHas...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -Wno - orphans # module Mirza.SupplyChain.Types ( module Mirza.SupplyChain.Types , module Common ) where import ...
4e1786f03d61b972fb165538ae5f8c6d7db9b66b582958da0db66a18135dee1d
ejgallego/HOARe2
ecPException.mli
(* -------------------------------------------------------------------- *) type exn_printer = Format.formatter -> exn -> unit val register : exn_printer -> unit val exn_printer : exn_printer val tostring : exn -> string
null
https://raw.githubusercontent.com/ejgallego/HOARe2/48d8760696fdf4b8a3eda5a4d2a53eeba53072d8/src-ec/ecPException.mli
ocaml
--------------------------------------------------------------------
type exn_printer = Format.formatter -> exn -> unit val register : exn_printer -> unit val exn_printer : exn_printer val tostring : exn -> string
49b5f7f35ceae6bad3044abcd44c9df04322c17545e63db484f1f98074067ace
VisionsGlobalEmpowerment/webchange
index.cljs
(ns webchange.parent.pages.index (:require [webchange.parent.pages.faq.views :as faq] [webchange.parent.pages.not-found.views :as not-found] [webchange.parent.pages.student-add.views :as student-add] [webchange.parent.pages.students.views :as students])) (def pages {:faq faq/page ...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/02c3025e05fe48feba48080de4f7c439856789c1/src/cljs/webchange/parent/pages/index.cljs
clojure
(ns webchange.parent.pages.index (:require [webchange.parent.pages.faq.views :as faq] [webchange.parent.pages.not-found.views :as not-found] [webchange.parent.pages.student-add.views :as student-add] [webchange.parent.pages.students.views :as students])) (def pages {:faq faq/page ...
055fa6df8390fef3f6967d9da3c65d94c386043c0f693ed19f9506f379e719c0
andrenth/ocaml-swagger
mod.mli
type t val empty : string -> ?recursive:bool -> ?path:string list -> unit -> t val create : name:string -> ?descr:string -> ?recursive:bool -> ?path:string list -> ?types:Type.t list -> ?submodules:t Util.StringMap.t -> ?values:Val.t list -> unit -> t val with_values : string -> ?recursive:bool -...
null
https://raw.githubusercontent.com/andrenth/ocaml-swagger/60486bee7220a868b7e0b4507adb1edad44b98cd/lib/mod.mli
ocaml
type t val empty : string -> ?recursive:bool -> ?path:string list -> unit -> t val create : name:string -> ?descr:string -> ?recursive:bool -> ?path:string list -> ?types:Type.t list -> ?submodules:t Util.StringMap.t -> ?values:Val.t list -> unit -> t val with_values : string -> ?recursive:bool -...
f7fe7322207eef1619171c71f2d0f8a15d12492dccdcdd95b8896d1e90dde59c
serras/t-regex
Mono.hs
# LANGUAGE DeriveGeneric # # LANGUAGE PatternSynonyms # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE OverlappingInstances # # LANGUAGE ViewPatterns # # LANGUAGE PostfixOperators # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # -- | Example of tree regular expressions over a...
null
https://raw.githubusercontent.com/serras/t-regex/8890f99b849baaf55b7e9ae9fbdb6d818b992ba3/src/Data/Regex/Example/Mono.hs
haskell
# LANGUAGE TypeSynonymInstances # | Example of tree regular expressions over a regular data type. Click on @Source@ to view the code. * Data type definitions ** Useful pattern synonyms ** Some 'Tree' values ** Some 'Rose' values * Tree regular expressions ** Useful pattern synonyms ** Some stand-alone expres...
# LANGUAGE DeriveGeneric # # LANGUAGE PatternSynonyms # # LANGUAGE FlexibleInstances # # LANGUAGE OverlappingInstances # # LANGUAGE ViewPatterns # # LANGUAGE PostfixOperators # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # module Data.Regex.Example.Mono ( Tree'(..), Tree, Rose'(..), Rose, pattern Leaf...
7f4cd497397fed9ed7529cd1598a163efbfbc85dc591c89eb43a3f9efe0ef40a
noinia/hgeometry
Point.hs
{-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE UndecidableInstances # -------------------------------------------------------------------------------- -- | -- Module : Geometry.Point Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- -- \(d\)-dimensional points. -- -------...
null
https://raw.githubusercontent.com/noinia/hgeometry/e30883cba48614b2f9c6f3688e0f7440bba13dfe/hgeometry/src/Geometry/Point.hs
haskell
# LANGUAGE ScopedTypeVariables # ------------------------------------------------------------------------------ | Module : Geometry.Point License : see the LICENSE file \(d\)-dimensional points. ------------------------------------------------------------------------------ ----------------------------...
# LANGUAGE UndecidableInstances # Copyright : ( C ) Maintainer : module Geometry.Point( Point(.., Point1, Point2, Point3, Point4) , origin, vector , pointFromList , projectPoint , xCoord, yCoord, zC...
0011f897947fddb61b57f2e4cdc688a84a251184a1fd24cff3ac6e3599708269
elliottt/dang
Monad.hs
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Dang.TypeCheck.Monad ( TC(), runTC, Subst.Unify, unify, Subst.Zonk, zonk, ftvs, ) where import Dang.Monad (Dang) import Dang.TypeCheck.AST (TVar) import qualified Dang.TypeC...
null
https://raw.githubusercontent.com/elliottt/dang/490170c0ec674c4ce479108425e759dd4fd5a34b/src/Dang/TypeCheck/Monad.hs
haskell
# INLINE empty # # INLINE (<|>) # | Remove type variables from a thing that has types. NOTE: this will fail if the type given is infinite. | Calculate the free variables of a thing that has types. NOTE: this will fail with if the type given is infinite.
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # module Dang.TypeCheck.Monad ( TC(), runTC, Subst.Unify, unify, Subst.Zonk, zonk, ftvs, ) where import Dang.Monad (Dang) import Dang.TypeCheck.AST (TVar) import qualified Dang.TypeC...
df47d4e785badf036932fcb4eb05a86514b60245416a33a1bac1ddc87c727aa5
iu-parfunc/haskell_dsl_tour
InterpADT.hs
module Feldspar.InterpADT where import Feldspar.ManualADT import Control.Applicative -- Values data Val = Num Int | Fun (Val -> Val) instance Show Val where show (Num i) = "(Num " ++ show i ++ ")" show (Fun _) = "Function" natToInt :: Var -> Int natToInt Zro = 0 natToInt (Suc n) = (natToInt n) + 1 --...
null
https://raw.githubusercontent.com/iu-parfunc/haskell_dsl_tour/f75a7e492a1e5d219a77fb128f70441d54a706eb/middle_end/multi-level_AST/Feldspar/InterpADT.hs
haskell
Values Equality between types Extraction of values form environment Evaluation of expressions under specific environment of values Typechecking and returning the type, if successful An example expression doubling the input number An example expression representing the Integer 4 ----------------------------------...
module Feldspar.InterpADT where import Feldspar.ManualADT import Control.Applicative data Val = Num Int | Fun (Val -> Val) instance Show Val where show (Num i) = "(Num " ++ show i ++ ")" show (Fun _) = "Function" natToInt :: Var -> Int natToInt Zro = 0 natToInt (Suc n) = (natToInt n) + 1 (===) :: Mon...
7f2c1b3f7f65573403d146b5e3c79b6095fa4744d1c89e8d78fefad85a7b42c5
ichko/fmi-fp-2020-21
Spec.hs
import ParserUtils import Test.HUnit import XMLParser assertXMLFileParse :: String -> Test assertXMLFileParse fileName = TestCase $ do actualContent <- readFile $ "test-files/" ++ fileName ++ ".xml" expectedContent <- readFile $ "test-files/" ++ fileName ++ ".obj" let eitherActual = runParser xmlParser actualCon...
null
https://raw.githubusercontent.com/ichko/fmi-fp-2020-21/83dea8db7666e7a8a372d82301d71c79d5b798ff/hw/2/task-2/Spec.hs
haskell
Example XML SRC - -us/previous-versions/windows/desktop/ms762271(v=vs.85)
import ParserUtils import Test.HUnit import XMLParser assertXMLFileParse :: String -> Test assertXMLFileParse fileName = TestCase $ do actualContent <- readFile $ "test-files/" ++ fileName ++ ".xml" expectedContent <- readFile $ "test-files/" ++ fileName ++ ".obj" let eitherActual = runParser xmlParser actualCon...
57c05920c494e9c9ca4a82dc9003e14c3481c3272990e1da9244028920ae2038
RyanGlScott/text-show
Floating.hs
{-# LANGUAGE CPP #-} # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # | Module : Instances . Data . Floating Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' Ar...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/e8affb7f149ccaa21c80c115d1642af7107b9cf9/tests/Instances/Data/Floating.hs
haskell
# LANGUAGE CPP #
# LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # | Module : Instances . Data . Floating Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' Arbitrary ' instance for ' FPFormat ' ...
dd25565938c7de25426e37b943a8d2ec2e6467d344a85462c5f654b99fac6de2
igrep/typesafe-precure
Index.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module ACME.PreCure.Index where import Control.Monad (forM) import Data.Aeson (encode) import Data.Aeson.Encode.Pretty (encodePretty) import qualified Data.ByteString.Lazy as ByteStri...
null
https://raw.githubusercontent.com/igrep/typesafe-precure/fc94f5f2c0ca8d8acc0b8eabe890a85bc305d7b3/src/ACME/PreCure/Index.hs
haskell
# LANGUAGE OverloadedStrings # ^ ACME.PreCure.Textbook ACME.PreCure.Textbook.*
# LANGUAGE TemplateHaskell # module ACME.PreCure.Index where import Control.Monad (forM) import Data.Aeson (encode) import Data.Aeson.Encode.Pretty (encodePretty) import qualified Data.ByteString.Lazy as ByteString import Data.Data ...
f1aa75cf3e808de1d9b91f50bd8e2c570feb1d1407668d5f919958b5ef5f2ea3
ml4tp/tcoq
dag.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/stm/dag.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** A property applies to a set of node...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * module type S = sig type...
7d88349bf267bf94893c1d1a65b9870815198594dae5b98620dea53b896a0113
Tim-ats-d/Macron
input.ml
module Mouse = struct type t = { value : int; x : int; y : int } let pp fmt t = Format.fprintf fmt "Mouse: { value = %i; x = %i; y = %i }" t.value t.x t.y end module Keyboard = struct type t = { timeval : int; code : int; status : status } and status = Depressed | Repeat | Release let make ~timeval ~co...
null
https://raw.githubusercontent.com/Tim-ats-d/Macron/bf9170f98d46b4388b323f31f1d860c2f9d699eb/lib/core/input.ml
ocaml
module Mouse = struct type t = { value : int; x : int; y : int } let pp fmt t = Format.fprintf fmt "Mouse: { value = %i; x = %i; y = %i }" t.value t.x t.y end module Keyboard = struct type t = { timeval : int; code : int; status : status } and status = Depressed | Repeat | Release let make ~timeval ~co...
e14bc146480cb68e2e599b78e396ca74e9c5c4199ff09d2bfae3ba576a5cf1a1
typedclojure/typedclojure
method_param_nilables.clj
Copyright ( c ) , 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 be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/4fb7224598729e823e8b59e1c05115c4fe7ebca4/typed/clj.checker/src/typed/clj/checker/method_param_nilables.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns typed.clj.checker.method-param-nilables (:require [typed.cljc.runtime.env :as env] [clojure.core.typed.current-impl :as impl] [typed.cljc.runtime.env-utils :as env-utils])) (defn reset-method-nilable-param-env! [m] (env/swap-checker! assoc i...
dd98eb2e2b7954a9e74a7c8b73153835ade53644e4e48e1fa915143796c6ecd9
esl/MongooseIM
mongoose_service_deps.erl
%% @doc Service dependency management -module(mongoose_service_deps). -export([resolve_deps/1, sort_deps/1]). -type service_list() :: mongoose_service:service_list(). -type service_map() :: mongoose_service:service_map(). %% @doc Add dependencies to the service map -spec resolve_deps(service_map()) -> service_map()...
null
https://raw.githubusercontent.com/esl/MongooseIM/6fcb515c89da075a23eb093577a15563b167c002/src/mongoose_service_deps.erl
erlang
@doc Service dependency management @doc Add dependencies to the service map @doc Sort services (which already include their dependencies) according to the dependency graph
-module(mongoose_service_deps). -export([resolve_deps/1, sort_deps/1]). -type service_list() :: mongoose_service:service_list(). -type service_map() :: mongoose_service:service_map(). -spec resolve_deps(service_map()) -> service_map(). resolve_deps(Services) when is_map(Services) -> resolve_deps(maps:to_list(Se...
312bfee03dd70028bb08ac9c9b7926c4c5239d8108beaf4cd68213e9f4dbf9de
purcell/icfpc2017
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Data.Aeson (eitherDecode) import Data.ByteString.Lazy as BSL (readFile) import Data.Semigroup ((<>)) import System.Environment (getArgs) import System.Exit import Visualiser (writeStateToSvgFiles) main :: IO () main = do args <- getArgs case args of ...
null
https://raw.githubusercontent.com/purcell/icfpc2017/9aedea64ca228d32a222faaee8862a59811b2cfc/app/visualise/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Data.Aeson (eitherDecode) import Data.ByteString.Lazy as BSL (readFile) import Data.Semigroup ((<>)) import System.Environment (getArgs) import System.Exit import Visualiser (writeStateToSvgFiles) main :: IO () main = do args <- getArgs case args of [fileName] -> do dumpedState...
630048ceb7b35bd1dfbd94a02e4e2f5d302097f78bbce4dc10182fb90d731ad4
haskell/haskell-language-server
GoldenShow.expected.hs
showMe :: Show a => a -> String showMe = show
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/GoldenShow.expected.hs
haskell
showMe :: Show a => a -> String showMe = show
d475680e6ffdbc12f0e6818737f040d74ee1d704b67ceeedf1419d10a943c062
ghc/testsuite
tcfail110.hs
{-# LANGUAGE RankNTypes #-} module ShouldCompile where data Foo a b = Foo { foo :: a -> b } -- kind error in here bar :: String -> (forall a . Foo a) -> IO () bar s _ = putStrLn s
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail110.hs
haskell
# LANGUAGE RankNTypes # kind error in here
module ShouldCompile where data Foo a b = Foo { foo :: a -> b } bar :: String -> (forall a . Foo a) -> IO () bar s _ = putStrLn s
36e5b877343f5d61b4f5b71029412eb038ed5931916f4cb11f2bcb4370c640d2
ivanreese/diminished-fifth
render.cljs
(ns app.render (:require [app.canvas :as canvas] [app.color :as color] [app.math :as math :refer [tau]] [app.player :as player] [app.orchestra :as orchestra] [app.state :refer [history history-min history-max]] [app.util :refer [snoop-logg]])) (...
null
https://raw.githubusercontent.com/ivanreese/diminished-fifth/db7f7c781809b7b2733301cdc5241b17a6fee178/src/app/render.cljs
clojure
avoid a divide by 0 error (stroke-box "#FFF" x (+ y ygutter) w (- h ygutter)) (stroke-box "#FFF" x (+ y ygutter) w (- h ygutter)) (stroke-box "#FFF" x top width height)
(ns app.render (:require [app.canvas :as canvas] [app.color :as color] [app.math :as math :refer [tau]] [app.player :as player] [app.orchestra :as orchestra] [app.state :refer [history history-min history-max]] [app.util :refer [snoop-logg]])) (...
8e3d0a8bc17394edf002e3f94608e8dbb3d868c5348c111d8407d2075ac44602
google/ormolu
Type.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- | Rendering of types. module Ormolu.Printer.Meat.Type ( p_hsType, hasDocStrings, p_hsContext, p_hsTyVarBndr, p_forallBndrs, p_conDeclFields, tyVarsToTypes, ) where import Data.Bool (bool) import Data...
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/src/Ormolu/Printer/Meat/Type.hs
haskell
# LANGUAGE OverloadedStrings # | Rendering of types. # SOURCE # bool id inci3 solitaryArg In order to format type applications with multiple parameters parameters together. but I think we can ignore it as long as we use 'located' on both the type and the kind. we need to put a space in between or it fails to par...
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # module Ormolu.Printer.Meat.Type ( p_hsType, hasDocStrings, p_hsContext, p_hsTyVarBndr, p_forallBndrs, p_conDeclFields, tyVarsToTypes, ) where import Data.Bool (bool) import Data.Data (Data) import GHC hiding (isPromoted) import Ormolu.Pr...
684ff9c234d7cea573b8a19650fb8822f459eb36577cc13e9f005bf185ef6af0
the-dr-lazy/cascade
OffsetDatetime.hs
| Module : Test . Cascade . Api . Data . OffsetDatetime Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESC...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/test/Test/Cascade/Api/Data/OffsetDatetime.hs
haskell
| Module : Test . Cascade . Api . Data . OffsetDatetime Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESC...
24d2905744ab82ec5d19dbaef2f3313c9e2a28d1f5dabd2bf563d57d8b68b73a
redstarssystems/rssyslib
core_test.clj
(ns {{namespace}}.core-test (:require [clojure.test :refer [deftest testing is]] [matcho.core :refer [match]])) (deftest ^:unit a-test (testing "simple test." (is (= 1 1)) (match {:a 1} {:a int?})))
null
https://raw.githubusercontent.com/redstarssystems/rssyslib/68a9232fa620541cc4657bbd507313974158f92e/resources/clj/new/rssyslib/test/core_test.clj
clojure
(ns {{namespace}}.core-test (:require [clojure.test :refer [deftest testing is]] [matcho.core :refer [match]])) (deftest ^:unit a-test (testing "simple test." (is (= 1 1)) (match {:a 1} {:a int?})))
107643dec7b5fe15ce743fc6cfc7583764cd1aa8a8ff1672563928672e55453a
NorfairKing/easyspec
Fourteen.hs
# LANGUAGE NoImplicitPrelude # module Fourteen where import Prelude (Bool(..), (&&), (+), (-), (||), concat, drop, map, not, take) {-# ANN module "HLint: ignore Use foldr" #-} myId :: a -> a myId a = a myPlusPlus :: [a] -> [a] -> [a] myPlusPlus (a:as) bs = a : myPlusPlus as bs myPlusPlus [] bs = bs myRever...
null
https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/examples/runtime/Fourteen.hs
haskell
# ANN module "HLint: ignore Use foldr" #
# LANGUAGE NoImplicitPrelude # module Fourteen where import Prelude (Bool(..), (&&), (+), (-), (||), concat, drop, map, not, take) myId :: a -> a myId a = a myPlusPlus :: [a] -> [a] -> [a] myPlusPlus (a:as) bs = a : myPlusPlus as bs myPlusPlus [] bs = bs myReverse :: [a] -> [a] myReverse [] = [] myReverse ...
9d758df799dbe5409daaf110d8ea82ad31e32b268d427a1856896d2be7225923
donaldsonjw/bigloo
date.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / runtime / Llib / date.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/runtime/Llib/date.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The operations on time and date. */ * -----------------------...
* serrano / prgm / project / bigloo / runtime / Llib / date.scm * / * Author : * / * Creation : Tue Feb 4 10:35:59 2003 * / * Last change : Sat Dec 19 06:57:36 2015 ( serrano ) * / * Cop...
9d04721c469cbcb7afbaa88580c7b359c9c1582a843f4525ce4ddc759079d4b7
xvw/preface
free_monad.mli
(** A [Free monad] allows you to build a {!module:Preface_specs.Monad} from a given {!module:Preface_specs.Functor}. *) * Such { ! module : Preface_specs . Monad } is equipped with two additional functions : one dedicated to the creation of a new data and another one for the effect handling . one dedi...
null
https://raw.githubusercontent.com/xvw/preface/ee5934395476c3e44451e3effffa0fc7db68b83e/lib/preface_specs/free_monad.mli
ocaml
* A [Free monad] allows you to build a {!module:Preface_specs.Monad} from a given {!module:Preface_specs.Functor}. * {1 Structure anatomy} * The natural transformation for [Free Monad] to [Monad]. * The type held by the [Free monad]. * The type held by the {!module:Preface_specs.Functor}. * The type held by th...
* Such { ! module : Preface_specs . Monad } is equipped with two additional functions : one dedicated to the creation of a new data and another one for the effect handling . one dedicated to the creation of a new data and another one for the effect handling. *) * { 2 Note about complexity } Alt...
f91708e79da4a7e695361247e57c2952ad10c6fd8ba668eb339d2db4f5d2c2d2
facebook/flow
type_sig.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/95b167abfb0c84213e10339ab40381f9f86a4442/src/parser_utils/type_sig/type_sig.ml
ocaml
This module defines types representing signatures extracted from Flow source * files. These signatures are used to increase the parallelism of type * checking, similar to header/interface files in other languages. * * Note that these definitions are not recursive, but rather parametric over * some type 'a. In pra...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
ee46b9d9d86cae0cb25b25f7e0681de26a31c2ab5cf09ae8e7d3648e81570a2b
jakubfijalkowski/hsass
Utils.hs
-- | Helper functions. This module is internal and should not be used in -- production code. # LANGUAGE CPP # module Text.Sass.Utils ( -- * Interoperation with C API withOptionalUTF8CString , listEntryNotNull , loopCList , copyToCList -- * Other helpers , concatPaths , arrayRange ) where impo...
null
https://raw.githubusercontent.com/jakubfijalkowski/hsass/afbce06f13edcc1ec16eb8f93cc730bc735dfdaf/Text/Sass/Utils.hs
haskell
| Helper functions. This module is internal and should not be used in production code. * Interoperation with C API * Other helpers Fix for transformers-0.3.0.0 (used by lts-2.17 in stack). | 'withOptionalCString' @str action@, if @str@ is @Nothing@, @action@ is not invoked, otherwise behaves like 'withCString'. ...
# LANGUAGE CPP # module Text.Sass.Utils ( withOptionalUTF8CString , listEntryNotNull , loopCList , copyToCList , concatPaths , arrayRange ) where import Control.Monad (zipWithM_, (>=>)) import Control.Monad.IO.Class import Control.Monad.Loops ...
87d9180060a89ef362dcf32f7c9417d31847a7f5a9de501f2e8a487e8b6242cb
futurice/haskell-mega-repo
PlanMill.hs
-- | Copyright : ( c ) 2015 Futurice Oy -- License : BSD3 Maintainer : < > module PlanMill ( mockEndpoint, -- * Module re-exports module Control.Monad.PlanMill, module PlanMill.Auth, module PlanMill.Classes, module PlanMill.Types, module PlanMill.Endpoints, module PlanMill.Enume...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/planmill-client/src/PlanMill.hs
haskell
| License : BSD3 * Module re-exports ---------------------------------------------------------------------------- Mocking endpoint stuff ---------------------------------------------------------------------------- | Mock api end point TODO: what to do
Copyright : ( c ) 2015 Futurice Oy Maintainer : < > module PlanMill ( mockEndpoint, module Control.Monad.PlanMill, module PlanMill.Auth, module PlanMill.Classes, module PlanMill.Types, module PlanMill.Endpoints, module PlanMill.Enumerations, ) where import PlanMill.Internal.Prelu...
bc117a6e8bbdbcd24ac907853ce84674a4a168f380a02161becb3568b7529179
ikoloki/ltpl
tokenizer.lisp
(in-package :cl-user) (defstruct token (literal) (symbol)) ( defparameter * test * " = = 100,1@(.*(A - Z))$0$10![w : file.txt]$foo[p]$foo$[100 + 1 ] " ) (defun tokenize (input-stream) "takes tokens from the *input-stream* and processes them util the end" (let* ((directive (tokenize-directive (with-output-to...
null
https://raw.githubusercontent.com/ikoloki/ltpl/956691cf5510073f64f63c63ab1d13fec1bc9575/src/front%20end/tokenizer.lisp
lisp
(defun tokenize-space (input-stream c) ;; TODO INDEX -1 error (when (and (eq c #\_) (eq (read-char input-stream) #\))) (return-from tokenize-space (make-token :literal "__" :symbol 'operator))) (unread-char input-stream) (make-token :literal #\_ :symbol 'operator)) (break (format nil "~a" c))
(in-package :cl-user) (defstruct token (literal) (symbol)) ( defparameter * test * " = = 100,1@(.*(A - Z))$0$10![w : file.txt]$foo[p]$foo$[100 + 1 ] " ) (defun tokenize (input-stream) "takes tokens from the *input-stream* and processes them util the end" (let* ((directive (tokenize-directive (with-output-to...
a4d8bae0bfce2f8fe5947009c4ada5a34baf722c1f5c048670328245c046be5d
imitator-model-checker/imitator
PXDConstraint.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Specification et Verification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * * Descripti...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/ea560fd1e58fbca9a0666658d9d8fbd232f39dda/src/PXDConstraint.ml
ocaml
********************************************************** ********************************************************** ********************************************************** ********************************************************** -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* * {3 Creation} -*-*-*-*-*-*-*-*-*-...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Specification et Verification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * * Descripti...