_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 |
|---|---|---|---|---|---|---|---|---|
6d625076b53deaa38e440c2cc02a1694ac95b3469eb3363baca1804d77f69275 | Ptival/language-ocaml | Mb.hs | # LANGUAGE RecordWildCards #
module Language.OCaml.Definitions.Parsing.ASTHelper.Mb
( MkOpts (..),
mk,
)
where
import Data.Default (Default (..))
import Language.OCaml.Definitions.Parsing.ASTHelper.Common
( defaultLoc,
)
import Language.OCaml.Definitions.Parsing.ASTTypes (Loc)
import Language.OCaml.Defini... | null | https://raw.githubusercontent.com/Ptival/language-ocaml/7b07fd3cc466bb2ad2cac4bfe3099505cb63a4f4/lib/Language/OCaml/Definitions/Parsing/ASTHelper/Mb.hs | haskell | # LANGUAGE RecordWildCards #
module Language.OCaml.Definitions.Parsing.ASTHelper.Mb
( MkOpts (..),
mk,
)
where
import Data.Default (Default (..))
import Language.OCaml.Definitions.Parsing.ASTHelper.Common
( defaultLoc,
)
import Language.OCaml.Definitions.Parsing.ASTTypes (Loc)
import Language.OCaml.Defini... | |
8ad01731fd7f87116bae74b7a1ef9a6a57feb81f621eb8ffccb9677e895c45a3 | picty/parsifal | png4.ml | open Parsifal
open BasePTypes
open PTypes
enum color_type (8, UnknownVal UnknownColorType) =
| 0 -> Grayscale
| 0x02 -> Truecolor
| 0x03 -> Indexedcolor
| 0x04 -> GrayscaleWithAlphaChannel
| 0x06 -> TruecolorWithAlphaChannel
enum compression_method (8, UnknownVal UnknownCompressionMethod) =
| 0 -> Deflate
enum filt... | null | https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/tutorial/png-steps/png4.ml | ocaml | open Parsifal
open BasePTypes
open PTypes
enum color_type (8, UnknownVal UnknownColorType) =
| 0 -> Grayscale
| 0x02 -> Truecolor
| 0x03 -> Indexedcolor
| 0x04 -> GrayscaleWithAlphaChannel
| 0x06 -> TruecolorWithAlphaChannel
enum compression_method (8, UnknownVal UnknownCompressionMethod) =
| 0 -> Deflate
enum filt... | |
dbecf06e6c041e45158b7ffcc9bdc17d06eab6a710a9dec83fc5b02b5fe21a37 | janegca/htdp2e | Exercise-231-sort-a.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-reader.ss" "lang")((modname Exercise-231-sorts) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp")))... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/03-Abstractions/Exercise-231-sort-a.rkt | racket | about the language level of this file in a form that our tools can easily process.
The sort> function consumes a list of numbers and produces a sorted version:
Lon -> Lon
constructs a list from the items in l in descending order
Lon -> Lon
Number Lon -> Lon
- IN -
Create a test suite for sort>.
Design the ... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-reader.ss" "lang")((modname Exercise-231-sorts) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "image.rkt" "te... |
bf38c2aff91235b3dc4a3920ee93b1bab7d9873e631edf227e2e018b0a5c18f6 | returntocorp/semgrep | Match.mli | (*
Match a parsed pattern against a parsed document.
*)
val debug : bool ref
(* See function 'make_search_param' *)
type search_param = {
no_skip_search : bool;
case_sensitive : bool;
ellipsis_max_span : int;
}
(*
Unique identifier for a pattern among all the patterns specified
on the command line.
*)
t... | null | https://raw.githubusercontent.com/returntocorp/semgrep/6e182e59a3d7cb8d3c837032dd2fc51091098c10/libs/spacegrep/src/lib/Match.mli | ocaml |
Match a parsed pattern against a parsed document.
See function 'make_search_param'
Unique identifier for a pattern among all the patterns specified
on the command line.
The name of a subpattern and the locations allowing its extraction
from the source document.
source text, substring of the original... |
val debug : bool ref
type search_param = {
no_skip_search : bool;
case_sensitive : bool;
ellipsis_max_span : int;
}
type pattern_id = int
A pair of locations ( loc1 , loc2 )
= ( ( pos1_start , pos1_end ) , ( pos2_start , pos2_end ) )
which is normally a pair of tokens .
A region can be ... |
fbddae7f96f5ba54535800dd9e6bd1756bdf3bac2f48508f4d81d84754cf582d | MinaProtocol/mina | domains.mli | (* Domains *)
module Stable : sig
module V2 : sig
type t = { h : Domain.Stable.V1.t }
[@@deriving fields, sexp, compare, yojson]
end
module Latest = V2
end
type t = Stable.Latest.t = { h : Domain.Stable.V1.t }
[@@deriving fields, sexp, compare, yojson]
| null | https://raw.githubusercontent.com/MinaProtocol/mina/7a87854d8ca9150ab690af13e488d779efc4cd0d/src/lib/pickles_base/domains.mli | ocaml | Domains |
module Stable : sig
module V2 : sig
type t = { h : Domain.Stable.V1.t }
[@@deriving fields, sexp, compare, yojson]
end
module Latest = V2
end
type t = Stable.Latest.t = { h : Domain.Stable.V1.t }
[@@deriving fields, sexp, compare, yojson]
|
3508e8ef18d677e0b00b88928d05e95d69e7434f25849c5f6e4427d59b280080 | Ramarren/cells | output-setf.lisp | ;; -*- mode: Lisp; Syntax: Common-Lisp; Package: cells; -*-
;;;
;;;
Copyright ( c ) 1995,2003 by .
;;;
;;; Permission is hereby granted, free of charge, to any person obtaining a copy
;;; of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , includi... | null | https://raw.githubusercontent.com/Ramarren/cells/cced2e55c363572914358c0a693ebac2caed4e22/cells-test/output-setf.lisp | lisp | -*- mode: Lisp; Syntax: Common-Lisp; Package: cells; -*-
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
to do so, subject to th... | Copyright ( c ) 1995,2003 by .
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is furnished
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIN... |
33d4badd92bfb9492f1d6c885e3f7ce4835f066aa26ea222181cfd134b488a59 | samoht/dog | main.ml |
* Copyright ( c ) 2015 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... | null | https://raw.githubusercontent.com/samoht/dog/6472e52615d704073e51290b6eeadea61f2535be/src/main.ml | ocaml | Help sections common to all commands
Converters
WATCH
LISTEN
HELP |
* Copyright ( c ) 2015 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... |
dd1a8aaabde394e33e816395e6be7108f79f7f627398e6eece5516d2be1ec334 | dmitryvk/sbcl-win32-threads | late-macros.lisp | macros which use GET - SETF - EXPANSION in their macroexpander code ,
and hence need special treatment . Currently ( 19990806 ) this
special treatment involves bare calls to : DEFMACRO or
;;;; DEFMACRO-MUNDANELY and so this code can't appear in the build
;;;; sequence until after xc DEFMACRO machinery has been s... | null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/late-macros.lisp | lisp | DEFMACRO-MUNDANELY and so this code can't appear in the build
sequence until after xc DEFMACRO machinery has been set up, and
file (which has to appear earlier).
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files f... | macros which use GET - SETF - EXPANSION in their macroexpander code ,
and hence need special treatment . Currently ( 19990806 ) this
special treatment involves bare calls to : DEFMACRO or
so this stuff is separated out of the main compiler / macros.lisp
This software is part of the SBCL system . See the REA... |
20922bc54cbe40c817014060a5d6aca0fdf6d601ec99580950e6c8d7d1d863c0 | Alotor/ghoul-reader | items.cljs | (ns ghoul.app.components.panel.items
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [om.core :as om]
[om.dom :as dom]
[cljs.core.async :as async :refer [timeout]]
[cuerdas.core :as str]
[ghoul.common.utils :refer [project mapply active-classe... | null | https://raw.githubusercontent.com/Alotor/ghoul-reader/ea0f2095e143bfd8a526905761f2cfd87324ad71/src/app/ghoul/app/components/panel/items.cljs | clojure | Load more when we're close to the end of the scroll
Mark the item as read | (ns ghoul.app.components.panel.items
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [om.core :as om]
[om.dom :as dom]
[cljs.core.async :as async :refer [timeout]]
[cuerdas.core :as str]
[ghoul.common.utils :refer [project mapply active-classe... |
c6a4d9cc9745e4f6923d391d6e11b3c95c2717a1e250d430f1b2efba9105e43b | craigfe/sink | int.ml | module I = Stdlib.Int
type t = int [@@deriving branded]
let t = Repr.int
let to_dyn = Dyn.Encode.int
let to_string = I.to_string
let maximum = I.max_int
let minimum = I.min_int
let eq = Eq.poly T
let ord = Ord.poly T
module N : Num.S with type t := t = struct
let negate = I.neg
let abs = I.abs
let add = I.add
... | null | https://raw.githubusercontent.com/craigfe/sink/c5431edfa1b06f1a09845a481c4afcb3e92f0667/src/sink/int.ml | ocaml | module I = Stdlib.Int
type t = int [@@deriving branded]
let t = Repr.int
let to_dyn = Dyn.Encode.int
let to_string = I.to_string
let maximum = I.max_int
let minimum = I.min_int
let eq = Eq.poly T
let ord = Ord.poly T
module N : Num.S with type t := t = struct
let negate = I.neg
let abs = I.abs
let add = I.add
... | |
e487bd3716d0fb2ddc56eb7f3f66800a0f2b751cf9f63f079069faeaf9ce7ccd | wireless-net/erlang-nommu | xmerl_xsd_Sun2002-01-16_SUITE.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2006 - 2010 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pub... | null | https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/xmerl/test/xmerl_xsd_Sun2002-01-16_SUITE.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 2006 - 2010 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
Do NOT edit this file . It is generated ... |
71aefe1cae368240bdd703498cd58cb2330ac71cfa30c4ac3bfb5478c262eedd | thheller/shadow-grove | db.cljc | (ns shadow.grove.db
(:refer-clojure :exclude (ident? remove))
(:require [shadow.grove.db.ident :as ident]))
(defprotocol ITransaction
(tx-log-new [this key])
(tx-log-modified [this key])
(tx-log-removed [this key])
(tx-check-completed! [this]))
(defprotocol ITransactable
(tx-begin [this])
(tx-get [thi... | null | https://raw.githubusercontent.com/thheller/shadow-grove/caa3891f271fb3ca0210511be4cd451b2e8eda2e/src/main/shadow/grove/db.cljc | clojure | FIXME: actually make use of :one/:many, right now relying and user supplying proper value
only have entities for now, will need custom config later
FIXME: implement rest of seq functions
map? predicate checks for this protocol
FIXME: should it really check each write if anything changed?
new
new non-ident key
n... | (ns shadow.grove.db
(:refer-clojure :exclude (ident? remove))
(:require [shadow.grove.db.ident :as ident]))
(defprotocol ITransaction
(tx-log-new [this key])
(tx-log-modified [this key])
(tx-log-removed [this key])
(tx-check-completed! [this]))
(defprotocol ITransactable
(tx-begin [this])
(tx-get [thi... |
9c6876fde2620f51964631951664464aea2f3a424cadb56c7fc085eb6482f417 | keechma/example-todomvc | edb.clj | (ns keechma-todomvc.edb
"# Entity Database Wrappers
Wraps EntityDB API functions to adapt them for the case where the
entity-db is the value at a key in an enclosing map")
(defmacro def-accessors
"Defines convenience functions that wrap `entity-db` functions to
allow the `app-db` to be passed in and updated... | null | https://raw.githubusercontent.com/keechma/example-todomvc/bbc8bcb1198b2df0edfc6c3e15b11fd4368ee206/src/keechma_todomvc/edb.clj | clojure | (ns keechma-todomvc.edb
"# Entity Database Wrappers
Wraps EntityDB API functions to adapt them for the case where the
entity-db is the value at a key in an enclosing map")
(defmacro def-accessors
"Defines convenience functions that wrap `entity-db` functions to
allow the `app-db` to be passed in and updated... | |
59fe403a6bebfffc44096c857b884c5e4779cbfb6dcba166fc9e758daa7a8324 | cedlemo/OCaml-GI-ctypes-bindings-generator | Places_open_flags.ml | open Ctypes
open Foreign
type t = Normal | New_tab | New_window
type t_list = t list
let of_value v =
if v = Unsigned.UInt32.of_int 1 then Normal
else if v = Unsigned.UInt32.of_int 2 then New_tab
else if v = Unsigned.UInt32.of_int 4 then New_window
else raise (Invalid_argument "Unexpected Places_open_flags va... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Places_open_flags.ml | ocaml | open Ctypes
open Foreign
type t = Normal | New_tab | New_window
type t_list = t list
let of_value v =
if v = Unsigned.UInt32.of_int 1 then Normal
else if v = Unsigned.UInt32.of_int 2 then New_tab
else if v = Unsigned.UInt32.of_int 4 then New_window
else raise (Invalid_argument "Unexpected Places_open_flags va... | |
5806227fd5952f3ff69d42dc3dcd1469e4a5afefc283bc2461b60c267a3f1551 | racket/racket7 | module.rkt | #lang racket/base
(require racket/promise
"../common/struct-star.rkt"
"../common/performance.rkt"
"../syntax/syntax.rkt"
"../syntax/property.rkt"
"../syntax/scope.rkt"
"../syntax/taint.rkt"
"../syntax/match.rkt"
"../syntax/track.rkt"
"../c... | null | https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/expand/module.rkt | racket | the
`module-begin-k` function continues that module's
expansion
----------------------------------------
For cross-linklet inlining among submodules compiled together:
All module bodies start at phase 0
Initial require name provides the module's base scopes
Extract combined scopes
A frame-id is used to determi... | #lang racket/base
(require racket/promise
"../common/struct-star.rkt"
"../common/performance.rkt"
"../syntax/syntax.rkt"
"../syntax/property.rkt"
"../syntax/scope.rkt"
"../syntax/taint.rkt"
"../syntax/match.rkt"
"../syntax/track.rkt"
"../c... |
fa2acdd3fcb01e0d5ac45aaf052806c0b9bde6aae68be121202484969815ba8a | biocaml/biocaml | bin_pred.ml | type confusion_matrix = { tp : int; tn : int; fp : int; fn : int }
[@@deriving sexp]
type curve = (float * confusion_matrix) array [@@deriving sexp]
let zero = { tp = 0; tn = 0; fn = 0; fp = 0 }
let update accu ~threshold ~score ~label =
match (Float.(threshold < score), label) with
| true, true -> { accu with t... | null | https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/lib/unix/bin_pred.ml | ocaml | Assumes [points] is non empty (which is the case if it has been
produced by [performance_curve]) and that points come with
decreasing x-coordinates. | type confusion_matrix = { tp : int; tn : int; fp : int; fn : int }
[@@deriving sexp]
type curve = (float * confusion_matrix) array [@@deriving sexp]
let zero = { tp = 0; tn = 0; fn = 0; fp = 0 }
let update accu ~threshold ~score ~label =
match (Float.(threshold < score), label) with
| true, true -> { accu with t... |
fb81706fb83778bd143f7083ed3ea6e3150a6f3a402b8e3f29044121be6c4c5e | circleci/analytics-clj | core_test.clj | (ns circleci.analytics-clj.core-test
(:require [bond.james :as bond]
[circleci.analytics-clj.core :as a]
[circleci.analytics-clj.external :as e]
[clojure.test :refer :all])
(:import (com.segment.analytics Log)
(java.util UUID)))
(defonce analytics (a/initialize "fooba... | null | https://raw.githubusercontent.com/circleci/analytics-clj/0172a88af4324e754ea323fcc10c4ef4f9bd3287/test/circleci/analytics_clj/core_test.clj | clojure | (ns circleci.analytics-clj.core-test
(:require [bond.james :as bond]
[circleci.analytics-clj.core :as a]
[circleci.analytics-clj.external :as e]
[clojure.test :refer :all])
(:import (com.segment.analytics Log)
(java.util UUID)))
(defonce analytics (a/initialize "fooba... | |
edd3d49094ad36c60aeee6dcea337e91a3c335ea9b0eade3fb2e4dabd5483043 | jellelicht/guix | jemalloc.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2015 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the Lice... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/jemalloc.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2015 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (gnu packages jemalloc)
#:use-module ((guix licenses) #:select (bsd-2))
#:use-module (guix pack... |
c310d85eb4c28cb96ddbf2077cf9c751d56f83c8b5f6e3c415665c039e841789 | AmpersandTarski/Ampersand | Rules.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
module Ampersand.Output.ToJSON.Rules (Rulez) where
import Ampersand.ADL1
import Ampersand.FSpec
import Ampersand.Output.ToJSON.JSONutils
import qualified RIO.NonEmpty as NE
import qualified RIO.Set as Set
data Rulez = Rulez
... | null | https://raw.githubusercontent.com/AmpersandTarski/Ampersand/cb2306a09ce79d5609ccf8d3e28c0a1eb45feafe/src/Ampersand/Output/ToJSON/Rules.hs | haskell | show $ e | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
module Ampersand.Output.ToJSON.Rules (Rulez) where
import Ampersand.ADL1
import Ampersand.FSpec
import Ampersand.Output.ToJSON.JSONutils
import qualified RIO.NonEmpty as NE
import qualified RIO.Set as Set
data Rulez = Rulez
... |
d4596fdf1161f81dd8b14aa5a12fb96f8dca1ddef918d62c307b9e9abfda80c2 | pavlobaron/riak_mongo | riak_mongo_worker.erl | %%
%% This file is part of riak_mongo
%%
Copyright ( c ) 2012 by ( pb at pbit dot org )
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applic... | null | https://raw.githubusercontent.com/pavlobaron/riak_mongo/a548969da213e4e23d667fb17d9c42c2d5468353/src/riak_mongo_worker.erl | erlang |
This file is part of riak_mongo
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 s... | Copyright ( c ) 2012 by ( pb at pbit dot org )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < pb at pbit dot org >
2012 Pavlo Baron
-module(riak_mongo_worker).
-export([start_link/2, handle_info/2, in... |
92b0131689c12b63ce5b1cc5d786a75cdc25c37817d65618cba86ffd30889e2a | ygmpkk/house | Types.hs | module Graphics.HGL.Win32.Types
( Angle
, Dimension, toDimension, fromDimension
, Point, toPoint, fromPoint
, Size
, RGB(RGB), fromRGB, toRGB
, Bitmap(..)
, Draw(MkDraw)
, Graphic
, unDraw, mkDraw, bracket_, bracket, ioToDraw
) where
import qualified System.Win32 as Win32
import qualifi... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/HGL/Graphics/HGL/Win32/Types.hs | haskell | Hugs does not allow operators to have different fixities in
In consequence, we don't declare any fixities in any non-standard
library because it would prevent the programmer from using the same
operator name at a different fixity.
--------------------------------------------------------------
Units
-------------... | module Graphics.HGL.Win32.Types
( Angle
, Dimension, toDimension, fromDimension
, Point, toPoint, fromPoint
, Size
, RGB(RGB), fromRGB, toRGB
, Bitmap(..)
, Draw(MkDraw)
, Graphic
, unDraw, mkDraw, bracket_, bracket, ioToDraw
) where
import qualified System.Win32 as Win32
import qualifi... |
6f5c29878792edbf3105c63938a8df87137ea8380bce21932b18dd72833c10ec | hlprmnky/ion-appsync-example | core.clj | (ns com.hlprmnky.ion-appsync.core
(:require
[clojure.data.json :as json]
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.pprint :as pp]
[datomic.client.api :as d]
[datomic.ion.starter :as ion]
[datomic.java.io.bbuf :as bbuf]))
;; We borrow the core items-by-type ion and get-client
from... | null | https://raw.githubusercontent.com/hlprmnky/ion-appsync-example/76a3dcfcf2d09c066a8d4dac7f1e930f79fb1237/src/com/hlprmnky/ion_appsync/core.clj | clojure | We borrow the core items-by-type ion and get-client
THESE NEED TO HAVE
CORRECT VALUES
FOR YOUR SPECIFIC
DATOMIC CLOUD INSTANCE
NOTE that conn can - and should be - parameterized in production builds.
See the ion-starter repo and get-connection for a more production-ready approach with Datomic schema validation, ... | (ns com.hlprmnky.ion-appsync.core
(:require
[clojure.data.json :as json]
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.pprint :as pp]
[datomic.client.api :as d]
[datomic.ion.starter :as ion]
[datomic.java.io.bbuf :as bbuf]))
from the Ion Starter repo : -starter/
(def get-client
"T... |
6c25fe4a60c50c638d442f034e69607f028a74c1fadeb78478f95b38e1ae5b6a | juspay/atlas | Descriptor.hs | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | null | https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-bap/src/Core/Spec/OnConfirm/Descriptor.hs | haskell | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | |
1479065779ac5eed8d3b066dde76c85247f70d6099fb7c61e182f1aeafdee185 | ftovagliari/ocamleditor | button_menu.mli |
OCamlEditor
Copyright ( C ) 2010 - 2012
This file is part of OCamlEditor .
OCamlEditor 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 y... | null | https://raw.githubusercontent.com/ftovagliari/ocamleditor/79669e14163420170e3e2ebb8da54ebe4e5a3dce/src/gmisclib/button_menu.mli | ocaml | * A widget containing a button and a small additional button with an arrow.
When clicked, the arrow button pops up a dropdown menu.
* Emitted when the main button is clicked.
* Emitted before the menu is shown. |
OCamlEditor
Copyright ( C ) 2010 - 2012
This file is part of OCamlEditor .
OCamlEditor 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 y... |
290641f7b5d9f84a7ee2101e6552c65996ea92a19e499403a27e4a0df17500bc | xh4/web-toolkit | clozure.lisp | ;;;; See LICENSE for licensing information.
Functions for CCL 1.11 ( IPv6 ) only , see openmcl.lisp for rest of functions .
(in-package :usocket)
#+ipv6
(defun socket-connect (host port &key (protocol :stream) element-type
timeout deadline nodelay
... | null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/usocket-0.8.3/backend/clozure.lisp | lisp | See LICENSE for licensing information. |
Functions for CCL 1.11 ( IPv6 ) only , see openmcl.lisp for rest of functions .
(in-package :usocket)
#+ipv6
(defun socket-connect (host port &key (protocol :stream) element-type
timeout deadline nodelay
local-host local-port)
(when (eq nodela... |
88557906f19d8554dff23526475b0077af1eace75c5cc8c99895d3b40a0e7ce6 | kupl/FixML | sub2.ml |
type nat =
ZERO
| SUCC of nat
let rec natadd_sub (a, n, k) = if n == k then a else natadd_sub (SUCC a, SUCC n, k);;
let natadd (a, b) = natadd_sub (a, ZERO, b);;
let rec natmul_sub (a, n, k) = if n == k then a else natmul_sub ( natadd(a, a), SUCC n, k );;
let natmul (a, b) = natmul_sub (a, SUCC(ZERO... | null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/nat/nat/submissions/sub2.ml | ocaml |
type nat =
ZERO
| SUCC of nat
let rec natadd_sub (a, n, k) = if n == k then a else natadd_sub (SUCC a, SUCC n, k);;
let natadd (a, b) = natadd_sub (a, ZERO, b);;
let rec natmul_sub (a, n, k) = if n == k then a else natmul_sub ( natadd(a, a), SUCC n, k );;
let natmul (a, b) = natmul_sub (a, SUCC(ZERO... | |
8bd0623be6016b9b29e1a884be1e4a0f7eaffef88cdf33acb186c175893775ae | morloc-project/morloc | API.hs | {-# LANGUAGE OverloadedStrings #-}
|
Module : Morloc . Frontend . API
Description : Morloc frontend API
Copyright : ( c ) , 2021
License : GPL-3
Maintainer :
Stability : experimental
Module : Morloc.Frontend.API
Description : Morloc frontend API
Copyright : (c) Zebulun Arends... | null | https://raw.githubusercontent.com/morloc-project/morloc/e877221e1123b920f52b18ea7d1a319aacd0b927/library/Morloc/Frontend/API.hs | haskell | # LANGUAGE OverloadedStrings #
^ path to the current module (if we are reading from a file)
^ code of the current module
descend recursively into imports
all modules that have already been parsed
find all (module to module) edges in the graph where the imported
module has not yet been parsed
| assume @t@ is a fi... |
|
Module : Morloc . Frontend . API
Description : Morloc frontend API
Copyright : ( c ) , 2021
License : GPL-3
Maintainer :
Stability : experimental
Module : Morloc.Frontend.API
Description : Morloc frontend API
Copyright : (c) Zebulun Arendsee, 2021
License : GPL-3
Mainta... |
925761c8d852d01124b7780ea42d87f3134e0f58707dc7338a05372ed90861ca | iu-parfunc/verified-instances | Triple.hs | {-@ LIQUID "--higherorder" @-}
{-@ LIQUID "--exactdc" @-}
{-@ LIQUID "--noadt" @-}
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilies #
module GenericProofs.VerifiedMonoid.Examples.Triple where
import Language.Haskell.Liquid.ProofCombinators
import GenericProofs.Iso
import GenericPro... | null | https://raw.githubusercontent.com/iu-parfunc/verified-instances/cebfdf1e3357a693360be74c90211be18ce3c045/generic-proofs/src/GenericProofs/VerifiedMonoid/Examples/Triple.hs | haskell | @ LIQUID "--higherorder" @
@ LIQUID "--exactdc" @
@ LIQUID "--noadt" @
@ axiomatize fromTriple @
@ axiomatize toTriple @
@ tofTriple :: a:Triple a b c
-> { toTriple (fromTriple a) == a }
@
@ fotTriple :: a:RepTriple a b c x
-> { fromTriple (toTriple a) == a }
@ | # LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilies #
module GenericProofs.VerifiedMonoid.Examples.Triple where
import Language.Haskell.Liquid.ProofCombinators
import GenericProofs.Iso
import GenericProofs.TH
import GenericProofs.VerifiedMonoid
import GenericProofs.VerifiedMonoid.Generics
import GenericProofs.Verif... |
0edb7216d87b7bacb0da3a5f5502a70f32b501eb7bccfc1c2dbebf008c1b0dfd | jyh/metaprl | czf_itt_true.ml |
* Logical true .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htmlman / default.html... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/czf/czf_itt_true.ml | ocaml | ***********************************************************************
* RULES *
***********************************************************************
* True is functional.
* True is a restricted formula.
* True is a restricted formula.
*... |
* Logical true .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htmlman / default.html... |
c0d09e81bb0e244864f03b9e4797475d5e934ef215f4decfa0c95620c0809f69 | ocaml/dune | check_rules.mli | open Import
val add_obj_dir :
Super_context.t
-> obj_dir:Path.Build.t Obj_dir.t
-> [ `Melange | `Ocaml ]
-> unit Memo.t
val add_files :
Super_context.t -> dir:Path.Build.t -> Path.t list -> unit Memo.t
val add_cycle_check :
Super_context.t
-> dir:Path.Build.t
-> Module.t list Action_builder.t
... | null | https://raw.githubusercontent.com/ocaml/dune/f7047a295b067a1551cf41efb8c7c7de2658136e/src/dune_rules/check_rules.mli | ocaml | open Import
val add_obj_dir :
Super_context.t
-> obj_dir:Path.Build.t Obj_dir.t
-> [ `Melange | `Ocaml ]
-> unit Memo.t
val add_files :
Super_context.t -> dir:Path.Build.t -> Path.t list -> unit Memo.t
val add_cycle_check :
Super_context.t
-> dir:Path.Build.t
-> Module.t list Action_builder.t
... | |
2a60913862b9dc5995f3df004e46493c3aa66ab95d0f021ba086b42ff38de9cb | hadolint/hadolint | DL3000Spec.hs | module Hadolint.Rule.DL3000Spec (spec) where
import Data.Default
import Helpers
import Test.Hspec
spec :: SpecWith ()
spec = do
let ?config = def
describe "DL3000 - Use absolute WORKDIR." $ do
it "workdir relative" $ ruleCatches "DL3000" "WORKDIR relative/dir"
it "workdir absolute" $ ruleCatchesNot "DL3... | null | https://raw.githubusercontent.com/hadolint/hadolint/bf7e48ea735db423a349fb2d7a83fe7a77091cc2/test/Hadolint/Rule/DL3000Spec.hs | haskell | no test for variable/single quotes since the variable would not expand.
| module Hadolint.Rule.DL3000Spec (spec) where
import Data.Default
import Helpers
import Test.Hspec
spec :: SpecWith ()
spec = do
let ?config = def
describe "DL3000 - Use absolute WORKDIR." $ do
it "workdir relative" $ ruleCatches "DL3000" "WORKDIR relative/dir"
it "workdir absolute" $ ruleCatchesNot "DL3... |
6beb6272462f9b41b2041dba31b7b9873a4131f060271332c2ccf22537587a2b | marick/structural-typing | explanations.clj | (ns ^:no-doc structural-typing.guts.explanations
"All the non-custom error messages, together with functions
and oopsies that contain them."
(:use structural-typing.clojure.core)
(:require [structural-typing.guts.exval :as exval]
[structural-typing.guts.expred :as expred]
[structural-ty... | null | https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/src/structural_typing/guts/explanations.clj | clojure | (ns ^:no-doc structural-typing.guts.explanations
"All the non-custom error messages, together with functions
and oopsies that contain them."
(:use structural-typing.clojure.core)
(:require [structural-typing.guts.exval :as exval]
[structural-typing.guts.expred :as expred]
[structural-ty... | |
5ba8d9bb5597e6883ab7856ffb84a7b4b8688ec1c5d01575fc413b53e42db99c | Zetawar/zetawar | custom_js.cljs | (ns zetawar.players.ai.custom-js
(:require
[cljs.core.async :as async]
[datascript.core :as d]
[zetawar-js-ai]
[zetawar.app :as app]
[zetawar.db :as db]
[zetawar.game :as game]
[zetawar.hex :as hex]
[zetawar.logging :as log]
[zetawar.players :as players]
[zetawar.players.simple-embedded ... | null | https://raw.githubusercontent.com/Zetawar/zetawar/dc1ee8d27afcac1cd98904859289012c2806e58c/src/cljs/zetawar/players/ai/custom_js.cljs | clojure | (ns zetawar.players.ai.custom-js
(:require
[cljs.core.async :as async]
[datascript.core :as d]
[zetawar-js-ai]
[zetawar.app :as app]
[zetawar.db :as db]
[zetawar.game :as game]
[zetawar.hex :as hex]
[zetawar.logging :as log]
[zetawar.players :as players]
[zetawar.players.simple-embedded ... | |
1e7353b77742814a681b9ecf23b17bb7970f32f1a49aead752a41c9141f74ef0 | eggzilla/RNAlien | RNAlienStatistics.hs | # LANGUAGE RecordWildCards #
{-# LANGUAGE DeriveDataTypeable #-}
-- | Statistics for RNAlien Results
dist / build / RNAlienStatistics / RNAlienStatistics -s bitscore -i /scratch / egg / temp / cm13676/1 / model.cm -r /home / / egg / current / Data / AlienTest / cms / BsrG.cm -g /scratch / egg / temp / AlienSearch /... | null | https://raw.githubusercontent.com/eggzilla/RNAlien/026b8885482561eb89b738a954829f37050cee4b/Biobase/RNAlienStatistics.hs | haskell | # LANGUAGE DeriveDataTypeable #
| Statistics for RNAlien Results
_ <- systemCMsearch cpuThreads " " covarianceModelPath fastapath (outputDirectory ++ "/" ++ modelType ++ "/" ++ (show benchmarkIndex) ++ ".cmsearch")
_ <- systemCMsearch cpuThreads " " covarianceModelPath fastapath (outputDirectory ++ "/" ++ modelType ++... | # LANGUAGE RecordWildCards #
dist / build / RNAlienStatistics / RNAlienStatistics -s bitscore -i /scratch / egg / temp / cm13676/1 / model.cm -r /home / / egg / current / Data / AlienTest / cms / BsrG.cm -g /scratch / egg / temp / AlienSearch / genomes/ -o /scratch / egg / temp / AlienStatistics
module Main where
... |
10bf9c538b2c0715f6690cb213e759b750a023d07a72221edb3778eb56bb9809 | nodename/clevolution | currentimagestate.clj | (ns clevolution.app.state.currentimagestate
(:require [clevolution.imagedata :refer [DEFAULT-VIEWPORT ORIGIN-VIEWPORT
merge-view-elements
set-image-in-image-data]]))
(defonce current-image-state (atom {:image-size 512
... | null | https://raw.githubusercontent.com/nodename/clevolution/e0302d788826d6408076471a724fbe6352dddd82/src/clj/clevolution/app/state/currentimagestate.clj | clojure | (ns clevolution.app.state.currentimagestate
(:require [clevolution.imagedata :refer [DEFAULT-VIEWPORT ORIGIN-VIEWPORT
merge-view-elements
set-image-in-image-data]]))
(defonce current-image-state (atom {:image-size 512
... | |
daf6f6fe709cb786bcdbc26cd86e9f99b438cd396a98780ed8ef78d78f4268d6 | argp/bap | stmt_piqi_ext.ml | let piqi = Stmt_piqi.piqi
let _ = Piqirun_ext.init_piqi piqi
let _string_piqtype = Piqirun_ext.find_piqtype "string"
let _int_piqtype = Piqirun_ext.find_piqtype "int"
let _int64_piqtype = Piqirun_ext.find_piqtype "int64"
let _uint64_piqtype = Piqirun_ext.find_piqtype "uint64"
let _bool_piqtype = Piqirun_ext.find_pi... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocaml/piqi/stmt_piqi_ext.ml | ocaml | let piqi = Stmt_piqi.piqi
let _ = Piqirun_ext.init_piqi piqi
let _string_piqtype = Piqirun_ext.find_piqtype "string"
let _int_piqtype = Piqirun_ext.find_piqtype "int"
let _int64_piqtype = Piqirun_ext.find_piqtype "int64"
let _uint64_piqtype = Piqirun_ext.find_piqtype "uint64"
let _bool_piqtype = Piqirun_ext.find_pi... | |
3243979847ab0b56a52d744425131e132b1d468f4499b86cd19d9a9f7f42c95b | braintripping/magic-tree | backtick.clj | (ns magic-tree.backtick)
template quoting : from
Copyright © 2012
Distributed under the Eclipse Public License , the same as Clojure .
Modified 2016
(def ^:dynamic ^:private *gensyms*)
(defn resolve-sym [sym]
(let [n (name sym)]
(if (= (last n) \#)
(if-let [gs (@*gensyms* sym)]
gs
(l... | null | https://raw.githubusercontent.com/braintripping/magic-tree/963f940d1bdcd07e7b5d95af883e75fb1415fa3e/src/magic_tree/backtick.clj | clojure | (ns magic-tree.backtick)
template quoting : from
Copyright © 2012
Distributed under the Eclipse Public License , the same as Clojure .
Modified 2016
(def ^:dynamic ^:private *gensyms*)
(defn resolve-sym [sym]
(let [n (name sym)]
(if (= (last n) \#)
(if-let [gs (@*gensyms* sym)]
gs
(l... | |
7aac2ef0d370d9ff52d44dc816f539aabbde5636c57fc999a7ab8f3d7cb802b3 | lambdaclass/erlang-katana | ktn_fsm.erl | %%% @doc "Nicer" interfact to gen_fsm.
%%% With this module you can:
%%% - use ktn_fsm:call instead of gen_fsm:sync_send_event
%%% - use ktn_fsm:call_through instead of gen_fsm:sync_send_all_state_event
%%% - use ktn_fsm:cast instead of gen_fsm:send_event
%%% - use ktn_fsm:cast_through instead of gen_fsm:sync_s... | null | https://raw.githubusercontent.com/lambdaclass/erlang-katana/ebb6b1358c974b5e3b16f5e95422061385ae34ac/src/ktn_fsm.erl | erlang | @doc "Nicer" interfact to gen_fsm.
With this module you can:
- use ktn_fsm:call instead of gen_fsm:sync_send_event
- use ktn_fsm:call_through instead of gen_fsm:sync_send_all_state_event
- use ktn_fsm:cast instead of gen_fsm:send_event
- use ktn_fsm:cast_through instead of gen_fsm:sync_send_event
- use... | @todo implement the inner functional changes :
undefined , the caller will throw an exception , but the fsm will keep
-module(ktn_fsm).
-ignore_xref([start/3]).
-export(
[ state/1
, call/2
, call/3
, call_through/2
, call_through/3
, cast/2
, cast_through/2
]).
-export(['$handle_undefined_fun... |
560b0ad6f4e6854822c0e7ceb3534cd0452833eebe6eb0f8ab2e023ecfd817b5 | clj-commons/clj-ssh | brick.clj | (defbrick clj-ssh
:images {:vmfest [{:image {:os-family :ubuntu :os-version-matches "12.04"
:os-64-bit true}
:selectors [:default]}]})
| null | https://raw.githubusercontent.com/clj-commons/clj-ssh/cad8841e6c898b803f276679f69ef563d47b9320/brick.clj | clojure | (defbrick clj-ssh
:images {:vmfest [{:image {:os-family :ubuntu :os-version-matches "12.04"
:os-64-bit true}
:selectors [:default]}]})
| |
e2e31308fed732fde65a4a715eeaa1cd57e55660779cb1c05ae00f729e18dc5b | alex-hhh/ActivityLog2 | db-test.rkt | #lang racket/base
;; This file is part of ActivityLog2, an fitness activity tracker
Copyright ( C ) 2015 , 2018 , 2019 , 2020 , 2021 , 2023 < >
;;
;; 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 Found... | null | https://raw.githubusercontent.com/alex-hhh/ActivityLog2/05e7422f43835c2d1b6a0d0d72e9e99adf94ae66/test/db-test.rkt | racket | This file is part of ActivityLog2, an fitness activity tracker
This program is free software: you can redistribute it and/or modify it
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR P... | #lang racket/base
Copyright ( C ) 2015 , 2018 , 2019 , 2020 , 2021 , 2023 < >
under the terms of the GNU General Public License as published by the Free
Software Foundation , either version 3 of the License , or ( at your option )
(require al2-test-runner
db/base
rackunit
racket/mat... |
2e63a84a81587bdea8d7faf1e74b8b37acd9b09c477d5081d6103d608e6e1fd8 | puppetlabs/jruby-utils | jruby_pool_manager_service.clj | (ns puppetlabs.services.jruby-pool-manager.jruby-pool-manager-service
(:require [puppetlabs.trapperkeeper.core :as trapperkeeper]
[puppetlabs.services.protocols.pool-manager :as pool-manager-protocol]
[puppetlabs.services.jruby-pool-manager.impl.jruby-pool-manager-core :as jruby-pool-manager-c... | null | https://raw.githubusercontent.com/puppetlabs/jruby-utils/7b53c3c6a0c61635362402313bcec809abf5a856/src/clj/puppetlabs/services/jruby_pool_manager/jruby_pool_manager_service.clj | clojure | (ns puppetlabs.services.jruby-pool-manager.jruby-pool-manager-service
(:require [puppetlabs.trapperkeeper.core :as trapperkeeper]
[puppetlabs.services.protocols.pool-manager :as pool-manager-protocol]
[puppetlabs.services.jruby-pool-manager.impl.jruby-pool-manager-core :as jruby-pool-manager-c... | |
fc04fceb64bee88e5a5ebd1938bab2ef85d7f502ad4689fd2123b9dddc131a48 | openmusic-project/openmusic | conversions.lisp | ;=========================================================================
OpenMusic : Visual Programming Language for Music Composition
;
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
;
This file is part of the OpenMusic environment sources
;
OpenMusic is free software : you ... | null | https://raw.githubusercontent.com/openmusic-project/openmusic/bedb6f7922e30a07fe4435e6c588ad3f93f821ce/OPENMUSIC/code/projects/musicproject/functions/conversions.lisp | lisp | =========================================================================
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
======... | OpenMusic : Visual Programming Language for Music Composition
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
This file is part of the OpenMusic environment sources
OpenMusic is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public ... |
4aa7ace1cd1cfbdca14ebcc8629e17d6914794753f10ca46272f3a70bcc92991 | malcolmreynolds/GSLL | ode-system.lisp | ;; ODE system setup
, Sun Apr 15 2007 - 14:19
Time - stamp : < 2009 - 03 - 29 22:54:21EDT ode-system.lisp >
$ Id$
(in-package :gsl)
(export '(with-ode-integration))
(defmacro with-ode-integration
((function time step-size max-time dependent dimensions
&key jacobian (scalarsp t) (stepper '+step-rk... | null | https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/ordinary-differential-equations/ode-system.lisp | lisp | ODE system setup
it | , Sun Apr 15 2007 - 14:19
Time - stamp : < 2009 - 03 - 29 22:54:21EDT ode-system.lisp >
$ Id$
(in-package :gsl)
(export '(with-ode-integration))
(defmacro with-ode-integration
((function time step-size max-time dependent dimensions
&key jacobian (scalarsp t) (stepper '+step-rk8pd+)
(absol... |
bbd5e5ee51ab9b0ccf3906edb041df017c3ee5707ba1c8de1f8da9a020101e93 | aeternity/aerepl | aere_version.erl | -module(aere_version).
-export([ protocol_version/0
, abi_version/0
, sophia_version/0
, contract_version/0
, vm_version/0
, repl_version/0
, compiler_version/0
, node_version/0
]).
-include("../node/apps/aecontract/src/aect_sophia.hrl").
-include("../no... | null | https://raw.githubusercontent.com/aeternity/aerepl/831c01e8716aba69166e16dc640d442667235669/src/aere_version.erl | erlang | -module(aere_version).
-export([ protocol_version/0
, abi_version/0
, sophia_version/0
, contract_version/0
, vm_version/0
, repl_version/0
, compiler_version/0
, node_version/0
]).
-include("../node/apps/aecontract/src/aect_sophia.hrl").
-include("../no... | |
4dec37817db2b801a3b01f88848765299304d305d4fae3fd4a0e27fb3c685b31 | joewilliams/erl_geo_dns | couchbeam_mochinum.erl | 2007 Mochi Media , Inc.
@author < >
%%
Copyright ( c ) 2007 Mochi Media , Inc.
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitati... | null | https://raw.githubusercontent.com/joewilliams/erl_geo_dns/682c3925959db61ead99f13160ef8bd77486a871/apps/couchbeam/src/couchbeam_mochinum.erl | erlang |
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above copyright noti... | 2007 Mochi Media , Inc.
@author < >
Copyright ( c ) 2007 Mochi Media , Inc.
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED... |
8a334ebba424aa17a8a0589b15ca0225e732a05f7fac6944e45b208a802c3c9b | onedata/op-worker | autocleaning_run_controller.erl | %%%-------------------------------------------------------------------
@author
( C ) 2017 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%%--------------------------------------------------------------------
%%% @doc
%%% This gen_server is responsible for control... | null | https://raw.githubusercontent.com/onedata/op-worker/a1970e588b702b959c379e21d89139445a56235c/src/modules/autocleaning/autocleaning_run_controller.erl | erlang | -------------------------------------------------------------------
--------------------------------------------------------------------
@doc
This gen_server is responsible for controlling run of autocleaning
with given configuration.
It is started per specific run and dies after the run is finished.
Only one run ... | @author
( C ) 2017 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
* process_replica_deletion_result/4 is used to notify autocleaning_run_controller
Run of autocleaning in given space can be started in 2 ways :
* by periodical checks triggered from fslogic... |
1e750b1e4406b5c28651ded1b86a00e00efcc0c499c63eca45ed63d52bef21cc | jordwalke/rehp | setup_env.ml | let () =
let pwd = Unix.getcwd () in
let env = [Format.sprintf "BUILD_PATH_PREFIX_MAP=/root=%s" pwd] in
let prog, args =
match Array.to_list Sys.argv with
| _current :: prog :: args -> prog, args
| _ -> failwith "Specify a program to run"
in
Format.eprintf " + % s % s\n% ! " prog ( String.concat "... | null | https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/compiler/tests/build_path_prefix_map/setup_env.ml | ocaml | let () =
let pwd = Unix.getcwd () in
let env = [Format.sprintf "BUILD_PATH_PREFIX_MAP=/root=%s" pwd] in
let prog, args =
match Array.to_list Sys.argv with
| _current :: prog :: args -> prog, args
| _ -> failwith "Specify a program to run"
in
Format.eprintf " + % s % s\n% ! " prog ( String.concat "... | |
37556afe1166de7d1c38eabc7160cbf60d4f6b5f0025143120e21fc0a92c7038 | fyquah/hardcaml_zprize | squarer.mli | * Presently unused module to compute modulo square of two numbers .
open Base
open Hardcaml
module Config : sig
module Level = Karatsuba_ofman_mult.Config.Level
type t =
{ levels : Level.t list
; ground_multiplier : Ground_multiplier.Config.t
}
val latency : t -> int
end
module Input : sig
type... | null | https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/field_ops/src/squarer.mli | ocaml | * Presently unused module to compute modulo square of two numbers .
open Base
open Hardcaml
module Config : sig
module Level = Karatsuba_ofman_mult.Config.Level
type t =
{ levels : Level.t list
; ground_multiplier : Ground_multiplier.Config.t
}
val latency : t -> int
end
module Input : sig
type... | |
fd68768bb0dd74a24c3b79d529d23f6ccbed0942d4a32e5402f185cc7d66ac80 | backtracking/ocaml-bazaar | dlxm.ml |
See 's Dancing Links paper for details on the following code .
type node = {
mutable left : node;
mutable right: node;
mutable up : node;
mutable down : node;
mutable col : node;
mult : int;
name : string; (* header only *)
mutable size : int;
}
type column = node
type problem = node
let crea... | null | https://raw.githubusercontent.com/backtracking/ocaml-bazaar/e62c9139eeef1d00c0ef4628f7c8b6a66808cec1/dlxm.ml | ocaml | header only
make a left-right doubly linked list from a list of nodes
it is a column
it is a column
empty column = no solution |
See 's Dancing Links paper for details on the following code .
type node = {
mutable left : node;
mutable right: node;
mutable up : node;
mutable down : node;
mutable col : node;
mult : int;
mutable size : int;
}
type column = node
type problem = node
let create_node mult name =
let rec n =
... |
cbeaa7c70faa7f854d03d523143c0a7b3c3cd328ce97ebe67175eb0f165ea1c7 | CardanoSolutions/kupo | HttpSpec.hs | 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 /.
# LANGUAGE PatternSynonyms #
module Test.Kupo.App.HttpSpec
( spec
) where
import Kupo.Prelude hiding
( get
, put
)
impor... | null | https://raw.githubusercontent.com/CardanoSolutions/kupo/a03d574ce2e1f22bb36a11993aba328b65523c99/test/Test/Kupo/App/HttpSpec.hs | haskell |
Stubs
Helpers
Generators
| 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 /.
# LANGUAGE PatternSynonyms #
module Test.Kupo.App.HttpSpec
( spec
) where
import Kupo.Prelude hiding
( get
, put
)
impor... |
6c8d6b868af9b0dda84d8d6d48c53fad80c431d85b3d5b1d451862a292098c40 | zenspider/schemers | exercise.3.74.scm | #lang racket/base
Exercise 3.74
is designing a system to process
signals coming from physical sensors . One important feature she
wishes to produce is a signal that describes the " zero crossings "
;; of the input signal. That is, the resulting signal should be + 1
whenever the input signal changes fr... | null | https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_3/exercise.3.74.scm | scheme | of the input signal. That is, the resulting signal should be + 1
whenever the input signal changes from positive to negative, and 0
otherwise. (Assume that the sign of a 0 input is positive.) For
signal would be
arguments and compares the signs of the values to produce an
stream as follows:
(stream-... | #lang racket/base
Exercise 3.74
is designing a system to process
signals coming from physical sensors . One important feature she
wishes to produce is a signal that describes the " zero crossings "
whenever the input signal changes from negative to positive , - 1
example , a typical input signal with... |
67434f3f829ad8e1973f25e01a9f330f33f87e6a9414f155960c2a83baef3baf | soegaard/metapict | grammar.rkt | #lang ragg
;;; Lexemes:
SYMBOLIC - TOKEN
; NUMBER-NOT-FOLLOWED-BY-/NUMBER
; NUMBER
; NUMBER-OR-FRACTION-NOT-FOLLOWED-BY-ADD-OP-NUMBER
TAG ( standard Racket symbol ? )
[ page 88 ]
Figure 55 and 56 : The syntax for expressions
empty : ""
atom : variable
| argument
| number-or-fraction
... | null | https://raw.githubusercontent.com/soegaard/metapict/47ae265f73cbb92ff3e7bdd61e49f4af17597fdf/metapict/todo/grammar.rkt | racket | Lexemes:
NUMBER-NOT-FOLLOWED-BY-/NUMBER
NUMBER
NUMBER-OR-FRACTION-NOT-FOLLOWED-BY-ADD-OP-NUMBER
| "btex" typesetting-commands "etex"
| symbolic-token-defined-by-newinternal
| macro-definition
No need fro macro definitions...
macro-definition : macro-heading "=" replacement-text "enddef"
macro-heading : "def" ... | #lang ragg
SYMBOLIC - TOKEN
TAG ( standard Racket symbol ? )
[ page 88 ]
Figure 55 and 56 : The syntax for expressions
empty : ""
atom : variable
| argument
| number-or-fraction
| internal-variable
| "(" expression ")"
| "begingroup" statement-list expression "endgroup"
... |
e470668de0fd68e712174eed5e18566cb7a2a52cc515437ae5cefb540ec082cb | silkapp/rest | Config.hs | # LANGUAGE
NoImplicitPrelude
, TemplateHaskell
, TypeOperators
#
NoImplicitPrelude
, TemplateHaskell
, TypeOperators
#-}
module Rest.Gen.Config
( Action (..)
, Location (..)
, Config
, action
, source
, target
, apiVersion
, apiPrivate
, defaultConfig
, parseLocation
... | null | https://raw.githubusercontent.com/silkapp/rest/f0462fc36709407f236f57064d8e37c77bdf8a79/rest-gen/src/Rest/Gen/Config.hs | haskell | # LANGUAGE
NoImplicitPrelude
, TemplateHaskell
, TypeOperators
#
NoImplicitPrelude
, TemplateHaskell
, TypeOperators
#-}
module Rest.Gen.Config
( Action (..)
, Location (..)
, Config
, action
, source
, target
, apiVersion
, apiPrivate
, defaultConfig
, parseLocation
... | |
bb36862445d78cef59cdaa43e3fd57b5f7c07a75868074ba82f5b53f925bfcfc | bitemyapp/bloodhound | Aggregation.hs | {-# LANGUAGE OverloadedStrings #-}
module Test.Aggregation (spec) where
import Control.Error (fmapL, note)
import qualified Data.Map as M
import qualified Database.Bloodhound
import Test.Common
import Test.Import
spec :: Spec
spec =
describe "Aggregation API" $ do
it "returns term aggregation results" $
... | null | https://raw.githubusercontent.com/bitemyapp/bloodhound/c5a10dd2922e0a2debaeb8985e53112700a1998b/tests/Test/Aggregation.hs | haskell | # LANGUAGE OverloadedStrings # |
module Test.Aggregation (spec) where
import Control.Error (fmapL, note)
import qualified Data.Map as M
import qualified Database.Bloodhound
import Test.Common
import Test.Import
spec :: Spec
spec =
describe "Aggregation API" $ do
it "returns term aggregation results" $
withTestEnv $ do
_ <- inser... |
b743ddb4f063912d074dbe059b43a667a41ffddc40ef2c9b640f00ba0bdf7367 | ghc/nofib | Auxprogfuns.hs | LML original : , 1990
Haskell translation : , May 1991
module Auxprogfuns(
nearx,neary, deline, orient, display, cs,
wwscale, wscale, wline, showoris) where
1.3
import Mgrfuns
import Diff
import Drawfuns
import Geomfuns
import Layout
import Rational
concmap3 :: (a -> b -> c -> [d]) -> [a] -> [b] -> [c] ... | null | https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/reptile/Auxprogfuns.hs | haskell | see the pic related definitions for where the numbers come from
CR numeric literals here not acceptable - needs abstraction
for the program state,
and for the postscript file
functions to do with the drawing of lines and marking of circles
in the design phase
as the x and y lists for the design area are the same,... | LML original : , 1990
Haskell translation : , May 1991
module Auxprogfuns(
nearx,neary, deline, orient, display, cs,
wwscale, wscale, wline, showoris) where
1.3
import Mgrfuns
import Diff
import Drawfuns
import Geomfuns
import Layout
import Rational
concmap3 :: (a -> b -> c -> [d]) -> [a] -> [b] -> [c] ... |
694e52dae4d4cca20ee1324ea0ed6fa43ae6df4bcb18a063dc0d5c87ff8f001d | facebookarchive/pfff | graph_code_prolog.ml |
*
* Copyright ( C ) 2012 Facebook
*
* 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 licens... | null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/graph_code/graph_code_prolog.ml | ocaml | ***************************************************************************
Prelude
***************************************************************************
Generating prolog DB facts from a graph_code.
*
* For more information look at h_program-lang/prolog_code.pl
* and its many predicates.
***************... |
*
* Copyright ( C ) 2012 Facebook
*
* 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 licens... |
6da14f2cd28c22bec0f3c0596a10d89f550f8493a5eedea06911a3b726ff354f | fulcro-legacy/fulcro-getting-started | user.cljs | (ns cljs.user
(:require
[app.basic-ui :refer [app-1 Root]]
[fulcro.client :as fc]))
(defn refresh [] (swap! app-1 fc/mount Root "app-1"))
(refresh)
| null | https://raw.githubusercontent.com/fulcro-legacy/fulcro-getting-started/0cc33a1990d1553c6bc84857bbee3882863c2fb9/src/dev/cljs/user.cljs | clojure | (ns cljs.user
(:require
[app.basic-ui :refer [app-1 Root]]
[fulcro.client :as fc]))
(defn refresh [] (swap! app-1 fc/mount Root "app-1"))
(refresh)
| |
2fc6127bee07a630d514136f8829f135e95d7d6e9ceada0102c95754e4970253 | avsm/eeww | queue.ml | type t
type typ = Serial | Concurrent
module Qos = struct
type t = Interactive | User_initiated | Utility | Background
end
external dispatch_main : unit -> t = "ocaml_dispatch_get_main_queue"
external dispatch_global : Qos.t -> t = "ocaml_dispatch_get_global_queue"
external dispatch_create : typ -> t option -> t = ... | null | https://raw.githubusercontent.com/avsm/eeww/ab64c5391b67fb3f5b1d3de5e0a5a5cb4c80207b/lib/dispatch/lib/queue.ml | ocaml | type t
type typ = Serial | Concurrent
module Qos = struct
type t = Interactive | User_initiated | Utility | Background
end
external dispatch_main : unit -> t = "ocaml_dispatch_get_main_queue"
external dispatch_global : Qos.t -> t = "ocaml_dispatch_get_global_queue"
external dispatch_create : typ -> t option -> t = ... | |
dc8fc91d4fd93c1f9aa36a610ba5964f98e7cd79f2990d5b30573661c65d0a0a | openmusic-project/openmusic | play.lisp | ;=========================================================================
OpenMusic : Visual Programming Language for Music Composition
;
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
;
This file is part of the OpenMusic environment sources
;
OpenMusic is free software : you can redist... | null | https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/kernel/scheduler-player/play.lisp | lisp | =========================================================================
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
=================... | OpenMusic : Visual Programming Language for Music Composition
Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France .
This file is part of the OpenMusic environment sources
OpenMusic is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License ... |
e4490bfb949ab1a0f93f3b8cd4bca37f648d5d43fb52faab1cd9b3d5610a3f07 | nineties-retro/sps | sps-mem-fsp.scm | (define (sps:mem:fsp:open pools size alignment) 'fixed-size-pool)
(define (sps:mem:fsp:alloc fsp size alignment)
(sps:assert (eq? fsp 'fixed-size-pool))
(case alignment
((1) (make-string size))
((4) (make-vector (quotient size sps:bytes-per-word)))
(else "sps:mem:fsp:alloc - illegal alignment" alignmen... | null | https://raw.githubusercontent.com/nineties-retro/sps/bf15b415f4cdf5d6d69ae2f39c250db2090c0817/scm/sps-mem-fsp.scm | scheme | (define (sps:mem:fsp:open pools size alignment) 'fixed-size-pool)
(define (sps:mem:fsp:alloc fsp size alignment)
(sps:assert (eq? fsp 'fixed-size-pool))
(case alignment
((1) (make-string size))
((4) (make-vector (quotient size sps:bytes-per-word)))
(else "sps:mem:fsp:alloc - illegal alignment" alignmen... | |
854f4cc4e0559e58dc7b314dc657e8c0f22f46c72ad78a244bbabbfbe2aea57e | janestreet/bonsai | input.ml | open! Core
open! Import
This type represents a combination of static and dynamic data . When only one
is present , the representation is straightforward , but when both are
present , we use the [ Join ] constructor . [ Join ] contains the dynamic portion
as a single incremental node ( which probably c... | null | https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/src/input.ml | ocaml | open! Core
open! Import
This type represents a combination of static and dynamic data . When only one
is present , the representation is straightforward , but when both are
present , we use the [ Join ] constructor . [ Join ] contains the dynamic portion
as a single incremental node ( which probably c... | |
3d0fa15f1b017803efbd5946bf6b8902bd0165ae4540544c522e01eda43ae44d | cadpnq/papyrith | identifier.lisp |
(in-package :papyrith)
(defstruct (identifier
(:include papyrus-type)
(:print-function
(lambda (p s k)
(format s "~A" (identifier-name p)))))
name scope)
(defvar +nonevar+ (make-identifier :type :none :name 'nonevar))
(defvar +self+ (make-identifier :type :self :name 'self))
(defvar +true+ (make-ide... | null | https://raw.githubusercontent.com/cadpnq/papyrith/755579f38a7f3f20d528966b4e548cc6e9bb006f/identifier.lisp | lisp |
(in-package :papyrith)
(defstruct (identifier
(:include papyrus-type)
(:print-function
(lambda (p s k)
(format s "~A" (identifier-name p)))))
name scope)
(defvar +nonevar+ (make-identifier :type :none :name 'nonevar))
(defvar +self+ (make-identifier :type :self :name 'self))
(defvar +true+ (make-ide... | |
9deb572932cf53dff6f597bf197fea0e6c7c247cdeaf399de268fb995c651140 | eslick/cl-registry | events.lisp | (in-package :registry)
;; =============================================================================
;; Event Subsystem
;; =============================================================================
;; This file contains the event subsystem. As opposed to hooks, which deal with
;; site administration issues (i... | null | https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/core/events.lisp | lisp | =============================================================================
Event Subsystem
=============================================================================
This file contains the event subsystem. As opposed to hooks, which deal with
site administration issues (initializing libraries, loading data... | (in-package :registry)
1 ) An event persistent class and common operations over them
2 ) The ability to register handlers that are triggered when a specific event occurs
3 ) A timer thread which calls some hard - coded functions every hour
May 26 , 2008
(defmethod event-time (time)
"It is important for em... |
38a70b445c9b6bd843d303401f8b55e8997555690ed2d36489ec825e9bd8c27a | backtracking/mlpost | compute.ml | (**************************************************************************)
(* *)
Copyright ( C ) Johannes Kanig ,
, and
(* *)
(* This software is f... | null | https://raw.githubusercontent.com/backtracking/mlpost/e82db2d3766f24392956478496fa26c8837c1fef/src/compute.ml | ocaml | ************************************************************************
This software is free software; you can redistribute it and/or
described in file LICENSE.... | Copyright ( C ) Johannes Kanig ,
, and
modify it under the terms of the GNU Library General Public
License version 2.1 , with the special exception on linking
module P = Point_lib
module M = Matrix
should be 3 . but not enough
let default_pen = M.scale 0.5
... |
b91959f80ec68d9d37c5dfa707f27912b55d84e4fe0c88f97ec75ad85d8e1da6 | lamdu/lamdu | Parens.hs | | A pass on the sugared AST to decide where to put parenthesis
# LANGUAGE TypeApplications , TypeFamilies , DefaultSignatures , ScopedTypeVariables #
module Lamdu.Sugar.Parens
( MinOpPrec
, addToWorkArea, addToTopLevel
) where
import qualified Control.Lens as Lens
import Hyper
import ... | null | https://raw.githubusercontent.com/lamdu/lamdu/8c4b60d42f980f3e03c7e88b01c4437e31cf1cb1/src/Lamdu/Sugar/Parens.hs | haskell | | Do we need parenthesis (OR any other visual disambiguation?)
A quite hacky rule for inject | | A pass on the sugared AST to decide where to put parenthesis
# LANGUAGE TypeApplications , TypeFamilies , DefaultSignatures , ScopedTypeVariables #
module Lamdu.Sugar.Parens
( MinOpPrec
, addToWorkArea, addToTopLevel
) where
import qualified Control.Lens as Lens
import Hyper
import ... |
5028fe7188bfbdff52afdd3f1004ce5bbae723b5c9ecf9dc70cb971786fd29da | soupi/yh | ScrollingBackground.hs | # LANGUAGE FunctionalDependencies #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE DuplicateRecordFields #
{-# LANGUAGE TypeSynonymInstances #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE TemplateHaskell #
module Play.Engine.ScrollingBackground where
import qualified SDL
import Play.Engine.Types
import Play.Eng... | null | https://raw.githubusercontent.com/soupi/yh/4cfbcc7da6f3ca5e330b7fd7d4adeacee7e2dff4/src/Play/Engine/ScrollingBackground.hs | haskell | # LANGUAGE TypeSynonymInstances # | # LANGUAGE FunctionalDependencies #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE TemplateHaskell #
module Play.Engine.ScrollingBackground where
import qualified SDL
import Play.Engine.Types
import Play.Engine.Utils
import Control.Lens
data SBG... |
582e35d3195ebb6194cea8d5d76d304f82f701bd1d667c891d64eb7ee8152219 | ml-in-barcelona/jsoo-react | dom_aria_attributes.ml | include Dom_dsl_core.Prop
All the WAI - ARIA 1.1 attributes from -aria-1.1/
Identifies the currently active element when DOM focus is on a composite widget , textbox , group , or application .
let ariaActivedescendant = string "aria-activedescendant"
(* Indicates whether assistive technologies will present all, ... | null | https://raw.githubusercontent.com/ml-in-barcelona/jsoo-react/8805668dd8a1c64b55eecfdd1719a52c45b336f9/lib/dom_aria_attributes.ml | ocaml | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
Bool | 'false' | 'true'
'none' | 'inline' | 'list' | 'both'
Bool | 'false' | 'true'
Indicates the current "checked" state of checkboxes, radi... | include Dom_dsl_core.Prop
All the WAI - ARIA 1.1 attributes from -aria-1.1/
Identifies the currently active element when DOM focus is on a composite widget , textbox , group , or application .
let ariaActivedescendant = string "aria-activedescendant"
Indicates whether inputting text could trigger display of o... |
02b450c775899690d9beced0cfecd9aa8b6a2396373f41696d57bd5dc607cc4a | mzp/coq-ide-for-ios | eauto.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/tactics/eauto.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Term
open Proof_type
ope... |
9cf56602e1fe0ab4ba8aa1de3c590de38ee5e821a61267cddf416820a29e6209 | spurious/sagittarius-scheme-mirror | tools.scm | -*- mode : scheme ; coding : utf-8 -*-
;; tools.scm - SXML tools
#!nobacktrace
(library (text sxml tools)
(export filter-and-map
check-list
sxml:attr-list-node
sxml:attr-as-list
sxml:aux-list-node
sxml:aux-as-list
;; sxml:find-name-separator
sxml:error
sxml:empty-element?
... | null | https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/text/sxml/tools.scm | scheme | coding : utf-8 -*-
tools.scm - SXML tools
sxml:find-name-separator
from private
for define-macro
S X M L T o o l s
This software is in Public Domain.
Please send bug reports and comments to
If aux-list is present - then list of attributes is always
Minimized f... | #!nobacktrace
(library (text sxml tools)
(export filter-and-map
check-list
sxml:attr-list-node
sxml:attr-as-list
sxml:aux-list-node
sxml:aux-as-list
sxml:error
sxml:empty-element?
sxml:shallow-normalized?
sxml:normalized?
sxml:shallow-minimized?
sxml:minimized?... |
81585ccc735ac0b1317be84b1e27747ce5241faf653b973398371c4dcbefc25a | haskell-opengl/OpenGL | ConditionalRendering.hs | --------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.GL.ConditionalRendering
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
This module corresponds t... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/ConditionalRendering.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.Rendering.OpenGL.GL.ConditionalRendering
License : BSD3
Stability : stable
Portability : portable
OpenGL 4.4 specs.
------------------------------------------------------------------------------
--... | Copyright : ( c ) 2019
Maintainer : < >
This module corresponds to section 10.10 ( Conditional Rendering ) of the
module Graphics.Rendering.OpenGL.GL.ConditionalRendering (
ConditionalRenderMode(..),
beginConditionalRender, endConditionalRender, withConditionalRender
) where
import Graphics.... |
06d0f3563a03e6c496eda75bde4b3bbb25112288fd70969337c077af59006ef9 | sunshineclt/Racket-Helper | homework3-2.rkt | #lang racket
(define (map op lst)
(if (null? lst)
'()
(cons (op (car lst))
(map op (cdr lst)))))
(define (super-map op . w)
(define (accumulate op initial sequence) (if (null? sequence)
initial
(op (car sequence)
(accumulate op initial (cdr sequence)))))
(define (superr-ma... | null | https://raw.githubusercontent.com/sunshineclt/Racket-Helper/bf85f38dd8d084db68265bb98d8c38bada6494ec/%E9%99%88%E4%B9%90%E5%A4%A9/Week3/homework3-2.rkt | racket | #lang racket
(define (map op lst)
(if (null? lst)
'()
(cons (op (car lst))
(map op (cdr lst)))))
(define (super-map op . w)
(define (accumulate op initial sequence) (if (null? sequence)
initial
(op (car sequence)
(accumulate op initial (cdr sequence)))))
(define (superr-ma... | |
a5ef56520620ef310432ee78dad14f466d2ffad082404f0a8b4f0bb680729790 | csg-tokyo/typelevelLR | TestInvalid1.hs |
import MultipleOf7
1 = 0b1
main :: IO ()
main = print $ begin |> i |> end
| null | https://raw.githubusercontent.com/csg-tokyo/typelevelLR/ca5853890fac7fb819a026f0fd15d8b43f7c8470/examples/haskell/multiple-of-7/TestInvalid1.hs | haskell |
import MultipleOf7
1 = 0b1
main :: IO ()
main = print $ begin |> i |> end
| |
7b272e497d37d42d034e3056413462f24ba1f5bf9e063840c748171737b5b5f2 | ZeusWPI/contests | mars.hs | import Control.Applicative ((<$>))
import Control.Monad (replicateM, replicateM_)
import Data.Map (Map)
import Data.Maybe (fromMaybe)
import Data.List (delete, minimumBy)
import Data.Ord (comparing)
import qualified Data.Map as M
import Debug.Trace (traceShow)
type Station = (Int, Int)
data Transport
= Marsrover... | null | https://raw.githubusercontent.com/ZeusWPI/contests/d78aec91be3ce32a436d160cd7a13825d36bbf3a/2010-vpw/mars.hs | haskell | | In m/s
| In m
| In s
Distances when starting from the current station | import Control.Applicative ((<$>))
import Control.Monad (replicateM, replicateM_)
import Data.Map (Map)
import Data.Maybe (fromMaybe)
import Data.List (delete, minimumBy)
import Data.Ord (comparing)
import qualified Data.Map as M
import Debug.Trace (traceShow)
type Station = (Int, Int)
data Transport
= Marsrover... |
f385b15c95e2e5938c1d80fe396f31395e8225bfbbf34c592ba5eadf0a38b0b3 | vaibhavsagar/experiments | XmlSortOrder.hs | module Dotnet.System.Xml.XPath.XmlSortOrder where
import Dotnet
import qualified IOExts
import qualified Dotnet.System.Type
import qualified Dotnet.System.Enum
data XmlSortOrder_ a
type XmlSortOrder a = Dotnet.System.Enum.Enum (XmlSortOrder_ a)
data XmlSortOrderTy
= Ascending
| Descending
deriving ( Enum, Show, ... | null | https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/Xml/XPath/XmlSortOrder.hs | haskell | module Dotnet.System.Xml.XPath.XmlSortOrder where
import Dotnet
import qualified IOExts
import qualified Dotnet.System.Type
import qualified Dotnet.System.Enum
data XmlSortOrder_ a
type XmlSortOrder a = Dotnet.System.Enum.Enum (XmlSortOrder_ a)
data XmlSortOrderTy
= Ascending
| Descending
deriving ( Enum, Show, ... | |
41b507e13b56a305670e5ab9e2145ccd69daba2a3325cbca1519c14aad356d5e | kowainik/learn4haskell | Chapter3.hs | module Test.Chapter3
( chapter3
) where
import Test.Hspec (Spec, describe, it, shouldBe)
import Chapter3
chapter3 :: Spec
chapter3 = describe "Chapter3" $ do
describe "Chapter3Normal" $ it "" $ True `shouldBe` True
describe "Chapter3Advanced" $ it "" $ True `shouldBe` True
| null | https://raw.githubusercontent.com/kowainik/learn4haskell/2447123585200bbae2f3df7431a858ba558cc700/test/Test/Chapter3.hs | haskell | module Test.Chapter3
( chapter3
) where
import Test.Hspec (Spec, describe, it, shouldBe)
import Chapter3
chapter3 :: Spec
chapter3 = describe "Chapter3" $ do
describe "Chapter3Normal" $ it "" $ True `shouldBe` True
describe "Chapter3Advanced" $ it "" $ True `shouldBe` True
| |
6705d270ab9d6a4feea7fdadfdd3407e0a1f2646d1fdab3332a26e4109081164 | jaseemabid/mit-scheme | ctak.scm | (declare (usual-integrations))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; File: ctak.sch
; Description: The ctak benchmark
Author :
Created : 5 - Apr-85
Modified : 10 - Apr-85 14:53:02 ( )
24 - Jul-87 ( )
; Language: Schem... | null | https://raw.githubusercontent.com/jaseemabid/mit-scheme/d30da6b2c103e34b6e0805bd5cbefeb9501382c1/v8/src/bench/ctak.scm | scheme |
File: ctak.sch
Description: The ctak benchmark
Language: Scheme
Status: Public Domain
The original version of this benchmark used a continuation mechanism that
is less powerful than call-with-current-continuation and also relied on
dynamic binding, which is not provided in standard Scheme. ... | (declare (usual-integrations))
Author :
Created : 5 - Apr-85
Modified : 10 - Apr-85 14:53:02 ( )
24 - Jul-87 ( )
CTAK -- A version of the TAK procedure that uses continuations .
CTAK -- A version of the TAK function that uses the CATCH / THROW facility .
(define (c... |
aed2dba5a64747799136d735474248f175aafdeb04fc3163a647545e8be9f1fc | clash-lang/clash-compiler | Num.hs | |
Copyright : ( C ) 2013 - 2016 , University of Twente
License : BSD2 ( see the file LICENSE )
Maintainer : < >
Copyright : (C) 2013-2016, University of Twente
License : BSD2 (see the file LICENSE)
Maintainer : Christiaan Baaij <>
-}
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE NoGener... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/62022223a035d62511d5d0dbc79f28074d68852e/clash-prelude/src/Clash/Class/Num.hs | haskell | # LANGUAGE NoGeneralizedNewtypeDeriving #
# LANGUAGE Safe #
# OPTIONS_HADDOCK show-extensions #
* Arithmetic functions for arguments and results of different precision
* Arithmetic functions for arguments and results of different precision
| Type of the result of the addition or subtraction
| Add values of differen... | |
Copyright : ( C ) 2013 - 2016 , University of Twente
License : BSD2 ( see the file LICENSE )
Maintainer : < >
Copyright : (C) 2013-2016, University of Twente
License : BSD2 (see the file LICENSE)
Maintainer : Christiaan Baaij <>
-}
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamil... |
e042946a17fce9f07ca4104aa59c2de3928db982cc648629840344af350bff19 | jimcrayne/jhc | edecls.hs | module Main where {
f x = x;
;
;
g y z = z;
main = print (g (f False) (f True));
}
| null | https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/regress/tests/1_typecheck/2_pass/edecls.hs | haskell | module Main where {
f x = x;
;
;
g y z = z;
main = print (g (f False) (f True));
}
| |
7e9520e1a4fed9499b1a788be449f9791d206fd798f634c6afbfd2f72c10b166 | zchn/ethereum-analyzer | Code.hs | # LANGUAGE DeriveGeneric #
module Blockchain.Data.Code where
import qualified Data.ByteString as B
import GHC.Generics
import Blockchain.Data.RLP
data Code
= Code { codeBytes :: B.ByteString}
| PrecompiledCode Int
deriving (Show, Eq, Read, Ord, Generic)
instance RLPSerializable Code where
rlpEncode (Code b... | null | https://raw.githubusercontent.com/zchn/ethereum-analyzer/f2a60d8b451358971f1e3b1a61658f5741c4c099/ethereum-analyzer-deps/src/Blockchain/Data/Code.hs | haskell | # LANGUAGE DeriveGeneric #
module Blockchain.Data.Code where
import qualified Data.ByteString as B
import GHC.Generics
import Blockchain.Data.RLP
data Code
= Code { codeBytes :: B.ByteString}
| PrecompiledCode Int
deriving (Show, Eq, Read, Ord, Generic)
instance RLPSerializable Code where
rlpEncode (Code b... | |
22d71874b4958dda19b99d9c559f99bf6e1f99a39256b7600697fbb8bc26e9c9 | PEZ/rich4clojure | problem_015.clj | (ns rich4clojure.elementary.problem-015
(:require [hyperfiddle.rcf :refer [tests]]))
;; = Double Down =
By 4Clojure user :
;; Difficulty: Elementary
;;
;; Write a function which doubles a number.
(def __ :tests-will-fail)
(comment
)
(tests
(__ 2) := 4
(__ 3) := 6
(__ 11) := 22
(__ 7) := 14)
;; S... | null | https://raw.githubusercontent.com/PEZ/rich4clojure/28ea575ede8677f3a97437a646cdb3376a28ebc9/src/rich4clojure/elementary/problem_015.clj | clojure | = Double Down =
Difficulty: Elementary
Write a function which doubles a number.
Share your solution, and/or check how others did it:
| (ns rich4clojure.elementary.problem-015
(:require [hyperfiddle.rcf :refer [tests]]))
By 4Clojure user :
(def __ :tests-will-fail)
(comment
)
(tests
(__ 2) := 4
(__ 3) := 6
(__ 11) := 22
(__ 7) := 14)
|
ae07601e212b7251b519a75d0fbe093b855ab012fbfaff627199bd3b3120f565 | the-dr-lazy/cascade | DeleteExistingById.hs | |
Module : Test . Cascade . Api . StateMachine . Command . Project . DeleteExistingById
Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! !
Copyright : ( c ) 2020 - 2021 Cascade
License : MPL 2.0
Maintainer : < > ( the-dr-lazy.github.io )
Stability : Stable
Portability : POSIX ... | null | https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/test/Test/Cascade/Api/StateMachine/Command/Project/DeleteExistingById.hs | haskell | |
Module : Test . Cascade . Api . StateMachine . Command . Project . DeleteExistingById
Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! !
Copyright : ( c ) 2020 - 2021 Cascade
License : MPL 2.0
Maintainer : < > ( the-dr-lazy.github.io )
Stability : Stable
Portability : POSIX ... | |
9a105ed377586b3782a719e76fb2a8aeb6d61de9e80620346f9de1bbaf58fb05 | gigasquid/babar | speech_acts.clj | (ns babar.speech-acts
(:require [clj-time.core :as time]
[clj-time.format :as tformat]
[babar.commands :refer :all]
[me.raynes.conch.low-level :as conchll]))
(def commitments (atom {}))
(def beliefs (atom {}))
(def commitments-agent (agent {}))
(def speak-flag (atom false))
(def a... | null | https://raw.githubusercontent.com/gigasquid/babar/d9451122a1517dac4d0ff402f4ec716fd9c3a23a/src/babar/speech_acts.clj | clojure | (ns babar.speech-acts
(:require [clj-time.core :as time]
[clj-time.format :as tformat]
[babar.commands :refer :all]
[me.raynes.conch.low-level :as conchll]))
(def commitments (atom {}))
(def beliefs (atom {}))
(def commitments-agent (agent {}))
(def speak-flag (atom false))
(def a... | |
b50b9dd924d62fe42a42f0416ba7f3262e8bd114951c15c7ca1793932a11023d | wyx0-xyz/sosig-lang | Parser.hs | module Language.Sosig.Parser where
import Control.Monad (replicateM_)
import qualified Language.Sosig.Lexer as Lexer
import Text.Parsec (between, char, many, string, try, (<|>))
import Text.Parsec.String (Parser)
data Statement
= Def String [Type] Type Expr
deriving (Eq, Show)
data Expr
= Integer Integer
| D... | null | https://raw.githubusercontent.com/wyx0-xyz/sosig-lang/1dd0ea36a59e35a50a11eee221bb07a90051a727/src/Language/Sosig/Parser.hs | haskell | module Language.Sosig.Parser where
import Control.Monad (replicateM_)
import qualified Language.Sosig.Lexer as Lexer
import Text.Parsec (between, char, many, string, try, (<|>))
import Text.Parsec.String (Parser)
data Statement
= Def String [Type] Type Expr
deriving (Eq, Show)
data Expr
= Integer Integer
| D... | |
8f6844a45f81bd32802409b1741f209e50fab726f32c57e3957db18bc91bd30c | TyOverby/bonsai-wall | evt.ml | open Core
type t =
| Mouse_button_down of int
| Mouse_button_up of int
| Mouse_motion of
{ x : int
; y : int
; x_rel : int
; y_rel : int
}
| Mouse_wheel of
{ which : int
; x : int
; y : int
}
[@@deriving sexp_of]
type enum =
[ `App_did_enter_background
... | null | https://raw.githubusercontent.com/TyOverby/bonsai-wall/d04ab464f67d5bd18762df2cd3cb1b8c7ffe39e5/src/evt.ml | ocaml | open Core
type t =
| Mouse_button_down of int
| Mouse_button_up of int
| Mouse_motion of
{ x : int
; y : int
; x_rel : int
; y_rel : int
}
| Mouse_wheel of
{ which : int
; x : int
; y : int
}
[@@deriving sexp_of]
type enum =
[ `App_did_enter_background
... | |
46c6f0efcdd32dccd8c183cd612a880e0d681703db6fdd935f7ea27fed1dd636 | hedgehogqa/haskell-hedgehog | Gen.hs | module Hedgehog.Gen (
-- ** Shrinking
shrink
, prune
-- ** Size
, small
, scale
, resize
, sized
-- ** Integral
, integral
, integral_
, int
, int8
, int16
, int32
, int64
, word
, word8
, word16
, word32
, word64
-- ** Floating-point
, realFloat
, realFrac_
, fl... | null | https://raw.githubusercontent.com/hedgehogqa/haskell-hedgehog/4139585167225dc06dd54b3a439621c1865a0d11/hedgehog/src/Hedgehog/Gen.hs | haskell | ** Shrinking
** Size
** Integral
** Floating-point
** Enumeration
** Characters
** Strings
** Choice
** Conditional
** Collections
** Subterms
** Combinations & Permutations
** Abstract State Machine
* Sampling Generators | module Hedgehog.Gen (
shrink
, prune
, small
, scale
, resize
, sized
, integral
, integral_
, int
, int8
, int16
, int32
, int64
, word
, word8
, word16
, word32
, word64
, realFloat
, realFrac_
, float
, double
, enum
, enumBounded
, bool
, bool_
, binit
... |
1d9f49e48fa0e587361158ff6a74558880dcd74ab76c388befa88a3017157f05 | mbutterick/aoc-racket | 20.rkt | #lang br
(require racket/file rackunit racket/set)
(define edge-flipped
(let ()
(define cache (make-hasheq))
(define bit-count 10)
(define (edge-flipper x)
(for/sum ([(b i)
(in-indexed (for/list ([b (in-range (sub1 bit-count) -1 -1)])
(bitwise-bit-set... | null | https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2020/20.rkt | racket | top
right
bottom
left | #lang br
(require racket/file rackunit racket/set)
(define edge-flipped
(let ()
(define cache (make-hasheq))
(define bit-count 10)
(define (edge-flipper x)
(for/sum ([(b i)
(in-indexed (for/list ([b (in-range (sub1 bit-count) -1 -1)])
(bitwise-bit-set... |
5d6221989ff84d9c93e3890fdbe2c35aabff63f6414333ee4df0ac590532182e | tweag/ormolu | Combinators.hs | # LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
-- | Printing combinators. The definitions here are presented in such an
order so you can just go through the and by the end of the file
-- you should have a pretty good idea how to program rendering logi... | null | https://raw.githubusercontent.com/tweag/ormolu/a4a9f4500b6c25f104cfbde82d9c16c6875b6d1e/src/Ormolu/Printer/Combinators.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
| Printing combinators. The definitions here are presented in such an
you should have a pretty good idea how to program rendering logic.
* The 'R' monad
* Combinators
** Basic
** Formatting lists
** Wrapping
** Literals
** Stateful markers
** Placement
-------... | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
order so you can just go through the and by the end of the file
module Ormolu.Printer.Combinators
R,
runR,
getEnclosingSpan,
isExtensionEnabled,
txt,
atom,
space,
newline,
inci,
inciIf,
inciHalf,
askSourceType,
... |
2ad9ea7c9ada8b56ea2aa342cf5f7347bd2d7e9b151516005aaa682620905bd5 | BranchTaken/Hemlock | string.ml | open Rudiments0
module T = struct
type t = string
let blength t =
Stdlib.(Int64.of_int (String.length t))
let hash_fold t state =
state
|> Hash.State.Gen.init
|> Hash.State.Gen.fold_u8 Stdlib.(Int64.of_int (String.length t)) ~f:(fun i ->
Stdlib.(Int64.of_int (Char.code (String.get t (Int6... | null | https://raw.githubusercontent.com/BranchTaken/Hemlock/a21b462fe7f70475591d2ffae185c91552bf6372/bootstrap/src/basis/string.ml | ocaml | == is excessively vague in OCaml.
Consider contained slices to come after their containers in the total order.
== is excessively vague in OCaml.
For internal use only; does not validate index is at a codepoint boundary.
Consider contained slices to come after their containers in the total order.
Stdlib.Strin... | open Rudiments0
module T = struct
type t = string
let blength t =
Stdlib.(Int64.of_int (String.length t))
let hash_fold t state =
state
|> Hash.State.Gen.init
|> Hash.State.Gen.fold_u8 Stdlib.(Int64.of_int (String.length t)) ~f:(fun i ->
Stdlib.(Int64.of_int (Char.code (String.get t (Int6... |
1e6b54aa78b323216397e7108ba5ef1f831ca34996e91472a009fafba1ac9be2 | viercc/kitchen-sink-hs | Isomorphisms.hs | -- Overkilling a cute li'l exercise
-- /
# LANGUAGE UnicodeSyntax , ScopedTypeVariables , ImpredicativeTypes #
module Isomorphisms(goal) where
import Prelude hiding (id, (.))
import Control.Category
import Data.Coerce
import Data.Functor.Yoneda
-- | Type of isomorphisms
data Iso a b = Iso { _to :: a -> b, _from :... | null | https://raw.githubusercontent.com/viercc/kitchen-sink-hs/0ff7de0d9c145ec7ba06e61d8a1fff3234c1f892/experiment/src/Isomorphisms.hs | haskell | Overkilling a cute li'l exercise
/
| Type of isomorphisms
* Some facts about isomorphisms
| Coercion is an isomorphism
* Some known isomorphisms
* Facts about "forall"'d types
It's generally true that
It's generally true that
* Complete the proof!
| Our goal is to make an isomorphism of the type ... | # LANGUAGE UnicodeSyntax , ScopedTypeVariables , ImpredicativeTypes #
module Isomorphisms(goal) where
import Prelude hiding (id, (.))
import Control.Category
import Data.Coerce
import Data.Functor.Yoneda
data Iso a b = Iso { _to :: a -> b, _from :: b -> a }
instance Category Iso where
id = Iso id id
Iso bc... |
9ed2d9c91d7aae12abd89e2c265b9d61a56b67195c578704b96576f029134696 | chaitanyagupta/chronicity | repeater-minute.lisp | -*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*-
;;; repeater-minute.lisp
;;; See the LICENSE file for licensing information.
(cl:in-package #:chronicity)
(defclass repeater-minute (repeater)
((current :initform nil)))
(defmethod r-next ((repeater repeater-minute) pointer)
(with-... | null | https://raw.githubusercontent.com/chaitanyagupta/chronicity/5841d1548cad0ca6917d8e68933124a5af68f5ec/src/repeaters/repeater-minute.lisp | lisp | Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*-
repeater-minute.lisp
See the LICENSE file for licensing information. |
(cl:in-package #:chronicity)
(defclass repeater-minute (repeater)
((current :initform nil)))
(defmethod r-next ((repeater repeater-minute) pointer)
(with-slots (current now)
repeater
(if (not current)
(case pointer
(:future (setf current (start-of-minute (datetime-incr now :minute)))... |
c988618edd7ec341bf0faa123aebb890a590722bf9ea3867df80dc2e6c6ee1b4 | input-output-hk/project-icarus-importer | Test.hs | import Test.Hspec (hspec)
import Spec (spec)
main :: IO ()
main = hspec spec
| null | https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/tools/test/Test.hs | haskell | import Test.Hspec (hspec)
import Spec (spec)
main :: IO ()
main = hspec spec
| |
fdcc8dfb1998c793a638ec48669ec6356cbea84ef94fbed0c58941a30bb5eb6e | ryanpbrewster/haskell | P015Test.hs | module Problems.P015Test
( case_015_main
) where
import Problems.P015
import Test.Tasty.Discover (Assertion, (@?=))
case_015_main :: Assertion
case_015_main = solve @?= "137846528820"
| null | https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/tests/Problems/P015Test.hs | haskell | module Problems.P015Test
( case_015_main
) where
import Problems.P015
import Test.Tasty.Discover (Assertion, (@?=))
case_015_main :: Assertion
case_015_main = solve @?= "137846528820"
| |
4534c6ff5c7732f61e36d0e9b5c331a5c72e1ff11cccb04abd95a0f1052f071c | zenspider/schemers | exercise.2.27.scm | #lang racket/base
(require "../lib/test.rkt")
Exercise 2.27 .
Modify your reverse procedure of exercise 2.18 to produce a
;; deep-reverse procedure that takes a list as argument and returns as
;; its value the list with its elements reversed and with all sublists
;; deep-reversed as well. For example,
(define x... | null | https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_2/exercise.2.27.scm | scheme | deep-reverse procedure that takes a list as argument and returns as
its value the list with its elements reversed and with all sublists
deep-reversed as well. For example,
x
(reverse x)
(deep-reverse x) | #lang racket/base
(require "../lib/test.rkt")
Exercise 2.27 .
Modify your reverse procedure of exercise 2.18 to produce a
(define x (list (list 1 2) (list 3 4)))
( ( 1 2 ) ( 3 4 ) )
( ( 3 4 ) ( 1 2 ) )
( ( 4 3 ) ( 2 1 ) )
(define (reverse l)
(define (iterate l r)
(if (null? l) r
(iterate (... |
b5ec194dc2ad2b6704a4e594ef523e2b6037e34fcd4fc2627ae71de0a7c29c69 | RichiH/git-annex | Fixup.hs | git - annex repository fixups
-
- Copyright 2013 , 2015 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2013, 2015 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Annex.Fixup where
import Git.Types
import Git.Config
import Types.GitConfig
impo... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Annex/Fixup.hs | haskell | Disable git's built-in wildcard expansion, which is not wanted
- when using it as plumbing by git-annex. | git - annex repository fixups
-
- Copyright 2013 , 2015 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2013, 2015 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Annex.Fixup where
import Git.Types
import Git.Config
import Types.GitConfig
impo... |
2385f9f884a6f57000157b738b0e17a62d451f415d94edacd40e879f2e8ad87e | bvaugon/ocapic | ram.ml | (*************************************************************************)
(* *)
(* OCaPIC *)
(* *)
... | null | https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/src/ocasim/ram.ml | ocaml | ***********************************************************************
OCaPIC
... |
This file is distributed under the terms of the CeCILL license .
let size = 4096
let stack_size = 32
let get_pre_triggers = Array.make 256 []
let get_post_triggers = Array.make 256 []
let set_pre_triggers = Array.make 256 []
let set_post_triggers ... |
1d19f4d1ac7b19610df8867e3ea99e1121a230b32678b504d4d2683a1eeb1b7f | achirkin/vulkan | Attachment.hs | # OPTIONS_HADDOCK ignore - exports #
{-# LANGUAGE DataKinds #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE KindSignatures #
{-# LANGUAGE PatternSynonyms #-}
# LANGUAGE StandaloneDeriving #
{-# LANGUAGE Strict ... | null | https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Types/Enum/Attachment.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE PatternSynonyms #
# LANGUAGE Strict #
# LANGUAGE TypeSynonymInstances #
| The attachment may alias physical memory of another attachment in the same render pass
| type = @enum@
<-extensions/html/vkspec.html#VkAttachmentLoadOp... | # OPTIONS_HADDOCK ignore - exports #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE KindSignatures #
# LANGUAGE StandaloneDeriving #
module Graphics.Vulkan.Types.Enum.Attachment
(VkAttachmentDescriptionBitmask(VkAttachmentDescriptionBitmask,
... |
439c0bb7eb1944a30b6a24a7c0b14663327bdb4624395d7c4494a0858482316d | brendanhay/amazonka | EdgeStatistics.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE StrictData #-}
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived fr... | null | https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-xray/gen/Amazonka/XRay/Types/EdgeStatistics.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
| Response statistics for an edge.
/See:/ 'newEdgeStatistics' smart constructor.
code.
code.
| The total number of completed requests.
| The aggregate response time of completed requests.
|
The following record fields are... | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived from AWS service descriptions , licensed under Apache 2.0 .
Mo... |
24d15d23bf5bc747631c48849a83f1f06e9e298cc169ef1510bb530ad856a2d0 | obsidiansystems/rhyolite | Form.hs | -- | A mechanism to validate forms.
{-# Language FlexibleInstances #-}
# Language GeneralizedNewtypeDeriving #
{-# Language LambdaCase #-}
# Language MultiParamTypeClasses #
{-# Language OverloadedStrings #-}
{-# Language RecursiveDo #-}
{-# Language StandaloneDeriving #-}
{-# Language TemplateHaskell #-}
{-# Language... | null | https://raw.githubusercontent.com/obsidiansystems/rhyolite/ec7fb78e51b23ccef734a06b9ee1ccfa756ec370/widgets/src/Reflex/Dom/Widget/Form.hs | haskell | | A mechanism to validate forms.
# Language FlexibleInstances #
# Language LambdaCase #
# Language OverloadedStrings #
# Language RecursiveDo #
# Language StandaloneDeriving #
# Language TemplateHaskell #
# Language TupleSections #
# Language TypeFamilies #
# Language UndecidableInstances #
# Language RankNTypes #
# L... |
# Language GeneralizedNewtypeDeriving #
# Language MultiParamTypeClasses #
module Reflex.Dom.Widget.Form where
import Control.Lens ((%~), makeLenses, preview)
import Control.Monad
import Control.Monad.Except
import Data.Bifunctor
import Data.Functor.Compose
import Data.Map (Map)
import qualified Data.Map as Map
impor... |
42ccc634f9f51972907b8d51283574a84c71b4b0e4a85b07d40c007b15ef377e | Mathieu-Desrochers/Schemings | email-intern.scm | (import srfi-4)
(import (chicken blob))
(import (chicken condition))
(declare (unit email-intern))
(declare (uses etpan))
;; invokes a procedure with a mailmime* of type message
(: with-message-mailmime* (forall (r) ((pointer -> r) -> r)))
(define (with-message-mailmime* procedure)
(with-guaranteed-release
(l... | null | https://raw.githubusercontent.com/Mathieu-Desrochers/Schemings/9808b1a7c37e0ef2cc505fd8d401590e0526dff1/sources/units/email-intern.scm | scheme | invokes a procedure with a mailmime* of type message
sets the email fields of a mailmime*
makes a mailmime* of type single
adds a mailmime* of type text
to a parent mailmime*
adds a mailmime* of type attachment
to a parent mailmime*
adds a mailmime* of type multiple
to a parent mailmime* | (import srfi-4)
(import (chicken blob))
(import (chicken condition))
(declare (unit email-intern))
(declare (uses etpan))
(: with-message-mailmime* (forall (r) ((pointer -> r) -> r)))
(define (with-message-mailmime* procedure)
(with-guaranteed-release
(lambda ()
(mailmime-new-message-data #f))
proce... |
fe01f1d9f6b7b5787e3adb192a1e002f73fd1176b77b0913e617c2708893221a | clojurians-org/haskell-example | Prelude.hs | module Database.Dpi.Prelude
( module Foreign
, module Foreign.C.String
, module Foreign.C.Types
, module Database.Dpi.Prelude
, join
, (<>)
, (&)
, HasCallStack
, ByteString
) where
import Control.Monad (join)
import Data.ByteString (ByteString)
import qualified Data.ByteStr... | null | https://raw.githubusercontent.com/clojurians-org/haskell-example/c96b021bdef52a121e04ea203c8c3e458770a25a/conduit-ui/dep/odpic-raw/src/Database/Dpi/Prelude.hs | haskell | module Database.Dpi.Prelude
( module Foreign
, module Foreign.C.String
, module Foreign.C.Types
, module Database.Dpi.Prelude
, join
, (<>)
, (&)
, HasCallStack
, ByteString
) where
import Control.Monad (join)
import Data.ByteString (ByteString)
import qualified Data.ByteStr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.