_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 |
|---|---|---|---|---|---|---|---|---|
868ccaa3921caf434eb78024312c34da64656ead6dbc5ce4ddee64122d6332f8 | ConsumerDataStandardsAustralia/validation-prototype | Main.hs | module Main (main) where
import Web.ConsumerData.Au.LambdaBank.Main (main)
| null | https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-lambdabank/exe/Main.hs | haskell | module Main (main) where
import Web.ConsumerData.Au.LambdaBank.Main (main)
| |
df4c23b14242cf572176a073fc57c85b69d6fd84d831e7f83aa76e809a118276 | hoelzl/Snark | rewrite-code.lisp | ;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*-
File : rewrite-code.lisp
The contents of this file are subject to the Mozilla Public License
;;; Version 1.1 (the "License"); you may not use this file except in
;;; compliance with the License. You may obtain a copy of the License at
;;; /
;;;
Software ... | null | https://raw.githubusercontent.com/hoelzl/Snark/06f86a31f476b2e4c28519765ab1e1519a4cc932/src/rewrite-code.lisp | lisp | -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*-
Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
/
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific language governing right... | File : rewrite-code.lisp
The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is SNARK .
The Initial Developer of the Original Code is SRI International .
Portions created by the Initial Developer are Copy... |
950b25c45cb7486906a128efeeeaee8925e6035daad4ba3efa4dd41e9278f757 | oliyh/martian | vcr_test.cljc | (ns martian.vcr-test
(:require #?(:clj [clojure.test :refer [deftest testing is]]
:cljs [cljs.test :refer [deftest testing is]])
[martian.vcr :as vcr]
[martian.core :as m]
[schema.core :as s]
#?(:clj [clojure.java.io :as io])))
#?(:cljs (def Exception js... | null | https://raw.githubusercontent.com/oliyh/martian/c20d3fad47709ecfc0493e2fb607d5b56ea3193d/vcr/test/martian/vcr_test.cljc | clojure | (ns martian.vcr-test
(:require #?(:clj [clojure.test :refer [deftest testing is]]
:cljs [cljs.test :refer [deftest testing is]])
[martian.vcr :as vcr]
[martian.core :as m]
[schema.core :as s]
#?(:clj [clojure.java.io :as io])))
#?(:cljs (def Exception js... | |
1ce795e4c98ef68fce960b6e4b455b8c0a27c197ebc5b76f5394b485e24fc92f | lsrcz/grisette | Main.hs | module Main where
import . Core . Control . ExceptionTests
import . Core . Control . Monad . UnionMBaseTests
import . Core . Data . Class . BoolTests
import . Core . Data . Class . EvaluateSymTests
import . Core . Data . Class . ExtractSymbolicsTests
import . Core . Data . Class . GenSymTests
impor... | null | https://raw.githubusercontent.com/lsrcz/grisette/1d2fab89acb160ee263a41741454a5825094bd33/test/Main.hs | haskell | module Main where
import . Core . Control . ExceptionTests
import . Core . Control . Monad . UnionMBaseTests
import . Core . Data . Class . BoolTests
import . Core . Data . Class . EvaluateSymTests
import . Core . Data . Class . ExtractSymbolicsTests
import . Core . Data . Class . GenSymTests
impor... | |
a00d668b2d5b0410e07be1503d328357936971514e5c393c664d3b9833843ab2 | pfdietz/ansi-test | count-if.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Tue Aug 20 08:01:30 2002
;;;; Contains: Tests for COUNT-IF
(in-package :cl-test)
(deftest count-if-list.1
(count-if #'identity '(a b nil c d nil e))
5)
(deftest count-if-list.2
(count-if #'not '(a b nil c d nil e))
2)
(deftest count-if-list.3
(count-if... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/sequences/count-if.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests for COUNT-IF
tests on vectors
Non-simple vectors
Other special vectors
tests on bit-vectors
tests on strings
Argument order tests
Keyword tests
Error tests
Only leftmost :allow-other-keys argument matters | Author :
Created : Tue Aug 20 08:01:30 2002
(in-package :cl-test)
(deftest count-if-list.1
(count-if #'identity '(a b nil c d nil e))
5)
(deftest count-if-list.2
(count-if #'not '(a b nil c d nil e))
2)
(deftest count-if-list.3
(count-if #'(lambda (x) (break)) nil)
0)
(deftest count-if-list.... |
5df2a82abea4428322ec43dc05c340fc210f7011c50f28da5c150d3d132aebb2 | pixlsus/registry.gimp.org_static | 00-Volume-Express-4ST_v1.0.scm | ; GIMP script-fu-00-volume-express-4st
version 1.0 2011.03.27
from the script - fu " add-bevel.scm version 1.04 " by
;
;
; 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 , eithe... | null | https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/00-Volume-Express-4ST_v1.0.scm | scheme | GIMP script-fu-00-volume-express-4st
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A ... | version 1.0 2011.03.27
from the script - fu " add-bevel.scm version 1.04 " by
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
(define (script-fu-00-volume-express-4st
... |
9bf7bbbf6199c9c897c0f85e8eb007a2f8e5fb3937b54f4e906f0a194623dd73 | goldfirere/thesis | Base.hs | # LANGUAGE BangPatterns , MultiParamTypeClasses , TypeFamilies , FlexibleContexts #
#if __GLASGOW_HASKELL__ >= 707
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
#endif
{-# OPTIONS_HADDOCK hide #-}
-- |
Module : Data . Vector . . Base
Copyright : ( c ) Roman Leshchinskiy 2009 - 2010
-- License ... | null | https://raw.githubusercontent.com/goldfirere/thesis/22f066bc26b1147530525aabb3df686416b3e4aa/cab/vector-0.10.12.3/Data/Vector/Unboxed/Base.hs | haskell | # LANGUAGE DeriveDataTypeable, StandaloneDeriving #
# OPTIONS_HADDOCK hide #
|
License : BSD-style
Stability : experimental
Portability : non-portable
Adaptive unboxed vectors: basic implementation
-----------------
-----------------
----
Unit
----
---------------
Primitive types
---------------
... | # LANGUAGE BangPatterns , MultiParamTypeClasses , TypeFamilies , FlexibleContexts #
#if __GLASGOW_HASKELL__ >= 707
#endif
Module : Data . Vector . . Base
Copyright : ( c ) Roman Leshchinskiy 2009 - 2010
Maintainer : < >
module Data.Vector.Unboxed.Base (
MVector(..), IOVector, STVector, Vector(.... |
0c53b19e4094dce3f137b9dce7c83c5343d6eb386b0c4f671b6e19094f400702 | noinia/hgeometry | IO.hs | # OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE ScopedTypeVariables #
--------------------------------------------------------------------------------
-- |
Module : Data . PlanarGraph . IO
Copyright : ( C )
-- License : see the LICENSE file
Maintainer :
--
Converting from / to our Adj... | null | https://raw.githubusercontent.com/noinia/hgeometry/8bab77ebce6ae84a7dbf36ebd76e5a38e3963113/hgeometry-combinatorial/src/Data/PlanarGraph/IO.hs | haskell | ------------------------------------------------------------------------------
|
License : see the LICENSE file
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-----------------------------------------... | # OPTIONS_GHC -fno - warn - orphans #
# LANGUAGE ScopedTypeVariables #
Module : Data . PlanarGraph . IO
Copyright : ( C )
Maintainer :
Converting from / to our Adjacency - list representation of the Planar graph
module Data.PlanarGraph.IO
( toAdjRep
, fromAdjRep
, fromAdjRep'
, bui... |
8bbdf8df21bd14b2281b021a6e9aab7dc6ba42da9164170c31da55d1932818ab | thepower/tpnode | interconnect.erl | -module(interconnect).
| null | https://raw.githubusercontent.com/thepower/tpnode/11b8bf67be72b4ceea5a75e387cc33dcd8ec1898/apps/tpnode/src/interconnect.erl | erlang | -module(interconnect).
| |
0da80f507b5ad4ded699eb0612b94aa79ec1c724a075b0fe51a89bfb9aff271a | parapluu/Concuerror | io_format.erl | -module(io_format).
-export([scenarios/0]).
-export([test/0]).
scenarios() ->
[{test, inf, dpor}].
test() ->
io:format("Test"),
receive after infinity -> ok end.
| null | https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/io_format.erl | erlang | -module(io_format).
-export([scenarios/0]).
-export([test/0]).
scenarios() ->
[{test, inf, dpor}].
test() ->
io:format("Test"),
receive after infinity -> ok end.
| |
b58eefef932ee87cf86590f3d0bcb11eecfc39c5834c2b1494b0865d7901d649 | alei76/java-blog-hxzon | (hxzon学习笔记)clojure源码-clojure.core.clj | ;(hxzon学习笔记)clojure源码-clojure.core.clj
by hxzon
;
;fn* 见 clojure/lang/Compiler.java 。
;let*
;=====
(def unquote)
(def unquote-splicing)
;======
;----
;let:
;during bootstrap we don't have destructuring let, loop or fn, will redefine later
(def
^{:macro true
:added "1.0"}
let (fn* let [&form &env & de... | null | https://raw.githubusercontent.com/alei76/java-blog-hxzon/ecde3517edccf632f8fa14da95f2f382387d3b39/1%EF%BC%8C%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80/1%EF%BC%8Cclojure/clojure%E6%BA%90%E7%A0%81%E5%AD%A6%E4%B9%A0/%EF%BC%88hxzon%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%89clojure%E6%BA%90%E7%A0%81-clojure.core.clj | clojure | (hxzon学习笔记)clojure源码-clojure.core.clj
fn* 见 clojure/lang/Compiler.java 。
let*
=====
======
----
let:
during bootstrap we don't have destructuring let, loop or fn, will redefine later
----
loop:
----
fn:
========
nil
==========
定义函数(defn):
name,函数名,必须是一个符号
Note: Cannot delegate this check to def because of the call t... |
by hxzon
(def unquote)
(def unquote-splicing)
(def
^{:macro true
:added "1.0"}
let (fn* let [&form &env & decl] (cons 'let* decl)))
let是一个宏(宏底层也是函数),生成 ( let * )
(def
^{:macro true
:added "1.0"}
loop (fn* loop [&form &env & decl] (cons 'loop* decl)))
(def
^{:macro true
:added "1.0"}
... |
ba840746ba39ec9b2fb2a03bfcda4916f7c57a6b70f7cd6f1c4a483ec625d93e | typeclasses/haskell-phrasebook | test-records-with-optics.hs | main = propertyMain $ withTests 1 $ property do
x <- exeStdout $ phrasebook "records-with-optics"
strLines x ===
[ "Person {_name = \"Alice\", _age = 30, _address = Address {_city = \"Faketown\", _country = \"Fakeland\"}}"
, "Person {_name = \"Alice\", _age = 40, _address = Address {_city = \"Fa... | null | https://raw.githubusercontent.com/typeclasses/haskell-phrasebook/2b0aa44ef6f6e9745c51ed47b4e59ff704346c87/tests/test-records-with-optics.hs | haskell | main = propertyMain $ withTests 1 $ property do
x <- exeStdout $ phrasebook "records-with-optics"
strLines x ===
[ "Person {_name = \"Alice\", _age = 30, _address = Address {_city = \"Faketown\", _country = \"Fakeland\"}}"
, "Person {_name = \"Alice\", _age = 40, _address = Address {_city = \"Fa... | |
04aa85b43a024954d7de02bf28c87c7007bbe306a5927af3f5969b25f4af28d8 | matsen/pplacer | rppr_pdprune.ml | open Subcommand
open Guppy_cmdobjs
open Ppatteries
class cmd () =
object (self)
inherit subcommand () as super
inherit tabular_cmd () as super_tabular
val cutoff = flag "--cutoff"
(Needs_argument ("cutoff", "Specify the maximum branch length to be trimmed."))
val leaf_count = flag "--leaves"
(Needs_ar... | null | https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/pdprune_src/rppr_pdprune.ml | ocaml | open Subcommand
open Guppy_cmdobjs
open Ppatteries
class cmd () =
object (self)
inherit subcommand () as super
inherit tabular_cmd () as super_tabular
val cutoff = flag "--cutoff"
(Needs_argument ("cutoff", "Specify the maximum branch length to be trimmed."))
val leaf_count = flag "--leaves"
(Needs_ar... | |
e45e1267807ebbc75e2f41548d3468641fcf652397eafde641a5cdd388d5552c | HugoPeters1024/hs-sleuth | Fusion.hs | {-# LANGUAGE BangPatterns #-}
-- |
-- Module : Data.Text.Lazy.Fusion
Copyright : ( c ) 2009 , 2010
--
-- License : BSD-style
-- Maintainer :
-- Stability : experimental
Portability : GHC
--
-- /Warning/: this is an internal module, and does not have a stable
-- API or name. Functions in this modul... | null | https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/385655e62031959a14a3bac5e9ccd1c42c045f0c/test-project/text-1.2.3.2/Data/Text/Internal/Lazy/Fusion.hs | haskell | # LANGUAGE BangPatterns #
|
Module : Data.Text.Lazy.Fusion
License : BSD-style
Maintainer :
Stability : experimental
/Warning/: this is an internal module, and does not have a stable
API or name. Functions in this module may not check or enforce
preconditions expected by public modules. Use at yo... | Copyright : ( c ) 2009 , 2010
Portability : GHC
Core stream fusion functionality for text .
module Data.Text.Internal.Lazy.Fusion
(
stream
, unstream
, unstreamChunks
, length
, unfoldrN
, index
, countChar
) where
import Prelude hiding (length)
import qualified Data.T... |
10e65f75df4ea00169e8efd26f15d5904e36f3522d373b5c2bc44f0e480642ec | spurious/sagittarius-scheme-mirror | combinators.scm | (import (rnrs)
(sagittarius combinators)
(sagittarius io)
(srfi :26)
(srfi :64))
(test-begin "Combinators")
(let ()
(define (value1->2 a) (values a a))
(define (value1->3 a) (values a a a))
(define (value2->1 a b) a)
;; compose
(test-equal '(1 1 1)
(let-values ((r ((compose value1->3 value2->1 va... | null | https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/tests/sagittarius/combinators.scm | scheme | compose
reverse-compose
kestrel
thrush
cardinal
idiot
starling
identity, i = s k k
cardinal, c = s (s (k (s (k s) k)) s) (k k) | (import (rnrs)
(sagittarius combinators)
(sagittarius io)
(srfi :26)
(srfi :64))
(test-begin "Combinators")
(let ()
(define (value1->2 a) (values a a))
(define (value1->3 a) (values a a a))
(define (value2->1 a b) a)
(test-equal '(1 1 1)
(let-values ((r ((compose value1->3 value2->1 value1->2) 1)))... |
5290964f0dbbea0ec08f73cb4c5c6fd026edd65bc00ee1768833720f09359431 | the-concurrent-schemer/scm | scml_r5rs.erl | %%% The MIT License
%%%
Copyright ( C ) 2013 - 2014 by < >
%%%
%%% Permission is hereby granted, free of charge, to any person obtaining a copy
%%% of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitation the rights
%%% to u... | null | https://raw.githubusercontent.com/the-concurrent-schemer/scm/1726ec2e94e766893d80c286f816599defb6a524/src/scml_r5rs.erl | erlang | The MIT License
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 ( C ) 2013 - 2014 by < >
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , E... |
4fbf4e47a5550fd78c6c5c2261ecbff4c82b5430a67e3f525c0e3e263c4c5570 | Chris00/ocaml-benchmark | numbers.ml | open Printf
open Benchmark
Test the speed of addition for native ints ( unboxed ) , and
Int32 / Int64 ( which are both boxed ) .
The output looks something like numbers.out
Int32/Int64 (which are both boxed).
The output looks something like numbers.out
*)
let f_int n =
let rec loop i sum =
... | null | https://raw.githubusercontent.com/Chris00/ocaml-benchmark/72965ad1558c6f5d47b1559cee74423cbc5e970f/examples/numbers.ml | ocaml | print out the results of the f_* functions to doublecheck that
they work as we intend.
now let's exercise the *N functions: | open Printf
open Benchmark
Test the speed of addition for native ints ( unboxed ) , and
Int32 / Int64 ( which are both boxed ) .
The output looks something like numbers.out
Int32/Int64 (which are both boxed).
The output looks something like numbers.out
*)
let f_int n =
let rec loop i sum =
... |
9231cfa156d501cf44423278844cec81e1c07ff062bb18f0faa61d43bb2455c8 | bcc32/advent-of-code | main.ml | open! Core
open! Async
open! Import
let input =
Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| String.split_lines)
;;
let eval_string_length str =
let str = String.sub str ~pos:1 ~len:(String.length str - 2) in
let rec start ~pos ~count =
if pos >= String.length str
then count
... | null | https://raw.githubusercontent.com/bcc32/advent-of-code/86a9387c3d6be2afe07d2657a0607749217b1b77/2015/day_8/main.ml | ocaml | open! Core
open! Async
open! Import
let input =
Lazy_deferred.create (fun () -> Reader.file_contents "input.txt" >>| String.split_lines)
;;
let eval_string_length str =
let str = String.sub str ~pos:1 ~len:(String.length str - 2) in
let rec start ~pos ~count =
if pos >= String.length str
then count
... | |
54e662930f47a2eb87148f05404beeeb25e55fc761ecbf7347f122376a90c7c5 | qfpl/reflex-tutorial | Main.hs | module Main (
main
) where
import Solutions (solutions)
main ::
IO ()
main =
solutions
| null | https://raw.githubusercontent.com/qfpl/reflex-tutorial/07c1e6fab387cbeedd031630ba6a5cd946cc612e/code/exercises/exe/Main.hs | haskell | module Main (
main
) where
import Solutions (solutions)
main ::
IO ()
main =
solutions
| |
147264524c1a63e82b569701f78891d8b71c9c5c5e76d8f9a1ac626af9e295b8 | tezos/tezos-mirror | page_store.mli | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2023 Marigold < >
Copyright ( c ) 2... | null | https://raw.githubusercontent.com/tezos/tezos-mirror/64e0f91b521df34713852b92151b059dc665792f/src/lib_dac_node/page_store.mli | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2023 Marigold < >
Copyright ( c ) 2023 Trili Tech < >
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 " , WI... |
ce273e13b2a4210d278f92df05f6d4793174fc545422e430b67d2c633cbeb080 | microsoft/SLAyer | Initialize.mli | Copyright ( c ) Microsoft Corporation . All rights reserved .
open Program
val register : (Prog.t -> unit) -> unit
val initialize : Prog.t -> unit
| null | https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/Initialize.mli | ocaml | Copyright ( c ) Microsoft Corporation . All rights reserved .
open Program
val register : (Prog.t -> unit) -> unit
val initialize : Prog.t -> unit
| |
cda56c63d06d694024dfe79cc45c5c9b9054cf1afa71c595104e05f2f9f95833 | Lovesan/clave | codec.lisp | ;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
Copyright ( C ) 2017 , < lovesan.ru at gmail.com >
;;; 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, inclu... | null | https://raw.githubusercontent.com/Lovesan/clave/3b08ed4c4cb3fa885739355821f73bbfd75a2a7d/src/codec.lisp | lisp | -*- Mode: lisp; indent-tabs-mode: nil -*-
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
furnished to do... |
Copyright ( C ) 2017 , < lovesan.ru at gmail.com >
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KI... |
0a1d3a0dc9091931b0502860a64d9cd0ee2bf8ea4b3fb12decac740c6289f41a | backtracking/combine | tiling.mli | (**************************************************************************)
(* *)
(* Combine - an OCaml library for combinatorics *)
(* *)
Copyright... | null | https://raw.githubusercontent.com/backtracking/combine/d2d9276c99f6d09662900c348f062c618a1b4c95/src/lib/tiling.mli | ocaml | ************************************************************************
Combine - an OCaml library for combinatorics
... | Copyright ( C ) 2012 - 2014
modify it under the terms of the GNU Library General Public
License version 2.1 , with the special exception on linking
* Tiling problems mo... |
ae8d00fffb8b4daa98c9da3e90dd55979eff0587fbc915258ced7e0df27da5f9 | AdaCore/why3 | exthtbl.mli | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
(* ... | null | https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/src/util/exthtbl.mli | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
General Public License version 2.1 , with the special exception
* { 1 Association tables over hashable types }
val hash : 'a -> int
module type S =
sig
include Hashtbl... |
c08e4233be560dcef0e97c16fc1969572662e0178e3da3cc8f3433dac0c73443 | facundoolano/advenjure | dialogs_test.clj | (ns advenjure.dialogs-test
(:require [clojure.test :refer :all]
[clojure.core.async :refer [go <!!]]
[advenjure.test-utils :refer :all]
[advenjure.ui.output :refer :all]
[advenjure.ui.input :refer :all]
[advenjure.dialogs :as dialogs]
[advenjure.... | null | https://raw.githubusercontent.com/facundoolano/advenjure/2f05fdae9439ab8830753cc5ef378be66b7db6ef/test/advenjure/dialogs_test.clj | clojure | allow both single dialog or map
keep the output in an atom like a map as expected by is-output | (ns advenjure.dialogs-test
(:require [clojure.test :refer :all]
[clojure.core.async :refer [go <!!]]
[advenjure.test-utils :refer :all]
[advenjure.ui.output :refer :all]
[advenjure.ui.input :refer :all]
[advenjure.dialogs :as dialogs]
[advenjure.... |
63a91af52d0e06d335fa22e149b84088df000d90e20b7a08d4aab43e801300e3 | emqx/emqx | emqx_tls_lib.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2021 - 2023 EMQ 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 o... | null | https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/src/emqx_tls_lib.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 ) 2021 - 2023 EMQ 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(emqx_tls_lib).
-export([
available_versions/1,
integral_versions/2,
default... |
b2ec56837d3ff99d6799e37bac7741773cdcc13083fc6f16629e239532a49c4b | yminer/libml | learnMlpnnStochVisitor.ml | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[ LibML - Machine Learning Library ]
Copyright ( C ) 2002 - 2003 LAGACHERIE
This program is free software ; you can redistribute it and/or
modify it under the te... | null | https://raw.githubusercontent.com/yminer/libml/1475dd87c2c16983366fab62124e8bbfbbf2161b/src/nn/learn/learnMlpnnStochVisitor.ml | ocaml |
Reinitialized for the on line learning.
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[ LibML - Machine Learning Library ]
Copyright ( C ) 2002 - 2003 LAGACHERIE
This program is free software ; you can redistribute it and/or
modify it under the te... |
ac59dd24a31f9195bbdee6d8d79be0a96cf31cd282c4e49789daa2594a1bb2fb | ctford/traversy | lens.cljc | (ns traversy.test.lens
(:refer-clojure :exclude [update])
(:require [traversy.lens :refer [view-single view update it nothing each only in update
indexed all-entries all-values all-keys select-entries
conditionally put xth combine both *> +> mayb... | null | https://raw.githubusercontent.com/ctford/traversy/ea87ba64371e6649cafa0994120da3d60351aa3b/test/traversy/test/lens.cljc | clojure | (ns traversy.test.lens
(:refer-clojure :exclude [update])
(:require [traversy.lens :refer [view-single view update it nothing each only in update
indexed all-entries all-values all-keys select-entries
conditionally put xth combine both *> +> mayb... | |
f585b6d3d2d08b16aedef2e4924668a00b155804e0b93e5fef269ba3dd5bc68a | AbstractMachinesLab/caramel | bin.mli | (** Binaries from the PATH *)
(** Character used to separate entries in [PATH] and similar environment
variables *)
val path_sep : char
* a [ PATH ] like variable
val parse_path : ?sep:char -> string -> Path.t list
(** Add an entry to the contents of a [PATH] variable. *)
val cons_path : Path.t -> _PATH:string ... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/vendor/stdune/bin.mli | ocaml | * Binaries from the PATH
* Character used to separate entries in [PATH] and similar environment
variables
* Add an entry to the contents of a [PATH] variable.
* Extension to append to executable filenames
* Check if a file exists
* Look for a program in the PATH
* "make" program |
val path_sep : char
* a [ PATH ] like variable
val parse_path : ?sep:char -> string -> Path.t list
val cons_path : Path.t -> _PATH:string option -> string
val exe : string
val exists : Path.t -> bool
val which : path:Path.t list -> string -> Path.t option
val make : path:Path.t list -> Path.t option
|
f19e82f9ee2295941bfc67059f6ef00ab080aeb81133ef6c2e117afda582bf08 | coccinelle/coccinelle | gc.mli | type stat =
{
minor_words: float ;
promoted_words: float ;
major_words: float ;
minor_collections: int ;
major_collections: int ;
heap_words: int ;
heap_chunks: int ;
live_words: int ;
live_blocks: int ;
free_words: int ;
free_blocks: int ;
largest_free: int ;
fragments: int ;
compactions:... | null | https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.12/gc.mli | ocaml | type stat =
{
minor_words: float ;
promoted_words: float ;
major_words: float ;
minor_collections: int ;
major_collections: int ;
heap_words: int ;
heap_chunks: int ;
live_words: int ;
live_blocks: int ;
free_words: int ;
free_blocks: int ;
largest_free: int ;
fragments: int ;
compactions:... | |
e063ecef804792cefc15fcb75a53c8974014dde67d24ad9d895aafa28e53528e | MLstate/opalang | bslKey.mli |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... | null | https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/compilerlib/bslKey.mli | ocaml | * {6 Guidelines}
*
Whenever you use a value of type [BslKey.t] in your code,
you should use [key] or [bslkey] as variable identifier.
When you are manipulating a key after a [to_string] manipulation,
you should use [skey] as variable identifier.
{[
match expr with
| Bypass key ->
let skey... |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... |
0a154231d5dcc4dca8de2efaf439f63ba396b062ff61fa121ffe71d4c15e5a6c | bvaugon/ocapic | arrayLabels.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/lib/arrayLabels.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
external length : 'a array -> int = "%array_length"
external get : 'a array -> int -> 'a = "%array_safe... |
f238fc9cdfe8bcc41c1a55635e74be7b8db89102b83c6dcc334cc45702dbe50c | myshov/programming_in_haskell | replicate.hs | replicate_ :: Int -> a -> [a]
replicate_ n x = [x | _ <- [1..n]]
| null | https://raw.githubusercontent.com/myshov/programming_in_haskell/3118695cc09a5ea0954917c318bf007b6ae5fcef/lesson5/replicate.hs | haskell | replicate_ :: Int -> a -> [a]
replicate_ n x = [x | _ <- [1..n]]
| |
dff7f6d831491f8c86f1e7f3860e603f9df5836d112b48c68c00c7aa7fc90d27 | fredrikt/yxa | database_eventdata.erl | %%%-------------------------------------------------------------------
%%% File : database_eventdata.erl
@author < >
@doc Eventdata database functions .
%%%
@since 3 Mar 2006 by < >
%%% @end
%%%-------------------------------------------------------------------
-module(database_eventdata).
... | null | https://raw.githubusercontent.com/fredrikt/yxa/85da46a999d083e6f00b5f156a634ca9be65645b/src/database/database_eventdata.erl | erlang | -------------------------------------------------------------------
File : database_eventdata.erl
@end
-------------------------------------------------------------------
--------------------------------------------------------------------
External exports
--------------------------------------------------------... | @author < >
@doc Eventdata database functions .
@since 3 Mar 2006 by < >
-module(database_eventdata).
-export([
create/0,
create/1,
insert/6,
update/7,
refresh_presentity_etag/4,
fetch_using_presentity/1,
fetch_using_presentity_etag/2,
list/0,
delete_expired/0,
delete_u... |
3192564f63c92bd89c5f75823ae867451a2e042b3d026b2f9a6f83dc433eb3b8 | guicho271828/eazy-opencl | 6list-apis.lisp |
(in-package :eazy-opencl.host)
(defmacro get-counted-list (fun (&rest args) type)
"Handles some apis returning an array."
(with-gensyms (fcount count buffer i)
`(with-foreign-object (,fcount '%ocl:uint)
;; the total length is unknown, so calls it once
(,fun ,@args 0 (cffi:null-pointer) ,fcount)
... | null | https://raw.githubusercontent.com/guicho271828/eazy-opencl/ec3b2aae3a768bed738d825a0c7e2394a3d6622a/2.host-src/6list-apis.lisp | lisp | the total length is unknown, so calls it once
then call the same function again to obtain the real array
FIXME: figure out if returning same pointer twice is correct,
possibly remove-duplicates on it if so? |
(in-package :eazy-opencl.host)
(defmacro get-counted-list (fun (&rest args) type)
"Handles some apis returning an array."
(with-gensyms (fcount count buffer i)
`(with-foreign-object (,fcount '%ocl:uint)
(,fun ,@args 0 (cffi:null-pointer) ,fcount)
(let ((,count (mem-aref ,fcount '%ocl:uint)))
... |
547b36b8cfaa9389256cd5244b82bb3e3152051ca4a52c9f44a13845530ec92c | erlang/erlide_kernel | erlide_parse_tests.erl | -module(erlide_parse_tests).
%%
%% Include files
%%
-include_lib("eunit/include/eunit.hrl").
split_test_() ->
[
?_assertEqual([], erlide_parse:split([])),
?_assertEqual([[a,b,c]], erlide_parse:split([a,b,c])),
?_assertEqual([[a,{dot, 1}],[d,e]], erlide_parse:split([a,{dot, 1},d,e])),
?_assert... | null | https://raw.githubusercontent.com/erlang/erlide_kernel/763a7fe47213f374b59862fd5a17d5dcc2811c7b/ide/apps/erlide_ide_core/test/erlide_parse_tests.erl | erlang |
Include files
| -module(erlide_parse_tests).
-include_lib("eunit/include/eunit.hrl").
split_test_() ->
[
?_assertEqual([], erlide_parse:split([])),
?_assertEqual([[a,b,c]], erlide_parse:split([a,b,c])),
?_assertEqual([[a,{dot, 1}],[d,e]], erlide_parse:split([a,{dot, 1},d,e])),
?_assertEqual([[a,{dot, 1}],[d,... |
b467cce54637cb6602f531542e3e17564c5b8a51f4ba463a2d12bea69238a00e | armedbear/abcl | format.lisp | (in-package :cl-user)
;;; <>
(prove:plan 1)
(prove:is
(format nil "~:<~W ~(~W~)~:>" '(a b))
'(A B))
(prove:finalize)
| null | https://raw.githubusercontent.com/armedbear/abcl/4130ff4a0efd043b79ed56b54c47a2e99da32f08/t/format.lisp | lisp | <> | (in-package :cl-user)
(prove:plan 1)
(prove:is
(format nil "~:<~W ~(~W~)~:>" '(a b))
'(A B))
(prove:finalize)
|
07ead47f025564a2cad1ff94056bc03cdbc17f8c73f5e0e8611b1f09556c4c35 | retro/keechma-next-realworld-app | profile_user.cljs | (ns app.controllers.profile-user
(:require [keechma.next.controller :as ctrl]
[keechma.next.controllers.pipelines :as pipelines]
[keechma.next.controllers.entitydb :as edb]
[keechma.next.controllers.dataloader :as dl]
[keechma.pipelines.core :as pp :refer-macros [pipeli... | null | https://raw.githubusercontent.com/retro/keechma-next-realworld-app/47a14f4f3f6d56be229cd82f7806d7397e559ebe/src/app/controllers/profile_user.cljs | clojure | (ns app.controllers.profile-user
(:require [keechma.next.controller :as ctrl]
[keechma.next.controllers.pipelines :as pipelines]
[keechma.next.controllers.entitydb :as edb]
[keechma.next.controllers.dataloader :as dl]
[keechma.pipelines.core :as pp :refer-macros [pipeli... | |
5681caa0d7488910461b6d41620c406e8d62ac99ee211142082b37ba7d7a8d54 | melange-re/melange | bs_hashmap_test.ml | let suites : Mt.pair_suites ref = ref []
let test_id = ref 0
let eqx loc x y = Mt.eq_suites ~test_id ~suites loc x y
let b loc x = Mt.bool_suites ~test_id ~suites loc x
module N = Belt.HashMap
module S = Belt.Map.Int
(* module Y = struct
type t = int
end *)
let eq = fun (x : int) y -> x = y
let hash = f... | null | https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/bs_hashmap_test.ml | ocaml | module Y = struct
type t = int
end
[%bs.hash {
eq :
hash :
}]
| let suites : Mt.pair_suites ref = ref []
let test_id = ref 0
let eqx loc x y = Mt.eq_suites ~test_id ~suites loc x y
let b loc x = Mt.bool_suites ~test_id ~suites loc x
module N = Belt.HashMap
module S = Belt.Map.Int
let eq = fun (x : int) y -> x = y
let hash = fun (x : int) -> Hashtbl.hash x
let cmp = fun (x ... |
df928bfed1a1d7c5f3ac7e29d309793e54c3098e041d34cb0c1c292bb6f2bf22 | quietfanatic/neskell | ASM.hs |
# LANGUAGE RecursiveDo #
module ASM (
ASM, ASMblage, asm, asm_result,
byte, bytes, ascii, bytestring, binfile, fill, fillto, pad, hex, hexdata,
le16, be16, le32, be32, le64, be64, lefloat, befloat, ledouble, bedouble,
nothing, here,
no_overflow,
rep, repfor, skip, (>>.),
allocate8, allocat... | null | https://raw.githubusercontent.com/quietfanatic/neskell/63ebd4316959ab95c8b2a4aea21eb114340a39c0/lib/ASM.hs | haskell | for serializing floats and doubles
allow target to be 0 on unsigned types for instance |
# LANGUAGE RecursiveDo #
module ASM (
ASM, ASMblage, asm, asm_result,
byte, bytes, ascii, bytestring, binfile, fill, fillto, pad, hex, hexdata,
le16, be16, le32, be32, le64, be64, lefloat, befloat, ledouble, bedouble,
nothing, here,
no_overflow,
rep, repfor, skip, (>>.),
allocate8, allocat... |
41d9020d3066bdceaa980ede7129539e7e26a50ae22a1603e1ec9dfd2305a94f | marcoheisig/fast-generic-functions | utilities.lisp | (in-package #:fast-generic-functions)
(defun parse-body (body)
(let ((declarations '())
(documentation nil))
(loop for (item . rest) on body do
(cond ((and (stringp item) (consp rest))
(if (not documentation)
(setf documentation item)
(error "Multiple ... | null | https://raw.githubusercontent.com/marcoheisig/fast-generic-functions/9c307cd28af6453e45038ac3510de3123ff23743/code/utilities.lisp | lisp | non-alphanumeric characters. This has the effect that
digits and hypens. | (in-package #:fast-generic-functions)
(defun parse-body (body)
(let ((declarations '())
(documentation nil))
(loop for (item . rest) on body do
(cond ((and (stringp item) (consp rest))
(if (not documentation)
(setf documentation item)
(error "Multiple ... |
fcb815faf3f7d6b044524a5dc6dac62dbae028c70b78eae3cec1524bcb4cd7e7 | Holmusk/three-layer | Measure.hs | module Lib.Effects.Measure
( MonadMeasure
, MonadTimed (timedAction) -- temporarily required for mock tests
-- * Internals
, timedActionImpl
) where
import Relude.Extra.CallStack (ownName)
import Lib.App (App, Has (..), Timings, grab)
import qualified Data.HashMap.Strict as Has... | null | https://raw.githubusercontent.com/Holmusk/three-layer/1b58ec102f206681b66a584ca4a7d18f2eb4ef81/src/Lib/Effects/Measure.hs | haskell | temporarily required for mock tests
* Internals
| Performs action
| Measure the time taken to perform the given action and store it
in the 'timings' distribution with the given label | module Lib.Effects.Measure
( MonadMeasure
, timedActionImpl
) where
import Relude.Extra.CallStack (ownName)
import Lib.App (App, Has (..), Timings, grab)
import qualified Data.HashMap.Strict as HashMap
import qualified GHC.Clock as Clock
import qualified System.Metrics as Metrics
import qualifi... |
a39d972b6c16aeeb1ae75ec6f15afddf1ed488e44846fed839ac5d1c9c3f4065 | joelburget/lvca | Statics.mli | (** Statics describe the rules for stating whether an expression is well-formed. This
implementation is for expressing bidirectional typing rules. *)
open Lvca_syntax
open Lvca_util
(** Both typing and inference rules share this shape.
There is an important distinction in terms of the typechecking algorithm,... | null | https://raw.githubusercontent.com/joelburget/lvca/f8a3b8e294f564d1fc9836af63e6169b26ca0234/bidirectional/Statics.mli | ocaml | * Statics describe the rules for stating whether an expression is well-formed. This
implementation is for expressing bidirectional typing rules.
* Both typing and inference rules share this shape.
There is an important distinction in terms of the typechecking algorithm, though.
Inference rules assert that... |
open Lvca_syntax
open Lvca_util
module Typing_rule : sig
type t =
{ tm : Binding_aware_pattern.t
; ty : Binding_aware_pattern.t
}
val equivalent : ?info_eq:(Provenance.t -> Provenance.t -> bool) -> t -> t -> bool
val ( = ) : t -> t -> bool
end
module Typing_clause : sig
type inference_rule = Typ... |
ad36b3609323c2234d8fbf46e99745f802f47c60f6c9948482954f90f0576ca9 | nachivpn/mt | util.erl | -module (util).
-export([to_string/1,intersperse/2,
interFoldEffect/4,pairwiseChunk/1,
getFnName/1,getFnArgLen/1,getFnClauses/1,
getLn/1,getFnQName/1,eqLists/3,
keysIntersection/1,allElemEq/2,find/2]).
-export_type([maybe/1]).
-type maybe(A) :: {nothing} | {just,A}.
to_string(X) -> lists:flatten(io_li... | null | https://raw.githubusercontent.com/nachivpn/mt/fcffbcb770cfe0b19c189e6c8ce2ccab61062195/etc/src/util.erl | erlang | a fold with an "effect intersperse"
[maps:map()] -> sets:set("keys") | -module (util).
-export([to_string/1,intersperse/2,
interFoldEffect/4,pairwiseChunk/1,
getFnName/1,getFnArgLen/1,getFnClauses/1,
getLn/1,getFnQName/1,eqLists/3,
keysIntersection/1,allElemEq/2,find/2]).
-export_type([maybe/1]).
-type maybe(A) :: {nothing} | {just,A}.
to_string(X) -> lists:flatten(io_li... |
d2a1dea6debde48825abbd200b3eeec2afb9aaa30ade5645e2fec88a10b161c1 | jdevuyst/termcat | math.cljs | (ns termcat.util.math
(:require-macros [cljs.core.match.macros :refer (match)])
(:require
[cljs.core.match]
[ cljs.reader :as edn]
[clojure.core.reducers :as r]
[termcat.rewrite :as rw]
... | null | https://raw.githubusercontent.com/jdevuyst/termcat/5b4d89da67de89e6d62933c8c407e7a79ffdb0cb/doc/js/termcat/util/math.cljs | clojure | (interpose [sep] $) ; broken. puts sep between parentheses and identifiers | (ns termcat.util.math
(:require-macros [cljs.core.match.macros :refer (match)])
(:require
[cljs.core.match]
[ cljs.reader :as edn]
[clojure.core.reducers :as r]
[termcat.rewrite :as rw]
... |
fb1ab0f4c712f2d500dd64fe041f7d87e54d84ac4e17a37f6f23f5909213d142 | racket/web-server | unsafe.rkt | #lang web-server/base
(define-syntax-rule (require-provide mod ...)
(begin (require mod ...) (provide (all-from-out mod) ...)))
(require-provide "unsafe/lib.rkt"
"unsafe/input.rkt"
"unsafe/syntax.rkt"
"unsafe/dyn-syntax.rkt"
"unsafe/embed.rkt"
... | null | https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-lib/web-server/formlets/unsafe.rkt | racket | #lang web-server/base
(define-syntax-rule (require-provide mod ...)
(begin (require mod ...) (provide (all-from-out mod) ...)))
(require-provide "unsafe/lib.rkt"
"unsafe/input.rkt"
"unsafe/syntax.rkt"
"unsafe/dyn-syntax.rkt"
"unsafe/embed.rkt"
... | |
94869ce76210e98f6323f16aa301a10f28253d85e1f391238b254ba1fce1b455 | rescript-lang/rescript-compiler | config_util.mli | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* Copyright ( C ) 2016 - , Authors of ReScript
* This program 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... | null | https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/core/config_util.mli | ocaml | * A simple wrapper around [Config] module in compiler-libs, so that the search path
is the same
* [find filename] Input is a file name, output is absolute path
* given the input, calculate the output prefix
in: src/hello.ast
out: src/hello
with namespace:
in: src/hello.ast
out: src/hello-Ns... | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
* Copyright ( C ) 2016 - , Authors of ReScript
* This program 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... |
820e1acc4ddd25d013796f39ddd3cb1b58907d9218ab67022db7c690f200537a | racket/algol60 | runtime.rkt | #lang racket
(require racket/undefined)
(provide (struct-out a60:array)
(struct-out a60:switch)
undefined
check-boolean
goto
get-value
set-target!
make-array
array-ref
array-set!
make-switch
switch-ref
coerce)
(... | null | https://raw.githubusercontent.com/racket/algol60/e4aebcaff66f121cf52a1f58f4f7bd285eded728/runtime.rkt | racket | #lang racket
(require racket/undefined)
(provide (struct-out a60:array)
(struct-out a60:switch)
undefined
check-boolean
goto
get-value
set-target!
make-array
array-ref
array-set!
make-switch
switch-ref
coerce)
(... | |
55ebe270ef3108e786280bdfefb9762fd07d85495c52cc8b7e61d1ffba72df7c | conjure-cp/conjure | Div.hs | # LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable #
module Conjure.Language.Expression.Op.Div where
import Conjure.Prelude
import Conjure.Language.Expression.Op.Internal.Common
import qualified Data.Aeson as JSON -- aeson
import qualified Data.HashMap.Strict as M -- ... | null | https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/Div.hs | haskell | aeson
unordered-containers
vector | # LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable #
module Conjure.Language.Expression.Op.Div where
import Conjure.Prelude
import Conjure.Language.Expression.Op.Internal.Common
data OpDiv x = OpDiv x x
deriving (Eq, Ord, Show, Data, Functor, Traversable, Foldable, Typeable, Gene... |
bbbee01eb3321bdd45e6509e9b5a421d95330e2d3ae0940af15a894108e9d9d3 | thizanne/cormoran | bddapronAdapter.ml | open Bddapron
open Batteries
open Printf
open Util
module T = TypedAst
module Ty = Types
module L = Location
module BddDomain = Mtbdddomain1
let typ_of_var : type a. (a, _) T.var -> _ =
function { T.var_type; _ } -> match var_type with
| Ty.Int -> `Int
| Ty.Bool -> `Bool
module Make (N : ApronAdapter.Num... | null | https://raw.githubusercontent.com/thizanne/cormoran/46d13330ebd1c8224a0603fd473d8e6bed48bf53/src/domains/inner/bddapronAdapter.ml | ocaml | TODO: Use Sym.t instead of string as the symbol type
Inside this module, Env is Bddapron.Env
TODO: probably sufficient to swap the dimensions of a and b in the env
b should have the same type | open Bddapron
open Batteries
open Printf
open Util
module T = TypedAst
module Ty = Types
module L = Location
module BddDomain = Mtbdddomain1
let typ_of_var : type a. (a, _) T.var -> _ =
function { T.var_type; _ } -> match var_type with
| Ty.Int -> `Int
| Ty.Bool -> `Bool
module Make (N : ApronAdapter.Num... |
f0309fb5fd67ce0006fe0eeab7f857c09f407e285336a6f7dc6e42c9d51b2ef2 | biegunka/command-qq | CommandT.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE TypeFamilies #
| Example DSL made on top of " System . Command . QQ "
--
-- Provides [semi-]convenient way to run external commands
-- in sequence and parse their output.
--
-- DSL does not use any custom quasiquoters but provides 'Eval'
-- instances for custom datatypes that... | null | https://raw.githubusercontent.com/biegunka/command-qq/0685e99f24051e76b31c70aee6319b81f28d4cf2/example/CommandT.hs | haskell |
Provides [semi-]convenient way to run external commands
in sequence and parse their output.
DSL does not use any custom quasiquoters but provides 'Eval'
instances for custom datatypes that implement desired semantics
base
base
transformers
transformers
transformers
base
text
base
command-qq
$setup
>>> ... | # LANGUAGE FlexibleInstances #
# LANGUAGE TypeFamilies #
| Example DSL made on top of " System . Command . QQ "
module CommandT where
( Applicative(..), Alternative(..) )
Every external command results either in failure ( thus provides non - zero
exit code and @stderr@ ) or some value ( typically its @std... |
464d88d0212fe6fab18f94e655037a79fff7a662656e651104ac8d87022de9bc | arrdem/katamari | jar.clj | (ns roll.extensions.jar
"A definition of `jar` and `uberjar` based on `depstar`."
{:authors ["Reid 'arrdem' McKenzie <>"]}
(:require [clojure.string :as str]
[clojure.spec.alpha :as s]
[me.raynes.fs :as fs]
[hf.depstar.uberjar :as ds]
[roll.specs :as rs]
... | null | https://raw.githubusercontent.com/arrdem/katamari/55e2da2c37c02774a1332e410ceebee0a0742d27/src/roll-jvm/src/roll/extensions/jar.clj | clojure | Helpers
Mere jars
We only need buildgraph internal targets to be built for us.
We only need buildgraph internal targets to be built for us. | (ns roll.extensions.jar
"A definition of `jar` and `uberjar` based on `depstar`."
{:authors ["Reid 'arrdem' McKenzie <>"]}
(:require [clojure.string :as str]
[clojure.spec.alpha :as s]
[me.raynes.fs :as fs]
[hf.depstar.uberjar :as ds]
[roll.specs :as rs]
... |
7371692a6d06769b8a05d1f153e68f7b4f1fb57e233829dff0c1a98c9b73477d | uhc/uhc | LayoutRule.hs | | Module : LayoutRule
License : GPL
Maintainer :
Stability : experimental
Portability : portable
License : GPL
Maintainer :
Stability : experimental
Portability : portable
-}
module Helium.Parser.LayoutRule(layout) where
... | null | https://raw.githubusercontent.com/uhc/uhc/8eb6914df3ba2ba43916a1a4956c6f25aa0e07c5/EHC/src/helium/Parser/LayoutRule.hs | haskell | let?
previous token
enclosing contexts
If we see another token, we check to see if we need to add a
new context.
If we're in a let layout context, an 'in' can end
the context, too.
If we're in a layout context and the new token is not on the
same line as the previous, we check the col... | | Module : LayoutRule
License : GPL
Maintainer :
Stability : experimental
Portability : portable
License : GPL
Maintainer :
Stability : experimental
Portability : portable
-}
module Helium.Parser.LayoutRule(layout) where
... |
37e8059343d8e70654bd8dadb089161ca00c2622092e1986628b2cdfc35ab39a | camllight/camllight | exc.mli | (* Exceptions *)
value raise : exn -> 'a = 1 "raise";;
(* Raise the given exception value. *)
(*** A few general-purpose predefined exceptions. *)
exception Out_of_memory;;
(* Raised by the garbage collector, when there is insufficient
memory to complete the computation. *)
exception Inval... | null | https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/windows/src/lib/exc.mli | ocaml | Exceptions
Raise the given exception value.
** A few general-purpose predefined exceptions.
Raised by the garbage collector, when there is insufficient
memory to complete the computation.
Raised by library functions to signal that the given
arguments do not make sense.
Raised by library ... |
value raise : exn -> 'a = 1 "raise";;
exception Out_of_memory;;
exception Invalid_argument of string;;
exception Failure of string;;
exception Not_found;;
exception Exit;;
value failwith : string -> 'a;;
value invalid_arg : string -> 'a;;
|
a97e52672999563325296e3543dbf0ea02d6f6d87323d5f5c5895480141b9b44 | RRethy/nvim-treesitter-textsubjects | textsubjects-smart.scm | ((comment) @_start @_end
(#make-range! "range" @_start @_end))
TODO This query does n't work for comment groups at the start and end of a
; file
; See -sitter/tree-sitter/issues/1138
(((_) @head . (comment) @_start . (comment)+ @_end (_) @tail)
(#not-has-type? @tail "comment")
(#not-has-type? @head "com... | null | https://raw.githubusercontent.com/RRethy/nvim-treesitter-textsubjects/9994933abe14fc9f2739820a2576eea5005f6411/queries/typescript/textsubjects-smart.scm | scheme | file
See -sitter/tree-sitter/issues/1138
typescript | ((comment) @_start @_end
(#make-range! "range" @_start @_end))
TODO This query does n't work for comment groups at the start and end of a
(((_) @head . (comment) @_start . (comment)+ @_end (_) @tail)
(#not-has-type? @tail "comment")
(#not-has-type? @head "comment")
(#make-range! "range" @_start @_en... |
eaa31383d2809e6276b08c785d4e366a10faf1aaff31f680ca8ec8bdc6e6fa19 | vlaaad/plusinia | plusinia_test.clj | (ns io.github.vlaaad.plusinia-test
(:require [io.github.vlaaad.plusinia :as p]
[com.walmartlabs.lacinia :as l]
[clojure.test :refer :all]
[com.walmartlabs.lacinia.schema :as l.schema]))
(def ^:private ^:dynamic *invocations*)
(defn- wrap-count-invocations [f]
(with-meta (fn [& ... | null | https://raw.githubusercontent.com/vlaaad/plusinia/b3609a37ba469f7540313eaf57d8ecfd12113844/test/io/github/vlaaad/plusinia_test.clj | clojure | depth 0: concepts
depth 0: contexts | (ns io.github.vlaaad.plusinia-test
(:require [io.github.vlaaad.plusinia :as p]
[com.walmartlabs.lacinia :as l]
[clojure.test :refer :all]
[com.walmartlabs.lacinia.schema :as l.schema]))
(def ^:private ^:dynamic *invocations*)
(defn- wrap-count-invocations [f]
(with-meta (fn [& ... |
0bb085c802e72f0fa704d3ccc07947c0b778ed195b4eff2d81ab31b164302232 | toschoo/mom | tparser.hs | module Main
where
import Network.Mom.Stompl.Parser
import Network.Mom.Stompl.Frame
import Test.QuickCheck
import qualified Data.ByteString as B
import qualified Data.ByteString.UTF8 as U
import Data.Char (toUpper)
import Data.List (foldl')
import System.FilePath ((</>))
import System.Exit... | null | https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/stompl/test/suite/tparser.hs | haskell | -----------------------------------------------------------------------
Random Tests
-----------------------------------------------------------------------
get a "frame maker" -------------------------------------------------
remove special chars
connect and connected
are not escaped!
random headers ------------... | module Main
where
import Network.Mom.Stompl.Parser
import Network.Mom.Stompl.Frame
import Test.QuickCheck
import qualified Data.ByteString as B
import qualified Data.ByteString.UTF8 as U
import Data.Char (toUpper)
import Data.List (foldl')
import System.FilePath ((</>))
import System.Exit... |
abf6d4a9e2ff6dd566d58ef2fad2a36c0db98b3e029881d64b2896b19f42d518 | eerohele/enne | gen.cljc | (ns enne.gen
(:require [clojure.string :as string]
[clojure.test.check.generators :as gen]
[enne.core :refer [as-string]]
[enne.data :as data]
[enne.pic :as pic])
#?(:cljs (:require-macros [clojure.test.check.generators :as gen])))
(def last-name
(gen/elements (:l... | null | https://raw.githubusercontent.com/eerohele/enne/3de679e01b617182d5694a78e8d8cd9afc78ec26/src/enne/gen.cljc | clojure | (ns enne.gen
(:require [clojure.string :as string]
[clojure.test.check.generators :as gen]
[enne.core :refer [as-string]]
[enne.data :as data]
[enne.pic :as pic])
#?(:cljs (:require-macros [clojure.test.check.generators :as gen])))
(def last-name
(gen/elements (:l... | |
efa4ba879e7f1ade13adf9afdfbdc917e6fbf002a2d54509fe331b0501839df7 | apache/couchdb-rebar | require_vsn_rt.erl | -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
%% ex: ts=4 sw=4 et
%% -------------------------------------------------------------------
%%
rebar : Erlang Build Tools
%%
Copyright ( c ) 2014
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software a... | null | https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/inttest/require_vsn/require_vsn_rt.erl | erlang | ex: ts=4 sw=4 et
-------------------------------------------------------------------
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 sel... | -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
rebar : Erlang Build Tools
Copyright ( c ) 2014
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Soft... |
0f9cb9818d166dfe423c4c64c8976ff9f2fae98c9491c9c9d2fb1b71f8b54bfd | bazqux/bazqux-urweb | Properties.hs | import Control.Applicative ((<$>))
import Control.Exception (finally)
import Control.Monad (forM_)
import Data.IORef (IORef, modifyIORef, newIORef, readIORef)
import Network.Riak.Connection (defaultClient)
import Network.Riak.Connection.Pool (Pool, create, withConnection)
import Network.Riak.Content (binary)
import Net... | null | https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Lib/riak-0.7.2.0/tests/Properties.hs | haskell | import Control.Applicative ((<$>))
import Control.Exception (finally)
import Control.Monad (forM_)
import Data.IORef (IORef, modifyIORef, newIORef, readIORef)
import Network.Riak.Connection (defaultClient)
import Network.Riak.Connection.Pool (Pool, create, withConnection)
import Network.Riak.Content (binary)
import Net... | |
a5d042214563ff5e33d3ce70deaaca316cc063d359fbcd053e258efd2410561d | pflanze/chj-schemelib | throwing.scm | Copyright 2019 by < >
;;; This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
;;; (at your option) any later version.
(require define-mac... | null | https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/throwing.scm | scheme | This file is free software; you can redistribute it and/or modify
(at your option) any later version.
just 1-ary? sigh. How again? Forever! | Copyright 2019 by < >
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
(require define-macro-star
(cj-symbol-with with-gensym))
(export throwing-function
throwing)
"Turn \"maybe-\" functions to excepti... |
ff59fc72d5d91ce4c5838d811eeffcbb9449bb0ded7bb7da13eaf3a0d8587672 | 0x0f0f0f/gobba | primitives.ml | open Types
(** Get the purity of a primitive *)
let get_primitive_purity x = match x with
Primitive (_, (_, _, p)) -> p
(** Get the actual function from a primitive type *)
let get_primitive_function x = match x with
Primitive (f, _) -> f
(** Get the information from a primitive type *)
let get_primitive_info x... | null | https://raw.githubusercontent.com/0x0f0f0f/gobba/61092207438fb102e36245c46c27a711b8f357cb/lib/primitives/primitives.ml | ocaml | * Get the purity of a primitive
* Get the actual function from a primitive type
* Get the information from a primitive type
* Generate a lambda from a native primitive
Generate a closure abstraction from a primitive
* The table of primitive functions (key - name) | open Types
let get_primitive_purity x = match x with
Primitive (_, (_, _, p)) -> p
let get_primitive_function x = match x with
Primitive (f, _) -> f
let get_primitive_info x = match x with
Primitive (_, i) -> i
let lambda_of_primitive prim =
let name, params, purity = get_primitive_info prim in
let s... |
f8daab8a448a2209e90ab875acfd731b5564dbf2f0382d75e790bd28c3f9bb18 | rabbitmq/khepri | prop_path_operations.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright © 2021 - 2023 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(prop_path_operations).
-include_lib("proper/... | null | https://raw.githubusercontent.com/rabbitmq/khepri/3527362ad9f59cff36231eb4e7b34dc066aa0f50/test/prop_path_operations.erl | erlang |
We discard any binary-based component which will be converted to a
pattern. | 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 © 2021 - 2023 VMware , Inc. or its affiliates . All rights reserved .
-module(prop_path_operations).
-include_lib("proper/includ... |
7df2dfa9950aa10d9f8b89ad9cdb238b3ddff60a2dc9b62997ad0f82da82ccf7 | goldfirere/singletons | T200.hs | module T200 where
import Data.Singletons.Base.TH
$(singletons [d|
data ErrorMessage = ErrorMessage :$$: ErrorMessage
| ErrorMessage :<>: ErrorMessage
| EM [Bool]
($$:) :: ErrorMessage -> ErrorMessage -> ErrorMessage
x $$: y = x :$$: y
(<>:) :: ... | null | https://raw.githubusercontent.com/goldfirere/singletons/70d622645b960d60411ab8f31d16ffb91e69379e/singletons-base/tests/compile-and-dump/Singletons/T200.hs | haskell | module T200 where
import Data.Singletons.Base.TH
$(singletons [d|
data ErrorMessage = ErrorMessage :$$: ErrorMessage
| ErrorMessage :<>: ErrorMessage
| EM [Bool]
($$:) :: ErrorMessage -> ErrorMessage -> ErrorMessage
x $$: y = x :$$: y
(<>:) :: ... | |
80ccab8c1538d089e7e692de46bbd7c98ed09882eb0e99ae2500e84bca50b5d4 | Decentralized-Pictures/T4L3NT | voting.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Nomadic Labs < >
(* ... | null | https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/tezt/tests/voting.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 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 " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN... |
346b144cc7c4eb6fac63a7a6c6ddfc0bf96363665fbd1f1e936fa5d32738bf0f | vikram/lisplibraries | packages.lisp | ;; -*- lisp -*-
(in-package :cl-user)
(defpackage :rfc2388.test
(:use :common-lisp
:5am
:rfc2388
:arnesi))
Copyright ( c ) 2003
Copyright ( c ) 2005
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following ... | null | https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/dependencies/rfc2388/test/packages.lisp | lisp | -*- lisp -*-
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer in the
documentation an... |
(in-package :cl-user)
(defpackage :rfc2388.test
(:use :common-lisp
:5am
:rfc2388
:arnesi))
Copyright ( c ) 2003
Copyright ( c ) 2005
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
THIS S... |
416beebea76e7d873f07b866a5e3b3e91344494f920acee5d889e19d91474ebf | unclebob/more-speech | elliptic_signature_spec.clj | (ns more-speech.nostr.elliptic-signature-spec
(:require [speclj.core :refer :all]
[more-speech.nostr.elliptic-signature :refer :all]
[more-speech.nostr.util :refer :all])
)
(describe "verification"
(it "verifies Aaron Dixon's example."
(should= true
(do-verify
... | null | https://raw.githubusercontent.com/unclebob/more-speech/bdd2f32b37264f20bf6abb4887489e70d2b0fdf1/spec/more_speech/nostr/elliptic_signature_spec.clj | clojure | (ns more-speech.nostr.elliptic-signature-spec
(:require [speclj.core :refer :all]
[more-speech.nostr.elliptic-signature :refer :all]
[more-speech.nostr.util :refer :all])
)
(describe "verification"
(it "verifies Aaron Dixon's example."
(should= true
(do-verify
... | |
6d17b8e95ab068fe06e35dd232c681c1c8d98efde6a63b945f021c8db9a41110 | frenetic-lang/ocaml-openflow | Async_OpenFlowChunk.ml | open Core.Std
module Platform = Async_OpenFlow_Platform
module Header = OpenFlow_Header
module Message : Platform.Message
with type t = (Header.t * Cstruct.t) = struct
type t = (Header.t * Cstruct.t) sexp_opaque with sexp
let header_of (hdr, _) = hdr
let parse hdr buf = (hdr, Cstruct.set_len buf (hdr.Heade... | null | https://raw.githubusercontent.com/frenetic-lang/ocaml-openflow/289ffb8a692cf32b8413cc58044aae9c151ddd44/async/Async_OpenFlowChunk.ml | ocaml | XXX(seliopou): This swallows any errors that might have occurred
* while attemping the handshake. Any such error should not be raised,
* since as far as the user is concerned the connection never existed.
* At the very least, the exception should be logged, which it will be
* as lon... | open Core.Std
module Platform = Async_OpenFlow_Platform
module Header = OpenFlow_Header
module Message : Platform.Message
with type t = (Header.t * Cstruct.t) = struct
type t = (Header.t * Cstruct.t) sexp_opaque with sexp
let header_of (hdr, _) = hdr
let parse hdr buf = (hdr, Cstruct.set_len buf (hdr.Heade... |
f3ec94ff746493c070650c1125ed583794020e2bc6d0a2bb9989c023121fdbce | deadeyejoe/fabrikk | interface_test.cljc | (ns fabrikk.utils.interface-test
(:require [clojure.test :as test :refer :all]
[fabrikk.utils.interface :as utils]))
(deftest dummy-test
(is (= 1 1)))
| null | https://raw.githubusercontent.com/deadeyejoe/fabrikk/73a4a50eebfd0c723fa3c33fd54bd9dd7e276441/components/utils/test/fabrikk/utils/interface_test.cljc | clojure | (ns fabrikk.utils.interface-test
(:require [clojure.test :as test :refer :all]
[fabrikk.utils.interface :as utils]))
(deftest dummy-test
(is (= 1 1)))
| |
0cee76419b8610382b93b5a44b83272b752b8e298abcde1a83de2b660e808e92 | vernemq/vernemq | vmq_passwd_reloader.erl | Copyright 2018 Erlio GmbH Basel Switzerland ( )
%%
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, sof... | null | https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_passwd/src/vmq_passwd_reloader.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 2018 Erlio GmbH Basel Switzerland ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_passwd_reloader).
-behaviour(gen_server).
-export([start_link/0]).
-export([change_config_now/0]).
-export([
... |
770ad866eff328db97d395df9646b7ed2ba4bb4f061754cdb735f1e6148edee2 | jrh13/hol-light | nistp224.ml | (* ========================================================================= *)
The NIST - recommended elliptic curve P-224 , aka secp224r1 .
(* ========================================================================= *)
needs "EC/weierstrass.ml";;
needs "EC/excluderoots.ml";;
needs "EC/computegrou... | null | https://raw.githubusercontent.com/jrh13/hol-light/f25b1592a72d8c1c2666231645cff4809aed1ce4/EC/nistp224.ml | ocaml | =========================================================================
=========================================================================
-------------------------------------------------------------------------
See -4.pdf
-------------------------------------------------------------------... | The NIST - recommended elliptic curve P-224 , aka secp224r1 .
needs "EC/weierstrass.ml";;
needs "EC/excluderoots.ml";;
needs "EC/computegroup.ml";;
add_curve weierstrass_curve;;
add_curveneg weierstrass_neg;;
add_curveadd weierstrass_add;;
The NIST curve parameters , copied from the NIST FIPS 18... |
af89d0eddb34d7b650421baf6374f5e10dd4646fcab96d875be2da0a4c7de06e | well-typed/large-records | R080.hs | #if PROFILE_CORESIZE
{-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-}
#endif
#if PROFILE_TIMING
{-# OPTIONS_GHC -ddump-to-file -ddump-timings #-}
#endif
# LANGUAGE OverloadedLabels #
{-# OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin #-}
module Experiment.UpdateOne.Sized.R080 where
import Da... | null | https://raw.githubusercontent.com/well-typed/large-records/cbeb9e710f297a2afd579b8d475e3734b80a9ccc/large-records-benchmarks/bench/large-anon/Experiment/UpdateOne/Sized/R080.hs | haskell | # OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #
# OPTIONS_GHC -ddump-to-file -ddump-timings #
# OPTIONS_GHC -fplugin=Data.Record.Anon.Plugin # | #if PROFILE_CORESIZE
#endif
#if PROFILE_TIMING
#endif
# LANGUAGE OverloadedLabels #
module Experiment.UpdateOne.Sized.R080 where
import Data.Record.Anon.Simple (Record)
import qualified Data.Record.Anon.Simple as Anon
import Bench.Types
import Common.RowOfSize.Row080
updateOne :: Record ExampleRow -> Record Examp... |
8acc9f0625265b59499dfdddf5aa4febe70e293f7f3bbb09b2530627d7f297f4 | craff/simple_httpd | makehtml.ml | open Simple_httpd_html
let spf = Printf.sprintf
let list_init n f =
let rec loop i =
if i=n then []
else f i :: loop (i+1)
in loop 0
let t1() =
html [] [
head [] [];
body [] [
ul [A.style "list-style: circle"] (
li[][pre [] [txt "a"; pre[][txt "c"; txt"d"]; txt "b"]] ::
lis... | null | https://raw.githubusercontent.com/craff/simple_httpd/b7c7e06a965c93398451b5df04ec34ce35284057/tests/html/makehtml.ml | ocaml | open Simple_httpd_html
let spf = Printf.sprintf
let list_init n f =
let rec loop i =
if i=n then []
else f i :: loop (i+1)
in loop 0
let t1() =
html [] [
head [] [];
body [] [
ul [A.style "list-style: circle"] (
li[][pre [] [txt "a"; pre[][txt "c"; txt"d"]; txt "b"]] ::
lis... | |
24c88fc397ed7b9725d855c7cda0bc3932e10af2a65edee3cc5f513e8ec38956 | futurice/haskell-mega-repo | Monad.hs | {-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
{-# LANGUAGE TemplateHaskell #-}
# LANGUAGE TypeFamilies #
{-# LANGUAGE TypeOperato... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/e301c08c8dfdcca048fe82fecce6bb2d02e9558a/futurice-integrations/src/Futurice/Integrations/Monad.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DataKinds #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeOperators #
* Granular
* state setters
-----------------------------------------------------------------------------
Environment
------------------------------------------------------------... | # LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
module Futurice.Integrations.Monad (
Integrations,
Env,
runIntegrations,
runIntegrationsW... |
cbba2657f488376d72fb4cc60a82a061d2896f0d3a481b375875855279bf82b8 | cfpb/qu | logging.clj | (ns qu.logging
(:require [clojure.string :as str]
[qu.metrics :as metrics]
[taoensso.timbre :as log :refer [error info]]))
(def ^:dynamic *log-id* "------")
(defn make-log-id
[]
(subs (str (java.util.UUID/randomUUID)) 0 6))
(defn format-output-fn
[{:keys [level throwable message times... | null | https://raw.githubusercontent.com/cfpb/qu/f460d9ab2f05ac22f6d68a98a9641daf0f7c7ba4/src/qu/logging.clj | clojure | Any extra appender-specific opts: | (ns qu.logging
(:require [clojure.string :as str]
[qu.metrics :as metrics]
[taoensso.timbre :as log :refer [error info]]))
(def ^:dynamic *log-id* "------")
(defn make-log-id
[]
(subs (str (java.util.UUID/randomUUID)) 0 6))
(defn format-output-fn
[{:keys [level throwable message times... |
ef3173a5e576af42a32b4feb7a0e2606d181f6cd1bbd45c98c0acc2048ff7771 | gedge-platform/gedge-platform | rabbit_federation_util.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(rabbit_federation_util).
-include_lib("r... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_federation/src/rabbit_federation_util.erl | erlang |
----------------------------------------------------------------------------
Used to detect message and binding forwarding cycles.
default value is 'false', so do the same thing | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_federation_util).
-include_lib("rabbit/... |
31c79a73fa0811f4a512b137461e99822c73f13f667da41c946054626bf5cbfc | Frama-C/Frama-C-snapshot | register_mod1.ml | module L = List
open Datatype
module List = L
(* Test with a mutual recursive function *)
let f_test i j=
Format.printf "Use f_test %d %d@." i j;
if i = 0 then j
else Dynamic.get ~plugin:"Register_mod2" "g_test" (func int int) (j-1)
let __ : int =
Dynamic.register ~plugin:"Register_mod1" "f_test" ~journalize:... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/tests/dynamic_plugin/register_mod1.ml | ocaml | Test with a mutual recursive function | module L = List
open Datatype
module List = L
let f_test i j=
Format.printf "Use f_test %d %d@." i j;
if i = 0 then j
else Dynamic.get ~plugin:"Register_mod2" "g_test" (func int int) (j-1)
let __ : int =
Dynamic.register ~plugin:"Register_mod1" "f_test" ~journalize:false
(func int (func int int)) f_test 3... |
6a4140ce0ddb95719eecdf3029c200cb833ca73985a9f62c9816ca4df9bb5412 | Chadtech/elmish-wasm | Module.hs | module Module
( readName
, readExposedParts
, readParts
, write
)
where
import Line (Line)
import Result (Result(..), Problem(..))
import qualified Result
import qualified Line
import qualified Part
import Part (Part(..))
import Text.Regex.Posix
import Data.List as List
import Data.List.Spli... | null | https://raw.githubusercontent.com/Chadtech/elmish-wasm/001463453ffbc2a6bc21803b00b7ed242ad4ffbd/src/Module.hs | haskell | READ --
WRITE -- | module Module
( readName
, readExposedParts
, readParts
, write
)
where
import Line (Line)
import Result (Result(..), Problem(..))
import qualified Result
import qualified Line
import qualified Part
import Part (Part(..))
import Text.Regex.Posix
import Data.List as List
import Data.List.Spli... |
8ff6d3da2c4d7ff4eaac9bd8bb97c0cd5853b92443a5cfa7ba5d4148fded5572 | rd--/hsc3 | rd-20061007.hs | -- ccomb (rd, 2006-10-07)
let lwr = 48
spart t _ = let n = range lwr 72.0 (lfNoise2 kr 0.1)
e = decay2 t 0.01 (tRand 0.05 0.75 t)
x = e * whiteNoise ar
f = lag (midiCps n) 0.25
in combC x (recip (midiCps lwr)) (recip f) (range 1 8 (lfNoise2... | null | https://raw.githubusercontent.com/rd--/hsc3/fb2ae8fb1923515938b69481a8971cc6b6d7a258/Help/Graph/rd-20061007.hs | haskell | ccomb (rd, 2006-10-07)
ccomb (rd, 2006-10-07) ; monad | let lwr = 48
spart t _ = let n = range lwr 72.0 (lfNoise2 kr 0.1)
e = decay2 t 0.01 (tRand 0.05 0.75 t)
x = e * whiteNoise ar
f = lag (midiCps n) 0.25
in combC x (recip (midiCps lwr)) (recip f) (range 1 8 (lfNoise2 kr 0.1))
t = dust kr ... |
578d0b1e23f189c3b25de757bb41485ce0bd4e710a1fc161332325a8e3fdcf94 | input-output-hk/ouroboros-network | Generators.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE QuantifiedConstraints #-}
# LANGUAGE ScopedTypeV... | null | https://raw.githubusercontent.com/input-output-hk/ouroboros-network/162c2b426ca66047f92a7d073036c13a434bf026/ouroboros-consensus-cardano-test/src/Test/Consensus/Cardano/Generators.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE DerivingStrategies #
# LANGUAGE GADTs #
# LANGUAGE QuantifiedConstraints #
# LANGUAGE UndecidableInstances #
| 'Arbitrary' instances intended for serialisation roundtrip tests for
Because the generated values are only used in ... | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeApplications #
# OPTIONS_GHC -Wno - orphans #
' CardanoBlock ' and its related types .
... |
8b1f848e7a4b60488719de97474a6027677249726827bfe94856c382706f3305 | larcenists/larceny | label3.scm | (text
(with-win-lose foo bar
(zero? eax))
(nop)
(nop)
(nop)
(seq (label bar
(inv (iter (seq (dec eax)
(inc ecx)
(>= eax 0)))))
(label foo (push ecx))))
00000000 85C0 test eax , eax
00000002 0F840F000000 jz near 0x17
00000008 E903000000 jmp 0x10... | null | https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims/label3.scm | scheme | bar:
foo: | (text
(with-win-lose foo bar
(zero? eax))
(nop)
(nop)
(nop)
(seq (label bar
(inv (iter (seq (dec eax)
(inc ecx)
(>= eax 0)))))
(label foo (push ecx))))
00000000 85C0 test eax , eax
00000002 0F840F000000 jz near 0x17
00000008 E903000000 jmp 0x10... |
1f16ae0d0675774c00c0cecfb8ba009cefe7fd3ccb94f0684f07d37936c49576 | mitchellwrosen/planet-mitchell | Float.hs | module Num.Float
( Float
) where
import GHC.Float
| null | https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Num/Float.hs | haskell | module Num.Float
( Float
) where
import GHC.Float
| |
a098ede86a94c3dafd20c5a240de3f08fbe8578f43523141dc58fd281fef8f33 | xsc/version-clj | core.cljc | (ns version-clj.core
(:require [version-clj.split :as sp]
[version-clj.compare :as c]
[version-clj.qualifiers :refer [default-qualifiers]]))
# # Facade
(defn version->seq
"Convert version string to version seq (a pair of version/qualifiers) by
using `.`, `-` and integer/letter changes... | null | https://raw.githubusercontent.com/xsc/version-clj/f5ccd13cef363e9933bc453a6c7048fa800968d9/src/version_clj/core.cljc | clojure | ## Comparison
## Sorting
## Analysis | (ns version-clj.core
(:require [version-clj.split :as sp]
[version-clj.compare :as c]
[version-clj.qualifiers :refer [default-qualifiers]]))
# # Facade
(defn version->seq
"Convert version string to version seq (a pair of version/qualifiers) by
using `.`, `-` and integer/letter changes... |
2027e46769c4291ae073301c2d65abc6a6d0f9f7118880beebd25f261daf0ea5 | MaskRay/99-problems-ocaml | 46.ml | type exp =
| And of exp * exp
| Or of exp * exp
| Nand of exp * exp
| Xor of exp * exp
| Impl of exp * exp
| Equ of exp * exp
| A
| B
let eval a b =
let rec f = function
| A -> a
| B -> b
| And (x,y) -> f x && f y
| Or (x,y) -> f x || f y
| Nand (x,y) -> not (f x && f y)
| Xor... | null | https://raw.githubusercontent.com/MaskRay/99-problems-ocaml/652604f13ba7a73eee06d359b4db549b49ec9bb3/41-50/46.ml | ocaml | type exp =
| And of exp * exp
| Or of exp * exp
| Nand of exp * exp
| Xor of exp * exp
| Impl of exp * exp
| Equ of exp * exp
| A
| B
let eval a b =
let rec f = function
| A -> a
| B -> b
| And (x,y) -> f x && f y
| Or (x,y) -> f x || f y
| Nand (x,y) -> not (f x && f y)
| Xor... | |
ce6578bbfe7adf3c4d37b46605490774b21e0aee14f925ea0ef1783ccfb7cbd6 | aryx/xix | selection_ui.ml | (* old: called getrect.c in draw-C
*)
| null | https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_graphics/ui/selection_ui.ml | ocaml | old: called getrect.c in draw-C
| |
8f8393c045e0c7b4a689e81e84ffbc097f17cf1b654558e1c3ff5f254f0c308d | evturn/haskellbook | 12.05-determine-the-kinds.hs | 1 .
-- What is the kind of `a`?
id :: a -> a
id = undefined
-- Answer:
-- * :: *
2 .
-- What are the kinds of `a` and `f`?
r :: a -> f a
r = undefined
-- Answer:
-- a :: *
-- f :: * -> *
| null | https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/12/12.05-determine-the-kinds.hs | haskell | What is the kind of `a`?
Answer:
* :: *
What are the kinds of `a` and `f`?
Answer:
a :: *
f :: * -> * | 1 .
id :: a -> a
id = undefined
2 .
r :: a -> f a
r = undefined
|
f92a7df480812dede91dde148cfe5a5031fe80bf720706af99caf0393fcf8fd7 | NorfairKing/validity | Main.hs | # LANGUAGE TypeApplications #
module Main where
import Criterion.Main
import Data.GenValidity.Criterion
import Data.GenValidity.Path ()
import Path
main :: IO ()
main =
defaultMain
[ bgroup
"generators"
[ genValidBench @(Path Abs File),
genValidBench @(Path Rel File),
genVal... | null | https://raw.githubusercontent.com/NorfairKing/validity/2e9198bdaaa8c80a5dbe2b7b860b5c26558c6374/genvalidity-path/bench/Main.hs | haskell | # LANGUAGE TypeApplications #
module Main where
import Criterion.Main
import Data.GenValidity.Criterion
import Data.GenValidity.Path ()
import Path
main :: IO ()
main =
defaultMain
[ bgroup
"generators"
[ genValidBench @(Path Abs File),
genValidBench @(Path Rel File),
genVal... | |
0f4035ddd71ffddc99ff101a624cf37956838064a4fb4e4a015d59cd3e71cf47 | chovencorp/erlangzmq | erlangzmq_sup.erl | @copyright 2016 Choven Corp.
%%
This file is part of erlangzmq .
%%
erlangzmq is free software : you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
%% (at your option) any later v... | null | https://raw.githubusercontent.com/chovencorp/erlangzmq/2be5c3b36dd78b010d1790a8f74ae2e823f5a424/src/erlangzmq_sup.erl | erlang |
(at your option) any later version.
erlangzmq is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
socket without identity not use supe... | @copyright 2016 Choven Corp.
This file is part of erlangzmq .
erlangzmq is free software : you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of ... |
039219e23ffff6edf2c4d485f6f92adf661800b56078532f150d521723dac896 | discus-lang/ddc | Predicates.hs | {-# OPTIONS_HADDOCK hide #-}
-- | Predicates on type expressions.
module DDC.Source.Discus.Exp.Type.Predicates
(isAtomT)
where
import DDC.Source.Discus.Exp.Type.Base
| Check whether a type is a ` TVar ` or ` TCon ` .
isAtomT :: GType l -> Bool
isAtomT tt
= case tt of
TAnnot _ t -> isAtomT t
... | null | https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-source-discus/DDC/Source/Discus/Exp/Type/Predicates.hs | haskell | # OPTIONS_HADDOCK hide #
| Predicates on type expressions. |
module DDC.Source.Discus.Exp.Type.Predicates
(isAtomT)
where
import DDC.Source.Discus.Exp.Type.Base
| Check whether a type is a ` TVar ` or ` TCon ` .
isAtomT :: GType l -> Bool
isAtomT tt
= case tt of
TAnnot _ t -> isAtomT t
TCon{} -> True
TVar{} -> True
... |
733d0e9b66eb9b0a0047b4675a8f995642d6656b799d29b1f7ed7835eb7a5f9c | futurice/haskell-mega-repo | Main.hs | module Main (main) where
import Futurice.App.MegaRepoTool (defaultMain)
main :: IO ()
main = defaultMain
| null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/mega-repo-tool/cli/Main.hs | haskell | module Main (main) where
import Futurice.App.MegaRepoTool (defaultMain)
main :: IO ()
main = defaultMain
| |
b7ff6d7b32887375caf564d4c8c465c05d0bedd259d0088e75a3777851c27d5d | yanatan16/fyra | test_app.cljc | (ns fyra.test-app
(:require [fyra.sweet :as f :refer (defrelvar defview)
#?@(:cljs [:include-macros true])]
[fyra.impl.memory.core :refer [create-db]]
[schema.core :as s]
[clojure.set :as set]))
(def db (create-db))
(defrelvar TodoList db
{:id s/Str
:title s/St... | null | https://raw.githubusercontent.com/yanatan16/fyra/50e7272fd5e704d41cd077fe4c8655584c8ce908/test/fyra/test_app.cljc | clojure | Insert some data | (ns fyra.test-app
(:require [fyra.sweet :as f :refer (defrelvar defview)
#?@(:cljs [:include-macros true])]
[fyra.impl.memory.core :refer [create-db]]
[schema.core :as s]
[clojure.set :as set]))
(def db (create-db))
(defrelvar TodoList db
{:id s/Str
:title s/St... |
eed30d88569f3ee100d497d7ef663d29b34e354f49885882270aebbe0f9485b3 | unclebob/mastermindclj | project.clj | (defproject mastermind "0.0.1-SNAPSHOT"
:description "Functional Mastermind for Clean Code E54"
:dependencies [[org.clojure/clojure "1.8.0"]]
:profiles {:dev {:dependencies [[midje "1.9.2"]]}
You can add dependencies that apply to ` ` below .
;; An example would be changing the logging destinatio... | null | https://raw.githubusercontent.com/unclebob/mastermindclj/278c56fa9219f1270135067505ce1cff1737bfc9/project.clj | clojure | An example would be changing the logging destination for test runs.
running autotest in the repl. | (defproject mastermind "0.0.1-SNAPSHOT"
:description "Functional Mastermind for Clean Code E54"
:dependencies [[org.clojure/clojure "1.8.0"]]
:profiles {:dev {:dependencies [[midje "1.9.2"]]}
You can add dependencies that apply to ` ` below .
:midje {}})
Note that itself is in the ` dev ` prof... |
9055625a28c523162407da5f8a7df67b90bf2100227d12ed07dbf7778eeb28a6 | lrascao/raterl | raterl_queue.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/src/raterl_queue.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_queue).
-beha... |
11e10a3e2ded98c678b179912bc51bc7ad569b273e34a40e423ead6285f3c4b6 | ananthakumaran/eopl | checker_lang.clj | (ns eopl.core.checker-lang
(:use eopl.core.define-datatype)
(:use eopl.core.env)
(:use eopl.core.checker-lang-parser)
(:use eopl.core.feature)
(:use clojure.test))
(defn make-proc-type [vars result-type]
(proc-type (map (fn [var]
(cases typed var
(typed-var (name ... | null | https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/core/checker_lang.clj | clojure | (ns eopl.core.checker-lang
(:use eopl.core.define-datatype)
(:use eopl.core.env)
(:use eopl.core.checker-lang-parser)
(:use eopl.core.feature)
(:use clojure.test))
(defn make-proc-type [vars result-type]
(proc-type (map (fn [var]
(cases typed var
(typed-var (name ... | |
03b49a63a82968b92d1599bd9fb5888ebaabe3c0fa5c98ab71bfe91bcfb60b1e | tfeb/interim-lisp | read-package.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -*- Mode: Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; File - read-package.lisp
;; Description - Read-time package hacks
Author - ( tfb at lostwithiel )
Created On - Fri Jul 6 12:13:59 2001
Last Modified On - Tue Apr 30 14:23:26 2002
Last Modified By ... | null | https://raw.githubusercontent.com/tfeb/interim-lisp/1515a860ab9e824248894a44436de71565a5abea/read-package.lisp | lisp | -*- Mode: Lisp -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
File - read-package.lisp
Description - Read-time package hacks
Update Count - 13
Status - Unknown
$Id: //depot/www-tfeb-org/before-2013-prune/www-tfeb-org/html/programs/lisp/read-package.lisp#1 $
Symbolics-style read-time packages.
be use... | Author - ( tfb at lostwithiel )
Created On - Fri Jul 6 12:13:59 2001
Last Modified On - Tue Apr 30 14:23:26 2002
Last Modified By - ( tfb at lostwithiel )
read-package.lisp is copyright 2001 by me , , and may
meant ` read in package CL - USER .
This ca n't easily be implemented... |
d63c2d6dcde63697716f19eca72b4c45a332b80886067c3e9a58e0562adcbfa7 | fractalide/fractalide | model.rkt | #lang racket
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/def)
(require/edge ${hyperflow.graph.line})
(define-agent
#:input '("in") ; in array port
#:input-array '()
#:output '("out" "name") ; out port
#:output-array '("out")
(define msg (recv (input "in")))
(... | null | https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/hyperflow/graph/node/config/model.rkt | racket | in array port
out port | #lang racket
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/def)
(require/edge ${hyperflow.graph.line})
(define-agent
#:input-array '()
#:output-array '("out")
(define msg (recv (input "in")))
(define acc (try-recv (input "acc")))
(match msg
[(cons 'init (... |
2f1f1c364e21cde0d1601c982b38690bfc68b09fbdc05c519e0a6152afd17b45 | tisnik/clojure-examples | core.clj | ;
( C ) Copyright 2016 , 2020 , 2021
;
; All rights reserved. This program and the accompanying materials
; are made available under the terms of the Eclipse Public License v1.0
; which accompanies this distribution, and is available at
-v10.html
;
; Contributors:
;
(ns describe-topics.core
(:... | null | https://raw.githubusercontent.com/tisnik/clojure-examples/a5f9d6119b62520b05da64b7929d07b832b957ab/kafka-describe-all-topics/src/describe_topics/core.clj | clojure |
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
Contributors:
| ( C ) Copyright 2016 , 2020 , 2021
-v10.html
(ns describe-topics.core
(:require [jackdaw.admin :as ja]
[clojure.pprint :as pp]))
(defn -main
[& args]
(let [client (ja/->AdminClient {"bootstrap.servers" "localhost:9092"})]
(pp/pprint (ja/describe-topics client))))
|
20745fd18ffb316b652c0434c4ec635676b2dadaf25e5cb7538342d345153e7b | chyanju/Picus | r1cs-cvc5-template-optimizer.rkt | #lang rosette
; this is a template for optimizer
(require
(prefix-in tokamak: "../tokamak.rkt")
(prefix-in utils: "../utils.rkt")
(prefix-in config: "../config.rkt")
(prefix-in r1cs: "../r1cs-grammar.rkt")
)
(provide (rename-out
[optimize-r1cs optimize-r1cs]
))
(define (optimize-r1cs arg-r1cs)
... | null | https://raw.githubusercontent.com/chyanju/Picus/b88dc3e0092f50879d73de1efd49f3c37ad94405/picus/optimizers/r1cs-cvc5-template-optimizer.rkt | racket | this is a template for optimizer
command level
sub-command level | #lang rosette
(require
(prefix-in tokamak: "../tokamak.rkt")
(prefix-in utils: "../utils.rkt")
(prefix-in config: "../config.rkt")
(prefix-in r1cs: "../r1cs-grammar.rkt")
)
(provide (rename-out
[optimize-r1cs optimize-r1cs]
))
(define (optimize-r1cs arg-r1cs)
(match arg-r1cs
[(r1cs:rcm... |
0394fc18db957e255099611a84e9261fb213cba4943b29dbd6be257ccafdb74c | LexiFi/gen_js_api | errors.mli | module [@js.scope] Error : sig
type t
val t_to_js: t -> Ojs.t
val t_of_js: Ojs.t -> t
val create: string -> t [@@js.create]
val stack_trace_limit: int [@@js.global]
val set_stack_trace_limit: int -> unit [@@js.set]
val code: t -> string [@@js.get]
val message: t -> string [@@js.get]
val stack: t -> ... | null | https://raw.githubusercontent.com/LexiFi/gen_js_api/bee3b595898fdaf7db0366a9b1a009db9a6c6026/node-test/bindings/errors.mli | ocaml | module [@js.scope] Error : sig
type t
val t_to_js: t -> Ojs.t
val t_of_js: Ojs.t -> t
val create: string -> t [@@js.create]
val stack_trace_limit: int [@@js.global]
val set_stack_trace_limit: int -> unit [@@js.set]
val code: t -> string [@@js.get]
val message: t -> string [@@js.get]
val stack: t -> ... | |
e500124557d49f3bffad201216ea368ad2c01ea269c6bf2ccd47e7c91284a95d | Mallku2/lua-redex-model | abnormalExps.rkt | #lang racket
(require redex
"../grammar.rkt"
"../Meta-functions/objStoreMetafunctions.rkt"
"../Meta-functions/delta.rkt"
"../Meta-functions/tablesMetafunctions.rkt")
; Expressions handled by the meta-table mechanism.
(define abnormal-exps
(reduction-relation
core-lang
#:dom... | null | https://raw.githubusercontent.com/Mallku2/lua-redex-model/13a1b8cacbdc72a1b5cb1a1f140f21cc974d71c3/Relations/abnormalExps.rkt | racket | Expressions handled by the meta-table mechanism.
Call over a non-function value
Determine if sv has a meta-table
Determine if v_1 has a meta-table
Determine if the table efectively has a meta-table
Determine if the table efectively has a meta-table
Determine if the table doesn't have a meta-table or
its meta-ta... | #lang racket
(require redex
"../grammar.rkt"
"../Meta-functions/objStoreMetafunctions.rkt"
"../Meta-functions/delta.rkt"
"../Meta-functions/tablesMetafunctions.rkt")
(define abnormal-exps
(reduction-relation
core-lang
#:domain (θ : e)
[--> (θ : ((v_1 (v_2 ...))Wr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.