_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 |
|---|---|---|---|---|---|---|---|---|
2285e638fbc656e558daef7f80f3fca01e992dd69b464374c65ae2b86967f7ed | dollabs/planviz | client.cljs | Copyright © 2016 Dynamic Object Language Labs Inc.
;;
;; This software is licensed under the terms of the
Apache License , Version 2.0 which can be found in
;; the file LICENSE at the root of this distribution.
(ns planviz.client
"planviz main program"
(:require [clojure.string :as string]
[goog.ob... | null | https://raw.githubusercontent.com/dollabs/planviz/c1bd6df9d17c121705f3f5fc1634502580b4f689/src/planviz/client.cljs | clojure |
This software is licensed under the terms of the
the file LICENSE at the root of this distribution.
server functions --------------------------------------
true
(ws/add-rmethod ws/ws
:network-update actions/network-update)
--------------------------------------------------------
see NOTE below
see NOTE belo... | Copyright © 2016 Dynamic Object Language Labs Inc.
Apache License , Version 2.0 which can be found in
(ns planviz.client
"planviz main program"
(:require [clojure.string :as string]
[goog.object :as gobject]
[goog.string :as gstring]
[webtasks.tasks :as tasks :refer [on-real... |
142388d25d45b59e2dcf86c9ef899b62f9f0f7631e75715fa261f947d2b1f355 | clj-commons/seesaw | core.clj | (ns applet.test.core
(:use [applet.core] :reload)
(:use [clojure.test]))
(deftest replace-me ;; FIXME: write
(is false "No tests have been written."))
| null | https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/examples/applet/test/applet/test/core.clj | clojure | FIXME: write | (ns applet.test.core
(:use [applet.core] :reload)
(:use [clojure.test]))
(is false "No tests have been written."))
|
43c8f80689ccb851bbd4b2e8503f391694b3aa1a9d767483ffa92fa89f15c150 | okuoku/nausicaa | compile-all.ypsilon.sps | ;;;
Part of : / BLAS
Contents : compile script for Ypsilon Scheme
Date : Mon Feb 1 , 2010
;;;
;;;Abstract
;;;
;;;
;;;
Copyright ( c ) 2010 < >
;;;
;;;This program is free software: you can redistribute it and/or modify
;;;it under the terms of the GNU General Public License as published by
the Free Software Fou... | null | https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/blas/src/libraries/compile-all.ypsilon.sps | scheme |
Abstract
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warra... | Part of : / BLAS
Contents : compile script for Ypsilon Scheme
Date : Mon Feb 1 , 2010
Copyright ( c ) 2010 < >
the Free Software Foundation , either version 3 of the License , or ( at
General Public License for more details .
You should have received a copy of the GNU General Public License
(import
(... |
23e0c972f0db944498073c75ce479021fe2b737721774910dcd935e18f809e57 | seckcoder/iu_c311 | u-combinator-cps.rkt | #lang eopl
(define fact
(lambda (n)
((lambda (mk)
((mk mk) n))
(lambda (mk)
(lambda (n)
(if (= n 0)
1
(* n ((mk mk) (- n 1))))
))))
)
(lambda (n k)
; version1
(define fact
(lambda (n)
((lambda (mk k)
(mk mk (lambda (fact)
... | null | https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/racket/cps/u-combinator-cps.rkt | racket | version1 | #lang eopl
(define fact
(lambda (n)
((lambda (mk)
((mk mk) n))
(lambda (mk)
(lambda (n)
(if (= n 0)
1
(* n ((mk mk) (- n 1))))
))))
)
(lambda (n k)
(define fact
(lambda (n)
((lambda (mk k)
(mk mk (lambda (fact)
(fact n ... |
1f1f7aedb5c6b843381c6cd45bae37877f36b07cefafd9c6305140ec02f02aa7 | nikomatsakis/great-pl-papers | grammar.rkt | #lang racket
(require redex/reduction-semantics)
(provide (all-defined-out))
(define-language bidir
Figure 1 : Source expressions
(Expr := X () (λ X Expr) (Expr Expr) (Expr : Type))
Figure 6 : Algorithmic types and constants
(Type := Unit T (∀ T Type) (Type -> Type))
(Monotype := Unit alpha (Monotype -> Mon... | null | https://raw.githubusercontent.com/nikomatsakis/great-pl-papers/b0b6d0b039fda4df6522bbda29dd0c2554d58a1c/bidir-hr-poly/grammar.rkt | racket | T is universally bound
T is existentially bound
T is existentially bound with value Type
Marker for existential variable T
program variable X has type Type
Variables | #lang racket
(require redex/reduction-semantics)
(provide (all-defined-out))
(define-language bidir
Figure 1 : Source expressions
(Expr := X () (λ X Expr) (Expr Expr) (Expr : Type))
Figure 6 : Algorithmic types and constants
(Type := Unit T (∀ T Type) (Type -> Type))
(Monotype := Unit alpha (Monotype -> Mon... |
8f73afb384d885a42c788fd8c994ef6233988c7cb3983cb71f55ebb75a7a0dd4 | sru-systems/protobuf-simple | Int32OptMsg.hs | -- Generated by protobuf-simple. DO NOT EDIT!
module Types.Int32OptMsg where
import Control.Applicative ((<$>))
import Prelude ()
import qualified Data.ProtoBufInt as PB
newtype Int32OptMsg = Int32OptMsg
{ value :: PB.Maybe PB.Int32
} deriving (PB.Show, PB.Eq, PB.Ord)
instance PB.Default Int32OptMsg where
defa... | null | https://raw.githubusercontent.com/sru-systems/protobuf-simple/ee0f26b6a8588ed9f105bc9ee72c38943133ed4d/test/Types/Int32OptMsg.hs | haskell | Generated by protobuf-simple. DO NOT EDIT! | module Types.Int32OptMsg where
import Control.Applicative ((<$>))
import Prelude ()
import qualified Data.ProtoBufInt as PB
newtype Int32OptMsg = Int32OptMsg
{ value :: PB.Maybe PB.Int32
} deriving (PB.Show, PB.Eq, PB.Ord)
instance PB.Default Int32OptMsg where
defaultVal = Int32OptMsg
{ value = PB.defaultV... |
d2f36293442d3e880d4764020e19180777e950182dde17510b5b8d60f8cf1e57 | spwhitton/consfigurator | property.lisp | ;;; Consfigurator -- Lisp declarative configuration management system
Copyright ( C ) 2020 - 2022 < >
;;; This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 , or ( at your opt... | null | https://raw.githubusercontent.com/spwhitton/consfigurator/ee162259b316550afc201979cd10be7f3343c358/src/property.lisp | lisp | Consfigurator -- Lisp declarative configuration management system
This file is free software; you can redistribute it and/or modify
either version 3 , or ( at your option )
any later version.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty o... |
Copyright ( C ) 2020 - 2022 < >
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
(in-package :consfigurator)
(named-readtables:in-readtable :consfigurator)
Properties are not stored as CLOS objects ( or structs ) i... |
d5cac30d46e3806b79fb9abf6db2a86afbc72dd3aa18757cc7e8c95ef7089fa0 | erlangonrails/devdb | sup_dht_node_core_tx.erl | 2009 - 2010 fuer Informationstechnik Berlin
and onScale solutions GmbH
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 applicabl... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/src/sup_dht_node_core_tx.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 or implied.
See the License for the specific language gov... | 2009 - 2010 fuer Informationstechnik Berlin
and onScale solutions GmbH
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
If one of the supervised processes fails , all will be re - s... |
0726a900c460ad9cb47459e1d84e4a50482cbc68f79276e10fe196a8d9ccea1e | cwi-swat/monadic-frp | SDLSFRP.hs | # LANGUAGE FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances , TypeOperators , FlexibleContexts , TypeFamilies , TupleSections , ViewPatterns #
-- | SDL boxes interpreter for Symmetric FRP
module SDLSFRP where
import Prelude
import Graphics.UI.SDL hiding (update,Rect,Color,Event)
import Reactive hiding ... | null | https://raw.githubusercontent.com/cwi-swat/monadic-frp/c0c40fdfe4a2c77df66173338b109831b35b7672/extensible/SDLSFRP.hs | haskell | | SDL boxes interpreter for Symmetric FRP
} | # LANGUAGE FlexibleInstances , MultiParamTypeClasses , TypeSynonymInstances , TypeOperators , FlexibleContexts , TypeFamilies , TupleSections , ViewPatterns #
module SDLSFRP where
import Prelude
import Graphics.UI.SDL hiding (update,Rect,Color,Event)
import Reactive hiding (foldl,map)
import HEnv
import ReactiveHEnv
... |
198495e9b856253759c67d7cb2fec4a043b7e366d429327bacbdb1426bd847bd | mzp/coq-for-ipad | expunge.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/toplevel/expunge.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ I d : expunge.ml 6074 2004 - 01 - 1... |
7c2455c448e96b75ec1043550e7f3765478b29e4b349059093512078e334c58f | leviroth/ocaml-reddit-api | mod_action.mli | open! Core
module Id : sig
type t [@@deriving compare, hash, sexp]
val to_uuid : t -> Uuid.t
val of_uuid : Uuid.t -> t
end
type t
include Json_object.S_with_fields with type t := t
include Json_object.S_with_kind with type t := t
val id : t -> Id.t
val action : t -> string
val details : t -> string
val creat... | null | https://raw.githubusercontent.com/leviroth/ocaml-reddit-api/500a05714f3d2ed9324fe45427c5e9a59b4372d6/reddit_api_kernel/mod_action.mli | ocaml | open! Core
module Id : sig
type t [@@deriving compare, hash, sexp]
val to_uuid : t -> Uuid.t
val of_uuid : Uuid.t -> t
end
type t
include Json_object.S_with_fields with type t := t
include Json_object.S_with_kind with type t := t
val id : t -> Id.t
val action : t -> string
val details : t -> string
val creat... | |
44e8796296990ebba80a2b9c2144284023986b611cfe47ef0a4c0095a35623c0 | frp-arduino/frp-arduino | BlockDoc.hs | Copyright ( c ) 2014 Contributors as noted in the file
--
-- This file is part of frp-arduino.
--
-- frp-arduino is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
-- (at ... | null | https://raw.githubusercontent.com/frp-arduino/frp-arduino/7489ada012efc404086043ee55a9933029647121/src/Arduino/Internal/CodeGen/BlockDoc.hs | haskell |
This file is part of frp-arduino.
frp-arduino is free software: you can redistribute it and/or modify
(at your option) any later version.
frp-arduino is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR... | Copyright ( c ) 2014 Contributors as noted in the file
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
module Arduino.Internal.CodeGen.BlockDoc
( Gen()... |
fde35e7588990cd3a68b62ca8c1bafc7f8c0fbca99c2347eed2d134ef56b2c47 | mkhan45/RustScript2 | parser.ml | open Types
open Types.Located
open Scanner
open Printf
open Base
let binary_op_bp = function
| PipeOp -> (1, 2)
| Or -> (3, 4)
| And -> (5, 6)
| EQ | NEQ | GEQ | LEQ -> (7, 8)
| LT | GT -> (9, 10)
| Add | Neg -> (11, 12)
| Mul | Div | Mod -> (13, 14)
| Head | Tail -> ... | null | https://raw.githubusercontent.com/mkhan45/RustScript2/96a4a4af322369375c3bf44806fa031dea4de73a/lib/parser.ml | ocaml | open Types
open Types.Located
open Scanner
open Printf
open Base
let binary_op_bp = function
| PipeOp -> (1, 2)
| Or -> (3, 4)
| And -> (5, 6)
| EQ | NEQ | GEQ | LEQ -> (7, 8)
| LT | GT -> (9, 10)
| Add | Neg -> (11, 12)
| Mul | Div | Mod -> (13, 14)
| Head | Tail -> ... | |
60479c864e02b2efa0ad8be9dd663385a10c58315eb3b53ab96a387253753125 | songyahui/AlgebraicEffect | clflags.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/songyahui/AlgebraicEffect/27688952b598a101a27523be796e8011d70b02de/parsing/clflags.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
module Int_arg_helper = Arg_helper.Make (struct
module Key = struct
include Numbers.Int
let of... |
d2f3149f4dfb4ddd226802b9ec5fe913f81316a7035cea8d833baa30ddf4c745 | janestreet/ecaml | clipboard.mli | (** For dealing with the GUI's clipboard. *)
open! Core
open! Async_kernel
open! Import
* [ text ] makes [ text ] the latest kill in the kill ring , and sets the clipboard
to contain [ text ] .
to contain [text]. *)
val kill_new : Text.t -> unit
(** [yank_at_point ()] inserts the clipboard's contents at p... | null | https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/src/clipboard.mli | ocaml | * For dealing with the GUI's clipboard.
* [yank_at_point ()] inserts the clipboard's contents at point. |
open! Core
open! Async_kernel
open! Import
* [ text ] makes [ text ] the latest kill in the kill ring , and sets the clipboard
to contain [ text ] .
to contain [text]. *)
val kill_new : Text.t -> unit
val yank_at_point : unit -> unit
|
6195273b6ad6f8ac778b27b21a673ecc6da87fe9f40d5c247da9e5cc66e42e19 | metaocaml/ber-metaocaml | w60.mli | module type Comparable = sig
val id: int
end
module Fold_ordered(P: sig module Id:Comparable end): sig
val foo: int
end
module M : sig end
module O : sig end
| null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/warnings/w60.mli | ocaml | module type Comparable = sig
val id: int
end
module Fold_ordered(P: sig module Id:Comparable end): sig
val foo: int
end
module M : sig end
module O : sig end
| |
f5ed9fdbc14346c7a625af37d7aa0919a9bfbd0e07fd155940afdb61b5ca4206 | wilkerlucio/transito | transito_test.cljc | (ns com.wsscode.transito-test
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is testing]]
[com.wsscode.transito :as transito]))
(deftest write-str-test
(is (= (transito/write-str {})
"[\"^ \"]"))
(testing "meta round-trip"
(is (= (transito/write-str ^:mmm {:foo "bar"})... | null | https://raw.githubusercontent.com/wilkerlucio/transito/33b58e7e481bd59479c641656ddb26a185a53d66/test/com/wsscode/transito_test.cljc | clojure | (ns com.wsscode.transito-test
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is testing]]
[com.wsscode.transito :as transito]))
(deftest write-str-test
(is (= (transito/write-str {})
"[\"^ \"]"))
(testing "meta round-trip"
(is (= (transito/write-str ^:mmm {:foo "bar"})... | |
c8cbef3515591b6a61fb9574f85ec871846239ed7f6be8550e6155c5a5b238bf | marick/Midje | t_junit.clj | (ns midje.emission.plugins.t-junit
(:require [midje
[sweet :refer :all]
[util :refer :all]
[test-util :refer :all]]
[midje.emission.plugins.junit :as plugin]
[midje.config :as config]
[midje.emission.plugins.default-failure-lines :as failure-l... | null | https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/midje/emission/plugins/t_junit.clj | clojure | re-entering namespace must not output anything
FIXME: nicer test for 'both strings present'
if this fact runs standalone, the :possible-new-namespace will try to clear
the report file. Otherwise, it was already done in previous test.
perhaps a plugin/clear-state in a fixture would help. | (ns midje.emission.plugins.t-junit
(:require [midje
[sweet :refer :all]
[util :refer :all]
[test-util :refer :all]]
[midje.emission.plugins.junit :as plugin]
[midje.config :as config]
[midje.emission.plugins.default-failure-lines :as failure-l... |
fa30db023aa24522c9f8428ab078cded82280b7e6a9c7d5009153592061bd366 | craigl64/clim-ccl | genera-frames.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : GENERA - CLIM ; Base : 10 ; Lowercase : Yes -*-
(in-package :genera-clim)
"Copyright (c) 1992 Symbolics, Inc. All rights reserved."
(defparameter *use-gadget-menu-bars* nil)
(defclass genera-frame-manager (standard-frame-manager)
((gadget-menu-bar ... | null | https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/genera/genera-frames.lisp | lisp | Syntax : ANSI - Common - Lisp ; Package : GENERA - CLIM ; Base : 10 ; Lowercase : Yes -*- |
(in-package :genera-clim)
"Copyright (c) 1992 Symbolics, Inc. All rights reserved."
(defparameter *use-gadget-menu-bars* nil)
(defclass genera-frame-manager (standard-frame-manager)
((gadget-menu-bar :initarg :gadget-menu-bar :initform *use-gadget-menu-bars*))
(:default-initargs :dialog-view +textual-dialog... |
e184915e15b786d07de4ef2a2dd547377f10c22acae98c56bc59c4e04b09e212 | graninas/Pragmatic-Type-Level-Design | Auction.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
# LANGUAGE FunctionalDependencies #
{-# LANGUAGE TypeFamilies #-}
# LANGUAGE PolyKinds #
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE UndecidableInstances ... | null | https://raw.githubusercontent.com/graninas/Pragmatic-Type-Level-Design/a7e051ed9d664c6986323336a0ad2132a3fa3f1c/demo-apps/auction/src/Auction/Implementation/Auction.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE TypeFamilies #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
Interpretation tags
Interpreting of the Auction
Activity decreasing value
hardcoded value to simulate the priority of a bid
... | # LANGUAGE FunctionalDependencies #
# LANGUAGE PolyKinds #
# LANGUAGE UndecidableInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{ - # LANGUAGE AllowAmbiguousTypes # - }
module Auction.Implementation.Auction
( module Impl
, AsImplAuction (..... |
e294239f12a34ac2384d9c9fcf175441c75d78d7fb4200a08e4e77713f8cd441 | exoscale/clojure-kubernetes-client | v1_cluster_role_binding.clj | (ns clojure-kubernetes-client.specs.v1-cluster-role-binding
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-object-meta :refer :all]
[clojure-kubernetes-client.specs.v1-role-ref :refer :all]
[clojure-kubernetes-clie... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_cluster_role_binding.clj | clojure | (ns clojure-kubernetes-client.specs.v1-cluster-role-binding
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1-object-meta :refer :all]
[clojure-kubernetes-client.specs.v1-role-ref :refer :all]
[clojure-kubernetes-clie... | |
a76f9b868a4e2a7e31796f3c5aff84ce720fd1b4e5b2acbda7f1ad96bd459c82 | argp/bap | sample.ml |
* sample.ml
* ---------
* Copyright : ( c ) 2008 , < >
* Licence : BSD3
*
* This file is a part of optcomp .
* sample.ml
* ---------
* Copyright : (c) 2008, Jeremie Dimino <>
* Licence : BSD3
*
* This file is a part of optcomp.
*)
This file show how to use optcomp
(* +-----------... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/build/optcomp/sample.ml | ocaml | +-----------+
| Variables |
+-----------+
Variables are defined with the directive let:
#let <id> = <expr>
where <id> is any lower or upper identifier and <expr> is any
well-parenthesed expression, followed by a newline.
For instanse here are some correct variable definition:
+------------+
... |
* sample.ml
* ---------
* Copyright : ( c ) 2008 , < >
* Licence : BSD3
*
* This file is a part of optcomp .
* sample.ml
* ---------
* Copyright : (c) 2008, Jeremie Dimino <>
* Licence : BSD3
*
* This file is a part of optcomp.
*)
This file show how to use optcomp
#let X = 1
#l... |
ba89894580c0a9a35d78bc47d5544f1e49fa14e3b4f0777615729a7827ceb317 | lanl/APPFL | Base.hs |
This is the APPFL Base library , parallel to GHC.Base .
The current goal is to get a simple Int type working .
It is largely derived from the GHC.Base module , and will be
incrementally expanded as more features are enabled . See the
APPFL Prelude for why this sort of hackery is necessary . The more
... | null | https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/prelude/APPFL/Base.hs | haskell | -fno-warn-orphans is needed for things like:
# OPTIONS_HADDOCK hide #
recognizable dummy definition for those things that require
it for well-typedness.
Note [ Depend on GHC.Tuple ]
Note [ Depend on GHC.Integer ]
- see Note [ Depend on
- to explain this to the build system . We make GHC.Base
- see Note [Depend... |
This is the APPFL Base library , parallel to GHC.Base .
The current goal is to get a simple Int type working .
It is largely derived from the GHC.Base module , and will be
incrementally expanded as more features are enabled . See the
APPFL Prelude for why this sort of hackery is necessary . The more
... |
9221fa9f2012aa08ebbc89036dee5bfeaff647ce0af7b9d261be584b03f10d84 | vincenthz/hs-asn1 | Parse.hs | -- |
Module : Data . ASN1.BinaryEncoding .
-- License : BSD-style
Maintainer : < >
-- Stability : experimental
-- Portability : unknown
--
Generic parsing facility for ASN1 .
--
module Data.ASN1.BinaryEncoding.Parse
(
-- * incremental parsing interfaces
runParseState
, isParseD... | null | https://raw.githubusercontent.com/vincenthz/hs-asn1/c017c03b0f71a3b45165468a1d1028a0ed7502c0/encoding/Data/ASN1/BinaryEncoding/Parse.hs | haskell | |
License : BSD-style
Stability : experimental
Portability : unknown
* incremental parsing interfaces
* simple parsing interfaces
| nothing means the parser stop this construction on
where the construction terminate.
* the stack of constructed elements.
* the next expected type.
* the position in th... | Module : Data . ASN1.BinaryEncoding .
Maintainer : < >
Generic parsing facility for ASN1 .
module Data.ASN1.BinaryEncoding.Parse
(
runParseState
, isParseDone
, newParseState
, ParseState
, ParseCursor
, parseLBS
, parseBS
) where
import Control.Arrow (first)
imp... |
bdb0db343d8814760147b8433f894e1c28aeb803e1693c3c90b1db2e398e618d | Helium4Haskell/helium | SignumFloat.hs | main =
( signumFloat (-.3.0)
, signumFloat 3.0
, signumFloat 0.0
)
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/correct/SignumFloat.hs | haskell | main =
( signumFloat (-.3.0)
, signumFloat 3.0
, signumFloat 0.0
)
| |
a585a3da071fa5e6e812e3104111fe6df1ba3347e7cf063f1e70c7c7924a11d7 | docker-in-aws/docker-in-aws | form_settings.cljs | (ns swarmpit.component.service.form-settings
(:require [material.component :as comp]
[material.component.form :as form]
[swarmpit.component.state :as state]
[swarmpit.component.service.form-ports :as ports]
[swarmpit.component.parser :refer [parse-int]]
[swa... | null | https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/swarmpit/component/service/form_settings.cljs | clojure | (ns swarmpit.component.service.form-settings
(:require [material.component :as comp]
[material.component.form :as form]
[swarmpit.component.state :as state]
[swarmpit.component.service.form-ports :as ports]
[swarmpit.component.parser :refer [parse-int]]
[swa... | |
e69952bc8dd68112c4765b86a92f62f6d0e9e1f56f928d782557064b2ed14815 | goldfirere/singletons | Bounded.hs | -----------------------------------------------------------------------------
-- |
-- Module : Data.Singletons.TH.Deriving.Bounded
Copyright : ( C ) 2015
-- License : BSD-style (see LICENSE)
Maintainer :
-- Stability : experimental
-- Portability : non-portable
--
-- Implements deriving ... | null | https://raw.githubusercontent.com/goldfirere/singletons/70d622645b960d60411ab8f31d16ffb91e69379e/singletons-th/src/Data/Singletons/TH/Deriving/Bounded.hs | haskell | ---------------------------------------------------------------------------
|
Module : Data.Singletons.TH.Deriving.Bounded
License : BSD-style (see LICENSE)
Stability : experimental
Portability : non-portable
Implements deriving of Bounded instances
-----------------------------------------------... | Copyright : ( C ) 2015
Maintainer :
module Data.Singletons.TH.Deriving.Bounded where
import Language.Haskell.TH.Ppr
import Language.Haskell.TH.Desugar
import Data.Singletons.TH.Deriving.Infer
import Data.Singletons.TH.Deriving.Util
import Data.Singletons.TH.Names
import Data.Singletons.TH.Syntax
impo... |
661ab21cd91839a2fef370f0f9228c36e9f1158160058bc7ca413ec5117f3724 | EFanZh/EOPL-Exercises | exercise-3.43-test.rkt | #lang racket/base
(require rackunit)
(require "../solutions/exercise-3.x-lexaddr-lang.rkt")
(check-equal? (run "let x = 3
in let f = proc (y)
-(y, x)
in (f 13)")
(num-val 10))
(check-equal? (run "let x = 5
i... | null | https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-3.43-test.rkt | racket | #lang racket/base
(require rackunit)
(require "../solutions/exercise-3.x-lexaddr-lang.rkt")
(check-equal? (run "let x = 3
in let f = proc (y)
-(y, x)
in (f 13)")
(num-val 10))
(check-equal? (run "let x = 5
i... | |
19f3a02fd6e0c631aa195eb4139f5e04901d385a36c07eb6fb32885c8177b6c6 | helium/miner | miner_cli_info.erl | %%%-------------------------------------------------------------------
%% @doc miner_cli_info
%% @end
%%%-------------------------------------------------------------------
-module(miner_cli_info).
-behavior(clique_handler).
-export([register_cli/0]).
-export([get_info/0]).
-include_lib("blockchain/include/blockcha... | null | https://raw.githubusercontent.com/helium/miner/eea2f3780bdb6e413a81b139bec6da35c3b7a9e4/src/cli/miner_cli_info.erl | erlang | -------------------------------------------------------------------
@doc miner_cli_info
@end
-------------------------------------------------------------------
the default number of error log hits to return as part of info summary
the default number of error log entries to scan as part of info summary
info
in... | -module(miner_cli_info).
-behavior(clique_handler).
-export([register_cli/0]).
-export([get_info/0]).
-include_lib("blockchain/include/blockchain.hrl").
-define(ONBOARDING_API_URL_BASE, "").
register_cli() ->
register_all_usage(),
register_all_cmds().
register_all_usage() ->
lists:foreach(fun(Args) ... |
99ec0093d19af9f3624f269de3acaa6fd16eff0d8dbd757ac54a52259c4816c1 | phoe/protest | test.lisp | ;;;; t/test.lisp
(defpackage #:protest/test
(:use
#:cl)
(:export
#:*test-packages*
#:register-test-package
#:run-all-tests
1AM
#:define-protest-test #:is #:signals #:run #:*tests*))
(in-package #:protest/test)
(defvar *test-packages* '())
(defun register-test-package (&optional (package *packag... | null | https://raw.githubusercontent.com/phoe/protest/be885130044d9950758a2d1726246c4c114692c1/t/test.lisp | lisp | t/test.lisp |
(defpackage #:protest/test
(:use
#:cl)
(:export
#:*test-packages*
#:register-test-package
#:run-all-tests
1AM
#:define-protest-test #:is #:signals #:run #:*tests*))
(in-package #:protest/test)
(defvar *test-packages* '())
(defun register-test-package (&optional (package *package*))
(pushnew (... |
cf9c884508d68bac328de93d5fd7a0d9c8fed866eb05f3eb1b0c3d8a5764ab0a | VERIMAG-Polyhedra/VPL | DomainInterfaces.ml |
type mode =
| BOTH
| UP
| LOW
| null | https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/extracted/DomainInterfaces.ml | ocaml |
type mode =
| BOTH
| UP
| LOW
| |
d7b69236795d6e589676567b3d0677b4815b9ba853a562bd004be58f7111d3bd | aryx/fork-efuns | outline_mode.ml |
*
* Copyright ( C ) 2015
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file license.txt .... | null | https://raw.githubusercontent.com/aryx/fork-efuns/4db191f47ae35590725a7ba82b911fd94ff12040/major_modes/outline_mode.ml | ocaml | ***************************************************************************
Prelude
***************************************************************************
***************************************************************************
Types, constants, globals
******************************************************... |
*
* Copyright ( C ) 2015
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file license.txt .... |
f37dbfe126dc66130592e6e2bd17afb8964656d402202d56282a94fc7898a246 | joodie/flutter | test_select.clj | (ns flutter.html4.test-select
(:use flutter.html4.select
flutter.core
clojure.test))
(deftest select
(let [field (-> field
wrap-select)]
(is (= (field :select
{}
:my-name
[:v1 :v2 :v3]
:v2)
[:se... | null | https://raw.githubusercontent.com/joodie/flutter/336e40386ff4e79ce9243ec8690e2a62c41f80a3/test/flutter/html4/test_select.clj | clojure | (ns flutter.html4.test-select
(:use flutter.html4.select
flutter.core
clojure.test))
(deftest select
(let [field (-> field
wrap-select)]
(is (= (field :select
{}
:my-name
[:v1 :v2 :v3]
:v2)
[:se... | |
64976cd96bd0a96dcbfe46aeaddc026aad345209bfa9e7d98f393c0455413f4a | passy/latest-npm-version | Internal.hs | # LANGUAGE OverloadedStrings , ScopedTypeVariables , DataKinds , DeriveDataTypeable , ExistentialQuantification #
module Npm.Latest.Internal (
extractVersion,
buildRequest,
makeVersionRequest,
GenericNpmException(..)
) where
import Data.Typeable (Typeable)
import Control.Lens ((^?))
import Control.Exce... | null | https://raw.githubusercontent.com/passy/latest-npm-version/da01dbe656b251bc47258f988282ef2d920abc9c/Npm/Latest/Internal.hs | haskell | # LANGUAGE OverloadedStrings , ScopedTypeVariables , DataKinds , DeriveDataTypeable , ExistentialQuantification #
module Npm.Latest.Internal (
extractVersion,
buildRequest,
makeVersionRequest,
GenericNpmException(..)
) where
import Data.Typeable (Typeable)
import Control.Lens ((^?))
import Control.Exce... | |
59304b2e654d5d81f3edbb2ddf65255fabbb1cfb5492edaf2252880db3a76c12 | alexander-yakushev/compliment | t_ns_mappings.clj | (ns compliment.sources.t-ns-mappings
(:require [fudje.sweet :refer :all]
[clojure.test :refer :all]
[compliment.sources.ns-mappings :as src]
[compliment.context :as ctx]
[compliment.utils :refer [*extra-metadata*]]
[compliment.t-helpers :refer :all]))
(defn... | null | https://raw.githubusercontent.com/alexander-yakushev/compliment/bb729cd441bfed8430e2d28d5206b41b2f9e7bb4/test/compliment/sources/t_ns_mappings.clj | clojure | (ns compliment.sources.t-ns-mappings
(:require [fudje.sweet :refer :all]
[clojure.test :refer :all]
[compliment.sources.ns-mappings :as src]
[compliment.context :as ctx]
[compliment.utils :refer [*extra-metadata*]]
[compliment.t-helpers :refer :all]))
(defn... | |
587f3d63fa3992da11b076bd06eedbcb41effba7b20461ed8db6beae4897d56d | jrm-code-project/LISP-Machine | reldmp.lisp | -*- Mode : LISP ; Package : QFASL - REL ; Base:8 ; Lowercase : T ; : T -*-
;Temporary area for data structures used in dumping.
(defvar dump-temp-area)
;Section number of next section to be created.
(defvar next-dump-section-number)
;This is how big to create sections.
(defvar dump-section-array-size #o3000)
;Clos... | null | https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/io1/reldmp.lisp | lisp | Package : QFASL - REL ; Base:8 ; Lowercase : T ; : T -*-
Temporary area for data structures used in dumping.
Section number of next section to be created.
This is how big to create sections.
Close off a section when it gets bigger than this size.
This vector, indexed by section number, gives the
art-32b array used to... |
(defvar dump-temp-area)
(defvar next-dump-section-number)
(defvar dump-section-array-size #o3000)
(defvar dump-section-max-size #o2000)
(defvar dump-section-array-table)
(defvar dump-section-area-code)
(defvar dump-section-structure-p)
(defvar dump-section-0-array)
(defvar area-structure-section-alist)
(defva... |
ed1cc7a65b8ff87e117743148aeb6c6c7a79e0654452f5e9fa5d957f492e272d | sky-big/RabbitMQ | rabbit_event.erl | The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distributed on an " AS IS "
%% basis, WITHOUT WARRANTY OF ... | null | https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/src/rabbit_event.erl | erlang | Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
----------------... | The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ .
The Initial Developer of the Original Code is GoPivotal , Inc.
Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved .
-module... |
c5cbc392e6e244265105e9c7331ec64642bbe6d5eb93bd1fb5e05f2191124348 | facebook/pyre-check | algorithms.ml |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/98b8362ffa5c715c708676c1a37a52647ce79fe0/source/algorithms.ml | ocaml | TODO(T132410158) Add a module-level doc comment. |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
984be4d89125a8db1ee77782da96a28a016fb69d2b7cc08fce7db0f3f4b20ada | Vortecsmaster/EmurgoAcademyPlutusExamples | AlwaysSucceedandFailV2.hs | {-# LANGUAGE DataKinds #-} --Enable datatype promotions
Enable flexible contexts . Implied by
Do n't load native prelude to avoid conflict with PlutusTx . Prelude
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
{-# LANGUA... | null | https://raw.githubusercontent.com/Vortecsmaster/EmurgoAcademyPlutusExamples/184a00c1d53c24acfbe9ecf8c37ad4e09285c31b/V2/JustValidators/src/AlwaysSucceedandFailV2.hs | haskell | # LANGUAGE DataKinds #
Enable datatype promotions
# LANGUAGE TypeOperators #
Allow the use and definition of types with operator names
Contract Monad
Ledger
"Normal " Haskell
"Normal" Haskell -}
THE ON-CHAIN CODE
the value of this function is on its sideeffects
replaces:
scrAddress = scriptAddress val... | Enable flexible contexts . Implied by
Do n't load native prelude to avoid conflict with PlutusTx . Prelude
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
module AlwaysSucceedandFailV2 where
PlutusTx
import PlutusTx ... |
629f85cced2aa230f8e5b0c8416598b6470e9be770b832f809799b9197c7b05a | NaaS/motto | eval_monad.ml |
Evaluation monad
, Cambridge University Computer Lab , July 2015
Use of this source code is governed by the Apache 2.0 license ; see LICENSE
Evaluation monad
Nik Sultana, Cambridge University Computer Lab, July 2015
Use of this source code is governed by the Apache 2.0 license; see LICENSE... | null | https://raw.githubusercontent.com/NaaS/motto/8ff3eba534be816d861dcfced93b68d593a12e2b/runtime/eval_monad.ml | ocaml | Indicates that run_until_done should stop what it's doing, and return.
This is false by default.
A continuation needs to be fed the current state (i.e., type info) and
runtime_ctxt (i.e., runtime state) in order to yield the next snapshot of the
computation, consisting of an element of the monad (which we'll pick... |
Evaluation monad
, Cambridge University Computer Lab , July 2015
Use of this source code is governed by the Apache 2.0 license ; see LICENSE
Evaluation monad
Nik Sultana, Cambridge University Computer Lab, July 2015
Use of this source code is governed by the Apache 2.0 license; see LICENSE... |
ffc37c900ad86a625e36a2c4cba26f1d69e4f031172057f0bce67ca0e8701a0a | msimon/chip8js | config.ml | {server{
type emu_key = [
| `K0 | `K1 | `K2 | `K3 | `K4 | `K5 | `K6 | `K7
| `K8 | `K9 | `KA | `KB | `KC | `KD | `KE | `KF
] deriving (Json, Json_ext)
type key = [
| `Key_esc | `Key_space | `Key_backspace | `Key_return
| `Key_left | `Key_up | `Key_right | `Key_down
| `Key_0 | `Key_1 | `Key_2 ... | null | https://raw.githubusercontent.com/msimon/chip8js/67f6ea0e25a2cc2287b6915c4ca2639a9d64c632/src/config.ml | ocaml | A
B
C
D
E | {server{
type emu_key = [
| `K0 | `K1 | `K2 | `K3 | `K4 | `K5 | `K6 | `K7
| `K8 | `K9 | `KA | `KB | `KC | `KD | `KE | `KF
] deriving (Json, Json_ext)
type key = [
| `Key_esc | `Key_space | `Key_backspace | `Key_return
| `Key_left | `Key_up | `Key_right | `Key_down
| `Key_0 | `Key_1 | `Key_2 ... |
3ca5af278478f21a43b815e1bfa49cc8a2e221502affcbcd524f7ffda1ca5d44 | luminus-framework/luminus-template | ctmx.clj | (ns leiningen.new.ctmx
(:require [leiningen.new.common :refer :all]))
(def ctmx-assets
[["{{backend-path}}/{{sanitized}}/routes/home.clj" "ctmx/src/home.clj"]])
(defn ctmx-features [[assets options :as state]]
(if (some #{"+ctmx"} (:features options))
[(into (remove-conflicting-assets assets "home.clj") ctm... | null | https://raw.githubusercontent.com/luminus-framework/luminus-template/ad2282ddb1784db3db0a7fa8e63b97771523d08a/src/leiningen/new/ctmx.clj | clojure | (ns leiningen.new.ctmx
(:require [leiningen.new.common :refer :all]))
(def ctmx-assets
[["{{backend-path}}/{{sanitized}}/routes/home.clj" "ctmx/src/home.clj"]])
(defn ctmx-features [[assets options :as state]]
(if (some #{"+ctmx"} (:features options))
[(into (remove-conflicting-assets assets "home.clj") ctm... | |
3e6baac59028606d58ad0174c911026db796605635c8380edd0b571dfbd5fbe8 | janestreet/sexp | quine.mli | open Sexp_app
val prgm : Syntax.query
val show : out_channel -> unit
| null | https://raw.githubusercontent.com/janestreet/sexp/56e485b3cbf8a43e1a8d7647b0df31b27053febf/bin/quine.mli | ocaml | open Sexp_app
val prgm : Syntax.query
val show : out_channel -> unit
| |
b48c0daf02ca5d96088c360765ee94fbc4d800ff6b9869787c2df60030948d31 | cl-axon/shop2 | optimize-example.lisp | (in-package :shop2-user)
; This file illustrates the use of the :optimize-cost keyword argument
to SHOP2 in combination with variable cost operators ( e.g. , the
; cost of the !pay-mortgage-interest operator below is .1 times the
; ammount). A variety of different values are provided to the :which
; argument to ... | null | https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/examples/toy/optimize-example.lisp | lisp | This file illustrates the use of the :optimize-cost keyword argument
cost of the !pay-mortgage-interest operator below is .1 times the
ammount). A variety of different values are provided to the :which
argument to show the different interactions between these | (in-package :shop2-user)
to SHOP2 in combination with variable cost operators ( e.g. , the
two arguments to SHOP2 .
(defdomain loan (
(:operator (!borrow-mortgage ?ammt ?acct)
() () ((debt ?ammt ?acct)) 15.0)
(:operator (!borrow-credit-card ?ammt ?acct)
() () ((debt ?ammt ?acct)) 0.0)
(:operato... |
64ac3ac26e36d902433e9cfddc49c12b983d0b6bc28a6c3b8de24db8598cc6b9 | NorfairKing/mergeful | Collection.hs | # LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -fno - warn - orphans #
module Data.GenValidity.Mergeful.Collection where
import Data.GenValidity
import Data.GenValidity.Containers ()
import Data.GenValidity.Mergeful.Item ()
import Data.GenValidity.Time ()
import Data.Map (Map)
import qual... | null | https://raw.githubusercontent.com/NorfairKing/mergeful/7dc80c96de7937dea539cd8ec2d7c03fb74f8b9c/genvalidity-mergeful/src/Data/GenValidity/Mergeful/Collection.hs | haskell | # LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -fno - warn - orphans #
module Data.GenValidity.Mergeful.Collection where
import Data.GenValidity
import Data.GenValidity.Containers ()
import Data.GenValidity.Mergeful.Item ()
import Data.GenValidity.Time ()
import Data.Map (Map)
import qual... | |
958ee4d4b11e0860efd464a9bcd8694e4a9c0f0634df0671fa0736f8a32dc07d | GlideAngle/flare-timing | Double.hs | # OPTIONS_GHC -fno - warn - partial - type - signatures #
module Internal.Sphere.PointToPoint.Double
( distance
, azimuthFwd
, azimuthRev
) where
import Prelude hiding (flip)
import Data.UnitsOfMeasure (One, (-:), (*:), u, convert)
import Data.UnitsOfMeasure.Internal (Quantity(..), mk)
import Flight.... | null | https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/earth/library/Internal/Sphere/PointToPoint/Double.hs | haskell | NOTE: Use xLatF etc to avoid an hlint duplication warning.
| Spherical distance using haversines and floating point numbers.
# SPECIALIZE distance :: SpanLatLng Double #
# SPECIALIZE azimuthFwd :: AzimuthFwd Double #
# SPECIALIZE azimuthRev :: AzimuthRev Double #
SEE: -type.co.uk/scripts/latlong.html | # OPTIONS_GHC -fno - warn - partial - type - signatures #
module Internal.Sphere.PointToPoint.Double
( distance
, azimuthFwd
, azimuthRev
) where
import Prelude hiding (flip)
import Data.UnitsOfMeasure (One, (-:), (*:), u, convert)
import Data.UnitsOfMeasure.Internal (Quantity(..), mk)
import Flight.... |
9b3ee5440fab4240d1259198fb69ee4dc0335c06aa2b4303b9c9b71c4ce1d0b1 | sbcl/sbcl | cell.lisp | ;;;; various primitive memory access VOPs for the x86 VM
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
;;;; public domain. The software is in th... | null | https://raw.githubusercontent.com/sbcl/sbcl/e7e080966cf9d89d6abee365c9ad8b39d477c437/src/compiler/x86/cell.lisp | lisp | various primitive memory access VOPs for the x86 VM
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
data object ref/set stuff
symbol hacking VOPs
This code has to pathological cases: NO-TL... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB-VM")
(define-vop (slot)
(:args (object :scs (descriptor-reg)))
(:info name offset lowtag)
(:ignore n... |
2ce20ba74f125b08c353cdfeec99fa7c835afa8313f73e4939e189317fbf4bbb | thelema/ocaml-community | test8.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/testsuite/tests/lib-threads/test8.ml | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
open Event
type 'a buffer_channel = { ... |
04291671e55aaa3c46582bf9f7a05f912124cb498baff897097028d63e5f39e2 | surganov/cis194 | Calc.hs | # LANGUAGE FlexibleInstances #
module Calc where
import ExprT
import Parser
import qualified Data.Map as M
Exercise 1
eval :: ExprT -> Integer
eval (Lit n) = n
eval (Add n k) = eval n + eval k
eval (Mul n k) = eval n * eval k
exercise1 = do
print $ eval (Mul (Add (Lit 2) (Lit 3)) (Lit 4)) == 20
Exercise 2
... | null | https://raw.githubusercontent.com/surganov/cis194/e727f29389fb01c6d221940d45b394fd67e068c4/05/Calc.hs | haskell | # LANGUAGE FlexibleInstances #
module Calc where
import ExprT
import Parser
import qualified Data.Map as M
Exercise 1
eval :: ExprT -> Integer
eval (Lit n) = n
eval (Add n k) = eval n + eval k
eval (Mul n k) = eval n * eval k
exercise1 = do
print $ eval (Mul (Add (Lit 2) (Lit 3)) (Lit 4)) == 20
Exercise 2
... | |
9de1f0b8eeb1b29615fa23068209c40d21ae7c0ce68da426981bf6b6990ca259 | williamthome/eel | eel_test.erl | -module(eel_test).
-include_lib("eunit/include/eunit.hrl").
compile_file_test() ->
Template = eel_test_support:get_template(<<"foo.html.eel">>),
Compiled = eel:compile_file(Template),
ExpectedCompiled = {
[<<"<h1>">>, <<"</h1>\n<h2>">>, <<"</h2>\n\n">>],
[
{[{var, 1, 'Foo'}], [... | null | https://raw.githubusercontent.com/williamthome/eel/322ad8079e54eace21b2edeb41032cf6bb3c5bdb/test/eel_test.erl | erlang | -module(eel_test).
-include_lib("eunit/include/eunit.hrl").
compile_file_test() ->
Template = eel_test_support:get_template(<<"foo.html.eel">>),
Compiled = eel:compile_file(Template),
ExpectedCompiled = {
[<<"<h1>">>, <<"</h1>\n<h2>">>, <<"</h2>\n\n">>],
[
{[{var, 1, 'Foo'}], [... | |
e81d0ed6dd0f9627bbedc9456bfa585b02a2648b5d5f61e416a94a20c82ac398 | acieroid/scala-am | cashdesk-counter.scm | (define (maak-teller)
(let ((result 0))
(define (toets bedrag)
(set! result (+ result bedrag)))
(define (reset)
(set! result 0))
(define (dispatch msg)
(cond ((eq? msg 'toets) toets)
((eq? msg 'lees) result)
((eq? msg 'reset) (reset))
(else (error "... | null | https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/R5RS/scp1/cashdesk-counter.scm | scheme | (define (maak-teller)
(let ((result 0))
(define (toets bedrag)
(set! result (+ result bedrag)))
(define (reset)
(set! result 0))
(define (dispatch msg)
(cond ((eq? msg 'toets) toets)
((eq? msg 'lees) result)
((eq? msg 'reset) (reset))
(else (error "... | |
34931080bd020fb8f5ef51f8547a512a92ab70ae798ae5e35a6871a5b08c3c6c | nvim-treesitter/nvim-treesitter | injections.scm | (comment) @comment
vim : = marker
| null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/dc23e86e47d1005b192969db86d08ce1570a5312/queries/tiger/injections.scm | scheme | (comment) @comment
vim : = marker
| |
23b9f2a0e5344a6b07260168dc5e6760903e7b4b957d43309056f542f3e4b996 | input-output-hk/marlowe-cardano | Workspace.hs | module Test.Integration.Workspace
( Workspace(..)
, copyToWorkspace
, createWorkspace
, createWorkspaceDir
, moveToWorkspace
, openWorkspaceFile
, resolveWorkspacePath
, rewriteJSONFile
, rewriteYAMLFile
, writeWorkspaceFile
, writeWorkspaceFileJSON
, writeWorkspaceFileYAML
) where
import Con... | null | https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/60176ec6ce5e9366e990c055f12644143a5eab58/cardano-integration/src/Test/Integration/Workspace.hs | haskell | module Test.Integration.Workspace
( Workspace(..)
, copyToWorkspace
, createWorkspace
, createWorkspaceDir
, moveToWorkspace
, openWorkspaceFile
, resolveWorkspacePath
, rewriteJSONFile
, rewriteYAMLFile
, writeWorkspaceFile
, writeWorkspaceFileJSON
, writeWorkspaceFileYAML
) where
import Con... | |
dd435bc68adc46e72c8150b61c34bb8cd4d95f7ebfc74e55482f95667aa6d28f | oakes/Lightmod | init.cljs | (ns lightmod.init
(:require [adzerk.boot-reload.client :as client]
[adzerk.boot-reload.reload :as rl]
[adzerk.boot-reload.display :as d]
[adzerk.boot-reload.connection :refer [ws-conn]]
[goog.dom :as dom]
[eval-soup.core :as es]
[goog.object :as ... | null | https://raw.githubusercontent.com/oakes/Lightmod/141d1671d485326ef1f37b057c4116a2618dd948/resources/lightmod/init.cljs | clojure | hack thanks to
don't let instarepl change the client repl's current-ns | (ns lightmod.init
(:require [adzerk.boot-reload.client :as client]
[adzerk.boot-reload.reload :as rl]
[adzerk.boot-reload.display :as d]
[adzerk.boot-reload.connection :refer [ws-conn]]
[goog.dom :as dom]
[eval-soup.core :as es]
[goog.object :as ... |
f57a52a34e7c62f1e8032a4d789f11f7d5db9980a9e7a6bb6e74090d621c8497 | threatgrid/ctia | exceptions_test.clj | (ns ctia.http.exceptions-test
(:require [ctia.http.exceptions :as sut]
[clojure.test :refer [deftest is]]))
(deftest es-ex-data-test
(let [exdata {:es "don't like it"}
data {:some :stuff}
exception (ex-info "ES is not happy"
exdata)
query-params {:qu... | null | https://raw.githubusercontent.com/threatgrid/ctia/6cbaf89dce6c30a161ef7f661b0b998fdd2c568b/test/ctia/http/exceptions_test.clj | clojure | (ns ctia.http.exceptions-test
(:require [ctia.http.exceptions :as sut]
[clojure.test :refer [deftest is]]))
(deftest es-ex-data-test
(let [exdata {:es "don't like it"}
data {:some :stuff}
exception (ex-info "ES is not happy"
exdata)
query-params {:qu... | |
1f9e2ea0e9c5dca375474769ddc3e18d06bb3955d03ca0ba08c789f1a15206c7 | SamB/coq | term.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/kernel/term.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
This defines the strategy to use fo... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
$ Id$
This module inst... |
04e680691543336e17b9b9df41bd16e48717ffc754798ee3c35a2210e1d76998 | saleyn/util | util_log_formatter.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2017 - 2018 . 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 applicab... | null | https://raw.githubusercontent.com/saleyn/util/bd672355bc47717db592702088adf74221b66bf1/src/util_log_formatter.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 lan... | Copyright Ericsson AB 2017 - 2018 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
< dt > = second | millisecond | microsecond</dt >
unlimited ( default : 50)</dd >
< dt > lev</dt >
... |
a7b91d97222e9aa60524b9055a171aa786354a8c67a08f2469277f6e910a539b | vikram/lisplibraries | standard-component-class.lisp | ;;;; -*- lisp -*-
(in-package :it.bese.ucw)
;;;; STANDARD-COMPONENT-CLASS meta object
(defclass standard-component-class (mopp:standard-class)
((backtrack-slots :initform nil :accessor component-class.backtrack-slots)
(component-slots :initform nil :accessor component-class.component-slots)
(place-slot :init... | null | https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_ajax/src/rerl/standard-component/standard-component-class.lisp | lisp | -*- lisp -*-
STANDARD-COMPONENT-CLASS meta object
we allow for the definition of component-slots by ":component nil"
so as long as it is unbound, add it to the list.
Ensure standard-component is among the supers of the instances of standard-component-class.
this is exactly like above
we _must_ not change anything... |
(in-package :it.bese.ucw)
(defclass standard-component-class (mopp:standard-class)
((backtrack-slots :initform nil :accessor component-class.backtrack-slots)
(component-slots :initform nil :accessor component-class.component-slots)
(place-slot :initform nil :initarg :place-slot
:accessor compo... |
d5c6153cbf89cba1f78e14716776d7448adc44052831881115405b951e20acf8 | coq/coq | number.mli | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/ee959c8ead52b04cfe396f4de164fb016ddd8556/plugins/syntax/number.mli | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
c54bf35f4ecf56a65c0744fa3cf2644da7d1561fc7791da230413b09eccdc893 | froydnj/ironclad | cipher.lisp | ;;;; -*- mode: lisp; indent-tabs-mode: nil -*-
;;;; cipher.lisp -- generic functions for symmetric encryption
(in-package :crypto)
(defclass cipher ()
((mode :initarg :mode :accessor mode)
(mode-name :reader mode-name)
(initialized-p :initform nil :accessor initialized-p)))
;;; Block ciphers are denoted by t... | null | https://raw.githubusercontent.com/froydnj/ironclad/fe88483bba68eac4db3b48bb4a5a40035965fc84/src/ciphers/cipher.lisp | lisp | -*- mode: lisp; indent-tabs-mode: nil -*-
cipher.lisp -- generic functions for symmetric encryption
Block ciphers are denoted by the use of the {8,16,32,64,128}-byte-block-mixin.
utilities for wordwise fetches and stores
do is to see whether or not the range
[INITIAL-OFFSET, INITIAL-OFFSET + BLOCK-SIZE) is within... |
(in-package :crypto)
(defclass cipher ()
((mode :initarg :mode :accessor mode)
(mode-name :reader mode-name)
(initialized-p :initform nil :accessor initialized-p)))
(defclass stream-cipher (cipher)
())
(defun encrypt (cipher plaintext ciphertext
&key (plaintext-start 0) plaintext-end
... |
c21f78b7bb429fc16887d65aaa0a9999c13611901b26379763e4002cbe031e29 | bluelisp/hemlock | rcs.lisp | ;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
$ Header : /home / david / phemlock / cvsroot / phemlock / src / user / rcs.lisp , v 1.1 2004 - 07 - 09 13:38:35 gbaumann Exp $
;;;
Various commands for dealing with RCS under Hemlock .
;;;
Written by and .
;;;
(in-package :hemlock)
;;;;
(defun current-bu... | null | https://raw.githubusercontent.com/bluelisp/hemlock/47e16ba731a0cf4ffd7fb2110e17c764ae757170/src/rcs.lisp | lisp | -*- Mode: Lisp; indent-tabs-mode: nil -*-
~
Check In
Set the times on the user's file to be equivalent to that of
the rcs file.
Check Out
File exists and is writable so check and see if the user really
wants to check it out.
Last Command Output
Commands for Checking In / Checking Out and Locking / Unlo... | $ Header : /home / david / phemlock / cvsroot / phemlock / src / user / rcs.lisp , v 1.1 2004 - 07 - 09 13:38:35 gbaumann Exp $
Various commands for dealing with RCS under Hemlock .
Written by and .
(in-package :hemlock)
(defun current-buffer-pathname ()
(let ((pathname (buffer-pathname (current-buffer)... |
309ed1531f6ac2840a5295c03a2bde24fe00223298bc6eb401554cec404988f6 | sgbj/MaximaSharp | dlaqtr.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/lapack/dlaqtr.lisp | lisp | Compiled by f2cl version:
Using Lisp CMU Common Lisp 20d (20D Unicode)
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ "
" f2cl6.l , v 1d5cbacbb... |
acb2ad5d10542c69c6a83ed4b7802d32a447445f370251db6f39c6afd5f89b88 | zcaudate/hara | util.clj | (ns hara.object.element.util
(:require [hara.object.element.class :as class]
[hara.string :as string])
(:import (java.lang.reflect Field)))
(defn box-arg
"Converts primitives to their correct data types
(box-arg Float/TYPE 2)
=> 2.0
(box-arg Integer/TYPE 2.001)
=> 2
(type (box-arg ... | null | https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/src/hara/object/element/util.clj | clojure | (ns hara.object.element.util
(:require [hara.object.element.class :as class]
[hara.string :as string])
(:import (java.lang.reflect Field)))
(defn box-arg
"Converts primitives to their correct data types
(box-arg Float/TYPE 2)
=> 2.0
(box-arg Integer/TYPE 2.001)
=> 2
(type (box-arg ... | |
35dc51522ad115e8b334edc332881bfdcc34d0a0b643996bec5ec2d3ddf53fc3 | jarvinet/scheme | section211.scm | Structure and Interpretation of Computer Programs , 1st edition
;-------------------------------------------------------------
section 2.1.1
(define (+rat x y)
(make-rat (+ (* (numer x) (denom y))
(* (denom x) (numer y)))
(* (denom x) (denom y))))
(define (-rat x y)
(make-rat (- (* (numer x) (d... | null | https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/Book/Edition1/section211.scm | scheme | -------------------------------------------------------------
-------------------------------------------------------------
both are negative, make both positive
-------------------------------------------------------------
-------------------------------------------------------------
---------------------------------... | Structure and Interpretation of Computer Programs , 1st edition
section 2.1.1
(define (+rat x y)
(make-rat (+ (* (numer x) (denom y))
(* (denom x) (numer y)))
(* (denom x) (denom y))))
(define (-rat x y)
(make-rat (- (* (numer x) (denom y))
(* (denom x) (numer y)))
(* (denom x) (de... |
2cf07a3f2231e02fb48d1422df43bf8529da5376a33181021562b9e45bef1318 | essandess/adblock2privoxy | SourceInfo.hs | module SourceInfo
(
SourceInfo(_url),
showInfo,
updateInfo,
makeInfo,
readLogInfos,
infoExpired
) where
import InputParser
import Control.Monad.State
import Control.Applicative hiding (many)
import Text.ParserCombinators.Parsec hiding ((<|>),State,Line)
import Data.List
import Data.Time.Clock
import Data.Time.Calendar
... | null | https://raw.githubusercontent.com/essandess/adblock2privoxy/68affb86af325b88beaa7acda8866ad9b1d030f2/adblock2privoxy/src/SourceInfo.hs | haskell | module SourceInfo
(
SourceInfo(_url),
showInfo,
updateInfo,
makeInfo,
readLogInfos,
infoExpired
) where
import InputParser
import Control.Monad.State
import Control.Applicative hiding (many)
import Text.ParserCombinators.Parsec hiding ((<|>),State,Line)
import Data.List
import Data.Time.Clock
import Data.Time.Calendar
... | |
94b4f1dc0e75f5b66f158dc5c63fcbe4acc555c70e7e3ac4c2debe0204e80d93 | corecursive/sicp-study-group | ex01_17.scm | * Exercise 1.17 :* The exponentiation algorithms in this section are
;; based on performing exponentiation by means of repeated
;; multiplication. In a similar way, one can perform integer
;; multiplication by means of repeated addition. The following
;; multiplication procedure (in which it is ... | null | https://raw.githubusercontent.com/corecursive/sicp-study-group/d87da159d16d09493fd500f736c186edfeecfb83/plundaahl/exercises/ex01_17.scm | scheme | based on performing exponentiation by means of repeated
multiplication. In a similar way, one can perform integer
multiplication by means of repeated addition. The following
multiplication procedure (in which it is assumed that our language
can only add, not multiply) is analogous to the `exp... | * Exercise 1.17 :* The exponentiation algorithms in this section are
integer by 2 . Using these , design a multiplication procedure
(define (double a) (* a 2))
(define (halve a) (/ a 2))
(define (mult a b)
(define (even? a)
(= (remainder a 2) 0))
(cond ((= b 1) a)
((even? b) (mult (double a) (h... |
601089cb76cb3955308a2f7677c29846349b25d9a838fa27d870c02b8cba3538 | mzp/scheme-abc | closureTrans.ml | open Base
open PSet
let set_of_list xs =
PSet.set_of_list @@ List.map Node.value xs
let free_variable expr =
expr +> Ast.fix_fold Module.fold
begin fun _ x ->
match x with
`Var {Node.value = ([],x)} ->
PSet.singleton x
| `Int _ | `String _ | `Bool _ | `Float _ | `Var _
| `Lambda _ |... | null | https://raw.githubusercontent.com/mzp/scheme-abc/2cb541159bcc32ae4d033793dea6e6828566d503/scm/codegen/closureTrans.ml | ocaml | open Base
open PSet
let set_of_list xs =
PSet.set_of_list @@ List.map Node.value xs
let free_variable expr =
expr +> Ast.fix_fold Module.fold
begin fun _ x ->
match x with
`Var {Node.value = ([],x)} ->
PSet.singleton x
| `Int _ | `String _ | `Bool _ | `Float _ | `Var _
| `Lambda _ |... | |
47f114d7a85887ab06a47b9c5ac3cc35fe45bf77c38104a8b224610dfaccecd5 | viebel/klipse-app | registry.cljs | (ns klipse.common.registry
(:require
[klipse.utils :refer [klipse-settings]])
(:require-macros
[gadjett.core :refer [dbg]]))
(def selector->mode (atom {}))
(def mode-options (atom {}))
(defn codemirror-mode-src [mode]
(let [root (:codemirror_root (klipse-settings) "")]
(str root "/" mode "/" mode ".mi... | null | https://raw.githubusercontent.com/viebel/klipse-app/46809aaf4dd9bc89aae3bd81110125f81cbd11a4/src/klipse/common/registry.cljs | clojure | (ns klipse.common.registry
(:require
[klipse.utils :refer [klipse-settings]])
(:require-macros
[gadjett.core :refer [dbg]]))
(def selector->mode (atom {}))
(def mode-options (atom {}))
(defn codemirror-mode-src [mode]
(let [root (:codemirror_root (klipse-settings) "")]
(str root "/" mode "/" mode ".mi... | |
792bb89f1f6731895f83a0f276d6e7c190db817c98d92621f1ca7b957be50d56 | Stand-In-Language/stand-in-language | PrettyPrint.hs | # LANGUAGE LambdaCase #
module PrettyPrint where
import Data.Map (Map)
import Naturals (NExpr (..), NExprs (..), NResult)
import Telomare (FragExpr (..), FragExprUR (..), FragIndex (..),
IExpr (..), PartialType (..), PrettyPartialType (..),
... | null | https://raw.githubusercontent.com/Stand-In-Language/stand-in-language/ec00719d84aa6c2e5f89caa63e9a6e57d5dae930/src/PrettyPrint.hs | haskell | "G"
concat ["()"]
concat ["()"]
termMap, function->type lookup, root frag type | # LANGUAGE LambdaCase #
module PrettyPrint where
import Data.Map (Map)
import Naturals (NExpr (..), NExprs (..), NResult)
import Telomare (FragExpr (..), FragExprUR (..), FragIndex (..),
IExpr (..), PartialType (..), PrettyPartialType (..),
... |
0eb1644c6d28854caa85ed1ca9f1c589fc853b2b2b0c2f6d123a3a60502d7108 | niquola/pg3 | core.clj | (ns pg3.core
(:require [k8s.core :as k8s]
[unifn.core :as u]))
(def pgd {:apiVersion "apiextensions.k8s.io/v1beta1"
:kind "CustomResourceDefinition"
:metadata {:name "pgs.health-samurai.io"}
:spec {:group "health-samurai.io"
:version "v1"
:s... | null | https://raw.githubusercontent.com/niquola/pg3/5ae683813bd724fa2dad3162dcfb2b600f63bc7d/tmp/core.clj | clojure | (ns pg3.core
(:require [k8s.core :as k8s]
[unifn.core :as u]))
(def pgd {:apiVersion "apiextensions.k8s.io/v1beta1"
:kind "CustomResourceDefinition"
:metadata {:name "pgs.health-samurai.io"}
:spec {:group "health-samurai.io"
:version "v1"
:s... | |
17ef91b3790d3deed1625b47d9d42781ff946fd7a0f213d238e591e5b524e90a | zhugecaomao/AutoLISP | 本人有一图层lisp文件,加载上了可以一次只显示你想要的图层(一个,或多个同时),还可以一次cjjlay.lsp | (defun c:CHLAY (/ e n p)
(setvar "cmdecho" 0)
(setq e (car (entsel "\n选择参考实体 :")))
(if e
(progn
(setq n (cdr (assoc 8 (entget e))))
(princ "\n选择需修改的实体 :")
(setq p (ssget))
(command "change" p "" "p" "la" n "")
)
(princ "错误! 未选到参考体!按回车继续 "))
(setvar "cmdecho" 1)
)
(defun C:openlay ()
(setvar "cmdecho" 0)
(command "laye... | null | https://raw.githubusercontent.com/zhugecaomao/AutoLISP/3e97f911068124f3ea8a1cf6f1d8be9f8227c64b/%E6%9C%AC%E4%BA%BA%E6%9C%89%E4%B8%80%E5%9B%BE%E5%B1%82lisp%E6%96%87%E4%BB%B6%2C%E5%8A%A0%E8%BD%BD%E4%B8%8A%E4%BA%86%E5%8F%AF%E4%BB%A5%E4%B8%80%E6%AC%A1%E5%8F%AA%E6%98%BE%E7%A4%BA%E4%BD%A0%E6%83%B3%E8%A6%81%E7%9A%84%E5%9B%BE%... | lisp | (setvar "cmdecho" 0)
(setvar "cmdecho" 1) | (defun c:CHLAY (/ e n p)
(setvar "cmdecho" 0)
(setq e (car (entsel "\n选择参考实体 :")))
(if e
(progn
(setq n (cdr (assoc 8 (entget e))))
(princ "\n选择需修改的实体 :")
(setq p (ssget))
(command "change" p "" "p" "la" n "")
)
(princ "错误! 未选到参考体!按回车继续 "))
(setvar "cmdecho" 1)
)
(defun C:openlay ()
(setvar "cmdecho" 0)
(command "laye... |
afff571ad0855a142f68068ef152c2635cd5adda740dbbc197545ba2fac1d23e | daypack-dev/daypack-lib | int64_int64_set.ml | include Set.Make (struct
type t = int64 * int64
let compare = compare
end)
module Serialize = struct
let pack (set : t) : ((int32 * int32) * (int32 * int32)) list =
set
|> to_seq
|> Seq.map (fun (x, y) ->
(Misc_utils.int32_int32_of_int64 x, Misc_utils.int32_int32_of_int64 y))
|> Li... | null | https://raw.githubusercontent.com/daypack-dev/daypack-lib/63fa5d85007eca73aa6c51874a839636dd0403d3/src/int64_int64_set.ml | ocaml | include Set.Make (struct
type t = int64 * int64
let compare = compare
end)
module Serialize = struct
let pack (set : t) : ((int32 * int32) * (int32 * int32)) list =
set
|> to_seq
|> Seq.map (fun (x, y) ->
(Misc_utils.int32_int32_of_int64 x, Misc_utils.int32_int32_of_int64 y))
|> Li... | |
e8a924d888a144cdae7a124abd80b682b30828dc458e3d9a0805c30f94dea8ab | tisnik/clojure-examples | project.clj | ;
( C ) Copyright 2021
;
; All rights reserved. This program and the accompanying materials
; are made available under the terms of the Eclipse Public License v1.0
; which accompanies this distribution, and is available at
-v10.html
;
; Contributors:
;
(defproject test-hello "0.1.0-SNAPSHOT"
:... | null | https://raw.githubusercontent.com/tisnik/clojure-examples/cf9b3484a332ebd93bc585f051802c333ebde3df/test-hello/project.clj | clojure |
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
Contributors:
| ( C ) Copyright 2021
-v10.html
(defproject test-hello "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojars.tisnik/clj-hello "0.1.0-SN... |
4a6fc64b79b9dfc927266fc429f794e6d707c77b7fda46a2fcad7154fa81fe5c | ocaml-gospel/gospel | list2.mli | val f : 'a list option -> int
(*@ r = f l
requires match l with
| None -> false
| Some (x :: _ as a) -> false
*)
{ gospel_expected|
[ 125 ] File " list2.mli " , line 3 , characters 13 - 83 :
3 | ............. match l with
4 | | None - > false
5 | | ... | null | https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/patterns/negative/list2.mli | ocaml | @ r = f l
requires match l with
| None -> false
| Some (x :: _ as a) -> false
| val f : 'a list option -> int
{ gospel_expected|
[ 125 ] File " list2.mli " , line 3 , characters 13 - 83 :
3 | ............. match l with
4 | | None - > false
5 | | Some ( x : : _ as a ) - > false
Error : This pattern - matching is not exhaustive .
... |
2271126d0e9062a8f162b68f635aa6219c9d164f72afe39e0cbe81f687b4c24c | haslab/HAAP | Rank.hs |
HAAP : Haskell Automated Assessment Platform
This module provides the @Rank@ plugin to generate rankings as HTML webpages .
HAAP: Haskell Automated Assessment Platform
This module provides the @Rank@ plugin to generate rankings as HTML webpages.
-}
# LANGUAGE FlexibleContexts , OverloadedStrings ,
module HA... | null | https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/src/HAAP/Web/Test/Rank.hs | haskell |
HAAP : Haskell Automated Assessment Platform
This module provides the @Rank@ plugin to generate rankings as HTML webpages .
HAAP: Haskell Automated Assessment Platform
This module provides the @Rank@ plugin to generate rankings as HTML webpages.
-}
# LANGUAGE FlexibleContexts , OverloadedStrings ,
module HA... | |
903b01858707e269ccfce758bd89cec1c10b2cd1e4e344770d3c01b2d8888998 | dbuenzli/stdlib-utf | trip8.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | null | https://raw.githubusercontent.com/dbuenzli/stdlib-utf/77b0ece6ae0c798781fa20c7d1babedeb36d7f8d/trip8.ml | ocaml | ************************************************************************
OCaml
The... | Copyright 2021 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
let log fmt = Printf.printf (fmt ^^ "\n%!")
let string_of_file file =
let ic = open_in_bin file in
let len = in_channel_length ic in
let buf = Bytes.create len in
... |
ade9aa57a5429ee3f14875550af81940ad05552f5faa37a4a9282489ea22f31c | hjcapple/reading-sicp | picture_frames.scm | #lang racket
;; P91 - [框架]
(define (make-frame origin edge1 edge2)
(list origin edge1 edge2))
(define (origin-frame frame)
(car frame))
(define (edge1-frame frame)
(cadr frame))
(define (edge2-frame frame)
(cadr (cdr frame)))
(define (make-vect x y)
(cons x y))
(define (xcor-vect v)
(car v))
(define... | null | https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_2/picture_frames.scm | scheme | P91 - [框架]
| #lang racket
(define (make-frame origin edge1 edge2)
(list origin edge1 edge2))
(define (origin-frame frame)
(car frame))
(define (edge1-frame frame)
(cadr frame))
(define (edge2-frame frame)
(cadr (cdr frame)))
(define (make-vect x y)
(cons x y))
(define (xcor-vect v)
(car v))
(define (ycor-vect v)... |
430f40f5dc97c2d399dd93c6dbabee8ba5e6d7e726c9566d660358e7f169c5dc | Bannerets/flowest | Translator.ml | open! Base
module FlowLoc = Flow_parser.Loc
module Parser_flow = Flow_parser.Parser_flow
module Parse_error = Flow_parser.Parse_error
module File_key = Flow_parser.File_key
let show_flow_position (p: FlowLoc.position) =
Int.to_string p.line ^ ":" ^ Int.to_string p.column
let show_flow_loc (l: FlowLoc.t) =
show_f... | null | https://raw.githubusercontent.com/Bannerets/flowest/5e6cee541d0ec36156c220e8311ea6690be5b414/src/flowest_lib/Translator.ml | ocaml | Caml.print_endline @@ Ts.Ast.show_program Loc.pp Loc.pp ts_ast; | open! Base
module FlowLoc = Flow_parser.Loc
module Parser_flow = Flow_parser.Parser_flow
module Parse_error = Flow_parser.Parse_error
module File_key = Flow_parser.File_key
let show_flow_position (p: FlowLoc.position) =
Int.to_string p.line ^ ":" ^ Int.to_string p.column
let show_flow_loc (l: FlowLoc.t) =
show_f... |
f3475c22ce2cf1e84fae487ccfa71d918affee380d5bff54f55f3b608fcf2442 | tnelson/Forge | tokenizer.rkt | #lang racket/base
(require racket/string)
(require brag/support)
(require (rename-in br-parser-tools/lex-sre [- :-] [+ :+]) "lexer.rkt")
;; reference: -language-reference.pdf
(define (make-tokenizer port)
(port-count-lines! port) ; <- turn on line & column counting
(define (next-token)
(forge-lexer port))
... | null | https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/lang/alloy-syntax/tokenizer.rkt | racket | reference: -language-reference.pdf
<- turn on line & column counting
unreachable when passed proper string contents | #lang racket/base
(require racket/string)
(require brag/support)
(require (rename-in br-parser-tools/lex-sre [- :-] [+ :+]) "lexer.rkt")
(define (make-tokenizer port)
(define (next-token)
(forge-lexer port))
next-token)
(provide make-tokenizer)
(define str-lexer
(lexer
[(:- any-char "\\" "\n" "\"") le... |
f37a48af85d29ed5a5ead90dad9657fde556f87a964e8e69a619bf810467dee2 | elnewfie/lslforge | CompilerTests.hs | # OPTIONS_GHC -XScopedTypeVariables #
# OPTIONS_GHC -XQuasiQuotes #
module Lsl.CompilerTests where
import qualified Control.Monad.State as S
import Data.List
import Debug.Trace
import Language.Lsl.Internal.Compiler
import Language.Lsl.Syntax
import Language.Lsl.Parse
import Language.Lsl.Render
import Language.Lsl.Int... | null | https://raw.githubusercontent.com/elnewfie/lslforge/27eb84231c53fffba6bdb0db67bde81c1c12dbb9/lslforge/haskell/test/Lsl/CompilerTests.hs | haskell | return () | # OPTIONS_GHC -XScopedTypeVariables #
# OPTIONS_GHC -XQuasiQuotes #
module Lsl.CompilerTests where
import qualified Control.Monad.State as S
import Data.List
import Debug.Trace
import Language.Lsl.Internal.Compiler
import Language.Lsl.Syntax
import Language.Lsl.Parse
import Language.Lsl.Render
import Language.Lsl.Int... |
396817d76940a240319899206460e76d419f16f067a9781278ee5fcb0dc9ba12 | WeiDUorg/weidu | make_par.ml | let main () =
let i = Printf.sprintf "%s/trealparserin.ml" Sys.argv.(1) in
let o = Printf.sprintf "%s/trealparser.ml" Sys.argv.(1) in
let i = open_in i in
let o = open_out o in
let gotoTable_reg = Str.regexp " *gotoTable = \\[\\| *(\\* [0-9]* elements \\*)" in
let actionTable_reg = Str.regexp " *actionTab... | null | https://raw.githubusercontent.com/WeiDUorg/weidu/a4048b11e6904f39ea1f956a36018e5d9a6e8e5c/scripts/make_par.ml | ocaml | let main () =
let i = Printf.sprintf "%s/trealparserin.ml" Sys.argv.(1) in
let o = Printf.sprintf "%s/trealparser.ml" Sys.argv.(1) in
let i = open_in i in
let o = open_out o in
let gotoTable_reg = Str.regexp " *gotoTable = \\[\\| *(\\* [0-9]* elements \\*)" in
let actionTable_reg = Str.regexp " *actionTab... | |
b2256ae95722a1c81c2779c240d0b467efdcf567ce47ce1cd999c0c256c85291 | bmeurer/ocamljit2 | plugin2.ml | (*external ex: int -> int = "caml_ex"*)
let () =
Api.reg_mod "Plugin2";
let i = ex 3 in
List.iter (fun i -> Printf.printf "%i\n" i) Plugin.facts;
Printf.printf "XXX\n";
raise Exit
| null | https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/testsuite/tests/lib-dynlink-native/plugin2.ml | ocaml | external ex: int -> int = "caml_ex" |
let () =
Api.reg_mod "Plugin2";
let i = ex 3 in
List.iter (fun i -> Printf.printf "%i\n" i) Plugin.facts;
Printf.printf "XXX\n";
raise Exit
|
6ab65cfb980839ccae5b6dd6120ec6ad090ed1fd45e55a27b16f18192ec9f3be | sultanov-team/xtdb-tarantool | tarantool.clj | (ns xtdb.tarantool
(:require
[clojure.spec.alpha :as s]
[clojure.string :as str]
[juxt.clojars-mirrors.nippy.v3v1v1.taoensso.nippy :as nippy]
[xtdb.api :as xt]
[xtdb.db :as db]
[xtdb.io :as xio]
[xtdb.system :as system]
[xtdb.tx.event :as xte]
[xtdb.tx.subscribe :as tx-sub])
(:im... | null | https://raw.githubusercontent.com/sultanov-team/xtdb-tarantool/dfe77d82b44538c5d331eb93ab8cef4abe8a4093/src/main/clojure/xtdb/tarantool.clj | clojure |
Helper functions
Default mappers
Default builders
Tarantool API
Component
Component | (ns xtdb.tarantool
(:require
[clojure.spec.alpha :as s]
[clojure.string :as str]
[juxt.clojars-mirrors.nippy.v3v1v1.taoensso.nippy :as nippy]
[xtdb.api :as xt]
[xtdb.db :as db]
[xtdb.io :as xio]
[xtdb.system :as system]
[xtdb.tx.event :as xte]
[xtdb.tx.subscribe :as tx-sub])
(:im... |
239eb80f93105a97955e70f2ae35c744532c04fb96dbb2861e0f7f1d4625ed1c | anakryiko/erles | erles_utils.erl | -module(erles_utils).
-export([gen_uuid/0, uuid_to_string/1, uuid_to_string/2]).
-export([binary_str/1]).
-export([parse_ip/1]).
-export([shuffle/1]).
-export([resolved_event/2]).
-export([meta_to_metajson/1, metajson_to_meta/1]).
-include("erles_clientapi_pb.hrl").
-include("erles.hrl").
-include("erles_internal.hrl"... | null | https://raw.githubusercontent.com/anakryiko/erles/3ffa0c1291e1ef7afb5ba351c264414a55efc447/src/erles_utils.erl | erlang | UUID routines were taken from
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the fol... | -module(erles_utils).
-export([gen_uuid/0, uuid_to_string/1, uuid_to_string/2]).
-export([binary_str/1]).
-export([parse_ip/1]).
-export([shuffle/1]).
-export([resolved_event/2]).
-export([meta_to_metajson/1, metajson_to_meta/1]).
-include("erles_clientapi_pb.hrl").
-include("erles.hrl").
-include("erles_internal.hrl"... |
fa4a97846d74527d518da527ad72b7b54f16561d660ddcd13a2cf309e5606c47 | clojure/core.typed | non_literal_val_fn.clj | (ns clojure.core.typed.test.non-literal-val-fn
(:require [clojure.core.typed :as t]))
(t/ann kw-invoke [t/Kw -> (t/U nil t/Num)])
(defn kw-invoke [k]
(k {:a 1 :b 2}))
(t/ann sym-invoke [t/Sym -> (t/U nil t/Num)])
(defn sym-invoke [k]
(k {:a 1 :b 2}))
(t/ann either-invoke [(t/U t/Kw t/Sym) -> (t/U nil t/Num)])
... | null | https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/test/clojure/core/typed/test/non_literal_val_fn.clj | clojure | (ns clojure.core.typed.test.non-literal-val-fn
(:require [clojure.core.typed :as t]))
(t/ann kw-invoke [t/Kw -> (t/U nil t/Num)])
(defn kw-invoke [k]
(k {:a 1 :b 2}))
(t/ann sym-invoke [t/Sym -> (t/U nil t/Num)])
(defn sym-invoke [k]
(k {:a 1 :b 2}))
(t/ann either-invoke [(t/U t/Kw t/Sym) -> (t/U nil t/Num)])
... | |
4f3a652858083d5b7c5dd5fa46732aa8ab7083c084e84436458fd05f5e0c9434 | cram-code/cram_core | macros.lisp | Copyright ( c ) 2011 , < >
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions are met:
;;;
;;; * Redistributions of source code must retain the above copyright
;;; notice, this list o... | null | https://raw.githubusercontent.com/cram-code/cram_core/984046abe2ec9e25b63e52007ed3b857c3d9a13c/cram_utilities/src/macros.lisp | lisp | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Red... | Copyright ( c ) 2011 , < >
* Neither the name of the Intelligent Autonomous Systems Group/
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS "
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ... |
f85cdd894a7fe6db403cbbe50c785741b6c65640da3a99186a0e2055583243b3 | rabbitmq/rabbitmq-management | rabbit_mgmt_wm_node.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(rabbit_mgmt_wm_node).
-export([init/2, t... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-management/543906f01ccd0344aff648f21bb6b5156b2a2ca2/src/rabbit_mgmt_wm_node.erl | erlang |
--------------------------------------------------------------------
-------------------------------------------------------------------- | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_mgmt_wm_node).
-export([init/2, to_json... |
41b451db8e247477edf70a6f545a1054ee3088f0493e47888464bce5668a4341 | helpshift/ekaf | ekaf_protocol_produce.erl | -module(ekaf_protocol_produce).
-include("ekaf_definitions.hrl").
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-include_lib("stdlib/include/qlc.hrl").
-endif.
-export([decode/1,encode/3,encode_sync/3, encode_async/3]).
-export([encode_produce_request/3]).
encode(CorrelationId, ClientId, Packet)->
enco... | null | https://raw.githubusercontent.com/helpshift/ekaf/8967b8a0cf650c80656d48fcdcd1e1b3c8d8d6a7/src/ekaf_protocol_produce.erl | erlang | A produce_packet can have multiple topics
for a particular topic we can have multiple
Each of these message sets are basically offset,messages length, messages
RequiredAcks => int16
Timeout => int32
Partition => int32
MessageSetSize => int32
---------------------------------
Decode produce response
-... | -module(ekaf_protocol_produce).
-include("ekaf_definitions.hrl").
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-include_lib("stdlib/include/qlc.hrl").
-endif.
-export([decode/1,encode/3,encode_sync/3, encode_async/3]).
-export([encode_produce_request/3]).
encode(CorrelationId, ClientId, Packet)->
enco... |
534257dae472f07110270d137693770043a724174a72941396caf2724329b7f2 | OpenC2-org/ocas | act_remediate.erl | @author
( C ) 2017 , sFractal Consulting LLC
-module(act_remediate).
%%%-------------------------------------------------------------------
%%%
%%% All rights reserved.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%%
%%% Redistribution and use in source and binary forms, with or witho... | null | https://raw.githubusercontent.com/OpenC2-org/ocas/c15132d9f37b1e0e29884456a520557c25b22f38/apps/ocas/src/action_servers/act_remediate.erl | erlang | -------------------------------------------------------------------
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this... | @author
( C ) 2017 , sFractal Consulting LLC
-module(act_remediate).
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL ,
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES... |
de4f17f5253573a04ccccc2a8908b37d4003af2366b4691edd473b49e9ee4ff6 | locusmath/locus | object.clj | (ns locus.set.mapping.function.inclusion.object
(:require [locus.set.logic.core.set :refer :all]
[locus.set.logic.limit.product :refer :all]
[locus.set.logic.structure.protocols :refer :all]
[locus.set.mapping.general.core.object :refer :all]
[locus.sub.core.object :ref... | null | https://raw.githubusercontent.com/locusmath/locus/6c3ccc006402ba3287f0beabf51703487ff5f1b4/src/clojure/locus/set/mapping/function/inclusion/object.clj | clojure | Inclusion functions
Let A be a subset of B, then A and B together induce an inclusion function f: A to B whose
surjective subobject is an identity function. It follows that f(a) = a for all a in A.
Inclusion functions are a useful means of dealing with subobjects in the topos Sets, which
is the most basic topos as... | (ns locus.set.mapping.function.inclusion.object
(:require [locus.set.logic.core.set :refer :all]
[locus.set.logic.limit.product :refer :all]
[locus.set.logic.structure.protocols :refer :all]
[locus.set.mapping.general.core.object :refer :all]
[locus.sub.core.object :ref... |
52b0b076c5c87fc5d0827692f8cb4b93855fa3f8b373b1fcad2035b2618f39eb | ds-wizard/engine-backend | List_GET.hs | module Wizard.Specs.API.Questionnaire.Event.List_GET (
list_GET,
) where
import Data.Aeson (encode)
import qualified Data.ByteString.Char8 as BS
import qualified Data.UUID as U
import Network.HTTP.Types
import Network.Wai (Application)
import Test.Hspec
import Test.Hspec.Wai hiding (shouldRespondWith)
import Test.Hs... | null | https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/test/Wizard/Specs/API/Questionnaire/Event/List_GET.hs | haskell | ------------------------------------------------------------------------
GET /questionnaires/{qtnUuid}/events
------------------------------------------------------------------------
----------------------------------------------------
----------------------------------------------------
-------------------------... | module Wizard.Specs.API.Questionnaire.Event.List_GET (
list_GET,
) where
import Data.Aeson (encode)
import qualified Data.ByteString.Char8 as BS
import qualified Data.UUID as U
import Network.HTTP.Types
import Network.Wai (Application)
import Test.Hspec
import Test.Hspec.Wai hiding (shouldRespondWith)
import Test.Hs... |
c20bddbb80098f20a1fa9a988c2c642fe54e117ce7655e8ff07f250effd76683 | brandonbloom/cleff | project.clj | (defproject cleff "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[core.async "0.1.0-SNAPSHOT"]])
| null | https://raw.githubusercontent.com/brandonbloom/cleff/11e35a256a2b7358485a435a0c54b007a7ccc711/project.clj | clojure | (defproject cleff "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[core.async "0.1.0-SNAPSHOT"]])
| |
b3b48b0ef84bfafbbad7754cee63247db9cfa252b274d62f34498158d7687206 | abyala/advent-2021-clojure | point.clj | (ns advent-2021-clojure.point
(:require [clojure.string :as str]))
(def origin [0 0])
(defn parse-to-char-coords
"Given an input string, returns a lazy sequence of [[x y] c] tuples of [x y] coords to each character c."
[input]
(->> (str/split-lines input)
(map-indexed (fn [y line]
... | null | https://raw.githubusercontent.com/abyala/advent-2021-clojure/ca5fdbdc8ea9c68455cd3f76579039e7211bac8e/src/advent_2021_clojure/point.clj | clojure | (ns advent-2021-clojure.point
(:require [clojure.string :as str]))
(def origin [0 0])
(defn parse-to-char-coords
"Given an input string, returns a lazy sequence of [[x y] c] tuples of [x y] coords to each character c."
[input]
(->> (str/split-lines input)
(map-indexed (fn [y line]
... | |
1bab800f1f7fabde32e8c5b850892188f47aa688cb4e70213a139b1d9e78254f | facebook/pyre-check | overlaidEnvironment.mli |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/9abc0ffc5ae10538a512c25e6930a216b23db33a/source/analysis/overlaidEnvironment.mli | ocaml | * A convenience wrapper around {!get_or_create_overlay} followed by
{!ErrorsEnvironment.Overlay.update_overlaid_code}. |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
7355797220e80b06a9384b9ebcd8467c453fccd06bb63714d1bf4355283d92ca | haskell-servant/servant | TypeErrors.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
# LANGUAGE TypeOperators #
# LANGUAGE UndecidableInstances #
-- | This module defines the error messages used in type-level errors.
-- Type-level errors can signal non-existing instances, for insta... | null | https://raw.githubusercontent.com/haskell-servant/servant/3ed24fdd900c30bc625f82e7faa8e548f473c1bc/servant/src/Servant/API/TypeErrors.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE PolyKinds #
# LANGUAGE TypeFamilies #
| This module defines the error messages used in type-level errors.
Type-level errors can signal non-existing instances, for instance when
a combinator is not applied to the correct number of arguments.
| No instan... | # LANGUAGE TypeOperators #
# LANGUAGE UndecidableInstances #
module Servant.API.TypeErrors (
PartialApplication,
NoInstanceFor,
NoInstanceForSub,
) where
import Data.Kind
import GHC.TypeLits
@expr@ is not recognised .
type NoInstanceForSub (tycls :: k) (expr :: k') =
Text "There is no instance for... |
c33ca988e8565698cfd174007d1ac1ac63aa0da6f0a257afb65db464553e92c9 | Nazar65/guix-phps-channel | php82.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2016 - 2020 < >
Copyright © 2016 < >
Copyright © 2018 , 2020 , 2021 < >
Copyright © 2018 < >
Copyright © 2019 < >
Copyright © 2020 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistrib... | null | https://raw.githubusercontent.com/Nazar65/guix-phps-channel/396649461392e4013ca51965e2432f71cf72c135/packages/php82.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2016 - 2020 < >
Copyright © 2016 < >
Copyright © 2018 , 2020 , 2021 < >
Copyright © 2018 < >
Copyright © 2019 < >
Copyright © 2020 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
alo... |
1bfd2165ee2330f3fe8d1bcee524d4089f9b7a62f4178fd80852d0d6e92354ff | nikita-volkov/rebase | Clown.hs | module Rebase.Data.Bifunctor.Clown
(
module Data.Bifunctor.Clown
)
where
import Data.Bifunctor.Clown
| null | https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/Bifunctor/Clown.hs | haskell | module Rebase.Data.Bifunctor.Clown
(
module Data.Bifunctor.Clown
)
where
import Data.Bifunctor.Clown
| |
8373de0f46b32364ce1ad2f53720979db7d4ff8d659ee79679fc419a82514cf9 | fpco/ide-backend | Client.hs | # LANGUAGE TemplateHaskell , CPP , ScopedTypeVariables , OverloadedStrings #
module IdeSession.RPC.Client (
RpcServer
, RpcConversation(..)
, forkRpcServer
, connectToRpcServer
, rpc
, rpcConversation
, shutdown
, forceShutdown
, ExternalException(..)
, illscopedConversationException
, serverKil... | null | https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/IdeSession/RPC/Client.hs | haskell | ------------------------------------------------------------------------------
Client-side API --
------------------------------------------------------------------------------
| Handle to write requests to
| Temporary file the server will write uncaught exc... | # LANGUAGE TemplateHaskell , CPP , ScopedTypeVariables , OverloadedStrings #
module IdeSession.RPC.Client (
RpcServer
, RpcConversation(..)
, forkRpcServer
, connectToRpcServer
, rpc
, rpcConversation
, shutdown
, forceShutdown
, ExternalException(..)
, illscopedConversationException
, serverKil... |
a065347995c8feb0837e2347dc29850f6ab1737a8013c43411ace61f68a2ac8a | fugue/fregot | Package.hs | |
Copyright : ( c ) 2020 Fugue , Inc.
License : Apache License , version 2.0
Maintainer :
Stability : experimental
Portability : POSIX
Copyright : (c) 2020 Fugue, Inc.
License : Apache License, version 2.0
Maintainer :
Stability : experimental
Portability : POSIX
-}
# LANGUAGE Lambda... | null | https://raw.githubusercontent.com/fugue/fregot/c3d87f37c43558761d5f6ac758d2f1a4117adb3e/lib/Fregot/Prepare/Package.hs | haskell | # LANGUAGE OverloadedStrings # | |
Copyright : ( c ) 2020 Fugue , Inc.
License : Apache License , version 2.0
Maintainer :
Stability : experimental
Portability : POSIX
Copyright : (c) 2020 Fugue, Inc.
License : Apache License, version 2.0
Maintainer :
Stability : experimental
Portability : POSIX
-}
# LANGUAGE Lambda... |
fe712678b37aae0f757ba825e1a6d9c85474ee789b356964e82d6f95b53ec77c | haskell/ThreadScope | Compat.hs | # LANGUAGE CPP #
module Graphics.UI.Gtk.ModelView.TreeView.Compat
( treeViewSetModel
) where
import Graphics.UI.Gtk hiding (treeViewSetModel)
import qualified Graphics.UI.Gtk.ModelView.TreeView as Gtk
#if !MIN_VERSION_gtk(0, 14, 9)
import qualified System.Glib.FFI as Glib
import qualified Graphics.UI.GtkInterna... | null | https://raw.githubusercontent.com/haskell/ThreadScope/7269ccbf7810f268f8cbc3f0e60d49cc6168b882/Graphics/UI/Gtk/ModelView/TreeView/Compat.hs | haskell | # LANGUAGE CPP #
module Graphics.UI.Gtk.ModelView.TreeView.Compat
( treeViewSetModel
) where
import Graphics.UI.Gtk hiding (treeViewSetModel)
import qualified Graphics.UI.Gtk.ModelView.TreeView as Gtk
#if !MIN_VERSION_gtk(0, 14, 9)
import qualified System.Glib.FFI as Glib
import qualified Graphics.UI.GtkInterna... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.