_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 |
|---|---|---|---|---|---|---|---|---|
11e1292c369f47fca809a5ad3874b1c4117941c98c6ab53ca861f7a4c9c4f09f | mathiasbourgoin/SPOC | Kirc.mli | type float64 = float
type float32 = float
type extension = ExFloat32 | ExFloat64
type ('a, 'b, 'c) kirc_kernel = {
ml_kern : 'a;
body : Kirc_Ast.k_ext;
ret_val : Kirc_Ast.k_ext * ('b, 'c) Spoc.Vector.kind;
extensions : extension array;
}
type ('a,'b,'c, 'd) kirc_function =
{
fun_name:string;
ml_fun :... | null | https://raw.githubusercontent.com/mathiasbourgoin/SPOC/ddfde5bdb089f519457c7bb0a2cb1469d71d00fb/SpocLibs/Sarek/Kirc.mli | ocaml | , 'c, 'd, 'e) kirc_function ->
, 'c, 'd, 'e) kirc_function -> | type float64 = float
type float32 = float
type extension = ExFloat32 | ExFloat64
type ('a, 'b, 'c) kirc_kernel = {
ml_kern : 'a;
body : Kirc_Ast.k_ext;
ret_val : Kirc_Ast.k_ext * ('b, 'c) Spoc.Vector.kind;
extensions : extension array;
}
type ('a,'b,'c, 'd) kirc_function =
{
fun_name:string;
ml_fun :... |
e723d7fa82402e3525d1ebd008ee1409d75d408045e489328bf19099a853d54f | boxp/spellcard | example-entity.clj | (ns {{name}}.domain.entity.example)
(defrecord Example [message])
| null | https://raw.githubusercontent.com/boxp/spellcard/0ad124a276e3e7003967eb3ae9ffdf1b572e4a2a/resources/leiningen/new/spellcard/example-entity.clj | clojure | (ns {{name}}.domain.entity.example)
(defrecord Example [message])
| |
2d3ba028c33835b8b8eceead43fffe15c881effb56953b8dc7d7de2d73d0f5ce | cardmagic/lucash | tty-consts.scm | ;;; Constant definitions for tty control code (POSIX termios).
Copyright ( c ) 1995 by . See file COPYING .
Largely rehacked by Olin .
These constants are for 2.x ,
;;; and are taken from /usr/include/sys/termio.h
;;; and /usr/include/sys/termios.h.
Non - standard ( POSIX , , 4.3+BSD ) things :
;;; -... | null | https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scsh/solaris/tty-consts.scm | scheme | Constant definitions for tty control code (POSIX termios).
and are taken from /usr/include/sys/termio.h
and /usr/include/sys/termios.h.
- Some of the baud rates.
Special Control Characters
Indices into the c_cc[] character array.
Name Subscript Enabled by
---- --------- ----------
... | Copyright ( c ) 1995 by . See file COPYING .
Largely rehacked by Olin .
These constants are for 2.x ,
Non - standard ( POSIX , , 4.3+BSD ) things :
^d icanon
icanon
^ ? icanon
^\ isig
^q ixon , ixoff
^s ixon , ixoff
SVR4 & 4.3+BSD
icanon
4.3+BSD
(define num-ttychars 19)
... |
b38ca69f27d5e709ddf6dbcb83bd4a85ab92aade985e6a2a7e34845ba09cb5c9 | tonsky/compact-uuids | core.cljs | (ns compact-uuids.core
"Compact 26-char URL-safe representation of UUIDs"
(:refer-clojure :exclude [str read])
(:require-macros
[compact-uuids.core :as uuid]))
(defn char-of-alphabet [i]
;;
(.charAt "0123456789abcdefghjkmnpqrstvwxyz" i))
(defn char-of-hex [i]
(.charAt "0123456789abcdef" i))
(defn... | null | https://raw.githubusercontent.com/tonsky/compact-uuids/de6f44c393a008dfcefc30bc42d8519312a66175/src/compact_uuids/core.cljs | clojure |
a-f
A-F
accumulated enough bits to generate char from lowest `bits-to` bits
drop lowest `bits-to` bits
prepend char corresponding to lowest `bits-to` bits
end of string
prepend rest of bits
read next `bits-from` bits from the string | (ns compact-uuids.core
"Compact 26-char URL-safe representation of UUIDs"
(:refer-clojure :exclude [str read])
(:require-macros
[compact-uuids.core :as uuid]))
(defn char-of-alphabet [i]
(.charAt "0123456789abcdefghjkmnpqrstvwxyz" i))
(defn char-of-hex [i]
(.charAt "0123456789abcdef" i))
(defn parse... |
62134d7a1db36d62a274be8a4e4fbd9cbb4131583b6a1d92f0df11ad7e9310e3 | kishanov/re-frame-datatable-example | core.clj | (ns re-frame-datatable-example.core)
| null | https://raw.githubusercontent.com/kishanov/re-frame-datatable-example/4468158b0fd33343c51a5e9d7c0edeb8278e1a26/src/clj/re_frame_datatable_example/core.clj | clojure | (ns re-frame-datatable-example.core)
| |
c8eb92c5c4d1488d9f527e517a87570cdfcbb5fa04e4c3d3364297fb8c6417e0 | camllight/camllight | determ.mli | type état =
{ mutable dtransitions : transition vect;
dterminal : bool }
and transition =
Vers of état
| Rejet;;
value déterminise : auto__état -> determ__état
and reconnaît : determ__état -> string -> bool;;
| null | https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/windows/examples/grep/determ.mli | ocaml | type état =
{ mutable dtransitions : transition vect;
dterminal : bool }
and transition =
Vers of état
| Rejet;;
value déterminise : auto__état -> determ__état
and reconnaît : determ__état -> string -> bool;;
| |
9b820d51a2b6c83550cdffea6f7d206f81695a54715e614303b12d9936026b72 | binaryage/chromex | printer_provider.clj | (ns chromex.app.printer-provider
"The chrome.printerProvider API exposes events used by print
manager to query printers controlled by extensions, to query their
capabilities and to submit print jobs to these printers.
* available since Chrome 44
* "
(:refer-clojure :only [defmacro defn apply decla... | null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps/chromex/app/printer_provider.clj | clojure | -- events -----------------------------------------------------------------------------------------------------------------
docs: /#tapping-events
-- convenience ------------------------------------------------------------------------------------------------------------
--------------------------------------------... | (ns chromex.app.printer-provider
"The chrome.printerProvider API exposes events used by print
manager to query printers controlled by extensions, to query their
capabilities and to submit print jobs to these printers.
* available since Chrome 44
* "
(:refer-clojure :only [defmacro defn apply decla... |
e9df054c3affa7256c6e45ec6a48a31a778df38979ac9f3eb510c790fe43f8fc | gstew5/cs4100-public | interp.mli | open Errors
open Exp
val tycheck_and_print_result : exp -> unit
val print_result : exp -> unit
| null | https://raw.githubusercontent.com/gstew5/cs4100-public/53c99e3e87331aa5dfa9161ca350a8e23acee739/tyckeck-example/interp.mli | ocaml | open Errors
open Exp
val tycheck_and_print_result : exp -> unit
val print_result : exp -> unit
| |
a49a76668a63cf8a19876a8d4aee65feaa3fed9d508f3fe93f593e543c7c84e7 | ivanjovanovic/sicp | e-5.33-factorial-compiled.scm | (assign val (op make-compiled-procedure) (label entry18) (reg env))
(goto (label after-lambda19))
entry18
(assign env (op compiled-procedure-env) (reg proc))
(assign env (op extend-environment) (const (n)) (reg argl) (reg env))
(save continue)
(save env)
(assign proc (op lookup-variable-value) (const =) (... | null | https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/5.5/e-5.33-factorial-compiled.scm | scheme | (assign val (op make-compiled-procedure) (label entry18) (reg env))
(goto (label after-lambda19))
entry18
(assign env (op compiled-procedure-env) (reg proc))
(assign env (op extend-environment) (const (n)) (reg argl) (reg env))
(save continue)
(save env)
(assign proc (op lookup-variable-value) (const =) (... | |
45ee5afbe83c3809b0d2a7ec610963f008a89594273f8d305b439ee33ee8f142 | CryptoKami/cryptokami-core | Impl.hs | -- | This module re-exports slotting implementations.
# OPTIONS_GHC -F -pgmF autoexporter #
| null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/infra/Pos/Slotting/Impl.hs | haskell | | This module re-exports slotting implementations. |
# OPTIONS_GHC -F -pgmF autoexporter #
|
f767f6dc98f6132de7483bb8585f901f8223c02656c8806a062bfda41b324c85 | tweag/ormolu | associated-data2-out.hs | # LANGUAGE TypeFamilies #
module Main where
-- | Something more.
class Baz a where
-- | Baz bar
data
BazBar
a
b
c
| baz
data
BazBaz
b
a
c
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/class/associated-data2-out.hs | haskell | | Something more.
| Baz bar | # LANGUAGE TypeFamilies #
module Main where
class Baz a where
data
BazBar
a
b
c
| baz
data
BazBaz
b
a
c
|
1519842b28340749066e97e5adc16ac2d56467501b801193dc141b2306874dbd | alphaHeavy/llvm-general-typed | ValueWrap.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE InstanceSigs #
# LANGUAGE LambdaCase #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
module LLVM.General.Typed.ValueWrap
( operandWrap
, functionWrap
) where
import Control.Monad... | null | https://raw.githubusercontent.com/alphaHeavy/llvm-general-typed/75c39111f7fc685aacb3eaf1b2948451e7222e0b/llvm-general-typed-pure/src/LLVM/General/Typed/ValueWrap.hs | haskell | # LANGUAGE RankNTypes #
|
Attempt to lift an operand into a typed 'Value'
|
Test if a 'Constant' matches a given 'Type'
|
Attempt to convert a 'AST.Global' function pointer to a strongly typed 'Function'
check that the requested calling convention matches the declaration
split the type signature into argument t... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE InstanceSigs #
# LANGUAGE LambdaCase #
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
module LLVM.General.Typed.ValueWrap
( operandWrap
, functionWrap
) where
import Control.Monad
import qualified Data.Folda... |
5c5201761de5bce646d7b6cf5d58fae1ddfde87774f35f84370ddfe35cc599d1 | GillianPlatform/Gillian | GInterpreter.ml | open Literal
open BranchCase
module L = Logging
module DL = Debugger_log
open Syntaxes.Result
type branch_case = BranchCase.t [@@deriving yojson]
module type S = sig
module CallStack : CallStack.S
type vt
type st
type store_t
type state_t
type state_err_t [@@deriving show]
type state_vt [@@deriving yoj... | null | https://raw.githubusercontent.com/GillianPlatform/Gillian/06739278bc266d218c1516d4c8e670b4edff9041/GillianCore/engine/GeneralSemantics/General/GInterpreter.ml | ocaml | * Equal to Conf cont + the id of the required spec
* General GIL Interpreter
*************** *
* Auxiliary Types *
* ***************
* Type of configurations: state, call stack, previous index, previous loop ids, current index, branching
* Equal to Conf cont + the id of the required spec
We only want to tr... | open Literal
open BranchCase
module L = Logging
module DL = Debugger_log
open Syntaxes.Result
type branch_case = BranchCase.t [@@deriving yojson]
module type S = sig
module CallStack : CallStack.S
type vt
type st
type store_t
type state_t
type state_err_t [@@deriving show]
type state_vt [@@deriving yoj... |
52853b596b74d36b460ecd140d535ecaecaf6a072e9aee1e33198534a02e39da | 0install/0install | feed_provider_impl.ml | Copyright ( C ) 2013 , the README file for details , or visit .
* See the README file for details, or visit .
*)
(** Caching feeds in memory *)
module U = Support.Utils
module Basedir = Support.Basedir
module FeedMap = Feed_url.FeedMap
(** Provides feeds to the [Impl_provider.impl_provider] during a sol... | null | https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/zeroinstall/feed_provider_impl.ml | ocaml | * Caching feeds in memory
* Provides feeds to the [Impl_provider.impl_provider] during a solve. Afterwards, it can be used to
find out which feeds were used (and therefore may need updating).
Note: excludes distro feeds
Used after compiling a new version. | Copyright ( C ) 2013 , the README file for details , or visit .
* See the README file for details, or visit .
*)
module U = Support.Utils
module Basedir = Support.Basedir
module FeedMap = Feed_url.FeedMap
class feed_provider config distro =
object (self : #Feed_provider.feed_provider)
val mutable ... |
3b77baeac062fbab092b71188e2df6fda5d04a71de6e06d23350eabbe948658c | MaartenFaddegon/Hoed | Example4.hs | import Debug.Hoed
main = runO $ print (observe "main" $ 42 :: Int)
| null | https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/Example4.hs | haskell | import Debug.Hoed
main = runO $ print (observe "main" $ 42 :: Int)
| |
662a769feb5f07d1a8fd6872044aa94ee303b9acb321c3dec7921d121c03fab3 | tonyg/racket-font | font-render.rkt | #lang racket/base
Copyright ( c ) 2011 < >
;;
;; Permission is hereby granted, free of charge, to any person
;; obtaining a copy of this software and associated documentation
files ( the " Software " ) , to deal in the Software without
;; restriction, including without limitation the rights to use, copy,
;; mo... | null | https://raw.githubusercontent.com/tonyg/racket-font/ad38475a64ba09d4f483bc387812fd6e79a2e9a4/font-render.rkt | racket |
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
furnished to do so, subject to the following conditions:
... | #lang racket/base
Copyright ( c ) 2011 < >
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
(re... |
cb2f4b33ba64505a589bae86aa2ab7374c72a38041415878f07491bd3cc90833 | diku-dk/futhark | MapNest.hs | # LANGUAGE TypeFamilies #
module Futhark.Analysis.HORep.MapNest
( Nesting (..),
MapNest (..),
typeOf,
params,
inputs,
setInputs,
fromSOAC,
toSOAC,
)
where
import Data.List (find)
import Data.Map.Strict qualified as M
import Data.Maybe
import Futhark.Analysis.HORep.SOAC (SOAC)
import Fu... | null | https://raw.githubusercontent.com/diku-dk/futhark/98e4a75e4de7042afe030837084764bbf3c6c66e/src/Futhark/Analysis/HORep/MapNest.hs | haskell | Do we have a nested MapNest?
No nested MapNest it seems. | # LANGUAGE TypeFamilies #
module Futhark.Analysis.HORep.MapNest
( Nesting (..),
MapNest (..),
typeOf,
params,
inputs,
setInputs,
fromSOAC,
toSOAC,
)
where
import Data.List (find)
import Data.Map.Strict qualified as M
import Data.Maybe
import Futhark.Analysis.HORep.SOAC (SOAC)
import Fu... |
db5fb6011f76bce701badd8ecfebfa7f463c6415103b486320d5ad66de0206ae | RedPRL/asai | DiagnosticEmitter.ml | module type S = DiagnosticEmitterSigs.S
module Make (Code : Code.S) : S with module Code := Code =
struct
type _ Effect.t += Emit : Code.t Diagnostic.t -> unit Effect.t
exception Fatal of Code.t Diagnostic.t
let emit d = Effect.perform @@ Emit d
let fatal d = raise @@ Fatal d
let handler ~(emit : _ -> unit... | null | https://raw.githubusercontent.com/RedPRL/asai/75aa6d45af721575b7507b1bf06e0e405d6d9be0/src/core/logger/DiagnosticEmitter.ml | ocaml | module type S = DiagnosticEmitterSigs.S
module Make (Code : Code.S) : S with module Code := Code =
struct
type _ Effect.t += Emit : Code.t Diagnostic.t -> unit Effect.t
exception Fatal of Code.t Diagnostic.t
let emit d = Effect.perform @@ Emit d
let fatal d = raise @@ Fatal d
let handler ~(emit : _ -> unit... | |
349d3b1a4b604e602384f8be1684aab5c7c34c805f9128d775a1b47639bb0111 | Frechmatz/cl-synthesizer | agent.lisp | (in-package :cl-synthesizer-monitor-buffer-agent)
(defun make-symbol-impl (name num package)
(if num
(intern (format nil "~a-~a" (string-upcase name) num) package)
(intern (string-upcase name) package)))
(defun make-keyword (name num)
(make-symbol-impl name num "KEYWORD"))
(defun make-keyword-list (n... | null | https://raw.githubusercontent.com/Frechmatz/cl-synthesizer/7490d12f0f1e744fa1f71e014627551ebc4388c7/src/monitor/buffer/agent.lisp | lisp | (in-package :cl-synthesizer-monitor-buffer-agent)
(defun make-symbol-impl (name num package)
(if num
(intern (format nil "~a-~a" (string-upcase name) num) package)
(intern (string-upcase name) package)))
(defun make-keyword (name num)
(make-symbol-impl name num "KEYWORD"))
(defun make-keyword-list (n... | |
ffb18c2b70309320f715eb130ad5f7864a9fbc7b37d94b0c5e5b176284aa1f8b | stchang/macrotypes | typed-rackunit-typechecking.rkt | #lang racket/base
;; this file is a copy of rackunit/turnstile,
;; except it uses typed/rackunit instead of rackunit
;; TODO: can this be avoided?
(provide check-type typecheck-fail)
(require (for-syntax rackunit syntax/srcloc racket/pretty racket/string)
typed/rackunit macrotypes/typecheck-core
(o... | null | https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-test/tests/turnstile/typed-rackunit-typechecking.rkt | racket | this file is a copy of rackunit/turnstile,
except it uses typed/rackunit instead of rackunit
TODO: can this be avoided?
count this test case in the test count
check err msg matches
count this test case in the test count | #lang racket/base
(provide check-type typecheck-fail)
(require (for-syntax rackunit syntax/srcloc racket/pretty racket/string)
typed/rackunit macrotypes/typecheck-core
(only-in macrotypes/typecheck infer+erase))
(define-syntax (check-type stx)
(syntax-parse stx
[(_ e tag:id τ-expected)
... |
14065bf1bbf5618dd00485a4e214f6f12eff81aa6e3b60f5cbc4d64bea8f032b | robdockins/edison | EnumSet.hs | -----------------------------------------------------------------------------
-- |
Module : Data . Edison . . EnumSet
Copyright : ( c ) 2006
License : BSD
--
Maintainer : robdockins AT fastmail DOT fm
-- Stability : stable
Portability : GHC , Hugs ( MPTC and FD )
-... | null | https://raw.githubusercontent.com/robdockins/edison/543a9085384ac2f4effbfc3266cca5f2d3b08e1b/edison-core/src/Data/Edison/Coll/EnumSet.hs | haskell | ---------------------------------------------------------------------------
|
Stability : stable
An efficient implementation of sets over small enumerations.
For this implementation to work as expected at type @A@, there are a number
a finite subset of the naturals [0,1,2,3....]. As a corollary we must h... | Module : Data . Edison . . EnumSet
Copyright : ( c ) 2006
License : BSD
Maintainer : robdockins AT fastmail DOT fm
Portability : GHC , Hugs ( MPTC and FD )
The implementation of ' EnumSet ' is based on bit - wise operations .
of preconditions on the @Eq@ , @Enum@ an... |
7dd513ddb0355b27c7e994f9504f8af1916b0d2ebac82493d0c8006230ea235e | maximedenes/native-coq | typeclasses.ml | (************************************************************************)
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/pretyping/typeclasses.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
This module defines type-classe... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Names
open Libnames
open... |
5a73fe858ad39c9d54a0097c8b0fbf41f4a445377bdb99fb5b934ad8af0fec2a | danieljharvey/mimsa | Module.hs | # LANGUAGE DerivingStrategies #
{-# LANGUAGE OverloadedStrings #-}
module Language.Mimsa.Core.Parser.Module
( parseModule,
moduleParser,
DefPart (..),
)
where
import Data.Char as Char
import Data.Text (Text)
import Language.Mimsa.Core.Parser.Helpers
import Language.Mimsa.Core.Parser.Identifier
import Lang... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/e6b177dd2c38e8a67d6e27063ca600406b3e6b56/core/src/Language/Mimsa/Core/Parser/Module.hs | haskell | # LANGUAGE OverloadedStrings #
since we can parse each thing separately, maybe
we can collect all of the separate parse errors at once?
we've excluded Export here
-----
type definitions
type Maybe a = Just a | Nothing
-----
definitions
def id a = a
def exclaim (str: String) = str ++ "!!!"
def exclaim2 (str: St... | # LANGUAGE DerivingStrategies #
module Language.Mimsa.Core.Parser.Module
( parseModule,
moduleParser,
DefPart (..),
)
where
import Data.Char as Char
import Data.Text (Text)
import Language.Mimsa.Core.Parser.Helpers
import Language.Mimsa.Core.Parser.Identifier
import Language.Mimsa.Core.Parser.Identifiers
... |
05b75fe1956937135786e93cfd02a78c26b50e64f18d5070d2aab07015abac52 | fulcrologic/fulcro-rad | resolvers_pathom3_spec.cljc | (ns com.fulcrologic.rad.resolvers-pathom3-spec
(:require
[com.fulcrologic.rad.attributes :as attr]
[com.fulcrologic.rad.attributes-options :as ao]
[com.fulcrologic.rad.authorization :as auth]
[com.fulcrologic.rad.resolvers-pathom3 :as resolvers-pathom3]
;; Pathom3 available on test cp, only
[c... | null | https://raw.githubusercontent.com/fulcrologic/fulcro-rad/d2a40fdd7ca6ee0ec5fdb3897d5764bb6c5f7800/src/test/com/fulcrologic/rad/resolvers_pathom3_spec.cljc | clojure | Pathom3 available on test cp, only | (ns com.fulcrologic.rad.resolvers-pathom3-spec
(:require
[com.fulcrologic.rad.attributes :as attr]
[com.fulcrologic.rad.attributes-options :as ao]
[com.fulcrologic.rad.authorization :as auth]
[com.fulcrologic.rad.resolvers-pathom3 :as resolvers-pathom3]
[com.wsscode.pathom3.interface.eql :as p.eql... |
df54609a19aeb5cb49953c348d60a6a7fc334f87259a2aff4389f29a64e1d3b3 | anmonteiro/piaf | carl.ml | ----------------------------------------------------------------------------
* Copyright ( c ) 2019 - 2020 ,
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are met :
*
* 1 . Red... | null | https://raw.githubusercontent.com/anmonteiro/piaf/3b6a79d720c2767601396dd37a940787a2f095db/bin/carl.ml | ocaml | e.g. `//example.com`
TODO: try / catch
We requested a compressed response, and we got a compressed response
* back.
We requested a compressed response, and we got a compressed response
* back.
Never happens, cmdliner guarantees we get a non-empty list.
--resolve <host:port:address[,address]... | ----------------------------------------------------------------------------
* Copyright ( c ) 2019 - 2020 ,
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are met :
*
* 1 . Red... |
952fb3be6e10f28fa20d24aa82347806c3761448d66f98ab4514a0e73bd035da | galdor/tungsten | io-multiplexing-epoll.lisp | (in-package :system)
(defclass epoll-io-base (io-base)
((fd
:type (or (integer 0) null)
:initarg :fd
:reader epoll-io-base-fd)))
(defmethod initialize-instance :after ((base epoll-io-base)
&key &allow-other-keys)
(with-slots (fd) base
(setf fd (epoll-create1 ... | null | https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-system/src/io-multiplexing-epoll.lisp | lisp | (in-package :system)
(defclass epoll-io-base (io-base)
((fd
:type (or (integer 0) null)
:initarg :fd
:reader epoll-io-base-fd)))
(defmethod initialize-instance :after ((base epoll-io-base)
&key &allow-other-keys)
(with-slots (fd) base
(setf fd (epoll-create1 ... | |
67b7a41fef5534170de0c68844664cf4e5a199b5a1681325aa77a17c3406ab6a | codinuum/cca | LCfragment.ml |
Copyright 2012 - 2020 Codinuum Software Lab < >
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in wri... | null | https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/common/LCfragment.ml | ocaml | LCfragment.ml |
Copyright 2012 - 2020 Codinuum Software Lab < >
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in wri... |
0133e33f4cd2820a59df2fe74c57c7a904d8e354648a0ab4fbf8d9a379e2ff9f | w3ntao/programming-in-haskell | Exercise_12_5_8.hs | # OPTIONS_GHC -Wall #
module Exercise_12_5_8 where
type State = Int
newtype ST a = S (State -> (a, State))
extract :: ST a -> (State -> (a, State))
extract (S x) = x
instance Functor ST where
fmap g st = do S func
where func x = (g a, int)
where (a, int) = (extract... | null | https://raw.githubusercontent.com/w3ntao/programming-in-haskell/c2769fa19d8507aad209818c83f67e82c3698f07/Chapter-12/Exercise_12_5_8.hs | haskell | # OPTIONS_GHC -Wall #
module Exercise_12_5_8 where
type State = Int
newtype ST a = S (State -> (a, State))
extract :: ST a -> (State -> (a, State))
extract (S x) = x
instance Functor ST where
fmap g st = do S func
where func x = (g a, int)
where (a, int) = (extract... | |
98d1920d66a27de952e1347412b6555d757b46fcdd4290d84a9bdc8b2edb8ff4 | Kappa-Dev/KappaTools | KaSaWorker.ml | (******************************************************************************)
(* _ __ * The Kappa Language *)
| |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF
(* | ' / ********************************************************************... | null | https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/gui/KaSaWorker.ml | ocaml | ****************************************************************************
_ __ * The Kappa Language
| ' / ********************************************************************
| . \ * This file is distributed under the terms of the
|_|\_\ * GN... | | |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF
let on_message (text_message : string) : unit =
Kasa_mpi.on_message
(fun s -> Worker.post_message s)
text_message
let () = Worker.set_onmessage on_message
|
bc0b12d8c84ad2df0d17bd325422cf1312b130cd92399021a523f49e12608fd5 | appleshan/cl-http | cl-http-70-1.lisp | -*- Mode : LISP ; Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : T -*-
Patch file for CL - HTTP version 70.1
Reason : Function ( CLOS : METHOD ( CL : SETF WWW - UTILS::GET - VALUE ) ( T CL : PATHNAME T ) ): Missing ( setf get - value ) for pathname .
Written by JCMa ,
while running o... | null | https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/server/patch/cl-http-70/cl-http-70-1.lisp | lisp | Syntax : Common - Lisp ; Package : USER ; Base : 10 ; Patch - File : T -*-
MAIL - SERVER;PATCHES;LOCAL - FLAVOR - FUNCTION - PATCH - MARK2 ) ,
MAIL - SERVER;PATCHES;GET - EMB - FILE - HOST - PATCH ) ,
MAIL - SERVER;PATCHES;MAILER - ENVIRONMENT - PATCH ) ,
MAIL - SERVER;PATCHES;PATHNAME - HOST - NAMEP - PATCH.LISP.2 ) ... | Patch file for CL - HTTP version 70.1
Reason : Function ( CLOS : METHOD ( CL : SETF WWW - UTILS::GET - VALUE ) ( T CL : PATHNAME T ) ): Missing ( setf get - value ) for pathname .
Written by JCMa ,
while running on Publications Y2 K Testbed from HOST6:/usr / lib / symbolics / eop - world - pub6 -
with ... |
93217d7b68d04d11dfaa1cce66dd21cdaa5ee9ab9c049a556c452d7c443a54ee | kana/sicp | ex-4.68.scm | Exercise 4.68 . Define rules to implement the reverse operation of exercise
2.18 , which returns a list containing the same elements as a given list in
;;; reverse order. (Hint: Use append-to-form.) Can your rules answer both
;;; (reverse (1 2 3) ?x) and (reverse ?x (1 2 3)) ?
(rule (reverse (?x) (?x)))
(rule (r... | null | https://raw.githubusercontent.com/kana/sicp/912bda4276995492ffc2ec971618316701e196f6/ex-4.68.scm | scheme | reverse order. (Hint: Use append-to-form.) Can your rules answer both
(reverse (1 2 3) ?x) and (reverse ?x (1 2 3)) ? | Exercise 4.68 . Define rules to implement the reverse operation of exercise
2.18 , which returns a list containing the same elements as a given list in
(rule (reverse (?x) (?x)))
(rule (reverse (?x . (?y)) (?y . (?x))))
(rule (reverse (?x . ?y) (?a . ?b))
TODO
)
|
9c5794ed2b9e8555d65bf155e40e9ae336d737f140733fbff05e9d1198d6db3a | lilydjwg/myhaskells | Function.hs | module Control.Function (
applyMaybe,
applyUntil,
applyUntilM,
mapFst,
mapSnd,
) where
import Data.Maybe (isJust)
-- |Applies a list of functions until a Just value is got
applyMaybe :: [(a -> Maybe b)] -> a -> Maybe b
applyMaybe = applyUntil isJust
-- |applies until p becomes True
applyUntil :: (b -> Bool... | null | https://raw.githubusercontent.com/lilydjwg/myhaskells/9a028c36a46e811e56d47a11ac4f261787fba0cf/lib/Control/Function.hs | haskell | |Applies a list of functions until a Just value is got
|applies until p becomes True | module Control.Function (
applyMaybe,
applyUntil,
applyUntilM,
mapFst,
mapSnd,
) where
import Data.Maybe (isJust)
applyMaybe :: [(a -> Maybe b)] -> a -> Maybe b
applyMaybe = applyUntil isJust
applyUntil :: (b -> Bool) -> [(a -> b)] -> a -> b
applyUntil _ (f:[]) a = f a
applyUntil p (f:fs) a = if p r then r... |
9694d255959fa8ad5fcf08c2f07700f0b6622849eab7ab3421a4dab6642e5d98 | haskell-numerics/hmatrix | GSL.hs | |
Module : Numeric . GSL
Copyright : ( c ) 2006 - 14
License : GPL
Maintainer :
Stability : provisional
This module reexports all available GSL functions .
The GSL special functions are in the separate package hmatrix - special .
Module : Numeric.GSL
Copyri... | null | https://raw.githubusercontent.com/haskell-numerics/hmatrix/2694f776c7b5034d239acb5d984c489417739225/packages/gsl/src/Numeric/GSL.hs | haskell | |
Module : Numeric . GSL
Copyright : ( c ) 2006 - 14
License : GPL
Maintainer :
Stability : provisional
This module reexports all available GSL functions .
The GSL special functions are in the separate package hmatrix - special .
Module : Numeric.GSL
Copyri... | |
846a31c93dd01d4d32966a335de31cb0d8495ae56ff64b2591bd11d65bc1a712 | DATX02-17-26/DATX02-17-26 | EvaluationMonad.hs | DATX02 - 17 - 26 , automated assessment of imperative programs .
- Copyright , 2017 , see AUTHORS.md .
-
- 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
- ... | null | https://raw.githubusercontent.com/DATX02-17-26/DATX02-17-26/f5eeec0b2034d5b1adcc66071f8cb5cd1b089acb/libsrc/EvaluationMonad.hs | haskell | | A monad for evaluating student solutions
| For now we just log strings
| Evaluation errors are also just strings
| Feedback generated for the student
| Feedback is a monoid
| Pretty print feedback for the instructor
| The environment of the program
| The default environment
| A parser for environments
| `pr... | DATX02 - 17 - 26 , automated assessment of imperative programs .
- Copyright , 2017 , see AUTHORS.md .
-
- 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
- ... |
34b4416660df4178d778497af674b7bd1301a242de67c4b82112098909859f44 | OCamlPro/freeton_wallet | encoding.ml | (**************************************************************************)
(* *)
Copyright ( c ) 2021 OCamlPro SAS
(* *)
(* All right... | null | https://raw.githubusercontent.com/OCamlPro/freeton_wallet/4e61b636bb086711bf1fbfa03b70d4cf7223edf7/src/freeton_wallet_lib/encoding.ml | ocaml | ************************************************************************
All rights reserved.
This file is distributed u... | Copyright ( c ) 2021 OCamlPro SAS
Public License version 2.1 , with the special exception on linking
let keypair = Ton_sdk.TYPES.keypair_enc
let config = Types.config_enc
let key = Types.key_enc
let wallet = Json_encoding.list key
|
be18b807f6c39d7925a670d5c8cbcbdf71b67dc152c092e637d6fe0683793485 | snorecone/meru | mountain.erl | -module(mountain).
-compile({parse_transform, meru_transform}).
-meru_pool(default).
-meru_bucket(<<"mountains">>).
-meru_record(mountain).
-meru_keyfun(make_key).
-meru_mergefun(merge).
-export([
test/0,
merge/3
]).
-record(mountain, {
name,
range,
planet,
lakes = [],
height =1,
type... | null | https://raw.githubusercontent.com/snorecone/meru/01e8ebe5da49f41bf5392be06c784c0550afbd3d/examples/mountain.erl | erlang | put our mountains in the store
get the mountains out by key or tuple
deleting a deleted record should return not found
private
| -module(mountain).
-compile({parse_transform, meru_transform}).
-meru_pool(default).
-meru_bucket(<<"mountains">>).
-meru_record(mountain).
-meru_keyfun(make_key).
-meru_mergefun(merge).
-export([
test/0,
merge/3
]).
-record(mountain, {
name,
range,
planet,
lakes = [],
height =1,
type... |
d2e40a31ecfaa57c0cb5e83d732f236f851862187277ee2ccb22ad8110a95152 | phadej/staged | Fn.hs | -- | Collection of type families
--
-- See individual modules for utilities.
module Data.SOP.Fn (
Append,
Concat,
ConcatMapAppend,
LiftA2Cons,
MapAppend,
MapConcat,
MapCons,
Sequence,
FLATTEN,
) where
import Data.SOP.Fn.Append
import Data.SOP.Fn.Concat
import Data.SOP.Fn.Concat... | null | https://raw.githubusercontent.com/phadej/staged/b51c8c508af71ddb2aca4a75030da9b2c4f9e3dd/staged-streams/src/Data/SOP/Fn.hs | haskell | | Collection of type families
See individual modules for utilities. | module Data.SOP.Fn (
Append,
Concat,
ConcatMapAppend,
LiftA2Cons,
MapAppend,
MapConcat,
MapCons,
Sequence,
FLATTEN,
) where
import Data.SOP.Fn.Append
import Data.SOP.Fn.Concat
import Data.SOP.Fn.ConcatMapAppend
import Data.SOP.Fn.Flatten
import Data.SOP.Fn.LiftA2Cons
import Data... |
853940b6c5dc4029fb4fb6a488da6d4d160178a7f6f149072910471e471f660e | inhabitedtype/ocaml-aws | modifyTransitGateway.ml | open Types
open Aws
type input = ModifyTransitGatewayRequest.t
type output = ModifyTransitGatewayResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoi... | null | https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/ec2/lib/modifyTransitGateway.ml | ocaml | open Types
open Aws
type input = ModifyTransitGatewayRequest.t
type output = ModifyTransitGatewayResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoi... | |
6839f61d18802739ac1dc37924a3f8e85ac2655f4294ed1d2f2b9bf2e54fbb46 | racket/typed-racket | sequences.rkt | #lang typed/racket/shallow
(ann (for ([z (list 1 2 3)]) (add1 z)) Void)
(ann (for ([z (vector 1 2 3)]) (add1 z)) Void)
(ann (for ([z "foobar"]) (string z)) Void)
(ann (for ([z #"foobar"]) (add1 z)) Void)
(ann (for ([z (open-input-string "foobar")]) (add1 z)) Void)
(ann (for ([z (in-list (list 1 2 3))]) (add1 z)) Void... | null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/sequences.rkt | racket | #lang typed/racket/shallow
(ann (for ([z (list 1 2 3)]) (add1 z)) Void)
(ann (for ([z (vector 1 2 3)]) (add1 z)) Void)
(ann (for ([z "foobar"]) (string z)) Void)
(ann (for ([z #"foobar"]) (add1 z)) Void)
(ann (for ([z (open-input-string "foobar")]) (add1 z)) Void)
(ann (for ([z (in-list (list 1 2 3))]) (add1 z)) Void... | |
360d5a64b95ea30e8198aba2127ef3b7014d16191939e6c5568f20a80a26732a | ThatGuyHughesy/blockchain | endpoints.clj | (ns blockchain.endpoints
(:require [blockchain.blockchain :as blockchain]))
(defn get-chain []
{:chain @blockchain/chain
:length (count @blockchain/chain)})
(defn add-transaction [{:keys [sender recipient amount]}]
{:message (str "Transaction will be added to Block "
(blockchain/new-transact... | null | https://raw.githubusercontent.com/ThatGuyHughesy/blockchain/e5e89be99d87c7909b570782fb5d847caed648fd/src/blockchain/endpoints.clj | clojure | (ns blockchain.endpoints
(:require [blockchain.blockchain :as blockchain]))
(defn get-chain []
{:chain @blockchain/chain
:length (count @blockchain/chain)})
(defn add-transaction [{:keys [sender recipient amount]}]
{:message (str "Transaction will be added to Block "
(blockchain/new-transact... | |
435de3d3bcead8497187cdc40dbebc7c13fb53d3806b55ca3a201147d4e81f90 | dbuenzli/fut | pkg.ml | #!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg
let base_unix = Conf.with_pkg "base-unix"
let react = Conf.with_pkg "react"
let jsoo = Conf.with_pkg "js_of_ocaml"
let jsoo_test ~cond test =
Pkg.flatten
[ Pkg.test ~run:false ~cond ~auto:false (test ^ ".js");
Pkg.test ~run:false ~cond ~auto:... | null | https://raw.githubusercontent.com/dbuenzli/fut/907de63df12815f2df2cb796baa7fa37ac2758d4/pkg/pkg.ml | ocaml | Pkg.test "test/sbox";
Pkg.test "test/client";
Pkg.test "test/echoserver";
Pkg.test "test/uclient";
| #!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg
let base_unix = Conf.with_pkg "base-unix"
let react = Conf.with_pkg "react"
let jsoo = Conf.with_pkg "js_of_ocaml"
let jsoo_test ~cond test =
Pkg.flatten
[ Pkg.test ~run:false ~cond ~auto:false (test ^ ".js");
Pkg.test ~run:false ~cond ~auto:... |
28876943a12301b0d5102e9b08fa7563cdffdfcd5bd08d90df5460c11333ba95 | vonli/Ext2-for-movitz | asm-x86.lisp | ;;;;------------------------------------------------------------------
;;;;
Copyright ( C ) 2007
;;;;
Description : x86 assembler for 16 , 32 , and 64 - bit modes .
Author : < >
;;;; Distribution: See the accompanying file COPYING.
;;;;
$ I d : asm - x86.lisp , v 1.37 200... | null | https://raw.githubusercontent.com/vonli/Ext2-for-movitz/81b6f8e165de3e1ea9cc7d2035b9259af83a6d26/asm-x86.lisp | lisp | ------------------------------------------------------------------
Distribution: See the accompanying file COPYING.
------------------------------------------------------------------
Pseudo-instructions
ADD
AND
CALL
CMOVcc
Move if above or equal, CF=0.
Move if below, CF=1.... | Copyright ( C ) 2007
Description : x86 assembler for 16 , 32 , and 64 - bit modes .
Author : < >
$ I d : asm - x86.lisp , v 1.37 2008/03/06 19:14:39 ffjeld Exp $
(defpackage asm-x86
(:use :common-lisp :asm)
(:export #:assemble-instruction
#:disassemble-instruction
#:*cpu-mode*
... |
c9249e644a4c7d1d9592879b0e67a27fa28973cd0806c1f74f0266d53d3f5a66 | spawnfest/eep49ers | m.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1998 - 2016 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applic... | null | https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/test/c_SUITE_data/m.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 1998 - 2016 . 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(m).
-export([factorial/1]).
factorial(0) ->
1;
factorial(N) ->
N * factorial(N-1).
|
cdaa2da06a76b238c0e49f64454925921c5221aaa30a0c733aa2d00ed4654b1f | madvas/cljs-react-material-ui-example | core.cljs | (ns cljs-react-material-ui-example.core
(:require
[cljsjs.material-ui]
[cljs-react-material-ui.core :as ui]
[cljs-react-material-ui.icons :as ic]
[goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[cljs-react-material-ui-example.parser :as p]
[cljs-react-material-ui-example.util :a... | null | https://raw.githubusercontent.com/madvas/cljs-react-material-ui-example/55a1ecda8f0ff2348f9d424a2c758bf24fef531c/src/cljs/cljs_react_material_ui_example/core.cljs | clojure | [schema.core :as s :include-macros true] | (ns cljs-react-material-ui-example.core
(:require
[cljsjs.material-ui]
[cljs-react-material-ui.core :as ui]
[cljs-react-material-ui.icons :as ic]
[goog.dom :as gdom]
[om.next :as om :refer-macros [defui]]
[cljs-react-material-ui-example.parser :as p]
[cljs-react-material-ui-example.util :a... |
121b3f21903da831823869888ab7dee9d0a3ed5150bfb00ebfd6f44177f4c40c | tweag/kernmantle | Trans.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE RankNTypes #-}
| This mod... | null | https://raw.githubusercontent.com/tweag/kernmantle/19e018449f4fba68d383611a9d38a1b9e04e81ee/kernmantle/src/Data/Profunctor/Trans.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeOperators #
# LANGUAGE RankNTypes #
the sieve
| Just an alias
| Just an alias
| Just an alias
| An alias to make signatures more readable
To be of a lower precedence than (:->)
it.
# INLINE mapReader_ #
# ... | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
| This module exposes the SieveTrans class and some Sieve transformers based
on usual Reader and Writer
module Data.Profunctor.Trans where
import Control.Arrow
import... |
ce220a1e5dc3fb8498fca273a2f3378239c6f2801b2960915b77e610bff4ea1b | yi-editor/yi | Completion.hs | {-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
-- Module : Yi.Completion
-- License : GPL-2
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- Collection of functions for completion and matching.
module Yi.Completion
( completeInList, compl... | null | https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/yi-core/src/Yi/Completion.hs | haskell | # LANGUAGE OverloadedStrings #
# OPTIONS_HADDOCK show-extensions #
|
Module : Yi.Completion
License : GPL-2
Maintainer :
Stability : experimental
Portability : portable
Collection of functions for completion and matching.
-----------------------------------------
General completion
| Like us... |
module Yi.Completion
( completeInList, completeInList'
, completeInListCustomShow
, commonPrefix
, prefixMatch, infixUptoEndMatch
, subsequenceMatch, subsequenceTextMatch
, containsMatch', containsMatch, containsMatchCaseInsensitive
, isCasePrefixOf
)
where
import Data.Function (on)
i... |
1c76e60e53c20523c72658a100996f00b159f2f849ed4ce7c8dabfc67f05e91a | tweag/ormolu | backticks-out.hs | foo x y = x `bar` y
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/backticks-out.hs | haskell | foo x y = x `bar` y
| |
5d6cd1d8be7cd28fb176fe4cdc1f2e0128da411ec05a8b9c7b94f67fcbf963e9 | leftaroundabout/beamonad | Grid.hs | -- |
-- Module : Presentation.Yeamer.Internal.Grid
Copyright : ( c ) 2017
-- License : GPL v3
--
-- Maintainer : (@) jsag $ hvl.no
-- Stability : experimental
-- Portability : portable
--
# LANGUAGE FlexibleInstances #
# LANGUAGE DeriveFunctor #
# LANGUAGE DeriveFoldable #
{-#... | null | https://raw.githubusercontent.com/leftaroundabout/beamonad/4f6273b479ea10c29759acab5edc56623b22c9a8/Presentation/Yeamer/Internal/Grid.hs | haskell | |
Module : Presentation.Yeamer.Internal.Grid
License : GPL v3
Maintainer : (@) jsag $ hvl.no
Stability : experimental
Portability : portable
# LANGUAGE DeriveTraversable #
# LANGUAGE DeriveGeneric #
# LANGUAGE DataKinds #
# LANGUAGE RankNTypes #
# LANGUAGE Templa... | Copyright : ( c ) 2017
# LANGUAGE FlexibleInstances #
# LANGUAGE DeriveFunctor #
# LANGUAGE DeriveFoldable #
# LANGUAGE MultiParamTypeClasses #
module Presentation.Yeamer.Internal.Grid where
import Data.Semigroup.Numbered
import GHC.Generics
import Data.Aeson (FromJSON, ToJSON)
import F... |
53f4a1615f3b6f462127cf4500c1e8b51816be504f0ebfb719e2a98f5a06c428 | tweag/lagoon | SqlTrigger.hs | Copyright 2020 Pfizer Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
-- -2.0
-- Unless required by applicable law or agreed to in writing, software
distributed under th... | null | https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/src/backend/src/Lagoon/Util/PostgreSQL/Schema/SqlTrigger.hs | haskell | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permiss... | Copyright 2020 Pfizer Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
module Lagoon.Util.PostgreSQL.Schema.SqlTrigger (
SqlTrigger(..)
, sqlTriggerName
) where
import Data.Monoid
import Database.PostgreSQL.... |
d3a2a0a33e528c072576a001637bc6ae6aa849eff4d5fb99de2fc5172c93134e | naoiwata/sicp | q2.57.scm | ;; @author naoiwata
SICP Chapter2
question 2.57
(add-load-path "." :relative)
(load "q2.56.scm")
; before
(print (deriv '(* x y (+ x 3)) 'x))
; redfine augend and multiplicand
(define (augend s)
(if (null? (cdddr s))
(caddr s)
(cons '+ (cddr s))))
(define (multiplicand s)
(if (null? (cdddr s))
(caddr s... | null | https://raw.githubusercontent.com/naoiwata/sicp/7314136c5892de402015acfe4b9148a3558b1211/chapter2/q2.57.scm | scheme | @author naoiwata
before
redfine augend and multiplicand
after
END | SICP Chapter2
question 2.57
(add-load-path "." :relative)
(load "q2.56.scm")
(print (deriv '(* x y (+ x 3)) 'x))
(define (augend s)
(if (null? (cdddr s))
(caddr s)
(cons '+ (cddr s))))
(define (multiplicand s)
(if (null? (cdddr s))
(caddr s)
(cons '* (cddr s))))
(print (deriv '(* x y (+ x 3)) 'x))
|
72bd8237d24736ae3aa408aa1a96e288276b7761c414b2a032ac14867199c059 | techascent/tech.ml.dataset | zip.clj | (ns tech.v3.dataset.zip
"Load zip data. Zip files with a single file entry can be loaded with ->dataset. When
a zip file has multiple entries you have to call zipfile->dataset-seq."
(:require [tech.v3.dataset.io :as ds-io]
[tech.v3.io :as io]
[clojure.tools.logging :as log])
(:import [... | null | https://raw.githubusercontent.com/techascent/tech.ml.dataset/6fc44a715b4d1facc7c0bbbc73eb5512b1380ed0/src/tech/v3/dataset/zip.clj | clojure | (ns tech.v3.dataset.zip
"Load zip data. Zip files with a single file entry can be loaded with ->dataset. When
a zip file has multiple entries you have to call zipfile->dataset-seq."
(:require [tech.v3.dataset.io :as ds-io]
[tech.v3.io :as io]
[clojure.tools.logging :as log])
(:import [... | |
2cd06dc0bc22ca1baa2b09ba55c86255f5144f179f8b253f21fc1dd53ab5b8ee | colis-anr/morbig | patternMatchingRecognizer.ml | (**************************************************************************)
(* -*- tuareg -*- *)
(* *)
Copyright ( C ) 2017 - 2021 , ,
. ... | null | https://raw.githubusercontent.com/colis-anr/morbig/77c2ca402785979c4af351b412fe7be2d521838f/src/patternMatchingRecognizer.ml | ocaml | ************************************************************************
-*- tuareg -*-
This is free software: you... | Copyright ( C ) 2017 - 2021 , ,
.
under the terms of the GNU General Public License , version 3 .
open REBracketExpressionParser
open REBracketExpressionParser.MenhirInterpreter
open CST
*
This module implements a recogn... |
1abff4acd4486e9a03c7bb189f2e56d7557020f73008273a0b2fc775ad2852ec | namin/clpsmt-miniKanren | sign-domain.scm | (define s/declare-bito
(lambda (b)
(z/ `(declare-const ,b Bool))))
(define s/declareo
(lambda (s)
(z/ `(declare-const ,s (_ BitVec 3)))))
(define s/haso
(lambda (p)
(lambda (s b)
(z/assert `(= ,s (ite ,b (bvor ,s ,p) (bvand ,s (bvnot ,p))))))))
(define s/hasnto
(lambda (p)
(lambda (s b)... | null | https://raw.githubusercontent.com/namin/clpsmt-miniKanren/4fa74fb973c95b7913f0e0239852f18a23073ccc/sign-domain.scm | scheme | For example,
{−}⊗{+,0}={−,0} and {−,+}⊗{0}={0} | (define s/declare-bito
(lambda (b)
(z/ `(declare-const ,b Bool))))
(define s/declareo
(lambda (s)
(z/ `(declare-const ,s (_ BitVec 3)))))
(define s/haso
(lambda (p)
(lambda (s b)
(z/assert `(= ,s (ite ,b (bvor ,s ,p) (bvand ,s (bvnot ,p))))))))
(define s/hasnto
(lambda (p)
(lambda (s b)... |
e04195dde272fe0d70160be21d4b4e5f9dc40b3a64f037a7975bdc118609483e | RefactoringTools/HaRe | RmDecl4.hs | # LANGUAGE FlexibleContexts #
module RmDecl4 where
Remove first declaration from a where clause , rest should still be indented
ff y = y + zz ++ xx
where
zz = 1
xx = 2
EOF
| null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/RmDecl4.hs | haskell | # LANGUAGE FlexibleContexts #
module RmDecl4 where
Remove first declaration from a where clause , rest should still be indented
ff y = y + zz ++ xx
where
zz = 1
xx = 2
EOF
| |
c2a4d8004a22d74d9a1c55cc0dbd3688b205216a6285216299a020fab5825f57 | nikita-volkov/rerebase | Lex.hs | module Text.Read.Lex
(
module Rebase.Text.Read.Lex
)
where
import Rebase.Text.Read.Lex
| null | https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Text/Read/Lex.hs | haskell | module Text.Read.Lex
(
module Rebase.Text.Read.Lex
)
where
import Rebase.Text.Read.Lex
| |
eff73c28069b28232bc6c2a2014c195c8ee405621de2c2579f52f6139bc87a5a | djblue/portal | user.clj | (ns user
(:require [clojure.datafy :as d]
[clojure.instant :as i]
[portal.api :as p]
[taoensso.timbre :as log]))
(defn log->portal [{:keys [level ?err msg_ timestamp_ ?ns-str ?file context ?line]}]
(merge
(when ?err
{:error (d/datafy ?err)})
(when-let [ts (force times... | null | https://raw.githubusercontent.com/djblue/portal/0afc0624b5dbaebd46d2c11abb10bb4f0d5fbee6/examples/timbre/src/user.clj | clojure | (ns user
(:require [clojure.datafy :as d]
[clojure.instant :as i]
[portal.api :as p]
[taoensso.timbre :as log]))
(defn log->portal [{:keys [level ?err msg_ timestamp_ ?ns-str ?file context ?line]}]
(merge
(when ?err
{:error (d/datafy ?err)})
(when-let [ts (force times... | |
a01dcccd47f8cd4e39958e4f3b4a610466e0a77c680654237f0213a5519380cc | janestreet/zstandard | explicit_dependencies_unignored.ml | (*_ Generated by ${ROOT}/bin/gen-explicit-dependencies.sh *)
module _ = Zstd_c
| null | https://raw.githubusercontent.com/janestreet/zstandard/8233812546164fbe3d67f4fe02b57f8bec5288d7/src/explicit_dependencies_unignored.ml | ocaml | _ Generated by ${ROOT}/bin/gen-explicit-dependencies.sh | module _ = Zstd_c
|
4cfb6236b84b44d652db6bcbdfdf470efa5782cd6e5be7e39a3ad4f1edddf4e0 | agentm/project-m36 | Base.hs | # LANGUAGE CPP #
module TutorialD.Interpreter.Import.Base where
import ProjectM36.Base
import ProjectM36.Error
import Text.URI (URI)
import Data.Text (Text)
#if __GLASGOW_HASKELL__ < 804
import Data.Monoid
#endif
-- | import data into a relation variable
data RelVarDataImportOperator = RelVarDataImportOperator RelVarN... | null | https://raw.githubusercontent.com/agentm/project-m36/57a75b35e84bebf0945db6dae53350fda83f24b6/src/bin/TutorialD/Interpreter/Import/Base.hs | haskell | | import data into a relation variable
| import data into a database context
perhaps create a structure to import a whole transaction graph section in the future | # LANGUAGE CPP #
module TutorialD.Interpreter.Import.Base where
import ProjectM36.Base
import ProjectM36.Error
import Text.URI (URI)
import Data.Text (Text)
#if __GLASGOW_HASKELL__ < 804
import Data.Monoid
#endif
data RelVarDataImportOperator = RelVarDataImportOperator RelVarName FilePath (RelVarName -> TypeConstructo... |
7da564d029771e5f9f9af1b41b5dd035aba85cd724eb5573ff7a0de774957852 | donut-party/system | 02.clj | (ns tutorial.02
"Local refs"
(:require
[donut.system :as ds]
[ring.adapter.jetty :as rj]))
_ refs _ allow one component 's signal handlers to receive another component
;; instance as an argument. This is a form of dependency injection, and it's how
;; you let the components in a system use each other.
;;
;... | null | https://raw.githubusercontent.com/donut-party/system/96cc6036e245c248a83bd24c877ab1adc7c50515/tutorial/src/tutorial/02.clj | clojure | instance as an argument. This is a form of dependency injection, and it's how
you let the components in a system use each other.
For example, let's say you want your http server component to receive its
`handler` as an argument. The example below shows how you would do that.
The `:conf` for `[:http :server]` con... | (ns tutorial.02
"Local refs"
(:require
[donut.system :as ds]
[ring.adapter.jetty :as rj]))
_ refs _ allow one component 's signal handlers to receive another component
for ` : req - handler ` in its first argument as part of its conf .
this . In this example , one reason to break out the request handle... |
da0d5f57980a8d73fd500753944d0ab2805c70a42667036aaff4531bc96bbe6e | bobzhang/fan | big2.ml |
let f a c =
a.{1,2,3} <- c
let f a b d e f c = begin
a.{1,2,3,4,5}<-c;
a.{1,2,3,4,5};
b.{1,2,3,4}<-c;
b.{1,2,3,4};
d.{1,2,3}<-c;
d.{1,2,3};
e.{1,2}<-c;
e.{1,2};
f.{1}<-c;
f.{1}
end
| null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/printer/big2.ml | ocaml |
let f a c =
a.{1,2,3} <- c
let f a b d e f c = begin
a.{1,2,3,4,5}<-c;
a.{1,2,3,4,5};
b.{1,2,3,4}<-c;
b.{1,2,3,4};
d.{1,2,3}<-c;
d.{1,2,3};
e.{1,2}<-c;
e.{1,2};
f.{1}<-c;
f.{1}
end
| |
4d4143f139b95d047e8dc0985583cbc14e35a5dbb6458f793ba36dfaef1e5876 | jacquev6/General | InFile.ml | module OCSP = OCamlStandard.Pervasives
type t = OCSP.in_channel
let seek x ~pos =
OCSP.LargeFile.seek_in x pos
let pos = OCSP.LargeFile.pos_in
let size = OCSP.LargeFile.in_channel_length
let channel = identity
let with_file s ~f =
let file = OCSP.open_in s in
try
let r = f file in
OCSP.close_in file... | null | https://raw.githubusercontent.com/jacquev6/General/5237123668e939c0cb83aa3e1c4756473336bc7e/src/Implementation/InFile.ml | ocaml | module OCSP = OCamlStandard.Pervasives
type t = OCSP.in_channel
let seek x ~pos =
OCSP.LargeFile.seek_in x pos
let pos = OCSP.LargeFile.pos_in
let size = OCSP.LargeFile.in_channel_length
let channel = identity
let with_file s ~f =
let file = OCSP.open_in s in
try
let r = f file in
OCSP.close_in file... | |
b2f1c242ab3e555d622ecd8f8eb19506e054600a691ce5426c91d757c5f33d50 | codinuum/cca | fact_base.ml |
Copyright 2012 - 2020 Codinuum Software Lab < >
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in wri... | null | https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/ast/analyzing/common/fact_base.ml | ocaml | fact_base.ml
try
with
| Triple.Lock_failed -> Triple.dummy_buffer
try
with
| Triple.Lock_failed -> Triple.dummy_buffer
of class fact_store
of class Fact_base.F.extractor_base |
Copyright 2012 - 2020 Codinuum Software Lab < >
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in wri... |
fc8005fcb90c2f7dbd3f603cee484be6ac9569cc76a83a47d0a6e422ed3b957c | larrychristensen/orcpub | routes_test.clj | (ns orcpub.routes-test
(:require [orcpub.routes :as routes]
[orcpub.dnd.e5.magic-items :as mi]
[orcpub.dnd.e5.character :as char]
[orcpub.modifiers :as mod]
[orcpub.entity :as entity]
[clojure.test :refer [deftest is testing]]
[orcpub.errors :as ... | null | https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/test/clj/orcpub/routes_test.clj | clojure | (ns orcpub.routes-test
(:require [orcpub.routes :as routes]
[orcpub.dnd.e5.magic-items :as mi]
[orcpub.dnd.e5.character :as char]
[orcpub.modifiers :as mod]
[orcpub.entity :as entity]
[clojure.test :refer [deftest is testing]]
[orcpub.errors :as ... | |
91fc8b5ffdf6d52cba14e4196705d3ac9c198e66c87673bce882746db65ca6fa | ragkousism/Guix-on-Hurd | cran.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2015 , 2016 < >
Copyright © 2015 , 2016 , 2017 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Sof... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/guix/import/cran.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2015 , 2016 < >
Copyright © 2015 , 2016 , 2017 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (guix import cran)
#:use-module (ice-9 match)
#:... |
c268389e1994f082d5660ca07561d3cf253d378628f2a71f1710930551a9fe80 | ocaml/ocaml | odoc_messages.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml/ocaml/04ddddd0e1d2bf2acb5091f434b93387243d4624/ocamldoc/odoc_messages.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 2001 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
let ok = "Ok"
let software = "OCamldoc"
let config_version = Config.version
let magic = config_version^""
... |
b430686f779133b7624e271be42176bc23924373b40ef60fea26016e2fdd4afe | blarney-lang/blarney | RAM.hs | import Blarney
import Blarney.Stmt
import System.Environment
-- Top-level module
top :: Module ()
top = do
-- RAM
ram :: RAM (Bit 8) (Bit 128) <- makeRAM
-- Counter
i :: Reg (Bit 8) <- makeReg 0
-- Simple test sequence
runStmt do
while (i.val .<. 100) do
action do
ram.store i.val (1 .<<... | null | https://raw.githubusercontent.com/blarney-lang/blarney/e80a547b092462f1beb9378e6c806db679ff62b4/Examples/RAM/RAM.hs | haskell | Top-level module
RAM
Counter
Simple test sequence
Main function | import Blarney
import Blarney.Stmt
import System.Environment
top :: Module ()
top = do
ram :: RAM (Bit 8) (Bit 128) <- makeRAM
i :: Reg (Bit 8) <- makeReg 0
runStmt do
while (i.val .<. 100) do
action do
ram.store i.val (1 .<<. i.val)
i <== i.val + 1
action do
i <== 0
whi... |
0aeb24fd3cb42599c92debe493624cd97bca88f4c5e35ec1424fb93a67c64b73 | erlyvideo/publisher | rtmp_handshake.erl | @private
@author < > [ ]
@author Thanks to all those guys , that have found how to sign handshake .
2010
%%% @doc RTMP handshake module
%%% @reference See <a href="" target="_top"></a> for more information
also good reference is
%%% @end
%%%
This file is part of erlang - rtmp .
%... | null | https://raw.githubusercontent.com/erlyvideo/publisher/5bb2dfa6477c46160dc5fafcc030fc3f5340ec80/apps/rtmp/src/rtmp_handshake.erl | erlang | @doc RTMP handshake module
@reference See <a href="" target="_top"></a> for more information
@end
erlang-rtmp is free software: you can redistribute it and/or modify
(at your option) any later version.
erlang-rtmp is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without ev... | @private
@author < > [ ]
@author Thanks to all those guys , that have found how to sign handshake .
2010
also good reference is
This file is part of erlang - rtmp .
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of... |
e9ee75719772794eab80baa208332e0690fc65e27cda8f58321349919ebce550 | well-typed/plutonomy | Transform.hs | module Plutonomy.Hereditary.Transform (
-- * Transformations
splitDelay, splitDelay',
inlineSaturated, inlineSaturated', inlineSize,
commonBindings,
-- * Single rewrites
inlineConstants,
inlineUsedOnce,
letZero,
appError,
etaForce,
etaFun,
ifLambda,
floatOutLambda,
... | null | https://raw.githubusercontent.com/well-typed/plutonomy/6c01302ba8cf3be4f71617e106cd5ef7ed10fc63/src/Plutonomy/Hereditary/Transform.hs | haskell | * Transformations
* Single rewrites
$setup
>>> import Data.Text (Text)
>>> let pp t = prettyRaw PP.pretty (toRaw (t :: Term Text Z))
-----------------------------------------------------------------------------
Inline delayed bindings
-----------------------------------------------------------------------------
... | module Plutonomy.Hereditary.Transform (
splitDelay, splitDelay',
inlineSaturated, inlineSaturated', inlineSize,
commonBindings,
inlineConstants,
inlineUsedOnce,
letZero,
appError,
etaForce,
etaFun,
ifLambda,
floatOutLambda,
floatOutAppArg,
floatOutDelay,
commBuilt... |
a7cc68d0bf5140d606f1105aba20c73b0277761a6a1e3e10bc0470147dd8d9c0 | RokLenarcic/clj-rest-client | conform.clj | (ns clj-rest-client.conform
(:require [clojure.spec.alpha :as s]
[cheshire.core :as json])
(:import (java.time.temporal TemporalAccessor ChronoField)
(java.time ZoneOffset Instant OffsetDateTime LocalDateTime ZonedDateTime LocalDate OffsetTime LocalTime YearMonth Year)
(java.util D... | null | https://raw.githubusercontent.com/RokLenarcic/clj-rest-client/716ab51315499096c59db3a7349a60a7e41d35e0/src/clj_rest_client/conform.clj | clojure | (ns clj-rest-client.conform
(:require [clojure.spec.alpha :as s]
[cheshire.core :as json])
(:import (java.time.temporal TemporalAccessor ChronoField)
(java.time ZoneOffset Instant OffsetDateTime LocalDateTime ZonedDateTime LocalDate OffsetTime LocalTime YearMonth Year)
(java.util D... | |
3878fce5c90cf0f1288e81da6dcc396074cee3064e895979ac41b39d15c6a0ff | SNePS/SNePS2 | nrn-reports.lisp | -*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*-
Copyright ( C ) 1984 - -2013 Research Foundation of
;; State University of New York
Version : $ I d : nrn - reports.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $
;; This file is part of SNePS.
$ BEGIN LICENSE... | null | https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/fns/nrn-reports.lisp | lisp | Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*-
State University of New York
This file is part of SNePS.
you may
not use this file except in compliance with the License. You
may obtain a copy of the License at
. edu/sneps/Downloads/ubpl.pdf.
or implied. See the License for th... |
Copyright ( C ) 1984 - -2013 Research Foundation of
Version : $ I d : nrn - reports.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $
$ BEGIN LICENSE$
The contents of this file are subject to the University at
Software distributed under the License is distributed on an
" AS IS " basis , WITHOUT WARRANTY O... |
cdd5c09ac318459eaf6f0698e5afcc45fc1c392995488212de5487c21410cea7 | dreyk/zraft_lib | zraft_client.erl | %% -------------------------------------------------------------------
@author < >
Copyright ( c ) 2015 . 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
%% ... | null | https://raw.githubusercontent.com/dreyk/zraft_lib/ead65c45df576be3758639e3fe3a46edefdeae1d/src/zraft_client.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 permission... | @author < >
Copyright ( c ) 2015 . 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(zraft... |
0d6f5ca21722dc5ac1a3fb425ee6c27aed387da8d4612638ca0f42d5267c435f | IG-Group/Havoc | docker.clj | (ns ig.havoc.impl.docker
(:require
[clojure.string :as s]
[ig.havoc.impl.command-generator :as core]
[clj-http.client :as http-client]
[cheshire.core :as json]
byte-streams
[slingshot.slingshot :refer [try+ throw+]]
[selmer.parser :as selmer]
[clojure.tools.logging :as log])
(:import... | null | https://raw.githubusercontent.com/IG-Group/Havoc/24c9d8409b273d791370593d131525f04ba2c9a1/src/ig/havoc/impl/docker.clj | clojure |
")
" | (ns ig.havoc.impl.docker
(:require
[clojure.string :as s]
[ig.havoc.impl.command-generator :as core]
[clj-http.client :as http-client]
[cheshire.core :as json]
byte-streams
[slingshot.slingshot :refer [try+ throw+]]
[selmer.parser :as selmer]
[clojure.tools.logging :as log])
(:import... |
fa3f83899794c66beeb4de53e2f63c49ceea22e4cd2d77be98e7cbd8242b58eb | mbuczko/revolt | plugin.clj | (ns revolt.plugin
"A home namespace for built-in plugins along with initialization functions."
(:require [clojure.tools.logging :as log]))
(defprotocol Plugin
(activate [this ctx] "Activates plugin within given context")
(deactivate [this ret] "Deactivates plugin"))
(defmulti create-plugin (fn [id config] id... | null | https://raw.githubusercontent.com/mbuczko/revolt/65ef8de68d7aa77d1ced40e7d669ebcbba8a340e/src/revolt/plugin.clj | clojure | default plugins | (ns revolt.plugin
"A home namespace for built-in plugins along with initialization functions."
(:require [clojure.tools.logging :as log]))
(defprotocol Plugin
(activate [this ctx] "Activates plugin within given context")
(deactivate [this ret] "Deactivates plugin"))
(defmulti create-plugin (fn [id config] id... |
f2418fc2a5c7cadc1418fcad41d173a9bdfec4254be0e0917d377a7116c45109 | hbr/albatross | source_prover.mli | Copyright ( C ) < helmut dot brandl at gmx dot net >
This file is distributed under the terms of the GNU General Public License
version 2 ( GPLv2 ) as published by the Free Software Foundation .
This file is distributed under the terms of the GNU General Public License
version 2 (GPLv2) as publ... | null | https://raw.githubusercontent.com/hbr/albatross/8f28ef97951f92f30dc69cf94c0bbe20d64fba21/ocaml/alba1/source_prover.mli | ocaml | Copyright ( C ) < helmut dot brandl at gmx dot net >
This file is distributed under the terms of the GNU General Public License
version 2 ( GPLv2 ) as published by the Free Software Foundation .
This file is distributed under the terms of the GNU General Public License
version 2 (GPLv2) as publ... | |
d2a6a996cdfc6d25d26a3ef524b6762528eb57fe367a48757990fb917f15a777 | LeventErkok/sbv | Index.hs | -----------------------------------------------------------------------------
-- |
-- Module : TestSuite.Basics.Index
Copyright : ( c )
-- License : BSD3
-- Maintainer:
-- Stability : experimental
--
-- Test suite for Examples.Basics.Index
----------------------------------------------------------------------... | null | https://raw.githubusercontent.com/LeventErkok/sbv/0d791d9f4d1de6bd915b6d7d3f9a550385cb27a5/SBVTestSuite/TestSuite/Basics/Index.hs | haskell | ---------------------------------------------------------------------------
|
Module : TestSuite.Basics.Index
License : BSD3
Maintainer:
Stability : experimental
Test suite for Examples.Basics.Index
---------------------------------------------------------------------------
# OPTIONS_GHC -Wall -Werror #
p... | Copyright : ( c )
module TestSuite.Basics.Index(tests) where
import Utils.SBVTestFramework
tests :: TestTree
tests =
testGroup "Basics.Index"
(zipWith
mkTest
[f x | f <- [test1, test2, test3], x <- [0..13]]
[(0::Int)..])
mkTest :: IO Bool -> Int -> TestTree
mkTest tst i =
testCase ("i... |
200447447e598561804970bde479177f7ca0c991c05bfd3f7b072b24158f75cd | geoffder/dometyl-keyboard | niz.ml | open OCADml
open OSCADml
module Bottom = struct
let w = 17.5
let h = 17.5
let thickness = 4.
let bulge_thickness = 0.6
let bulge_length = 6.5
let bulge_height = 3.2
let ellipse_offset = -0.25
let ellipse_x = (w /. 2.) +. ellipse_offset
let ellipse_inset_x_rad = 1.6
let ellipse_inset_y_scale = 1.2
... | null | https://raw.githubusercontent.com/geoffder/dometyl-keyboard/1c11268ef4babe10a066ac83d6f488fa9ffad0ab/lib/niz.ml | ocaml | TODO: better magnet / sensor break down notes | open OCADml
open OSCADml
module Bottom = struct
let w = 17.5
let h = 17.5
let thickness = 4.
let bulge_thickness = 0.6
let bulge_length = 6.5
let bulge_height = 3.2
let ellipse_offset = -0.25
let ellipse_x = (w /. 2.) +. ellipse_offset
let ellipse_inset_x_rad = 1.6
let ellipse_inset_y_scale = 1.2
... |
fa31e8f45a9e8733dc4589d2233d41c1f07d4fb258ebde86311286d91848eed2 | heroku/clojure-getting-started | web_test.clj | (ns clojure-getting-started.web-test
(:require [clojure.test :refer :all]
[clojure-getting-started.web :refer :all]))
(deftest first-test
(is false "Tests should be written"))
| null | https://raw.githubusercontent.com/heroku/clojure-getting-started/66b7456a4f2a42cbf4b9851283a9dc61b86af3e8/test/clojure_getting_started/web_test.clj | clojure | (ns clojure-getting-started.web-test
(:require [clojure.test :refer :all]
[clojure-getting-started.web :refer :all]))
(deftest first-test
(is false "Tests should be written"))
| |
cf4d49bfb9149f73e7d9e4ec72391b4bb5202cc6d542cb5c9beae15ef5d77b3b | serioga/webapp-clojure-2020 | static_args.cljc | (ns app.rum.mixin.static-args)
#?(:clj (set! *warn-on-reflection* true)
:cljs (set! *warn-on-infer* true))
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
(defn static-args-mixin
"Avoid re-render if specific component’s arguments have not changed."
[get-arg]... | null | https://raw.githubusercontent.com/serioga/webapp-clojure-2020/91a7170a1be287bbfa5b9279d697208f7f806f9b/src/app/rum/mixin/static_args.cljc | clojure | (ns app.rum.mixin.static-args)
#?(:clj (set! *warn-on-reflection* true)
:cljs (set! *warn-on-infer* true))
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
(defn static-args-mixin
"Avoid re-render if specific component’s arguments have not changed."
[get-arg]... | |
7f368bfe95dcd02d09a6950c78f4abc4737c34755081791dc0d16848bdd8a3b3 | hslua/tasty-lua | Translate.hs | |
Module : Test . Tasty . Lua . Translate
Copyright : © 2019–2020 : MIT
Maintainer : >
Stability : alpha
Portability : Requires GHC
Translate test results from Lua into a Tasty @'TestTree'@.
Module : Test.Tasty.Lua.Translate
Copyright : © 2019–2020 Albert Krewinkel
Licen... | null | https://raw.githubusercontent.com/hslua/tasty-lua/8105036277e737227f18c475dc3e24cd7924b53a/src/Test/Tasty/Lua/Translate.hs | haskell | | Run tasty.lua tests from the given file and translate the result
into a mock Tasty @'TestTree'@.
| Report failure of testing a path.
| Convert internal (tasty.lua) result tree format into Tasty tree.
| Mock test which just returns the predetermined outcome. An
@'Outcome'@ can be treated like a Tasty test, as it... | |
Module : Test . Tasty . Lua . Translate
Copyright : © 2019–2020 : MIT
Maintainer : >
Stability : alpha
Portability : Requires GHC
Translate test results from Lua into a Tasty @'TestTree'@.
Module : Test.Tasty.Lua.Translate
Copyright : © 2019–2020 Albert Krewinkel
Licen... |
fe531ef2ba59dd93936e8cf823e6c8d5514656dcb8d3df3592d91b6d84a2532b | CloudI/CloudI | cloudi_service_name.erl | -*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*-
ex : set utf-8 sts=4 ts=4 sw=4 et nomod :
%%%
%%%------------------------------------------------------------------------
%%% @doc
%%% ==CloudI Service Name Creation and Parsing==
%%% @end
%%%
MIT License
%%%
Copyri... | null | https://raw.githubusercontent.com/CloudI/CloudI/28ccf4c7c3426d41c123fbf2a3e59d98cc91ddbf/src/lib/cloudi_core/src/cloudi_service_name.erl | erlang |
------------------------------------------------------------------------
@doc
==CloudI Service Name Creation and Parsing==
@end
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
the rights to use, copy, modify, me... | -*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*-
ex : set utf-8 sts=4 ts=4 sw=4 et nomod :
MIT License
Copyright ( c ) 2014 - 2021 < mjtruog at protonmail dot com >
to deal in the Software without restriction , including without limitation
and/or sell copies... |
7009e792274b0021b20e35c93a785bb3587fcedb921fc1979e293b15cb486fbc | kunstmusik/pink | node.clj | (ns pink.node
"Nodes aggregate audio from other audio-rate functions. Nodes can contain other nodes. Each Node is wrapped in pink.util.shared so that the output of Node may be used by multiple other audio-functions within the same time period.
In general, users will first call create-node to create a node map. n... | null | https://raw.githubusercontent.com/kunstmusik/pink/7d37764b6a036a68a4619c93546fa3887f9951a7/src/main/pink/node.clj | clojure | Ensure unchecked math used for this namespace
currently will continue rendering even if afs are empty. need to have
option to return nil when afs are empty, for the scenario of disk render.
should add a *disk-render* flag to config and a default option here
so that user can override behavior.
Event functions deal... | (ns pink.node
"Nodes aggregate audio from other audio-rate functions. Nodes can contain other nodes. Each Node is wrapped in pink.util.shared so that the output of Node may be used by multiple other audio-functions within the same time period.
In general, users will first call create-node to create a node map. n... |
bfae6093cf52471fa2ae249bd167d8e6629232fdde0123a1cbff19e37426032b | circuithub/rel8 | Window.hs | # language MonoLocalBinds #
module Rel8.Table.Window
( cumulative
, cumulative_
, currentRow
)
where
-- base
import Prelude
-- opaleye
import qualified Opaleye.Window as Opaleye
-- rel8
import Rel8.Aggregate ( Aggregates )
import qualified Rel8.Expr.Window as Expr
import Rel8.Schema.HTable ( hfield, htabula... | null | https://raw.githubusercontent.com/circuithub/rel8/2e82fccb02470198297f4a71b9da8f535d8029b1/src/Rel8/Table/Window.hs | haskell | base
opaleye
rel8
| 'cumulative' allows the use of aggregation functions in 'Window'
expressions. In particular, @'cumulative' 'Rel8.sum'@
(when combined with 'Rel8.Window.orderPartitionBy') gives a running total,
| A version of 'cumulative' for use with nullary aggregators like
'Rel8.Expr.Aggregate.countStar'.... | # language MonoLocalBinds #
module Rel8.Table.Window
( cumulative
, cumulative_
, currentRow
)
where
import Prelude
import qualified Opaleye.Window as Opaleye
import Rel8.Aggregate ( Aggregates )
import qualified Rel8.Expr.Window as Expr
import Rel8.Schema.HTable ( hfield, htabulateA )
import Rel8.Table ( f... |
aa634a2fe33e63002fb182a5860cfc09b517f83025e57e22748a8c0206763c82 | wdebeaum/step | weather.lisp | ;;;;
;;;; W::WEATHER
;;;;
(define-words :pos W::n :templ COUNT-PRED-TEMPL
:words (
(W::WEATHER
(SENSES
((meta-data :origin plow :entry-date 20060803 :change-date nil :comments nil :wn ("weather%1:19:00"))
(LF-PARENT ONT::weather)
)
)
)
))
| null | https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/weather.lisp | lisp |
W::WEATHER
|
(define-words :pos W::n :templ COUNT-PRED-TEMPL
:words (
(W::WEATHER
(SENSES
((meta-data :origin plow :entry-date 20060803 :change-date nil :comments nil :wn ("weather%1:19:00"))
(LF-PARENT ONT::weather)
)
)
)
))
|
284bbd8011a1d168647f2b9deb6a10ec5e5f63da9df00a7de8d76119f7c77b21 | clj-commons/cljss | css.clj | (ns cljss.css
(:require [clojure.spec.alpha :as s]
[cljss.css.props.background :as bg]
[cljss.css.props.border :as border]
[cljss.css.props.color :as color]
[cljss.css.props.dimensions :as dims]
[cljss.css.props.display :as display]
[cljss.css.pr... | null | https://raw.githubusercontent.com/clj-commons/cljss/d2856688cf650babe518c798cf20e6bdb4227bb7/src/cljss/css.clj | clojure | (ns cljss.css
(:require [clojure.spec.alpha :as s]
[cljss.css.props.background :as bg]
[cljss.css.props.border :as border]
[cljss.css.props.color :as color]
[cljss.css.props.dimensions :as dims]
[cljss.css.props.display :as display]
[cljss.css.pr... | |
cb038d2791f58a24db7d2301e5a2dcb365944be906d1d1a16a864e1566312444 | tlaplus/tlapm | m_save.ml | Writing and loading of modules .
Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
open Property
open Util.Coll
open Tla_parser
open Tla_parser.P
open M_t
open M_parser
let debug = Printf.eprintf
exception Unknown_module_exception
exc... | null | https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/module/m_save.ml | ocaml | suffices to compare to found modules by name.
`Module.Elab` will add submodules of extended modules to the
module context, before those are instantiated.
let mn = ed in
if module name is also a name of
a standrd module, try to load it anyway
... | Writing and loading of modules .
Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
open Property
open Util.Coll
open Tla_parser
open Tla_parser.P
open M_t
open M_parser
let debug = Printf.eprintf
exception Unknown_module_exception
exc... |
39b85251ee6aa7e2d0e64f5c49c038c96da2f239ccc3ddcb8a6b4175af8b6f18 | dgiot/dgiot | dgiot_tcpc_worker.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. 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... | null | https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_bridge/src/channel/dgiot_tcpc_worker.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 ) 2020 - 2021 DGIOT Technologies Co. , Ltd. 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(dgiot_tcpc_worker).
-include("dgiot_bridge.hrl").
-include_lib("dgiot/include/logger.hr... |
27b25cc1f816ba223391a3ac7adc84e8897fbe9fe7d1822813569ff727599c4a | achirkin/vulkan | PolygonMode.hs | # OPTIONS_HADDOCK ignore - exports #
{-# LANGUAGE DataKinds #-}
# LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE Strict #-}
module Graphics.Vulkan.Types.Enum.PolygonMode
(VkPolygonMode(VkPolygonMode, VK_POLYGON_MODE_FILL,
... | null | https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Types/Enum/PolygonMode.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE PatternSynonyms #
# LANGUAGE Strict #
| type = @enum@
<-extensions/html/vkspec.html#VkPolygonMode VkPolygonMode registry at www.khronos.org> | # OPTIONS_HADDOCK ignore - exports #
# LANGUAGE GeneralizedNewtypeDeriving #
module Graphics.Vulkan.Types.Enum.PolygonMode
(VkPolygonMode(VkPolygonMode, VK_POLYGON_MODE_FILL,
VK_POLYGON_MODE_LINE, VK_POLYGON_MODE_POINT))
where
import Foreign.Storable (Storable)
import ... |
e53974ef3b2cf3538f71b539a1a926c80b958d603f13602e28bf23ec90734e6c | byulparan/sc-extensions | client-side.lisp | (in-package :sc-extensions)
(named-readtables:in-readtable :sc)
(defvar *bpm-functions* nil)
(defun bpm (&optional bpm &key (relaunch nil) (lag 0) (pre-tick 0))
(unless (is-playing-p :metro)
(metro 60))
(if (not bpm) (clock-bpm)
(progn
(proxy-handle :bpm-changed
(let* ((tempo (in.kr (- (sc::serve... | null | https://raw.githubusercontent.com/byulparan/sc-extensions/5c3fcef921008ed75c482d7077cc2323575bc2b8/client-side.lisp | lisp | (in-package :sc-extensions)
(named-readtables:in-readtable :sc)
(defvar *bpm-functions* nil)
(defun bpm (&optional bpm &key (relaunch nil) (lag 0) (pre-tick 0))
(unless (is-playing-p :metro)
(metro 60))
(if (not bpm) (clock-bpm)
(progn
(proxy-handle :bpm-changed
(let* ((tempo (in.kr (- (sc::serve... | |
c9dd71ea33e4aa4b8e329c3287d9548f8c480112334dc447554b9b64014961b4 | bit-ranger/scheme-bootstrap | or-eval.scm | (load "eval/core.scm")
(load "eval/analyze.scm")
(load "syntax/if.scm")
;对or的处理
(define (install-or-eval)
(define new-if ((make-if) 'construct))
and语句序列
(define (or-clauses exp)
(cdr exp))
;or转成if
(define (or->if exp)
(let ((value (expand-clauses (or-clauses exp))))
(display value)
... | null | https://raw.githubusercontent.com/bit-ranger/scheme-bootstrap/a9155ebd29efe1196854b2dcd76941357dab151e/eval/or-eval.scm | scheme | 对or的处理
or转成if | (load "eval/core.scm")
(load "eval/analyze.scm")
(load "syntax/if.scm")
(define (install-or-eval)
(define new-if ((make-if) 'construct))
and语句序列
(define (or-clauses exp)
(cdr exp))
(define (or->if exp)
(let ((value (expand-clauses (or-clauses exp))))
(display value)
value))
(d... |
37667b4afe8160f2258ab0338849f4679eeac44478dcc7f1c50193b55378b2c3 | MyDataFlow/ttalk-server | http_chunked.erl | %% Feel free to use, reuse and abuse the code in this file.
-module(http_chunked).
-behaviour(cowboy_http_handler).
-export([init/3, handle/2, terminate/3]).
init({_Transport, http}, Req, _Opts) ->
{ok, Req, undefined}.
handle(Req, State) ->
{ok, Req2} = cowboy_req:chunked_reply(200, Req),
timer:sleep(100),
cowb... | null | https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/cowboy/test/http_SUITE_data/http_chunked.erl | erlang | Feel free to use, reuse and abuse the code in this file. |
-module(http_chunked).
-behaviour(cowboy_http_handler).
-export([init/3, handle/2, terminate/3]).
init({_Transport, http}, Req, _Opts) ->
{ok, Req, undefined}.
handle(Req, State) ->
{ok, Req2} = cowboy_req:chunked_reply(200, Req),
timer:sleep(100),
cowboy_req:chunk("chunked_handler\r\n", Req2),
timer:sleep(100)... |
9d7aa3583597b8f72a13a2f5ef02ab8c0c826a82bd4f06a777cc8b693692e50c | nunchaku-inria/nunchaku | ElimRecursion.mli |
(* This file is free software, part of nunchaku. See file "license" for more details. *)
* { 1 Encoding of Recursive Functions }
Useful for finite - model finding in CVC4 .
It encodes recursive functions as axioms , with a quantification over
an uninterpreted abstraction type .
Useful for fini... | null | https://raw.githubusercontent.com/nunchaku-inria/nunchaku/16f33db3f5e92beecfb679a13329063b194f753d/src/transformations/ElimRecursion.mli | ocaml | This file is free software, part of nunchaku. See file "license" for more details.
* Pipeline component
* Generic Pipe Component
@param decode the decode function that takes an applied [(module S)]
in addition to the state |
* { 1 Encoding of Recursive Functions }
Useful for finite - model finding in CVC4 .
It encodes recursive functions as axioms , with a quantification over
an uninterpreted abstraction type .
Useful for finite-model finding in CVC4.
It encodes recursive functions as axioms, with a quantifica... |
c50ce51ab98ab755195281d15d34fbf28219bf26c2e044cea338aa621c3b122a | RefactoringTools/HaRe | TiDerivedInstances.hs | module TiDerivedInstances(derivedInstances) where
import HasBaseStruct
import HsDecl
import TI
import TiSolve(expandSynonyms)
import TiContextReduction(contextReduction'')
import TiInstanceDB(addInstKind)
import TiSCC(sccD)
import SrcLoc1
import Deriving(derive)
import FreeNamesBase()
import Data.Maybe(mapMaybe)
impo... | null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/TI/TiDerivedInstances.hs | haskell | import IOExts(trace) -- debugging
Figuring out what the derived instances are, without generating the
derived code.
!!!
!!!
TODO: need fixed point interation for mutually recursive types!!
trace (pp (ps$$ps')) $ do
In progress: fix point iteration for mutually recursive types: | module TiDerivedInstances(derivedInstances) where
import HasBaseStruct
import HsDecl
import TI
import TiSolve(expandSynonyms)
import TiContextReduction(contextReduction'')
import TiInstanceDB(addInstKind)
import TiSCC(sccD)
import SrcLoc1
import Deriving(derive)
import FreeNamesBase()
import Data.Maybe(mapMaybe)
impo... |
f95f15934344af583470feb5b780d4556998f1fe7cdaee4181b98e3796820f33 | karen/haskell-book | ch17.hs | import Control.Applicative
import Data.Monoid
import Test.QuickCheck
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
data List a =
Nil
| Cons a (List a)
deriving (Eq, Show)
instance Functor List where
fmap _ Nil = Nil
fmap f (Cons x xs) = Cons (f x) (fmap f xs)
( < * > ) flst lst = f... | null | https://raw.githubusercontent.com/karen/haskell-book/90bb80ec3203fde68fc7fda1662d9fc8b509d179/src/ch17/ch17.hs | haskell | For each function from flst
then concat them together
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
---------------------------... | import Control.Applicative
import Data.Monoid
import Test.QuickCheck
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
data List a =
Nil
| Cons a (List a)
deriving (Eq, Show)
instance Functor List where
fmap _ Nil = Nil
fmap f (Cons x xs) = Cons (f x) (fmap f xs)
( < * > ) flst lst = f... |
618e7e10a6d745e97b3ab35b4082a6ee29b584075942a6e716050f55deae56d4 | archimag/rulisp | pref.lisp | ;;;; pref.lisp
;;;;
This file is part of the rulisp application , released under GNU Affero General Public License , Version 3.0
;;;; See file COPYING for details.
;;;;
Author : < >
(defpackage :rulisp.preferences
(:use :cl)
(:export #:*rulisp-path*
#:*skindir*
#:*rulisp-db*
... | null | https://raw.githubusercontent.com/archimag/rulisp/2af0d92066572c4665d14dc3ee001c0c5ff84e84/pref.lisp | lisp | pref.lisp
See file COPYING for details.
| This file is part of the rulisp application , released under GNU Affero General Public License , Version 3.0
Author : < >
(defpackage :rulisp.preferences
(:use :cl)
(:export #:*rulisp-path*
#:*skindir*
#:*rulisp-db*
#:*host*
#:*cookie-cipher-key*
#:*no... |
db39a070e5964ef633093233421606849cc6326223f00b1c6bb728d6f5a902c3 | esl/MongooseIM | service_mongoose_system_metrics_SUITE.erl | -module(service_mongoose_system_metrics_SUITE).
-compile([export_all, nowarn_export_all]).
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
-define(SERVER_URL, ":8765").
-define(ETS_TABLE, qs).
-define(TRACKING_ID, "UA-151671255-2").
-define(TRACKING_ID_CI, "UA-151671255-1").
-def... | null | https://raw.githubusercontent.com/esl/MongooseIM/c213d44a0ccdf38fcec5e0d5b2ccab70cbb9407f/big_tests/tests/service_mongoose_system_metrics_SUITE.erl | erlang | --------------------------------------------------------------------
Suite configuration
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
-----------------------... | -module(service_mongoose_system_metrics_SUITE).
-compile([export_all, nowarn_export_all]).
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
-define(SERVER_URL, ":8765").
-define(ETS_TABLE, qs).
-define(TRACKING_ID, "UA-151671255-2").
-define(TRACKING_ID_CI, "UA-151671255-1").
-def... |
0e95554a5c1e96b573c578cd596e231168dd8b0b24fd13e2b892070014a49caf | haskell-servant/servant | Capture.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE PolyKinds #
{-# OPTIONS_HADDOCK not-home #-}
module Servant.API.Capture (Capture, Capture', CaptureAll) where
import Data.Typeable
(Typeable)
import GHC.TypeLits
(Symbol... | null | https://raw.githubusercontent.com/haskell-servant/servant/d06b65c4e6116f992debbac2eeeb83eafb960321/servant/src/Servant/API/Capture.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE DeriveDataTypeable #
# OPTIONS_HADDOCK not-home #
Example:
>>> -- GET /books/:isbn
todo
| 'Capture' which can be modified. For example with 'Description'.
| Capture all remaining values from the request path under a certain type
Example:
>>> ... | # LANGUAGE PolyKinds #
module Servant.API.Capture (Capture, Capture', CaptureAll) where
import Data.Typeable
(Typeable)
import GHC.TypeLits
(Symbol)
| Capture a value from the request path under a certain type
> > > type MyApi = " books " :> Capture ... |
22f6ee822c2fe499d95866ca77a633f3d12e666be0ad85a82276168a6fc9c01d | avsm/platform | uucp_tmap4bytes.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2014 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... | null | https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/uucp.12.0.0%2Bdune/src/uucp_tmap4bytes.ml | ocaml | default value. | ---------------------------------------------------------------------------
Copyright ( c ) 2014 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... |
b72eba163fdbea75150353d358b5df1ebe14f1e799aa2184354e7da8a3b4f356 | runtimeverification/haskell-backend | MockSymbols.hs | # OPTIONS_GHC -Wno - incomplete - uni - patterns #
# OPTIONS_GHC -Wno - missing - export - lists #
module Test.Kore.Rewrite.MockSymbols where
Intended usage :
* Import qualified .
* use attributesMapping to build mock MetadataTools .
* Use things like a , b , c , x , y , z for testing .
RULES : ... | null | https://raw.githubusercontent.com/runtimeverification/haskell-backend/93a705112305a2d7e084e98dca93ec33e0d661d5/kore/test/Test/Kore/Rewrite/MockSymbols.hs | haskell | Also add attributes for the implicitly defined sorts.
TODO(virgil): testSort has constructors, it should have a
constructor-based definition. The same for others.
TODO(virgil): testSort has constructors, it should have a
constructor-based definition. The same for others.
attributesMapping
headTypeMapping
sortAt... | # OPTIONS_GHC -Wno - incomplete - uni - patterns #
# OPTIONS_GHC -Wno - missing - export - lists #
module Test.Kore.Rewrite.MockSymbols where
Intended usage :
* Import qualified .
* use attributesMapping to build mock MetadataTools .
* Use things like a , b , c , x , y , z for testing .
RULES : ... |
8db0afd25a30f5263636ae95b103653499880ab48a04335baa0f0e2febe0d428 | CRogers/obc | varsview.ml |
* varsview.ml
*
* This file is part of the Oxford Oberon-2 compiler
* Copyright ( c ) 2008
* All rights reserved
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are met :
*
* 1 . Redistribution... | null | https://raw.githubusercontent.com/CRogers/obc/49064db244e0c9d2ec2a83420c8d0ee917b54196/debugger/varsview.ml | ocaml | Variable or field
Array element
Globals for module
Dummy child for unexpanded node
For each module or procedure, we keep a tree of nodes that have been
expanded. The tree is represented as a list of paths. Also, for each
procedure, a path for the node that shows at the top of the scrolling
window.
c_disp... |
* varsview.ml
*
* This file is part of the Oxford Oberon-2 compiler
* Copyright ( c ) 2008
* All rights reserved
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are met :
*
* 1 . Redistribution... |
6865b69c4e65a9a58a018be05e19aec6c66c6674c86f73732f241763814fcb8a | ds-wizard/engine-backend | DocumentTemplateSimpleDTO.hs | module Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimpleDTO where
import Data.Time
import GHC.Generics
import Shared.Api.Resource.Organization.OrganizationSimpleDTO
import Shared.Model.DocumentTemplate.DocumentTemplate
import Shared.Model.Package.PackagePattern
import Wizard.Api.Resource.Package.PackageSimp... | null | https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Resource/DocumentTemplate/DocumentTemplateSimpleDTO.hs | haskell | module Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimpleDTO where
import Data.Time
import GHC.Generics
import Shared.Api.Resource.Organization.OrganizationSimpleDTO
import Shared.Model.DocumentTemplate.DocumentTemplate
import Shared.Model.Package.PackagePattern
import Wizard.Api.Resource.Package.PackageSimp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.