_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 |
|---|---|---|---|---|---|---|---|---|
6f6fdd37dbf252bd7e16a630abd84b25fe113c9e26f0cf6e1b3053d136f8152b | fukamachi/clozure-cl | heap-image.lisp | -*- Mode : Lisp ; Package : CCL -*-
;;;
Copyright ( C ) 2002 - 2009 Clozure Associates
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
;;; file "LICENSE". The LLGPL consist... | null | https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/xdump/heap-image.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
(def-foreign-type
openmcl-image-section-header
(:struct nil
(:... | Copyright ( C ) 2002 - 2009 Clozure Associates
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 the file " LGPL " . Where these
(in-p... |
163b4a123720790f3a776cb0f763af569f522b3ecce1c4e67d6ed973cade42bc | ertugrulcetin/jme-clj | hello_effects.clj | ;; Please start your REPL with `+test` profile
(ns examples.beginner-tutorials.hello-effects
"Clojure version of "
(:require
[jme-clj.core :refer :all])
(:import
(com.jme3.effect ParticleMesh$Type)
(com.jme3.math ColorRGBA)))
(defn init []
(let [fire (particle-emitter "Emitter" ParticleMesh$Typ... | null | https://raw.githubusercontent.com/ertugrulcetin/jme-clj/167ef8f9e6396cc6e3c234290c5698c098fcad28/test/examples/beginner_tutorials/hello_effects.clj | clojure | Please start your REPL with `+test` profile | (ns examples.beginner-tutorials.hello-effects
"Clojure version of "
(:require
[jme-clj.core :refer :all])
(:import
(com.jme3.effect ParticleMesh$Type)
(com.jme3.math ColorRGBA)))
(defn init []
(let [fire (particle-emitter "Emitter" ParticleMesh$Type/Triangle 30)
mat-fire (material "Co... |
5975ea114e028dcb234d18d33caa0ae6712a5802554573b4a7d77c39ed92e2b0 | janestreet/bonsai | main.ml | open! Core
open! Async_kernel
open! Bonsai_web
open Async_js
open Bonsai_chat_open_source_common
open Composition_infix
let run_refresh_rooms ~conn ~rooms_list_var =
let%map rooms = Rpc.Rpc.dispatch_exn Protocol.List_rooms.t conn () in
Bonsai.Var.set rooms_list_var rooms
;;
let refresh_rooms ~conn ~rooms_list_var... | null | https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/open_source/rpc_chat/client/main.ml | ocaml | open! Core
open! Async_kernel
open! Bonsai_web
open Async_js
open Bonsai_chat_open_source_common
open Composition_infix
let run_refresh_rooms ~conn ~rooms_list_var =
let%map rooms = Rpc.Rpc.dispatch_exn Protocol.List_rooms.t conn () in
Bonsai.Var.set rooms_list_var rooms
;;
let refresh_rooms ~conn ~rooms_list_var... | |
97970b4151cec4e654cc0b4d7a36477fef8d1274e91e484361d533c61a2692d2 | herbelin/coq-hh | topconstr.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/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/interp/topconstr.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
********************************... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open Util
open Names
... |
9cca88e250b19d73e76d44ef756ef8288c55f723926fd1b0b75f91fe5a0e2d05 | jacius/lispbuilder | raw-audio-test.lisp |
(in-package #:sdl-examples)
(defparameter *wav-file* "example.wav")
(defparameter *audio-length* 0)
(defparameter *audio-remaining* 0)
(defparameter *audio-position* nil)
(defparameter *audio-buffer-start* nil)
(defparameter *file-found* nil)
(defparameter *audio-opened* nil)
(defparameter *status* "")
(cffi:defcall... | null | https://raw.githubusercontent.com/jacius/lispbuilder/e693651b95f6818e3cab70f0074af9f9511584c3/lispbuilder-sdl/examples/raw-audio-test.lisp | lisp | Play audio only when data remains
callbacks from foreign threads
Store the initial play position of the buffer
Set the callback used to fill the audio buffer
Open the audio device
Start playing the audio stream
Pause the audio stream
Lock the audio device to halt all callbacks
Close the audio device
NOTE: De... |
(in-package #:sdl-examples)
(defparameter *wav-file* "example.wav")
(defparameter *audio-length* 0)
(defparameter *audio-remaining* 0)
(defparameter *audio-position* nil)
(defparameter *audio-buffer-start* nil)
(defparameter *file-found* nil)
(defparameter *audio-opened* nil)
(defparameter *status* "")
(cffi:defcall... |
55ec6a6873c78ae1a67d68bc8486f159fe2506fc6e84bf7affa83800e480809b | haskell-compat/deriving-compat | Deriving.hs | |
Module : Data . Bounded . Deriving
Copyright : ( C ) 2015 - 2017
License : BSD - style ( see the file LICENSE )
Maintainer :
Portability : Template Haskell
Exports functions to mechanically derive ' Bounded ' instances .
Module: Data.Bounded.Deriving
Copyright: (C) 2015-2017 ... | null | https://raw.githubusercontent.com/haskell-compat/deriving-compat/23e62c003325258e925e6c2fe7e46fafdeaf199a/src/Data/Bounded/Deriving.hs | haskell | * 'Bounded'
* 'deriveBounded' limitations
$constraints | |
Module : Data . Bounded . Deriving
Copyright : ( C ) 2015 - 2017
License : BSD - style ( see the file LICENSE )
Maintainer :
Portability : Template Haskell
Exports functions to mechanically derive ' Bounded ' instances .
Module: Data.Bounded.Deriving
Copyright: (C) 2015-2017 ... |
c71bf6858a02cd3132bac661358127a9fed0c4398936630da5594563fe52b606 | mransan/ocaml-protoc | pb_logger.ml |
The MIT License ( MIT )
Copyright ( c ) 2016 < >
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
... | null | https://raw.githubusercontent.com/mransan/ocaml-protoc/e43b509b9c4a06e419edba92a0d3f8e26b0a89ba/src/compilerlib/pb_logger.ml | ocaml |
The MIT License ( MIT )
Copyright ( c ) 2016 < >
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
... | |
ceef3a7a63b40e000718af2e38488b6f2d780ced6ab49fdb8c7c1d942abcaf19 | dgiot/dgiot | dgiot_meter_app.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 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 of the... | null | https://raw.githubusercontent.com/dgiot/dgiot/c9f2f78af71692ba532e4806621b611db2afe0c9/apps/dgiot_meter/src/dgiot_meter_app.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 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_meter_app).
-emqx_plugin(?MODULE).
-behaviour(application).
-export([start/2, stop/1])... |
deede0fb71ebe930311199c5a8b885491f0715c1478ff810ab31a6f9f2203a7e | bootstrapworld/curr | LuigisPizza.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname LuigisPizza) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decim... | null | https://raw.githubusercontent.com/bootstrapworld/curr/443015255eacc1c902a29978df0e3e8e8f3b9430/courses/algebra/resources/source-files/LuigisPizza.rkt | racket | about the language level of this file in a form that our tools can easily process.
cost : String -> Number
given a Topping, produce the cost of a pizza with that topping
Click "Run" and try using cost in the interactions window! | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname LuigisPizza) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(define (cost topping)
(cond
[(string=? topping "cheese")... |
843d646f4ea8540cb9dce2b659ec5c0a14304ece21fb8b7f0b00bbbe5b23ad7d | PrecursorApp/precursor | cust.clj | (ns pc.models.cust
"cust is what would usually be called user, we call it cust b/c
Clojure has already taken the name user in the repl"
(:require [clojure.set :as set]
[clojure.tools.logging :as log]
[datomic.api :refer [db q] :as d]
[pc.datomic :as pcd]
[pc.datomi... | null | https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/models/cust.clj | clojure | We'll pretend we have a type here
probably a uuid type
probably a uuid type
faster than using a datalog query
TODO: maybe these should return an entity instead of touching?
TODO: what should your team know about you?
get the least-frequent color if they're all taken | (ns pc.models.cust
"cust is what would usually be called user, we call it cust b/c
Clojure has already taken the name user in the repl"
(:require [clojure.set :as set]
[clojure.tools.logging :as log]
[datomic.api :refer [db q] :as d]
[pc.datomic :as pcd]
[pc.datomi... |
d7a4ee0a7c997649ceff20a84295da0185327a3c6226659060fff378628990fb | nyu-acsys/drift | McCarthy9100.ml |
let rec bot _ = bot ()
let fail _ = assert false
let rec mc91_without_checking_1058 set_flag_mc91_1050 s_mc91_n_1047 n_1031 =
let set_flag_mc91_1050 = true
in
let s_mc91_n_1047 = n_1031
in
if n_1031 > 100 then
n_1031 - 10
else
mc91_without_checking_1058 set_flag... | null | https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/termination/McCarthy9100.ml | ocaml | -:{v:Int | true} |
let rec bot _ = bot ()
let fail _ = assert false
let rec mc91_without_checking_1058 set_flag_mc91_1050 s_mc91_n_1047 n_1031 =
let set_flag_mc91_1050 = true
in
let s_mc91_n_1047 = n_1031
in
if n_1031 > 100 then
n_1031 - 10
else
mc91_without_checking_1058 set_flag... |
0bb5b87b2ac34cc1ba5f05578fc9c8d5178f2ba9e46ea49975b278d936e02b5f | rizo/snowflake-os | selection.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/sparc/selection.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1997 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 .
$ Id$
Instruction selection for th... |
20cc90153852cd0474f63da4a230d475981fc8bd821f7f97c736338b00381172 | dancrossnyc/multics | e-define-command.incl.lisp | ;;; BEGIN INCLUDE FILE e-define-command.incl.lisp
;;; Include File to Load Emacs Command Definition Macro
;;; HISTORY COMMENTS:
1 ) change(79 - 08 - 27,Palter ) , approve ( ) , audit ( ) ,
;;; install(86-08-20,MR12.0-1136):
;;; Initial version.
2 ) change(82 - 10 - 09,Margolin ) , approve ( ) , audit ( ... | null | https://raw.githubusercontent.com/dancrossnyc/multics/58680c486f8dcfe8ceb631d17544275ebb9171c7/library_dir_dir/include/e-define-command.incl.lisp | lisp | BEGIN INCLUDE FILE e-define-command.incl.lisp
Include File to Load Emacs Command Definition Macro
HISTORY COMMENTS:
install(86-08-20,MR12.0-1136):
Initial version.
install(86-08-20,MR12.0-1136):
audit(86-08-12,Harvey), install(86-08-20,MR12.0-1136):
to check and set (status feature e-defcom)... |
1 ) change(79 - 08 - 27,Palter ) , approve ( ) , audit ( ) ,
2 ) change(82 - 10 - 09,Margolin ) , approve ( ) , audit ( ) ,
to look in the wdir first
3 ) change(85 - 01 - 06,Margolin ) , approve(86 - 02 - 24,MCR7186 ) ,
(eval-when (compile eval)
(or (status feature e-defcom)
(load (catenate (car ... |
bc651e7b11de0341ec9a3131dd1810e3a96f5fffd8d89ca5cf71cd2d65c182e5 | jimmyrcom/HTML5-Canvas-Old-School-RPG-Map-with-Erlang-Websockets-Chat | es_websock_app.erl | -module(es_websock_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_Type, StartArgs) ->
es_websock_supervisor:start_link(StartArgs).
stop(_State) ->
ok.
| null | https://raw.githubusercontent.com/jimmyrcom/HTML5-Canvas-Old-School-RPG-Map-with-Erlang-Websockets-Chat/1c68c63e51eea76d475ce39baf6da5c807d6dbe5/es_websock_app.erl | erlang | -module(es_websock_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_Type, StartArgs) ->
es_websock_supervisor:start_link(StartArgs).
stop(_State) ->
ok.
| |
d989e828d1bf65fefbcdda7392fcb7f19e38ab114c7596125f7e109e4cc823b5 | manuel-serrano/bigloo | classfile.scm | (module jas_classfile
(import jas_lib)
(cond-expand ((not bigloo-class-generate) (include "Jas/classfile.sch")))
(export
(class JasType
code::bstring
(vect (default #f)) )
(class basic::JasType)
(class vect::JasType type::JasType)
(class JasFun::JasType tret::JasType targs)
... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/Jas/classfile.scm | scheme | int
qualified name "java.lang.Object"
pool index to a class info
int
name of the field/method
user classe name
symbolic type
type::JasType
pool index to a UTF8 unqualified name
pool index to a UTF8 encoded type
pool index to a field/method info
Errors
Types
Functions managing user global names
... | (module jas_classfile
(import jas_lib)
(cond-expand ((not bigloo-class-generate) (include "Jas/classfile.sch")))
(export
(class JasType
code::bstring
(vect (default #f)) )
(class basic::JasType)
(class vect::JasType type::JasType)
(class JasFun::JasType tret::JasType targs)
... |
d98aed6737d52682fcaab3f85a9e6aea52344aefa98339a9bfbfd1a027d63973 | exercism/erlang | example.erl | -module(example).
-export([is_paired/1]).
is_paired(Str) -> is_paired(Str, []).
is_paired([], Stack) -> Stack=:=[];
is_paired([C|More], Stack) when C=:=${ orelse C=:=$[ orelse C=:=$( -> is_paired(More, [C|Stack]);
is_paired([$}|More], [${|Stack]) -> is_paired(More, Stack);
is_paired([$]|More], [$[|Stack]) -> is_pair... | null | https://raw.githubusercontent.com/exercism/erlang/1972b1e803c4ded297054cb3925234dc239ceef9/exercises/practice/matching-brackets/.meta/example.erl | erlang | -module(example).
-export([is_paired/1]).
is_paired(Str) -> is_paired(Str, []).
is_paired([], Stack) -> Stack=:=[];
is_paired([C|More], Stack) when C=:=${ orelse C=:=$[ orelse C=:=$( -> is_paired(More, [C|Stack]);
is_paired([$}|More], [${|Stack]) -> is_paired(More, Stack);
is_paired([$]|More], [$[|Stack]) -> is_pair... | |
94e8924b9c8e5f94aafcd1dd4ebcb69101f01c2d898df3be4b3f12f4e66396f3 | janestreet/csvfields | test.ml |
* Xml Light , an small Xml parser / printer with DTD support .
* Copyright ( C ) 2003 ( )
*
* 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 2.1 ... | null | https://raw.githubusercontent.com/janestreet/csvfields/3820bb6422f118ba85f69cdbe68ef7ce049db033/xml-light/test.ml | ocaml |
* Xml Light , an small Xml parser / printer with DTD support .
* Copyright ( C ) 2003 ( )
*
* 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 2.1 ... | |
d12a4ed67a993fd9074b18ba02006e872f4c225948d6f396a3a9d145becad81d | anwarmamat/cmsc330spring19-public | testUtils.ml | open OUnit2
open P5.Utils
open P5.Lexer
open P5.Parser
open P5.SmallCTypes
open P5.TokenTypes
(* Assertion wrappers for convenience and readability *)
let assert_true b = assert_equal true b
let assert_false b = assert_equal false b
let assert_succeed () = assert_true true
(* parse utils *)
let input_handler f =
t... | null | https://raw.githubusercontent.com/anwarmamat/cmsc330spring19-public/98af1e8efc3d8756972731eaca19e55fe8febb69/project5/test/testUtils.ml | ocaml | Assertion wrappers for convenience and readability
parse utils | open OUnit2
open P5.Utils
open P5.Lexer
open P5.Parser
open P5.SmallCTypes
open P5.TokenTypes
let assert_true b = assert_equal true b
let assert_false b = assert_equal false b
let assert_succeed () = assert_true true
let input_handler f =
try
let _ = f () in assert_failure "Expected InvalidInputException, none... |
0700efcb667c9890bff3691381751e0bb83933b33da11246eadbef74af7bccba | mhaemmerle/entitas_erl | es_collection.erl | -module(es_collection).
-include("../include/es.hrl").
-export([init_with_matcher/1,
init_with_types/1,
add_entity/2,
exchange_entity/2,
remove_entity/2]).
-export([new/1,
entities/1,
matcher/1]).
%% --------------------------------------------------------------... | null | https://raw.githubusercontent.com/mhaemmerle/entitas_erl/8d7632e0901a48955d23181c3dc8177ca579ef6b/src/es_collection.erl | erlang | -----------------------------------------------------------------------------
API
-----------------------------------------------------------------------------
----------------------------------------------------------------------------- | -module(es_collection).
-include("../include/es.hrl").
-export([init_with_matcher/1,
init_with_types/1,
add_entity/2,
exchange_entity/2,
remove_entity/2]).
-export([new/1,
entities/1,
matcher/1]).
init_with_matcher(Matcher) ->
new(Matcher).
init_with_types... |
7a02f0411079f5cd65ab3505618994bbffd8f0d2270a844b54c9eef7b804149a | iambrj/imin | expose-allocation.rkt | #lang racket
(require "utilities.rkt"
"utils.rkt")
(provide expose-allocation)
(define (ccollect bytes)
(If (Prim '< `(,(Prim '+ `(,(HasType (GlobalValue 'free_ptr) 'Integer) ,(Int bytes)))
,(HasType (GlobalValue 'fromspace_end) 'Integer)))
(Void)
(Collect bytes)))
1 . Eva... | null | https://raw.githubusercontent.com/iambrj/imin/6365961b9d368c1688f0d43881a98c65a9596e0b/expose-allocation.rkt | racket | #lang racket
(require "utilities.rkt"
"utils.rkt")
(provide expose-allocation)
(define (ccollect bytes)
(If (Prim '< `(,(Prim '+ `(,(HasType (GlobalValue 'free_ptr) 'Integer) ,(Int bytes)))
,(HasType (GlobalValue 'fromspace_end) 'Integer)))
(Void)
(Collect bytes)))
1 . Eva... | |
0819402859272b547e43cc3e07e60ac51c12ffdc6fd45c28a319166537f3b231 | savonet/ocaml-posix | posix_getopt_types.ml | module Def (S : Cstubs.Types.TYPE) = struct
module Option = struct
type t = unit
let t = S.structure "option"
let name = S.field t "name" S.string
let has_arg = S.field t "has_arg" S.int
let flag = S.field t "flag" (S.ptr S.int)
let _val = S.field t "val" S.int
let () = S.seal t
end
end... | null | https://raw.githubusercontent.com/savonet/ocaml-posix/d46d011de16154b34324eae6ee6e7010138cf4af/posix-getopt/src/types/posix_getopt_types.ml | ocaml | module Def (S : Cstubs.Types.TYPE) = struct
module Option = struct
type t = unit
let t = S.structure "option"
let name = S.field t "name" S.string
let has_arg = S.field t "has_arg" S.int
let flag = S.field t "flag" (S.ptr S.int)
let _val = S.field t "val" S.int
let () = S.seal t
end
end... | |
3e2e092d4d56fa23791c78654c2354a64454253159038b8a17a376d1352ed57b | mbutterick/pollen | log.rkt | #lang racket/base
(require racket/format
racket/string
"external/logging.rkt")
(provide (all-defined-out) (all-from-out "external/logging.rkt"))
;; creates `pollen-logger` and associated functions:
;; log-pollen-fatal, log-pollen-error, log-pollen-warning,
;; log-pollen-info, and log-pollen-debug
(... | null | https://raw.githubusercontent.com/mbutterick/pollen/a4910a86dc62d1147f3aad94b56cecd6499d7aa6/pollen/private/log.rkt | racket | creates `pollen-logger` and associated functions:
log-pollen-fatal, log-pollen-error, log-pollen-warning,
log-pollen-info, and log-pollen-debug | #lang racket/base
(require racket/format
racket/string
"external/logging.rkt")
(provide (all-defined-out) (all-from-out "external/logging.rkt"))
(define-logger pollen)
(define (message . items)
(log-pollen-info (string-join (map ~a items) " ")))
(define (message-debug . items)
(log-pollen-deb... |
3f756372ce6806b8142e763979ef86a39f679a8379d535dcd07c0290143e02d2 | lpeterse/haskell-ssh | Server.hs | {-# LANGUAGE OverloadedStrings #-}
module Spec.Server ( tests ) where
import Test.Tasty
tests :: TestTree
tests = testGroup "Network.SSH.Server" []
| null | https://raw.githubusercontent.com/lpeterse/haskell-ssh/d1a614b6bf30c4932ee5a66efcae6e71680b4819/test/Spec/Server.hs | haskell | # LANGUAGE OverloadedStrings # | module Spec.Server ( tests ) where
import Test.Tasty
tests :: TestTree
tests = testGroup "Network.SSH.Server" []
|
d4d5184ca45f3aca2b0e8434b5ad9267d09742db7c0a695793ea02eac5370efc | darkleaf/publicator | show_test.clj | (ns publicator.web.controllers.post.show-test
(:require
[publicator.utils.test.instrument :as instrument]
[publicator.web.routing :as routing]
[publicator.use-cases.interactors.post.show :as interactor]
[publicator.use-cases.test.factories :as factories]
[ring.mock.request :as mock.request]
[clojure... | null | https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/web/test/publicator/web/controllers/post/show_test.clj | clojure | (ns publicator.web.controllers.post.show-test
(:require
[publicator.utils.test.instrument :as instrument]
[publicator.web.routing :as routing]
[publicator.use-cases.interactors.post.show :as interactor]
[publicator.use-cases.test.factories :as factories]
[ring.mock.request :as mock.request]
[clojure... | |
45e287ff9c7db6980f40b7af94016a0d5e670e033479c163648a34580fbcdd20 | titola/incudine | sbcl-vops.lisp | (in-package :incudine.osc)
;;; The result-type of the VOPs for x86oids in SWAP-BYTES is
SB - VM::UNSIGNED - NUM , so it is necessary to coerce to signed - num
if we use OSC : VALUE with a OSC : OUTPUT - STREAM . On the contrary ,
;;; the portable functions in `swap-bytes/portable.lisp' are optimized
;;; with (SAFE... | null | https://raw.githubusercontent.com/titola/incudine/325174a54a540f4daa67bcbb29780073c35b7b80/src/network/sbcl-vops.lisp | lisp | The result-type of the VOPs for x86oids in SWAP-BYTES is
the portable functions in `swap-bytes/portable.lisp' are optimized
with (SAFETY 0) and if the input is a signed number, the output
should also be a signed number. | (in-package :incudine.osc)
SB - VM::UNSIGNED - NUM , so it is necessary to coerce to signed - num
if we use OSC : VALUE with a OSC : OUTPUT - STREAM . On the contrary ,
(defknown swap-bytes-i32 ((signed-byte 32)) (signed-byte 32)
(movable foldable flushable)
:overwrite-fndb-silently t)
#+x86-64
(defknown sw... |
5e25faec122b1f7fe7e3f121d80ada9955aca41fb84fe6ff10b2aba608031da2 | EFanZh/EOPL-Exercises | exercise-2.13-test.rkt | #lang racket/base
(require rackunit)
(require "../solutions/exercise-2.13.rkt")
(check-pred empty-env? (empty-env))
(check-false (empty-env? (extend-env 'a 1 (empty-env))))
(check-false (empty-env? (extend-env 'b 2 (extend-env 'a 1 (empty-env)))))
(check-eqv? (apply-env (extend-env 'b 2 (extend-env 'a 1 (empty-env)))... | null | https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-2.13-test.rkt | racket | #lang racket/base
(require rackunit)
(require "../solutions/exercise-2.13.rkt")
(check-pred empty-env? (empty-env))
(check-false (empty-env? (extend-env 'a 1 (empty-env))))
(check-false (empty-env? (extend-env 'b 2 (extend-env 'a 1 (empty-env)))))
(check-eqv? (apply-env (extend-env 'b 2 (extend-env 'a 1 (empty-env)))... | |
2c65dbbcf95e46aec350eced91d97715050ad38b93fb4577f7910ba4d5ab1404 | gas2serra/mcclim-desktop | iapropos.lisp | (in-package :desktop-apropos)
;;;
;;; parameters
;;;
(defparameter *default-iapropos-max-result-length* 1000
"The max length of the result")
;;;
;;; interactive apropos
;;;
(defclass iapropos ()
((symbol-text :initform nil
:accessor iapropos-symbol-text)
(cached-symbol-scanner :initform nil)
(package-te... | null | https://raw.githubusercontent.com/gas2serra/mcclim-desktop/f85d19c57d76322ae3c05f98ae43bfc8c0d0a554/Apps/apropos/src/iapropos.lisp | lisp |
parameters
interactive apropos
generic funtions
methods
private generic functions
methods
private functions
| (in-package :desktop-apropos)
(defparameter *default-iapropos-max-result-length* 1000
"The max length of the result")
(defclass iapropos ()
((symbol-text :initform nil
:accessor iapropos-symbol-text)
(cached-symbol-scanner :initform nil)
(package-text :initform ""
:accessor iapropos-package-text)
... |
181b7a5bae473e8e772db8543dc8ea3c98117dd039602e091b55e0dcdc52c32b | fterrier/pylos | game.cljc | (ns game.game)
(defn other-color [color]
(if (= color :white) :black :white))
(defprotocol GamePosition
(board [this])
(player [this])
(outcome [this])
(generate-moves [this])
(move-allowed? [this move])
(make-move [this move]))
(defprotocol Game
(initial-game-position [this first-player]))
| null | https://raw.githubusercontent.com/fterrier/pylos/f9283cf58a32000ed271e768ab6151ac081ed37d/src/cljc/game/game.cljc | clojure | (ns game.game)
(defn other-color [color]
(if (= color :white) :black :white))
(defprotocol GamePosition
(board [this])
(player [this])
(outcome [this])
(generate-moves [this])
(move-allowed? [this move])
(make-move [this move]))
(defprotocol Game
(initial-game-position [this first-player]))
| |
fa4769c2697bfc7dcacda8bc5380762e83ffcb707ddf353ca8fba490947e74e9 | ghc/packages-Cabal | ok.test.hs | import Test.Cabal.Prelude
main = return ()
| null | https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/tests/ok.test.hs | haskell | import Test.Cabal.Prelude
main = return ()
| |
488a82526978c9d82ebc409ddee9572c4b974f304bf559ce314fbcf69bf49026 | TorXakis/TorXakis | MovingArms.hs |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and Radboud University
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and Radboud University
See LICENSE at root directory of this repository.
-}
{-# LANGUAGE OverloadedStrings #-}
modu... | null | https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/test/sqatt/src/ExploreModels/MovingArms.hs | haskell | # LANGUAGE OverloadedStrings # |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and Radboud University
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and Radboud University
See LICENSE at root directory of this repository.
-}
module ExploreModels.MovingArms (exampl... |
388c6a665e1fc4b758420797acee584fed9fc8f16d038578ea36ff78e271f692 | rizo/snowflake-os | scheduling.ml | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/asmcomp/alpha/scheduling.ml | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
$ Id$
open Arch
open Mach
The Dig... |
3c780043c0ba98d76a1933f54ca811990783787906c65a1ddc758abe8e0b2457 | JKTKops/ProtoHaskell | basic.hs | main = putStrLn "Hello world!"
| null | https://raw.githubusercontent.com/JKTKops/ProtoHaskell/437c37d7bd6d862008f86d7e8045c7a60b12b532/test/Compiler/Parser/testcases/shouldsucceed/basic.hs | haskell | main = putStrLn "Hello world!"
| |
ccf173324ff15a8a15b7198f6bc6b0771831ed1835bdd2608e04ea5ab4fe3cfb | tonyg/kali-scheme | population.scm | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define (make-population)
(list '<population>))
(define (add-to-population! x pop)
(if (not x) (error "can't put #f in a population"))
(if (not (weak-memq x (cdr pop)))
(set-cdr! po... | null | https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/rts/population.scm | scheme | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define (make-population)
(list '<population>))
(define (add-to-population! x pop)
(if (not x) (error "can't put #f in a population"))
(if (not (weak-memq x (cdr pop)))
(set-cdr! po... | |
8124d410a3c55efc684d58f5b09499cef8a28c43f84f34fd754f30f484002ee5 | ludat/conferer | InMemorySpec.hs | # LANGUAGE TypeApplications #
module Conferer.Source.InMemorySpec where
import Test.Hspec
import Conferer.Source
import Conferer.Source.InMemory
spec :: Spec
spec = do
describe "in memory source" $ do
let source =
fromAssociations
(ExplainNotFound $ reverse . show)
(ExplainSet... | null | https://raw.githubusercontent.com/ludat/conferer/13af5727c3b34779e87a1bdb4b0f247581ce4bc4/packages/conferer/test/Conferer/Source/InMemorySpec.hs | haskell | # LANGUAGE TypeApplications #
module Conferer.Source.InMemorySpec where
import Test.Hspec
import Conferer.Source
import Conferer.Source.InMemory
spec :: Spec
spec = do
describe "in memory source" $ do
let source =
fromAssociations
(ExplainNotFound $ reverse . show)
(ExplainSet... | |
86a6e6e1de048e5447b595ca1161f9e1de25295508802749df88565a1731f853 | ocaml-flambda/flambda-backend | optimistic_unboxing_decision.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/089504f86099bbf7402cbffeeb5e5295eae6d5f6/middle_end/flambda2/simplify/unboxing/optimistic_unboxing_decision.mli | ocaml | ************************************************************************
OCaml
... | , OCamlPro
and ,
Copyright 2014 - -2020 Jane Street Group LLC
the GNU Lesser General Public License version 2.1 , with the
*)
In this case , even if we know that x is an option , to unbox ... |
3eabec539693a654ae18074d5e7e262339b0b83a4575071fa8d307707914ce84 | NoahTheDuke/netrunner-data | csv.clj | (ns nr-data.csv
(:require
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.set :as set]
[clojure.string :as str]
[cond-plus.core :refer [cond+]]
[medley.core :refer [find-first]]
[nr-data.data :refer [load-data]]
[nr-data.download :refer [convert-subtypes]]
[nr-data.text :refer [add-... | null | https://raw.githubusercontent.com/NoahTheDuke/netrunner-data/aee6759dfa170c126eaab5a6bb00db855acae806/src/nr_data/csv.clj | clojure | else
else | (ns nr-data.csv
(:require
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.set :as set]
[clojure.string :as str]
[cond-plus.core :refer [cond+]]
[medley.core :refer [find-first]]
[nr-data.data :refer [load-data]]
[nr-data.download :refer [convert-subtypes]]
[nr-data.text :refer [add-... |
c286008e931c4a78b2f519e07338b69f989b0bf9d637070fd78d13e5e115206f | m4dc4p/haskelldb | DBDirect.hs | import Database.HaskellDB.HSQL.Oracle
import Database.HaskellDB.DBDirect
main :: IO ()
main = dbdirect driver
| null | https://raw.githubusercontent.com/m4dc4p/haskelldb/a1fbc8a2eca8c70ebe382bf4c022275836d9d510/driver-hsql-oracle/DBDirect.hs | haskell | import Database.HaskellDB.HSQL.Oracle
import Database.HaskellDB.DBDirect
main :: IO ()
main = dbdirect driver
| |
c53208074509d8187200507cbbf1a0351f61f7e39a775814f60cd255d5d57a1a | verma/clj-slackbot | slack_rtm.clj | (ns clj-slackbot.comms.slack-rtm
(:require [clojure.core.async :as async :refer [go go-loop]]
[clj-http.client :as http]
[gniazdo.core :as ws]
[cheshire.core :refer [parse-string generate-string]]
[clj-slackbot.util :as util]))
(def ^:private rtm-socket-url
"")
(def... | null | https://raw.githubusercontent.com/verma/clj-slackbot/1b73f539e4fea16d253cff7b1a8c60c53ec8cb6b/src/clj_slackbot/comms/slack_rtm.clj | clojure | start a loop to process messages
get whatever needs to be done for either data coming from the socket
or from the user
if something goes wrong, just die for now
we should do something smarter, may be try and reconnect
time to ping
the user sent us something, time to send it to the remote end point
the websocket... | (ns clj-slackbot.comms.slack-rtm
(:require [clojure.core.async :as async :refer [go go-loop]]
[clj-http.client :as http]
[gniazdo.core :as ws]
[cheshire.core :refer [parse-string generate-string]]
[clj-slackbot.util :as util]))
(def ^:private rtm-socket-url
"")
(def... |
31e26edaeaabadc91207a98a6bb33e85e922430066eda5c10a5faa1cf0a466ea | motoshira/lib_for_competitive_programming | find-subsequence.lisp | (defun find-subsequence (mainstr substr)
(let ((main-len (length mainstr))
(sub-len (length substr)))
(find-if (lambda (i)
(every (lambda (j)
(char-equal (char mainstr (+ i j))
(char substr j)))
(iota s... | null | https://raw.githubusercontent.com/motoshira/lib_for_competitive_programming/e7d466918ef52affa24cb5b19304dc7985eee6f1/experimental/find-subsequence.lisp | lisp | (defun find-subsequence (mainstr substr)
(let ((main-len (length mainstr))
(sub-len (length substr)))
(find-if (lambda (i)
(every (lambda (j)
(char-equal (char mainstr (+ i j))
(char substr j)))
(iota s... | |
bc06da5a5e4b5f5b9f07a585427162bfa5081971ff1fd1b076aac1ecc7743cbe | kuis-isle3sw/IoPLMaterials | closure.ml | open Pretty
module S = Syntax
module N = Normal
exception Error of string
let err s = raise (Error s)
type id = S.id
type binOp = S.binOp
let fresh_id = N.fresh_id
(* ==== 値 ==== *)
type value =
Var of id
| IntV of int
(* ==== 式 ==== *)
type cexp =
ValExp of value
| BinOp of binOp * value * val... | null | https://raw.githubusercontent.com/kuis-isle3sw/IoPLMaterials/fa328e92fdaaf6986394f832ef689689930647cd/misc/miniml-compiler/closure.ml | ocaml | ==== 値 ====
==== 式 ====
NEW
NEW
NEW
==== Formatter ====
entry point | open Pretty
module S = Syntax
module N = Normal
exception Error of string
let err s = raise (Error s)
type id = S.id
type binOp = S.binOp
let fresh_id = N.fresh_id
type value =
Var of id
| IntV of int
type cexp =
ValExp of value
| BinOp of binOp * value * value
| IfExp of value * exp * ex... |
0de72c7c74444d7e51250c1f27fb1806df7d48053a869b8ecf1deb370f29938e | casperschipper/ocaml-cisp | cisp4.ml | open Cisp
open Midi
open Seq
(* this maps midi input msg to an output msg (raw midi) *)
let midiInputTestFun input =
(* this translates input into boolean trigger *)
let inputTrigger =
map
(fun midiMsg ->
match midiMsg with NoteOn (_, _, _) -> true | _ -> false)
input
in
(* a metre bool... | null | https://raw.githubusercontent.com/casperschipper/ocaml-cisp/954e4b71dca0d0af0786395d727b7a7cde5568a7/examples/cisp_backup/spaceWalk/cisp4.ml | ocaml | this maps midi input msg to an output msg (raw midi)
this translates input into boolean trigger
a metre boolean mask that triggers notes or rests in the pattern
dummy event
apply metre to default event, use Silence as filler
the sq state var
Slightly troublesome, this looks like a pure function (a -> b) bu... | open Cisp
open Midi
open Seq
let midiInputTestFun input =
let inputTrigger =
map
(fun midiMsg ->
match midiMsg with NoteOn (_, _, _) -> true | _ -> false)
input
in
let metre =
seq [1; 2] |> map (fun n () -> Cons (false, repeat n true)) |> concat
in
let pitchPattern =
boundedWa... |
28c8d9b2d50c70b447ca2b20251e363bf1af6b85beb775b46c174d55189b399a | javalib-team/sawja | iter.mli |
* This file is part of SAWJA
* Copyright ( c)2010 ( INRIA )
*
* This program is free software : you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation , either version 3 of
* the License , or ( at your option ) a... | null | https://raw.githubusercontent.com/javalib-team/sawja/da39f9c1c4fc52a1a1a6350be0e39789812b6c00/src/iter.mli | ocaml | * Program points are chosen in decreasing order
* Program points are chosen in increasing order
* bottom element
* binary least upper bound
* partial order test
* normalize after each join (identity is correct)
* evaluates a transfer function
* analysis will be computed for points in [0 .. size-1]
* constraints... |
* This file is part of SAWJA
* Copyright ( c)2010 ( INRIA )
*
* This program is free software : you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation , either version 3 of
* the License , or ( at your option ) a... |
9e446930c19eddbf06db2f3dd4a87c89e72487e28ffc8c1c3557cc1b7341994c | pfdietz/ansi-test | defmethod.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Thu Jun 9 07:02:53 2005
Contains : Separate tests for DEFMETHOD
(deftest defmethod.1
(let ((sym (gensym)))
(values
(typep* (eval `(defmethod ,sym (x) (list x))) 'standard-method)
(typep* (fdefinition sym) 'standard-generic-function)
(func... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/objects/defmethod.lsp | lisp | -*- Mode: Lisp -*-
Error cases
Calling the implicitly defined generic function | Author :
Created : Thu Jun 9 07:02:53 2005
Contains : Separate tests for DEFMETHOD
(deftest defmethod.1
(let ((sym (gensym)))
(values
(typep* (eval `(defmethod ,sym (x) (list x))) 'standard-method)
(typep* (fdefinition sym) 'standard-generic-function)
(funcall sym 1)))
t t (1))
... |
6be955a919ac8d7c86cd7559784f5deef31fd5ece6e1ddef7578976657e03313 | willijar/cl-data-format-validation | parse-number.lisp | ;;;; -*- Mode: Lisp -*-
;;;; Defines functions to parse any number type, without using the reader
Version : 1.0
Author : -- mrd.debian.org
;;;;
Copyright 2002 .
;;;; All rights reserved.
;;;;
;;;; Repackaged as part of general validation library by J.A.R.Williams
Changes Copyright 2009
;;;;
;;;; Redistrib... | null | https://raw.githubusercontent.com/willijar/cl-data-format-validation/95d44766e829582598f9dcdc5c23719c462d5bfb/parse-number.lisp | lisp | -*- Mode: Lisp -*-
Defines functions to parse any number type, without using the reader
All rights reserved.
Repackaged as part of general validation library by J.A.R.Williams
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
... | Version : 1.0
Author : -- mrd.debian.org
Copyright 2002 .
Changes Copyright 2009
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
3 . Neither the name of the author nor the names of its contributors
THIS SOFTWA... |
e9ea82f1103f69212ea5e0dbcf6092d0c51e983bcd4cbbf88adc75876d95f4c0 | cognitect-labs/day-of-datomic-cloud | pull_recursion.clj | Copyright ( c ) Cognitect , Inc. All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be... | null | https://raw.githubusercontent.com/cognitect-labs/day-of-datomic-cloud/b1684c8d131942f0451185288ed65bc51ee2b81d/tutorial/pull_recursion.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) Cognitect , Inc. All rights reserved .
(require '[datomic.client.api :as d])
(def client (d/client {:server-type :dev-local :system "datomic-samples"}))
(def conn (d/connect client {:db-name "friends"}))
(def db (d/db conn))
get the entity i d for
(def anne-id
(ffirst (d/q '[:find ?e :where ... |
92ed1e7a9bba132c3d4d815fb30acbbd98e0a220784322897782cbf87189b601 | jfacorro/klarna-loves-erlang-meetup-2020 | bank_app.erl | %%%-------------------------------------------------------------------
%% @doc bank public API
%% @end
%%%-------------------------------------------------------------------
-module(bank_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
Opts = #{ip => {127,0,0,1}, port ... | null | https://raw.githubusercontent.com/jfacorro/klarna-loves-erlang-meetup-2020/61795af0ac80ac7afa4a00a215342988e5aac45f/apps/bank/src/bank_app.erl | erlang | -------------------------------------------------------------------
@doc bank public API
@end
-------------------------------------------------------------------
internal functions |
-module(bank_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
Opts = #{ip => {127,0,0,1}, port => 8080, net_opts => []},
bank_server:start(bank_http_server, Opts),
bank_sup:start_link().
stop(_State) ->
ok.
|
9f66a4723a90b499222182f660f4a55a96c3a7213fb176bc4a688cf21195adc1 | alavrik/piqi | piqobj_to_piq.ml |
Copyright 2009 , 2010 , 2011 , 2012 , 2013 , 2014 , 2017 , 2018
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... | null | https://raw.githubusercontent.com/alavrik/piqi/bcea4d44997966198dc295df0609591fa787b1d2/piqilib/piqobj_to_piq.ml | ocaml | TODO: check if we can actually represent it as verbatim text; make
* sure there are no non-printable characters
folder
accu
list to fold
built-in types
custom types
TODO: provide more precise locations for fields, options, etc
in internal mode, passing a reference to intermediate Any prepresentat... |
Copyright 2009 , 2010 , 2011 , 2012 , 2013 , 2014 , 2017 , 2018
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... |
8546a40212b02168194079497c614d383f68fe53556520e4ed601371a5e003c3 | vincenthz/hs-crypto-pubkey | ECDSA.hs | -- Test vectors are taken from GEC2: www.secg.org/collateral/gec2.pdf
{-# LANGUAGE OverloadedStrings #-}
module KAT.ECDSA (ecdsaTests) where
import Data.ByteString (ByteString)
import Crypto.Number.Serialize
import qualified Crypto.PubKey.ECC.ECDSA as ECDSA
import qualified Crypto.Types.PubKey.ECC as ECC
import qual... | null | https://raw.githubusercontent.com/vincenthz/hs-crypto-pubkey/c4192a87a03c329eadceb11c3406b4db14b56f11/Tests/KAT/ECDSA.hs | haskell | Test vectors are taken from GEC2: www.secg.org/collateral/gec2.pdf
# LANGUAGE OverloadedStrings # | module KAT.ECDSA (ecdsaTests) where
import Data.ByteString (ByteString)
import Crypto.Number.Serialize
import qualified Crypto.PubKey.ECC.ECDSA as ECDSA
import qualified Crypto.Types.PubKey.ECC as ECC
import qualified Crypto.Hash.SHA1 as SHA1
import Test.Tasty.HUnit
import Test.Tasty
data VectorECDSA = VectorECDSA... |
3bf516b74fae98e0ad30d3fa8118d3d2c44016864e6b80fc6a91c3b9b66cd697 | fare/lisp-interface-library | all.lisp | ;;;;; All general interfaces + common core of pure and stateful data structures
(uiop:define-package :lil/core/all
(:nicknames :lil/core)
(:use :closer-common-lisp)
(:mix :fare-utils :uiop :alexandria)
(:use-reexport
:lil/core/metaclass
:lil/core/utility
:lil/core/interface))
| null | https://raw.githubusercontent.com/fare/lisp-interface-library/ac2e0063dc65feb805f0c57715d52fda28d4dcd8/core/all.lisp | lisp | All general interfaces + common core of pure and stateful data structures |
(uiop:define-package :lil/core/all
(:nicknames :lil/core)
(:use :closer-common-lisp)
(:mix :fare-utils :uiop :alexandria)
(:use-reexport
:lil/core/metaclass
:lil/core/utility
:lil/core/interface))
|
63613fa97f1855cbb6688fa21142783d08cf2cbd1f75f1798cb5dcb8aa243f47 | tip-org/tools | Rename.hs | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
module Tip.Rename(renameAvoiding,RenamedId(..)) where
#include "errors.h"
import Tip.Core hiding (globals)
import Tip.Scope
import Tip.Pretty
import Tip.Utils.Rename
import Data.Traversable (Traversable)
import qualified Data.Foldable as F
import qualified Data.Map as ... | null | https://raw.githubusercontent.com/tip-org/tools/34350072587bd29157d18331eb895a1b2819555f/tip-lib/src/Tip/Rename.hs | haskell | | The representation of renamed Ids.
| Renames a theory
^ Keywords to avoid
^ Escaping
^ Theory to be renamed
^ The renamed theory | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
module Tip.Rename(renameAvoiding,RenamedId(..)) where
#include "errors.h"
import Tip.Core hiding (globals)
import Tip.Scope
import Tip.Pretty
import Tip.Utils.Rename
import Data.Traversable (Traversable)
import qualified Data.Foldable as F
import qualified Data.Map as ... |
9d55924f28d00f556b968e030c57ccd5f51c6c566681a6982aca8f3dbea849f1 | raml-org/api-modeling-framework | tck.cljc | (ns api-modeling-framework.tck
#?(:cljs (:require-macros [cljs.test :refer [deftest is async]]
[cljs.core.async.macros :refer [go]]))
(:require [api-modeling-framework.core :as core]
[api-modeling-framework.model.syntax :as syntax]
[api-modeling-framework.model.do... | null | https://raw.githubusercontent.com/raml-org/api-modeling-framework/34bb3b6c3e3f91b775e27f8e389e04eb2c36beb7/test/api_modeling_framework/tck.cljc | clojure | only for data diffs on error
order is not important for comparisons
(clojure.pprint/pprint a)
(clojure.pprint/pprint b)
prn
target data structure
generated data structure
_ (println "RAW GENERATED")
_ (println raw-generated-data)
| (ns api-modeling-framework.tck
#?(:cljs (:require-macros [cljs.test :refer [deftest is async]]
[cljs.core.async.macros :refer [go]]))
(:require [api-modeling-framework.core :as core]
[api-modeling-framework.model.syntax :as syntax]
[api-modeling-framework.model.do... |
7fdafea312a0f87a1e5d6145562533c843277442cdfda609bfc795e8fe71c55d | wavejumper/rehook-dom | dom.cljc | (ns rehook.dom
(:require [clojure.spec.alpha :as s]))
(s/def ::arg
(s/or :symbol? symbol?
:map? map?))
(s/def ::args
(s/or
:two-arity (s/tuple ::arg ::arg)
:three-arity (s/tuple ::arg ::arg symbol?)))
(s/def ::defui
(s/cat :name symbol?
:args ::args
:body (s/* any?)))
(s... | null | https://raw.githubusercontent.com/wavejumper/rehook-dom/f41e8585182bf9a9337d8122abd8d30e8536b8b4/src/rehook/dom.cljc | clojure | (ns rehook.dom
(:require [clojure.spec.alpha :as s]))
(s/def ::arg
(s/or :symbol? symbol?
:map? map?))
(s/def ::args
(s/or
:two-arity (s/tuple ::arg ::arg)
:three-arity (s/tuple ::arg ::arg symbol?)))
(s/def ::defui
(s/cat :name symbol?
:args ::args
:body (s/* any?)))
(s... | |
bf329be27c77f5789ebc026df126179a9e041ed520c6865b98e031f42a7dbaa9 | turlando/airhead | user.clj | (ns user
(:use [figwheel-sidecar.repl-api :as ra]))
(defn start! [] (ra/start-figwheel!))
(defn stop! [] (ra/stop-figwheel!))
(defn cljs-repl! [] (ra/cljs-repl "dev"))
| null | https://raw.githubusercontent.com/turlando/airhead/f38d8b3177d90462ad377c207a84966388cb326e/frontend/src/clj/dev/user.clj | clojure | (ns user
(:use [figwheel-sidecar.repl-api :as ra]))
(defn start! [] (ra/start-figwheel!))
(defn stop! [] (ra/stop-figwheel!))
(defn cljs-repl! [] (ra/cljs-repl "dev"))
| |
f364f4d18f062183f122195686701a922aec49dfc50d36cf1385dc1b3da3027b | dalaing/websockets-reflex | SharedDB.hs | |
Copyright : ( c ) 2017 , Commonwealth Scientific and Industrial Research Organisation
License : :
Stability : experimental
Portability : non - portable
Copyright : (c) 2017, Commonwealth Scientific and Industrial Research Organisation
License : BSD3
Maintainer :
Stability : experi... | null | https://raw.githubusercontent.com/dalaing/websockets-reflex/65bee7560442f5aae96f6f64fb12abeb501f5427/example/backend/src/Backend/SharedDB.hs | haskell | # LANGUAGE OverloadedStrings #
read the (old-last-event-id, old-snapshot) from the snapshot table
and find the one with the largest event id
read the events after old-last-event-id and apply them to old-snapshot
- also want to find the largest event id amongst these events
write (last-event-id, snapshot) to the sn... | |
Copyright : ( c ) 2017 , Commonwealth Scientific and Industrial Research Organisation
License : :
Stability : experimental
Portability : non - portable
Copyright : (c) 2017, Commonwealth Scientific and Industrial Research Organisation
License : BSD3
Maintainer :
Stability : experi... |
08d6e7e56e04ead6c8ef8212bd2fce283b6b5690fa8c1695c795421d02f42801 | leonoel/missionary | Sequential.cljs | (ns ^:no-doc missionary.impl.Sequential
(:require [missionary.impl.Fiber :refer [Fiber fiber]])
(:import missionary.Cancelled))
(defn nop [])
(declare kill suspend)
(deftype Process [coroutine success failure resume rethrow ^boolean busy ^boolean failed current token]
IFn
(-invoke [this] (kill this) nil)
F... | null | https://raw.githubusercontent.com/leonoel/missionary/eedd7781e68f4f26366779f31b8cd6f819a14e39/src/missionary/impl/Sequential.cljs | clojure | (ns ^:no-doc missionary.impl.Sequential
(:require [missionary.impl.Fiber :refer [Fiber fiber]])
(:import missionary.Cancelled))
(defn nop [])
(declare kill suspend)
(deftype Process [coroutine success failure resume rethrow ^boolean busy ^boolean failed current token]
IFn
(-invoke [this] (kill this) nil)
F... | |
c9a6d1bd68eade9b89efaac6873c235a80bddb45077e953a85cf572158218008 | sibylfs/sibylfs_src | fs_interface.mli | (****************************************************************************)
Copyright ( c ) 2013 , 2014 , 2015 , , , ,
( as part of the SibylFS project )
(* *)
(* Permission to use, copy, modify, and/or d... | null | https://raw.githubusercontent.com/sibylfs/sibylfs_src/30675bc3b91e73f7133d0c30f18857bb1f4df8fa/fs_spec/src/fs_interface.mli | ocaml | **************************************************************************
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright no... | Copyright ( c ) 2013 , 2014 , 2015 , , , ,
( as part of the SibylFS project )
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL
PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR OTHER
TORTIOUS ACTION , ARISING OUT OF OR IN CONNE... |
8a8b7a1b519ab1d688e0a1291f519570c7a03834ff0807960b66461167a3def3 | racket/typed-racket | subst-poly-dots.rkt | #lang typed/racket/shallow
(: f (All (A B ...) (A ... B -> (List (Boxof A) ... B))))
(define (f . args)
(map (inst box A) args))
(: h (-> Nothing))
(define (h) (h))
(: g (All (A B ...) (A ... B -> (Values (Boxof A) ... B))))
(define (g . args)
(h))
(ann ((inst f String Symbol Symbol) "c" "d") (List (Boxof S... | null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/subst-poly-dots.rkt | racket | #lang typed/racket/shallow
(: f (All (A B ...) (A ... B -> (List (Boxof A) ... B))))
(define (f . args)
(map (inst box A) args))
(: h (-> Nothing))
(define (h) (h))
(: g (All (A B ...) (A ... B -> (Values (Boxof A) ... B))))
(define (g . args)
(h))
(ann ((inst f String Symbol Symbol) "c" "d") (List (Boxof S... | |
b39ae64b21fe381bdc0a4427a8bc4a426975a6c9d78acd0d47ac281b5d9c0857 | mzp/coq-ide-for-ios | index.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/tools/coqdoc/index.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
s Indexes | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
i $ I d : index.mli 13323 201... |
f1fcc541cd7a1c191a31b8566aab5e4ba3dd9816c6da11c8677867e9459715e4 | danhper/evm-analyzer | commands.ml | open Core
let opcodes_command ?contract_name ?output ~show_pc ~show_sourcemap input_file =
let program =
if input_file = "-"
then Program.of_channel In_channel.stdin
else Program.from_file input_file
in
let stringified = Program.format_ops ~contract_name ~show_pc ~show_sourcemap program in
matc... | null | https://raw.githubusercontent.com/danhper/evm-analyzer/9fb1cf6dc743c2f779973b2f0892047ebbd4e5fd/src/commands.ml | ocaml | open Core
let opcodes_command ?contract_name ?output ~show_pc ~show_sourcemap input_file =
let program =
if input_file = "-"
then Program.of_channel In_channel.stdin
else Program.from_file input_file
in
let stringified = Program.format_ops ~contract_name ~show_pc ~show_sourcemap program in
matc... | |
22a77dd04a0a7dda4253be674f1ae06962a8b43a3922fd466b63015b542dfac4 | nvim-treesitter/nvim-treesitter | injections.scm | (preproc_arg) @hlsl
(comment) @comment
| null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/29cf3fe42a7bf425e2a9e0f27a06452ec92b0afa/queries/hlsl/injections.scm | scheme | (preproc_arg) @hlsl
(comment) @comment
| |
f8c765e3d67c125ae220e79656ea9ca2a0f3c6ea583307f93590eea098620cc9 | haskell-mafia/mismi | Data.hs | # LANGUAGE NoImplicitPrelude #
# LANGUAGE CPP #
module Mismi.Data (
module Mismi.Kernel.Data
, fromMismiRegion
, toMismiRegion
) where
import Control.Monad.Trans.AWS (Region (..))
import Mismi.Kernel.Data
fromMismiRegion :: MismiRegion -> Region
fromMismiRegion r =
case r of
Irel... | null | https://raw.githubusercontent.com/haskell-mafia/mismi/f6df07a52c6c8b1cf195b58d20ef109e390be014/mismi-core/src/Mismi/Data.hs | haskell | # LANGUAGE NoImplicitPrelude #
# LANGUAGE CPP #
module Mismi.Data (
module Mismi.Kernel.Data
, fromMismiRegion
, toMismiRegion
) where
import Control.Monad.Trans.AWS (Region (..))
import Mismi.Kernel.Data
fromMismiRegion :: MismiRegion -> Region
fromMismiRegion r =
case r of
Irel... | |
dde5b9ca9b29ae0d676007f285136082326013a7c1ba39fe70388b72a035e1f4 | jyh/metaprl | appl_outboard_common.ml |
* Common nfo needed for outboard .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htm... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/tactics/ensemble/appl_outboard_common.ml | ocaml |
* Commands we send through the shared memory.
* Directory and filename of the shared data.
|
* Common nfo needed for outboard .
*
* ----------------------------------------------------------------
*
* This file is part of MetaPRL , a modular , higher order
* logical framework that provides a logical programming
* environment for OCaml and other languages .
*
* See the file doc / htm... |
b8e44f410c44f287e9962d550cdeed833d7b9b50d9c9bd99bbfb50f6e9efdc35 | MaartenFaddegon/Hoed | QuickCheck.hs | -----------------------------------------------------------------------------
-- |
-- Module : Test.QuickCheck
Copyright : ( c ) , 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
QuickCheck v.0.... | null | https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/XMonad3__using_properties/Test/QuickCheck.hs | haskell | ---------------------------------------------------------------------------
|
Module : Test.QuickCheck
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : experimental
Portability : portable
----------------------------------------------------------------------... | Copyright : ( c ) , 2001
QuickCheck v.0.2
DRAFT implementation ; last update 000104 .
, .
This file represents work in progress , and might change at a later date .
# LANGUAGE CPP #
module Test.QuickCheck
: : String - > prop - > prop
: : > prop - > prop
: : * - > * ;... |
5b413863250141bf28e33211532df09812b4e65a169f00cd93d3da34449f54de | euhmeuh/virtual-mpu | s-record.rkt | #lang reprovide
virtual-mpu/private/asm-lang/s-record
| null | https://raw.githubusercontent.com/euhmeuh/virtual-mpu/d8056f928a646bb9ac96fdb78cde794efc82d144/s-record.rkt | racket | #lang reprovide
virtual-mpu/private/asm-lang/s-record
| |
94841c024e4449d053c55d5b7e0d4bb95191b9cecd92fddca1945f1791025991 | acieroid/scala-am | fact-2.scm | (letrec ((fact (lambda (n)
(if (< n 2)
1
(* n (fact (- n 1)))))))
(fact 3))
| null | https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/changesBenevolPaper/fact-2.scm | scheme | (letrec ((fact (lambda (n)
(if (< n 2)
1
(* n (fact (- n 1)))))))
(fact 3))
| |
18f8bc708d35da273478924c9dddfbe729806ec01e7c79c49191a2c2cc08314a | pfdietz/ansi-test | define-compiler-macro.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sun Apr 20 12:33:02 2003
;;;; Contains: Tests of DEFINE-COMPILER-MACRO
;;; Need to add non-error tests
(deftest define-compiler-macro.error.1
(signals-error (funcall (macro-function 'define-compiler-macro))
program-error)
t)
(deftest define... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/eval-and-compile/define-compiler-macro.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of DEFINE-COMPILER-MACRO
Need to add non-error tests
Non-error tests
Test of documentation | Author :
Created : Sun Apr 20 12:33:02 2003
(deftest define-compiler-macro.error.1
(signals-error (funcall (macro-function 'define-compiler-macro))
program-error)
t)
(deftest define-compiler-macro.error.2
(signals-error (funcall (macro-function 'define-compiler-macro)
... |
515be4dcb28aea0db09a8ddce9b719665e4dc7076e6b72781523489bbfa10879 | tonyg/kali-scheme | require.scm | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define-syntax require
(syntax-rules (quote)
((require '(name1 name2 ...))
(*require '(name1 name2 ...)))))
(define (*require interface-id)
(let ((start-thunk
(case (car interface... | null | https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/misc/require.scm | scheme | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define-syntax require
(syntax-rules (quote)
((require '(name1 name2 ...))
(*require '(name1 name2 ...)))))
(define (*require interface-id)
(let ((start-thunk
(case (car interface... | |
dc5f87927c7fd97b695a6bcfb3560570d9f936c2074bfd795339ea19c041a61e | haskell/haskell-language-server | HideType.hs | module HideType where
import AVec (Vec, fromList)
import BVec (fromList, (++))
import CVec hiding (cons)
import DVec hiding (cons, snoc)
import EVec as E
type TheType = Vec
| null | https://raw.githubusercontent.com/haskell/haskell-language-server/fdbc555a9245cb3761c2bf7335f3d18b8cf7673c/plugins/hls-refactor-plugin/test/data/hiding/HideType.hs | haskell | module HideType where
import AVec (Vec, fromList)
import BVec (fromList, (++))
import CVec hiding (cons)
import DVec hiding (cons, snoc)
import EVec as E
type TheType = Vec
| |
9795c37257e24a2d8258228dd4821314d61048fe8eec8324832ef44273066fdb | emil0r/reverie | middleware.clj | (ns reverie.site.endpoints.middleware
(:require [reverie.core :refer [defpage]]
[ring.middleware.json :refer [wrap-json-response]]))
(defn middleware-test [request page params]
{:body {:test true}
:status 200})
(defpage "/middleware"
{}
[["/test" ^:meta {:middleware [[wrap-json-response]]} {:... | null | https://raw.githubusercontent.com/emil0r/reverie/a29c223b7326e6d5a5e0874d33c37ff2fa0dfd4d/reverie-test/src/reverie/site/endpoints/middleware.clj | clojure | (ns reverie.site.endpoints.middleware
(:require [reverie.core :refer [defpage]]
[ring.middleware.json :refer [wrap-json-response]]))
(defn middleware-test [request page params]
{:body {:test true}
:status 200})
(defpage "/middleware"
{}
[["/test" ^:meta {:middleware [[wrap-json-response]]} {:... | |
7b46bb13785a633d7e0c9aff751e8ebefc244bafe50068f8c161ed0bd7690772 | yesodweb/persistent | PersistEntity.hs | # LANGUAGE TypeOperators #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# language PatternSynonyms #
# LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
{-# LANGUAGE GADTs #-}
# LANGUAGE KindSignatures #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# ... | null | https://raw.githubusercontent.com/yesodweb/persistent/58566be56cea6860c8afaf4e3fceca8a216ca54d/persistent/Database/Persist/Class/PersistEntity.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes #
* Safety check for inserts
A Database 'Entity' (A row in SQL, a document in MongoDB, etc)
over different record types. That way the same query interface can return
records.
Some advanced type system capabilities are used to make this process
type-safe. Persistent users... | # LANGUAGE TypeOperators #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# language PatternSynonyms #
# LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
# LANGUAGE KindSignatures #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeApplic... |
4daf7ab1ab5c00785d5ff36d63cec12bfc519946bc483927438a96656f1b2afe | egraphdb/egraphdb | egraph_reindex_model.erl | %%%-------------------------------------------------------------------
@author neerajsharma
( C ) 2018 ,
%%% @doc
%%%
%%% @end
%%% %CopyrightBegin%
%%%
Copyright < > 2017 .
All Rights Reserved .
%%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%% you may not use this file excep... | null | https://raw.githubusercontent.com/egraphdb/egraphdb/41a0131be227f7f0a35ba0e2c1cb23d70cd86b03/models/egraph_reindex_model.erl | erlang | -------------------------------------------------------------------
@doc
@end
%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 CONDITIO... | @author neerajsharma
( C ) 2018 ,
Copyright < > 2017 .
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(egraph_reindex_model).
validate/2, create/3, read/2, update/3, delete... |
a339e5ffb46bc6ec03d41ba2e2eeec1dff31bccd00cd5db1dd8a11d0622452ed | kadena-io/chainweb-data | Database.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE DataKinds #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
module... | null | https://raw.githubusercontent.com/kadena-io/chainweb-data/b134046e2fc50b9aef78a028d032166aa2297783/haskell-src/lib/ChainwebDb/Database.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE DeriveAnyClass #
-
| Create the DB tables if necessary. | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
module ChainwebDb.Database
( ChainwebDataDb(..)
, database
, i... |
daeb4ec325333b49e04b9dedc213359a007b2af876f573f966c5729472d8e1c2 | Clozure/ccl-tests | float.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Thu Sep 11 21:53:51 2003
;;;; Contains: Tests of FLOAT
(in-package :cl-test)
(deftest float.error.1
(signals-error (float) program-error)
t)
(deftest float.error.2
(signals-error (float 0 0.0 nil) program-error)
t)
;;;
(deftest float.1
(notnot (member... | null | https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/float.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of FLOAT
| Author :
Created : Thu Sep 11 21:53:51 2003
(in-package :cl-test)
(deftest float.error.1
(signals-error (float) program-error)
t)
(deftest float.error.2
(signals-error (float 0 0.0 nil) program-error)
t)
(deftest float.1
(notnot (member (float 0) '(0.0f0 -0.0f0)))
t)
(deftest float.2
(f... |
2f46b654fc728d3ca4bb6fed813aeee06d88bd7ce2f23bf31620d40e111f56d5 | dinosaure/dinoscheme | util.ml | let char_of_backslash = function
| 'n' -> '\n'
| 'r' -> '\r'
| 'b' -> '\b'
| 't' -> '\t'
| c -> c
let char_of_hexa a b =
let ac = Char.code a in
let av = if ac >= 97 then ac - 87
else if ac >= 65 then ac - 55
else ac - 48
in
let bc = Char.code b in
let bv = if bc >= 97 then b... | null | https://raw.githubusercontent.com/dinosaure/dinoscheme/6bc4f2f0376585f0900ab4bf8e049edd06fa3d74/dinc/util.ml | ocaml | let char_of_backslash = function
| 'n' -> '\n'
| 'r' -> '\r'
| 'b' -> '\b'
| 't' -> '\t'
| c -> c
let char_of_hexa a b =
let ac = Char.code a in
let av = if ac >= 97 then ac - 87
else if ac >= 65 then ac - 55
else ac - 48
in
let bc = Char.code b in
let bv = if bc >= 97 then b... | |
b5fef1e6ef05866074b3e17256e24eaa0f0dbd152f6a9c0cfba077badee0a484 | jumarko/web-development-with-clojure | core.clj | (ns myapp.core)
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
| null | https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/examples/myapp/src/myapp/core.clj | clojure | (ns myapp.core)
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
| |
66dd0a285956872caa0f319541b20d169ce038265f9b5267ea0d2d25dca5d07a | PeterDWhite/Osker | MVarProc.hs | Copyright ( c ) , 2003
module MVarProc
Operators in support of
Create a new MVar
Remove MVar from state
Update value associated with an MVar
Get value of MVar from threader state
, unliftedTakeMVar -- takeMVar for unlifted threads
, unliftedPutMVar -- putMVar for unlifted threads
Pr... | null | https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Braid/MVarProc.hs | haskell | takeMVar for unlifted threads
putMVar for unlifted threads
Process lifted requests
Process non lifted requests
Abstract type for MVars
Null out the upward relay
A destructor of braid state
Set the whole locale
Null the locale in a braid state
Take out upward requests, null them
Check if MVar Ops are null
Ge... | Copyright ( c ) , 2003
module MVarProc
Operators in support of
Create a new MVar
Remove MVar from state
Update value associated with an MVar
Get value of MVar from threader state
Process a single MVar response
Operators in support of
Operators in support of delay
) where
import List
import M... |
6b9f09b88b26166403b043e02a8a6e50556b8f3ae789cfabeabee803d176f27a | Atidot/snippets | Stratos.hs | #! /usr/bin/env nix-shell
#! nix-shell -I nixpkgs= -i runhaskell -p "pkgs.haskell.packages.ghc864.ghcWithPackages (ps: with ps; [stratosphere])"
# LANGUAGE OverloadedLists #
{-# LANGUAGE OverloadedStrings #-}
module Main where
import qualified Data.ByteString.Lazy.Char8 as B
import Stratosphere
main :: IO ()
main = ... | null | https://raw.githubusercontent.com/Atidot/snippets/55fa5fbff396817e16c039dc16d859338e411ac1/Haskell/Stratos.hs | haskell | # LANGUAGE OverloadedStrings # | #! /usr/bin/env nix-shell
#! nix-shell -I nixpkgs= -i runhaskell -p "pkgs.haskell.packages.ghc864.ghcWithPackages (ps: with ps; [stratosphere])"
# LANGUAGE OverloadedLists #
module Main where
import qualified Data.ByteString.Lazy.Char8 as B
import Stratosphere
main :: IO ()
main = B.putStrLn $ encodeTemplate instanc... |
5748aa054b885c4f9aa085fefe85a71e499483b0ac3a74aa66c2f2cda3eeab1e | fulcro-legacy/fulcro-datomic | dumper.clj | (ns fulcro.datomic.schema.dumper
(:require [datomic.api :as d]
[clojure.pprint :as pp]))
Blacklist of keyword namespaces to elide when looking at attrs .
(def system-ns #{ ;; s/ => fulcro.datomic.schema
"confirmity" ;; conformity migration lib
"co... | null | https://raw.githubusercontent.com/fulcro-legacy/fulcro-datomic/262fb629fc250a8675afacf7b16ac876d47cb597/src/fulcro/datomic/schema/dumper.clj | clojure | s/ => fulcro.datomic.schema
conformity migration lib
s/reference-constraint-for-attribute
from lib of same name
s/entity-extensions
only returns seq of maps | (ns fulcro.datomic.schema.dumper
(:require [datomic.api :as d]
[clojure.pprint :as pp]))
Blacklist of keyword namespaces to elide when looking at attrs .
"db"
"db.alter"
"db.bootstrap"
"db.cardinality"
"db.excise"
... |
8361c94c631c1c03db7dfb188c2af2d1632261c958c9be1c94d32b885faaada5 | markwoodhall/swaggerdown | client.cljs | (ns swaggerdown.client
(:require-macros
[cljs.core.async.macros :refer [go-loop]])
(:require
[clojure.string :as s]
[cljs.core.async :refer [<!]]
[cljs.reader :refer [read-string]]
[clova.core :as clova]
[goog.crypt.base64 :as b64]
[reagent.core :as reagent :refer [atom]]
[swaggerd... | null | https://raw.githubusercontent.com/markwoodhall/swaggerdown/3d34d151c075d54d446eee7039f19420bf265e30/src/swaggerdown/client.cljs | clojure | figwheel | (ns swaggerdown.client
(:require-macros
[cljs.core.async.macros :refer [go-loop]])
(:require
[clojure.string :as s]
[cljs.core.async :refer [<!]]
[cljs.reader :refer [read-string]]
[clova.core :as clova]
[goog.crypt.base64 :as b64]
[reagent.core :as reagent :refer [atom]]
[swaggerd... |
b848ac05a789fdc132246cf498c8b8a5fe690caa4b0f60687517051a86cf50a0 | dinosaure/paf-le-chien | unikernel.ml | open Lwt.Infix
module Make
(Console : Mirage_console.S)
(Time : Mirage_time.S)
(HTTP_Client : Http_mirage_client.S) = struct
let one_request =
Http_mirage_client.one_request
~alpn_protocol:HTTP_Client.alpn_protocol
~authenticator:HTTP_Client.authenticator
let log console fmt = Fmt.kstr (Cons... | null | https://raw.githubusercontent.com/dinosaure/paf-le-chien/11c4aa30438d795e765063db61531944d988a516/unikernel/client/unikernel.ml | ocaml | open Lwt.Infix
module Make
(Console : Mirage_console.S)
(Time : Mirage_time.S)
(HTTP_Client : Http_mirage_client.S) = struct
let one_request =
Http_mirage_client.one_request
~alpn_protocol:HTTP_Client.alpn_protocol
~authenticator:HTTP_Client.authenticator
let log console fmt = Fmt.kstr (Cons... | |
a56dc50c2279f55f177db15df9d57dde4e78f6a82f2a8d8431c3b3f1317c2aef | erlang/corba | CosTime_TIO_impl.erl | %%--------------------------------------------------------------------
%%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2000 - 2016 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain ... | null | https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/cosTime/src/CosTime_TIO_impl.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... | Copyright Ericsson AB 2000 - 2016 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module('CosTime_TIO_impl').
-include("cosTimeApp.hrl").
-export(['_get_time_interval'/2]).
Interface functions... |
357394e289c4eb63fbd631ec14bef4f81922ea4433c9f6e6434bf9256828e5a3 | ZeusWPI/contests | editor.hs | -- Solution to -2011/editor.pdf
import Control.Monad
import Control.Applicative
import Data.List
data Command = Command
{ times :: Int
, word :: String
} deriving (Show)
parseCommand :: String -> Command
parseCommand str = Command times word
where
[times', word] = words str
times =... | null | https://raw.githubusercontent.com/ZeusWPI/contests/d78aec91be3ce32a436d160cd7a13825d36bbf3a/2011-vpw/editor.hs | haskell | Solution to -2011/editor.pdf | import Control.Monad
import Control.Applicative
import Data.List
data Command = Command
{ times :: Int
, word :: String
} deriving (Show)
parseCommand :: String -> Command
parseCommand str = Command times word
where
[times', word] = words str
times = read times'
remove :: [Strin... |
6f6396c93fae9059a271c7f5e9f523d28dc4cc31cdfc95dabaed05464ef83fb6 | juspay/atlas | Scheduler.hs | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | null | https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/scheduler-example/server/Scheduler.hs | haskell | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | |
2e7e8626af6f6119a5b965c4cc885518e01ef14818eb54fcf5fc111d608a1b85 | samply/blaze | spec.clj | (ns blaze.db.node.spec
(:require
[blaze.executors :as ex]
[clojure.spec.alpha :as s]))
(s/def :blaze.db.node/indexer-executor
ex/executor?)
| null | https://raw.githubusercontent.com/samply/blaze/c479410a9198526453a0df769ab7db2e6d5dd654/modules/db/src/blaze/db/node/spec.clj | clojure | (ns blaze.db.node.spec
(:require
[blaze.executors :as ex]
[clojure.spec.alpha :as s]))
(s/def :blaze.db.node/indexer-executor
ex/executor?)
| |
f68e3168b3e7609efdc49500b00b42cd9cf72468397da0a248dbf1cd38467f3e | jackfirth/rebellion | plain.rkt | #lang racket/base
(require racket/contract/base)
(provide
(contract-out
[charset? predicate/c]
[us-ascii charset?]
[utf-8 charset?]
[text? predicate/c]
[text (-> (or/c charset? #f) immutable-bytes? text?)]
[text-charset (-> text? (or/c charset? #f))]
[text-bytes (-> text? immutable-bytes?)]
[text-med... | null | https://raw.githubusercontent.com/jackfirth/rebellion/64f8f82ac3343fe632388bfcbb9e537759ac1ac2/media/text/plain.rkt | racket | @------------------------------------------------------------------------------ | #lang racket/base
(require racket/contract/base)
(provide
(contract-out
[charset? predicate/c]
[us-ascii charset?]
[utf-8 charset?]
[text? predicate/c]
[text (-> (or/c charset? #f) immutable-bytes? text?)]
[text-charset (-> text? (or/c charset? #f))]
[text-bytes (-> text? immutable-bytes?)]
[text-med... |
73c62fc47165f611126275dfe2398494d7a61104f6fff129a0e71e5cc76342d1 | BitGameEN/bitgamex | luerl.erl | Copyright ( c ) 2013
%%
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 ... | null | https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/luerl/src/luerl.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright ( c ) 2013
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
Authors : ,
Purpose : Basic LUA 5.2 interface .
-module(luerl).
-include("luerl.hrl").
-export([eval/1,eval/2,evalfile/1,evalfile/2,
do/1,... |
9f1adf8270f645e0e3abbfd9e2eb2423a78c157d4fab4450be178cc447fd91f1 | zarkone/stumpwm.d | app-menu.lisp | app-menu.lisp
(in-package #:app-menu)
;;; "app-menu" goes here. Hacks and glory await!
(export '(show-menu load-menu-file))
(defvar *app-menu* nil "Where the menu structure is held")
(defun load-menu-file (file-name &key (strip 0))
(with-open-file (file file-name)
(when (char= #\# (peek-char nil file)) (rea... | null | https://raw.githubusercontent.com/zarkone/stumpwm.d/021e51c98a80783df1345826ac9390b44a7d0aae/modules/util/app-menu/app-menu.lisp | lisp | "app-menu" goes here. Hacks and glory await!
Hack around the "autogenerated file" comment | app-menu.lisp
(in-package #:app-menu)
(export '(show-menu load-menu-file))
(defvar *app-menu* nil "Where the menu structure is held")
(defun load-menu-file (file-name &key (strip 0))
(with-open-file (file file-name)
(let* ((*read-eval* nil)
(list (list (read file))))
(dotimes (i strip) (set... |
47c099d8078c02b596d50c04fe760f29dbffd0a580f6218a7e1d8e46ae2fbc29 | lrascao/raterl | raterl_SUITE.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2016 . All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the ... | null | https://raw.githubusercontent.com/lrascao/raterl/9c1dddda346a190aa19b6299778479a891a17a9c/test/raterl_SUITE.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2016 . All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(raterl_SUITE).
-compil... |
8fcebd445f6e971c8b8efb5a5098e1e784b07e8daddd5ffc927c918af1ebbc91 | metaocaml/ber-metaocaml | Inline_records.mli | (* TEST
* ocamldoc with html
* ocamldoc with latex
* ocamldoc with man
*)
(**
This test focuses on the printing of documentation for inline record
within the latex generator.
*)
(** A nice exception *)
exception Simple
(** A less simple exception *)
exception Less of int
(** An open sum type *)
type e... | null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocamldoc/Inline_records.mli | ocaml | TEST
* ocamldoc with html
* ocamldoc with latex
* ocamldoc with man
*
This test focuses on the printing of documentation for inline record
within the latex generator.
* A nice exception
* A less simple exception
* An open sum type
* A simple record type for reference
* Field documentation for non-in... |
exception Simple
exception Less of int
type ext = ..
* A sum type with one inline record
* A sum type with two inline records
type s =
type ext +=
* Two new constructors for ext
|
1f5d69d4569a12dfa13cea02184beada0c3a2e64b51a8f805bba2614a33cfd49 | mzp/coq-ide-for-ios | typeclasses_errors.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/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/pretyping/typeclasses_errors.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
Class name, method
found, exp... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
i $ I d : typeclasses_errors.... |
c3f6734e3db75bdc61aa558a7664e47a83c4f07baeef6febb16b7f87c139cf18 | basho/riak_test | ts_simple_get.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2015 Basho Technologies , Inc.
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the Li... | null | https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ts_simple_get.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2015 Basho Technologies , Inc.
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(ts_simple_get).
-behav... |
4de814f3040a18ce879868477ad11a5f3ea02e6736c4c6ccd95649b10524a078 | biokoda/actordb_core | actordb_idgen.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
-module(actordb_idgen).
-behaviour(gen_server).
-export([print_info/0, start/0, stop/0, init/1, handle_call/3,
handle_cast/2, handle_info/2,... | null | https://raw.githubusercontent.com/biokoda/actordb_core/8dcd08a0897055af89c3ce20d99ed5e64d0c33eb/src/actordb_idgen.erl | erlang | -compile(export_all).
Public ets table stores idcounter:
Return:
- integer
- nostate - global state has not been established yet
There are still intervals in the ranges buffer. Move to next.
We are completely empty. No ranges available. Get a new range. | 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 /.
-module(actordb_idgen).
-behaviour(gen_server).
-export([print_info/0, start/0, stop/0, init/1, handle_call/3,
handle_cast/2, handle_info/2,... |
e5001085adfd215b4a2a72fb3cc0a41cb5ae12d067ed3125cfb6afe66f5625f0 | tweag/ormolu | op-chain-l-gt-out.hs | Left chain , 2 operators with p(a ) > p(b )
t :: Int
t =
1
+ 2
+ 3
+ 4
>> 5
+ 6
+ 7
+ 8
| null | https://raw.githubusercontent.com/tweag/ormolu/1f63136d047205f95b7d3c0f6aa34c34bb29ac7f/data/examples/declaration/value/function/infix/op-chain-l-gt-out.hs | haskell | Left chain , 2 operators with p(a ) > p(b )
t :: Int
t =
1
+ 2
+ 3
+ 4
>> 5
+ 6
+ 7
+ 8
| |
d680aec9a21bfba5b68c8236b80dc8b55b64d5b97a0a4bbaa6b2cf688f204e16 | OlivierSohn/hamazed | Blocking.hs | {-# OPTIONS_HADDOCK hide #-}
# LANGUAGE NoImplicitPrelude #
# LANGUAGE LambdaCase #
module Imj.Input.Blocking
( -- * Blocking read
timeoutGetKeyThenFlush
, getKeyThenFlush
) where
import Imj.Prelude
import System.IO( getChar, hReady, stdin )
import System.Timeout( ti... | null | https://raw.githubusercontent.com/OlivierSohn/hamazed/c0df1bb60a8538ac75e413d2f5bf0bf050e5bc37/imj-base/src/Imj/Input/Blocking.hs | haskell | # OPTIONS_HADDOCK hide #
* Blocking read
'timeout' interprets strictly negative values as infinite time.
This way, we won't interrupt reads of escaped characters.
according to /
TODO we ignore the rest, should we use it in case of complex characters? |
# LANGUAGE NoImplicitPrelude #
# LANGUAGE LambdaCase #
module Imj.Input.Blocking
timeoutGetKeyThenFlush
, getKeyThenFlush
) where
import Imj.Prelude
import System.IO( getChar, hReady, stdin )
import System.Timeout( timeout )
import Data.Char( ord, isControl )
... |
5f9493b7bdbb51b0c6726aceb2da52f1f6c405b14ea60d5e27566176f5148882 | nodew/haskell-dapr | HttpClientSpec.hs | module Dapr.Client.HttpClientSpec where
import Control.Monad.IO.Class (MonadIO)
import Dapr.Client.HttpClient
import Data.Aeson (ToJSON, object)
import Data.Either
import Data.Map as Map
import Data.Text (Text)
import GHC.Generics
import Network.HTTP.Req
import Test.Hspec
newtype TestHelloWorldMessage = TestHelloWorl... | null | https://raw.githubusercontent.com/nodew/haskell-dapr/5fca1199ae576256814f5eca60ff01baebc24323/dapr-http-client/test/e2e/Dapr/Client/HttpClientSpec.hs | haskell | module Dapr.Client.HttpClientSpec where
import Control.Monad.IO.Class (MonadIO)
import Dapr.Client.HttpClient
import Data.Aeson (ToJSON, object)
import Data.Either
import Data.Map as Map
import Data.Text (Text)
import GHC.Generics
import Network.HTTP.Req
import Test.Hspec
newtype TestHelloWorldMessage = TestHelloWorl... | |
146d0a3f23efb79f8925ac28c5159c35dacb0fc1a3caf54142ab749743942013 | xapi-project/message-switch | xenops_types.ml | open Sexplib.Std
open Xcp_pci
module TopLevel = struct
type power_state = Running | Halted | Suspended | Paused
[@@deriving sexp, rpcty]
type disk =
| Local of string (** path to a local block device *)
* typically " SR / VDI "
[@@deriving sexp, rpcty]
end
module Vgpu = struct
type gvt_g = {
* unused ... | null | https://raw.githubusercontent.com/xapi-project/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/xen/xenops_types.ml | ocaml | * path to a local block device
* string is passed on as is and no structure is assumed
* weight, cap
* boot-time maximum
* ideal number to use
* actual number of vcpus
* actual setting
* true means VM must not migrate
* true means VM uses nested virtualisation | open Sexplib.Std
open Xcp_pci
module TopLevel = struct
type power_state = Running | Halted | Suspended | Paused
[@@deriving sexp, rpcty]
type disk =
* typically " SR / VDI "
[@@deriving sexp, rpcty]
end
module Vgpu = struct
type gvt_g = {
* unused ; promoted to Vgpu.t
; low_gm_sz: int64
; high_gm_s... |
50ac93dc3610008c36f21277a48743f6c6804cbea8aa2b85cbd6ae96e1370649 | aymanosman/cl-missile-command | font.lisp | (in-package :raylib)
(defvar font)
(defstruct font advance width height texture)
(defun make-font-atlas (sprites width height)
(let* ((image (gen-image-color (* 10 width) (* 10 height) +blank+))
(image-pointer (alloc-image image)))
(flet ((draw-sprite (sprite x y)
(loop :for j :from 0 :be... | null | https://raw.githubusercontent.com/aymanosman/cl-missile-command/5f99bc8cec1ff06a2450b9408feb2c57df1561b9/font.lisp | lisp | !
"
#
$
%
&
'
(
)
*
+
,
-
.
/
:
;
<
=
>
?
@
A
B
C
D
E
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~ | (in-package :raylib)
(defvar font)
(defstruct font advance width height texture)
(defun make-font-atlas (sprites width height)
(let* ((image (gen-image-color (* 10 width) (* 10 height) +blank+))
(image-pointer (alloc-image image)))
(flet ((draw-sprite (sprite x y)
(loop :for j :from 0 :be... |
da9dc78e808512d9dc8b78ba5b0be0d6285b22ddc67871b21c53ed2fa14d3565 | debug-ito/wild-bind | KeySym.hs | -- |
Module : WildBind . X11.KeySym
-- Description: Re-export KeySyms
Maintainer : < >
--
This module re - exports X11 ' KeySym 's .
--
@since 0.2.0.0
module WildBind.X11.KeySym
( -- * The type
KeySym
-- * Alphabet
, xK_a
, xK_b
, xK_c
, xK_d
, xK_e
, xK_f
, xK_g
... | null | https://raw.githubusercontent.com/debug-ito/wild-bind/ef65370ded4f9687fed554107df4cc58247943de/wild-bind-x11/src/WildBind/X11/KeySym.hs | haskell | |
Description: Re-export KeySyms
* The type
* Alphabet
* Numbers
* ASCII symbols
* Control keys
* Number pad keys
* Function keys
* Modifier keys
* Alphabet with accent and ligatures
* Other symbols
* special keysym | Module : WildBind . X11.KeySym
Maintainer : < >
This module re - exports X11 ' KeySym 's .
@since 0.2.0.0
module WildBind.X11.KeySym
KeySym
, xK_a
, xK_b
, xK_c
, xK_d
, xK_e
, xK_f
, xK_g
, xK_h
, xK_i
, xK_j
, xK_k
, xK_l
, xK_m
, xK_n
, xK_... |
7b2a7f4905202695c7be3ce87c73c575efe3de4970c1c3e77eb85b8644e57f91 | mstewartgallus/hs-callbypushvalue | AsOptimized.hs | {-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
module SystemF.AsOptimized (Simplifier, extract) where
import SystemF
import Common
import Control.Category
import HasTerm
import NatTrans
import AsCompose ((:.:))
import CostInliner (CostInliner)
import MonoInline... | null | https://raw.githubusercontent.com/mstewartgallus/hs-callbypushvalue/d8770b7e9e444e1261901f5ee435fcefb0f7ad75/src/SystemF/AsOptimized.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes # | # LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
module SystemF.AsOptimized (Simplifier, extract) where
import SystemF
import Common
import Control.Category
import HasTerm
import NatTrans
import AsCompose ((:.:))
import CostInliner (CostInliner)
import MonoInliner (MonoInliner)
import qualified AsCompose
import q... |
f43d5933dc2e1d80ac6eb6c97476a8791d5d2cee9745c1cbb2f66ca5addffbe4 | ghcjs/ghcjs-dom | HTMLMediaElement.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.HTMLMediaElement
(js_load, load, js_canPlayType, canPlayType, canPlayType_,
js_... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLMediaElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/HTMLMediaElement.webkitSetMediaKeys Mozilla HTMLMediaElement.webkitSetMediaKeys documentation>
| <-US/docs/Web/API/HTMLMediaElement.setMediaKeys Mozilla HTMLMediaElement.setMediaKeys documentation>
| <-... | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.HTMLMediaElement
(js_load, load, js_canPlayType, canPlayType, canPlayType_,
js_getStartDate, getStartDate, getStartDate_, js_play, play,
js_pause, pause, js_fastSeek, fas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.