_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 |
|---|---|---|---|---|---|---|---|---|
9b5d09725527ec5def504a1881a23bf175dae0c759247fe29777621f6ffb48b9 | RunOrg/RunOrg | db.mli | (* © 2014 RunOrg *)
(** A database, in the RunOrg sense, is the space where all other objects live
(with a few server-level exceptions, such as server-admins). *)
open Std
(** Create a new database, with the provided name. *)
val create : [`ServerAdmin] Token.I.id -> string -> (# Cqrs.ctx, Id.t * Cqrs.Clock.t) R... | null | https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/db.mli | ocaml | © 2014 RunOrg
* A database, in the RunOrg sense, is the space where all other objects live
(with a few server-level exceptions, such as server-admins).
* Create a new database, with the provided name.
* Return the number of created, not-yet-deleted databases on the server.
* Return the Persona audiences availa... |
open Std
val create : [`ServerAdmin] Token.I.id -> string -> (# Cqrs.ctx, Id.t * Cqrs.Clock.t) Run.t
val count : [`ServerAdmin] Token.I.id -> (# Cqrs.ctx, int) Run.t
val persona_audience : unit -> (#Cqrs.ctx, String.Url.t list) Run.t
* Return a subset of all databases , ordered by identifier . Maximum count is [ ... |
6f2a738622b8c6bb9ae1b9069537c472e78a8dcf93fd7fbf0cef376d653aba24 | overminder/YAC | CPSTrans.hs | module Frontend.Scheme.CPSTrans (
runCPSTrans,
transformToplevel
) where
import Control.Monad
import Control.Monad.Trans
import Frontend.Scheme.AST
import Util.Temp
type CPSTransGen = TempGen
runCPSTrans :: CPSTransGen a -> TempGen a
runCPSTrans = id
gensym :: String -> CPSTransGen String
gensym s = do
i <- ... | null | https://raw.githubusercontent.com/overminder/YAC/4a2633a81bc2d5880d1e7948b0cce0037ed788b1/Frontend/Scheme/CPSTrans.hs | haskell | Turn a toplevel lambda into cps form
(fun arg1 ... argN) -> (fun arg1 ... argN k)
(fun (g arg) ... argN) ->
(fun $ApCont_0 ... argN k)))
(if atomCond (f x) y) ->
(if atomCond (f x k) (k y))
(if (f x) (g y) z ->
(f x (lambda ($IfCont_0)
(if $IfCont_0 (g y k) (k z))))
(begin
(g x)) ->
((lamb... | module Frontend.Scheme.CPSTrans (
runCPSTrans,
transformToplevel
) where
import Control.Monad
import Control.Monad.Trans
import Frontend.Scheme.AST
import Util.Temp
type CPSTransGen = TempGen
runCPSTrans :: CPSTransGen a -> TempGen a
runCPSTrans = id
gensym :: String -> CPSTransGen String
gensym s = do
i <- ... |
8f2dd8530471c0f2eb8ae39f4d62b622de47af99e5b31c88f33f43e58b411ee8 | mnxn/jsonoo | jsonoo.mli | include Jsonoo_intf.Jsonoo
* @inline
| null | https://raw.githubusercontent.com/mnxn/jsonoo/7e4d0b66e6188e58106908b9d64a61e93dfeece9/jsonoo.mli | ocaml | include Jsonoo_intf.Jsonoo
* @inline
| |
bd273a5a15e6f00d01eabe9c9f5e3c98077d72d70c896027fb0b4b8aafb4f795 | hemmi/coq2scala | environ.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/kernel/environ.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* Unsafe environments. We define her... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Names
open Term
open Dec... |
c848bf4d2dcad7e65d2e5a4b16ebe3b69bc4162af711d74d92531b38ebbde2f0 | cedlemo/OCaml-GI-ctypes-bindings-generator | Corner_type.mli | open Ctypes
type t = Top_left | Bottom_left | Top_right | Bottom_right
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val t_view: t typ
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Corner_type.mli | ocaml | open Ctypes
type t = Top_left | Bottom_left | Top_right | Bottom_right
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val t_view: t typ
| |
a72468630cfeb52e6f76e848f297725520aca1775a110f83956a9407b9ba732c | unison-code/unison | Main.hs | |
Copyright : Copyright ( c ) 2016 , RISE SICS AB
License : BSD3 ( see the LICENSE file )
Maintainer :
Copyright : Copyright (c) 2016, RISE SICS AB
License : BSD3 (see the LICENSE file)
Maintainer :
-}
Main authors :
< >
Contributing authors :
< >
This file is ... | null | https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison-specsgen/exec/specsgen/Main.hs | haskell | |
Copyright : Copyright ( c ) 2016 , RISE SICS AB
License : BSD3 ( see the LICENSE file )
Maintainer :
Copyright : Copyright (c) 2016, RISE SICS AB
License : BSD3 (see the LICENSE file)
Maintainer :
-}
Main authors :
< >
Contributing authors :
< >
This file is ... | |
ba148fa250da441582d166a8d9d24610e27cd51cfc890643cd91d1d12c12dbfd | S8A/htdp-exercises | ex477.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex477) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-... | null | https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex477.rkt | racket | about the language level of this file in a form that our tools can easily process.
[List-of X] -> [List-of [List-of X]]
creates a list of all rearrangements of the items in w
by prepending each item in w to the arrangements of w
without said item
recursive call, therefore it will reach '() at some point
Q: What ... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex477) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
termination the function removes one item from w on e... |
2a4ecfb13643ba6e18d559d20d74d4b8319a92f4830bc5538584274f1417d8fd | qkrgud55/ocamlmulti | topdirs.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/toplevel/topdirs.ml | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ I d : topdirs.ml 12661 2012 - 07 - ... |
438249971dc4f10057bcdf07b1fd68af477778db76e920bf9e8e754343092220 | senapk/funcional_arcade | solver.hs | myrepeat x = x:myrepeat x | null | https://raw.githubusercontent.com/senapk/funcional_arcade/89625b4559b3e590d88dd70a27b6cbdc07cc2988/base/072/solver.hs | haskell | myrepeat x = x:myrepeat x | |
9aa5eecc8b73109d25f11bd5617c86db6cbcf50426fb96e941483f768c2e1173 | diagrams/diagrams-cairo | Cairo.hs | # LANGUAGE CPP #
# LANGUAGE TypeFamilies #
-----------------------------------------------------------------------------
-- |
Module : Diagrams . Backend . Cairo
Copyright : ( c ) 2011 Diagrams - cairo team ( see LICENSE )
-- License : BSD-style (see LICENSE)
-- Maintainer :
--
-- A ... | null | https://raw.githubusercontent.com/diagrams/diagrams-cairo/533e4f4f18f961543bb1d78493c750dec45fd4a3/src/Diagrams/Backend/Cairo.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style (see LICENSE)
Maintainer :
A full-featured rendering backend for diagrams using the
standalone executables which output images when invoked.
* You can use the 'renderCairo' function provided by this mod... | # LANGUAGE CPP #
# LANGUAGE TypeFamilies #
Module : Diagrams . Backend . Cairo
Copyright : ( c ) 2011 Diagrams - cairo team ( see LICENSE )
cairo rendering engine .
To invoke the cairo backend , you have three options .
* You can use the " Diagrams . Backend . Cairo . CmdLine " module ... |
a285b84df76a1fd535905b5ff86a428b04715fb2154919f802130d0d3e622914 | ocaml-multicore/parafuzz | test.ml | TEST
files = " a.ml b.ml c.ml main.ml main_ok.ml "
* setup - ocamlc.byte - build - env
* * script
script = " mkdir -p subdir "
* * * script
script = " cp $ { test_source_directory}/subdir / m.ml subdir "
* * * * ocamlc.byte
module = " subdir / m.ml "
* * * * * ocamlc.byte
flags = " -I subdir "
m... | null | https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/typing-missing-cmi/test.ml | ocaml | TEST
files = " a.ml b.ml c.ml main.ml main_ok.ml "
* setup - ocamlc.byte - build - env
* * script
script = " mkdir -p subdir "
* * * script
script = " cp $ { test_source_directory}/subdir / m.ml subdir "
* * * * ocamlc.byte
module = " subdir / m.ml "
* * * * * ocamlc.byte
flags = " -I subdir "
m... | |
b464e184aec7b4bcf2853f007fecf2a6b4e5c323bc01120052661a8c54878087 | hyperledger-labs/fabric-chaincode-haskell | Policies.hs | # LANGUAGE DeriveGeneric #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DataKinds #
{-# LANGUAGE GADTs #-}
# LANGUAGE TypeApplications #
{-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - name - shadowing #
# OPTIONS_GHC -fno - warn... | null | https://raw.githubusercontent.com/hyperledger-labs/fabric-chaincode-haskell/9594e82371a9a805ad812e38fd58e063df5ca4e7/protos-hs/Common/Policies.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
| Generated by Haskell protocol buffer compiler. DO NOT EDIT! | # LANGUAGE DeriveGeneric #
# LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - name - shadowing #
# OPTIONS_GHC -fno - warn - unused - matches #
module Common.Policies where
import qualified Prelude as Hs
import qualified Prot... |
2704f156a9712048387a8ad4cd2d975e32545c94dc4739becffeae2de8156e26 | kdltr/chicken-core | chicken-profile.scm | ;;;; chicken-profile.scm - Formatted display of profile outputs - felix -*- Scheme -*-
;
Copyright ( c ) 2008 - 2021 , The CHICKEN Team
Copyright ( c ) 2000 - 2007 ,
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followi... | null | https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/chicken-profile.scm | scheme | chicken-profile.scm - Formatted display of profile outputs - felix -*- Scheme -*-
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
conditions are met:
Redistributions of source code must retain the above copyright n... | Copyright ( c ) 2008 - 2021 , The CHICKEN Team
Copyright ( c ) 2000 - 2007 ,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS
CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR
CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIM... |
914e98cfdf4167beff18bbc8badba52519ce91a0e1d35574e87d95275e02ae6c | ghc/testsuite | tcrun043.hs | # LANGUAGE GADTs , TypeFamilies , ConstraintKinds #
import GHC.Prim ( Constraint )
type Showish = Show
f :: (Showish a) => a -> String
f x = show x ++ show x
data T = T
data F = F
data GADT a where
Tish :: GADT T
Fish :: GADT F
type family Indexed a b :: Constraint
type instance Indexed T b = Show b
type... | null | https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_run/tcrun043.hs | haskell | We'll NOINLINE h so that we test the code generation for
constraint tuples | # LANGUAGE GADTs , TypeFamilies , ConstraintKinds #
import GHC.Prim ( Constraint )
type Showish = Show
f :: (Showish a) => a -> String
f x = show x ++ show x
data T = T
data F = F
data GADT a where
Tish :: GADT T
Fish :: GADT F
type family Indexed a b :: Constraint
type instance Indexed T b = Show b
type... |
5c9d1d6db1124c164e279834f5eaa107317fbf378c7bea20d0284132514e3e42 | odis-labs/onix | Resolutions.ml | type t = {
with_constraint : OpamFormula.version_constraint OpamPackage.Name.Map.t;
without_constraint : OpamPackage.Name.Set.t;
compiler_name : OpamPackage.Name.t;
}
let default =
{
with_constraint = OpamPackage.Name.Map.empty;
without_constraint = OpamPackage.Name.Set.empty;
compiler_name = Opam_... | null | https://raw.githubusercontent.com/odis-labs/onix/81cc82953ef062425656ac9bf80474f2ce642f5b/src/onix_core/Resolutions.ml | ocaml | type t = {
with_constraint : OpamFormula.version_constraint OpamPackage.Name.Map.t;
without_constraint : OpamPackage.Name.Set.t;
compiler_name : OpamPackage.Name.t;
}
let default =
{
with_constraint = OpamPackage.Name.Map.empty;
without_constraint = OpamPackage.Name.Set.empty;
compiler_name = Opam_... | |
94cd0ede1e45fff256abf3afaa1c91f8826cf482c357c6c95b2718bc940dc2d8 | maximedenes/native-coq | rtree.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/lib/rtree.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* Building trees
* build a node giv... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Type of regular tree with n... |
a8c1b0a818f966b05ba1377995416024ba4d6298d5c89301d81030cb556009f9 | ConsumerDataStandardsAustralia/validation-prototype | Internal.hs | module Web.ConsumerData.Au.LambdaBank.Server.Internal where
import Control.Monad.Reader (ReaderT, asks)
import Servant.Links (Link)
import Web.ConsumerData.Au.Api.Types
(LinkQualifier, PaginatedResponse, Paginator, StandardResponse,
mkPaginatedResponse, mkStandardResponse)
import Web.... | null | https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-lambdabank/src/Web/ConsumerData/Au/LambdaBank/Server/Internal.hs | haskell | module Web.ConsumerData.Au.LambdaBank.Server.Internal where
import Control.Monad.Reader (ReaderT, asks)
import Servant.Links (Link)
import Web.ConsumerData.Au.Api.Types
(LinkQualifier, PaginatedResponse, Paginator, StandardResponse,
mkPaginatedResponse, mkStandardResponse)
import Web.... | |
60efcc6d134e400eac32defeddc9dbeb23bbc5f2fba9aa53f743f86da70e14da | coq/coq | cWarnings.ml | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/a290b310c86275123786137fd5d70963ae16e3c4/lib/cWarnings.ml | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
75d063ed4e18c98c608353b753263faeed3e30e7d1c5902213a55c24867cc3c4 | uhc/uhc | GraphTest.hs | module GraphTest where
--
-- Experimental approach to constraint graphs
-- Only for experimentation, not finished yet
--
-- In the conventional constraint graphs, each
-- constraint corresponds to an edge. In this
-- representation, each variable and constraint
-- correspond to vertices. Edges correspond to
-- plugs.... | null | https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/ehc-7_2/Annotations/GraphTest.hs | haskell |
Experimental approach to constraint graphs
Only for experimentation, not finished yet
In the conventional constraint graphs, each
constraint corresponds to an edge. In this
representation, each variable and constraint
correspond to vertices. Edges correspond to
plugs. We can then represent the constraint
grap... | module GraphTest where
import qualified Data.Graph.Inductive as G
import Data.Map(Map)
import qualified Data.Map as Map
import Data.Set(Set)
import qualified Data.Set as Set
import Data.List
import Data.Maybe
data Constr
= Int :=>=: Int
| Comp :<=: Int
deriving (Eq, Ord, Show)
data Comp
= Atom Int
| Com... |
eed241df0295fe5e2b311222bc645dadb7ff608e26687a18ed8ac0eeb8956d77 | metabase/metabase | follow_up_emails.clj | (ns metabase.task.follow-up-emails
"Tasks which follow up with Metabase users."
(:require
[clojurewerkz.quartzite.jobs :as jobs]
[clojurewerkz.quartzite.schedule.cron :as cron]
[clojurewerkz.quartzite.triggers :as triggers]
[java-time :as t]
[metabase.email :as email]
[metabase.email.messages :as ... | null | https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/src/metabase/task/follow_up_emails.clj | clojure | +----------------------------------------------------------------------------------------------------------------+
| send follow-up emails |
+--------------------------------------------------------------------------------------... | (ns metabase.task.follow-up-emails
"Tasks which follow up with Metabase users."
(:require
[clojurewerkz.quartzite.jobs :as jobs]
[clojurewerkz.quartzite.schedule.cron :as cron]
[clojurewerkz.quartzite.triggers :as triggers]
[java-time :as t]
[metabase.email :as email]
[metabase.email.messages :as ... |
177bbf0b8cce93e1a099b3a8327c6ff292222955355288b73096bc502df5ffa3 | coq/coq | term.mli | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/1bacca2d42c3bab2c6826bd8cb50dd1805b310ea/kernel/term.mli | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
67176295e810ec072db7a86940474645a772a65c28d48b764814d82848ed9546 | f-o-a-m/kepler | Transaction.hs | module Tendermint.SDK.Types.Transaction where
import Control.Error (note)
import Control.Lens (Wrapped (..), from, iso, view,
(&), (.~), (^.), _Unwrapped')
import Crypto.Hash (Digest, ha... | null | https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-abci-sdk/src/Tendermint/SDK/Types/Transaction.hs | haskell | Our standard transaction type parameterized by the signature schema 'alg'
and an underlying message type 'msg'.
------------------------------------------------------------------------------
TODO: figure out what the actual standards are for these things, if there
even are any.
| Raw transaction type coming in ove... | module Tendermint.SDK.Types.Transaction where
import Control.Error (note)
import Control.Lens (Wrapped (..), from, iso, view,
(&), (.~), (^.), _Unwrapped')
import Crypto.Hash (Digest, ha... |
b3ffba2cd44c6b75ae9ced92c090f059d62ad6c1fe6a0055b6a05ff75d7f7e3d | jeffshrager/biobike | history-listener.lisp | ;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: WEBLISTENER; -*-
(in-package :weblistener)
;;; +=========================================================================+
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
;;; | |
;;; | Pe... | null | https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Weblisten/history-listener.lisp | lisp | -*- mode: Lisp; Syntax: Common-Lisp; Package: WEBLISTENER; -*-
+=========================================================================+
| |
| Permission is hereby granted, free of charge, to any person obtaining |
| a copy of this softwar... |
(in-package :weblistener)
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
| " Software " ) , to deal in the Software without restriction , including |
| distribute , sublicense , and/or sell copies of the Software , and to |
| permit persons to whom the Software is furnished to do so , subje... |
0c9bb3afd68261eeb55684b5140191fe39672934f3aeea12a0154b68f1eb17ae | apatil/aplomb | viewCommon.ml | let asset_fnames = [ "babel-polyfill.js"; "vega.js"; "vega-lite.js"; "vega-embed.js"; ]
let remote_assets = [
"-polyfill/6.26.0/polyfill.js";
"";
"-lite/2.0.1/vega-lite.js";
"-embed/3.0.0-rc7/vega-embed.js";
]
type html = [
| `Doctype of string
| `Text of string
| `Script of [`Url of string | `Crunch of... | null | https://raw.githubusercontent.com/apatil/aplomb/2b9a6150c22093217661cb927ebec1e609ecf973/viewCommon.ml | ocaml | The failure case should be statically guaranteed to not happen
TODO: Rather than listing these just list files in the crunch | let asset_fnames = [ "babel-polyfill.js"; "vega.js"; "vega-lite.js"; "vega-embed.js"; ]
let remote_assets = [
"-polyfill/6.26.0/polyfill.js";
"";
"-lite/2.0.1/vega-lite.js";
"-embed/3.0.0-rc7/vega-embed.js";
]
type html = [
| `Doctype of string
| `Text of string
| `Script of [`Url of string | `Crunch of... |
fcc272319ec5a66b05bac9042f671332f8f457bd50797597114481ef6c5b919b | ghcjs/ghcjs-examples | JavaScriptFFI.hs | # LANGUAGE CPP , , TemplateHaskell , QuasiQuotes , ScopedTypeVariables , NoMonomorphismRestriction #
-----------------------------------------------------------------------------
--
-- Module : Demo.JavaScriptFFI
-- Copyright :
-- License : BSD3
--
-- | To find a nice way to wor
--
-----------------------... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-examples/217b7fd3816f57634977beac711452704c3ea688/mloc-js/src/Demo/JavaScriptFFI.hs | haskell | ---------------------------------------------------------------------------
Module : Demo.JavaScriptFFI
Copyright :
License : BSD3
| To find a nice way to wor
---------------------------------------------------------------------------
var canvas = document.getElementById("canvas")
var ctx = canvas... | # LANGUAGE CPP , , TemplateHaskell , QuasiQuotes , ScopedTypeVariables , NoMonomorphismRestriction #
module Demo.JavaScriptFFI (
canvasDemo
, callHaskell
) where
import GHCJS.DOM.Types
(WebView(..), Document(..), HTMLDivElement(..))
import GHCJS.DOM.HTMLCanvasElement
(htmlCanvasElementSetHeight, ... |
93ccafcc1e48b74e1f099f72a33fd8c2c6e651f0a0231ddbbe633b9d3ed3d619 | DSLsofMath/DSLsofMath | E1_05.hs | -- Exercise 1_FunTup
module Ex_1_FunTup where
-- Function from Bool to integer, for testing
tf :: Bool -> Integer
tf True = 1
tf False = 0
isoR :: (Bool -> t) -> (t, t)
isoR f = (f True, f False)
isoL :: (t, t) -> (Bool -> t)
isoL (a,b) = func
where
func True = a
func False = b
-- Test the fun... | null | https://raw.githubusercontent.com/DSLsofMath/DSLsofMath/216464afda03c54709fae39e626ca19e8053444e/L/01/ExerciseSolutions/E1_05.hs | haskell | Exercise 1_FunTup
Function from Bool to integer, for testing
Test the functionality of isoR and isoL
"isoL◦isoR = id and isoR◦isoL = id" | module Ex_1_FunTup where
tf :: Bool -> Integer
tf True = 1
tf False = 0
isoR :: (Bool -> t) -> (t, t)
isoR f = (f True, f False)
isoL :: (t, t) -> (Bool -> t)
isoL (a,b) = func
where
func True = a
func False = b
test0,test1,test2 :: Bool
test0 = isoL(isoR tf) True == fst(isoR(isoL (1,0))) && i... |
50ca06698b023c4d5ae3e7f95044817bf081b3090d2d7ba190c52ae56fc17f49 | vii/dysfunkycom | cl-vectors.lisp | ;;;;; Converted from the "CL-VECTORS" tutorial at:
;;;;; "-vectors/section-tutorial#tutorial"
;;;;; (C)2006 Luke J Crook
(in-package #:sdl-examples)
(defun cl-vectors-1 ()
(let ((width 300) (height 200))
(sdl:with-init ()
(sdl:window width height :title-caption "CL-VECTORS, Tutorial #1")
(setf (sdl... | null | https://raw.githubusercontent.com/vii/dysfunkycom/a493fa72662b79e7c4e70361ad0ea3c7235b6166/addons/lispbuilder-sdl/examples/cl-vectors.lisp | lisp | Converted from the "CL-VECTORS" tutorial at:
"-vectors/section-tutorial#tutorial"
(C)2006 Luke J Crook
create the state
of the triangle
render it
create the state
render it |
(in-package #:sdl-examples)
(defun cl-vectors-1 ()
(let ((width 300) (height 200))
(sdl:with-init ()
(sdl:window width height :title-caption "CL-VECTORS, Tutorial #1")
(setf (sdl:frame-rate) 5)
(sdl:clear-display (sdl:color :r 255 :g 255 :b 255))
describe the 3 sides
(aa:line-f state 50 1... |
c4c06b9076628f5a1363fe88370aaad2192fa15dc48766f206756c09211441c7 | seckcoder/iu_c311 | interp.rkt | ; interpreter of let-lang
#lang eopl
(require racket/file)
(require "../base/utils.rkt")
(require "store1.rkt")
(provide (all-defined-out))
; expval := Int | Bool | Proc
; during the implemention, I find this datatype actually
; useless...
(define-datatype
expval expval?
(numval
(int integer?))
(boolval
... | null | https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/racket/call-by-value-result/interp.rkt | racket | interpreter of let-lang
expval := Int | Bool | Proc
during the implemention, I find this datatype actually
useless...
copy back
environment
env := '() | (var val env)
grammar
the following example is used to identify scoping of the proc-lang.
for multi args test
test block
test implicit reference
(o... |
#lang eopl
(require racket/file)
(require "../base/utils.rkt")
(require "store1.rkt")
(provide (all-defined-out))
(define-datatype
expval expval?
(numval
(int integer?))
(boolval
(bool boolean?))
(procval
(var symbol?)
(body anything?)))
(define-datatype
proc proc?
(closure
(vars (l... |
ee4290db1155b44234f50a6e0ffb7cdaaf30d7d99df702548e086b7cbf205dc1 | wargrey/w3s | simplification.rkt | #lang typed/racket/base
;;; -20011203.html#simplification
(provide (all-defined-out))
(require digimon/filesystem)
(require "../relaxng.rkt")
(require "compact.rkt")
(require "schema.rkt")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define rng-current-inher... | null | https://raw.githubusercontent.com/wargrey/w3s/8283bc69bbcde2c935e632e420147f0f65e8c89e/sgml/digitama/relaxng/simplification.rkt | racket | -20011203.html#simplification
yes, ignore the initial annotation
| #lang typed/racket/base
(provide (all-defined-out))
(require digimon/filesystem)
(require "../relaxng.rkt")
(require "compact.rkt")
(require "schema.rkt")
(define rng-current-inherit : (Parameterof (Pairof Symbol (Option String))) (make-parameter (cons 'inherit #false)))
(define rnc-grammar-simplify : (->* (RNC-... |
fc926831c232be6f74e5909773897043be26a642b0dd0c271ad8832a84f21081 | amitrathore/remember | file_store.clj | (ns org.rathore.amit.remember.file-store
(:use org.rathore.amit.remember.core)
(:import (org.jets3t.service.model S3Object))
(:import (org.jets3t.service.acl AccessControlList)))
(defn store-file-in-bucket
[bucket-name filename
& {:keys [key]}]
(let [bucket (get-bucket bucket-name)
data (java.io.File.... | null | https://raw.githubusercontent.com/amitrathore/remember/c16898954b1708224cf833b195735a2123fcd52a/src/org/rathore/amit/remember/file_store.clj | clojure | (ns org.rathore.amit.remember.file-store
(:use org.rathore.amit.remember.core)
(:import (org.jets3t.service.model S3Object))
(:import (org.jets3t.service.acl AccessControlList)))
(defn store-file-in-bucket
[bucket-name filename
& {:keys [key]}]
(let [bucket (get-bucket bucket-name)
data (java.io.File.... | |
245df9d96b4332eb29a030e1cfa8cd29a2b1fc262e48fad089561df9b92bc0a9 | goldfirere/th-desugar | T158Exp.hs | # LANGUAGE MagicHash #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -Wno - incomplete - patterns #
| A regression test for # 158 which ensures that lambda expressions
-- containing patterns with unlifted types desugar as expected. We define this
test in its own module , without UnboxedTuples enabled , to ensure that... | null | https://raw.githubusercontent.com/goldfirere/th-desugar/d0041788759da2f8e2448c6c87d8c6334dc12838/Test/T158Exp.hs | haskell | containing patterns with unlifted types desugar as expected. We define this
do not have to enable the extension themselves. | # LANGUAGE MagicHash #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -Wno - incomplete - patterns #
| A regression test for # 158 which ensures that lambda expressions
test in its own module , without UnboxedTuples enabled , to ensure that users
module T158Exp where
import Language.Haskell.TH.Desugar
t158 :: ()
t15... |
c332da02f9b9723bc99e9dae27223f28223e6e1185b03e9f82cb80f732206011 | ocurrent/ocaml-multicore-ci | pipeline.ml | open Current.Syntax
open Ocaml_multicore_ci
open Pipeline_utils
module Git = Current_git
module Github = Current_github
module Docker = Current_docker.Default
module Map = Map.Make (String)
let tidy_label label =
Fmt.str "%a" Fmt.(list string) (String.split_on_char '@' label)
let tidy_label_opt = function
| None ... | null | https://raw.githubusercontent.com/ocurrent/ocaml-multicore-ci/d46eecaf7269283a4b95ee40d2a9d6c7ec34a7bf/service/pipeline.ml | ocaml | let lint_selection = List.hd selections in
Spec.opam ~label:"(lint-fmt)" ~selection:lint_selection ~analysis (`Lint `Fmt);
Spec.opam ~label:"(lint-doc)" ~selection:lint_selection ~analysis (`Lint `Doc);
Spec.opam ~label:"(lint-opam)" ~selection:lint_selection ~analysis (`Lint `Opam);
If we ... | open Current.Syntax
open Ocaml_multicore_ci
open Pipeline_utils
module Git = Current_git
module Github = Current_github
module Docker = Current_docker.Default
module Map = Map.Make (String)
let tidy_label label =
Fmt.str "%a" Fmt.(list string) (String.split_on_char '@' label)
let tidy_label_opt = function
| None ... |
097cd983ee0cf60c974d49dd9cb996869cb67b17934ba85a3d7f8eaf7a205ddd | pupeno/ninjatools | tools.cljs | Copyright © 2015 Carousel Apps , Ltd. All rights reserved .
(ns ninjatools.tools
(:require [clojure.string :as s]
[clojure.walk :as walk]
[reagent.ratom :as ratom :include-macros true]
[re-frame.core :as re-frame]
[ajax.core :as ajax]
[ninjatools.layout :... | null | https://raw.githubusercontent.com/pupeno/ninjatools/1b73ff22174b5ec196d514062162b252899c1735/src/cljs/ninjatools/tools.cljs | clojure | TODO: only get the tool we want, by slug.
TODO: get the tools that we have integration ids for when we stop getting all the tools all the time. | Copyright © 2015 Carousel Apps , Ltd. All rights reserved .
(ns ninjatools.tools
(:require [clojure.string :as s]
[clojure.walk :as walk]
[reagent.ratom :as ratom :include-macros true]
[re-frame.core :as re-frame]
[ajax.core :as ajax]
[ninjatools.layout :... |
d19633a4842638194569bfea9120cd3649c2617686e91996aa180adab77f237c | rizo/snowflake-os | cmmgen.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/cmmgen.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ Id$
open Misc
open Arch
open Astt... |
a53b3e3e497bdfc9e8254723e57f41b38f923fbb4b966ddc71aea44a428b3456 | GNOME/gimp-tiny-fu | ripply-anim.scm | " Rippling Image " animation generator ( ripply-anim.scm )
( )
97/05/18
;
; Designed to be used in conjunction with a plugin capable
of saving animations ( i.e. the plugin ) .
;
(define (script-fu-ripply-anim img drawable displacement num-frames edge-type)
(define (copy-layer-ripple dest-image dest-dra... | null | https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/ripply-anim.scm | scheme |
Designed to be used in conjunction with a plugin capable
this script generates its own displacement map
tile noise
process tiled noise into usable displacement map
displacement map is now in rippletiled-layer of rippletiled-image
loop through the desired frames | " Rippling Image " animation generator ( ripply-anim.scm )
( )
97/05/18
of saving animations ( i.e. the plugin ) .
(define (script-fu-ripply-anim img drawable displacement num-frames edge-type)
(define (copy-layer-ripple dest-image dest-drawable source-image source-drawable)
(gimp-selection-all des... |
672eb1dc653733c1b76fb1f075b6dec9c68108998b81b5ceaea8edeeb5fa8063 | jakemcc/sicp-study | exercise1.7.clj | ( good - enough ? 0.01 0.001 )
;; -> true
;; .01 shouldn't be a good guess.
;;
;; Large failures:
;; Potentially because squaring the guess, even when it is very close to the proper guess, will still cause it to be further than .001 away from goal number x. This would cause infinite loop
user= > ( good - enough ?... | null | https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section1.1/exercise1.7.clj | clojure | -> true
.01 shouldn't be a good guess.
Large failures:
Potentially because squaring the guess, even when it is very close to the proper guess, will still cause it to be further than .001 away from goal number x. This would cause infinite loop
false
Different implementation:
Using it:
| ( good - enough ? 0.01 0.001 )
user= > ( good - enough ? 31622.7766 1000000000 )
(defn change [first second]
(Math/abs (- first second)))
(defn good-enough?? [first second]
(< (change first second) (* 0.001 second)))
(defn average [x y]
(/ (+ x y) 2))
(defn improve [guess x]
(average guess (/ x guess)))
(d... |
76aae7cb8fa8a862ed42b6f3ca6dbb4e6ff780a2f52a70e5b07e6578b4834ca7 | bhauman/devcards | edn_renderer.cljs | (ns devcards.util.edn-renderer
(:require
[sablono.core :as sab]
[devcards.util.utils :as utils]))
(defonce ^:dynamic *key-counter* nil)
(defn get-key []
(swap! *key-counter* inc)
(str "k-" @*key-counter*))
(declare html)
(defn literal? [x]
(and
(not (map-entry? x))
(not (seq? x))
(not (coll? ... | null | https://raw.githubusercontent.com/bhauman/devcards/65caa84c9438dd8bdf8cd21964e6033b1a22c178/src/devcards/util/edn_renderer.cljs | clojure | (ns devcards.util.edn-renderer
(:require
[sablono.core :as sab]
[devcards.util.utils :as utils]))
(defonce ^:dynamic *key-counter* nil)
(defn get-key []
(swap! *key-counter* inc)
(str "k-" @*key-counter*))
(declare html)
(defn literal? [x]
(and
(not (map-entry? x))
(not (seq? x))
(not (coll? ... | |
a90b6294263407bfb7f58ee1670d4bc5feb30e7deec47c9a085cee481795e3ce | GillianPlatform/Gillian | Pred.ml | module SSubst = Gillian.Symbolic.Subst
module L = Logging
module Type = Gillian.Gil_syntax.Type
module Expr = Gillian.Gil_syntax.Expr
module Formula = Gillian.Gil_syntax.Formula
* { b JSIL logic predicate } .
type t = {
name : string; (** Name of the predicate *)
num_params : int; (** Number of parameters *)
... | null | https://raw.githubusercontent.com/GillianPlatform/Gillian/1c8d65120c04ef87cda689a9d41268e25b5ffa7e/Gillian-JS/lib/JSIL/Pred.ml | ocaml | * Name of the predicate
* Number of parameters
* Actual parameters
* Ins
* Predicate definitions
* Facts about the predicate
* Is the predicate pure
* Is the predicate abstract
* Should the predicate be unfolded?
* If the predicate has been previously normalised | module SSubst = Gillian.Symbolic.Subst
module L = Logging
module Type = Gillian.Gil_syntax.Type
module Expr = Gillian.Gil_syntax.Expr
module Formula = Gillian.Gil_syntax.Formula
* { b JSIL logic predicate } .
type t = {
definitions : ((string * string list) option * Asrt.t) list;
}
* Creates / populates a from the... |
1ebbf9bb9de4f9f0bb959408660652691285c1aef109649bf243721f7cf77ead | yetanalytics/datasim | zip.clj | (ns com.yetanalytics.datasim.json.zip
(:require [clojure.zip :as z]
[clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as sgen]
[com.yetanalytics.datasim.json :as json]))
(s/def :com.yetanalytics.datasim.json.zip.loc.ppath/l
(s/nilable
(s/every ::json/any)))
(s/def :com.yet... | null | https://raw.githubusercontent.com/yetanalytics/datasim/0047cb3123e32b72380ea31ec98a26ef85543b63/src/main/com/yetanalytics/datasim/json/zip.clj | clojure | if clojure.core/empty doesn't work, check for map entry
key position
given a root and a key-path, can we return a loc at that path?
this would make up some for the inefficiency of having to walk everything
when there is a known path?
if the node is a map, we want to skip the map entries
don't look at map entries... | (ns com.yetanalytics.datasim.json.zip
(:require [clojure.zip :as z]
[clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as sgen]
[com.yetanalytics.datasim.json :as json]))
(s/def :com.yetanalytics.datasim.json.zip.loc.ppath/l
(s/nilable
(s/every ::json/any)))
(s/def :com.yet... |
64fbe5f1cdbbafccbb5bcc6c1e63ca355f57db782e7542db45c05e4c590d8497 | manuel-serrano/hop | method.scm | ;*=====================================================================*/
* serrano / prgm / project / hop / hop / js2scheme / method.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation ... | null | https://raw.githubusercontent.com/manuel-serrano/hop/a62327e2423acdafba486a4b8e1902cc978a1a2c/js2scheme/method.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* This optimization dupli... | * serrano / prgm / project / hop / hop / js2scheme / method.scm * /
* Author : * /
* Creation : We d Apr 26 08:28:06 2017 * /
* Last change : Sat Jan 1 07:21:31 2022 ( serrano ) * /
* Co... |
6378dd233b4bbdb0a0858cd6d8ae0364441e8a0696e5c1b03b76479f8f8dad9b | clojure-interop/aws-api | AWSServiceDiscoveryClientBuilder.clj | (ns com.amazonaws.services.servicediscovery.AWSServiceDiscoveryClientBuilder
"Fluent builder for AWSServiceDiscovery. Use of the builder is
preferred over using constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.servicediscovery AWSServiceDiscove... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.servicediscovery/src/com/amazonaws/services/servicediscovery/AWSServiceDiscoveryClientBuilder.clj | clojure | (ns com.amazonaws.services.servicediscovery.AWSServiceDiscoveryClientBuilder
"Fluent builder for AWSServiceDiscovery. Use of the builder is
preferred over using constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.servicediscovery AWSServiceDiscove... | |
722e2729fef1a73520c3d34020fbcce03661511324cb78dd3c1425ae627eb697 | twosigma/satellite | core.clj | Copyright 2015 TWO SIGMA OPEN SOURCE , 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
... | null | https://raw.githubusercontent.com/twosigma/satellite/d29d982f054d4f87ff47b4f94d23faa26a9b3fe4/satellite-master/src/satellite/core.clj | clojure |
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 2015 TWO SIGMA OPEN SOURCE , LLC
distributed under the License is distributed on an " AS IS " BASIS ,
(ns satellite.core
(:require [cemerick.url :as url]
[cheshire.core :as cheshire]
[clj-http.client :as client]
[clj-logging-config.log4j :as log4j-conf]
[... |
e8b983cbdde3b161bb749a50167f607aa6325d2fa3101d849ce63f176844b543 | apache/couchdb-rebar | rebar_neotoma_compiler.erl | -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
%% ex: ts=4 sw=4 et
%% -------------------------------------------------------------------
%%
rebar : Erlang Build Tools
%%
Copyright ( c ) 2010 ( )
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this softw... | null | https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/src/rebar_neotoma_compiler.erl | erlang | ex: ts=4 sw=4 et
-------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sel... | -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
rebar : Erlang Build Tools
Copyright ( c ) 2010 ( )
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the... |
1d19dfabd776eaaddbb0ef8c84dab3eb89a61cfde2fccd8d0a88c75cd38ea4f2 | CodyReichert/qi | conditions.lisp | (in-package :alexandria)
(defun required-argument (&optional name)
"Signals an error for a missing argument of NAME. Intended for
use as an initialization form for structure and class-slots, and
a default value for required keyword arguments."
(error "Required argument ~@[~S ~]missing." name))
(define-condition s... | null | https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/alexandria-latest/conditions.lisp | lisp | We don't specify a :report for simple-reader-error to let the
underlying implementation report the line and column position for
us. Unfortunately this way the message from simple-error is not
displayed, unless there's special support for that in the
debugger... | (in-package :alexandria)
(defun required-argument (&optional name)
"Signals an error for a missing argument of NAME. Intended for
use as an initialization form for structure and class-slots, and
a default value for required keyword arguments."
(error "Required argument ~@[~S ~]missing." name))
(define-condition s... |
65cf7fdee713d4e0078114e65023846d414a27b046410a680d3b7cf1bb0464bc | dorchard/computational-semantics | FSemF.hs | module FSemF where
import Data.List
import Data.Char (toUpper)
import FSynF
type Grid = [(Column,Row)]
exampleGrid :: Grid
exampleGrid = [(A',9),
(B',4),(B',5),(B',6),(B',7),(B',9),
(C',9),(D',4),(E',4),(F',4),
(G',4),(G',7),(G',8),(G',9),
(H',1),(H',4),(I... | null | https://raw.githubusercontent.com/dorchard/computational-semantics/e11a80f86140451c9ce7b80a7c263d1482d8565f/FSemF.hs | haskell | module FSemF where
import Data.List
import Data.Char (toUpper)
import FSynF
type Grid = [(Column,Row)]
exampleGrid :: Grid
exampleGrid = [(A',9),
(B',4),(B',5),(B',6),(B',7),(B',9),
(C',9),(D',4),(E',4),(F',4),
(G',4),(G',7),(G',8),(G',9),
(H',1),(H',4),(I... | |
ee5c02f678ee63ee24361ecc8d174b444b70cdc9b6965fe526f47bd2edb65e6b | dhleong/wish | proficiency_test.cljs | (ns wish.sheets.dnd5e.subs.proficiency-test
(:require [cljs.test :refer-macros [deftest testing is]]
[wish.sheets.dnd5e.subs.proficiency
:refer [level->proficiency-bonus]]))
(deftest level->proficiency-bonus-test
(testing "Low levels"
(is (= 2 (level->proficiency-bonus 1)))
(is (= ... | null | https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/test/cljs/wish/sheets/dnd5e/subs/proficiency_test.cljs | clojure | (ns wish.sheets.dnd5e.subs.proficiency-test
(:require [cljs.test :refer-macros [deftest testing is]]
[wish.sheets.dnd5e.subs.proficiency
:refer [level->proficiency-bonus]]))
(deftest level->proficiency-bonus-test
(testing "Low levels"
(is (= 2 (level->proficiency-bonus 1)))
(is (= ... | |
cafd8575b4702859fd355a4e20a303f362d5b5efa4268f8a218002d09f89a6cd | nvim-treesitter/nvim-treesitter | highlights.scm | [
"replace"
"go"
"use"
] @keyword
"=>" @operator
(comment) @comment
[
(version)
(go_version)
] @string
| null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/3b05ef44927cc245d2c68873d0a526592d3f93cd/queries/gowork/highlights.scm | scheme | [
"replace"
"go"
"use"
] @keyword
"=>" @operator
(comment) @comment
[
(version)
(go_version)
] @string
| |
6ccf0a20ef62dbeddd79f081056e85a7f40567edf85099de982c6ab2a574aa91 | futurice/haskell-mega-repo | Envelope.hs | {-# LANGUAGE OverloadedStrings #-}
module Personio.Types.Envelope where
import Data.Aeson.Compat
import Data.Aeson.Types (FromJSON1 (..), explicitParseField, parseJSON1)
import Futurice.Aeson
import Futurice.Prelude
import Prelude ()
-- | API returns data in the envelope
newtype Envelope a = Envelope { getEnvelope... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/personio-client/src/Personio/Types/Envelope.hs | haskell | # LANGUAGE OverloadedStrings #
| API returns data in the envelope
| API error. | module Personio.Types.Envelope where
import Data.Aeson.Compat
import Data.Aeson.Types (FromJSON1 (..), explicitParseField, parseJSON1)
import Futurice.Aeson
import Futurice.Prelude
import Prelude ()
newtype Envelope a = Envelope { getEnvelope :: a }
instance FromJSON a => FromJSON (Envelope a) where
parseJSON... |
c29a63ae71bd2208625bd72c1c1072344015e957e04c31098f85784e3d5ffaad | hugoduncan/oldmj | help.clj | (ns makejack.impl.help
"Help messages"
(:require [clojure.string :as str]
[makejack.api.core :as makejack]
[makejack.impl.invokers :as invokers]
[makejack.impl.resolve :as resolve]))
(defn invoker-doc-string [f]
(first (str/split-lines (:doc (meta f) ""))))
(defn- target-doc-... | null | https://raw.githubusercontent.com/hugoduncan/oldmj/0a97488be7457baed01d2d9dd0ea6df4383832ab/cli/src/makejack/impl/help.clj | clojure | (ns makejack.impl.help
"Help messages"
(:require [clojure.string :as str]
[makejack.api.core :as makejack]
[makejack.impl.invokers :as invokers]
[makejack.impl.resolve :as resolve]))
(defn invoker-doc-string [f]
(first (str/split-lines (:doc (meta f) ""))))
(defn- target-doc-... | |
7babb8c2ec49e350309b0cc94b2c041e71924268c4e61f30666012e06c029b01 | TyOverby/mono | profunctor.ml | open Base
include Profunctor_intf.Interfaces
module Record_builder_internal
(F : S) (T : sig
type 'a profunctor_term
val prj : ('a, 'a) F.t -> 'a profunctor_term
val inj : 'a profunctor_term -> ('a, 'a) F.t
end) =
struct
include T
type ('b, 'a) profun... | null | https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/janestreet-profunctor/src/profunctor.ml | ocaml | open Base
include Profunctor_intf.Interfaces
module Record_builder_internal
(F : S) (T : sig
type 'a profunctor_term
val prj : ('a, 'a) F.t -> 'a profunctor_term
val inj : 'a profunctor_term -> ('a, 'a) F.t
end) =
struct
include T
type ('b, 'a) profun... | |
4877ed9e2f0f79e3b1b72e30cfd964ec838abecd51184d0f650677425f38f3f8 | michaelklishin/quartzite | daily_interval_test.clj | (ns clojurewerkz.quartzite.test.schedule.daily-interval-test
(:refer-clojure :exclude [key])
(:require [clojure.test :refer :all]
[clojurewerkz.quartzite.schedule.daily-interval :refer :all])
(:import [org.quartz DateBuilder DateBuilder$IntervalUnit SimpleTrigger]
[org.quartz.impl.triggers ... | null | https://raw.githubusercontent.com/michaelklishin/quartzite/de96a2ae95ec232df3e24cf10f4e5ff33af3553b/test/clojurewerkz/quartzite/test/schedule/daily_interval_test.clj | clojure | (ns clojurewerkz.quartzite.test.schedule.daily-interval-test
(:refer-clojure :exclude [key])
(:require [clojure.test :refer :all]
[clojurewerkz.quartzite.schedule.daily-interval :refer :all])
(:import [org.quartz DateBuilder DateBuilder$IntervalUnit SimpleTrigger]
[org.quartz.impl.triggers ... | |
8ceb570bb151296b0d946d276a33159537dbc644d6cf35402adae4397139c411 | league/metaserv | chunked.ml |
type t =
{ fd: Unix.file_descr;
buf: string;
size: int;
mutable pos: int
}
let descr fd size =
{ fd = fd;
buf = String.create size;
so there is always room for CR / LF
pos = 0 }
let channel ch size =
flush ch;
descr (Unix.descr_of_out_channel ch) size
let write fd s n =
... | null | https://raw.githubusercontent.com/league/metaserv/35e85832b3d6dfe4e15b8036653d4429a90644f5/server/chunked.ml | ocaml |
type t =
{ fd: Unix.file_descr;
buf: string;
size: int;
mutable pos: int
}
let descr fd size =
{ fd = fd;
buf = String.create size;
so there is always room for CR / LF
pos = 0 }
let channel ch size =
flush ch;
descr (Unix.descr_of_out_channel ch) size
let write fd s n =
... | |
79adf612ef253305e16bc6d1f440000dcf74c0c0c22399c69f90f2302b54231d | sbcl/specializable | protocol.lisp | ;;;; package.lisp --- Package definition for the specializable-graph system.
;;;;
Copyright ( C ) 2014 , 2015 , 2016 Jan Moringen
;;;;
Author : < >
(cl:in-package #:specializable.graph)
;;; Specializer labels protocol
(defgeneric specializer-html-label (graph specializer)
(:documentation
"Return a label ... | null | https://raw.githubusercontent.com/sbcl/specializable/a08048ce874a2a8c58e4735d88de3bf3da0de052/src/graph/protocol.lisp | lisp | package.lisp --- Package definition for the specializable-graph system.
Specializer labels protocol
Graph | Copyright ( C ) 2014 , 2015 , 2016 Jan Moringen
Author : < >
(cl:in-package #:specializable.graph)
(defgeneric specializer-html-label (graph specializer)
(:documentation
"Return a label for the node representing SPECIALIZER in GRAPH."))
(defgeneric specializer-graph-generic-function (graph)
(:documen... |
22dc9dae6efdca4b8c34dfbefc7c4fb56257bca80d9b42c47b124c0b91a0c06b | c-cube/trustee | congruence_closure.mli |
* { 1 Congruence closure }
module K = Kernel
val prove_cc_eqn : K.ctx -> K.thm list -> K.expr -> K.expr -> K.thm option
* [ prove_cc_eqn ctx hyps t u ] tries to prove [ hyps |- t = u ] by congruence closure .
If it succeeds it returns [ Some ( \Gamma |- t = u ) ] where [ \Gamma ]
is a subset of [ hyps ]... | null | https://raw.githubusercontent.com/c-cube/trustee/07f18db7f4337f07bb0c5526b02bdd86ec9cfa2c/src/core/congruence_closure.mli | ocaml |
* { 1 Congruence closure }
module K = Kernel
val prove_cc_eqn : K.ctx -> K.thm list -> K.expr -> K.expr -> K.thm option
* [ prove_cc_eqn ctx hyps t u ] tries to prove [ hyps |- t = u ] by congruence closure .
If it succeeds it returns [ Some ( \Gamma |- t = u ) ] where [ \Gamma ]
is a subset of [ hyps ]... | |
7c4b071951cf89eb7aa6588fbfe7b65d3162a222a69d9cd7855b38b1fe693664 | juxt/jig | git.clj | Copyright © 2013 , JUXT LTD . 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 b... | null | https://raw.githubusercontent.com/juxt/jig/3997887e5a56faadb1b48eccecbc7034b3d31e41/extensions/git/git.clj | clojure |
The use and distribution terms for this software are covered by the
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 this notice, or any other, from this software.
... | Copyright © 2013 , JUXT LTD . All Rights Reserved .
Eclipse Public License 1.0 ( -1.0.php )
(ns jig.git
(:require
jig
[clojure.tools.logging :refer :all]
[clojure.java.shell :as sh])
(:import (jig Lifecycle)))
(deftype GitPull [config]
Lifecycle
(init [_ system]
system)
(start [_ system]
... |
1703c362bb068820b6c41aa7f0e2b2dcdd975fe7683b0a2bede1b1f4717a039b | HaskellZhangSong/Introduction_to_Haskell_2ed_source | GEq.hs | # LANGUAGE MultiParamTypeClasses , FlexibleInstances #
class GEq a b where
geq :: a -> b -> Bool
instance {-# OVERLAPPABLE #-}Real b => GEq Double b where
geq a b = toRational a == toRational b
instance {-# OVERLAPPABLE #-} Real a => GEq a Double where
geq a b = toRational a == toRational b
instance {-#... | null | https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C16/GEq.hs | haskell | # OVERLAPPABLE #
# OVERLAPPABLE #
# OVERLAPPING # | # LANGUAGE MultiParamTypeClasses , FlexibleInstances #
class GEq a b where
geq :: a -> b -> Bool
geq a b = toRational a == toRational b
geq a b = toRational a == toRational b
geq a b = toRational a == toRational b
|
6d1cb6c87455b50a2d182b2f42a785b3355aa0994ab2382a04840da1d79570d6 | kagamilove0707/F2 | Main.hs | # Language TemplateHaskell , QuasiQuotes , FlexibleContexts #
module Main where
import Language.F2
import Language.F2.Util
import System.IO (hFlush, stdout)
import Control.Arrow (first, second, (>>>))
import Control.Monad.State
import Text.Peggy (defaultDelimiter, peggy, parseString)
[peggy|
space :: ()
= [ \r\n\t... | null | https://raw.githubusercontent.com/kagamilove0707/F2/3e3a9384337c2d511db59b86114d48507eb22255/src/Main.hs | haskell | ' (space / (!" | # Language TemplateHaskell , QuasiQuotes , FlexibleContexts #
module Main where
import Language.F2
import Language.F2.Util
import System.IO (hFlush, stdout)
import Control.Arrow (first, second, (>>>))
import Control.Monad.State
import Text.Peggy (defaultDelimiter, peggy, parseString)
[peggy|
space :: ()
= [ \r\n\t... |
bff726bade15ebe9b2a640773e35ad74b5377e666fe0ca2e3d4df13a7b5ab2e5 | monadbobo/ocaml-core | option.mli | (** [Option] wraps the output [x] of successful functions in [Some x]. Failed
functions return [None]. *)
* Options are preferred over exceptions . For example , use
{ [
let data = [ ( 2 , " two " ) ; ( 5 , " five " ) ; ( 8 , " eight " ) ] ; ;
let f x = match List . data with
| Some y ... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/option.mli | ocaml | * [Option] wraps the output [x] of successful functions in [Some x]. Failed
functions return [None].
where "zero" is some default value
* Options form a monad, where [return x = Some x],
[(None >>= f) = None], and [(Some x >>= f) = f x].
* [is_none t] returns true iff t = None.
* [is_some t] returns true... |
* Options are preferred over exceptions . For example , use
{ [
let data = [ ( 2 , " two " ) ; ( 5 , " five " ) ; ( 8 , " eight " ) ] ; ;
let f x = match List . data with
| Some y - > y
| None - > " zero " ( * where " zero " is some default value
{[
let data = [(2, "two"); (5,... |
d7c2f2913a01d299e718756cdaaabe678e7837927adf4bb34b2760b963a5389b | derui/okeyfum | okeyfum_log.ml | type level =
| DEBUG
| INFO
| ERROR
let level_to_string = function DEBUG -> "debug" | INFO -> "info" | ERROR -> "error"
let level_to_int = function DEBUG -> 0 | INFO -> 1 | ERROR -> 2
let lower_log_level = ref INFO
let set_log_level level = lower_log_level := level
let get_log_level () = !lower_log_level
le... | null | https://raw.githubusercontent.com/derui/okeyfum/bc47c0bea35c00d720dcde0200256a3f2e1312bd/src/okeyfum_log.ml | ocaml | type level =
| DEBUG
| INFO
| ERROR
let level_to_string = function DEBUG -> "debug" | INFO -> "info" | ERROR -> "error"
let level_to_int = function DEBUG -> 0 | INFO -> 1 | ERROR -> 2
let lower_log_level = ref INFO
let set_log_level level = lower_log_level := level
let get_log_level () = !lower_log_level
le... | |
0e0210083c470a8f67aa964d6bbcad78b40f53979ecbb159edaf200c0199b371 | voxoz/emqttd | emqttd.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2013 - 2017 EMQ Enterprise , 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
%%
%% ... | null | https://raw.githubusercontent.com/voxoz/emqttd/2be612e0e7a00a866cd9af350a030966d73fbc09/src/emqttd.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqttd).
-author("Feng Lee <>").
-include("emqttd.hrl").
-include("emqttd_protocol.hrl").
-export([start/0... |
76656bd8f5d32d305faa325857b5dfe702dad83c298e173e31906f5b955543b5 | OCADml/OCADml | bezier2.ml | include Bezier.Make (V2)
let line_intersection ~(line : V2.line) ps =
let ps = Array.of_list ps in
let n = Array.length ps - 1 in
let bez_coefs = coefs' ps
and normal = V2.(v (y line.a -. y line.b) (x line.b -. x line.a)) in
let f i =
if i = n
then V2.(dot (sub bez_coefs.(0) line.a) normal)
else ... | null | https://raw.githubusercontent.com/OCADml/OCADml/f8cd87da86cd5ea4c31ec169c796640ffdc6bdee/lib/bezier2.ml | ocaml | include Bezier.Make (V2)
let line_intersection ~(line : V2.line) ps =
let ps = Array.of_list ps in
let n = Array.length ps - 1 in
let bez_coefs = coefs' ps
and normal = V2.(v (y line.a -. y line.b) (x line.b -. x line.a)) in
let f i =
if i = n
then V2.(dot (sub bez_coefs.(0) line.a) normal)
else ... | |
a9df5537861a69518646d9e4381bbaa2bb68d754c5d8ea4bda8aec8b5cee37d8 | JeanHuguesdeRaigniac/effects-landscape | Types.hs | module Types where
import qualified Data.Map as Map
type Name = String -- variable names
data Exp
= Lit Integer -- expressions
| Var Name
| Plus Exp Exp
| Abs Name Exp
| App Exp Exp
deriving (Show)
data Value
= IntVal Integer -- values
| FunVal Env Name Exp
deriving (Show)
type Env = Map.Map Name... | null | https://raw.githubusercontent.com/JeanHuguesdeRaigniac/effects-landscape/e44aea11053ac4db85b862fab027d3777d35e232/app/Types.hs | haskell | variable names
expressions
values
mapping from names to values
aliases for readability | module Types where
import qualified Data.Map as Map
data Exp
| Var Name
| Plus Exp Exp
| Abs Name Exp
| App Exp Exp
deriving (Show)
data Value
| FunVal Env Name Exp
deriving (Show)
type Steps = Integer
type Variables = [Name]
|
ec85c0b65bf2ac27face07d5d7b091772e8ab7e34ef9b2e5b408c957fa67c1f8 | rbkmoney/erlang_capi_v2 | capi_client_payments.erl | -module(capi_client_payments).
-export([get_payment_by_id/3]).
-export([get_payment_by_external_id/2]).
-export([get_payments/2]).
-export([create_payment/3]).
-export([cancel_payment/4]).
-export([capture_payment/4]).
-export([get_refunds/3]).
-export([get_refund_by_id/4]).
-export([get_refund_by_external_id/2]).
-ex... | null | https://raw.githubusercontent.com/rbkmoney/erlang_capi_v2/438d0a603475c57dddade8c419f0d70fdf86438d/apps/capi_client/src/capi_client_payments.erl | erlang | -module(capi_client_payments).
-export([get_payment_by_id/3]).
-export([get_payment_by_external_id/2]).
-export([get_payments/2]).
-export([create_payment/3]).
-export([cancel_payment/4]).
-export([capture_payment/4]).
-export([get_refunds/3]).
-export([get_refund_by_id/4]).
-export([get_refund_by_external_id/2]).
-ex... | |
e1226b3c4c0c3c04a45710f922701ebe4dae06affc0212c36798de4371353517 | REPROSEC/dolev-yao-star | Vale_Lib_Basic.ml | open Prims
| null | https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Vale_Lib_Basic.ml | ocaml | open Prims
| |
d129449e18ecc29ffd2074a078c92e7cedbd6684fa8460ecf66d9bd6adcd6c36 | instedd/planwise | subs.cljs | (ns planwise.client.providers-set.subs
(:require [re-frame.core :as rf]
[planwise.client.asdf :as asdf]
[planwise.client.utils :as utils]))
(rf/reg-sub
:providers-set/list
(fn [db _]
(get-in db [:providers-set :list])))
(rf/reg-sub
:providers-set/dropdown-options
(fn [db _]
(let [p... | null | https://raw.githubusercontent.com/instedd/planwise/1bc2a5742ae3dc377dddf1f9e9bb60f0d2f59084/client/src/planwise/client/providers_set/subs.cljs | clojure | (ns planwise.client.providers-set.subs
(:require [re-frame.core :as rf]
[planwise.client.asdf :as asdf]
[planwise.client.utils :as utils]))
(rf/reg-sub
:providers-set/list
(fn [db _]
(get-in db [:providers-set :list])))
(rf/reg-sub
:providers-set/dropdown-options
(fn [db _]
(let [p... | |
f037fabb1d650ddc34edcf529209527ff6f98b65a920e780e490cc990fd4e3ae | Eventuria/demonstration-gsd | Definitions.hs | module Eventuria.Libraries.CQRS.Write.CommandConsumption.Definitions where
import Control.Exception
import Streamly (SerialT)
import Eventuria.Commons.Logger.Core
import Eventuria.Libraries.PersistedStreamEngine.Interface.PersistedItem
import Eventuria.Libraries.PersistedStreamEngine.Interface.Read.Reading
import E... | null | https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/Libraries/CQRS/Write/CommandConsumption/Definitions.hs | haskell | module Eventuria.Libraries.CQRS.Write.CommandConsumption.Definitions where
import Control.Exception
import Streamly (SerialT)
import Eventuria.Commons.Logger.Core
import Eventuria.Libraries.PersistedStreamEngine.Interface.PersistedItem
import Eventuria.Libraries.PersistedStreamEngine.Interface.Read.Reading
import E... | |
722131b7b5c8c1308d4431cdb10d045edfa4a869779144ca6bb16e85d78d19c0 | nspin/hs-arm | Types.hs | module Harm.Types
( module Harm.Types.W
, module Harm.Types.I
, viewI
, viewW
, module Harm.Types.Operands
) where
import Harm.Types.W
import Harm.Types.I
import Harm.Types.Operands
import GHC.TypeLits
-- TODO(nspin)
viewI :: KnownNat n => W n -> I n
viewI = fromIntegral
viewW :: KnownNat n ... | null | https://raw.githubusercontent.com/nspin/hs-arm/8f10870a4afbbba010e78bd98e452ba67adc34e0/harm/harm-types/src/Harm/Types.hs | haskell | TODO(nspin) | module Harm.Types
( module Harm.Types.W
, module Harm.Types.I
, viewI
, viewW
, module Harm.Types.Operands
) where
import Harm.Types.W
import Harm.Types.I
import Harm.Types.Operands
import GHC.TypeLits
viewI :: KnownNat n => W n -> I n
viewI = fromIntegral
viewW :: KnownNat n => I n -> W n
v... |
0bc8dbec4851e1ac8ab6e0bef31cead48bcd464bbdf623d58eff0abeaeeab525 | borodust/alien-works | packages.lisp | (alien-works.utils:define-umbrella-package :alien-works
#:alien-works.memory
#:alien-works.math
#:alien-works.host
#:alien-works.audio
#:alien-works.graphics
#:alien-works.framework)
| null | https://raw.githubusercontent.com/borodust/alien-works/2c5e2368edb453480446640d0df828ad2be8e80e/src/packages.lisp | lisp | (alien-works.utils:define-umbrella-package :alien-works
#:alien-works.memory
#:alien-works.math
#:alien-works.host
#:alien-works.audio
#:alien-works.graphics
#:alien-works.framework)
| |
ee60d29b1a7657e2d0538bb8c8b62250e96dc9714dddd3bd7c0ad8c6eab6e09b | google/mlir-hs | PatternUtil.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/7fa3a050b17ee94508a07fba8b32a312a967b8bd/src/MLIR/AST/PatternUtil.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 ,
module MLIR.AST.PatternUtil
( pattern I32ArrayAttr
, pattern I64ArrayAttr
, pattern AffineMapArrayAttr
, DummyIx
) where
import Data.Trav... |
800bef0c98713ca1aed8194236199664d91d971f0677631ecfdbc84026ea095c | chr15m/c64core | 0-download-latest.cljs | (ns dl
(:require
["fs" :as fs]
["mkdirp$default" :as mkdirp]
["node-fetch$default" :as fetch]
[common :refer [log env bail]]
[nbb.core :refer [*file*]]))
(log *file* "Hello.")
(def board (or (env "PINTEREST_BOARD") (bail "PINTEREST_BOARD is not set.")))
(def fresh-pins-url (str "/" board "/pins... | null | https://raw.githubusercontent.com/chr15m/c64core/1a00c0de71172275d178d6d2465c45b16e9fd612/0-download-latest.cljs | clojure | (ns dl
(:require
["fs" :as fs]
["mkdirp$default" :as mkdirp]
["node-fetch$default" :as fetch]
[common :refer [log env bail]]
[nbb.core :refer [*file*]]))
(log *file* "Hello.")
(def board (or (env "PINTEREST_BOARD") (bail "PINTEREST_BOARD is not set.")))
(def fresh-pins-url (str "/" board "/pins... | |
9b9d240fb686259465360afee27ef6cffbb9d6b7c253e0bfea4ae2bff3c77761 | mikelevins/folio2 | functions-functions.lisp | ;;;; ***********************************************************************
;;;;
;;;; Name: functions.lisp
;;;; Project: folio2 - Functional idioms for Common Lisp
;;;; Purpose: functional tools
;;;; Author: mikel evins
Copyright : 2015 by mikel evins
;;;;
;;;; **********************... | null | https://raw.githubusercontent.com/mikelevins/folio2/a96052f78f0e0358376a498c6351342ece6a9b7b/src/functions-functions.lisp | lisp | ***********************************************************************
Name: functions.lisp
Project: folio2 - Functional idioms for Common Lisp
Purpose: functional tools
Author: mikel evins
***********************************************************************
function flip
(fli... | Copyright : 2015 by mikel evins
(in-package :net.bardcode.folio2.functions)
(defun flip (f) (lambda (x y) (funcall f y x)))
(defmethod function? (thing)
(declare (ignore thing))
nil)
(defmethod function? ((thing function))
(declare (ignore thing))
t)
(defmethod function? ((thing generic-function))... |
cdddb6c4e5546367e58e8450348545031eaea871b592c10413268242e84edf30 | bitnomial/prometheus | Push.hs | {-# LANGUAGE OverloadedStrings #-}
module System.Metrics.Prometheus.Http.Push (
pushMetrics,
parseURI,
) where
import Control.Concurrent (threadDelay)
import Control.Monad (forever)
import Data.ByteString.Builder (toLazyByteString)
import Data.Map (foldMapWithKey)
import Data.Text (Text, unpack)
import Networ... | null | https://raw.githubusercontent.com/bitnomial/prometheus/b7d3160e2a4d971fe03bef6b43fe8bf15a9c9349/src/System/Metrics/Prometheus/Http/Push.hs | haskell | # LANGUAGE OverloadedStrings #
| Parses a uri such that
@
parseURI ""
===
Just (URI "https:" "//example.com"
@
| Job name
| Label set to use as a grouping key for metrics
| Action to get latest metrics |
module System.Metrics.Prometheus.Http.Push (
pushMetrics,
parseURI,
) where
import Control.Concurrent (threadDelay)
import Control.Monad (forever)
import Data.ByteString.Builder (toLazyByteString)
import Data.Map (foldMapWithKey)
import Data.Text (Text, unpack)
import Network.HTTP.Client (
Request (..),
... |
35e74cb67182ae26201bcd79628042b825e566fae507dc2119613a1fceaa74f7 | lambdamikel/DLMAPS | galen-1a.lisp | (define-primitive-role R1)
(define-primitive-role R2)
(define-primitive-role R3)
(define-primitive-role R4)
(define-primitive-role R5)
(define-primitive-role R6)
(define-primitive-role R7)
(define-primitive-role R8)
(define-primitive-role R9)
(define-primitive-role R10)
(define-primitive-role R11)
(define-primitive-rol... | null | https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/prover/KBs/galen-1a.lisp | lisp | (define-primitive-role R1)
(define-primitive-role R2)
(define-primitive-role R3)
(define-primitive-role R4)
(define-primitive-role R5)
(define-primitive-role R6)
(define-primitive-role R7)
(define-primitive-role R8)
(define-primitive-role R9)
(define-primitive-role R10)
(define-primitive-role R11)
(define-primitive-rol... | |
27ff47b206123bc1202eafbddd21562da0bcad2b2804e88be2cfdfaaee1275ec | lisp-mirror/clpm | install.lisp | ;;;; clpm install
;;;;
This software is part of CLPM . See README.org for more information . See
;;;; LICENSE for license information.
(uiop:define-package #:clpm-cli/commands/install
(:use #:cl
#:clpm-cli/common-args
#:clpm-cli/interface-defs)
(:import-from #:adopt)
(:import-from #:clpm)... | null | https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/cli/commands/install.lisp | lisp | clpm install
LICENSE for license information. | This software is part of CLPM . See README.org for more information . See
(uiop:define-package #:clpm-cli/commands/install
(:use #:cl
#:clpm-cli/common-args
#:clpm-cli/interface-defs)
(:import-from #:adopt)
(:import-from #:clpm))
(in-package #:clpm-cli/commands/install)
(adopt:define-st... |
a64c0d6ab4b27b2eb75e35cbfd8c925b564c5b4104e041a084934f675a0f6f1d | theam/haskell-do | State.hs |
- Copyright ( c ) 2017 The Agile Monkeys S.L. < >
-
- Licensed under the Apache License , Version 2.0 ( the " License " ) ;
- you may not use this file except in compliance with the License .
- You may obtain a copy of the License at
-
- -2.0
-
- Unless required by applicable law or agr... | null | https://raw.githubusercontent.com/theam/haskell-do/f339e57859d308437a72800bda08f96d0de12982/src/common/HaskellDo/CodeMirror/State.hs | haskell |
- Copyright ( c ) 2017 The Agile Monkeys S.L. < >
-
- Licensed under the Apache License , Version 2.0 ( the " License " ) ;
- you may not use this file except in compliance with the License .
- You may obtain a copy of the License at
-
- -2.0
-
- Unless required by applicable law or agr... | |
78245e1f1bf6bbc7062048fbe7c5298012ac955b787a7be5134a50ea63cb99d3 | ygmpkk/house | Draw.hs | module Graphics.HGL.Win32.Draw
( DrawFun, drawGraphic, drawBufferedGraphic, drawBufferedGraphicBC
, drawBufferedGraphic
, saveGraphic
, withBitmap
, setDefaults
, createCompatibleBitmap, withCompatibleBitmap, withCompatibleDC, withDC
, createBitmapFile
) where
import Graphics.HGL.Win32.Types
import qualified G... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/HGL/Graphics/HGL/Win32/Draw.hs | haskell | --------------------------------------------------------------
We omit this because it should be redundant (since mode is transparent)
And because it causes some examples to crash.
Maybe you're not allowed to set a color if the mode is transparent?
--------------------------------------------------------------
Note... | module Graphics.HGL.Win32.Draw
( DrawFun, drawGraphic, drawBufferedGraphic, drawBufferedGraphicBC
, drawBufferedGraphic
, saveGraphic
, withBitmap
, setDefaults
, createCompatibleBitmap, withCompatibleBitmap, withCompatibleDC, withDC
, createBitmapFile
) where
import Graphics.HGL.Win32.Types
import qualified G... |
5034541b5cb141a5c3f70a2b18badf5130dc604b5833ce99a87efc720fa001f1 | janegca/htdp2e | Exercise-323-eval-function.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-323-eval-function) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t c... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/04-Intertwined%20Data/Exercise-323-eval-function.rkt | racket | about the language level of this file in a form that our tools can easily process.
the interactions area assuming the definitions area contains da.
of some function f, it
function’s body; and
Remember that the representation of a function definition for f comes with
a parameter and a body.
or an appl... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-323-eval-function) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
Exercise 323 .
Design eval - func... |
ed745a94bcb4ad9cd2b04c8f86eaf4b5c226be3655a89970b3d03d5137a74d6d | eudoxia0/lcm | cli.lisp | (in-package :lcm)
(defparameter +version+ "0.0.1")
;;;; Classes to represent CLI commands.
(defclass command ()
()
(:documentation "The base class of CLI commands."))
(defclass help-command (command)
()
(:documentation "Command to print usage information."))
(defclass version-command (command)
()
(:doc... | null | https://raw.githubusercontent.com/eudoxia0/lcm/a831bc949da8c9dcc59499fca1a392cd7ce83668/src/cli.lisp | lisp | Classes to represent CLI commands.
Command parsing.
Empty list: print help | (in-package :lcm)
(defparameter +version+ "0.0.1")
(defclass command ()
()
(:documentation "The base class of CLI commands."))
(defclass help-command (command)
()
(:documentation "Command to print usage information."))
(defclass version-command (command)
()
(:documentation "Command to print version inf... |
f7a20e4eff89784dc88bffe9f955dd147a1eb0c2fa0049ed105ff5a2bfb62890 | mdedwards/slippery-chicken | pitches-examples.lsp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; File: pitches-examples.lsp
;;;
Class Hierarchy : None
;;;
Version : 1.0
;;;
;;; Project: slippery chicken (algorithmic composition)
;;;
;;; Purpose: Lisp-code examples to accompany pitches.h... | null | https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/pitches-examples.lsp | lisp |
File: pitches-examples.lsp
Project: slippery chicken (algorithmic composition)
Purpose: Lisp-code examples to accompany pitches.html
Creation date: 17th July 2012
****
This file is part of slippery-chicken
slippery-chicken is free s... | Class Hierarchy : None
Version : 1.0
Author :
$ $ Last modified : 22:45:33 Fri May 17 2013 BST
SVN ID : $ I d : pitches-examples.lsp 3538 2013 - 05 - 18 08:29:15Z medward2 $
Licence : Copyright ( c ) 2012
Public License as published by the Free Softwa... |
f7e3e1c97a8bec8ca97574ce81d7f5e85a2df331e7984c1347ea388c8e59c05d | gebi/jungerl | ssh_rsa.erl | %%% File : ssh_rsa.erl
Author : < >
Description : RSA encrypt / decrypt / verify / sign ( rfc 3447 )
Created : 30 Aug 2004 by < >
-module(ssh_rsa).
-vsn("$Revision$ ").
-rcsid("$Id$\n").
-compile(export_all).
-export([verify/3]).
-include("../include/ssh.hrl").
-include("PKCS-1.hrl").
-define(... | null | https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/ssh/src/ssh_rsa.erl | erlang | File : ssh_rsa.erl
[Public, Mb, Sb]),
decrypt1, M = message representative
M messaage
LLen = size(L),
Must use speical xxNull types here!
Mask generating function MGF1 | Author : < >
Description : RSA encrypt / decrypt / verify / sign ( rfc 3447 )
Created : 30 Aug 2004 by < >
-module(ssh_rsa).
-vsn("$Revision$ ").
-rcsid("$Id$\n").
-compile(export_all).
-export([verify/3]).
-include("../include/ssh.hrl").
-include("PKCS-1.hrl").
-define(MGF(Seed,Len), mgf1((Seed)... |
28e574b9383501f8e93fee11818e07b0e44e3d8505619826806addce64e77062 | phantomics/seed | stage-controls.graph.lisp | ;;;; stage-controls.graph.lisp
(in-package #:seed.ui-spec.stage.base)
(defmacro stage-controls-graph-base (meta-symbol spec-symbol params-symbol output-symbol)
(declare (ignorable spec-symbol))
`(((eq :add-graph-node (first ,params-symbol))
(cons `(,',meta-symbol :add-node :mode (:interaction :add-graph-node... | null | https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/seed.ui-spec.stage-controls.graph/stage-controls.graph.lisp | lisp | stage-controls.graph.lisp |
(in-package #:seed.ui-spec.stage.base)
(defmacro stage-controls-graph-base (meta-symbol spec-symbol params-symbol output-symbol)
(declare (ignorable spec-symbol))
`(((eq :add-graph-node (first ,params-symbol))
(cons `(,',meta-symbol :add-node :mode (:interaction :add-graph-node))
,output-symbol))
((e... |
024373f17c180438869d0c803781a1e036500e5f729ece8951bb2ee809e4aa4a | CompSciCabal/SMRTYPRTY | greg-6.rkt | #lang racket
(print-as-expression #f)
;(pretty-print-abbreviate-read-macros #f)
(define-syntax example
(syntax-rules ()
((_ e) (begin (newline)
(pretty-print 'e)
(displayln "==>")
(pretty-print e)))))
(define (sub* env d)
(define (loop d) (sub* env d))
(c... | null | https://raw.githubusercontent.com/CompSciCabal/SMRTYPRTY/4a5550789c997c20fb7256b81469de1f1fce3514/paip/gregr/greg-6.rkt | racket | (pretty-print-abbreviate-read-macros #f)
Swap these to minimize greed.
(define eliza-rule-system
(rule-system pat-match car cdr
(lambda (env responses)
(sub* (switch-viewpoint env)
(random-elt responses)))))
(define (use-eliza-rules input)
(set! debug-search? #t) wherever you'd like to step through search examples.
(... | #lang racket
(print-as-expression #f)
(define-syntax example
(syntax-rules ()
((_ e) (begin (newline)
(pretty-print 'e)
(displayln "==>")
(pretty-print e)))))
(define (sub* env d)
(define (loop d) (sub* env d))
(cond ((assoc d env) => (lambda (old-new) (c... |
5638bc42e822e8e5b80a98a2e6c9951b89eb17c5c9f0e40fd85e447a6766b4ae | ejgallego/dfuzz | whyCore.ml | Copyright ( c ) 2013 , The Trustees of the University of Pennsylvania
Copyright ( c ) 2013 , The IMDEA Software Institute
All rights reserved .
LICENSE : 3 - clause BSD style .
See the LICENSE file for details on licensing .
Copyright (c) 2013, The IMDEA Software Institute
All rights rese... | null | https://raw.githubusercontent.com/ejgallego/dfuzz/09b408e4f917cdd6945bdc20b7dd325ff80e5843/src/whyCore.ml | ocaml | Read the config file
the [main] section of the config file
all the provers detected, from the config file
builds the environment from the [loadpath] | Copyright ( c ) 2013 , The Trustees of the University of Pennsylvania
Copyright ( c ) 2013 , The IMDEA Software Institute
All rights reserved .
LICENSE : 3 - clause BSD style .
See the LICENSE file for details on licensing .
Copyright (c) 2013, The IMDEA Software Institute
All rights rese... |
b7212e93b3393a780fd92cb5a2c79a39768bcf3c42247ffa4b5f9eb5c83e6379 | deadpendency/deadpendency | GetCheckRunOutputRequest.hs | module Common.GitHub.GetCheckRunOutput.Model.GetCheckRunOutputRequest
( GetCheckRunOutputRequest (..),
)
where
import Common.Model.Git.GitSha
import Common.Model.Git.QualifiedRepo
data GetCheckRunOutputRequest = GetCheckRunOutputRequest
{ _appId :: Int,
_qualifiedRepo :: QualifiedRepo,
_commitSha :: Git... | null | https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/GitHub/GetCheckRunOutput/Model/GetCheckRunOutputRequest.hs | haskell | module Common.GitHub.GetCheckRunOutput.Model.GetCheckRunOutputRequest
( GetCheckRunOutputRequest (..),
)
where
import Common.Model.Git.GitSha
import Common.Model.Git.QualifiedRepo
data GetCheckRunOutputRequest = GetCheckRunOutputRequest
{ _appId :: Int,
_qualifiedRepo :: QualifiedRepo,
_commitSha :: Git... | |
1e85b30f3d6a85ad9e779427466bde69dccb7f78b0051e6739ade5a54b3ba4e7 | OCamlPro/OCamlPro-OCaml-Branch | odoc_merge.ml | (***********************************************************************)
(* OCamldoc *)
(* *)
, projet Cristal , INRIA Rocquencourt
(* ... | null | https://raw.githubusercontent.com/OCamlPro/OCamlPro-OCaml-Branch/3a522985649389f89dac73e655d562c54f0456a5/inline-more/ocamldoc/odoc_merge.ml | ocaml | *********************************************************************
OCamldoc
... | , projet Cristal , INRIA Rocquencourt
Copyright 2001 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ Id$
* Merge of information from [ .ml... |
3290cb46b6b8cd148d83d96664235e1fa016f2e1dc2dcab115372c7e76423297 | himura/twitter-conduit | Request.hs | # LANGUAGE DataKinds #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Rank2Types #-}
# LANGUAGE TypeFamilies #
module Web.Twitter.Conduit.Request (
HasParam,
APIRequest (..),
) where
import Data.Aeson
import GHC.TypeLits (Symbol)
import Network.HTTP.Client.MultipartFormData
import qualified Network.HTTP.Type... | null | https://raw.githubusercontent.com/himura/twitter-conduit/a327d7727faf2fb38f54f48ef0a61cbc5537b5d2/src/Web/Twitter/Conduit/Request.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE Rank2Types #
$setup
>>> :set -XOverloadedStrings -XDataKinds -XTypeOperators
>>> import Web.Twitter.Conduit.Parameters
| API request. You should use specific builder functions instead of building this directly.
For example, if there were a @SampleApi@ type and a builder f... | # LANGUAGE DataKinds #
# LANGUAGE TypeFamilies #
module Web.Twitter.Conduit.Request (
HasParam,
APIRequest (..),
) where
import Data.Aeson
import GHC.TypeLits (Symbol)
import Network.HTTP.Client.MultipartFormData
import qualified Network.HTTP.Types as HT
import Web.Twitter.Conduit.Request.Internal
> > > im... |
6832eff4f24f32ed30f5e96f9bb8e96c9a3009f5de9a6ed3cb02e818f60bf5a7 | ocaml-multicore/tezos | ticket_lazy_storage_diff.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 , < >
(* ... | null | https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/ticket_lazy_storage_diff.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 , < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN A... |
63065ced93c598d579e4c91d56a140b47e95548f514945cf11e1b6b08514f455 | armedbear/abcl | source-transform.lisp | ;;; source-transform.lisp
;;;
Copyright ( C ) 2004 - 2005
$ Id$
;;;
;;; This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later v... | null | https://raw.githubusercontent.com/armedbear/abcl/0631ea551523bb93c06263e772fbe849008e2f68/src/org/armedbear/lisp/source-transform.lisp | lisp | source-transform.lisp
This program is free software; you can redistribute it and/or
either version 2
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public L... | Copyright ( C ) 2004 - 2005
$ Id$
modify it under the terms of the GNU General Public License
of the License , or ( at your option ) any later version .
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
(... |
421fea4f27a0b0f2ca18e98669d0dce90630e7db539cea38d14523b40d6f828b | wireless-net/erlang-nommu | reltool_target.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2009 - 2013 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Publi... | null | https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/reltool/src/reltool_target.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitatio... | Copyright Ericsson AB 2009 - 2013 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(reltool_target).
-export([
... |
f4d69cbc30170e30737f48d147a07a395e2c7fbbd9b5f164a14007799fd76f23 | erlang/otp | etop.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2002 - 2022 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applic... | null | https://raw.githubusercontent.com/erlang/otp/eccc556e79f315d1f87c10fb46f2c4af50a63f20/lib/observer/src/etop.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific l... | Copyright Ericsson AB 2002 - 2022 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(etop).
-author('').
-export([start/0, start/1, config/2, stop/0, dump/1, help/0]).
Internal
-export([updat... |
efd2d891fcca6630fe9c37b4e087cedc137a6d632ef8e6c9e24a3e27010bfb4c | shirok/Gauche | compile-4.scm | ;;;
compile-4.scm - The compiler : Pass 4
;;;
Copyright ( c ) 2004 - 2022 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Redistributions of source code must retain the abov... | null | https://raw.githubusercontent.com/shirok/Gauche/17a001bc3769adcbb7b2ee1fd9885ae8db336487/src/compile-4.scm | scheme |
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in b... | compile-4.scm - The compiler : Pass 4
Copyright ( c ) 2004 - 2022 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
F... |
bb6d2372d7641396d4c186e977dda7b05f868bdad4586ffc3ea392720ae409b0 | pdarragh/camlrack | errors.ml | exception CamlrackError of string
| null | https://raw.githubusercontent.com/pdarragh/camlrack/b80f35a973529f029c0715b83ce64c1de4e8467d/camlrack/src/errors.ml | ocaml | exception CamlrackError of string
| |
60e8c0a3229c258f0d013edfe040c87c7991e9f855d6ad9918dd391e1857819d | lmj/lfarm | kernel-test.lisp | Copyright ( c ) 2013 , . All rights reserved .
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; * Redistributions of source code must retain the above copyright
;;; notice, this list of c... | null | https://raw.githubusercontent.com/lmj/lfarm/f7ba49f1ec01fb99a7aeb8f18e245a44411c361b/lfarm-test/kernel-test.lisp | lisp |
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary... | Copyright ( c ) 2013 , . All rights reserved .
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL ,
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT
THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR T... |
d356c69821ff82fe863f6756a0f53bcd38b82bfa7b55ab1970dbe2437c4838ee | hunt-framework/hunt | CLI.hs | module Hunt.CLI
( CLI.run
, parser
) where
import Data.Monoid ((<>))
import qualified Hunt.CLI.Command as CLI
import qualified Hunt.Client as HC
import Options.Applicative
-- PARSER
| Build the full parser for parsing a @Command@
-- from command line arguments.
pars... | null | https://raw.githubusercontent.com/hunt-framework/hunt/d692aae756b7bdfb4c99f5a3951aec12893649a8/hunt-cli/src/Hunt/CLI.hs | haskell | PARSER
from command line arguments. | module Hunt.CLI
( CLI.run
, parser
) where
import Data.Monoid ((<>))
import qualified Hunt.CLI.Command as CLI
import qualified Hunt.Client as HC
import Options.Applicative
| Build the full parser for parsing a @Command@
parser :: ParserInfo CLI.Command
parser = inf... |
c1aaabcc2465811715919aaab0ea9321ff03df9b1b3edfd8150681cc84f6d338 | adamwalker/clash-utils | Hamming.hs | |
Hamming code encoding and decoding . .
_ _ FPGA proven _ _
Hamming code encoding and decoding. .
__FPGA proven__
-}
module Clash.ErrorControl.Hamming (
generator,
hammingParity,
correctError',
correctError
) where
import qualified Prelude as P
import qualified Data.List ... | null | https://raw.githubusercontent.com/adamwalker/clash-utils/375c61131e21e9a239b80bdb929ae77f156d056f/src/Clash/ErrorControl/Hamming.hs | haskell | | Calculate hamming parity bits given the generator matrix and data
^ Parity bits generator matrix
^ Input vector
^ Parity bits
TODO: there is probably a smarter way of doing this
| Correct a single bit error in a hamming code word
^ Parity bits generator matrix
^ Parity bits which are wrong
^ Data bits
^ Corr... | |
Hamming code encoding and decoding . .
_ _ FPGA proven _ _
Hamming code encoding and decoding. .
__FPGA proven__
-}
module Clash.ErrorControl.Hamming (
generator,
hammingParity,
correctError',
correctError
) where
import qualified Prelude as P
import qualified Data.List ... |
6e4cd45219670f345557faefdb3681a5d8dc43b0c9593dd86fbdb3633130c387 | data61/Mirza | API.hs | # LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
module Mirza.Trails.API where
import Mirza.Trails.Types (SignaturePlaceholder, TrailEntry)
import Mirza.Common.Types (HealthResponse)
import Data.GS1.EventId (EventId)
import Servant
import Servant.Swagger.U... | null | https://raw.githubusercontent.com/data61/Mirza/24e5ccddfc307cceebcc5ce26d35e91020b8ee10/projects/trails/src/Mirza/Trails/API.hs | haskell | This serves both: swagger.json and swagger-ui
TODO: Should fix this type so that its the correct status code. | # LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
module Mirza.Trails.API where
import Mirza.Trails.Types (SignaturePlaceholder, TrailEntry)
import Mirza.Common.Types (HealthResponse)
import Data.GS1.EventId (EventId)
import Servant
import Servant.Swagger.U... |
b1b3f2eaa7518e36868c859a657f45673bf964aefe6ac4561cb3bc10b9c7df3b | mokus0/junkbox | Unloadable.hs | {-# LANGUAGE EmptyDataDecls #-}
-- hypothetical interface for 'unloadable' plugins. the idea being that
-- a plugin can be loaded and then tracked at the type level so that when
-- the user asks to unload it, all values that were constructed from it
-- become invalidated. Alternatively, the user has the option of ex... | null | https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Projects/plugins/src/System/Plugins/Unloadable.hs | haskell | # LANGUAGE EmptyDataDecls #
hypothetical interface for 'unloadable' plugins. the idea being that
a plugin can be loaded and then tracked at the type level so that when
the user asks to unload it, all values that were constructed from it
become invalidated. Alternatively, the user has the option of explicitly
pin... |
module System.Plugins.Unloadable where
import Control.Applicative
import System.Plugins.Loadable
import Control.DeepSeq
data Unloadable t
instance Functor Unloadable
instance Applicative Unloadable
instance Monad Unloadable
load :: Loadable t -> IO (Unloadable t)
unload :: Un... |
19fdf8549822a3a17a81928a1873bcb0bffd21fafdc7bc38a3a382904474f2b3 | lylek/vintage-basic | DurableTraps.hs | # LANGUAGE FlexibleContexts , RankNTypes #
| Support for advanced exception handling within the CPST monad .
module Control.Monad.CPST.DurableTraps where
import Control.Monad.CPST
import Control.Monad.CPST.ExceptionHandlers(capture,install,raise)
class ResultType o where
okValue :: o
| A continuation in th... | null | https://raw.githubusercontent.com/lylek/vintage-basic/6cb46767aeb6d2c0b9da4175c7fa8c0ffc31b1c7/src/Control/Monad/CPST/DurableTraps.hs | haskell | throw exceptions.
| The full-blown exception including not only an exception value,
but a handler stack and continuation. Having all this allows
an exception handler to manipulate the handler stack or resume
using the exception's continuation.
| Packages the current continuation with the exception value,
and ... | # LANGUAGE FlexibleContexts , RankNTypes #
| Support for advanced exception handling within the CPST monad .
module Control.Monad.CPST.DurableTraps where
import Control.Monad.CPST
import Control.Monad.CPST.ExceptionHandlers(capture,install,raise)
class ResultType o where
okValue :: o
| A continuation in th... |
9a63f4d4a835f9cce9106dd5e9f280301c796b039e76156bed8770df12a5c656 | swarmpit/swarmpit | util.cljs | (ns material.component.list.util
(:refer-clojure :exclude [filter])
(:require [swarmpit.utils :refer [map-values]]))
(defn- primary-key
[render-metadata]
(->> (clojure.core/filter #(= true (:primary %)) render-metadata)
(first)
:key))
(defn render-keys
[render-metadata]
(->> render-metadata
... | null | https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/material/component/list/util.cljs | clojure | (ns material.component.list.util
(:refer-clojure :exclude [filter])
(:require [swarmpit.utils :refer [map-values]]))
(defn- primary-key
[render-metadata]
(->> (clojure.core/filter #(= true (:primary %)) render-metadata)
(first)
:key))
(defn render-keys
[render-metadata]
(->> render-metadata
... | |
1e0d1c9a00b913cc682aa56e9815dde3c499ec474fcb8c3cc5411c01159044ad | chumsley/jwacs | test-ugly-print.lisp | ;;;; test-ugly-print.lisp
;;;
;;; Tests for the ugly printer
;;;
Copyright ( c ) 2005
;;; See LICENSE for full licensing details.
;;;
(in-package :jwacs-tests)
;;;; Helper functions
(defun ugly-string (elm)
"Uglyprint LM to a string value instead of a stream"
(with-output-to-string (s)
(ugly-print elm s)))... | null | https://raw.githubusercontent.com/chumsley/jwacs/c25adb3bb31fc2dc6e8c8a58346949ee400633d7/tests/test-ugly-print.lisp | lisp | test-ugly-print.lisp
Tests for the ugly printer
See LICENSE for full licensing details.
Helper functions
Test categories
Ugly-printer tests
function foo(x) <-- this x could be JW0
{
< -- this x should be JW1 not 0
bar(x); <-- this x should be JW1
}
"))))
... | Copyright ( c ) 2005
(in-package :jwacs-tests)
(defun ugly-string (elm)
"Uglyprint LM to a string value instead of a stream"
(with-output-to-string (s)
(ugly-print elm s)))
(defmacro with-fresh-genvar (&body body)
"Make sure that GENVAR variable names will start from 0 and that
continuation arguments... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.