_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 |
|---|---|---|---|---|---|---|---|---|
d02c94e02eccb4d69304bb34d15eab76fb9d23d0c4f3652130999de0fadeda21 | elastic/eui-cljs | icon_ip.cljs | (ns eui.icon-ip
(:require ["@elastic/eui/lib/components/icon/assets/ip.js" :as eui]))
(def ip eui/icon)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_ip.cljs | clojure | (ns eui.icon-ip
(:require ["@elastic/eui/lib/components/icon/assets/ip.js" :as eui]))
(def ip eui/icon)
| |
33f7990d098eeb4b3ef7ccb5060289f4dea253d321b4faa20eba275c491a27fd | clojure/core.rrb-vector | test_clj_only.clj | (ns clojure.core.rrb-vector.test-clj-only
(:require [clojure.test :as test :refer [deftest testing is are]]
[clojure.template :refer [do-template]]
[clojure.reflect :as ref]
[clojure.core.rrb-vector.test-utils :as u]
[clojure.core.rrb-vector :as fv]
[clojure... | null | https://raw.githubusercontent.com/clojure/core.rrb-vector/88c2f814b47c0bbc4092dad82be2ec783ed2961f/src/test/clojure/clojure/core/rrb_vector/test_clj_only.clj | clojure | now at least this test is clj-only.
Note: according to several deftest forms within the test.check
library's own internal set of tests, it
uses (is (:result (tc/quick-check ...))) to check whether a result
passes or fails.
have the same value. I like the descriptiveness of :pass? better,
and would prefer to u... | (ns clojure.core.rrb-vector.test-clj-only
(:require [clojure.test :as test :refer [deftest testing is are]]
[clojure.template :refer [do-template]]
[clojure.reflect :as ref]
[clojure.core.rrb-vector.test-utils :as u]
[clojure.core.rrb-vector :as fv]
[clojure... |
76daaa03b42a9857632804176013ac187d57588d2df796aeb41313bb341a49a7 | lf-/hsfixit | Diagnostic.hs | # LANGUAGE TemplateHaskell #
| Extremely boneless version of the new GHC diagnostics infrastructure ,
-- suitable for jsonification
module Hsfixit.Types.Diagnostic where
import ClassyPrelude
import Data.Aeson
import Data.Aeson.TH
import Data.List.NonEmpty
import Hsfixit.Types.Aeson
| This is a serializable and ... | null | https://raw.githubusercontent.com/lf-/hsfixit/6c8275906a911b9caee58b5dd002fcca18224259/hsfixit-types/src/Hsfixit/Types/Diagnostic.hs | haskell | suitable for jsonification
It uses the same convention for end position: it's the column after the
instance without something else here
| FIXME(jade): how do you represent structured messages that *don't* have an
unstructured version, for instance if we are the ones generating them?
don't, and instead make... | # LANGUAGE TemplateHaskell #
| Extremely boneless version of the new GHC diagnostics infrastructure ,
module Hsfixit.Types.Diagnostic where
import ClassyPrelude
import Data.Aeson
import Data.Aeson.TH
import Data.List.NonEmpty
import Hsfixit.Types.Aeson
| This is a serializable and GHC - independent RealSrcSpan
... |
913b4494a64d6e2d7378a9ef97dc007b3231aa0e4853268920375f36ec631f71 | EduardSergeev/monad-memo | Instances.hs | |
Module : Data . . Instances
Copyright : ( c ) 2013
License : BSD - style ( see the file LICENSE )
Maintainer :
Stability : experimental
Portability : non - portable ( multi - param classes , functional dependencies )
Defines default instances of ` MaybeLike ` for m... | null | https://raw.githubusercontent.com/EduardSergeev/monad-memo/f941013e45c5e190ebce08935857ec10355584fd/Data/MaybeLike/Instances.hs | haskell | # INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust #
# INLINE fromJust # | |
Module : Data . . Instances
Copyright : ( c ) 2013
License : BSD - style ( see the file LICENSE )
Maintainer :
Stability : experimental
Portability : non - portable ( multi - param classes , functional dependencies )
Defines default instances of ` MaybeLike ` for m... |
9c2ac62263f332776cbc5360467b9c744a129e5b7a26f3b84a66623785b8dde7 | Swirrl/cubiql | dataset_model.clj | (ns cubiql.dataset-model
(:require [cubiql.config :as config]
[cubiql.util :as util]
[grafter.rdf.sparql :as sp]
[clojure.string :as string]
[cubiql.types :as types]
[cubiql.vocabulary :refer :all]))
(defn find-all-datasets-query [configuration]
(str
... | null | https://raw.githubusercontent.com/Swirrl/cubiql/67efdc51750b9ac4fd1cdfbcddfb80398189807f/src/cubiql/dataset_model.clj | clojure | (ns cubiql.dataset-model
(:require [cubiql.config :as config]
[cubiql.util :as util]
[grafter.rdf.sparql :as sp]
[clojure.string :as string]
[cubiql.types :as types]
[cubiql.vocabulary :refer :all]))
(defn find-all-datasets-query [configuration]
(str
... | |
785d11085a8e80fb67c2b75516d53bcf4dadb0ff8d0dde89f878722fafb02ad5 | HachiSecurity/plc-llvm | IRBuilder.hs | | This module provides convenience functions for constructing LLVM IR ,
-- including more flexible versions of functions found in 'LLVM.IRBuilder'.
module Hachi.Compiler.CodeGen.IRBuilder (
-- * Re-exports
module IR,
-- * Modifiers
setLinkage,
HasCC(..),
HasReturnAttr(..),
HasFunctionAttr... | null | https://raw.githubusercontent.com/HachiSecurity/plc-llvm/c99c8d58ec7cbbb8942604338cfde00ad23e7f13/compiler/src/Hachi/Compiler/CodeGen/IRBuilder.hs | haskell | including more flexible versions of functions found in 'LLVM.IRBuilder'.
* Re-exports
* Modifiers
* Globals
* Instructions
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
------------------------------------... | | This module provides convenience functions for constructing LLVM IR ,
module Hachi.Compiler.CodeGen.IRBuilder (
module IR,
setLinkage,
HasCC(..),
HasReturnAttr(..),
HasFunctionAttr(..),
HasMetadata(..),
plcFunOpts,
global,
globalStringPtr,
Hachi.Compiler.CodeGen.IRBuilder.f... |
cee48a18e6bff68a68ff8fe03c2fc393accc657222e1b0b723acbd24bbbdf1c1 | BranchTaken/Hemlock | test_pare.ml | open! Basis.Rudiments
open! Basis
open Array
let test () =
let test arr = begin
File.Fmt.stdout
|> Fmt.fmt "pare "
|> (pp Uns.pp) arr
|> Fmt.fmt " ->"
|> ignore;
let rec fni i n = begin
match i > n with
| true -> ()
| false -> begin
let rec fnj j n = begin
... | null | https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/array/test_pare.ml | ocaml | open! Basis.Rudiments
open! Basis
open Array
let test () =
let test arr = begin
File.Fmt.stdout
|> Fmt.fmt "pare "
|> (pp Uns.pp) arr
|> Fmt.fmt " ->"
|> ignore;
let rec fni i n = begin
match i > n with
| true -> ()
| false -> begin
let rec fnj j n = begin
... | |
123a67f4319240135661ae506c3380bfafb9d341361e585831ad34197257c1a7 | kayceesrk/Quelea | Shim.hs | # LANGUAGE ScopedTypeVariables , EmptyDataDecls ,
TemplateHaskell , DataKinds , OverloadedStrings ,
DoAndIfThenElse #
TemplateHaskell, DataKinds, OverloadedStrings,
DoAndIfThenElse#-}
module Quelea.Shim (
runShimNode,
runShimNodeWithOpts,
mkDtLib
) where
import Quelea.Consts
import Quelea.Types... | null | https://raw.githubusercontent.com/kayceesrk/Quelea/73db79a5d5513b9aeeb475867a67bacb6a5313d0/src/Quelea/Shim.hs | haskell | fetch update interval
keep fraction
Spawn cache manager
Spawn a pool of workers
Join the broker to serve clients
Start gcWorker
debugPrint "worker: connecting..."
debugPrint "worker: connected"
loop forver servicing clients
Fetch the operation from the datatype library using the object type and
-... | # LANGUAGE ScopedTypeVariables , EmptyDataDecls ,
TemplateHaskell , DataKinds , OverloadedStrings ,
DoAndIfThenElse #
TemplateHaskell, DataKinds, OverloadedStrings,
DoAndIfThenElse#-}
module Quelea.Shim (
runShimNode,
runShimNodeWithOpts,
mkDtLib
) where
import Quelea.Consts
import Quelea.Types... |
f162e44f0c88c9debd9a438308ffe046c1da6627a9b4e077ac5cd2d3b196af35 | RichiH/git-annex | git-annex.hs | git - annex main program dispatch
-
- Copyright 2010 - 2016 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2010-2016 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
# LANGUAGE CPP #
import System.Environment (getArgs, getProgName)
import System.File... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/git-annex.hs | haskell | git - annex main program dispatch
-
- Copyright 2010 - 2016 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2010-2016 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
# LANGUAGE CPP #
import System.Environment (getArgs, getProgName)
import System.File... | |
e9d22d476f28149960a0295d2a6b28b52c7651a676088c3be8e58c27b8af5e10 | huangz1990/SICP-answers | 2-midpoint-segment.scm | 2-midpoint-segment.scm
(load "2-segment-selector.scm")
(load "2-point-constructor.scm")
(load "2-point-selector.scm")
(define (midpoint-segment seg)
(let ((start (start-segment seg))
(end (end-segment seg)))
(make-point (average (x-point start)
(x-point end))
... | null | https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/2-midpoint-segment.scm | scheme | 2-midpoint-segment.scm
(load "2-segment-selector.scm")
(load "2-point-constructor.scm")
(load "2-point-selector.scm")
(define (midpoint-segment seg)
(let ((start (start-segment seg))
(end (end-segment seg)))
(make-point (average (x-point start)
(x-point end))
... | |
26b7428f40b249043ae5f61d7da54380dc277aaa90e698f885f3f79ad084dfdf | mfoemmel/erlang-otp | reltool_app_win.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public Lic... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/reltool/src/reltool_app_win.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(reltool_app_win).
-export([start_link/4,... |
d4b9bf1960495a16dd89b731e0ab094cb0a71d94ea476363a3d3f110a2328236 | ocaml-multicore/ocaml-tsan | lintapidiff.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/tools/lintapidiff.ml | ocaml | ************************************************************************
OCaml
... |
Copyright 2016 - -2017
the GNU Lesser General Public License version 2.1 , with the
open Location
open Parsetree
type diff_error =
| File_not_found
| Other_error
oldest version that we show missing @since errors for
let oldest = "4.00.0"
let ignore_chang... |
dbaef262eb118fa7afd192998ad68b909752cb6cf95bdb6af1c2c88e37faee37 | a9032676/Codewars-Haskell | OneLineTask_Fix.hs | module OneLineTask_Fix where
-- module F where
fix f x=x$f x | null | https://raw.githubusercontent.com/a9032676/Codewars-Haskell/6eccd81e9b6ae31b5c0a28ecc16b933f3abae1a5/src/OneLineTask_Fix.hs | haskell | module F where | module OneLineTask_Fix where
fix f x=x$f x |
56f1f872dbbb8e5c46e9e57e20f30a35fb2b0aaf6bd40df238b84e6f95670bab | fukamachi/clozure-cl | nfasload.lisp | -*- Mode : Lisp ; Package : CCL -*-
;;;
Copyright ( C ) 2009 Clozure Associates
Copyright ( C ) 1994 - 2001 Digitool , Inc
This file is part of Clozure CL .
;;;
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as the
... | null | https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/level-0/nfasload.lisp | lisp | Package : CCL -*-
file "LICENSE". The LLGPL consists of a preamble and the LGPL,
conflict, the preamble takes precedence.
Clozure CL is referenced in the preamble as the "LIBRARY."
The LLGPL is also available online at
check again
Aref: allow non-simple strings
Read a "concatenated" lisp func... | Copyright ( C ) 2009 Clozure Associates
Copyright ( C ) 1994 - 2001 Digitool , Inc
This file is part of Clozure CL .
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as the
which is distributed with Clozure CL as ... |
1938f61c22c0c0ed507c50e695858a7b5a2fb0d5e48de418ef94a3cadaf1620a | eamsden/pushbasedFRP | openflow-switch.hs | module Main where
Monad utilities
frames are HLists
import Data.IORef -- Storing the table
import qualified Data.Map as M -- Table data structure
import Data.Word -- Representation-specific numbers
GHC event loop
imp... | null | https://raw.githubusercontent.com/eamsden/pushbasedFRP/1d6afd7aa2e45f44b9daa4a2265338747a6aa443/Code/openflow-switch/src/openflow-switch.hs | haskell | Storing the table
Table data structure
Representation-specific numbers
OpenFlow API
OpenFlow event-based server
A monotonic clock
| An entry in the switch table | module Main where
Monad utilities
frames are HLists
GHC event loop
Clock(Monotonic),
TimeSpec,
sec,
nsec)
port :: Word16
port = 6633
tableTime :: Double
tableTime = 5.0
cleanInterval ::... |
4cd6d18e8d9b04bbcd7b6690c82a29f7df9b572702e63c85f5b0e0658f2f14e6 | blarney-lang/blarney | Module.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies #
{-# LANGUAGE DeriveGeneric #-}
# LANGUAGE BlockArguments #
{-# LANGUAGE NoDeriveAnyClass #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParam... | null | https://raw.githubusercontent.com/blarney-lang/blarney/918329f804a4e1188cab21aeb5cfe43ce57a203e/Haskell/Blarney/Core/Module.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE RankNTypes #
# LANGUAGE DeriveGeneric #
# LANGUAGE NoDeriveAnyClass #
* Modules and actions
* Lift actions to modules
* Action of doing nothing
* Conditional actions
>),
* Validity of a value
* Variable value (read)
* Varia... | # LANGUAGE TypeFamilies #
# LANGUAGE BlockArguments #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE GeneralizedNewtypeDeriving #
|
Module : . Core . Module
Description : Blarney modules
Copy... |
68e4a117c51c63ebeaf95ae64e69dc36cfcab42cc121957d5fd307c56ceb44a3 | spotify/lyceum | hipchat.clj | ;; $LICENSE
Copyright 2013 - 2014 Spotify AB . All rights reserved .
;;
The contents of this file are 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 requir... | null | https://raw.githubusercontent.com/spotify/lyceum/3ff48939f2d68f9bc0b5d5be9bac74cc9e64b45f/src/lyceum/external/hipchat.clj | clojure | $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
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing pe... | Copyright 2013 - 2014 Spotify AB . All rights reserved .
The contents of this file are licensed under the Apache License , Version 2.0
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
(ns lyceum.external.hipchat
(:require [lyceum.external :refer [report]])
(:require [lyceum.extern... |
30887cf064b3f8a68c25ecfa4111d05ce556a15243cbcec793f51d1fec9a5d5a | d-cent/objective8 | sign_up.clj | (ns objective8.front-end.templates.sign-up
(:require [net.cgrand.enlive-html :as html]
[net.cgrand.jsoup :as jsoup]
[objective8.front-end.templates.page-furniture :as f]))
(def authorisation-template (html/html-resource "templates/jade/authorisation-page.html"))
(defn authorisation-page [{:k... | null | https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/src/objective8/front_end/templates/sign_up.clj | clojure | (ns objective8.front-end.templates.sign-up
(:require [net.cgrand.enlive-html :as html]
[net.cgrand.jsoup :as jsoup]
[objective8.front-end.templates.page-furniture :as f]))
(def authorisation-template (html/html-resource "templates/jade/authorisation-page.html"))
(defn authorisation-page [{:k... | |
c30b565752c1db6796972af4dbae469f2580e5c5a3bed2babfcdb9ef039aac3b | janestreet/hardcaml_fixed_point | signed.mli | open Hardcaml
module Make (Bits : Comb.S) : Fixed_intf.Fixed_point with type bits = Bits.t
| null | https://raw.githubusercontent.com/janestreet/hardcaml_fixed_point/369123b1cf3280bc9a3af8f7158d3bb48caafc71/src/signed.mli | ocaml | open Hardcaml
module Make (Bits : Comb.S) : Fixed_intf.Fixed_point with type bits = Bits.t
| |
c85423c87190b130b3c5645b9d7ad721e3d136cae6044f44dd5ff7af056599e2 | aratare-jp/shinsetsu | bookmark_tag.clj | (ns shinsetsu.db.bookmark-tag
(:require [malli.core :as m]
[shinsetsu.schema :as s]
[malli.error :as me]
[taoensso.timbre :as log]
[next.jdbc :as jdbc]
[honey.sql.helpers :as helpers]
[honey.sql :as sql]
[shinsetsu.db :refer [ds]]
... | null | https://raw.githubusercontent.com/aratare-jp/shinsetsu/a858208b0a55b7dd7f5f34e3e46bfb662aa3117c/src/clj/shinsetsu/db/bookmark_tag.clj | clojure | (ns shinsetsu.db.bookmark-tag
(:require [malli.core :as m]
[shinsetsu.schema :as s]
[malli.error :as me]
[taoensso.timbre :as log]
[next.jdbc :as jdbc]
[honey.sql.helpers :as helpers]
[honey.sql :as sql]
[shinsetsu.db :refer [ds]]
... | |
ef39be963442ea2850d53c27bba2ad4797a0bdd5eb9f4ac8a85e07f2c8d29d75 | AshleyYakeley/Truth | Showable.hs | module Pinafore.Base.Showable where
import Data.Time
import Shapes
import Shapes.Numeric
class TextShow t where
-- | NOT the same as 'toText'.
textShow :: t -> Text
default textShow :: Show t => t -> Text
textShow v = pack $ show v
instance TextShow Text
instance TextShow Bool
instance TextShow Ord... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/d704b8baaa77dac002922eccecdd91018c4b7eef/Pinafore/pinafore-base/lib/Pinafore/Base/Showable.hs | haskell | | NOT the same as 'toText'. | module Pinafore.Base.Showable where
import Data.Time
import Shapes
import Shapes.Numeric
class TextShow t where
textShow :: t -> Text
default textShow :: Show t => t -> Text
textShow v = pack $ show v
instance TextShow Text
instance TextShow Bool
instance TextShow Ordering
instance TextShow Integer
i... |
b55d65de2bfd8188d44ff750c75d614f9e9aba8e2d2935fa8ec3020136d1fa05 | DanielG/ghc-mod | Vect.hs | # LANGUAGE DataKinds , TypeFamilies , TypeOperators , GADTs , KindSignatures #
module Vect where
data Nat = Z | S Nat
type family (n :: Nat) :+ (m :: Nat) :: Nat
type instance Z :+ m = m
type instance S n :+ m = S (n :+ m)
data Vect :: Nat -> * -> * where
VNil :: Vect Z a
(:::) :: a -> Vect n a -> Vect (S n) ... | null | https://raw.githubusercontent.com/DanielG/ghc-mod/391e187a5dfef4421aab2508fa6ff7875cc8259d/test/data/case-split/Vect.hs | haskell | # LANGUAGE DataKinds , TypeFamilies , TypeOperators , GADTs , KindSignatures #
module Vect where
data Nat = Z | S Nat
type family (n :: Nat) :+ (m :: Nat) :: Nat
type instance Z :+ m = m
type instance S n :+ m = S (n :+ m)
data Vect :: Nat -> * -> * where
VNil :: Vect Z a
(:::) :: a -> Vect n a -> Vect (S n) ... | |
36fc84022a83ede9ffb798e96b62487605649d2488c864ce1d4879d6f67f7cd9 | shirok/Gauche | 143.scm | ;; SRFI-143 became scheme.fixnum
(define-module srfi.143 (extend scheme.fixnum))
| null | https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/lib/srfi/143.scm | scheme | SRFI-143 became scheme.fixnum | (define-module srfi.143 (extend scheme.fixnum))
|
6efed3f89eb3caeace4349a97e0e8708fea7a8303b5be753b6bb6f0e20cb402e | AbstractMachinesLab/caramel | ansi_color.mli | module Style : sig
type t
val fg_default : t
val fg_black : t
val fg_red : t
val fg_green : t
val fg_yellow : t
val fg_blue : t
val fg_magenta : t
val fg_cyan : t
val fg_white : t
val fg_bright_black : t
val fg_bright_red : t
val fg_bright_green : t
val fg_bright_yellow : t
v... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/ansi_color.mli | ocaml | * Ansi escape sequence that set the terminal style to exactly these styles
* Print to [Format.std_formatter]
* Print to [Format.err_formatter]
* Whether [stdout]/[stderr] support colors
* Filter out escape sequences in a string | module Style : sig
type t
val fg_default : t
val fg_black : t
val fg_red : t
val fg_green : t
val fg_yellow : t
val fg_blue : t
val fg_magenta : t
val fg_cyan : t
val fg_white : t
val fg_bright_black : t
val fg_bright_red : t
val fg_bright_green : t
val fg_bright_yellow : t
v... |
b7572dd96c44d2a44f77e8f30977b496b707811b2bec4a3895f42ac5b3a51e1a | qnikst/co-log-concurrent | Concurrent.hs | |
Copyright : ( c ) 2018 - 2020 Kowainik , ( c ) 2020
SPDX - License - Identifier : MPL-2.0
Maintainer : < >
For the speed reasons , you may want to dump logs asynchronously .
It is especially useful when application threads are CPU
bound while logs emitting is I / O bound . This approach
allows... | null | https://raw.githubusercontent.com/qnikst/co-log-concurrent/ab5a5010df50f319839245401b3b0d77317955db/src/Colog/Concurrent.hs | haskell | $general
* Simple API.
$simple-api
* Exceptions in messages.
$exceptions
* Extended API.
$extended-api
** Background worker
$background-worker
** Background logger
** Worker thread
$worker-thread
*** Usage example
$worker-thread-usage
-----------------------+ + --------------------------... | |
Copyright : ( c ) 2018 - 2020 Kowainik , ( c ) 2020
SPDX - License - Identifier : MPL-2.0
Maintainer : < >
For the speed reasons , you may want to dump logs asynchronously .
It is especially useful when application threads are CPU
bound while logs emitting is I / O bound . This approach
allows... |
23580438f3568c7de5aa38f736f0145f70496db4e1964140cbefd90baf051470 | nvim-treesitter/nvim-treesitter | folds.scm | [
(ui_object_definition)
(function_declaration)
(statement_block)
(if_statement)
(ui_binding)
(comment)
] @fold
| null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/36830c4ce838f4e7b19d95d6099af1311f618c26/queries/qmljs/folds.scm | scheme | [
(ui_object_definition)
(function_declaration)
(statement_block)
(if_statement)
(ui_binding)
(comment)
] @fold
| |
d33289ae5e28fdd5bdd14515116bd4ebf1f52a8b9b860739a9728a4bf3af90c2 | rcherrueau/APE | let_3.rkt | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Writing Hygienic Macros in Scheme with Syntax - case
Technical Report # 356
;;
page 9,10
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang racket
(require "print-test.rkt")
; To avoid uname... | null | https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/hygienic_macros/let_3.rkt | racket |
To avoid unamed `let' to match pattern for named `let' (because of
the order of clauses), we use a fender. The fender uses the
`identifier?' predicate to ensure that name is an identifier. | Writing Hygienic Macros in Scheme with Syntax - case
Technical Report # 356
page 9,10
#lang racket
(require "print-test.rkt")
(define-syntax (let_3 x)
(syntax-case x ()
[(_ name ([i v] ...) e1 e2 ...)
(identifier? #'name)
#'((letrec ((name (lambda (i ...) e1 e2 ...))) name)
v ...)]
... |
16889d304430fff4b6f201181220101e04814c6e422622e9c1deda5997790fc1 | well-typed/large-records | GhcTcPluginAPI.hs | # LANGUAGE CPP #
| Thin layer around ghc - tcplugin - api
module TypeLet.Plugin.GhcTcPluginAPI (
-- * Standard exports
module GHC.TcPlugin.API
, module GHC.Utils.Outputable
-- * Additional re-exports
-- ** Substitutions
, TCvSubst
, Subst.substTy
, Subst.substTyWith
, Subst.zipTvSubst
, ... | null | https://raw.githubusercontent.com/well-typed/large-records/551f265845fbe56346988a6b484dca40ef380609/typelet/src/TypeLet/Plugin/GhcTcPluginAPI.hs | haskell | * Standard exports
* Additional re-exports
** Substitutions | # LANGUAGE CPP #
| Thin layer around ghc - tcplugin - api
module TypeLet.Plugin.GhcTcPluginAPI (
module GHC.TcPlugin.API
, module GHC.Utils.Outputable
, TCvSubst
, Subst.substTy
, Subst.substTyWith
, Subst.zipTvSubst
, elemVarSet
, tyCoVarsOfType
) where
import GHC.TcPlugin.API
import GHC.Utils... |
4e76c34e342f5fe4024b7d85464364713c6913060fadcb35e403e27d351c0184 | nstack/nstack | Monad.hs | module NStack.Prelude.Monad (
-- * Conversions between monads
castError
, eitherToExcept
, maybeToExcept
, maybeToRight
, orError
, orElse
, orException
, try'
, (>>->)
, withReaderT
) where
import Control.Applicative (liftA2)
import Control.Monad.Except
import Control.Monad.Reader (ReaderT, runReaderT)
import Con... | null | https://raw.githubusercontent.com/nstack/nstack/c987557511134ed61db152a0bccbb80216b07a4b/nstack-prelude/src/NStack/Prelude/Monad.hs | haskell | * Conversions between monads
| synonym of maybeToExcept that reads better when infix
| Like 'orError', but throw an exception
| Composition of unwrapped reader transformers
| Kleisli composition that ignores the result of the | module NStack.Prelude.Monad (
castError
, eitherToExcept
, maybeToExcept
, maybeToRight
, orError
, orElse
, orException
, try'
, (>>->)
, withReaderT
) where
import Control.Applicative (liftA2)
import Control.Monad.Except
import Control.Monad.Reader (ReaderT, runReaderT)
import Control.Exception
import Control.Mona... |
081b3ab42efb484582d0120cebd3d1b08988a326a64de495aae03043135f1504 | tokenrove/imago | package.lisp | (defpackage imago-jupyter
(:use #:cl
#:imago
#:jupyter
#:base64)
(:local-nicknames (:imago-jt :imago-jpeg-turbo))
(:export #:show-image))
| null | https://raw.githubusercontent.com/tokenrove/imago/7bf4bc00114d7a757b019360956908b43cf8ed45/jupyter/package.lisp | lisp | (defpackage imago-jupyter
(:use #:cl
#:imago
#:jupyter
#:base64)
(:local-nicknames (:imago-jt :imago-jpeg-turbo))
(:export #:show-image))
| |
c754641926e172183764573ee30160dfdbe1cc5a29634dc6c6c58107d412738d | acowley/Frames | Issue114.hs | # LANGUAGE TemplateHaskell #
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE TypeOperators #-}
# LANGUAGE OverloadedLabels #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeApplications #
module Issue114 where
import Frames
import qual... | null | https://raw.githubusercontent.com/acowley/Frames/aeca953fe608de38d827b8a078ebf2d329edae04/test/Issue114.hs | haskell | # LANGUAGE TypeOperators #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes # | # LANGUAGE TemplateHaskell #
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE OverloadedLabels #
# LANGUAGE TypeApplications #
module Issue114 where
import Frames
import qualified Control.Foldl as Foldl
import Control.Lens
import Pipes.Prelude... |
6acdd741011e8e8781240e098127a96e456b7bd1aaceed38a260a36f701dbd2c | ocamllabs/ocaml-modular-implicits | dumpobj.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/tools/dumpobj.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 .
Disassembler for executable and .cmo ... |
61a8bdfe3ad3a684b9f69b4ce727677b04d535be39fdec903777c54024d067fc | rm-hull/jasentaa | project.clj | (defproject rm-hull/jasentaa "0.2.5"
:description "A parser-combinator library for Clojure and ClojureScript"
:url "-hull/jacentaa"
:license {
:name "The MIT License (MIT)"
:url ""}
:scm {:url "-hull/jasentaa.git"}
:source-paths ["src/clj" "src/cljc" "src/cljs"]
:jar-exclusions [#"(?:^|/).git"]
:c... | null | https://raw.githubusercontent.com/rm-hull/jasentaa/aeb0738d05db6ad536ee67253c6716c7a0b1c586/project.clj | clojure | (defproject rm-hull/jasentaa "0.2.5"
:description "A parser-combinator library for Clojure and ClojureScript"
:url "-hull/jacentaa"
:license {
:name "The MIT License (MIT)"
:url ""}
:scm {:url "-hull/jasentaa.git"}
:source-paths ["src/clj" "src/cljc" "src/cljs"]
:jar-exclusions [#"(?:^|/).git"]
:c... | |
dfdc3efa3681752cc6b96a34667b81c8f038634868369c3d2caa2c36551a3937 | wardle/dmd | serve.clj | (ns com.eldrix.dmd.serve
"Provides a web service for dm+d data."
(:gen-class)
(:require [clojure.data.json :as json]
[clojure.string :as str]
[clojure.tools.logging.readable :as log]
[com.eldrix.dmd.core :as dmd]
[io.pedestal.http :as http]
[io.pedestal.... | null | https://raw.githubusercontent.com/wardle/dmd/bff567b92a2513dd1ccbea660b2451696fb96dd6/cmd/com/eldrix/dmd/serve.clj | clojure |
For interactive development | (ns com.eldrix.dmd.serve
"Provides a web service for dm+d data."
(:gen-class)
(:require [clojure.data.json :as json]
[clojure.string :as str]
[clojure.tools.logging.readable :as log]
[com.eldrix.dmd.core :as dmd]
[io.pedestal.http :as http]
[io.pedestal.... |
cc75bf3551e6c58ac704631abf2178429149ed0b4e86120a9f75bfe123be702b | PEZ/rich4clojure | problem_152.clj | (ns rich4clojure.hard.problem-152
(:require [hyperfiddle.rcf :refer [tests]]))
= Latin Square Slicing =
By 4Clojure user : maximental
;; Difficulty: Hard
;; Tags: [data-analysis math]
;;
A Latin square of order n is an n x n array that
;; contains n different elements, each occurring exactly
;; once in each r... | null | https://raw.githubusercontent.com/PEZ/rich4clojure/2ccfac041840e9b1550f0a69b9becbdb03f9525b/src/rich4clojure/hard/problem_152.clj | clojure | Difficulty: Hard
Tags: [data-analysis math]
contains n different elements, each occurring exactly
once in each row, and exactly once in each column. For
A C A B C A C C A B
vectors of V in consecutive rows is an alignment (of
vectors) of V if the following conditions are
satisfied:
* All vectors of V are... | (ns rich4clojure.hard.problem-152
(:require [hyperfiddle.rcf :refer [tests]]))
= Latin Square Slicing =
By 4Clojure user : maximental
A Latin square of order n is an n x n array that
example , among the following arrays only the first one
forms a Latin square : A B C A B C A B C B C A B C A B D
Let V be ... |
dade544a476102913cbf67c2fc451fefec3f26c89ab5bd8a164740e317c95d3d | chrisreade/PenroseKiteDart | HalfTile.hs | |
Module : HalfTile
Description : Introducing a generic type for half tiles of darts and kites
Copyright : ( c ) , 2021
License : BSD - style
Maintainer :
Stability : experimental
Module : HalfTile
Description : Introducing a generic type for half tiles of darts and kites
Copyr... | null | https://raw.githubusercontent.com/chrisreade/PenroseKiteDart/a0e692516d7951319c42a0ebf56ce67d1091c079/src/HalfTile.hs | haskell | ^ Left Dart
^ Right Dart
^ Right Kite
| Note this ignores the tileLabels when comparing.
|half-tile predicate
| isMatched t1 t2 is True if t1 and t2 have the same HalfTileLabel | |
Module : HalfTile
Description : Introducing a generic type for half tiles of darts and kites
Copyright : ( c ) , 2021
License : BSD - style
Maintainer :
Stability : experimental
Module : HalfTile
Description : Introducing a generic type for half tiles of darts and kites
Copyr... |
6dc1c26a659232725bb63eee157f36de6e0ed0fbb9d35ecebfe1f2ef189f2ae3 | bittide/bittide-hardware | Ppm.hs | SPDX - FileCopyrightText : 2022 Google LLC
--
SPDX - License - Identifier : Apache-2.0
# LANGUAGE DerivingStrategies #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE NumericUnderscores #
module Bittide.Arithmetic.Ppm where
import Clash.Explicit.Prelude
import Clash.Signal.Internal (Femtoseconds (Femtoseconds... | null | https://raw.githubusercontent.com/bittide/bittide-hardware/7f49281cb85a7b430b801c0fffeb12d486326dd6/bittide/src/Bittide/Arithmetic/Ppm.hs | haskell | SPDX - FileCopyrightText : 2022 Google LLC
SPDX - License - Identifier : Apache-2.0
# LANGUAGE DerivingStrategies #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE NumericUnderscores #
module Bittide.Arithmetic.Ppm where
import Clash.Explicit.Prelude
import Clash.Signal.Internal (Femtoseconds (Femtoseconds), ... | |
833fae02eec6aacb7ad95569729309de049014e2f604bf385d56cd78bf886313 | mirage/orm | object_simple.ml | pp camlp4orf
open Printf
type x = <
foo: int;
bar: string
> with
orm()
open OUnit
open Test_utils
let name = "object_simple.db"
let r = Random.int 100
let x b = object
method foo = r
method bar="hello "^b
end
let x1 = x "world"
let x2 = x "sky"
let test_init () =
ignore(open_db x_init name);
ignore... | null | https://raw.githubusercontent.com/mirage/orm/24c2e0e3157853b2328d09feacdbe637e34d354c/lib_test/object_simple.ml | ocaml | pp camlp4orf
open Printf
type x = <
foo: int;
bar: string
> with
orm()
open OUnit
open Test_utils
let name = "object_simple.db"
let r = Random.int 100
let x b = object
method foo = r
method bar="hello "^b
end
let x1 = x "world"
let x2 = x "sky"
let test_init () =
ignore(open_db x_init name);
ignore... | |
0b86cadb1e1fb748bff27d76c073c5bade0086f6c9729ea3db1144b01b5bd64a | thosmos/riverdb | datatable_page.cljs | (ns riverdb.ui.reports.datatable-page
(:require
[com.fulcrologic.fulcro.dom :as dom :refer [div span select option ul li p h2 h3 button table tr td th thead tbody]]
[com.fulcrologic.fulcro.components :as comp :refer [defsc transact!]]
[com.fulcrologic.semantic-ui.elements.loader.ui-loader :refer [ui-loade... | null | https://raw.githubusercontent.com/thosmos/riverdb/db658754417289361e565d9e215a3f2c3a495d32/src/main/riverdb/ui/reports/datatable_page.cljs | clojure | with a blank sample or fewer vals, we still need to make blank cells
{:results sitevisits
:params params
:reportYear year
:agency agency
:projectName Name}
(log/debug "PRE AUTOSIZER Child FN")
_ (log/debug "AUTOSIZER Child FN" width height)]
(swap! state update-in ... | (ns riverdb.ui.reports.datatable-page
(:require
[com.fulcrologic.fulcro.dom :as dom :refer [div span select option ul li p h2 h3 button table tr td th thead tbody]]
[com.fulcrologic.fulcro.components :as comp :refer [defsc transact!]]
[com.fulcrologic.semantic-ui.elements.loader.ui-loader :refer [ui-loade... |
e52258f785c138e7662a72b2bfc96f7e8666513c7fcd5ec98ba09f4d2e0c8cfa | venantius/glow | terminal.clj | (ns glow.terminal
(:require [glow.ansi :as ansi]
[glow.regex :as regex]
[instaparse.core :as insta]))
(def ansi-fn-map
{:red ansi/red
:green ansi/green
:yellow ansi/yellow
:blue ansi/blue
:magenta ansi/magenta
:cyan ansi/cyan
:white ansi/white
:bright-red ansi/bright-re... | null | https://raw.githubusercontent.com/venantius/glow/17698a3621ba2f7d09f7c786764a21b13f90f6c3/src/glow/terminal.clj | clojure | characters
literals
reader macro characters
top level
collections
extras | (ns glow.terminal
(:require [glow.ansi :as ansi]
[glow.regex :as regex]
[instaparse.core :as insta]))
(def ansi-fn-map
{:red ansi/red
:green ansi/green
:yellow ansi/yellow
:blue ansi/blue
:magenta ansi/magenta
:cyan ansi/cyan
:white ansi/white
:bright-red ansi/bright-re... |
d23d55a077638a4cbdfb748c5674620fd13c65445727e7541e04763d188b8ca6 | goblint/analyzer | solverTest.ml | open Goblint_lib
open OUnit2
open GoblintCil
open Pretty
(* variables are strings *)
module StringVar =
struct
type t = string
let equal (a:t) (b:t) = a = b
let pretty_trace () x = text x
let compare = compare
let hash (x:t) = Hashtbl.hash x
let printXml _ _ = ()
let var_id x = x
let node _ = failwith ... | null | https://raw.githubusercontent.com/goblint/analyzer/33775dbcc680622acb836129e2b157372c57ebc7/unittest/solver/solverTest.ml | ocaml | variables are strings
domain is (reversed) integers | open Goblint_lib
open OUnit2
open GoblintCil
open Pretty
module StringVar =
struct
type t = string
let equal (a:t) (b:t) = a = b
let pretty_trace () x = text x
let compare = compare
let hash (x:t) = Hashtbl.hash x
let printXml _ _ = ()
let var_id x = x
let node _ = failwith "no node"
let relift x = x... |
f0273c29d4936752196ef46176e2115293bc062dd3bc94d3e0e7916f41009fb8 | acieroid/scala-am | pcounter4.scm | (letrec ((counter (atom 0))
(thread (lambda (n)
(letrec ((old (deref counter))
(new (+ old 1)))
(if (compare-and-set! counter old new)
#t
(thread n)))))
(t1 (future (thread 1)))
(t2 (future... | null | https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/concurrentScheme/futures/variations/pcounter4.scm | scheme | (letrec ((counter (atom 0))
(thread (lambda (n)
(letrec ((old (deref counter))
(new (+ old 1)))
(if (compare-and-set! counter old new)
#t
(thread n)))))
(t1 (future (thread 1)))
(t2 (future... | |
348f4e6432306d5443949e4e2471827c574f708f7e29523580e3bc14f36ccedf | discus-lang/salt | Instr.hs |
module Salt.Llvm.Write.Instr where
import Salt.Llvm.Syntax
import Salt.Llvm.Write.Exp ()
import Salt.Llvm.Write.Metadata ()
import Salt.Llvm.Write.Base
import qualified Data.Foldable as Seq
instance Write Config Block where
write o (Block l is)
= do
write o l; text o ": "; line o
vwrite' ... | null | https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/salt/Salt/Llvm/Write/Instr.hs | haskell | -----------------------------
Phi nodes --------------------------------------
Terminator Instructions ------------------------
Memory Operations ------------------------------
as well as the type of the result of the load.
Binary Operations ------------------------------
Conversion operations -------------------... |
module Salt.Llvm.Write.Instr where
import Salt.Llvm.Syntax
import Salt.Llvm.Write.Exp ()
import Salt.Llvm.Write.Metadata ()
import Salt.Llvm.Write.Base
import qualified Data.Foldable as Seq
instance Write Config Block where
write o (Block l is)
= do
write o l; text o ": "; line o
vwrite' ... |
7cc9b7ee41bd2eea681d1ed863b697b1a9b8c2c04259a271a2dcb22836c5cb9e | egobrain/decimal | decimal_conv.erl | -module(decimal_conv).
-export([
from_binary/1,
from_list/1,
from_float/1,
to_binary/2
]).
-compile(inline).
-type binary_opts() :: #{ pretty => boolean() }.
-export_type([binary_opts/0]).
-spec from_binary(binary()) -> decimal:decimal().
from_binary(Bin) ->
parse_ba... | null | https://raw.githubusercontent.com/egobrain/decimal/16aa7b5411b0ae6429d0dcbe99c24976fc51443f/src/decimal_conv.erl | erlang | =============================================================================
Binary string parser
=============================================================================
=============================================================================
From float
================================================... | -module(decimal_conv).
-export([
from_binary/1,
from_list/1,
from_float/1,
to_binary/2
]).
-compile(inline).
-type binary_opts() :: #{ pretty => boolean() }.
-export_type([binary_opts/0]).
-spec from_binary(binary()) -> decimal:decimal().
from_binary(Bin) ->
parse_ba... |
6431078e0fb43005996bc8524e041c9e029d5473503e4d39e5eedf33f0f52501 | amnh/PCG | Procedure.hs | ----------------------------------------------------------------------------
-- |
-- Module : File.Format.TNT.Command.Procedure
Copyright : ( c ) 2015 - 2021 Ward Wheeler
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
Parser for the procedure... | null | https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/file-parsers/src/File/Format/TNT/Command/Procedure.hs | haskell | --------------------------------------------------------------------------
|
Module : File.Format.TNT.Command.Procedure
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
are usually ignored by the calling combinators.
---------------------------------------------... | Copyright : ( c ) 2015 - 2021 Ward Wheeler
Parser for the procedure command . The parse results of the procedure parser
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
module File.Format.TNT.Command.Procedure
( procedureCommand
, procCommandFile
, procCloseFile
, procHeader
) where
im... |
1fecfb1c627b0cfae9bd0ff5e438009cb6bca46fab11abc4468bf38d3791b48d | ghcjs/ghcjs-dom | TextDecoder.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.TextDecoder
(js_newTextDecoder, newTextDecoder, js_decode, decode, decode_,
js_... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/TextDecoder.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.TextDecoder
(js_newTextDecoder, newTextDecoder, js_decode, decode, decode_,
js_getEncoding, getEncoding, js_getFatal, getFatal,
js_getIgnoreBOM, getIgnoreBOM, TextDecoder... |
5ace23b4d0720532630c8c731c6770fe66bfc3622c39c977f6096dbb06e8f4c2 | milho-lang/milho-haskell | Function.hs | module Pipoquinha.Function where
import Data.Map ( Map )
import qualified Data.Map as Map
import GHC.Show ( Show(..) )
import qualified Pipoquinha.Environment as Environment
import Protolude hiding ( sho... | null | https://raw.githubusercontent.com/milho-lang/milho-haskell/ebea4dc2a2b84d7b8358b20fcfc4073ed7a93c76/src/Pipoquinha/Function.hs | haskell | module Pipoquinha.Function where
import Data.Map ( Map )
import qualified Data.Map as Map
import GHC.Show ( Show(..) )
import qualified Pipoquinha.Environment as Environment
import Protolude hiding ( sho... | |
c578d652529a7aa042a1aa28cec571d181e37ea60521f914fa2c3121d01b1681 | denibertovic/denv | Types.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GADTs #-}
module Denv.Types where
import RIO hiding (set)
import qualified Data.Text as T
import Data.Typeable
type KubeProjectName = String
type KubeNamespace = String
type PasswordStorePath = String
type GoogleCredentialsPath = String
data Shell
= BASH
| ZSH
... | null | https://raw.githubusercontent.com/denibertovic/denv/86a3d612d8207daad75ad38a1711ad048e8f6113/src/Denv/Types.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE GADTs # |
module Denv.Types where
import RIO hiding (set)
import qualified Data.Text as T
import Data.Typeable
type KubeProjectName = String
type KubeNamespace = String
type PasswordStorePath = String
type GoogleCredentialsPath = String
data Shell
= BASH
| ZSH
| FISH
deriving (Show, Eq, Read)
data GcpVariable
= ... |
4c203f782d496464fc947fad130de420d165bdc8026ebf72817d7b8a2e5ab58e | yav/url | URL.hs | --------------------------------------------------------------------------------
-- |
-- Module : Network.URL
Copyright : ( c ) Galois , Inc. 2007 , 2008
-- License : BSD3
--
Maintainer : Iavor
-- Stability : Provisional
-- Portability : Portable
--
-- Provides a convenient way for working with HT... | null | https://raw.githubusercontent.com/yav/url/d15ce0456733f501c35e5a44ea20729cd9e28663/Network/URL.hs | haskell | ------------------------------------------------------------------------------
|
Module : Network.URL
License : BSD3
Stability : Provisional
Portability : Portable
Provides a convenient way for working with HTTP URLs.
| Contains information about the connection to the host.
| The type of known prot... | Copyright : ( c ) Galois , Inc. 2007 , 2008
Maintainer : Iavor
Based on RFC 1738 .
See also : RFC 3986
module Network.URL
( URL(..), URLType(..), Host(..), Protocol(..)
, secure, secure_prot
, exportURL, importURL, exportHost
, add_param
, decString, encString
, ok_host, ok_url, ok_param, ok... |
e40d915186d3fbb950740519ca9bbafd6aa9d228f9d85702e39c7af42623719d | vitorenesduarte/tricks | tricks_http_SUITE.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2018 . All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the Li... | null | https://raw.githubusercontent.com/vitorenesduarte/tricks/9ba11252be128be481b4d4a00fe162ccdbdac501/test/tricks_http_SUITE.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2018 . All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(tricks_http_SUITE).
-au... |
d8b88969d2a9794b666105cf8ec6e153181ca4b6e3d192a70953e868d08478ae | racket/frtime | frtime-big.rkt | #lang s-exp frtime/frtime
(provide (all-from-out frtime/frtime)
(all-from-out frtime/frlibs/date)
(all-from-out frtime/frlibs/etc)
(all-from-out frtime/frlibs/list)
(all-from-out frtime/frlibs/math))
(require frtime/frlibs/date
frtime/frlibs/etc
frtime/frlibs/li... | null | https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/frtime-big.rkt | racket | #lang s-exp frtime/frtime
(provide (all-from-out frtime/frtime)
(all-from-out frtime/frlibs/date)
(all-from-out frtime/frlibs/etc)
(all-from-out frtime/frlibs/list)
(all-from-out frtime/frlibs/math))
(require frtime/frlibs/date
frtime/frlibs/etc
frtime/frlibs/li... | |
4d16d7b3539b211718a31fff4ae9d84835917187fc9c4be6a917a4d97d9a74bf | Clozure/ccl-tests | warn.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sun Feb 23 20:48:12 2003
;;;; Contains: Tests for WARN
(in-package :cl-test)
(deftest warn.1
(let ((warned nil))
(handler-bind
((warning #'(lambda (c)
(assert (typep c 'simple-warning))
(setf warned t)
(muffle-warning c))))
(values
... | null | https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/warn.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests for WARN | Author :
Created : Sun Feb 23 20:48:12 2003
(in-package :cl-test)
(deftest warn.1
(let ((warned nil))
(handler-bind
((warning #'(lambda (c)
(assert (typep c 'simple-warning))
(setf warned t)
(muffle-warning c))))
(values
(multiple-value-list (warn "This is a warning"))
... |
a110b73af133270b92e0e75d35daad704b28c4ec6daad8fb5182d867e1eb3ee9 | sinasamavati/mad | mad_compile_SUITE.erl | %% The MIT License
Copyright ( c ) 2013 - 2014 Sina Samavati < >
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitation the rights
%% to use... | null | https://raw.githubusercontent.com/sinasamavati/mad/2d728caf07d26d991f767648b7cdeb756497c6bd/test/mad_compile_SUITE.erl | erlang | The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above co... |
Copyright ( c ) 2013 - 2014 Sina Samavati < >
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ... |
7d56f16733c4eed6d53c8576351b501213ca065e340db8d151f202a7433bf45e | gtk2hs/gtk2hs | CairoGhci.hs | -- Example of an drawing graphics onto a canvas.
import Graphics.UI.Gtk
import Graphics.Rendering.Cairo
import Control.Monad.Trans ( liftIO )
import Graphics.UI.Gtk.Gdk.EventM
run :: Render () -> IO ()
run act = do
initGUI
dia <- dialogNew
dialogAddButton dia stockClose ResponseClose
contain <- dialogGetUpper ... | null | https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/cairo/demo/gtk2/CairoGhci.hs | haskell | Example of an drawing graphics onto a canvas.
Flush all commands that are waiting to be sent to the graphics server.
This ensures that the window is actually closed before ghci displays the
prompt again. | import Graphics.UI.Gtk
import Graphics.Rendering.Cairo
import Control.Monad.Trans ( liftIO )
import Graphics.UI.Gtk.Gdk.EventM
run :: Render () -> IO ()
run act = do
initGUI
dia <- dialogNew
dialogAddButton dia stockClose ResponseClose
contain <- dialogGetUpper dia
canvas <- drawingAreaNew
canvas `onSizeRe... |
e6cb7e4b08c5741f23672426162d60a50efbd574da4e519b5d8c934a7f2cbc37 | iu-parfunc/verified-instances | Instances.hs | {-@ LIQUID "--reflection" @-}
{-@ LIQUID "--ple" @-}
{-@ LIQUID "--prune-unsorted" @-}
module Data.VerifiedEq.Instances
( veqInt
, veqInt64
, veqUnit
, veqDouble
, module X
, eqUnit
, eqInt
, eqInt64
, eqDouble
)
where
import Data.Int
import Data.VerifiedEq.Instances.Contra ... | null | https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/src/Data/VerifiedEq/Instances.hs | haskell | @ LIQUID "--reflection" @
@ LIQUID "--ple" @
@ LIQUID "--prune-unsorted" @
imports (Left _) = ()
imports (Right _) = ()
@ axiomatize eqUnit @
@ eqUnitRefl :: x:() -> { eqUnit x x } @
@ eqUnitSym :: x:() -> y:() -> { eqUnit x y ==> eqUnit y x } @
@ axiomatize eqInt @
@ eqIntRefl :: x:Int -> { eqInt x x... |
module Data.VerifiedEq.Instances
( veqInt
, veqInt64
, veqUnit
, veqDouble
, module X
, eqUnit
, eqInt
, eqInt64
, eqDouble
)
where
import Data.Int
import Data.VerifiedEq.Instances.Contra as X
import Data.VerifiedEq.Instances.Iso as X
import Data.VerifiedEq.Instances.Prod ... |
91bddf75a41001d111fb9806889d4d394120481d85bc1d876880273ce62d0bc6 | jeffa5/mirage-xmpp | unikernel.ml | module Main (S : Mirage_stack_lwt.V4) = struct
let write_string flow s =
let s = String.trim s ^ "\n" in
let b = Cstruct.of_string s in
match%lwt S.TCPV4.write flow b with
| Ok () -> Lwt.return_unit
| Error e ->
Logs.warn (fun f ->
f "Error occurred from writing to connection: %a" ... | null | https://raw.githubusercontent.com/jeffa5/mirage-xmpp/df3dafecba9081880809d8649ed0727b9f6a9dc7/demos/xml-parsing-pkg/mirage/unikernel.ml | ocaml | module Main (S : Mirage_stack_lwt.V4) = struct
let write_string flow s =
let s = String.trim s ^ "\n" in
let b = Cstruct.of_string s in
match%lwt S.TCPV4.write flow b with
| Ok () -> Lwt.return_unit
| Error e ->
Logs.warn (fun f ->
f "Error occurred from writing to connection: %a" ... | |
9dd303db399ed737eb9383c125ab0dd1e38a1dbe830923e9edd6a980cecb8ed7 | awgn/cgrep | ContextFilter.hs | --
Copyright ( c ) 2013 - 2022 < >
--
-- 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 version.
--
-- This program is dis... | null | https://raw.githubusercontent.com/awgn/cgrep/304d7092cd4b961022abb06103c2bf7bb932ff4a/src/CGrep/ContextFilter.hs | haskell |
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
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 Publi... | Copyright ( c ) 2013 - 2022 < >
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 13... |
9a761e4bfa8d9831f8b84d9d992182b85a737c75c85bfe4f68fae3e40f032042 | scheme/edwin48 | packages.scm | ;;; -*- mode: scheme; scheme48-package: (config) -*-
;;;
;;; Scheme48 specific packages
;;;
(define-structure define-record-type*
(export (define-record-type* :syntax)
define-record-discloser)
(open scheme define-record-types)
(for-syntax (open scheme define-record-type*-expander))
(begin (define... | null | https://raw.githubusercontent.com/scheme/edwin48/fbe3c7ca14f1418eafddebd35f78ad12e42ea851/edwin48/scsh/packages.scm | scheme | -*- mode: scheme; scheme48-package: (config) -*-
Scheme48 specific packages
re-substring-search-forward
re-string-search-backward re-substring-search-backward
init-file-pathname |
(define-structure define-record-type*
(export (define-record-type* :syntax)
define-record-discloser)
(open scheme define-record-types)
(for-syntax (open scheme define-record-type*-expander))
(begin (define-syntax define-record-type*
expand-define-record-type*
(begin define d... |
526f06eff855164556c65c29edf9b4a6ef5cf1fff55119e9186d7a5246801164 | ddssff/refact-global-hse | Glob.hs | # LANGUAGE ScopedTypeVariables #
-- |
-- Module: System.FilePath.Glob
Copyright :
License : BSD3
Maintainer : < >
-- Stability: unstable
-- Portability: everywhere
module System.FilePath.Glob (
namesMatching
, unsafeInterleaveIO'
) where
import Control.Exception
import Contro... | null | https://raw.githubusercontent.com/ddssff/refact-global-hse/519a017009cae8aa1a3db1b46eb560d76bd9895d/tests/expected/decl8/System/FilePath/Glob.hs | haskell | |
Module: System.FilePath.Glob
Stability: unstable
Portability: everywhere
| A version of unsafeInterleaveIO that doesn't forget about changes
to the current directory. dsf: I don't think this is a bug in
unsafeInterleaveIO "should be free of side effects and independent
of its environment." That doesn... | # LANGUAGE ScopedTypeVariables #
Copyright :
License : BSD3
Maintainer : < >
module System.FilePath.Glob (
namesMatching
, unsafeInterleaveIO'
) where
import Control.Exception
import Control.Monad (forM)
import System.FilePath.GlobPattern ((~~))
import System.Directory (doesDirector... |
2f75ba350713f4db7a45bb58e0dabe6c12327be2d8d835e4a2adcb061d1de28d | alexandergunnarson/quantum | temperature.cljc | (ns quantum.test.measure.temperature) | null | https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/measure/temperature.cljc | clojure | (ns quantum.test.measure.temperature) | |
00d5ebfea09780ba60f97486f97708810903ef33414326da7d0d6370f48f250b | AdaCore/why3 | report.mli | val report: string -> Parser.token ->
'a Parser.MenhirInterpreter.checkpoint -> string option
| null | https://raw.githubusercontent.com/AdaCore/why3/e0dc747dcbdbf58ddad668a234c7d05defc65cee/src/parser/report.mli | ocaml | val report: string -> Parser.token ->
'a Parser.MenhirInterpreter.checkpoint -> string option
| |
844dba5fc0257f6fc43d86489e37ba80b7e847eb2ef01e753f068bf08352ffbf | egri-nagy/kigen | T_subs.clj | (use '[kigen.multab :as multab])
(use '[kigen.transf :as t])
(def mtT
(multab/multab (t/sgp-by-gens [[0,1,0,0,0] [1,3,0,4,0]])
t/mul))
(println "Parallel T")
(binding [orbit.extension/*task-size* 32]
(time (count (multab/psubsgps mtT))))
(println "Sequential T")
(time (count (multab/subsgps ... | null | https://raw.githubusercontent.com/egri-nagy/kigen/5248499fab9d8af05d7d0b07626d0676dfe580c9/experiments/REDUCERS/T_subs.clj | clojure | (use '[kigen.multab :as multab])
(use '[kigen.transf :as t])
(def mtT
(multab/multab (t/sgp-by-gens [[0,1,0,0,0] [1,3,0,4,0]])
t/mul))
(println "Parallel T")
(binding [orbit.extension/*task-size* 32]
(time (count (multab/psubsgps mtT))))
(println "Sequential T")
(time (count (multab/subsgps ... | |
ebb9f2c757e39c482afc07561395392779331f61f654563c9215ca8d15d7b9c8 | sgbj/MaximaSharp | zgeru.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/zgeru.lisp | lisp | Compiled by f2cl version:
Using Lisp CMU Common Lisp 20d (20D Unicode)
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ "
" f2cl6.l , v 1d5cbacbb... |
ec940e8a95c02e92d2553cce7e57980fd76b07003119a42dfd0b41d63e401867 | OCamlPro/ocp-build | copDo.mli | (**************************************************************************)
(* *)
(* Typerex Tools *)
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/cop/driver/copDo.mli | ocaml | ************************************************************************
Typerex Tools
... | Copyright 2011 - 2017 OCamlPro SAS
the GNU General Public License version 3 described in the file
val cmd : Ezcmd.Modules.Arg.command
|
8408985894e4528fba0de7fdbdb414a4338e048bb98bd60152af64670c884bf0 | AvramRobert/omnia | config.clj | (ns omnia.schema.config
(:require [schema.core :as s]
[omnia.schema.syntax :as st]
[omnia.schema.event :as e]
[omnia.schema.keymap :as k]
[omnia.schema.eval-history :as eh]
[omnia.util.collection :as c]))
(def UserKeyBinding
{:key k/Key... | null | https://raw.githubusercontent.com/AvramRobert/omnia/fdbf39818c86a6862dce85d0704522b189e15302/src/omnia/schema/config.clj | clojure | (ns omnia.schema.config
(:require [schema.core :as s]
[omnia.schema.syntax :as st]
[omnia.schema.event :as e]
[omnia.schema.keymap :as k]
[omnia.schema.eval-history :as eh]
[omnia.util.collection :as c]))
(def UserKeyBinding
{:key k/Key... | |
334ccca9d30c56f884c0e741d01bb3dc2d16be156475f53152e498c0c7f49c20 | bmeurer/ocaml-arm | typecheck.ml | (*************************************************************************)
(* *)
(* OCaml LablTk library *)
(* *)
,... | null | https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/otherlibs/labltk/browser/typecheck.ml | ocaml | ***********************************************************************
OCaml LablTk library
... | , Kyoto University RIMS
Copyright 1999 Institut National de Recherche en Informatique et
en Automatique and Kyoto University . All rights reserved .
This file is distributed under the terms of the GNU Library
$ Id$
open StdLabels
open Tk
open P... |
dc65e2920dcacf0062ff3b99487a9bdfb2bca721e0be5575a575edf8ebb3639a | caradoc-org/caradoc | TestDocument.ml | (*****************************************************************************)
(* Caradoc: a PDF parser and validator *)
Copyright ( C ) 2015 ANSSI
Copyright ( C ) 2015 - 2017
(* ... | null | https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/test/TestDocument.ml | ocaml | ***************************************************************************
Caradoc: a PDF parser and validator
This program is free software; you can redistribute it and/or modify
... | Copyright ( C ) 2015 ANSSI
Copyright ( C ) 2015 - 2017
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation .
You should have rece... |
ab691ec6abd0a00efd1b09dc637209b479d86b417ee5f0c34d679d3649942ef0 | Frama-C/Frama-C-snapshot | term.ml | (**************************************************************************)
(* *)
This file is part of WP plug - in of Frama - C.
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/qed/term.ml | ocaml | ************************************************************************
alternatives)
... | This file is part of WP plug - in of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat a l'energie atomique et aux energies
Lesser General Public License as published by the Free Software
Foundation ,... |
dc3cad8fba69720d04007db91b70e06bff792af0038b8173f4ec7ceaa6f104d5 | kaznum/programming_in_ocaml_exercise | geo_mean.ml | let geo_mean (x, y) = sqrt ( x *. y );;
| null | https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ex3.6/geo_mean.ml | ocaml | let geo_mean (x, y) = sqrt ( x *. y );;
| |
cd91a0fd52953a0333818943c48ee580fd7399bf82051765105add1b70ca908d | thangngoc89/denu | edge.ml | let run () = print_endline "Hello world"
| null | https://raw.githubusercontent.com/thangngoc89/denu/aadd9eed431181cd3da3da14063b07bacfd0377e/play/edge.ml | ocaml | let run () = print_endline "Hello world"
| |
d5cea6eeb7e3af18ec027498f2de820d95d0a38a507120cfce4939a194ee5f42 | diagrams/diagrams-braille | Main.hs | -- A monoidal command line interface to some diagrams primitives
# LANGUAGE NoMonomorphismRestriction #
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
module Main where
import Diagrams.Backend.Braille.CmdLine (B, mainWith)
import Diagrams.Backend.CmdLine (Parseable(..))
import Diagrams.Prelude hiding (option)... | null | https://raw.githubusercontent.com/diagrams/diagrams-braille/a9e1277fa41dd4a90a3bab0cc26e8906666272d0/app/Main.hs | haskell | A monoidal command line interface to some diagrams primitives
<|> (named :: String -> Diagram B -> Diagram B) <$> option auto (long "named" <> metavar "NAME") | # LANGUAGE NoMonomorphismRestriction #
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
module Main where
import Diagrams.Backend.Braille.CmdLine (B, mainWith)
import Diagrams.Backend.CmdLine (Parseable(..))
import Diagrams.Prelude hiding (option)
import Diagrams.TwoD.Text (Text)
import Options.Applicative
d =... |
477c0b8afdd0ea0662b9ec44e167c101a3419e6493ce875c5bbea0398aeb1162 | DavidAlphaFox/RabbitMQ | reloader.erl | 2007 Mochi Media , Inc.
@author < >
%%
@doc Erlang module for automatically reloading modified modules
%% during development.
-module(reloader).
-author("Matthew Dempsky <>").
-include_lib("kernel/include/file.hrl").
-behaviour(gen_server).
-export([start/0, start_link/0]).
-export([stop/0]).
-export([init... | null | https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/mochiweb-wrapper/mochiweb-git/src/reloader.erl | erlang |
during development.
External API
@doc Start the reloader.
@doc Start the reloader.
@doc Stop the reloader.
gen_server callbacks
@doc gen_server init, opens the server in an initial state.
@doc gen_server callback.
@doc gen_server callback.
@doc gen_server callback.
@doc gen_server termination callback.
@do... | 2007 Mochi Media , Inc.
@author < >
@doc Erlang module for automatically reloading modified modules
-module(reloader).
-author("Matthew Dempsky <>").
-include_lib("kernel/include/file.hrl").
-behaviour(gen_server).
-export([start/0, start_link/0]).
-export([stop/0]).
-export([init/1, handle_call/3, handle_... |
836dc862e921bf26ca9a1297e3a0c098eb23c13428061a7d2157478e9ddd2cf7 | ticean/clara-rules-shopping-examples | db.clj | (ns ticean.clara.db
"Stores facts and rules."
(:require
[clojure.edn :as edn]
[clojure.java.io :as io]
[integrant.core :as ig]
[ticean.clara.fact :as fact]))
(defprotocol FactDatastore
"Facts storage abstraction."
(load-facts
[this]
"Loads data from a storage and returns a seq of fact r... | null | https://raw.githubusercontent.com/ticean/clara-rules-shopping-examples/d6251b1ad5ae40d6f6b78755c89ca39ce381587c/src/ticean/clara/db.clj | clojure | (ns ticean.clara.db
"Stores facts and rules."
(:require
[clojure.edn :as edn]
[clojure.java.io :as io]
[integrant.core :as ig]
[ticean.clara.fact :as fact]))
(defprotocol FactDatastore
"Facts storage abstraction."
(load-facts
[this]
"Loads data from a storage and returns a seq of fact r... | |
35a22b2b0941498cfc6702c6b31252a32842da948075c265fdf8584ac591825e | chrisdone/ircbrowse | Social.hs | # LANGUAGE ScopedTypeVariables #
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
-- | Generate a graph of social interactions between users.
module Ircbrowse.Model.Social where
import Data.Text (Text)
import Snap.App
getSocialGraph :: b -> r -> Model c... | null | https://raw.githubusercontent.com/chrisdone/ircbrowse/d956aaf185500792224b6b0c209eb67c179322a4/src/Ircbrowse/Model/Social.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
| Generate a graph of social interactions between users.
generateGraph :: Config -> Pool -> IO ()
io $ putStrLn "Graph generation process started."
io $ putStrLn "Retrieving references ..."
events <- query ["select nick,text"
... | # LANGUAGE ScopedTypeVariables #
module Ircbrowse.Model.Social where
import Data.Text (Text)
import Snap.App
getSocialGraph :: b -> r -> Model c s [(Text,Text,Int)]
getSocialGraph _ _ = do
query ["select nick1,nick2,count"
,"from nick_to_nick"
,"order by count desc"]
()
... |
aef6f711b577b9596bd99334bd23c595a1e031822b0b25c22840127471e64d73 | malcolmreynolds/GSLL | exponential.lisp | ;; Exponential distribution
, Sat Sep 2 2006 - 19:04
Time - stamp : < 2009 - 05 - 24 19:31:30EDT exponential.lisp >
$ Id$
(in-package :gsl)
;;; /usr/include/gsl/gsl_randist.h
;;; /usr/include/gsl/gsl_cdf.h
(defmfun sample
((generator random-number-generator) (type (eql 'exponential))
&key mu)
"g... | null | https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/random/exponential.lisp | lisp | Exponential distribution
/usr/include/gsl/gsl_randist.h
/usr/include/gsl/gsl_cdf.h
Examples and unit test | , Sat Sep 2 2006 - 19:04
Time - stamp : < 2009 - 05 - 24 19:31:30EDT exponential.lisp >
$ Id$
(in-package :gsl)
(defmfun sample
((generator random-number-generator) (type (eql 'exponential))
&key mu)
"gsl_ran_exponential"
(((mpointer generator) :pointer) (mu :double))
:definition :method
:... |
d7d40d6cf4ba45e4862b880d84a31084a3937b5889c6ff36abc065279f621eec | ronxin/stolzen | ex3.25.scm | #lang scheme
(require racket/mpair)
(define cons mcons)
(define car mcar)
(define (caar val) (car (car val)))
(define cdr mcdr)
(define list mlist)
(define set-cdr! set-mcdr!)
(define set-car! set-mcar!)
(define (assoc key records)
(cond
((null? records) false)
((equal? key (c... | null | https://raw.githubusercontent.com/ronxin/stolzen/bb13d0a7deea53b65253bb4b61aaf2abe4467f0d/sicp/chapter3/3.3/ex3.25.scm | scheme | #lang scheme
(require racket/mpair)
(define cons mcons)
(define car mcar)
(define (caar val) (car (car val)))
(define cdr mcdr)
(define list mlist)
(define set-cdr! set-mcdr!)
(define set-car! set-mcar!)
(define (assoc key records)
(cond
((null? records) false)
((equal? key (c... | |
9176d046b51c41e66b642a000d288c6cb6545ff158bfe41b06583d54aef39cb7 | teropa/nlp | lidstone_prob_dist.clj | (ns teropa.nlp.probability.lidstone-prob-dist
"The Lidstone estimate for the probability distribution of the
experiment used to generate a frequency distribution. The
Lidstone estimate is parameterized by a real number gamma,
which typically ranges from 0 to 1. The Lidstone estimate
approximates the proba... | null | https://raw.githubusercontent.com/teropa/nlp/f89bc5a15b516208de1cfe2abe9692b7ed9a43e2/src/teropa/nlp/probability/lidstone_prob_dist.clj | clojure | allow for some rounding error
we *should* never get here | (ns teropa.nlp.probability.lidstone-prob-dist
"The Lidstone estimate for the probability distribution of the
experiment used to generate a frequency distribution. The
Lidstone estimate is parameterized by a real number gamma,
which typically ranges from 0 to 1. The Lidstone estimate
approximates the proba... |
ace88086b90aad6c1270531ec5e26b9c633afb04010997d475a32efaa0c6dd20 | leviroth/ocaml-reddit-api | listing.mli | open! Core
module Page_id : sig
type t [@@deriving sexp]
include Stringable with type t := t
end
module Pagination : sig
type t =
| Before of Page_id.t
| After of Page_id.t
[@@deriving sexp]
end
type +'child t [@@deriving sexp, of_jsonaf]
val children : 'child t -> 'child list
val after : _ t -> Pa... | null | https://raw.githubusercontent.com/leviroth/ocaml-reddit-api/6519697a39d68d675c3c36fd54add8ba35e939f3/reddit_api_kernel/listing.mli | ocaml | open! Core
module Page_id : sig
type t [@@deriving sexp]
include Stringable with type t := t
end
module Pagination : sig
type t =
| Before of Page_id.t
| After of Page_id.t
[@@deriving sexp]
end
type +'child t [@@deriving sexp, of_jsonaf]
val children : 'child t -> 'child list
val after : _ t -> Pa... | |
0ca2ecb0c3fcc23f0dfd25e9e1400cecfbace3e5e7f575b6e286aa0e33968ec7 | hiratara/Haskell-Nyumon-Sample | Spec.hs | {-# LANGUAGE OverloadedStrings #-}
module Main where
import ParserTest
import Data.Hjq.Parser
import Data.Hjq.Query
import Test.HUnit
import Control.Lens
import Data.Monoid
import Data.Text
import qualified Data.Vector as V
import qualified Data.HashMap.Strict as H
import Data.Aeson
import Data.Aeson.Lens
main :: IO ... | null | https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap09-samples/test/Spec.hs | haskell | # LANGUAGE OverloadedStrings #
--- | module Main where
import ParserTest
import Data.Hjq.Parser
import Data.Hjq.Query
import Test.HUnit
import Control.Lens
import Data.Monoid
import Data.Text
import qualified Data.Vector as V
import qualified Data.HashMap.Strict as H
import Data.Aeson
import Data.Aeson.Lens
main :: IO ()
main = do
runTestTT $ TestList... |
833cc997d12f0b8baecf7704d6c73ef1cf653755e0569cf347422e7660a13448 | mpelleau/AbSolute | cartesian.ml | open Tools
open Itv_sig
open Csp
Generic functor for a parametrized Cartesian representation
module Box (I : ITV) = struct
(* maps each variable to a (non-empty) interval *)
type t = I.t VarMap.t
this domain uses the same language than the one defined in Csp.ml
type internal_constr = Constraint.comparison
... | null | https://raw.githubusercontent.com/mpelleau/AbSolute/964bedb32168fca84507c0018153de45ad1db372/lib/domains/numeric/cartesian.ml | ocaml | maps each variable to a (non-empty) interval
elem is not used but required by the interface. disabling the unused
parameter warning to make dune happy
true if 'var' is an integer in the given environment
Printer
Set-theoretic
NOTE: all binary operations assume that both elements are defined on the
... | open Tools
open Itv_sig
open Csp
Generic functor for a parametrized Cartesian representation
module Box (I : ITV) = struct
type t = I.t VarMap.t
this domain uses the same language than the one defined in Csp.ml
type internal_constr = Constraint.comparison
let[@warning "-27"] internalize ?elem = Fun.id
l... |
addc4df8d0c6e24d830a54497fe2d6bdcab58bf86aa4c74ca46f283e2c8d05f6 | CodyReichert/qi | node.lisp | (in-package :cl-user)
(defpackage libyaml.node
(:use :cl :cffi)
(:import-from :libyaml.util
:size-t)
(:import-from :libyaml.basic
:mark-t)
(:import-from :libyaml.style
:sequence-style-t
:mapping-style-t)
(:export ;; Data types
:type-t
... | null | https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl-libyaml-latest/src/node.lisp | lisp | Data types | (in-package :cl-user)
(defpackage libyaml.node
(:use :cl :cffi)
(:import-from :libyaml.util
:size-t)
(:import-from :libyaml.basic
:mark-t)
(:import-from :libyaml.style
:sequence-style-t
:mapping-style-t)
:type-t
:item-t
... |
b86cad9c8760d9037c90f74b75c5435849047df660472d32067e15af707af064 | spechub/Hets | Map.hs | module Map where
map1 :: (a -> b) -> [a] -> [b]
map1 f [] = []
map1 f (x : xs) = f x : map1 f xs
{-# AXIOMS
"map_map" forall f g xs -> map1 f (map1 g xs) === map1 (f.g) xs
#-}
| null | https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/test/Map.hs | haskell | # AXIOMS
"map_map" forall f g xs -> map1 f (map1 g xs) === map1 (f.g) xs
# | module Map where
map1 :: (a -> b) -> [a] -> [b]
map1 f [] = []
map1 f (x : xs) = f x : map1 f xs
|
69fc0d3ec8844a9380442889ab76ea5ae5bad6fcfe30bb976e1a8614c2f2ab7a | fossas/fossa-cli | AtomicCounter.hs | {-# LANGUAGE GADTs #-}
# LANGUAGE UndecidableInstances #
module Control.Carrier.AtomicCounter (
AtomicCounterC,
runAtomicCounter,
-- * Re-exports
module X,
) where
import Control.Carrier.AtomicState
import Control.Effect.AtomicCounter as X
import Control.Effect.Lift
import Control.Monad.IO.Class (MonadIO)
im... | null | https://raw.githubusercontent.com/fossas/fossa-cli/efc29b4f9c874e338f0b5a7d1c5b13cb9543156f/src/Control/Carrier/AtomicCounter.hs | haskell | # LANGUAGE GADTs #
* Re-exports | # LANGUAGE UndecidableInstances #
module Control.Carrier.AtomicCounter (
AtomicCounterC,
runAtomicCounter,
module X,
) where
import Control.Carrier.AtomicState
import Control.Effect.AtomicCounter as X
import Control.Effect.Lift
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Trans.Class (MonadTran... |
b5b834f31981d2cd7016a7e2542e08a466aec27e9c4437dd7e6c365108028c18 | haskus/packages | Flow.hs | {-# LANGUAGE BangPatterns #-}
-- | Control-flow
module Haskus.Utils.Flow
( MonadIO (..)
, MonadInIO (..)
-- * Basic operators
, (>.>)
, (<.<)
, (|>)
, (<|)
, (||>)
, (<||)
, (|||>)
, (<|||)
* / applicative operators
, when
, unless
, whenM
, unlessM
, ifM
, guard
... | null | https://raw.githubusercontent.com/haskus/packages/40ea6101cea84e2c1466bc55cdb22bed92f642a2/haskus-utils/src/lib/Haskus/Utils/Flow.hs | haskell | # LANGUAGE BangPatterns #
| Control-flow
* Basic operators
* Variant based operators
* Monad transformers
$setup
>>> :set -XDataKinds
>>> :set -XTypeApplications
>>> :set -XFlexibleContexts
>>> :set -XTypeFamilies
| Compose functions
| Compose functions
| Apply a function
| Apply a function
# INLINABL... |
module Haskus.Utils.Flow
( MonadIO (..)
, MonadInIO (..)
, (>.>)
, (<.<)
, (|>)
, (<|)
, (||>)
, (<||)
, (|||>)
, (<|||)
* / applicative operators
, when
, unless
, whenM
, unlessM
, ifM
, guard
, void
, forever
, foldM
, foldM_
, forM
, forM_
, f... |
ce5970955620c9833574bd6c0759e7dc7cbd32f00b83815015a14d95bb8f865c | zalora/aws-ec2 | Types.hs | # LANGUAGE MultiParamTypeClasses
, FlexibleInstances
, RecordWildCards
, LambdaCase
#
, FlexibleInstances
, RecordWildCards
, LambdaCase
#-}
module Aws.Ec2.Types where
import Data.Text (Text)
import Data.Time.Clock (UTCTim... | null | https://raw.githubusercontent.com/zalora/aws-ec2/60b7ad4464edf3c69da8c2f023db4ba2fa7ffc48/src/Aws/Ec2/Types.hs | haskell | RunInstances only
-query-RunInstances.html
default | # LANGUAGE MultiParamTypeClasses
, FlexibleInstances
, RecordWildCards
, LambdaCase
#
, FlexibleInstances
, RecordWildCards
, LambdaCase
#-}
module Aws.Ec2.Types where
import Data.Text (Text)
import Data.Time.Clock (UTCTim... |
23ee93a1949b7586590069066b26b64b175a0ed4efb22853b91dcf9e5d76fd16 | dedbox/racket-algebraic | product.rkt | #lang racket/base
(require algebraic/pretty
algebraic/sum
racket/contract/base
racket/format
racket/pretty
(for-syntax racket/base))
(provide
(contract-out
[struct data:product ([id identifier?]
[sum sum?]
[ordinal exact-n... | null | https://raw.githubusercontent.com/dedbox/racket-algebraic/706b2d01ab735a01e372c33da49995339194e024/algebraic/product.rkt | racket | ----------------------------------------------------------------------------
(module+ test
(require algebraic/testing
rackunit
syntax/macro-testing)
(test-case "product-transformer"
(let-syntax ([Σ (sum-transformer #'Σ null 0 0)])
(let-syntax ([Π (product-transformer #'Π #'Σ ... | #lang racket/base
(require algebraic/pretty
algebraic/sum
racket/contract/base
racket/format
racket/pretty
(for-syntax racket/base))
(provide
(contract-out
[struct data:product ([id identifier?]
[sum sum?]
[ordinal exact-n... |
11704c4f9839c54a399150285069546c52b41092c213d1637204009f63018f59 | maybevoid/casimir | Higher.hs | # OPTIONS_GHC -fno - warn - orphans #
module Casimir.Ops.State.Higher
(
)
where
import Casimir.Ops.State.Base
import Casimir.Ops.State.Freer
import Casimir.Higher
instance EffOps (StateEff s) where
type Operation (StateEff s) =
HigherOps (StateOps s)
instance EffCoOp (StateEff s) where
type CoOperation... | null | https://raw.githubusercontent.com/maybevoid/casimir/ebbfa403739d6f258e6ac6793549006a0e8bff42/casimir/src/lib/Casimir/Ops/State/Higher.hs | haskell | # OPTIONS_GHC -fno - warn - orphans #
module Casimir.Ops.State.Higher
(
)
where
import Casimir.Ops.State.Base
import Casimir.Ops.State.Freer
import Casimir.Higher
instance EffOps (StateEff s) where
type Operation (StateEff s) =
HigherOps (StateOps s)
instance EffCoOp (StateEff s) where
type CoOperation... | |
354f125514998c32f54091c66dbd3c5e3fe75c4653b284072889dc2e2fb701ae | art-w/deque | deck.ml | include Deck_internal
let append a b = concat a b
let rec fold_left
: type a acc. (acc -> a -> acc) -> acc -> a t -> acc
= fun f acc (Regular t) -> fold_st f acc t
and fold_st
: type a acc c. (acc -> a -> acc) -> acc -> (a, c) st -> acc
= fun f acc t ->
match t with
| Void -> acc
| T deq -> fold_deque f acc de... | null | https://raw.githubusercontent.com/art-w/deque/20d3cfafa93b73c9f7ee20c230dc3e1b3f86956e/src/deck.ml | ocaml | include Deck_internal
let append a b = concat a b
let rec fold_left
: type a acc. (acc -> a -> acc) -> acc -> a t -> acc
= fun f acc (Regular t) -> fold_st f acc t
and fold_st
: type a acc c. (acc -> a -> acc) -> acc -> (a, c) st -> acc
= fun f acc t ->
match t with
| Void -> acc
| T deq -> fold_deque f acc de... | |
b484f588316f74e3999e6c2e74bac9c2b79e57d3cbf09c32b3a52495253297c4 | steinuil/nene | xml.mli | module Attr : sig
type input = Xmlm.attribute list
type error =
[ Combinators.error
| `Attribute_not_found of string
| `Trailing_elements_detected
| `Conversion_failed of string * string * string ]
type ('a, 'err) t = ('a, input, ([> error ] as 'err)) Combinators.parser
val str : string -> (s... | null | https://raw.githubusercontent.com/steinuil/nene/7fd538a826fc1c7ad107d931849b1be1b87b0692/patche/xml.mli | ocaml | module Attr : sig
type input = Xmlm.attribute list
type error =
[ Combinators.error
| `Attribute_not_found of string
| `Trailing_elements_detected
| `Conversion_failed of string * string * string ]
type ('a, 'err) t = ('a, input, ([> error ] as 'err)) Combinators.parser
val str : string -> (s... | |
b4bb0db89c5ab0b13ae75b9f4c89a6be372bc3c316b183710108cb2c779b0e19 | OCADml/OSCADml | morphing_sweeps.ml | (** {0 Morphing Sweeps} *)
open OCADml
open OSCADml
* While { { ! [ Mesh.sweep ] } and it 's derived functions are useful for sweeping fixed
polygons with holes , as shown in the { { ! page-"rounded_polyhole_sweep " }
rounded sweeps demo } , the { { ! OCADml . Mesh.morphing_sweep } [ Mesh.morphing_swee... | null | https://raw.githubusercontent.com/OCADml/OSCADml/a1d5e9d6aa9f703e0a7eb419128593ef9c694072/examples/morphing_sweeps.ml | ocaml | * {0 Morphing Sweeps} |
open OCADml
open OSCADml
* While { { ! [ Mesh.sweep ] } and it 's derived functions are useful for sweeping fixed
polygons with holes , as shown in the { { ! page-"rounded_polyhole_sweep " }
rounded sweeps demo } , the { { ! OCADml . Mesh.morphing_sweep } [ Mesh.morphing_sweep ] } family
provides... |
60f8e669b6598215e8f1162cb0e8dfbfd6b111ae813ad68829abb1b31fa7f265 | fetburner/Coq2SML | subtac_coercion.mli | open Term
val disc_subset : types -> (types * types) option
module Coercion : Coercion.S
| null | https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/subtac/subtac_coercion.mli | ocaml | open Term
val disc_subset : types -> (types * types) option
module Coercion : Coercion.S
| |
3f2416c589a5f4a5e9a128529b4149095cc9e54ec8e03269d4aaed2234cc1acc | yesodweb/persistent | NestedSymbolsInTypeSpec.hs | {-# OPTIONS_GHC -Wno-unused-local-binds #-}
# LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE OverloadedLabels #
# LANGUAGE QuasiQuotes #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE ... | null | https://raw.githubusercontent.com/yesodweb/persistent/f2e930fc2450b2738d5962d424369ebaf9053350/persistent/test/Database/Persist/TH/NestedSymbolsInTypeSpec.hs | haskell | # OPTIONS_GHC -Wno-unused-local-binds #
# LANGUAGE GADTs # | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE OverloadedLabels #
# LANGUAGE QuasiQuotes #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE UndecidableInstances #
module Database.Persist.TH.NestedSymbolsInT... |
0be371637ad5cb58677e9c9440b50df9d59381bf20e6a527fe59640446f710a6 | simonmar/monad-par | Trace.hs | # LANGUAGE RankNTypes , NamedFieldPuns , BangPatterns ,
ExistentialQuantification , MultiParamTypeClasses , CPP #
ExistentialQuantification, MultiParamTypeClasses, CPP #-}
{- OPTIONS_GHC -Wall -fno-warn-name-shadowing -fwarn-unused-imports -}
# LANGUAGE TypeFamilies #
| This is the sched... | null | https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/monad-par/Control/Monad/Par/Scheds/Trace.hs | haskell | OPTIONS_GHC -Wall -fno-warn-name-shadowing -fwarn-unused-imports
-----------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Standard instances:
<boilerplate>
</boilerplate>>
yield = yield | # LANGUAGE RankNTypes , NamedFieldPuns , BangPatterns ,
ExistentialQuantification , MultiParamTypeClasses , CPP #
ExistentialQuantification, MultiParamTypeClasses, CPP #-}
# LANGUAGE TypeFamilies #
| This is the scheduler described in the paper " A Monad for
Deterministic Parallel... |
a03af28edd1578f4a7bc895f62bc0b75a667552824804868eaead5e8ac659258 | PLTools/OCanren | Nat.ml | SPDX - License - Identifier : LGPL-2.1 - or - later
* OCanren .
* Copyright ( C ) 2015 - 2022
* , , ,
* St. Petersburg State University , JetBrains Research
*
* This software is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
... | null | https://raw.githubusercontent.com/PLTools/OCanren/89896740ff6fbe3256ef6706c78c74be5d8479f1/src/std/Nat.ml | ocaml | to avoid clash with Std.List (i.e. logic list) | SPDX - License - Identifier : LGPL-2.1 - or - later
* OCanren .
* Copyright ( C ) 2015 - 2022
* , , ,
* St. Petersburg State University , JetBrains Research
*
* This software is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
... |
92fd4c2e00314111ae11db71ea905686f0c7c4a576ba24ac4b8cd5b4d71d56de | nikodemus/SBCL | early-setf.lisp | SETF and friends ( except for stuff defined with COLLECT , which
;;;; comes later)
;;;;
Note : The expansions for SETF and friends sometimes create
;;;; needless LET-bindings of argument values. The compiler will
remove most of these spurious bindings , so SETF does n't worry too
;;;; much about creating them.
... | null | https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/code/early-setf.lisp | lisp | comes later)
needless LET-bindings of argument values. The compiler will
much about creating them.
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
The inverse for a generalized-variable r... | SETF and friends ( except for stuff defined with COLLECT , which
Note : The expansions for SETF and friends sometimes create
remove most of these spurious bindings , so SETF does n't worry too
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system ,... |
57bfb609dff4d43ef2a28c4488e1c5f05ebfa3dbbf40688facaafca36321248a | goolord/ditto | Backend.hs | # LANGUAGE
MultiParamTypeClasses
, TypeFamilies
, OverloadedStrings
, FunctionalDependencies
, TypeOperators
#
MultiParamTypeClasses
, TypeFamilies
, OverloadedStrings
, FunctionalDependencies
, TypeOperators
#-}
|
This module contains two classes . ' FormInput ' is a class whic... | null | https://raw.githubusercontent.com/goolord/ditto/eea0b642b143be8d0c9dea1d0d9dc47c6bbb1ed4/src/Ditto/Backend.hs | haskell | | an error type used to represent errors that are common to all backends
These errors should only occur if there is a bug in the ditto-*
packages. Perhaps we should make them an 'Exception' so that we can
^ show 'input' in a format suitable for error messages
^ show 'input' in a format suitable for error messages... | # LANGUAGE
MultiParamTypeClasses
, TypeFamilies
, OverloadedStrings
, FunctionalDependencies
, TypeOperators
#
MultiParamTypeClasses
, TypeFamilies
, OverloadedStrings
, FunctionalDependencies
, TypeOperators
#-}
|
This module contains two classes . ' FormInput ' is a class whic... |
b2a54253905e213bd6bd721382a51e3410e72dc5f21be7fe75e9a03de7278921 | MinaProtocol/mina | mempool_response.ml |
* This file has been generated by the OCamlClientCodegen generator for openapi - generator .
*
* Generated by : -generator.tech
*
* Schema Mempool_response.t : A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier .
* This file has been generated by... | null | https://raw.githubusercontent.com/MinaProtocol/mina/a80b00221953c26ff158e7375a948b5fa9e7bd8b/src/lib/rosetta_models/mempool_response.ml | ocaml | * A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier. |
* This file has been generated by the OCamlClientCodegen generator for openapi - generator .
*
* Generated by : -generator.tech
*
* Schema Mempool_response.t : A MempoolResponse contains all transaction identifiers in the mempool for a particular network_identifier .
* This file has been generated by... |
4c65166ba45dfdea9b76616d3f30518916fdbf244727beb507e8517e8a65d6e1 | tomhanika/conexp-clj | fcas_test.clj | ;; Copyright ⓒ the conexp-clj developers; 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 LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bou... | null | https://raw.githubusercontent.com/tomhanika/conexp-clj/9f53c71913fa39b95516c388d9e426bec34e3a77/src/test/clojure/conexp/io/fcas_test.clj | clojure | Copyright ⓒ the conexp-clj developers; all rights reserved.
The use and distribution terms for this software are covered by the
which can be found in the file LICENSE 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 re... | Eclipse Public License 1.0 ( -1.0.php )
(ns conexp.io.fcas-test
(:use conexp.base
conexp.fca.contexts
conexp.fca.lattices
conexp.fca.implications
conexp.io.fcas
conexp.io.util-test
conexp.layouts)
(:use clojure.test))
(def- context-oi
"Context to use for out-in... |
7bb33177a2357a2e400b671711b39bfb144041a610c56b53dfb0d1570c7ed8ef | robert-strandh/SICL | map-asts.lisp | (cl:in-package #:cleavir-ast-transformations)
(defun map-asts (function ast)
(let ((visited (make-hash-table :test #'eq))
(worklist (list ast)))
(loop until (null worklist)
do (let ((next-ast (pop worklist)))
(unless (gethash next-ast visited)
(setf (gethash next... | null | https://raw.githubusercontent.com/robert-strandh/SICL/598a3170980fb8e2f0a62678d688e6b79356a086/Code/Cleavir/AST-transformations/map-asts.lisp | lisp | (cl:in-package #:cleavir-ast-transformations)
(defun map-asts (function ast)
(let ((visited (make-hash-table :test #'eq))
(worklist (list ast)))
(loop until (null worklist)
do (let ((next-ast (pop worklist)))
(unless (gethash next-ast visited)
(setf (gethash next... | |
777f400c083f573ac04cb46df6013dfd5a363bab17dd6a03b2d5c99ca2470b04 | armedbear/abcl | define-symbol-macro.lisp | ;;; define-symbol-macro.lisp
;;;
Copyright ( C ) 2003 - 2004
$ 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 late... | null | https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/src/org/armedbear/lisp/define-symbol-macro.lisp | lisp | define-symbol-macro.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 Publi... | Copyright ( C ) 2003 - 2004
$ 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 .
(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.