_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 |
|---|---|---|---|---|---|---|---|---|
efaae1ef45316645f5a95085536b1449a218bda2e6785be4725e5cc280e86b45 | rtoy/cmucl | vector.lisp | -*-Mode : LISP ; Package:(PCL LISP 1000 ) ; ; Syntax : Common - lisp -*-
;;;
;;; *************************************************************************
Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation .
;;; All rights reserved.
;;;
;;; Use and copying of this software and preparation of d... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/pcl/vector.lisp | lisp | Package:(PCL LISP 1000 ) ; ; Syntax : Common - lisp -*-
*************************************************************************
All rights reserved.
Use and copying of this software and preparation of derivative works
based upon this software are permitted. Any distribution of this
States export control law... | Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation .
software or derivative works must comply with all applicable United
This software is made available AS IS , and Xerox Corporation makes no
CommonLoops Coordinator
Xerox PARC
3333 Coyote Hill Rd .
Palo Alto , CA 94304
( o... |
bfd0a448724fee974ff923c620ce8c3f7a0e775f9030bcf722a685b066ceeb38 | Kappa-Dev/KappaTools | loggers_string_of_op.ml | let string_of_un_op logger op =
let format = Loggers.get_encoding_format logger in
match op with
| Operator.UMINUS->
begin
match
format
with
| Loggers.SBML -> "<minus/>"
| Loggers.DOTNET
| Loggers.Octave | Loggers.Matlab
| Loggers.Maple | Loggers.Mathematica -> "-"
... | null | https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/logging/loggers_string_of_op.ml | ocaml | let string_of_un_op logger op =
let format = Loggers.get_encoding_format logger in
match op with
| Operator.UMINUS->
begin
match
format
with
| Loggers.SBML -> "<minus/>"
| Loggers.DOTNET
| Loggers.Octave | Loggers.Matlab
| Loggers.Maple | Loggers.Mathematica -> "-"
... | |
c994db681d4c01447b0e4f1b48cdfcd59f59bdbec635fcd41625d61e79f4b134 | janestreet/base | string.mli | (** An extension of the standard [StringLabels]. If you [open Base], you'll get these
extensions in the [String] module. *)
open! Import
type t = string [@@deriving_inline globalize, sexp, sexp_grammar]
val globalize : (t[@ocaml.local]) -> t
include Sexplib0.Sexpable.S with type t := t
val t_sexp_grammar : t ... | null | https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/string.mli | ocaml | * An extension of the standard [StringLabels]. If you [open Base], you'll get these
extensions in the [String] module.
* [sub] with no bounds checking, and always returns a new copy
* Maximum length of a string.
* [unsafe_get t i] is like [get t i] but does not perform bounds checking. The caller
must ensur... |
open! Import
type t = string [@@deriving_inline globalize, sexp, sexp_grammar]
val globalize : (t[@ocaml.local]) -> t
include Sexplib0.Sexpable.S with type t := t
val t_sexp_grammar : t Sexplib0.Sexp_grammar.t
[@@@end]
val sub : (t, t) Blit.sub
val unsafe_sub : (t[@local]) -> pos:int -> len:int -> t
val subo :... |
589813a7b9d711467f0931fa1f001582fff147f6a5d3505fd0b1bc20cb2a51c7 | janestreet/base | hash_set_intf.ml | open! Import
module Key = Hashtbl_intf.Key
module type Accessors = sig
type 'a t
include Container.Generic with type ('a, _) t := 'a t
(** override [Container.Generic.mem] *)
val mem : 'a t -> 'a -> bool
(** preserves the equality function *)
val copy : 'a t -> 'a t
val add : 'a t -> 'a -> unit
(*... | null | https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/hash_set_intf.ml | ocaml | * override [Container.Generic.mem]
* preserves the equality function
* [strict_add t x] returns [Ok ()] if the [x] was not in [t], or an [Error] if it
was.
* [strict_remove t x] returns [Ok ()] if the [x] was in [t], or an [Error] if it
was not.
* [inter t1 t2] computes the set intersection of [t1] and ... | open! Import
module Key = Hashtbl_intf.Key
module type Accessors = sig
type 'a t
include Container.Generic with type ('a, _) t := 'a t
val mem : 'a t -> 'a -> bool
val copy : 'a t -> 'a t
val add : 'a t -> 'a -> unit
val strict_add : 'a t -> 'a -> unit Or_error.t
val strict_add_exn : 'a t -> 'a -> ... |
3e1b5aa8cf2f7d8efab30f2060d389513b53dcab732fef0a000e1ec632dc7959 | dgiot/dgiot | dgiot_product_view.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy... | null | https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_device/src/utils/dgiot_product_view.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(dgiot_product_view).
-author("kenneth").
-include("dgiot_device.hrl").
-include_lib("d... |
22a30c372cad7f94fcfe431a81124396befaea69348dc282140cc213d59ec131 | tmcgilchrist/tiger | test_qc_parser.ml | open Syntax
let quick =
let open Generators in
QCheck.Test.make ~count:1000
~name:"QC - parse arith"
QCheck.(arbitrary_arith) (fun l ->
let a = Parser.prog Lexer.lexer @@ Lexing.from_string @@ Syntax.Pretty.print_to_string @@ l in
(* a == l *)
(* TODO Suspect line numbers are off and the... | null | https://raw.githubusercontent.com/tmcgilchrist/tiger/db4bc99e85ae80c5f15749d66a9e4d8ebe3b2faa/test/test_qc_parser.ml | ocaml | a == l
TODO Suspect line numbers are off and the comparison is wrong | open Syntax
let quick =
let open Generators in
QCheck.Test.make ~count:1000
~name:"QC - parse arith"
QCheck.(arbitrary_arith) (fun l ->
let a = Parser.prog Lexer.lexer @@ Lexing.from_string @@ Syntax.Pretty.print_to_string @@ l in
match a.L.item = l.L.item with
| true -> true
| fal... |
551f9367be844d66b1b5bcfe5ed0e4545947e016d1b93e30677aecd2d6005067 | Andromedans/andromeda | coerce.ml | open Nucleus_types
(** Conversion from abstracted general judgements to abstracted particular judgements. *)
exception ConversionError
let rec convert f = function
| NotAbstract a -> NotAbstract (f a)
| Abstract (x, t, abstr) -> Abstract (x, t, convert f abstr)
let as_is_type = function
| JudgementIsType t ->... | null | https://raw.githubusercontent.com/Andromedans/andromeda/a5c678450e6c6d4a7cd5eee1196bde558541b994/src/nucleus/coerce.ml | ocaml | * Conversion from abstracted general judgements to abstracted particular judgements.
* Conversion to an argument
* Conversion from abstracted general boundaries to particular ones | open Nucleus_types
exception ConversionError
let rec convert f = function
| NotAbstract a -> NotAbstract (f a)
| Abstract (x, t, abstr) -> Abstract (x, t, convert f abstr)
let as_is_type = function
| JudgementIsType t -> Some t
| JudgementIsTerm _ | JudgementEqType _ | JudgementEqTerm _ -> None
let as_is_t... |
f126db122f66284caacc5bca7b3cb1b93893b2062465ec0adaf3e774e9010c81 | ItsMeijers/Lambdabox | Http.hs | {-# LANGUAGE OverloadedStrings #-}
module Binance.Internal.Account.Stream.Http
( start
, keepAlive
, close
) where
import Lambdabox.Box
import Binance.Internal.Account.Stream.Types
import Network.Wreq.Extended
import Data.Text (Text)
start :: Box DataStream
start = post "/api/v1/userDataStream" []
k... | null | https://raw.githubusercontent.com/ItsMeijers/Lambdabox/c19a8ae7d37b9f8ab5054d558fe788a5d4483092/src/Binance/Internal/Account/Stream/Http.hs | haskell | # LANGUAGE OverloadedStrings # |
module Binance.Internal.Account.Stream.Http
( start
, keepAlive
, close
) where
import Lambdabox.Box
import Binance.Internal.Account.Stream.Types
import Network.Wreq.Extended
import Data.Text (Text)
start :: Box DataStream
start = post "/api/v1/userDataStream" []
keepAlive :: Text -> Box ()
keepAliv... |
cee55399b9868af6fec7f39af5a186ad74c6f00e23c310e42ef91780b73330a7 | williamthome/eel | eel_render.erl | %%%-----------------------------------------------------------------------------
%%% @doc EEl renderer module.
%%%
@author [ ]
%%% @end
%%%-----------------------------------------------------------------------------
-module(eel_render).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-export([echo/1]).
-... | null | https://raw.githubusercontent.com/williamthome/eel/7f933858c4346c5adacabd748b4ef6f8df832c26/src/eel_render.erl | erlang | -----------------------------------------------------------------------------
@doc EEl renderer module.
@end
-----------------------------------------------------------------------------
------------------------------------------------------------------------------
@doc Render.
@end
-------------------------------... | @author [ ]
-module(eel_render).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-export([echo/1]).
-endif.
-export([
compiled/2,
compiled/3
]).
-export_type([
accepted_term/0,
bindings/0,
bindings_indexes/0,
eval/0,
memo/0,
return/0
]).
-type accepted_term() ::
bina... |
c04473f4fa4cd2c62893ef8c4a9be5ffcb417260245c64e177cbc6d501a58b09 | Practical-Formal-Methods/adiff | CpaChecker.hs | MIT License
--
Copyright ( c ) 2018
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitation the rights
-- to use, copy, modify, merge, pu... | null | https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/adiff/src/ADiff/Verifier/CpaChecker.hs | haskell |
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 notice... | MIT License
Copyright ( c ) 2018
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS... |
84e52916faae07e70e7c12d9f2cc3085013c227ed64cfa6003f05eae8567838c | yzhs/ocamlllvm | debuginfo.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/asmcomp/debuginfo.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Gallium , INRIA Rocquencourt
Copyright 2006 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
open Lexing
open Location
type kind = ... |
0920313cbb2d813f83d55b2e39038db75fe224d179a32e4d5111604e797cb5d8 | thheller/shadow-grove | dnd_sortable.cljs | (ns shadow.grove.ui.dnd-sortable
(:require
[goog.positioning :as gpos]
[shadow.cljs.modern :refer (defclass)]
[shadow.grove :as sg :refer (defc <<)]
[shadow.arborist.protocols :as ap]
[shadow.arborist.attributes :as attr]
[shadow.arborist.common :as common]
[shadow.grove.protocols :as gp]
... | null | https://raw.githubusercontent.com/thheller/shadow-grove/2398f30b89aadd38f1c18081b9290bacf5f7d0e0/src/main/shadow/grove/ui/dnd_sortable.cljs | clojure | FIXME: debounce this, dragover fires way too often to reposition constantly
FIXME: these all need to check whether the drag is ours
might have started somewhere else and not belong to this "group"
FIXME: make this use styleable
FIXME: should probably warn when not used correctly | (ns shadow.grove.ui.dnd-sortable
(:require
[goog.positioning :as gpos]
[shadow.cljs.modern :refer (defclass)]
[shadow.grove :as sg :refer (defc <<)]
[shadow.arborist.protocols :as ap]
[shadow.arborist.attributes :as attr]
[shadow.arborist.common :as common]
[shadow.grove.protocols :as gp]
... |
6a441ae7dded08e88996e2af4fb3b053ff9a46ea1f4ab785306e7de10f39fb8f | coast-framework/coast | coast.clj | (ns coast
(:require [coast.potemkin.namespaces :as namespaces]
[hiccup2.core]
[coast.db]
[coast.db.connection]
[coast.theta]
[coast.env]
[coast.time2]
[coast.components]
[coast.responses]
[coast.utils]
... | null | https://raw.githubusercontent.com/coast-framework/coast/9e160d89093e5d9097c5dfb1296267a53be8e7b6/src/coast.clj | clojure | (ns coast
(:require [coast.potemkin.namespaces :as namespaces]
[hiccup2.core]
[coast.db]
[coast.db.connection]
[coast.theta]
[coast.env]
[coast.time2]
[coast.components]
[coast.responses]
[coast.utils]
... | |
189d946a91f69fce5903312a804f3f2a4e1de207ddbaa5ff1c2932ca623372a8 | mlabs-haskell/ogmios-datum-cache | Database.hs | module Database (
initTables,
Datum (..),
DatabaseError (..),
getDatumByHash,
getDatumsByHashes,
saveDatums,
initLastBlock,
updateLastBlock,
getLastBlock,
saveTxs,
getTxByHash,
) where
import Codec.Serialise (DeserialiseFailure, deserialiseOrFail)
import Control.Monad (void)
import Control.Monad.... | null | https://raw.githubusercontent.com/mlabs-haskell/ogmios-datum-cache/ada4d2efdf7c4f308835099d0d30a91c1bd4a565/src/Database.hs | haskell | module Database (
initTables,
Datum (..),
DatabaseError (..),
getDatumByHash,
getDatumsByHashes,
saveDatums,
initLastBlock,
updateLastBlock,
getLastBlock,
saveTxs,
getTxByHash,
) where
import Codec.Serialise (DeserialiseFailure, deserialiseOrFail)
import Control.Monad (void)
import Control.Monad.... | |
0ea169b8e3ffb84f95188f56224cadd897411b4841b404183c31fe2f6c465a24 | MinaProtocol/mina | block_transaction_request.ml |
* This file has been generated by the OCamlClientCodegen generator for openapi - generator .
*
* Generated by : -generator.tech
*
* Schema Block_transaction_request.t : A BlockTransactionRequest is used to fetch a Transaction included in a block that is not returned in a BlockResponse .
* This file h... | null | https://raw.githubusercontent.com/MinaProtocol/mina/a80b00221953c26ff158e7375a948b5fa9e7bd8b/src/lib/rosetta_models/block_transaction_request.ml | ocaml |
* This file has been generated by the OCamlClientCodegen generator for openapi - generator .
*
* Generated by : -generator.tech
*
* Schema Block_transaction_request.t : A BlockTransactionRequest is used to fetch a Transaction included in a block that is not returned in a BlockResponse .
* This file h... | |
0b0fc0485455827e8b13d912e98d696b92004ccbb14081555fdcc5f22c344f7d | probprog/anglican | pgas.cljc | (ns anglican.pgas
(:refer-clojure :exclude [rand rand-int rand-nth])
(:require [anglican.smc :as smc :refer [sweep]]
[anglican.runtime :refer [sample* observe* discrete exp]]
[anglican.state :refer [add-log-weight get-log-weight
set-log-weight]])
(:use #... | null | https://raw.githubusercontent.com/probprog/anglican/ab6111d7fa8f68f42ea046feab928ca3eedde1d7/src/anglican/pgas.cljc | clojure | Particle Gibbs with Ancestor Sampling
Initial State
The state is extended by the trace ---
the vector of current random choices,
and the random database --- random choices
from the previous particle.
current random choices
stored random choices
counts of occurences of each `sample'
last sample id
The trace i... | (ns anglican.pgas
(:refer-clojure :exclude [rand rand-int rand-nth])
(:require [anglican.smc :as smc :refer [sweep]]
[anglican.runtime :refer [sample* observe* discrete exp]]
[anglican.state :refer [add-log-weight get-log-weight
set-log-weight]])
(:use #... |
ab0ef18568eeabd4b0b6da53ef9416aceb3d6eef8c32671557a8f52f5950b773 | Workiva/eva | spec.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/query/dialect/spec.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.query.dialect.spec
(:refer-clojure :exclude [+ * and or cat])
(:require [clojure.spec.alpha :as s
:refer [+ cat alt ? * spec and or]]
[clojure.string :refer [starts-with?]]
... |
7801028b87fc44906c95e38685e67508539dd3db14113d36186b50d23eb03fbb | janestreet/merlin-jst | typeclass.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/janestreet/merlin-jst/00f0a2c961fbf5a968125b33612d60224a573f40/upstream/ocaml_flambda/typing/typeclass.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Parsetree
open Asttypes
open Path
open Types
open Typecore
open Typetexp
open Format
type 'a class_inf... |
5b4273cb6ca4d881fc46c58318d556263839b1715e7e58b2d4c5e5a716a7b147 | pfdietz/ansi-test | load.lsp | ;;; Tests of types and classes
(compile-and-load "ANSI-TESTS:AUX;types-aux.lsp")
(in-package #:cl-test)
(let ((*default-pathname-defaults*
(make-pathname
:directory (pathname-directory *load-pathname*))))
(load "types-and-class.lsp")
(load "types-and-class-2.lsp")
(load "coerce.lsp")
(load "sub... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/types-and-classes/load.lsp | lisp | Tests of types and classes | (compile-and-load "ANSI-TESTS:AUX;types-aux.lsp")
(in-package #:cl-test)
(let ((*default-pathname-defaults*
(make-pathname
:directory (pathname-directory *load-pathname*))))
(load "types-and-class.lsp")
(load "types-and-class-2.lsp")
(load "coerce.lsp")
(load "subtypep.lsp")
(load "subtypep-i... |
5714d142fa15fa8e2c839603d31ad083921265d87f02b61179d3573cb3d02c63 | baconpaul/composition-kit | logical_item_test.clj | (ns composition-kit.music-lib.logical-item-test
(use clojure.test)
(:require [composition-kit.music-lib.logical-item :as i])
)
(deftest items-basics
(let [evt (i/music-event "an event" 123)
nwd (i/notes-with-duration [ :c4 ] 1.2 4.2)
rwd (i/rest-with-duration 2 5)]
(is (i/music-item? evt))... | null | https://raw.githubusercontent.com/baconpaul/composition-kit/fce0addb74a9c30ba06e051d3bca51c5a2b0ce6f/test/composition_kit/music_lib/logical_item_test.clj | clojure | and an error case | (ns composition-kit.music-lib.logical-item-test
(use clojure.test)
(:require [composition-kit.music-lib.logical-item :as i])
)
(deftest items-basics
(let [evt (i/music-event "an event" 123)
nwd (i/notes-with-duration [ :c4 ] 1.2 4.2)
rwd (i/rest-with-duration 2 5)]
(is (i/music-item? evt))... |
e07bbd69e9a1e824a9d0b9532bc92adc61d7ca28d95f4966031a9495cc22152c | embecosm/cgen | pmacros.scm | ;; Preprocessor-like macro support.
Copyright ( C ) 2000 , 2009 , 2010 Red Hat , Inc.
This file is part of CGEN .
;; See file COPYING.CGEN for details.
;; TODO:
;; - Like C preprocessor macros, there is no scoping [one can argue
;; there should be]. Maybe in time (??? Hmmm... done?)
;; - Support for multiple ma... | null | https://raw.githubusercontent.com/embecosm/cgen/3fa8809c015376cd0e80018a655d372df3678bc6/cgen/pmacros.scm | scheme | Preprocessor-like macro support.
See file COPYING.CGEN for details.
TODO:
- Like C preprocessor macros, there is no scoping [one can argue
there should be]. Maybe in time (??? Hmmm... done?)
- Support for multiple macro tables.
Non-standard required routines:
make-hash-table, hashq-ref, hashq-set!, symbol-... | Copyright ( C ) 2000 , 2009 , 2010 Red Hat , Inc.
This file is part of CGEN .
Provided by :
At some point this might also use the module system .
This uses 's source - properties system to track source location .
define - pmacro - define a symbolic or procedural pmacro
pmacro - expand - expand all... |
46b932c5b36c7acf8c2366042d53fa751ba145b05dbb6082efc2fb4ec6efec44 | Decentralized-Pictures/T4L3NT | prevalidator_pending_operations.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
Copyright ( c... | null | https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_shell/prevalidator_pending_operations.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < >
Copyright ( c ) 2018 - 2021 Nomadic Labs , < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , W... |
d4c4ea14a19ca4772932fea6d9649f18827b2345e0631f8fc19c63af364e76dc | paurkedal/ocaml-mediawiki-api | mwapi_query_prop_revisions.mli | Copyright ( C ) 2015 - -2017 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | null | https://raw.githubusercontent.com/paurkedal/ocaml-mediawiki-api/7538ff1d170cb8784e4fb45f26c1acac5591782b/lib/mwapi_query_prop_revisions.mli | ocaml | Copyright ( C ) 2015 - -2017 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | |
3ba14ea671cbe3526e0d565f1098c7727443a405f322980a3409a79824661c9b | cyga/real-world-haskell | divby3.hs | -- file: ch19/divby3.hs
divBy :: Integral a => a -> [a] -> [Maybe a]
divBy numerator denominators =
map worker denominators
where worker 0 = Nothing
worker x = Just (numerator `div` x)
| null | https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch19/divby3.hs | haskell | file: ch19/divby3.hs | divBy :: Integral a => a -> [a] -> [Maybe a]
divBy numerator denominators =
map worker denominators
where worker 0 = Nothing
worker x = Just (numerator `div` x)
|
41c38cbbddae413ea32a0b4e7c9b899317ab5f941545d9c119019a42da87d64a | rowangithub/DOrder | hrec.ml | let rec f g x = if x>=0 then g x else f (f g) (g x)
let succ x = x+1
let main n = assert (f succ n >= 0)
let _ = main (-1) | null | https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/mochi/hrec.ml | ocaml | let rec f g x = if x>=0 then g x else f (f g) (g x)
let succ x = x+1
let main n = assert (f succ n >= 0)
let _ = main (-1) | |
71c42185bf18742f1faec0b0cb395c7cd523ccbf81ccd760c354c98aec8832eb | atolab/zenoh | engine_state.ml |
* Copyright ( c ) 2017 , 2020 ADLINK Technology Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* -2.0 , or the Apache License , Version 2.0
* which is available at -2.0 .
*
* SPDX - License - Ident... | null | https://raw.githubusercontent.com/atolab/zenoh/32e311aae6be93c001fd725b4d918b2fb4e9713d/src/zenoh-router/engine_state.ml | ocaml |
* Copyright ( c ) 2017 , 2020 ADLINK Technology Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* -2.0 , or the Apache License , Version 2.0
* which is available at -2.0 .
*
* SPDX - License - Ident... | |
e7fa31b74f8158ec21523ad30da0f9142bbd145c10be3da8b41fdd7ff07e1287 | bmeurer/ocamljit2 | random.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, proje... | null | https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/stdlib/random.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Para , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ Id$
Pseudo - random number generat... |
e8bf1391bbb405b5c5ea3c9e1c62b3032d7aff796780ec5f3edf482bcf322adc | merijn/Belewitte | Graph.hs | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE QuasiQuotes #
# LANGUAGE StandaloneD... | null | https://raw.githubusercontent.com/merijn/Belewitte/cab6010a2bc54acfc4f4b169c95799fe455799ef/benchmark-analysis/src/Schema/Graph.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE OverloadedStrings # | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE QuasiQuotes #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFami... |
553238515a5df5b6a91a2972c869370b1cc34e155c35b9211636010ecccbc640 | runtimeverification/haskell-backend | SQLite.hs | |
Copyright : ( c ) Runtime Verification , 2020 - 2021
License : BSD-3 - Clause
Record log entries to a SQLite database .
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Record log entries to a SQLite database.
-}
module Kore.Log.SQLite (
LogSQLiteOptions (..),
p... | null | https://raw.githubusercontent.com/runtimeverification/haskell-backend/de44aad602e76f45baaa4dabac2b8088f22c3415/kore/src/Kore/Log/SQLite.hs | haskell | | Filename for the structured query log.
| Continuation
| Declare the SQL tables for all known 'SQL.Table' 'Entry' types. | |
Copyright : ( c ) Runtime Verification , 2020 - 2021
License : BSD-3 - Clause
Record log entries to a SQLite database .
Copyright : (c) Runtime Verification, 2020-2021
License : BSD-3-Clause
Record log entries to a SQLite database.
-}
module Kore.Log.SQLite (
LogSQLiteOptions (..),
p... |
631c49b0f270673d33dccbf418735026dfcdfef19febffd8feeefaf3f346692d | gebi/jungerl | edit_help.erl | %%%----------------------------------------------------------------------
%%% File : edit_help.erl
Author : < >
%%% Purpose : Help-related functions
Created : 2 Feb 2002 by < >
%%%----------------------------------------------------------------------
-module(edit_help).
-include_lib("ermacs/include/e... | null | https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/ermacs/src/edit_help.erl | erlang | ----------------------------------------------------------------------
File : edit_help.erl
Purpose : Help-related functions
----------------------------------------------------------------------
---------------------------------------------------------------------- | Author : < >
Created : 2 Feb 2002 by < >
-module(edit_help).
-include_lib("ermacs/include/edit.hrl").
-import(edit_lib, [buffer/1]).
-compile(export_all).
-compile({parse_transform, edit_transform}).
describe_key(S) ->
edit_util:popup_message(S, '*Help*', description(lookup_key(S))).
description... |
a0e2cda8f3e997da189e21776bf14fb9fd678ba9a8613fc27be1cc3419c7e2e2 | AlfrescoLabs/technical-validation | loc_counter.clj | ;
Copyright © 2014 ( )
;
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; -2.0
;
; Unless required by applicable law or agreed to in writing, software
distributed under the ... | null | https://raw.githubusercontent.com/AlfrescoLabs/technical-validation/bd1b4b83f6a5e9dd150eedbeebecd30970d3b4aa/src/clojure/alfresco_technical_validation/impl/loc_counter.clj | clojure |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing pe... | Copyright © 2014 ( )
distributed under the License is distributed on an " AS IS " BASIS ,
This file is part of an unsupported extension to Alfresco .
(ns alfresco-technical-validation.impl.loc-counter
(:require [clojure.string :as s]
[clojure.tools.logging :as log]
[clojure.ja... |
0e02d5e698351f01448e545ea84c9000048c0838e4a6c75398f532e0d2206e48 | Bodigrim/poly | Sparse.hs | -- |
-- Module: Data.Poly.Sparse
Copyright : ( c ) 2019
Licence : BSD3
Maintainer : < >
--
-- Sparse polynomials with a 'Num' instance.
--
@since 0.3.0.0
--
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE PatternSynonyms #-}
module Data.Poly.Sparse
( Poly
, V... | null | https://raw.githubusercontent.com/Bodigrim/poly/6c90b18f7cbbf3a4d5d1e25a05fe4aca2b4d31fa/src/Data/Poly/Sparse.hs | haskell | |
Module: Data.Poly.Sparse
Sparse polynomials with a 'Num' instance.
# LANGUAGE PatternSynonyms #
| Make a 'Poly' from a list of (power, coefficient) pairs.
>>> :set -XOverloadedLists
>>> toPoly [(0,1),(1,2),(2,3)] :: VPoly Integer
>>> toPoly [(0,0),(1,0),(2,0)] :: UPoly Int
| Create a monomial from ... | Copyright : ( c ) 2019
Licence : BSD3
Maintainer : < >
@since 0.3.0.0
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
module Data.Poly.Sparse
( Poly
, VPoly
, UPoly
, unPoly
, toPoly
, leading
, monomial
, scale
, pattern X
, eval
, subst
, deriv
, integra... |
bf405ffe2227ed32b8cbf0555222914786b9a498f77cfdb19ef21c78677cc36f | ijvcms/chuanqi_dev | red_guild_mod.erl | %%%-------------------------------------------------------------------
@author yubing
( C ) 2016 , < COMPANY >
%%% @doc
%%% 活动 全服相关活动,限量
%%% @end
Created : 23 . 二月 2016 17:27
%%%-------------------------------------------------------------------
-module(red_guild_mod).
-behaviour(gen_server).
-include("common... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/red/red_guild_mod.erl | erlang | -------------------------------------------------------------------
@doc
活动 全服相关活动,限量
@end
-------------------------------------------------------------------
gen_server callbacks
API
===================================================================
API
==========================================================... | @author yubing
( C ) 2016 , < COMPANY >
Created : 23 . 二月 2016 17:27
-module(red_guild_mod).
-behaviour(gen_server).
-include("common.hrl").
-include("record.hrl").
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-define(SERVER, ?MODULE).
-record(state, {}).
-ex... |
a7e8541d3fa458b716b3267e4046135d0f60526e08b04ef526b7d3b48238ed36 | brendanhay/amazonka | CreateAccess.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE StrictData #-}
# LANGUAGE TypeFamilies #
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - binds #
# OPTIONS_GHC -fno - warn - unused -... | null | https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-transfer/gen/Amazonka/Transfer/CreateAccess.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Module : Amazonka.Transfer.CreateAccess
Stability : auto-generated
Used by administrators to choose which groups in the directory should
have access to upload and download files over the enabled protocols
to transfer files to the server. An administ... | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - binds #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
De... |
d2fca4861ddec02e6ecb79aeba8ff0eaf3481acf27d0f05a98f21db9e3f7a78b | haroldcarr/learn-haskell-coq-ml-etc | RNT.hs | # OPTIONS_GHC -fno - warn - type - defaults #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ExistentialQuantification #
module RankNTypes.RNT where
{-
Rank-N types
/~ghc/latest/docs/html/users_guide/glasgow_exts.html#arbitrary-rank-polymorphism
Contents
- Intro
- Relation to Existentials
---------------------------------... | null | https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/ghc-extensions/src/RankNTypes/RNT.hs | haskell | # LANGUAGE RankNTypes #
Rank-N types
/~ghc/latest/docs/html/users_guide/glasgow_exts.html#arbitrary-rank-polymorphism
Contents
- Intro
- Relation to Existentials
------------------------------------------------------------------------------
Intro
Haskell '98 types are Rank-1. Equivalent:
implied universal quant... | # OPTIONS_GHC -fno - warn - type - defaults #
# LANGUAGE ExistentialQuantification #
module RankNTypes.RNT where
two :: forall a b. a -> b -> a
one = const
two = const
thr = const
Rank-2 type because can only be expressed as two levels ( i.e. , not merged ):
' forall ' appearing within left - hand si... |
be5682eb48aa4ce6aac58bc62109a8cf33507257bbfb118cca88c4f5e1511f43 | lambdaisland/kaocha-cucumber | gherkin.clj | (ns lambdaisland.cucumber.gherkin
(:require [clojure.java.io :as io]
[lambdaisland.cucumber.jvm :as jvm])
(:import [cucumber.runtime.model CucumberFeature]
[gherkin.ast Background Comment DataTable DocString Examples Feature GherkinDocument Location Node Scenario ScenarioOutline Step TableCel... | null | https://raw.githubusercontent.com/lambdaisland/kaocha-cucumber/b4d36f5e5b65cae123503909cbab22d5dc6083a3/src/lambdaisland/cucumber/gherkin.clj | clojure | source is private without a getter :( | (ns lambdaisland.cucumber.gherkin
(:require [clojure.java.io :as io]
[lambdaisland.cucumber.jvm :as jvm])
(:import [cucumber.runtime.model CucumberFeature]
[gherkin.ast Background Comment DataTable DocString Examples Feature GherkinDocument Location Node Scenario ScenarioOutline Step TableCel... |
6dc3fa3947ae7cbc372430b7c3532c15a7cf5d535c9e18ca61257c36e8541737 | dyzsr/ocaml-selectml | cmm_helpers.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/asmcomp/cmm_helpers.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Cmm
val bind :
string -> expression -> (expression -> expression) -> expression
val bind_load :
... |
59a9183cc44fe59f5c3be8ee21c0e7776fd811a7f731c649df478f36dfe2f30e | braveclojure/cftbat-code | code.clj | (+ 1 2)
= > 3
(defn wisdom
[words]
(str words ", Daniel-san"))
(wisdom "Always bathe on Fridays")
= > " Always bathe on Fridays , "
(defn year-end-evaluation
[]
(if (> (rand) 0.5)
"You get a raise!"
"Better luck next year!"))
(defn analyze-file
[filename]
(analysis (slurp filename)))
(de... | null | https://raw.githubusercontent.com/braveclojure/cftbat-code/006fbe19c8ef9a3db66c458991fb613e5824ee7f/05/code.clj | clojure | => "Bloodthunder"
base case is reached, so return accumulating-total
=> "My boa constrictor is so sassy LOL!"
Peg Thing examples
=> (1 3 6 10 15)
=> false
=> true
=> {}
=> {}
=> nil
=> ("a" "b")
=> ("a" "c" "b") | (+ 1 2)
= > 3
(defn wisdom
[words]
(str words ", Daniel-san"))
(wisdom "Always bathe on Fridays")
= > " Always bathe on Fridays , "
(defn year-end-evaluation
[]
(if (> (rand) 0.5)
"You get a raise!"
"Better luck next year!"))
(defn analyze-file
[filename]
(analysis (slurp filename)))
(de... |
f6a2fc28e6fd7dc281b14e00a83e127c5fc346513c49e99c0a651ba14de84661 | janestreet/jane-street-build-server | std_types.ml | open Core_kernel
module Package_checksum = String
module Package_name = String
module Opam_switch = String
module Package_metadata = struct
type t =
{ name : string
; external_dependencies : Package_name.t list
; internal_dependencies : Package_name.t list
}
[@@deriving s... | null | https://raw.githubusercontent.com/janestreet/jane-street-build-server/7dd5dacfae33a361ba10ea93c8b9b21a9ce812ef/common/std_types.ml | ocaml | open Core_kernel
module Package_checksum = String
module Package_name = String
module Opam_switch = String
module Package_metadata = struct
type t =
{ name : string
; external_dependencies : Package_name.t list
; internal_dependencies : Package_name.t list
}
[@@deriving s... | |
3d8348c94b2d2b24840f6090c065493b263a3a9ad6d6c017558e4c23d85b4ba8 | henryw374/cljc.java-time | iso_fields.cljs | (ns cljc.java-time.temporal.iso-fields (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [IsoFields]]))
(def week-based-year (goog.object/get java.time.temporal.IsoFields "WEEK_BASED_YEAR"))
(def w... | null | https://raw.githubusercontent.com/henryw374/cljc.java-time/2e47e8104bc2ec7f68a01bf751a7b9a2dee391b4/src/cljc/java_time/temporal/iso_fields.cljs | clojure | (ns cljc.java-time.temporal.iso-fields (:refer-clojure :exclude [abs get range format min max next name resolve short]) (:require [cljc.java-time.extn.calendar-awareness] [goog.object] [java.time.temporal :refer [IsoFields]]))
(def week-based-year (goog.object/get java.time.temporal.IsoFields "WEEK_BASED_YEAR"))
(def w... | |
fa2abb18b9463c89a9065d8c6f65f89841ab771d369f1ca4ed17f8e7a3be33f1 | cac-t-u-s/om-sharp | modulations.lisp | ;============================================================================
; om#: visual programming language for computer-assisted music composition
;============================================================================
;
; This program is free software. For information on usage
; and redistribution, see... | null | https://raw.githubusercontent.com/cac-t-u-s/om-sharp/74aa97891177de1d167aa5963be00f0d453a3bcd/src/packages/basic/functions/modulations.lisp | lisp | ============================================================================
om#: visual programming language for computer-assisted music composition
============================================================================
This program is free software. For information on usage
and redistribution, see the "... | File author : ,
(in-package :om)
(defun train (freqs dur)
(t0 0) (rep (list 0.0))
(loop while (< t0 realdur) do
(let ((f0 (x-transfer freqs t0)))
(if (< f0 delta) (incf t0 (/ 1.0 delta))
(progn
(incf t0 (/ 1 (float f0)))
(pushr t... |
b07e2ca657f053a79163eda13b3d35f9b95a48c9425f2cf48f1b097134d70789 | levex/haskell-doom | Render.hs | # LANGUAGE ExistentialQuantification #
# LANGUAGE RecordWildCards #
module Render where
import Control.Monad.IO.Class
import Graphics.GL
import Linear
import Graphics.Program
import qualified Game.Waddle as WAD
type Vertex2D = V2 GLfloat
vertexToVect :: WAD.Vertex -> V2 GLfloat
vertexToVect (WAD.Vertex x y)
= V2 ... | null | https://raw.githubusercontent.com/levex/haskell-doom/30ec4e0c5fa6bf10cbce99e27e3d7027afbdb980/src/Render.hs | haskell | # LANGUAGE ExistentialQuantification #
# LANGUAGE RecordWildCards #
module Render where
import Control.Monad.IO.Class
import Graphics.GL
import Linear
import Graphics.Program
import qualified Game.Waddle as WAD
type Vertex2D = V2 GLfloat
vertexToVect :: WAD.Vertex -> V2 GLfloat
vertexToVect (WAD.Vertex x y)
= V2 ... | |
03a4eb3dc7ae8a312b1f029b1120e8ddc43cf874561814386884999142b49193 | SHoltzen/dice | Bdd.ml | why is this here ? For some reason , the static object file for rsdd is not
linked in and recognizable by unless you reference an external symbol
* before * is imported , so I reference a symbol here .
You do not want to know how long it took me to resolve this .
linked in and recognizable by C... | null | https://raw.githubusercontent.com/SHoltzen/dice/acaac792a75d9b993b73d94037324beb452ee08e/lib/Bdd.ml | ocaml | original source: -ctypes/issues/541 | why is this here ? For some reason , the static object file for rsdd is not
linked in and recognizable by unless you reference an external symbol
* before * is imported , so I reference a symbol here .
You do not want to know how long it took me to resolve this .
linked in and recognizable by C... |
1379123d93da5a1fd68285c19cbcf08cfc5bee681c5254576c3872b89c0829aa | sjoerdvisscher/data-category | Cube.hs | # LANGUAGE TypeFamilies , GADTs , RankNTypes , TypeOperators , UndecidableInstances , NoImplicitPrelude #
-----------------------------------------------------------------------------
-- |
-- Module : Data.Category.Cube
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer :
-- Stability : exp... | null | https://raw.githubusercontent.com/sjoerdvisscher/data-category/11fc0ca8e5cea28e5aef71de3aa5df7cabe8020b/Data/Category/Cube.hs | haskell | ---------------------------------------------------------------------------
|
Module : Data.Category.Cube
License : BSD-style (see the file LICENSE)
Maintainer :
Stability : experimental
Portability : non-portable
The cube category.
------------------------------------------------------------... | # LANGUAGE TypeFamilies , GADTs , RankNTypes , TypeOperators , UndecidableInstances , NoImplicitPrelude #
module Data.Category.Cube where
import Data.Kind (Type)
import Data.Category
import Data.Category.Product
import Data.Category.Functor
import Data.Category.Monoidal
import Data.Category.Limit
data Z
data S n
... |
ef8f327c89cf2c267a3df9833e9d46fe7c01d768ac72a52ec8fbcb41624910e4 | tschady/advent-of-code | hex.clj | (ns aoc.hex
(:require
[aoc.grid :as grid]
[clojure.core.matrix :as mat]))
;; [resource on hex-coord systems and functions](/)
(def dir->delta
{:pointy-top {"w" [-1 0 1]
"e" [1 0 -1]
"nw" [0 -1 1]
"ne" [1 -1 0]
"sw" [-1 1 0]
"s... | null | https://raw.githubusercontent.com/tschady/advent-of-code/4d119897230821f545dca5b4cba1f8024372639d/src/aoc/hex.clj | clojure | [resource on hex-coord systems and functions](/) | (ns aoc.hex
(:require
[aoc.grid :as grid]
[clojure.core.matrix :as mat]))
(def dir->delta
{:pointy-top {"w" [-1 0 1]
"e" [1 0 -1]
"nw" [0 -1 1]
"ne" [1 -1 0]
"sw" [-1 1 0]
"se" [0 1 -1]}
:flat-top {"n" [0 -1 1]
... |
b2be9a944e80c9ed3574cce60fc2801d3e930525a2422e68a76edb82e500ba55 | penpot/penpot | import.cljs | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.dashboard.import
(:require
[app.common.data :as d]
[app.common.data.macros :as dm]
... | null | https://raw.githubusercontent.com/penpot/penpot/762681a42165f16b58c886bb342877fd444040be/frontend/src/app/main/ui/dashboard/import.cljs | clojure |
Copyright (c) KALEIDOS INC
pending-import? (> (->> @state :files (filter #(= (:status %) :importing)) count) 0)
dispose uris when the component is umount | 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 /.
(ns app.main.ui.dashboard.import
(:require
[app.common.data :as d]
[app.common.data.macros :as dm]
[app.common.logging :as log]
[... |
377932bb95b47cb7917b777d13fa10c4a8a9cebf7c0ed6b85fbed9c181dce7de | iitalics/iotapass | classes.rkt | #lang racket/base
(provide
; for definitions
terminal-spec
nonterminal-spec
production
form
; for templates or patterns
known-metavar-id
nonterminal-metavar-id
terminal-metavar-id
known-production-id
language+metavar)
(require
(prefix-in ast: "../ast/decl.rkt")
"bindings.rkt"
; (prefix-in ast:t: "../ast/... | null | https://raw.githubusercontent.com/iitalics/iotapass/6b97b45377d49e687469cff4a0956f66a00af6d4/iopass/private/syntax/classes.rkt | racket | for definitions
for templates or patterns
(prefix-in ast:t: "../ast/template.rkt")
-------------------------------------------
patterns for define- macros
-------------------------------------------
<terminal-spec> ::=
[<id> ... ::= <pred-id>]
| [<id> ... ::= <pred-id> #:compare <eq-id>]
| [<id> ... :... | #lang racket/base
(provide
terminal-spec
nonterminal-spec
production
form
known-metavar-id
nonterminal-metavar-id
terminal-metavar-id
known-production-id
language+metavar)
(require
(prefix-in ast: "../ast/decl.rkt")
"bindings.rkt"
(for-template racket/base)
(rename-in syntax/parse [attribute @])
racket/m... |
620c3eb511301c51b5cc58cf76da3058479c68ba0c778abf2cdfa09ad39c3280 | phaul/chess | PVStore.hs | -- | Simple module that stores the PV between iterative deepening iterations
module Chess.PVStore
( PVStore
-- * Constructor
, mkPVStore
-- * Manipulation
, insert
, clearUpTo
-- * Query
, heuristics
) where
import qualified Data.Vector as V
import ... | null | https://raw.githubusercontent.com/phaul/chess/b9c71a0389ed44360caed4b830208ce346211cb8/Chess/PVStore.hs | haskell | | Simple module that stores the PV between iterative deepening iterations
* Constructor
* Manipulation
* Query
| store from the PV
| truncate to given length
the new move list with the heuristics applied
^ distance from start depth ( or in other words real depth )
^ previous move list | module Chess.PVStore
( PVStore
, mkPVStore
, insert
, clearUpTo
, heuristics
) where
import qualified Data.Vector as V
import Data.Vector ((!))
import Data.List.Extras
import Chess.Move
newtype PVStore = PVStore (V.Vector Move)
| The empty
... |
c3ea77a7884cfbd80dd32c37863c1994b680ec7459ae417bb8ca20ff7afd8cda | emil0r/ez-database | core.clj | (ns ez-database.test.core
(:require [clojure.java.jdbc :as jdbc]
[ez-database.core :as db]
[joplin.core :as joplin]
[joplin.jdbc.database]))
(defn run [target & args]
(let [db-spec (-> target :db :db-spec)]
(jdbc/insert-multi! db-spec "test" [:id] [[0] [42]])))
(def db-sp... | null | https://raw.githubusercontent.com/emil0r/ez-database/eb269f411a18c8a4e90761e8ca0c7210a8851057/test/ez_database/test/core.clj | clojure | (ns ez-database.test.core
(:require [clojure.java.jdbc :as jdbc]
[ez-database.core :as db]
[joplin.core :as joplin]
[joplin.jdbc.database]))
(defn run [target & args]
(let [db-spec (-> target :db :db-spec)]
(jdbc/insert-multi! db-spec "test" [:id] [[0] [42]])))
(def db-sp... | |
a52cfd6a38a4d9a8366c1096ce47169bf57699de1de87aeef7ebf03c2ed71eaf | hexlet-basics/exercises-racket | test.rkt | #lang racket
(require (only-in rackunit check-equal? test-begin))
(require "index.rkt")
(test-begin
(check-equal? telephone "iphone"))
| null | https://raw.githubusercontent.com/hexlet-basics/exercises-racket/ae3a45453584de1e5082c841178d4e43dd47e08a/modules/20-definitions/30-modules/test.rkt | racket | #lang racket
(require (only-in rackunit check-equal? test-begin))
(require "index.rkt")
(test-begin
(check-equal? telephone "iphone"))
| |
146b04f44e17aea01fabef565dfe0231fdff8702ff80f6cc22affd852bca7efc | fccm/OCamlSDL2 | sdlaudio.ml | OCamlSDL2 - An OCaml interface to the SDL2 library
Copyright ( C ) 2013
This software is provided " AS - IS " , without any express or implied warranty .
In no event will the authors be held liable for any damages arising from
the use of this software .
Permission is granted to anyone to use this... | null | https://raw.githubusercontent.com/fccm/OCamlSDL2/01fa29187cab90052d2581eb509d1bca1a85418f/src/sdlaudio.ml | ocaml | Audio | OCamlSDL2 - An OCaml interface to the SDL2 library
Copyright ( C ) 2013
This software is provided " AS - IS " , without any express or implied warranty .
In no event will the authors be held liable for any damages arising from
the use of this software .
Permission is granted to anyone to use this... |
5907b4642f3431a84fa436cefafe2f15c2835a50cb9300359b6881849908975a | kowainik/hintman | TrailingNewlines.hs | module Hintman.Hint.TrailingNewlines
( getTrailingNewlinesComments
) where
import Data.Vector (Vector)
import Hintman.Core.Hint (Hint, HintType (TrailingNewlines), Line (..), simpleSuggestion)
import Hintman.Core.PrInfo (ModifiedFile (..))
import Hintman.Core.Review (Comment (..), createComment)
import... | null | https://raw.githubusercontent.com/kowainik/hintman/3dd38fa789098fbadfc905be801853942b81b7be/src/Hintman/Hint/TrailingNewlines.hs | haskell | | Creates 'Comment's on removing trailing newlines in all modified files.
| Spawns a "TrailingNewlines" comment on a given line.
| Take only empty lines from the end of the file | module Hintman.Hint.TrailingNewlines
( getTrailingNewlinesComments
) where
import Data.Vector (Vector)
import Hintman.Core.Hint (Hint, HintType (TrailingNewlines), Line (..), simpleSuggestion)
import Hintman.Core.PrInfo (ModifiedFile (..))
import Hintman.Core.Review (Comment (..), createComment)
import... |
c752c1f35d70b12d8016d4fddb38544a4c466efa6f3c12464d9cc43f85d1ab5f | ober/metis | web.lisp | (in-package :metis)
(defvar *app* (make-instance 'ningle:<app>))
(defvar *server* "localhost")
(defvar *port* "5002")
(defun create-url (verb name)
"Create a url given the verb root and name of items"
(format nil "~~{<tr><td><a href=\"http://~a:~a/~a?~a=~~A\"> ~~:* ~~A </aref></td></tr>~~}" *server* *port* verb n... | null | https://raw.githubusercontent.com/ober/metis/8d785206b2ef92cd9b29a8b6a62efe03a475f6a1/src/old/web.lisp | lisp |
}
}
| (in-package :metis)
(defvar *app* (make-instance 'ningle:<app>))
(defvar *server* "localhost")
(defvar *port* "5002")
(defun create-url (verb name)
"Create a url given the verb root and name of items"
(format nil "~~{<tr><td><a href=\"http://~a:~a/~a?~a=~~A\"> ~~:* ~~A </aref></td></tr>~~}" *server* *port* verb n... |
265304cffe56b899f9471d7fe160f2719030e924d5d5fd81e435d55f44aee874 | cartazio/tlaps | tlapm_args.ml |
* tlapm_args.ml --- arguments for tlapm
*
*
* Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
* tlapm_args.ml --- arguments for tlapm
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev: 34540 $";;
open Ext
open Params
let show_config = ref false
let s... | null | https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/tlapm_args.ml | ocaml |
* tlapm_args.ml --- arguments for tlapm
*
*
* Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
* tlapm_args.ml --- arguments for tlapm
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev: 34540 $";;
open Ext
open Params
let show_config = ref false
let s... | |
d3ef369ae3210336f625afa7ba3563e9530978dc3e37515305b92e0092b3af7d | KenDickey/Crosstalk | st-error-obj.scm | ;;; FILE: "st-error-obj.scm"
IMPLEMENTS : Exception , ExceptionSet , UnhandledError ,
;;; Error, Notification, Warning,
Message , MessageSend , MessageNotUnderstood .
;;; See also "st-blockClosure.scm" for exception handling code.
;;; See "st-conditions.scm" for #asException
... | null | https://raw.githubusercontent.com/KenDickey/Crosstalk/c4a315baf039e714980e14f5b07860632b9bd0e6/st-error-obj.scm | scheme | FILE: "st-error-obj.scm"
Error, Notification, Warning,
See also "st-blockClosure.scm" for exception handling code.
See "st-conditions.scm" for #asException
receiver -- nil or the receiver
handlerContext -- Continuation captured at handler invocation in #on:do:
See "st-blockC... | IMPLEMENTS : Exception , ExceptionSet , UnhandledError ,
Message , MessageSend , MessageNotUnderstood .
AUTHOR :
DATE : 08 February 2017
(define ExceptionSet
(newSubclassName:iVars:cVars:
Object
'ExceptionSet '(exceptions) '())
)
(define Exception
(newSubclassName:iVars:cVars:... |
787ed481a3c1274c8dac07abcdc8894742a9f7688152363bbfcbcd59b0f909a4 | mariachris/Concuerror | ets_new_failure_2.erl | -module(ets_new_failure_2).
-export([ets_new_failure_2/0]).
-export([scenarios/0]).
scenarios() -> [{?MODULE, inf, dpor}].
ets_new_failure_2() ->
Parent = self(),
Fun =
fun() ->
ets:new(table, [named_table, public]),
Parent ! ok,
receive
... | null | https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/dpor/src/ets_new_failure_2.erl | erlang | -module(ets_new_failure_2).
-export([ets_new_failure_2/0]).
-export([scenarios/0]).
scenarios() -> [{?MODULE, inf, dpor}].
ets_new_failure_2() ->
Parent = self(),
Fun =
fun() ->
ets:new(table, [named_table, public]),
Parent ! ok,
receive
... | |
c137009f2d0eba03d2aaa7134398d7b778a1ae0670695906374c3289814ac1a1 | rundis/acme-buddy | roles.clj | (ns acme-webstore.roles)
(def acme-store-roles
{:customer 10 :store-admin 11})
(defn any-granted? [req roles]
(seq
(clojure.set/intersection
(set (map :role-id (-> req :auth-user :user-roles)))
(set (vals (select-keys acme-store-roles roles))))))
| null | https://raw.githubusercontent.com/rundis/acme-buddy/4134ee33391c858c1c6c517eb22f65aaff34a40e/acme-webstore/src/acme_webstore/roles.clj | clojure | (ns acme-webstore.roles)
(def acme-store-roles
{:customer 10 :store-admin 11})
(defn any-granted? [req roles]
(seq
(clojure.set/intersection
(set (map :role-id (-> req :auth-user :user-roles)))
(set (vals (select-keys acme-store-roles roles))))))
| |
ca7574cd5653d56916dca466eef27970143a4cc89cafe127339feeb9ab35df91 | maximedenes/native-coq | tacred.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/pretyping/tacred.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
Errors
***************************... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open Errors
open Util... |
3f8dfc6483d63c1d60af419443a0576a39679e10297712a8d868796409a32ae2 | PEZ/rich4clojure | problem_119.clj | (ns rich4clojure.hard.problem-119
(:require [hyperfiddle.rcf :refer [tests]]))
= Win at Tic - Tac - Toe =
By 4Clojure user :
;; Difficulty: Hard
;; Tags: [game]
;;
As in Problem 73 , a tic - tac - toe board is represented by
a two dimensional vector . X is represented by :x , O is
;; represented by :o, and... | null | https://raw.githubusercontent.com/PEZ/rich4clojure/2ccfac041840e9b1550f0a69b9becbdb03f9525b/src/rich4clojure/hard/problem_119.clj | clojure | Difficulty: Hard
Tags: [game]
represented by :o, and empty is represented by :e.
Create a function that accepts a game piece and board
as arguments, and returns a set (possibly empty) of all
valid board placements of the game piece which would
result in an immediate win.
Board coordinates should be as in ... | (ns rich4clojure.hard.problem-119
(:require [hyperfiddle.rcf :refer [tests]]))
= Win at Tic - Tac - Toe =
By 4Clojure user :
As in Problem 73 , a tic - tac - toe board is represented by
a two dimensional vector . X is represented by :x , O is
example , [ 0 1 ] is the topmost row , center position .
(def ... |
3c030f5171596b0dffcf1d79ceca4c1fc8c8d3289443396f7b4a5b2a38cdaa1d | JonasDuregard/testing-feat | lambdas.hs | -- This module contains an enumeration of well scoped lambda terms
{-# LANGUAGE DeriveDataTypeable #-}
import Test.Feat.Enumerate
import Control.Enumerable
import Test.Feat.Access
import Test.Feat
-- Shows off a bit
main = do
putStr "There are this many closed lambda terms with 100 lambdas/applications: "
let n =... | null | https://raw.githubusercontent.com/JonasDuregard/testing-feat/a1b32842a8cc8ab467d93a9f97f2365330a02113/examples/lambda-terms/lambdas.hs | haskell | This module contains an enumeration of well scoped lambda terms
# LANGUAGE DeriveDataTypeable #
Shows off a bit
Finite numeric types
All closed lambda expressions
Count the number of terms of a given size
Select any term of a given size
The rest is just pretty-printing stuff |
import Test.Feat.Enumerate
import Control.Enumerable
import Test.Feat.Access
import Test.Feat
main = do
putStr "There are this many closed lambda terms with 100 lambdas/applications: "
let n = count 100
print n
putStr $ "Here is one of them: "
putStrLn $ pretty (selectTerm 100 (n `div` 2))
putStrLn "He... |
21f65ad9b92bd95e64abfe8d9f3962d2ea283b21a266f98b2779ba3b34ba5ca4 | REPROSEC/dolev-yao-star | Spec_Frodo_KEM.ml | open Prims
let (crypto_kem_keypair :
Spec_Frodo_Params.frodo_alg ->
Spec_Frodo_Params.frodo_gen_a ->
Spec_Frodo_Random.state_t ->
((FStar_UInt8.t, unit) Lib_Sequence.lseq * (FStar_UInt8.t, unit)
Lib_Sequence.lseq))
=
fun a ->
fun gen_a ->
fun state -> Spec_Frodo_KEM_KeyGen.cr... | null | https://raw.githubusercontent.com/REPROSEC/dolev-yao-star/d97a8dd4d07f2322437f186e4db6a1f4d5ee9230/concrete/hacl-star-snapshot/ml/Spec_Frodo_KEM.ml | ocaml | open Prims
let (crypto_kem_keypair :
Spec_Frodo_Params.frodo_alg ->
Spec_Frodo_Params.frodo_gen_a ->
Spec_Frodo_Random.state_t ->
((FStar_UInt8.t, unit) Lib_Sequence.lseq * (FStar_UInt8.t, unit)
Lib_Sequence.lseq))
=
fun a ->
fun gen_a ->
fun state -> Spec_Frodo_KEM_KeyGen.cr... | |
aeed410eaa960cfb249e58eee9690c4fb83ceeee70fa8f45754624405fefc3d1 | alexander-yakushev/foreclojure-android | logic.clj | (ns org.bytopia.foreclojure.logic
(:require [clojure.string :as str]
clojure.walk)
(:import [java.util.concurrent FutureTask TimeUnit TimeoutException]
java.io.StringWriter))
(def ^:const timeout 3000)
(defn thunk-timeout
"Takes a function and waits for it to finish executing for the pred... | null | https://raw.githubusercontent.com/alexander-yakushev/foreclojure-android/912529f9ea7c13874ffaa37a015c62a5165223b5/src/clojure/org/bytopia/foreclojure/logic.clj | clojure | Poor man's clojailing here, of course it isn't enough.
(run-code-in-repl "(do (println \"foo\") (/ 1 0))")
(check-suggested-solution
(recur))" ["(= __ true)"] #{}) | (ns org.bytopia.foreclojure.logic
(:require [clojure.string :as str]
clojure.walk)
(:import [java.util.concurrent FutureTask TimeUnit TimeoutException]
java.io.StringWriter))
(def ^:const timeout 3000)
(defn thunk-timeout
"Takes a function and waits for it to finish executing for the pred... |
3f1c18431de108b0ebc9176131b8ce8089fd341f06dbf8377c85116750310d65 | sweirich/pi-forall | Parser.hs | {- pi-forall language -}
-- | A parsec-based parser for the concrete syntax
module Parser
(
parseModuleFile,
parseModuleImports,
parseExpr,
expr,
decl,
testParser
)
where
import Syntax hiding (moduleImports)
import qualified Unbound.Generics.LocallyNameless as Unbound
import Text.Parsec hi... | null | https://raw.githubusercontent.com/sweirich/pi-forall/93de2eee777c9123bf67534b7b8453656370542d/full/src/Parser.hs | haskell | pi-forall language
| A parsec-based parser for the concrete syntax
| Parse a module declaration from the given filepath.
| Test an 'LParser' on a String.
| Parse an expression.
The internal state for generating fresh names,
the type of the object being parsed
-
- Top level declarations
-
datatype declarations... |
module Parser
(
parseModuleFile,
parseModuleImports,
parseExpr,
expr,
decl,
testParser
)
where
import Syntax hiding (moduleImports)
import qualified Unbound.Generics.LocallyNameless as Unbound
import Text.Parsec hiding (State,Empty)
import Text.Parsec.Expr(Operator(..),Assoc(..),buildExpre... |
f7039c1d02f39f9999dd57e8bd550ef165a7568b9c8092f628c8cffb0fc2c71c | leksah/leksah-server | Tool.hs | # LANGUAGE ScopedTypeVariables #
# LANGUAGE CPP #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE LambdaCase #
# OPTIONS_GHC -fno - warn - orphans #
-----------------------------------------------------------------------------
--
-- Module : IDE.Utils.Tool
Copyright : ( c ) , ... | null | https://raw.githubusercontent.com/leksah/leksah-server/d4b735c17a36123dc97f79fabf1e9310d74984a6/src/IDE/Utils/Tool.hs | haskell | # LANGUAGE OverloadedStrings #
---------------------------------------------------------------------------
Module : IDE.Utils.Tool
License : GPL
Maintainer : <>
Stability : provisional
Portability :
| Support for running external tools. Written mainly for GHCi but with
| support for others in... | # LANGUAGE ScopedTypeVariables #
# LANGUAGE CPP #
# LANGUAGE RecordWildCards #
# LANGUAGE LambdaCase #
# OPTIONS_GHC -fno - warn - orphans #
Copyright : ( c ) ,
module IDE.Utils.Tool (
ToolOutput(..),
toolline,
isToolPrompt,
ToolCommand(..),
ToolState(..),
toolProcess,
newToolS... |
11f724cf8cdfb16955141fe02f59d04df1e0882ba830211f70a78be183652906 | kevinlynx/dhtcrawler | crawler_app.erl | %%
%% crawler_app.erl
06.19.2013
%%
-module(crawler_app).
-behaviour(application).
-export([start/2, stop/1]).
-export([start/0, startboth/0, stop/0]).
start(_Type, _StartArgs) ->
File = config_file_name(),
io:format("load config file ~s ", [File]),
case file:consult(File) of
{error, _Reason} ->
do_defau... | null | https://raw.githubusercontent.com/kevinlynx/dhtcrawler/b8a486dbebb57f9672a773a6901d59ddae97a278/src/crawler_app.erl | erlang |
crawler_app.erl
|
06.19.2013
-module(crawler_app).
-behaviour(application).
-export([start/2, stop/1]).
-export([start/0, startboth/0, stop/0]).
start(_Type, _StartArgs) ->
File = config_file_name(),
io:format("load config file ~s ", [File]),
case file:consult(File) of
{error, _Reason} ->
do_default_start(File);
{ok, [C... |
6bb8ddac75b7c1877d811239bfe5fdfcdb82c8aa14279730e4707c9920fb8f12 | unisonweb/unison | HashQualified.hs | # OPTIONS_GHC -fno - warn - orphans #
| Syntax - related combinators for HashQualified ( to / from string types ) .
module Unison.Syntax.HashQualified
( fromString,
fromText,
unsafeFromString,
unsafeFromText,
unsafeFromVar,
toString,
toText,
toVar,
)
where
import qualified Data.Text ... | null | https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/unison-syntax/src/Unison/Syntax/HashQualified.hs | haskell | Parses possibly-hash-qualified into structured type.
breakOn leaves the '#' on the RHS
starts with '#', which is true as of the time of this writing, but not great. | # OPTIONS_GHC -fno - warn - orphans #
| Syntax - related combinators for HashQualified ( to / from string types ) .
module Unison.Syntax.HashQualified
( fromString,
fromText,
unsafeFromString,
unsafeFromText,
unsafeFromVar,
toString,
toText,
toVar,
)
where
import qualified Data.Text ... |
1b291874a82a34d06a604a9df51a2fb9d726e616479e2ace9b06f9ee6057f819 | clojurewerkz/cassaforte | schema_test.clj | (ns clojurewerkz.cassaforte.schema-test
(:refer-clojure :exclude [update])
(:require [clojurewerkz.cassaforte.test-helper :refer [*session* with-keyspace]]
[clojurewerkz.cassaforte.cql :refer :all]
[clojurewerkz.cassaforte.metadata :as md]
[clojure.test ... | null | https://raw.githubusercontent.com/clojurewerkz/cassaforte/bd0b3ff44c5d7f993798270032aa41be0e8209c2/test/clojure/clojurewerkz/cassaforte/schema_test.clj | clojure | (ns clojurewerkz.cassaforte.schema-test
(:refer-clojure :exclude [update])
(:require [clojurewerkz.cassaforte.test-helper :refer [*session* with-keyspace]]
[clojurewerkz.cassaforte.cql :refer :all]
[clojurewerkz.cassaforte.metadata :as md]
[clojure.test ... | |
73c60dd7af26f2b26c386ef4a3acbe8bc9d460f4f4472bf0fa425107bbf74a9c | OCamlPro/typerex-lint | lint_db_types.ml | (**************************************************************************)
(* *)
(* OCamlPro Typerex *)
(* *)
Copyrigh... | null | https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/tools/ocp-lint/db/lint_db_types.ml | ocaml | ************************************************************************
OCamlPro Typerex
This file is distributed ... | Copyright OCamlPro 2011 - 2016 . All rights reserved .
( GNU General Public Licence version 3.0 ) .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE... |
5b24b558e390df84a7489f0b0922dac72673d4770a5e58bc2c4c6fee90aa6894 | NorfairKing/smos | Types.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DerivingVia #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE OverloadedStrings #-}
module Smos.Report.Clock.Types where
import Autodocodec
import Data.Aeson (FromJSON, ToJSON)
import Data.List.NonEmpty (NonEmpty (..))
import Data.Text (Text)
import Data.Time
import Data.Validity
imp... | null | https://raw.githubusercontent.com/NorfairKing/smos/489f5b510c9a30a3c79fef0a0d1a796464705923/smos-report/src/Smos/Report/Clock/Types.hs | haskell | # LANGUAGE OverloadedStrings #
Note: the order of these constructors matters
Number of significant digits
Intermediary types | # LANGUAGE DeriveGeneric #
# LANGUAGE DerivingVia #
# LANGUAGE FlexibleInstances #
module Smos.Report.Clock.Types where
import Autodocodec
import Data.Aeson (FromJSON, ToJSON)
import Data.List.NonEmpty (NonEmpty (..))
import Data.Text (Text)
import Data.Time
import Data.Validity
import Data.Validity.Path ()
import Da... |
6675c868e097929f30321b15c9433e082b318ea5f2bfce3c955d435adfffe8da | f-me/carma-public | CallerType.hs | # LANGUAGE TemplateHaskell #
module Carma.Model.CallerType where
import Data.Text (Text)
import Data.Typeable
import Carma.Model.Types()
import Carma.Model.PgTypes()
import Data.Model
import Data.Model.View
import Data.Model.TH
data CallerType = CallerType
{ident :: PK Int CallerType ""
,label :: F Text "l... | null | https://raw.githubusercontent.com/f-me/carma-public/82a9f44f7d919e54daa4114aa08dfec58b01009b/carma-models/src/Carma/Model/CallerType.hs | haskell | # LANGUAGE TemplateHaskell #
module Carma.Model.CallerType where
import Data.Text (Text)
import Data.Typeable
import Carma.Model.Types()
import Carma.Model.PgTypes()
import Data.Model
import Data.Model.View
import Data.Model.TH
data CallerType = CallerType
{ident :: PK Int CallerType ""
,label :: F Text "l... | |
52adff3f128f1a4ae292b04c256e6a4ac3e1809f1fa23742ec78b872bdca9dbd | martijnbastiaan/doctest-parallel | Bar.hs | # LANGUAGE CPP #
module WithCInclude.Bar where
#include "WithCInclude.h"
-- |
-- >>> x
42
x :: Int
x = THE_DEFINE
| null | https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/331ed56d2a9f6d00aa7d3de3a9affd368d2158af/test/integration/WithCInclude/Bar.hs | haskell | |
>>> x | # LANGUAGE CPP #
module WithCInclude.Bar where
#include "WithCInclude.h"
42
x :: Int
x = THE_DEFINE
|
4ff42a6c5b7689ae730763c663cdd5452c9600d314757cc8fc264669d818dfe2 | Rhywun/get-programming-with-haskell | Lesson19.hs | module Lesson19 where
import Data.List ( intercalate )
import qualified Data.Map as Map
import Data.Maybe
-- Consider this
groceries :: Map.Map String Int
groceries = Map.fromList [("Milk", 1), ("Candy bars", 10), ("Cheese blocks", 2)]
ct1 = Map.lookup "... | null | https://raw.githubusercontent.com/Rhywun/get-programming-with-haskell/b9cf06f725b2ef038d69ed49f7d2900f55e98ca3/Unit03/Lesson19.hs | haskell | Consider this
Just 1
Nothing
Introducing Maybe: solving missing values with types
Just Heart
Nothing
Just Heart
Nothing
QC1
The problem with null
[ Nothing , Just Brain ]
[Nothing, Just Brain]
[Nothing,Just Heart,Nothing,Nothing,Nothing,Nothing,Just Heart,Nothing,..etc..]
2
2
Computing with May... | module Lesson19 where
import Data.List ( intercalate )
import qualified Data.Map as Map
import Data.Maybe
groceries :: Map.Map String Int
groceries = Map.fromList [("Milk", 1), ("Candy bars", 10), ("Cheese blocks", 2)]
data Organ = Heart | Brain | Kidn... |
0bb36b0e2c3961c7f7f2f19d68e006d05890c674c1e8089e3d8e6c246477d5f5 | macourtney/Conjure | test_flow.clj | (ns flows.test-flow
(:use conjure.flow.base)
(:require [conjure.view.util :as view-util]))
(def-render-only-actions :list)
(def-action show
(render)) | null | https://raw.githubusercontent.com/macourtney/Conjure/1d6cb22d321ea75af3a6abe2a5bc140ad36e20d1/conjure_flow/test/flows/test_flow.clj | clojure | (ns flows.test-flow
(:use conjure.flow.base)
(:require [conjure.view.util :as view-util]))
(def-render-only-actions :list)
(def-action show
(render)) | |
c7e32da6475d5722cf04772190df7e88c83dcd8e234b66c2e5441ca0485b11f2 | ocaml-community/calendar | test_fcalendar.ml | (**************************************************************************)
(* *)
(* This file is part of Calendar. *)
(* *)
Copyright... | null | https://raw.githubusercontent.com/ocaml-community/calendar/f119658010cc9045e1866eddadc4a776adbcc146/tests/test_fcalendar.ml | ocaml | ************************************************************************
This file is part of Calendar.
... | Copyright ( C ) 2003 - 2011
Lesser General Public License version 2.1 as published by the
Free Software Foundation , with a special linking exception ( usual
See the GNU Lesser General Public Licence version 2.1 for more
open CalendarLib;;
open Fcalendar;;
include Gen_test;;
reset... |
65317664e4eb25ac39080adefdbff12ff7b8124d092d0e8e6fdc8114c23da6a4 | typedbyte/switch | Connection.hs | # LANGUAGE AllowAmbiguousTypes #
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Device.Nintendo.Switch.Connection where
attoparsec
import Data.Attoparsec.ByteString (Parser, maybeRes... | null | https://raw.githubusercontent.com/typedbyte/switch/f83ca31619cbc81ec7a7862f60543855ebbc1c85/src/Device/Nintendo/Switch/Connection.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE KindSignatures #
base
bytestring
switch
is used to detect controllers and manage their connections.
finished talking to the controllers.
| A convenient wrapper around 'init' and 'exit'.
controller that can be detected and connected to.
standard: Nintendo
| A 'Co... | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Device.Nintendo.Switch.Connection where
attoparsec
import Data.Attoparsec.ByteString (Parser, maybeResult, parse)
import Control.Exception (Exception, bracket, throwIO)
import... |
21d9d8f79c21f4080fa4973a72ea71156cb47c3c215f9fff61c19f29cfd801b6 | dmbaturin/ocaml-tsort | tsort.mli | (**
Topological sort
*)
type 'a sort_result =
| Sorted of 'a list
| ErrorCycle of 'a list
* Perform a normal topological sort on a directed acyclic graph ( DAG ) .
The result is in " dependency order " , i.e. if there 's an edge from
A to B , then B comes first . For example ,
[ sort [ 1 , [... | null | https://raw.githubusercontent.com/dmbaturin/ocaml-tsort/f83a3e28b9dc6838330abef7764211db0df102aa/src/lib/tsort.mli | ocaml | *
Topological sort
* Perform a topological sort on a directed graph that may have cycles.
Uses [find_strongly_connected_components] and [sort].
Like with [sort], missing nodes are silently added to the graph.
For example, [find_strongly_connected_components
["A", ["B"]; "B", ["C"]; "C", ["B"; "D"]... |
type 'a sort_result =
| Sorted of 'a list
| ErrorCycle of 'a list
* Perform a normal topological sort on a directed acyclic graph ( DAG ) .
The result is in " dependency order " , i.e. if there 's an edge from
A to B , then B comes first . For example ,
[ sort [ 1 , [ 2 ] ; 2 , [ ] ] ] returns ... |
6a027fa03b907823b07ed8efd812e95777fda8a191d16ec1b7c3b9e30fcc73f7 | plande/grand-scheme | function.scm | (define-module (grand function)
#:use-module (grand examples)
#:use-module (grand syntax)
#:use-module (srfi srfi-1)
#:export (impose-arity
arity
name/source
clip
pass
compose/values
iterations
partial
maybe
either
neither
both))
(define (impose-arity n pr... | null | https://raw.githubusercontent.com/plande/grand-scheme/72726e90e176a0f9b8eabd0e58ff73e2c9cd1c2e/grand/function.scm | scheme | (assert (procedure? procedure))
to arity)
to . functions)
to sqrt ) = = = > 2 )
(assert (lambda (f x) | (define-module (grand function)
#:use-module (grand examples)
#:use-module (grand syntax)
#:use-module (srfi srfi-1)
#:export (impose-arity
arity
name/source
clip
pass
compose/values
iterations
partial
maybe
either
neither
both))
(define (impose-arity n pr... |
8519bfacf804eaa32026739f193786ff8e416145516046200319cfb3048bb45c | serokell/servant-util | Like.hs | # LANGUAGE DeriveFunctor #
module Servant.Util.Combinators.Filtering.Filters.Like
( pattern Esc
, CaseSensitivity (..)
, mkLikePattern
, LikePattern (..)
, FilterLike (..)
, mkLikePatternUnsafe
, filterContains
) where
import Universum
import qualified Data.Map as M
import qualified D... | null | https://raw.githubusercontent.com/serokell/servant-util/29d308821383c41fef3a0a76bd308b6962f6fc82/servant-util/src/Servant/Util/Combinators/Filtering/Filters/Like.hs | haskell | | Whether search is case-sensitive.
| Simple regexp pattern, @.@ and @*@ signed will be considered.
Escaping is performed via prefixing with backslash.
| Support for SQL's LIKE syntax.
| Construct a filter that matches when text contains given substring. | # LANGUAGE DeriveFunctor #
module Servant.Util.Combinators.Filtering.Filters.Like
( pattern Esc
, CaseSensitivity (..)
, mkLikePattern
, LikePattern (..)
, FilterLike (..)
, mkLikePatternUnsafe
, filterContains
) where
import Universum
import qualified Data.Map as M
import qualified D... |
84908f9944ee44b46b3afdb3f2e2db3f96886d9e1b48aecf09c81939d0289a41 | bytekid/mkbtt | tPTPParser.mli | type token =
| LSYM of (string)
| USYM of (string)
| INPUT_CLAUSE
| CNF
| AXIOM
| HYPOTHESIS
| CONJECTURE
| NEGCONJECTURE
| EQUAL
| EQUALSIGN
| DISEQUALSIGN
| LPAREN
| RPAREN
| LBRACKET
| RBRACKET
| PLUSPLUS
| MINUSMINUS
| COMMA
| DOT
| SLASH
| QUOTE
| INCLUDE
| EOF
val st... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/tPTPParser.mli | ocaml | type token =
| LSYM of (string)
| USYM of (string)
| INPUT_CLAUSE
| CNF
| AXIOM
| HYPOTHESIS
| CONJECTURE
| NEGCONJECTURE
| EQUAL
| EQUALSIGN
| DISEQUALSIGN
| LPAREN
| RPAREN
| LBRACKET
| RBRACKET
| PLUSPLUS
| MINUSMINUS
| COMMA
| DOT
| SLASH
| QUOTE
| INCLUDE
| EOF
val st... | |
c81fdc82ba8da205f9538f91847ea0a8840a3622fb02a21109a570be3b809f16 | input-output-hk/cardano-ledger | Genesis.hs | module Cardano.Chain.Genesis (
module X,
)
where
import Cardano.Chain.Genesis.AvvmBalances as X
import Cardano.Chain.Genesis.Config as X
import Cardano.Chain.Genesis.Data as X
import Cardano.Chain.Genesis.Delegation as X
import Cardano.Chain.Genesis.Generate as X
import Cardano.Chain.Genesis.Hash as X
import Cardano... | null | https://raw.githubusercontent.com/input-output-hk/cardano-ledger/31c0bb1f5e78e40b83adfd1a916e69f47fdc9835/eras/byron/ledger/impl/src/Cardano/Chain/Genesis.hs | haskell | module Cardano.Chain.Genesis (
module X,
)
where
import Cardano.Chain.Genesis.AvvmBalances as X
import Cardano.Chain.Genesis.Config as X
import Cardano.Chain.Genesis.Data as X
import Cardano.Chain.Genesis.Delegation as X
import Cardano.Chain.Genesis.Generate as X
import Cardano.Chain.Genesis.Hash as X
import Cardano... | |
61da9044286160f6c28daef308cd8944f94e085cbfd70ea8daae7fb674c59312 | lamdu/lamdu | Sugar.hs | -- | Test sugar convert results (including its actions)
module Tests.Sugar (test) where
import qualified Control.Lens as Lens
import Control.Monad ((>=>))
import Control.Monad.Once (OnceT)
import qualified Data.Property as Property
import qualified Lamdu.Annotations as Annotations
import qualified... | null | https://raw.githubusercontent.com/lamdu/lamdu/d9aabd4569270470f83e00f1972ed8b5163a17d8/test/Tests/Sugar.hs | haskell | | Test sugar convert results (including its actions)
| Verify that a sugar action does not result in a crash
-changing-tag-results-in-inference-error
-re-ordering-let-items-results-in-inference-error
-extract-of-binder-body-with-let-items-may-cause-inference-failure
-wrong-result-when-inlining-from-hole-results
... |
module Tests.Sugar (test) where
import qualified Control.Lens as Lens
import Control.Monad ((>=>))
import Control.Monad.Once (OnceT)
import qualified Data.Property as Property
import qualified Lamdu.Annotations as Annotations
import qualified Lamdu.Calc.Term as V
import Lamdu.Data.Db.Lay... |
0d734448cdf00b1fcdb83957e353020595101dc632dbf13e97155893397f274c | inria-parkas/sundialsml | ark_brusselator1D_FEM_slu.ml | --------------------------------------------------------------- { { {
* Programmer(s ): @ SMU
* ---------------------------------------------------------------
* OCaml port : , , Jan 2016 .
* ---------------------------------------------------------------
* Copyright ( c ) 2015 , Southern Methodist... | null | https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/arkode/C_serial/ark_brusselator1D_FEM_slu.ml | ocaml | [variables are grouped according to spatial location]
evaluation macros for variables, basis functions and basis derivatives
user data structure
number of intervals
mesh node locations
constant forcing on u
steady-state value of w
diffusion coeff for u
diffusion coeff for v
diffusion co... | --------------------------------------------------------------- { { {
* Programmer(s ): @ SMU
* ---------------------------------------------------------------
* OCaml port : , , Jan 2016 .
* ---------------------------------------------------------------
* Copyright ( c ) 2015 , Southern Methodist... |
b51f55a7a4d1b6c442bde3b3d2df4a20bf0a98777dd6219ebc3b117e7f559090 | onaio/milia | http_test.clj | (ns milia.api.http-test
(:require [midje.sweet :refer [fact facts => provided throws]]
[milia.api.http :refer [parse-http]]
[milia.api.io :refer [http-request parse-response]]))
(def http-4xx-codes
"Valid HTTP 4xx codes
Source: en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_E... | null | https://raw.githubusercontent.com/onaio/milia/aade5d53c1bbdba9d33c684edd32eb0c6e7fdffc/test/clj/milia/api/http_test.clj | clojure | filename*=UTF-8"}}
filename*=UTF-8"}} | (ns milia.api.http-test
(:require [midje.sweet :refer [fact facts => provided throws]]
[milia.api.http :refer [parse-http]]
[milia.api.io :refer [http-request parse-response]]))
(def http-4xx-codes
"Valid HTTP 4xx codes
Source: en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_E... |
6067214e4e2815e5fcc660189e319b0614213ab6aec9145f7a1a70158a8b6cf4 | g000001/MacLISP-compat | DEFVSY.lisp | ;;; DEFVSY -*-Mode:Lisp;Package:SI;Lowercase:T-*-
;;; **************************************************************************
* * * * * NIL * * * * * * NIL / MACLISP / LISPM Structure Definer Aux , Part 2 * * * * * * * * *
;;; **************************************************************************
* * ... | null | https://raw.githubusercontent.com/g000001/MacLISP-compat/a147d09b98dca4d7c089424c3cbaf832d2fd857a/DEFVSY.lisp | lisp | DEFVSY -*-Mode:Lisp;Package:SI;Lowercase:T-*-
**************************************************************************
**************************************************************************
**************************************************************************
"Version # of STRUCT=INFO guys to all... | * * * * * NIL * * * * * * NIL / MACLISP / LISPM Structure Definer Aux , Part 2 * * * * * * * * *
* * * * * * * * ( c ) Copyright 1981 Massachusetts Institute of Technology * * * * * * * *
Auxillary file for DEFVST -- can stand alone in runtime environment .
In MacLISP , this file is INCLUDE'd in DEFVST for NAD... |
7f4a23c35779181ac8b37e740e12270b88e4e71d74bab224b731157f03e47beb | wellposed/numerical | Array.hs | # LANGUAGE PolyKinds #
{-# LANGUAGE BangPatterns #-}
# LANGUAGE DataKinds #
# LANGUAGE TypeFamilies #
module Numerical.Array where
--import Numerical.Array.Shape
--data MArray world rep lay (view:: Locality) sh elem
lets do just IO and not ST for now ?
or bite the primstate bullet now ?
lets do just... | null | https://raw.githubusercontent.com/wellposed/numerical/6b458232760b20674487bd9f8442b0991ce59423/src/Numerical/Array.hs | haskell | # LANGUAGE BangPatterns #
import Numerical.Array.Shape
data MArray world rep lay (view:: Locality) sh elem
data family Array world rep lay (view:: Locality) sh elm
only Row and Column Major have dense formats that are unique across ALL
possible ranks, not so simple for others. Make different data instances per form... | # LANGUAGE PolyKinds #
# LANGUAGE DataKinds #
# LANGUAGE TypeFamilies #
module Numerical.Array where
lets do just IO and not ST for now ?
or bite the primstate bullet now ?
lets do just IO and not ST for now?
or bite the primstate bullet now?
-}
there s several points in the design space of a... |
5ae227031391022719e4afe05a2b2be2794400cc284a85e7cb21c7feb93285a8 | bigmlcom/clj-bigml | source.clj | Copyright 2012 - 2017 BigML
Licensed under the Apache License , Version 2.0
;; -2.0
(ns bigml.api.source
"Offers functions specific for BigML sources.
"
(:import (java.io ByteArrayInputStream File StringWriter)
(org.apache.commons.validator.routines UrlValidator))
(:require (clojure.java [io... | null | https://raw.githubusercontent.com/bigmlcom/clj-bigml/61579ad473d7e191ed06fb6338847dcb0a664497/src/bigml/api/source.clj | clojure | -2.0 | Copyright 2012 - 2017 BigML
Licensed under the Apache License , Version 2.0
(ns bigml.api.source
"Offers functions specific for BigML sources.
"
(:import (java.io ByteArrayInputStream File StringWriter)
(org.apache.commons.validator.routines UrlValidator))
(:require (clojure.java [io :as io]... |
77991c6eb2cf131cfb7fa1f26e897726fd1e71ab7f084bff6818bcdc9973bf1a | UU-ComputerScience/uhc | TySyn4.hs | {- ----------------------------------------------------------------------------------------
what : type synonym, in particular a simple renaming, ty eta reducible
expected: ok, no output, no errors
---------------------------------------------------------------------------------------- -}
module TySyn4 where
... | null | https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/99/TySyn4.hs | haskell | ----------------------------------------------------------------------------------------
what : type synonym, in particular a simple renaming, ty eta reducible
expected: ok, no output, no errors
---------------------------------------------------------------------------------------- |
module TySyn4 where
import UHC.BoxArray
type Arr x = BoxArray x
indexArr :: Arr x -> Int -> x
indexArr = indexArray
main = return ()
|
6a4ff65f9806cd24050fc83961248cd7cb689c4a4ad200b922c32cb86e7694bf | ocamllabs/ocaml-modular-implicits | debuginfo.mli | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/asmcomp/debuginfo.mli | ocaml | *********************************************************************
OCaml
... | , projet Gallium , INRIA Rocquencourt
Copyright 2006 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
type kind = Dinfo_call | Dinfo_raise
t... |
d76ec5ce3d4e128703253f6fe014137fea151f26d9d692528c0db3abb0e39d9b | niyarin/red-paren | red-paren.scm | (include "./lib/rules-plus.scm")
(include "./rules.scm")
(include "./source-info.scm")
(define-library (color-paren red-paren)
(import (scheme base) (scheme cxr) (scheme write)
(niyarin rules+)
(color-paren red-paren default-rules)
(color-paren red-paren source-info))
(export red... | null | https://raw.githubusercontent.com/niyarin/red-paren/4ce87f6d45334b724b3daef25000eb9c16e2d483/src/red-paren.scm | scheme | (include "./lib/rules-plus.scm")
(include "./rules.scm")
(include "./source-info.scm")
(define-library (color-paren red-paren)
(import (scheme base) (scheme cxr) (scheme write)
(niyarin rules+)
(color-paren red-paren default-rules)
(color-paren red-paren source-info))
(export red... | |
b0de9a8f77a5ed51d0cfa371b42701846d14e765124cdfc2314d49cb0cbab5a2 | tov/dssl2 | language.rkt | #lang racket/base
(provide #%datum
#%require
(rename-out [top-undefined #%top])
(all-from-out "private/operators.rkt"
"private/prims.rkt"
"private/syntax.rkt"))
(require "private/operators.rkt"
"private/prims.rkt"
"private/synt... | null | https://raw.githubusercontent.com/tov/dssl2/953e23942cf9502f40505d8080af27bc4d5999a1/language.rkt | racket | #lang racket/base
(provide #%datum
#%require
(rename-out [top-undefined #%top])
(all-from-out "private/operators.rkt"
"private/prims.rkt"
"private/syntax.rkt"))
(require "private/operators.rkt"
"private/prims.rkt"
"private/synt... | |
78875313c210a07f06b373804ee7100512d4a2f0ea2315fa4c87ba963181078c | spawnfest/eep49ers | wxCalendarEvent.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2008 - 2020 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxCalendarEvent.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 2008 - 2020 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(wxCalendarEvent).
-include("wxe.hrl").
-export([getDate/1,getWeekDay/1]).
-export([getClientData/1,getExtra... |
8b6548e020a4be0b3a85e40101dad3580e8e495f8c95b359dfdefd75e554806c | puppetlabs/puppetdb | storage_utils_test.clj | (ns puppetlabs.puppetdb.scf.storage-utils-test
(:require
[cheshire.core :as json]
[clojure.test :refer :all]
[puppetlabs.puppetdb.scf.storage-utils
:refer [db-serialize index-exists?
munge-jsonb-for-storage
pg-extension?]]
[puppetlabs.puppetdb.testutils.db :refer [with-test-db]... | null | https://raw.githubusercontent.com/puppetlabs/puppetdb/b3d6d10555561657150fa70b6d1e609fba9c0eda/test/puppetlabs/puppetdb/scf/storage_utils_test.clj | clojure | (ns puppetlabs.puppetdb.scf.storage-utils-test
(:require
[cheshire.core :as json]
[clojure.test :refer :all]
[puppetlabs.puppetdb.scf.storage-utils
:refer [db-serialize index-exists?
munge-jsonb-for-storage
pg-extension?]]
[puppetlabs.puppetdb.testutils.db :refer [with-test-db]... | |
39d80ce0c4d97e8e9915ecd74684104b00cfc7a7244b20d5601a8f3196dbfaf6 | fukamachi/clozure-cl | l0-init.lisp | -*-Mode : LISP ; Package : CCL -*-
;;;
Copyright ( C ) 2009 Clozure Associates
Copyright ( C ) 1994 - 2001 Digitool , Inc
This file is part of Clozure CL .
;;;
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as the
;... | null | https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/level-0/l0-init.lisp | lisp | Package : CCL -*-
file "LICENSE". The LLGPL consists of a preamble and the LGPL,
conflict, the preamble takes precedence.
Clozure CL is referenced in the preamble as the "LIBRARY."
The LLGPL is also available online at
Features for #+/- conditionalization:
Hash-consing support (special primitiv... | Copyright ( C ) 2009 Clozure Associates
Copyright ( C ) 1994 - 2001 Digitool , Inc
This file is part of Clozure CL .
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as the
which is distributed with Clozure CL as ... |
a9fba819c456d73421b0ce36b0f68269d17b0657c674d354c8fafc3578eac898 | fulcrologic/semantic-ui-wrapper | ui_divider.cljc | (ns com.fulcrologic.semantic-ui.elements.divider.ui-divider
(:require
[com.fulcrologic.semantic-ui.factory-helpers :as h]
#?(:cljs ["semantic-ui-react$Divider" :as Divider])))
(def ui-divider
"A divider visually segments content into groups.
Props:
- as (elementType): An element type to render as ... | null | https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/elements/divider/ui_divider.cljc | clojure | (ns com.fulcrologic.semantic-ui.elements.divider.ui-divider
(:require
[com.fulcrologic.semantic-ui.factory-helpers :as h]
#?(:cljs ["semantic-ui-react$Divider" :as Divider])))
(def ui-divider
"A divider visually segments content into groups.
Props:
- as (elementType): An element type to render as ... | |
b1ade093d63a7ed45854c16e9d7744c3c2a5c27c44fead9ca18bf2f197a8d60a | junegunn/mini-file-server | project.clj | (defproject mini-file-server "0.2.2"
:description "Simple file server"
:url "-file-server"
:license {:name "MIT"
:url ""}
:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojure/clojurescript "1.10.893"]
[org.clojure/tools.logging "1.1.0"]
[joda-... | null | https://raw.githubusercontent.com/junegunn/mini-file-server/156fff7c42dd9a999c6435db09ad0f92ee2e7a27/project.clj | clojure | (defproject mini-file-server "0.2.2"
:description "Simple file server"
:url "-file-server"
:license {:name "MIT"
:url ""}
:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojure/clojurescript "1.10.893"]
[org.clojure/tools.logging "1.1.0"]
[joda-... | |
d2e7eb06c714d28371cc2edd3418966bf20179ee2eed752c876c2ab0bab034e8 | ecavallo/ptt | check.ml | (* This file implements the semantic type-checking algorithm described in the paper. *)
module M = Mode
module D = Domain
module Syn = Syntax
module E = Eval
module Q = Quote
type env_entry =
| DVar of {level : D.lvl; width : int}
| Var of {level : D.lvl; tp : D.t; modality : M.modality}
| Def of {term : D.t; tp... | null | https://raw.githubusercontent.com/ecavallo/ptt/1234c3b645e1b99307c7a44cad87ffff382528f9/src/lib/check.ml | ocaml | This file implements the semantic type-checking algorithm described in the paper. | module M = Mode
module D = Domain
module Syn = Syntax
module E = Eval
module Q = Quote
type env_entry =
| DVar of {level : D.lvl; width : int}
| Var of {level : D.lvl; tp : D.t; modality : M.modality}
| Def of {term : D.t; tp : D.t}
| Restrict of Syn.idx
| Lock of M.modality
| TopLevel of {mode : M.mode; t... |
6bf3b80cc2708da22031a523ebd8ec5ab22e184bf917931d620a9686ae6c3a22 | metabase/metabase | setup.clj | (ns metabase.setup
(:require
[environ.core :as env]
[metabase.db.connection :as mdb.connection]
[metabase.models.setting :as setting :refer [defsetting Setting]]
[metabase.models.user :refer [User]]
[toucan.db :as db])
(:import
(java.util UUID)))
(set! *warn-on-reflection* true)
(defsetting setu... | null | https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/src/metabase/setup.clj | clojure | once used, it is cleared out, never to be used again."
fetch the value directly from the DB; *do not* rely on cached value, in case a different instance came along and
already created it
value or setting DB values and the like
Once a User is created it's impossible for this to ever become falsey -- deleting the l... | (ns metabase.setup
(:require
[environ.core :as env]
[metabase.db.connection :as mdb.connection]
[metabase.models.setting :as setting :refer [defsetting Setting]]
[metabase.models.user :refer [User]]
[toucan.db :as db])
(:import
(java.util UUID)))
(set! *warn-on-reflection* true)
(defsetting setu... |
1e5a687f4eeea4c8a858f1d1f6d9113e23cd8df4960a155efbf25a8007967cea | dyzsr/ocaml-selectml | np.ml | type color = White | Gray | Blue | Black
external make_block: nativeint -> color -> nativeint -> Obj.t
= "make_block"
external make_raw_pointer: nativeint -> Obj.t
= "make_raw_pointer"
let do_gc root =
Gc.compact(); (* full major + compaction *)
root
| null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/runtime-naked-pointers/np.ml | ocaml | full major + compaction | type color = White | Gray | Blue | Black
external make_block: nativeint -> color -> nativeint -> Obj.t
= "make_block"
external make_raw_pointer: nativeint -> Obj.t
= "make_raw_pointer"
let do_gc root =
root
|
475948760750d8425d51d662dcc95d47c05c4abca8152d9004fac801e02967df | liquidz/babashka-test-action | core_test.clj | (ns foo.core-test
(:require
[clojure.test :as t]
[foo.core :as sut]))
(t/deftest myinc-test
(t/is (= 2 (sut/myinc 1)))
(t/is (= 3 (sut/myinc 2))))
| null | https://raw.githubusercontent.com/liquidz/babashka-test-action/ccdd116d9f372c77c2d3167f88d29d50bea5947a/test/test/foo/core_test.clj | clojure | (ns foo.core-test
(:require
[clojure.test :as t]
[foo.core :as sut]))
(t/deftest myinc-test
(t/is (= 2 (sut/myinc 1)))
(t/is (= 3 (sut/myinc 2))))
| |
2e5f283a79fbeb7dd7632a26edc43589d4b95e44339033a997ae56bf6ae64d86 | herbelin/coq-hh | preferences.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/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/ide/preferences.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
mutable use_utf8_notation : b... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
type pref =
{
mutab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.