_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 |
|---|---|---|---|---|---|---|---|---|
71d07c4a5c37baba6e3411b1cdfade6757ba902ed36200856823fc79d1db4962 | input-output-hk/cardano-ledger | NormalFormTest.hs | -- |
-- This module basically just runs the mainnet epoch validation tests from
" Test . Cardano . Chain . Block . Validation " but provided a ' ShouldAssertNF ' value of
-- 'AssertNF'.
--
-- We've created a separate test executable for this as, in our typical CI jobs,
we utilize ( i.e. building with @ghc -fhpc@ o... | null | https://raw.githubusercontent.com/input-output-hk/cardano-ledger/31c0bb1f5e78e40b83adfd1a916e69f47fdc9835/eras/byron/ledger/impl/test/NormalFormTest.hs | haskell | |
This module basically just runs the mainnet epoch validation tests from
'AssertNF'.
We've created a separate test executable for this as, in our typical CI jobs,
coverage@ ) for
expressions for its program coverage measurement purposes which prevents us
from accurately determining whether a given expression is... | " Test . Cardano . Chain . Block . Validation " but provided a ' ShouldAssertNF ' value of
providing code coverage . appears to introduce thunks around our Haskell
module Main (
main,
)
where
import Cardano.Prelude
import System.IO.Silently (hSilence)
import qualified Test.Cardano.Chain.Block.Validation
import ... |
9e356673f51efbe9fcd4cc69aed87ec05c70d268f1642529f0e714c18a2e1b69 | CSCfi/rems | mondo.clj | (ns rems.ext.mondo
"Loading and processing Mondo Disease Ontology.
See -initiative/mondo/"
(:require [clojure.data.xml :as xml]
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.pprint]
[clojure.string :as str]
[clojure.test :refer [deftest is]]
... | null | https://raw.githubusercontent.com/CSCfi/rems/6c38cbf3c61186abcd0bab80be2d33bfddc2717e/src/clj/rems/ext/mondo.clj | clojure | check it and potentially update application.
This is a manual process for the developers
as a new release may bring codes that need special handling.
check to see if the new release is still the
save the codes to the file | (ns rems.ext.mondo
"Loading and processing Mondo Disease Ontology.
See -initiative/mondo/"
(:require [clojure.data.xml :as xml]
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.pprint]
[clojure.string :as str]
[clojure.test :refer [deftest is]]
... |
a3d2bc74fb12fe4e3fce0b01b38efdb167e10d6da3509812215d3cceab9acfe1 | apache/couchdb-rebar | ct2_rt.erl | -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
%% ex: ts=4 sw=4 et
-module(ct2_rt).
-export([setup/1, files/0, run/1]).
setup([Target]) ->
retest_utils:load_module(filename:join(Target, "inttest_utils.erl")),
ok.
files() ->
[
{create, "ebin/foo.app", app(foo)},
{copy, "foo.test.sp... | null | https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/inttest/ct2/ct2_rt.erl | erlang | ex: ts=4 sw=4 et
Generate the contents of a simple .app file
| -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
-module(ct2_rt).
-export([setup/1, files/0, run/1]).
setup([Target]) ->
retest_utils:load_module(filename:join(Target, "inttest_utils.erl")),
ok.
files() ->
[
{create, "ebin/foo.app", app(foo)},
{copy, "foo.test.spec", "foo.test.spec"... |
d8851db78e10a8142718c4d84fe1208f5dea5cb3ee44e3c7c65a9bbddb6917df | aantron/bisect_ppx | runtime.mli | This file is part of Bisect_ppx , released under the MIT license . See
LICENSE.md for details , or visit
.
LICENSE.md for details, or visit
. *)
* This module provides runtime support for Bisect . Instrumented programs
should hence be linked with this module .
Each instrumented file c... | null | https://raw.githubusercontent.com/aantron/bisect_ppx/bd6a6fe0b62dc968337bbfdf2c03d292fcc23504/src/runtime/native/runtime.mli | ocaml | * Returns the binary coverage data accumulated by the program so far. This
should eventually be written to a file, to be processed by
[bisect-ppx-report].
* On Node.js, writes the same coverage data that is returned by
{!get_coverage_data} to a [.coverage] file with a randomized name in the
current dir... | This file is part of Bisect_ppx , released under the MIT license . See
LICENSE.md for details , or visit
.
LICENSE.md for details, or visit
. *)
* This module provides runtime support for Bisect . Instrumented programs
should hence be linked with this module .
Each instrumented file c... |
28956f6f01f3dfd755c006b38c7e08989c20f5d50a9d6df53dcd43777f407d8a | xsc/invariant | all.clj | (ns invariant.core.all
(:require [invariant.core.protocols :refer :all]))
(deftype All [invariant all-invariant]
Invariant
(run-invariant [_ path state value]
(let [result (run-invariant invariant path state value)
{:keys [state path data]} result]
(->> (run-invariant all-invariant path state... | null | https://raw.githubusercontent.com/xsc/invariant/45425bcc69d0bc896efd5307a640dbdb06b61797/src/invariant/core/all.clj | clojure | (ns invariant.core.all
(:require [invariant.core.protocols :refer :all]))
(deftype All [invariant all-invariant]
Invariant
(run-invariant [_ path state value]
(let [result (run-invariant invariant path state value)
{:keys [state path data]} result]
(->> (run-invariant all-invariant path state... | |
84b8b7124646785b6ea4690610a006bdbcab033b753d1f58fd7643b766456c6e | LesleyLai/ocamlpt | ocamlpt.ml | module Vec3 = Vec3
module Ray = Ray
module Sphere = Sphere
module Moving_sphere = Moving_sphere
module Scene = Scene
module Option_ext = Option_ext
module Camera = Camera
module Material = Material
module Aabb = Aabb
module Texture = Texture
| null | https://raw.githubusercontent.com/LesleyLai/ocamlpt/65c72fc473e98e1fe802b25807dc74a19a6a3d3e/lib/ocamlpt.ml | ocaml | module Vec3 = Vec3
module Ray = Ray
module Sphere = Sphere
module Moving_sphere = Moving_sphere
module Scene = Scene
module Option_ext = Option_ext
module Camera = Camera
module Material = Material
module Aabb = Aabb
module Texture = Texture
| |
8d1302c7f4b2f3342843cd82dc0bd8c8fd6bf10e9bae8f510bceb9bb5bc6f838 | davexunit/guile-allegro5 | transform.scm | (define-module (allegro transform)
#:use-module (system foreign)
#:use-module (rnrs bytevectors)
#:use-module (ice-9 format)
#:use-module (allegro utils)
#:export (al-create-transform
al-identity-transform
al-identity-transform
al-identity-transform
al-copy-tran... | null | https://raw.githubusercontent.com/davexunit/guile-allegro5/614ecc978e034f7b7ba5bd23e27111c8fef81b56/allegro/transform.scm | scheme | (define-module (allegro transform)
#:use-module (system foreign)
#:use-module (rnrs bytevectors)
#:use-module (ice-9 format)
#:use-module (allegro utils)
#:export (al-create-transform
al-identity-transform
al-identity-transform
al-identity-transform
al-copy-tran... | |
d685c5ead29c88771b59fcf202036a86356c90eac301c553a27b1f12eaea2e90 | marick/Midje | t_core.clj | (ns pointer.t-core
(:require [clojure.zip :as zip]
[midje.parsing.util.recognizing :refer [start-of-checking-arrow-sequence?]]
[midje.sweet :refer :all]
[midje.test-util :refer :all]
[pointer.core :refer :all]))
(defn this-file [line-number]
["t_core.clj" line-number... | null | https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/pointer/t_core.clj | clojure | Throughout this file, file positions are captured outside of
facts. That's because facts have their own mechanism for file
position, and I want it to be clear that this is just working with
the base (utility) function.
the filename will be valid.
incrementing happens more than once | (ns pointer.t-core
(:require [clojure.zip :as zip]
[midje.parsing.util.recognizing :refer [start-of-checking-arrow-sequence?]]
[midje.sweet :refer :all]
[midje.test-util :refer :all]
[pointer.core :refer :all]))
(defn this-file [line-number]
["t_core.clj" line-number... |
893cbd4a365130dd291aeca49fcad03b1e3eca4069c2f9f1d76c66f0b3b87153 | ClickHouse/metabase-clickhouse-driver | clickhouse_test_utils.clj | (ns metabase.driver.clickhouse-test-utils
(:require
[clojure.java.jdbc :as jdbc]
[clojure.test :refer :all]
[metabase.driver.sql-jdbc.connection :as sql-jdbc.conn]
[metabase.models [database :refer [Database]]]
[metabase.query-processor-test :as qp.test]
[metabase.sync.sync-metadata :as sync-metadat... | null | https://raw.githubusercontent.com/ClickHouse/metabase-clickhouse-driver/81a630fb80a1541dd75f359ad0a5499f86fb8d6d/test/metabase/driver/clickhouse_test_utils.clj | clojure | (ns metabase.driver.clickhouse-test-utils
(:require
[clojure.java.jdbc :as jdbc]
[clojure.test :refer :all]
[metabase.driver.sql-jdbc.connection :as sql-jdbc.conn]
[metabase.models [database :refer [Database]]]
[metabase.query-processor-test :as qp.test]
[metabase.sync.sync-metadata :as sync-metadat... | |
c4e292bc5d414c3b8019ca2e91d277ec8577a8d173a52bc1e11d17f2fc6077e3 | OCamlPro/liquidity | liquidNumber.ml | (****************************************************************************)
(* Liquidity *)
(* *)
Copyright ( C ) 2017 - 2020 OCamlPro SAS
(* ... | null | https://raw.githubusercontent.com/OCamlPro/liquidity/3578de34cf751f54b9e4c001a95625d2041b2962/tools/liquidity/liquidNumber.ml | ocaml | **************************************************************************
Liquidity
... | Copyright ( C ) 2017 - 2020 OCamlPro SAS
it under the terms of the GNU General Public License as published by
... |
cc12436886bdf90cd148dc82dc1acf8947c87d9d25b796fb9b89a7a376592da6 | paurkedal/ocaml-mediawiki-api | utils.ml | Copyright ( C ) 2013 - -2023 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | null | https://raw.githubusercontent.com/paurkedal/ocaml-mediawiki-api/e047d7201fb5e46cf4401030c71a3e2db42d11dd/bin/utils.ml | ocaml | Copyright ( C ) 2013 - -2023 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | |
7813900312bd66ddad3da023ac11e980737fcfab4faeadb088a4b9d50c509f32 | sile/taomp-sbcl | clh-lock.lisp | (defpackage clh-lock
(:use :common-lisp :util)
(:export make
lock
unlock
with-lock))
(in-package :clh-lock)
(defstruct node
(locked nil :type boolean))
(defstruct lock-obj
(tail nil :type node)
(my-pred (make-tls) :type tls-var)
(my-node (make-tls #'make-node) :type tls-va... | null | https://raw.githubusercontent.com/sile/taomp-sbcl/6216891346160e613fae3bb73491bc8c8fbad1c4/c7/clh-lock.lisp | lisp | (defpackage clh-lock
(:use :common-lisp :util)
(:export make
lock
unlock
with-lock))
(in-package :clh-lock)
(defstruct node
(locked nil :type boolean))
(defstruct lock-obj
(tail nil :type node)
(my-pred (make-tls) :type tls-var)
(my-node (make-tls #'make-node) :type tls-va... | |
bfb9bc3ec722d28180786349d0c552646281418f5d49df942b1033c216923815 | realworldocaml/book | expect_test_negative_tests_cinaps.ml | open! Base
let print_newline () = Stdio.print_endline ""
let print_s sexp = Stdio.print_string (Sexp_pretty.sexp_to_string sexp)
let generate filenames =
let filenames = List.sort filenames ~compare:String.compare in
let targets =
List.concat
[ List.map filenames ~f:(fun filename -> filename ^ ".correct... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_expect/negative-tests/cinaps/expect_test_negative_tests_cinaps.ml | ocaml | open! Base
let print_newline () = Stdio.print_endline ""
let print_s sexp = Stdio.print_string (Sexp_pretty.sexp_to_string sexp)
let generate filenames =
let filenames = List.sort filenames ~compare:String.compare in
let targets =
List.concat
[ List.map filenames ~f:(fun filename -> filename ^ ".correct... | |
88b67cc78e35dc3c3a44975816d20349f81a3a0cd18993a363079f26229bfa6c | srid/ema | Asset.hs | # LANGUAGE UndecidableInstances #
module Ema.Asset (
Asset (..),
Format (..),
) where
-- | The type of assets that can be bundled in a static site.
data Asset a
= -- | A file that is copied as-is from the source directory.
--
-- Relative paths are assumed relative to the source directory. Absolute
-... | null | https://raw.githubusercontent.com/srid/ema/61faae56aa0f3c6ca815f344684cc566f6341662/ema/src/Ema/Asset.hs | haskell | | The type of assets that can be bundled in a static site.
| A file that is copied as-is from the source directory.
Relative paths are assumed relative to the source directory. Absolute
paths allow copying static files outside of source directory.
| A file whose contents are generated at runtime by user code.
| ... | # LANGUAGE UndecidableInstances #
module Ema.Asset (
Asset (..),
Format (..),
) where
data Asset a
AssetStatic FilePath
AssetGenerated Format a
deriving stock (Eq, Show, Ord, Functor, Generic)
data Format
Html
Other
deriving stock (Eq, Show, Ord, Generic)
|
a802e9542185325d5bc8310c03fdb9c864bd508e706414f776b56df71a839fb0 | openmusic-project/OMChroma | csound-array.lisp | ; OMChroma
High - level control of sound synthesis in OM
;
;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 2
;of the License, or (at your option) any later version.
;
;See file LICE... | null | https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/omsharp/cs-events/csound-array.lisp | lisp | OMChroma
This program is free software; you can redistribute it and/or
either version 2
of the License, or (at your option) any later version.
See file LICENSE for further informations on licensing terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the imp... | High - level control of sound synthesis in OM
modify it under the terms of the GNU General Public License
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307,10 USA .
( c ) Ircam 2000 - 2017
Authors : , , ,
(in-pack... |
5032949ac44e36ca8f64d14d985f41ff3541a6bfbe6e82c280ad107970ab19bb | reborg/binpack | project.clj | (defproject binpack "0.1.0"
:description "A Clojure library to solve the bin packing problem."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]]
:plugins [[lein-midje "3.1.3"]]
:profiles {:dev {:dependencies [[midje "1.6.0"]
... | null | https://raw.githubusercontent.com/reborg/binpack/6b47946236f45d272f3cdf03ce5437c35e340f82/project.clj | clojure | (defproject binpack "0.1.0"
:description "A Clojure library to solve the bin packing problem."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]]
:plugins [[lein-midje "3.1.3"]]
:profiles {:dev {:dependencies [[midje "1.6.0"]
... | |
e263b3424ddf38c0dc73aa369dcb959a0ee8039873e84189fdcd92213cda5897 | walmartlabs/lacinia-pedestal | user.clj | (ns user
(:require
com.walmartlabs.lacinia.expound
[clojure.spec.alpha :as s]
[expound.alpha :as expound]))
(s/check-asserts true)
(alter-var-root #'s/*explain-out* (constantly expound/printer))
| null | https://raw.githubusercontent.com/walmartlabs/lacinia-pedestal/e70f853ff96ac2c8f315bc5a6d429213df0c5d04/dev-resources/user.clj | clojure | (ns user
(:require
com.walmartlabs.lacinia.expound
[clojure.spec.alpha :as s]
[expound.alpha :as expound]))
(s/check-asserts true)
(alter-var-root #'s/*explain-out* (constantly expound/printer))
| |
54ba4d9229c79c83bcf55166415de74b0dd5c994ca26f74cd5bcf5e60ef14f7f | clj-kafka/franzy | nippy_consumer.clj | (ns franzy.examples.consumer.nippy-consumer
(:require [franzy.clients.consumer.client :as consumer]
[franzy.clients.consumer.protocols :refer :all]
[franzy.clients.consumer.defaults :as cd]
[franzy.serialization.nippy.deserializers :as nippy-deserializers]
[franzy.seria... | null | https://raw.githubusercontent.com/clj-kafka/franzy/6c2e2e65ad137d2bcbc04ff6e671f97ea8c0e380/examples/src/franzy/examples/consumer/nippy_consumer.clj | clojure |
Nippy Consumer
This example demonstrates how you can mess around with consumer records and uses a nippy deserializer.
NOTE: Please ensure you've populated some data in your nippy topic, otherwise you'll see nothing!
This should be obvious, but a poor soul already asked me this.
Thought for food:
data. You... | (ns franzy.examples.consumer.nippy-consumer
(:require [franzy.clients.consumer.client :as consumer]
[franzy.clients.consumer.protocols :refer :all]
[franzy.clients.consumer.defaults :as cd]
[franzy.serialization.nippy.deserializers :as nippy-deserializers]
[franzy.seria... |
4bfd456f82b99b254651ecfb203e98d0a65cba72b126dc09bb8d9ee5adf9fc31 | kayceesrk/ocaml-aeio | aeio.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) 2... | null | https://raw.githubusercontent.com/kayceesrk/ocaml-aeio/ec3b60c297e744cf29bf2a0a291546b3ee937a47/src/aeio.ml | ocaml | Asynchronous IO scheduler.
*
* For each blocking action, if the action can be performed immediately, then it
* is. Otherwise, the thread performing the blocking task is suspended and
* automatically wakes up when the action completes. The suspend/resume is
* transparent to the programmer.
Type declarations
W... | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) 2... |
c23652895e187b5d78828633b11f80dd7099cb43ef2e9a542913ae85eec65c44 | NoRedInk/jetpack | Version.hs | module Version
( print
, check
)
where
import qualified Data.SemVer as SemVer
import Data.Semigroup ((<>))
import qualified Data.Text as T
import Data.Version (showVersion)
import qualified Parser.JetpackVersion as JetpackVersion
import Paths_jetpack (version)
import Prelude hiding (print)
print :: T.Text
print... | null | https://raw.githubusercontent.com/NoRedInk/jetpack/721d12226b593c117cba26ceb7c463c7c3334b8b/src/Version.hs | haskell | module Version
( print
, check
)
where
import qualified Data.SemVer as SemVer
import Data.Semigroup ((<>))
import qualified Data.Text as T
import Data.Version (showVersion)
import qualified Parser.JetpackVersion as JetpackVersion
import Paths_jetpack (version)
import Prelude hiding (print)
print :: T.Text
print... | |
a40d30268370f45adfafd4c2e8aa6d70beb6ea171b9c650e77454aa2ce6a4187 | schemedoc/implementation-metadata | scheje.scm | (title "Scheje")
(tagline "A little scheme implementation on top of Clojure")
(website "")
(github "fekr/scheje")
| null | https://raw.githubusercontent.com/schemedoc/implementation-metadata/6280d9c4c73833dc5bd1c9bef9b45be6ea5beb68/schemes/scheje.scm | scheme | (title "Scheje")
(tagline "A little scheme implementation on top of Clojure")
(website "")
(github "fekr/scheje")
| |
bccb20f683b4fc73d20891ea35103766c90a2f893c690ae54f963aa93473cf03 | gildor478/ocaml-gettext | gettextCompat.ml | (**************************************************************************)
(* ocaml-gettext: a library to translate messages *)
(* *)
Copyright ( C ) 2003 - 2008 < >
(* ... | null | https://raw.githubusercontent.com/gildor478/ocaml-gettext/9b7afc702bccace9a544b8efa2a28bc2b13371ed/src/lib/gettext/base/gettextCompat.ml | ocaml | ************************************************************************
ocaml-gettext: a library to translate messages
This library is free softw... | Copyright ( C ) 2003 - 2008 < >
License as published by the Free Software Foundation ; either
version 2.1 of the License , or ( at your option ) any later version ;
You should have received a copy of the GNU Lesser General Public
License along with this library ; if not ,... |
8f6477e034761e06d3409ee3062528b66466134e7aca2ad8ba97f8a9c59d5e08 | emqx/emqx | emqx_mgmt_api_alarms.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 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_management/src/emqx_mgmt_api_alarms.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 - 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_mgmt_api_alarms).
-behaviour(minirest_api).
-include_lib("hocon/include/hoconsc.h... |
947d205c298b0997dba52965d2ad66291a0d8e27accc72e7531ff8187f24fb73 | serokell/tzbot | Types.hs | SPDX - FileCopyrightText : 2022 >
--
SPDX - License - Identifier : MPL-2.0
module TzBot.Feedback.Dialog.Types
( ReportDialogId (..)
, ReportDialogEntry (..)
) where
import Universum
import Data.Aeson (FromJSON, ToJSON)
import Data.Time (UTCTime)
import Data.Time.Zones.All (TZLabel)
import Formatting (Bu... | null | https://raw.githubusercontent.com/serokell/tzbot/917ff3bde77fcaff3f299a075b819c81a63daed9/src/TzBot/Feedback/Dialog/Types.hs | haskell | SPDX - FileCopyrightText : 2022 >
SPDX - License - Identifier : MPL-2.0
module TzBot.Feedback.Dialog.Types
( ReportDialogId (..)
, ReportDialogEntry (..)
) where
import Universum
import Data.Aeson (FromJSON, ToJSON)
import Data.Time (UTCTime)
import Data.Time.Zones.All (TZLabel)
import Formatting (Build... | |
b356494b19d09acbe3ae96205c87899654a08179d12d0dcb57eef2854e30fcc4 | cbiffle/ruckus | evaluator.rkt | #lang racket
; EDSL script evaluator.
(require "../core/model.rkt")
(require "./state.rkt")
(provide
call-with-edsl-root)
(define (call-with-edsl-root body)
(call-with-empty-stack
(thunk
(begin-child 'root)
(body)
(end-root))))
| null | https://raw.githubusercontent.com/cbiffle/ruckus/62cd4a00837783a88a007c2d5979909a4e86ca0f/lang/evaluator.rkt | racket | EDSL script evaluator. | #lang racket
(require "../core/model.rkt")
(require "./state.rkt")
(provide
call-with-edsl-root)
(define (call-with-edsl-root body)
(call-with-empty-stack
(thunk
(begin-child 'root)
(body)
(end-root))))
|
8eba55558928829f451c79c6b1c9cb298859d070c7e42e10d616b73e7d324726 | nuprl/gradual-typing-performance | reader.rkt | #lang s-exp htdp/bsl/reader
lang/htdp-intermediate
'(abbreviate-cons-as-list
read-accept-quasiquote)
| null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/htdp/isl/lang/reader.rkt | racket | #lang s-exp htdp/bsl/reader
lang/htdp-intermediate
'(abbreviate-cons-as-list
read-accept-quasiquote)
| |
3712843fe95cd8e24350289d08eec5c72d316d75b078097d51ece617857a4df6 | qkrgud55/ocamlmulti | text.ml | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of OCaml
(* *)
, , and ... | null | https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/otherlibs/labltk/examples_camltk/text.ml | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of OCaml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
f12c23fc179791343860c0e7f88ce5c836ee6a67a1ff254eb22e8fffafec2eca | ahrefs/atd | test_atdgen_main.ml |
Unit tests for atdgen
Unit tests for atdgen
*)
open Atd.Import
deprecated . Use the type - aware functions from Alcotest for better
error reporting , e.g.
Alcotest.(check int ) " equal " 42 actual_result
error reporting, e.g.
Alcotest.(check int) "equal" 42 actual_result
*)
let check... | null | https://raw.githubusercontent.com/ahrefs/atd/797b9885d784283309c635ab0226fd19b82f70a8/atdgen/test/test_atdgen_main.ml | ocaml | ... CODE ELIDED HERE ...
avoiding unused function warning and partial application warning.
see also 'test_raw_json' which uses the legacy, more complicated way |
Unit tests for atdgen
Unit tests for atdgen
*)
open Atd.Import
deprecated . Use the type - aware functions from Alcotest for better
error reporting , e.g.
Alcotest.(check int ) " equal " 42 actual_result
error reporting, e.g.
Alcotest.(check int) "equal" 42 actual_result
*)
let check... |
5d80d6d4611940e38be8dd72352f8929a0b98accbc74d329af254684d84cf7e9 | SamirTalwar/advent-of-code | AOC_07_1.hs | {-# OPTIONS -Wall #-}
import Helpers.Parse
import Text.Parsec
main :: IO ()
main = do
input <- parseTextIO $ sepBy int (string ",")
let start = sum input `div` length input
let upAnswer = findAnswerUp start input
let downAnswer = findAnswerDown start input
print $ fst $ min upAnswer downAnswer
findAnswerUp... | null | https://raw.githubusercontent.com/SamirTalwar/advent-of-code/e06b982a878ef3d42bb2f52c3fc38d975312d368/2021/AOC_07_1.hs | haskell | # OPTIONS -Wall # |
import Helpers.Parse
import Text.Parsec
main :: IO ()
main = do
input <- parseTextIO $ sepBy int (string ",")
let start = sum input `div` length input
let upAnswer = findAnswerUp start input
let downAnswer = findAnswerDown start input
print $ fst $ min upAnswer downAnswer
findAnswerUp :: Int -> [Int] -> (I... |
fb10825f4c5b1dfbb4482bfa6140c9708e4bcace9d0c7786d1b53d2047c56a30 | hhucn/decide3 | user.cljc | (ns decide.user
(:require
[#?(:default clojure.spec.alpha
:cljs cljs.spec.alpha) :as s]
[com.fulcrologic.guardrails.core :refer [>def >defn >defn- => | ? <-]]
#?(:clj [decide.user.password :as user.password])
[decide.user.specs]))
;;; CLJ only API
#?(:clj (def hash-password user.password/e... | null | https://raw.githubusercontent.com/hhucn/decide3/beec68f5a0ab69be328b50509144b2dd4e55e573/components/domain/src/decide/user.cljc | clojure | CLJ only API | (ns decide.user
(:require
[#?(:default clojure.spec.alpha
:cljs cljs.spec.alpha) :as s]
[com.fulcrologic.guardrails.core :refer [>def >defn >defn- => | ? <-]]
#?(:clj [decide.user.password :as user.password])
[decide.user.specs]))
#?(:clj (def hash-password user.password/encrypt-password))... |
567db56d449e44695159c8d7f1fc3c810a3fe2a581eb5d889d7fa183ad5e9564 | nushio3/learn-haskell | parse-S-expression.hs | import Control.Applicative((<|>))
import Data.Char (isSpace)
import Text.Trifecta
import System.Environment (getArgs)
data SExpr = Atom String | List [SExpr] deriving Show
program :: Parser [SExpr]
program = sexpr `sepEndBy` spaces
sexpr :: Parser SExpr
sexpr = list <|> atom
atom :: Parser SExpr
atom = Atom <$> so... | null | https://raw.githubusercontent.com/nushio3/learn-haskell/eda0fd0b33e9c4b7552afd24c6a25a105cca5f94/exercise-8-2-learn-parser/src/parse-S-expression.hs | haskell | import Control.Applicative((<|>))
import Data.Char (isSpace)
import Text.Trifecta
import System.Environment (getArgs)
data SExpr = Atom String | List [SExpr] deriving Show
program :: Parser [SExpr]
program = sexpr `sepEndBy` spaces
sexpr :: Parser SExpr
sexpr = list <|> atom
atom :: Parser SExpr
atom = Atom <$> so... | |
ff0cb52a9bdc692536c71bd329983d0015a18b255d2d24f72354c2fa39a1e8e0 | facebook/pyre-check | abstractRootedTreeDomain.mli |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/1a7580b749e9973deb0ade9b4f05dcf9844d481d/source/domains/abstractRootedTreeDomain.mli | ocaml | The abstract value at the tip of each path, not including ancestors (only non-bottom points
are visitied
Creates a new tree that has the given tree as a subtree at the given path.
Assign the given subtree at the path in the tree. If weak is true, join the subtree with the
existing tree at that point.... |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... |
072a674d57c382b1ff9a1104819767a777503870c3c487ec451e99733d3e546f | sunshineclt/Racket-Helper | 3-SICP2.58b-符号求导.rkt | #lang racket
(define (accumulate op init seq)
(if (null? seq)
init
(op (car seq) (accumulate op init (cdr seq)))))
(define (myor a b) (or a b))
(define (contains alist asymbol)
(accumulate myor #f (map (lambda (s) (eq? s asymbol)) alist)))
(define (split-list alist asymbol)
(if(eq? asymbol (car alist... | null | https://raw.githubusercontent.com/sunshineclt/Racket-Helper/bf85f38dd8d084db68265bb98d8c38bada6494ec/%E5%BE%90%E7%8E%89%E9%BA%9F/%E4%BD%9C%E4%B8%9A4/3-SICP2.58b-%E7%AC%A6%E5%8F%B7%E6%B1%82%E5%AF%BC.rkt | racket | #lang racket
(define (accumulate op init seq)
(if (null? seq)
init
(op (car seq) (accumulate op init (cdr seq)))))
(define (myor a b) (or a b))
(define (contains alist asymbol)
(accumulate myor #f (map (lambda (s) (eq? s asymbol)) alist)))
(define (split-list alist asymbol)
(if(eq? asymbol (car alist... | |
8551df1aafedb9d632a57f7d03d1a44f99790bd58933e4839a0e153e8a33617f | stevenvar/OMicroB | simul_config.ml | open Simul
(** Get the configuration for a given device name *)
let get_config _ = invalid_arg "get_config"
(** Get the names of all configs *)
let all_config_names () = []
| null | https://raw.githubusercontent.com/stevenvar/OMicroB/99a2e781f9511137090aaba3c09e2e920c0dbc77/targets/simul_config.ml | ocaml | * Get the configuration for a given device name
* Get the names of all configs | open Simul
let get_config _ = invalid_arg "get_config"
let all_config_names () = []
|
bf7ce3de6399b0ba23c86478fa71638152c8959535f34ca9768b8377a1d01025 | mzp/coq-ide-for-ios | graphics.mli | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/ocaml-3.12.0/lib/ocaml/graphics.mli | 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 GNU Library General Public License , with
$ I d : graphics.mli 9547 2010 - 01 -... |
97b692383d04d76c896d852a7f918399ee4059d90676fdfa10f6a1e023862c56 | sshirokov/CLSQL | aodbc-package.lisp | -*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: aodbc-package.cl
Purpose : Package definition for CLSQL AODBC backend
Programmer :
Date Started : Feb 2... | null | https://raw.githubusercontent.com/sshirokov/CLSQL/c680432aea0177677ae2ee7b810a7404f7a05cab/db-aodbc/aodbc-package.lisp | lisp | Syntax : ANSI - Common - Lisp ; Base : 10 -*-
*************************************************************************
FILE IDENTIFICATION
Name: aodbc-package.cl
(), also known as the LLGPL.
************************************************************************* | Purpose : Package definition for CLSQL AODBC backend
Programmer :
Date Started : Feb 2002
This file , part of CLSQL , is Copyright ( c ) 2002 by
CLSQL users are granted the rights to distribute and use this software
as governed by the terms of the Lisp Lesser GNU Public License
(in-packa... |
2de8a8b7046a22031fa8f596d0c5382bc7f097c8b24b305da8466b7ef10097d0 | wingo/fibers | channels.scm | ;; Channels
Copyright ( C ) 2016 < >
Copyright ( C ) 2017 < >
;;;;
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation ; either
version 3 of the License , or ( at your opti... | null | https://raw.githubusercontent.com/wingo/fibers/8f4ce08cd009926061d6ebfc55e4fa1e0b80ddd3/fibers/channels.scm | scheme | Channels
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
either
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR... |
Copyright ( C ) 2016 < >
Copyright ( C ) 2017 < >
version 3 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public License
Channel implementation following the 2009 ICFP paper " Parallel
Concurrent ML " by , , and .
(defin... |
6e53be363536a33d5c921e9aaa37ecea0b22e58eb038f5df0c8acb906bdecafb | emqx/emqx-web-hook | prop_webhook_confs.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 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 of the L... | null | https://raw.githubusercontent.com/emqx/emqx-web-hook/28436cca2735cb4f4c39c64bfcf51e7689e16986/test/props/prop_webhook_confs.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 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(prop_webhook_confs).
-include_lib("proper/include/proper.hrl").
-import(emqx_ct_proper_types,
... |
1c9a1801731326d86c2d4c18e095131b681bdce41104b3ffe88c68d13aaa539f | mpickering/apply-refact | Default95.hs | no = f (#) x | null | https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Default95.hs | haskell | no = f (#) x | |
dcf8c5b1857ab57daa666e15a6bb96a534260cd7e351cee48c20e60f3095a267 | cartazio/tlaps | abstractor.ml |
* abstractor.ml --- make an abstract version of an expression
*
* Copyright ( C ) 2010 INRIA and Microsoft Corporation
* abstractor.ml --- make an abstract version of an expression
*
* Copyright (C) 2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev: 28687 $";;
open Property;;
open Expr.T;;
... | null | https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/abstractor.ml | ocaml | [get_level e 0] returns the minimum index of all free
variables in [e], or [max_int] if [e] is closed.
In a sequent, each binding is in the scope of the previous ones
In a let, each binding is in the scope of the previous ones |
* abstractor.ml --- make an abstract version of an expression
*
* Copyright ( C ) 2010 INRIA and Microsoft Corporation
* abstractor.ml --- make an abstract version of an expression
*
* Copyright (C) 2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev: 28687 $";;
open Property;;
open Expr.T;;
... |
9ad28c181c699e4b61be1a84d347ce0717c2d0f558a607bfdbdad40a1912cc48 | pqwy/notty | notty_uucp_data.mli | Do not edit .
*
* This module contains select unicode properties extracted from Uucp ,
* using ` ./support / gen_unicode_props.ml ` .
*
* Unicode version 13.0.0 .
*
* This module contains select unicode properties extracted from Uucp,
* using `./support/gen_unicode_props.ml`.
*
* Unicode versio... | null | https://raw.githubusercontent.com/pqwy/notty/67c602e3b32fdd6f4356c8e6b7537ff811ac14bf/src/no-uucp/notty_uucp_data.mli | ocaml | Do not edit .
*
* This module contains select unicode properties extracted from Uucp ,
* using ` ./support / gen_unicode_props.ml ` .
*
* Unicode version 13.0.0 .
*
* This module contains select unicode properties extracted from Uucp,
* using `./support/gen_unicode_props.ml`.
*
* Unicode versio... | |
46206fa82465a4ba1075c1728a39956ae47725a7df1a5feaba280d26e471450d | ahrefs/devkit | lwt_mark.ml | open ExtLib
open Prelude
let last_logs_max = 10
let enabled = ref false
let is_enabled () = !enabled
(**)
module LastN = struct
type 'a t =
{ queue : 'a Queue.t;
mutable avail : int;
}
let create n =
if n < 0 then invalid_arg "LastN.create: n < 0" else
{ queue = Queue.create (); avail =... | null | https://raw.githubusercontent.com/ahrefs/devkit/559c2df8f6eacb091e0eac38f508c45b6567bdd8/lwt_mark.ml | ocaml |
* [id] is stored to find parent thread in !marks, but there are no direct links to parent's mark.
[parent_{name,id}] don't reflect Lwt scheduling (so background thread's parent is not set to main/unnamed/toplevel); they are
used to trace places where threads were born (control flow).
* [0] is a ... | open ExtLib
open Prelude
let last_logs_max = 10
let enabled = ref false
let is_enabled () = !enabled
module LastN = struct
type 'a t =
{ queue : 'a Queue.t;
mutable avail : int;
}
let create n =
if n < 0 then invalid_arg "LastN.create: n < 0" else
{ queue = Queue.create (); avail = n }
... |
98f44df1f3bf8e81cd89f0dd42bf5e590f683cf32d5583d76d78d36f390d8f01 | tyehle/llvm-lambda | RuntimeSpec.hs | {-# LANGUAGE NamedFieldPuns, OverloadedStrings #-}
module RuntimeSpec (makeRuntimeTests) where
import qualified Control.Monad as M (void)
import qualified Data.ByteString.UTF8 as BSU
import System.Directory (createDirectoryIfMissing)
import Test.Tasty
import Test.Tasty.HUnit
import Text.Regex.Posix
import LLVM.AST (... | null | https://raw.githubusercontent.com/tyehle/llvm-lambda/679a9e1cc1d288fc9731a6f43fc45714c455741b/test/RuntimeSpec.hs | haskell | # LANGUAGE NamedFieldPuns, OverloadedStrings # |
module RuntimeSpec (makeRuntimeTests) where
import qualified Control.Monad as M (void)
import qualified Data.ByteString.UTF8 as BSU
import System.Directory (createDirectoryIfMissing)
import Test.Tasty
import Test.Tasty.HUnit
import Text.Regex.Posix
import LLVM.AST (Module)
import LLVM.AST.Type
import LLVM.AST.Operan... |
23eb71746cf4d21e7ca6fabc62729d0a34858e6805b15b5c091e46aa47e114a4 | avsm/ocaml-ssh | mpl_syntaxtree.ml |
* Copyright ( c ) 2005 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... | null | https://raw.githubusercontent.com/avsm/ocaml-ssh/26577d1501e7a43e4b520239b08da114c542eda4/mpl/mpl_syntaxtree.ml | ocaml | classify (variable) (pattern * name * guard * statements)
packets
typedefs
structs
Convert expression to a string |
* Copyright ( c ) 2005 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... |
d34285853f8c0a1092b8ab02397e14abd1b67ed0fd10f15d95182dff652bed42 | EcsoKit/ecso | ecsoAnalyzer.ml | open Type
open Analyzer
open AnalyzerTypes
open AnalyzerTexpr
open EcsoTypes
open EcsoGraph
open EcsoFilters
module EcsoAnalyzer = struct
open Ast
open Error
open EcsoContext
type analyze = {
a_commit : EcsoGraph.gexpr->((string,string) Hashtbl.t)->unit;
a_graph : EcsoGraph.gexpr;
}
type global = {
gl_m... | null | https://raw.githubusercontent.com/EcsoKit/ecso/de85d800541d48dd70ec37d5613788552f23130a/ml/ecsoAnalyzer.ml | ocaml | Already processed
FIXME: move filters into ecsoFilters.ml
Check name globalization
Forbid downcasting mutations
Check name globalization
Resolves the possible entity evolution which can occur at runtime.
convert mutation format
group mutations with identical bases
TODO: mutations are not yet prefilte... | open Type
open Analyzer
open AnalyzerTypes
open AnalyzerTexpr
open EcsoTypes
open EcsoGraph
open EcsoFilters
module EcsoAnalyzer = struct
open Ast
open Error
open EcsoContext
type analyze = {
a_commit : EcsoGraph.gexpr->((string,string) Hashtbl.t)->unit;
a_graph : EcsoGraph.gexpr;
}
type global = {
gl_m... |
5754dfe1e25880d7a06607e8203d477e6eb6f2e9557b81ac99787768f8963f06 | robert-strandh/SICL | test-utilities.lisp | (cl:in-package #:cleavir-test-utilities)
;;;; This file contains code for generating a random flowchart and for
drawing such a chart as a Graphviz file .
(defclass node ()
((%name :initform (gensym) :reader name)
(%inputs :initform '() :accessor inputs)
(%outputs :initform '() :accessor outputs)
(%succes... | null | https://raw.githubusercontent.com/robert-strandh/SICL/941ae4cd6f9211226683680a375dffeb6fb007f1/Code/Cleavir/Test-utilities/test-utilities.lisp | lisp | This file contains code for generating a random flowchart and for
more layers the graph will have.
successors.
The probability of a successor being in a lower layer.
Not a back edge. Create a new node.
Not a back edge. Create a new node.
Draw all the variables.
Draw all the inputs and outputs.
Now draw the ... | (cl:in-package #:cleavir-test-utilities)
drawing such a chart as a Graphviz file .
(defclass node ()
((%name :initform (gensym) :reader name)
(%inputs :initform '() :accessor inputs)
(%outputs :initform '() :accessor outputs)
(%successors :initform '() :accessor successors)))
(defun make-node (&optional... |
b221045e03693a65217ac8af7b2eb8176b3afe9a113afad2be5bfba697d79d0f | abridgewater/nq-clim | coordinate.lisp | ;;;
nq - clim / geometry / coordinate
;;;
The COORDINATE type and coercion function ( CLIM II 3.1 )
;;;
(cl:defpackage :nq-clim/geometry/coordinate
(:use :cl)
(:export
"COORDINATE"))
(cl:in-package :nq-clim/geometry/coordinate)
(deftype coordinate ()
'integer)
(defun coordinate (n)
(coerce n 'integer)... | null | https://raw.githubusercontent.com/abridgewater/nq-clim/11d339fd0ac77b6d624fc5537b170294a191a3de/geometry/coordinate.lisp | lisp | nq - clim / geometry / coordinate
The COORDINATE type and coercion function ( CLIM II 3.1 )
(cl:defpackage :nq-clim/geometry/coordinate
(:use :cl)
(:export
"COORDINATE"))
(cl:in-package :nq-clim/geometry/coordinate)
(deftype coordinate ()
'integer)
(defun coordinate (n)
(coerce n 'integer))
EOF
| |
1054f5e55cf906cc56f80ce0310ce0800055ab1f9edbd829cc80404f50efacef | modular-macros/ocaml-macros | morematch.ml | (**************************************************************)
(* This suite tests the pattern-matching compiler *)
(* it should just compile and run. *)
(* While compiling the following messages are normal: *)
(***********************************************************... | null | https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/basic-more/morematch.ml | ocaml | ************************************************************
This suite tests the pattern-matching compiler
it should just compile and run.
While compiling the following messages are normal:
************************************************************
Number of inte... |
File " morematch.ml " , line 38 , characters 10 - 93 :
Warning : this pattern - matching is not exhaustive .
Here is an example of a value that is not matched :
0
File " morematch.ml " , line 376 , characters 2 - 15 :
Warning : this match case is unused .
File " morematch.ml " , line 443 , characters 2 -... |
4a3dfd0806490480865256e72b60883ccf142c594af44ae43c5485ac485c673d | VERIMAG-Polyhedra/VPL | Scalar.mli | * Types for scalar values .
Most scalar used in the VPL are rationals .
But some applications ( e.g. finding a point in the interior of a polyhedron ) require the handling of a symbolic error .
{ ul
{ - { ! module : Rat } : zarith rationals }
{ - { ! module : Int } : zarith integers }
{ - { ! module ... | null | https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/datatypes/Scalar.mli | ocaml | * Interface of scalar modules.
* Type of rational constants.
* Type of float constants.
* Type of integer constants.
* Type of rationals with symbolic error.
* Type of rationals with symbolic error. | * Types for scalar values .
Most scalar used in the VPL are rationals .
But some applications ( e.g. finding a point in the interior of a polyhedron ) require the handling of a symbolic error .
{ ul
{ - { ! module : Rat } : zarith rationals }
{ - { ! module : Int } : zarith integers }
{ - { ! module ... |
ae2b2e0cdcf77955c53060c6ec428b4f7d9ab771b6fc0fe3b35e2421d4b7d1d5 | pjones/themoviedb | Main.hs | -- |
--
-- Copyright:
-- This file is part of the package themoviedb. It is subject to
-- the license terms in the LICENSE file found in the top-level
-- directory of this distribution and at:
--
--
--
-- No part of this package, including this file, may be copied,
-- modified, propagated, or distribute... | null | https://raw.githubusercontent.com/pjones/themoviedb/1b3f34cafda360cd26f44808cd4d311b691afa8e/test/Main.hs | haskell | |
Copyright:
This file is part of the package themoviedb. It is subject to
the license terms in the LICENSE file found in the top-level
directory of this distribution and at:
No part of this package, including this file, may be copied,
modified, propagated, or distributed except according to ... | License : MIT
module Main (main) where
import qualified MovieTest as M
import qualified TVTest as T
import Test.Tasty
tests :: TestTree
tests = testGroup "Tests" [M.tests, T.tests]
main :: IO ()
main = defaultMain tests
|
10228d33689b50d94b841042468c85891954bad198ed99871432d85c3084ea65 | JeremS/prose | latex_test.cljc | (ns fr.jeremyschoffen.prose.alpha.out.latex-test
(:require
#?(:clj [clojure.test :refer [deftest testing is]]
:cljs [cljs.test :refer-macros [deftest testing is]])
[fr.jeremyschoffen.prose.alpha.out.latex.compiler :as cplr]
[fr.jeremyschoffen.prose.alpha.document.lib :as lib :include-macros true]))... | null | https://raw.githubusercontent.com/JeremS/prose/1177afefd3b8990ac5cfee8d20b93bc06cc8f18a/src/test/fr/jeremyschoffen/prose/alpha/out/latex_test.cljc | clojure | (ns fr.jeremyschoffen.prose.alpha.out.latex-test
(:require
#?(:clj [clojure.test :refer [deftest testing is]]
:cljs [cljs.test :refer-macros [deftest testing is]])
[fr.jeremyschoffen.prose.alpha.out.latex.compiler :as cplr]
[fr.jeremyschoffen.prose.alpha.document.lib :as lib :include-macros true]))... | |
6abb52f4be687f1cdb3f1b28a7ef3ebe0202ff96fbe96661c46122fa245b7f86 | Akii/elescore | Client.hs | # LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
module Elescore.Integration.DB.Client
( API
, Host
, fetchDisruptedFacilities
, fetchFacilities
, fetchFacility
, fetchStation
) where
import ClassyPrelude
import Data.Proxy
import Network.HTTP.Client (Manager... | null | https://raw.githubusercontent.com/Akii/elescore/216540f9891f8317179abd8dde215d7cd7deb448/src/Elescore/Integration/DB/Client.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
module Elescore.Integration.DB.Client
( API
, Host
, fetchDisruptedFacilities
, fetchFacilities
, fetchFacility
, fetchStation
) where
import ClassyPrelude
import Data.Proxy
import Network.HTTP.Client (Manager... | |
3eee31d07bf4605b0d8d09a342c821bf194cade09cacb56922682698021b623e | bnoordhuis/chicken-core | posixwin.scm | posixwin.scm - Miscellaneous file- and process - handling routines , available on Windows
;
Copyright ( c ) 2008 - 2013 , The Chicken Team
Copyright ( c ) 2000 - 2007 ,
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fo... | null | https://raw.githubusercontent.com/bnoordhuis/chicken-core/56d30e3be095b6abe1bddcfe10505fa726a43bb5/posixwin.scm | scheme |
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.
Redistribution... | posixwin.scm - Miscellaneous file- and process - handling routines , available on Windows
Copyright ( c ) 2008 - 2013 , The Chicken Team
Copyright ( c ) 2000 - 2007 ,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS
CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRE... |
1c5ae0a5be9fa46c8827a3ad44600e58695e65cf414dcfa925a43c441d83c076 | DKurilo/hackerrank | solution.hs | # LANGUAGE OverloadedStrings , UnicodeSyntax #
module Main where
import Prelude.Unicode
import Control.Monad
import qualified Data.ByteString.Char8 as BSC
import Debug.Trace
import System.IO
data Point = P Int Int
deriving (Eq)
instance Show Point where
show (P r c) = show r ⧺ " " ⧺ show c
(.+) ∷ Point → P... | null | https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/puzzle-and-pc/solution.hs | haskell | # LANGUAGE OverloadedStrings , UnicodeSyntax #
module Main where
import Prelude.Unicode
import Control.Monad
import qualified Data.ByteString.Char8 as BSC
import Debug.Trace
import System.IO
data Point = P Int Int
deriving (Eq)
instance Show Point where
show (P r c) = show r ⧺ " " ⧺ show c
(.+) ∷ Point → P... | |
a0fae901b2d61df27ff3c8d82a128fd784e49313c0c80f10f96a68d991688e38 | cxphoe/SICP-solutions | 5.35.rkt | SICP exercise 5.35
;
; deduce the expression from instruction sequence
; result:
(define (f x)
(+ x (g (+ x 2))))
; the instruction sequence compiled by compiler:
(assign val (op make-compiled-procedure) (label entry1) (reg env))
(goto (label after-lambda2))
entry1
(assign env (op compiled-procedure-env) (... | null | https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%205-Computing%20with%20Register%20Machines/5.%20Compile/5.35.rkt | racket |
deduce the expression from instruction sequence
result:
the instruction sequence compiled by compiler: | SICP exercise 5.35
(define (f x)
(+ x (g (+ x 2))))
(assign val (op make-compiled-procedure) (label entry1) (reg env))
(goto (label after-lambda2))
entry1
(assign env (op compiled-procedure-env) (reg proc))
(assign env (op extend-environment) (const (x)) (reg argl) (reg env))
(assign proc (op lookup-va... |
70b878cd005e83b7a0501dc825eb1604414b86df47469f4df6b8e9e385d842eb | grin-compiler/ghc-wpc-sample-programs | Base16.hs | -- |
Module : Data . Memory . Encoding .
-- License : BSD-style
Maintainer : < >
-- Stability : experimental
-- Portability : unknown
--
Low - level encoding and decoding .
--
-- If you just want to encode or decode some bytes, you probably want to use
the " Data . . Encoding " module .
--
#... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/memory-0.15.0/Data/Memory/Encoding/Base16.hs | haskell | |
License : BSD-style
Stability : experimental
Portability : unknown
If you just want to encode or decode some bytes, you probably want to use
# LANGUAGE OverloadedStrings #
# LANGUAGE BangPatterns #
# LANGUAGE Rank2Types #
| Transform a raw memory to an hexadecimal 'String'
user beware, no checks are... | Module : Data . Memory . Encoding .
Maintainer : < >
Low - level encoding and decoding .
the " Data . . Encoding " module .
# LANGUAGE MagicHash #
# LANGUAGE UnboxedTuples #
module Data.Memory.Encoding.Base16
( showHexadecimal
, toHexadecimal
, fromHexadecimal
) where
import ... |
08dd7a66652e2141fac904e9fd78607a07e6806323454fb2589df4c646a22aae | webyrd/2012-scheme-workshop-quines-paper-code | quine-generation.scm | (load "extending-interpreter.scm")
(load "replacestar.scm")
(load "quinec.scm")
(test-check "punchline from intro"
(equal? (replace* '((_.0 . x)) (caar (run 1 (q) (eval-expo q '() q)))) quinec)
#t)
(test-check "quine-gen-1"
(run 1 (q) (eval-expo q '() q))
'((((lambda (_.0) (list _.0 (list 'quote _.0)))
... | null | https://raw.githubusercontent.com/webyrd/2012-scheme-workshop-quines-paper-code/3d160707f6ea6f60a08ec271abea1bfdaf63fd41/quine-generation.scm | scheme | (load "extending-interpreter.scm")
(load "replacestar.scm")
(load "quinec.scm")
(test-check "punchline from intro"
(equal? (replace* '((_.0 . x)) (caar (run 1 (q) (eval-expo q '() q)))) quinec)
#t)
(test-check "quine-gen-1"
(run 1 (q) (eval-expo q '() q))
'((((lambda (_.0) (list _.0 (list 'quote _.0)))
... | |
7f689be4250ecef9499966a01daecc8c699a140210da03b18fbfa8c68dd34059 | broadinstitute/firecloud-ui | method_repo_table.cljs | (ns broadfcui.page.method-repo.method-repo-table
(:require
[dmohs.react :as react]
[clojure.string :as string]
[broadfcui.common.components :as comps]
[broadfcui.common.icons :as icons]
[broadfcui.common.links :as links]
[broadfcui.common.style :as style]
[broadfcui.common.table :refer [Table]]
... | null | https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/page/method_repo/method_repo_table.cljs | clojure | (ns broadfcui.page.method-repo.method-repo-table
(:require
[dmohs.react :as react]
[clojure.string :as string]
[broadfcui.common.components :as comps]
[broadfcui.common.icons :as icons]
[broadfcui.common.links :as links]
[broadfcui.common.style :as style]
[broadfcui.common.table :refer [Table]]
... | |
52ebc03b07ad5b01ab1a14b9d53c511a6d6ef128ccf0bdd4a88fc893513dc431 | simonmar/monad-par | LVishPlusRNG.hs |
| Use a RNG transformer on top of LVish .
module LVishPlusRNG
(
runPar,
module Control.Par.Class
) where
import qualified Control.LVish as L
import Control.Par.Class
import Control.Par.RngT
-- UNFINISHED:
runPar =
| null | https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/examples/src/schedulers/LVishPlusRNG.hs | haskell | UNFINISHED: |
| Use a RNG transformer on top of LVish .
module LVishPlusRNG
(
runPar,
module Control.Par.Class
) where
import qualified Control.LVish as L
import Control.Par.Class
import Control.Par.RngT
runPar =
|
cca6346b05de40af57933d9f77c1dd7ea131369efba8aa501ea1f5eba5e58d22 | suprematic/otplike | gen_server_test.clj | (ns otplike.gen-server-test
(:require [clojure.test :refer [is deftest]]
[clojure.future :refer :all]
[clojure.core.match :refer [match]]
[otplike.process :as process :refer [!]]
[clojure.core.async :as async :refer [<! >!]]
[otplike.test-util :refer :all]
... | null | https://raw.githubusercontent.com/suprematic/otplike/bc9d4e82c14053fac8a0ec141eaca897dd2cfe9b/test/otplike/gen_server_test.clj | clojure | to wait until linking is finished (including [:stop reason] returned
from init)
====================================================================
(start [server-impl args options])
====================================================================
(init [& args])
============================================... | (ns otplike.gen-server-test
(:require [clojure.test :refer [is deftest]]
[clojure.future :refer :all]
[clojure.core.match :refer [match]]
[otplike.process :as process :refer [!]]
[clojure.core.async :as async :refer [<! >!]]
[otplike.test-util :refer :all]
... |
1ca24ae3b8702862b7c76b32adb59a13c9d5bd0895ade76f3a72ea55f6901290 | billstclair/trubanc-lisp | aes.lisp | aes.lisp -- implementation of the Rijndael block cipher
;;;
Currently limited to 128 - bit block sizes , although the full range of
;;; key sizes is supported.
(in-package :crypto)
FIXME : is it work it to combine these into one large array and
subscript into that rather than having separate arrays ? CMUCL
... | null | https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/ironclad_0.26/aes.lisp | lisp |
key sizes is supported.
preferring to reload it at every reference, so a single large
array scheme might not be the best for them (yet)
going to notice?
invert the order of the round keys
the "optimized implementation" also had a fully unrolled version of
this loop hanging around. it might be worthwhile to tra... | aes.lisp -- implementation of the Rijndael block cipher
Currently limited to 128 - bit block sizes , although the full range of
(in-package :crypto)
FIXME : is it work it to combine these into one large array and
subscript into that rather than having separate arrays ? CMUCL
and SBCL do n't seem to want t... |
d0ba9acee6ce4531967cfceceb5239c450e42b4b7bc7fb9639a9c44c670a5117 | nilenso/goose | connection.clj | (ns ^:no-doc goose.brokers.redis.connection)
(defn new
[url pool-opts]
{:spec {:uri url} :pool pool-opts})
| null | https://raw.githubusercontent.com/nilenso/goose/8a5f2fe1a4fa138fee5b74e00109e840b0b1fad1/src/goose/brokers/redis/connection.clj | clojure | (ns ^:no-doc goose.brokers.redis.connection)
(defn new
[url pool-opts]
{:spec {:uri url} :pool pool-opts})
| |
af27b8442cf2720b55bb4ce47ef90dde9b813ecfa94189c3e356e1e8f96aaa7c | rabbitmq/khepri | cth_log_redirect_any_domains.erl | -module(cth_log_redirect_any_domains).
-export([log/2]).
-define(BACKEND_MODULE, cth_log_redirect).
%% Reversed behavior compared to `cth_log_redirect': log events with an
%% unknown domain are sent to the `cth_log_redirect' server, others are
%% dropped (as they are already handled by `cth_log_redirect').
log(#{msg... | null | https://raw.githubusercontent.com/rabbitmq/khepri/353fb6490cd8eaf7f7ea03133b2c818e26b88fb0/test/cth_log_redirect_any_domains.erl | erlang | Reversed behavior compared to `cth_log_redirect': log events with an
unknown domain are sent to the `cth_log_redirect' server, others are
dropped (as they are already handled by `cth_log_redirect'). | -module(cth_log_redirect_any_domains).
-export([log/2]).
-define(BACKEND_MODULE, cth_log_redirect).
log(#{msg:={report,_Msg},meta:=#{domain:=[otp,sasl]}},_Config) ->
ok;
log(#{meta:=#{domain:=[otp]}},_Config) ->
ok;
log(#{meta:=#{domain:=_} = Meta}=Log,
#{config := #{group_leader := GL}} = Config) ->
... |
8ef19c047bbb0234e805dd520a8f48dd417f5a5cec3aa0b8a804e5fbd6ac18fd | Dale-M/mcron | base.scm | ;;;; base.scm -- core procedures
Copyright © 2003 < >
Copyright © 2015 , 2016 , 2018 < >
Copyright © 2016 , 2020 < >
;;;
This file is part of GNU Mcron .
;;;
GNU Mcron is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... | null | https://raw.githubusercontent.com/Dale-M/mcron/56308568da1c846698a4b2ad593a164133ab19cf/src/mcron/base.scm | scheme | base.scm -- core procedures
(at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Commentary:
This module provides the core data structures for scheduling j... | Copyright © 2003 < >
Copyright © 2015 , 2016 , 2018 < >
Copyright © 2016 , 2020 < >
This file is part of GNU Mcron .
GNU Mcron 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 versio... |
81b560ac8f08e19e88213a20655a61669121f470eb37feec0e68ee516d5de791 | Bertkiing/ErlangLearner | demo_rpn.erl |
% %% 逆波兰式(RPN)计算器
%%% 操作符跟在操作数后面
-module(demo_rpn).
-export([rpn/1]).
rpn(L) when is_list(L) ->
[Res] = lists:foldl(fun rpn/2,[],string:tokens(L," ")),Res.
rpn("+",[N1,N2|S]) -> [N1+N2|S];
rpn("-",[N1,N2|S]) -> [N2-N1|S];
rpn("*",[N1,N2|S]) -> [N2*N1|S];
rpn("/",[N1,N2|S]) -> [N2/N1|S];
rpn("^",[N1,N2|S]) -> [ma... | null | https://raw.githubusercontent.com/Bertkiing/ErlangLearner/ce917684ee91e6d43864291f0e34050e7e004ca5/Note%20of%20the%20%20Learn%20You%20Some%20Erlang%20for%20Great%20Good/demo_rpn.erl | erlang | %% 逆波兰式(RPN)计算器
操作符跟在操作数后面 |
-module(demo_rpn).
-export([rpn/1]).
rpn(L) when is_list(L) ->
[Res] = lists:foldl(fun rpn/2,[],string:tokens(L," ")),Res.
rpn("+",[N1,N2|S]) -> [N1+N2|S];
rpn("-",[N1,N2|S]) -> [N2-N1|S];
rpn("*",[N1,N2|S]) -> [N2*N1|S];
rpn("/",[N1,N2|S]) -> [N2/N1|S];
rpn("^",[N1,N2|S]) -> [math:pow(N2,N1)|S];
rpn("ln",[N|S]) ... |
0bd1713e7638c2cd93ccea37f501f3f5650435a2238e89eddc454323bf30c572 | Mishio595/disml | http.mli | open Async
module Base : sig
exception Invalid_Method
val base_url : string
val process_url : string -> Uri.t
val process_request_body : Yojson.Safe.t -> Cohttp_async.Body.t
val process_request_headers : unit -> Cohttp.Header.t
val process_response :
string ->
Co... | null | https://raw.githubusercontent.com/Mishio595/disml/cbb1e47a6d358eace03790c07a1b85641f4ca366/lib/http/http.mli | ocaml | open Async
module Base : sig
exception Invalid_Method
val base_url : string
val process_url : string -> Uri.t
val process_request_body : Yojson.Safe.t -> Cohttp_async.Body.t
val process_request_headers : unit -> Cohttp.Header.t
val process_response :
string ->
Co... | |
0e8c93f7682b51b4b88a9072cb1a8b2342007be6d644a206e69f2a4244db8af5 | CDPcode/a-code-of-ice-and-fire | TACGeneration.hs | module Westeros.SouthOfTheWall.TACGeneration () where
| null | https://raw.githubusercontent.com/CDPcode/a-code-of-ice-and-fire/a52f925d55e955ff9252090ce3b8cb211214b9b8/src/Westeros/SouthOfTheWall/TACGeneration.hs | haskell | module Westeros.SouthOfTheWall.TACGeneration () where
| |
493a3a64ab2d467a74be00781c26767bffad3651139b73002f81c5e307e4356b | zotonic/zotonic | mod_translation.erl | -*- coding : utf-8 -*-
@author < >
2010 - 2023 ,
%% @doc Translation support. Handle the language list and manage translations.
Copyright 2010 - 2023
Copyright 2016
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with t... | null | https://raw.githubusercontent.com/zotonic/zotonic/aaa1894bb6ea430fe6eadf6c05857ed817c320ef/apps/zotonic_mod_translation/src/mod_translation.erl | erlang | @doc Translation support. Handle the language list and manage translations.
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 ... | -*- coding : utf-8 -*-
@author < >
2010 - 2023 ,
Copyright 2010 - 2023
Copyright 2016
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
Language data ( read from ) are binary strings .
-module(mod... |
43ba9368315349d72795c997b263b64a6280d2b57cf9eb18547ebdfe54da8ce9 | ParkerICI/blockoid | core.cljs | (ns org.parkerici.blockoid.core
(:require
cljsjs.blockly
cljsjs.blockly.blocks
[re-frame.core :as rf]
[clojure.data.xml :as xml]))
A thin , application - independent Clojurescript API for Blockly .
;;; ⊓⊔⊓⊔ Workspace ⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓... | null | https://raw.githubusercontent.com/ParkerICI/blockoid/9fcbe9405008408a4e8c4beddc8037effc606a7a/src/cljs/org/parkerici/blockoid/core.cljs | clojure | ⊓⊔⊓⊔ Workspace ⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔
Holds the Blockly workspace object.
Maps names to handlers
see options: -started/web#configuration
Add button handlers
⊓⊔⊓⊔ Workspace resizing ⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓⊔⊓... | (ns org.parkerici.blockoid.core
(:require
cljsjs.blockly
cljsjs.blockly.blocks
[re-frame.core :as rf]
[clojure.data.xml :as xml]))
A thin , application - independent Clojurescript API for Blockly .
Holds the div containing Blockly
(defn define-workspace
"Initialize Blockly. Args:
div: Name of... |
038aa6449c135fee304df5f4c65980d5a1c47f61ee6eee9894a96e78938c88d3 | parapluu/Concuerror | receive_patterns.erl | -module(receive_patterns).
-export([test1/0, test2/0]).
-export([scenarios/0]).
-concuerror_options_forced([{use_receive_patterns, true}, {dpor, optimal}]).
%%------------------------------------------------------------------------------
scenarios() -> [{T, inf, optimal} || T <-[test1, test2]].
%%----------------... | null | https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/advanced_tests/src/receive_patterns.erl | erlang | ------------------------------------------------------------------------------
------------------------------------------------------------------------------ | -module(receive_patterns).
-export([test1/0, test2/0]).
-export([scenarios/0]).
-concuerror_options_forced([{use_receive_patterns, true}, {dpor, optimal}]).
scenarios() -> [{T, inf, optimal} || T <-[test1, test2]].
alpha(P, N) ->
sender(P, {alpha, N}).
beta(P, N) ->
sender(P, {beta, N}).
sender(Recipient, ... |
72dfbae52a570b1706fb1cba712433c8cdef23845314460f89cc5be220abc1d6 | davidlazar/ocaml-semantics | comparison04.ml | 3 < 4
| null | https://raw.githubusercontent.com/davidlazar/ocaml-semantics/6f302c6b9cced0407d501d70ad25c2d2aefbb77d/tests/unit/comparison04.ml | ocaml | 3 < 4
| |
7b56c6082a4a8822b39cdd7539dcd151a395688d7b45df977f176febba9b573f | penpot/penpot | v1_15.cljs | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.releases.v1-15
(:require
[app.main.ui.releases.common :as c]
[rumext.v2 :as mf]))
(de... | null | https://raw.githubusercontent.com/penpot/penpot/43ceb6bb44271691d4f1171b70acc3969cf28d4c/frontend/src/app/main/ui/releases/v1_15.cljs | clojure |
Copyright (c) KALEIDOS INC | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(ns app.main.ui.releases.v1-15
(:require
[app.main.ui.releases.common :as c]
[rumext.v2 :as mf]))
(defmethod c/render-release-notes "1... |
f72fc8c1510a77e07098f96d944a6425b27cf3b923f749967d6eb69b5540c092 | geneweb/geneweb | gwdPluginMD5.mli | val allowed : string -> bool
| null | https://raw.githubusercontent.com/geneweb/geneweb/cb938f415c59b6bf2fa0479090e187476e8dfdee/bin/gwd/gwdPluginMD5.mli | ocaml | val allowed : string -> bool
| |
bad2927a75de4e6e96541bf448d9c7c4e8bc0de92d41d8d88f523127edb0572a | wdebeaum/step | usually.lisp | ;;;;
;;;; W::USUALLY
;;;;
(define-words :pos W::ADV
:words (
(W::USUALLY
(SENSES
((LF-PARENT ONT::USUALLY)
(TEMPL PRED-VP-PRE-TEMPL)
)
((LF-PARENT ONT::USUALLY)
(TEMPL DISC-TEMPL)
)
)
)
))
| null | https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/usually.lisp | lisp |
W::USUALLY
|
(define-words :pos W::ADV
:words (
(W::USUALLY
(SENSES
((LF-PARENT ONT::USUALLY)
(TEMPL PRED-VP-PRE-TEMPL)
)
((LF-PARENT ONT::USUALLY)
(TEMPL DISC-TEMPL)
)
)
)
))
|
6d007352bfc938bf6e0d1dfca2f3e12ac157f736322bc9cca88147fb85159514 | janestreet/merlin-jst | misc.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_413/utils/misc.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
val fatal_error: string -> 'a
val fatal_errorf: ('a, Format.formatter, unit, 'b) format4 -> 'a
exception... |
a2f076db795af7d893d8e7ff1f27037e078f5f96f541690efb71d60fd7998595 | tommay/pokemon-go | BattlerUtil.hs | {-# LANGUAGE OverloadedStrings #-}
module BattlerUtil (
Battler,
Level (Normal),
new,
species,
level,
parseBattler,
optParseBattler,
makeBattlerVariants,
makeRaidBossForTier,
setLevel,
getMatchingMove,
) where
import qualified Options.Applicative as O
import Options.Applicative ((<|>),... | null | https://raw.githubusercontent.com/tommay/pokemon-go/922fa3275d5697bc4e8973a34fad197962d6d1a8/src/BattlerUtil.hs | haskell | # LANGUAGE OverloadedStrings #
r for raid, t for tier
We have to check for a move matching abbrev exactly before checking
with matchesAbbrevInsensitive, otherwise the abbrev "charm" will be
considered an abbreviation for both "charm" and "charge beam".
-raid-boss-cp-calculated
match the real stats:
/
not used
... |
module BattlerUtil (
Battler,
Level (Normal),
new,
species,
level,
parseBattler,
optParseBattler,
makeBattlerVariants,
makeRaidBossForTier,
setLevel,
getMatchingMove,
) where
import qualified Options.Applicative as O
import Options.Applicative ((<|>), (<**>))
import qualified Discount... |
96bb167a19d2f4056c48d982f5fa94ec47b4a378ed3f1c06f21e4316114bdb52 | nklein/Woolly | test.lisp | (require :asdf)
(asdf:operate 'asdf:load-op 'woolly-gl :verbose nil)
(rename-package 'woolly-gl 'toolkit)
(defun test ()
(let ((font (asdf:component-pathname
(asdf:find-component
(asdf:find-component (asdf:find-system 'woolly nil)
"okolaks")
"okolaksRegular.ttf")))
(font-size 20)... | null | https://raw.githubusercontent.com/nklein/Woolly/f18b5d5dc28b04e6a194757d7ebc1f03bb6ebd4d/test.lisp | lisp | prepare the default font... | (require :asdf)
(asdf:operate 'asdf:load-op 'woolly-gl :verbose nil)
(rename-package 'woolly-gl 'toolkit)
(defun test ()
(let ((font (asdf:component-pathname
(asdf:find-component
(asdf:find-component (asdf:find-system 'woolly nil)
"okolaks")
"okolaksRegular.ttf")))
(font-size 20)... |
408f865f97f151a4806511ce98c7b3fcc711d67ecbed9f664c11f5ab4a885cbe | fulcro-legacy/fulcro-css | user.clj | (ns user
(:require
[clojure.pprint :refer (pprint)]
[clojure.stacktrace :refer (print-stack-trace)]
[com.stuartsierra.component :as component]
[figwheel-sidecar.system :as fig]))
FIGWHEEL
(def figwheel-config (fig/fetch-config))
(def figwheel (atom nil))
(defn start-figwheel
"Start Figwheel on the... | null | https://raw.githubusercontent.com/fulcro-legacy/fulcro-css/fd5526b95d6dfdd2aa6d8fac2218b66709c0ca99/dev/user.clj | clojure | (ns user
(:require
[clojure.pprint :refer (pprint)]
[clojure.stacktrace :refer (print-stack-trace)]
[com.stuartsierra.component :as component]
[figwheel-sidecar.system :as fig]))
FIGWHEEL
(def figwheel-config (fig/fetch-config))
(def figwheel (atom nil))
(defn start-figwheel
"Start Figwheel on the... | |
f59fe521718a50040a2569d845c3e4d956dfd6cdb1f4611274a0c6f8a1b1cc5d | jyh/metaprl | nuprl_num_thy_1.mli | extends Ma_list_1
define unfold_divides : "divides"[]{'"b";'"a"} <-->
"exists"[]{"int"[]{};"c"."equal"[]{"int"[]{};'"a";"mul"[]{'"b";'"c"}}}
define unfold_assoced : "assoced"[]{'"a";'"b"} <-->
"and"[]{"divides"[]{'"a";'"b"};"divides"[]{'"b";'"a"}}
define unfold_gcd_p : "gcd_p"[]{'"a";'"b";'"y"} <-->
... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/mesa/nuprl_num_thy_1.mli | ocaml | extends Ma_list_1
define unfold_divides : "divides"[]{'"b";'"a"} <-->
"exists"[]{"int"[]{};"c"."equal"[]{"int"[]{};'"a";"mul"[]{'"b";'"c"}}}
define unfold_assoced : "assoced"[]{'"a";'"b"} <-->
"and"[]{"divides"[]{'"a";'"b"};"divides"[]{'"b";'"a"}}
define unfold_gcd_p : "gcd_p"[]{'"a";'"b";'"y"} <-->
... | |
a47b601ddcc8f43df513d697c193959f5cc84afde9e182b76914b3361a4c777b | racket/math | base-functions.rkt | #lang typed/racket/base
(require racket/flonum
"../flonum/flvector.rkt"
"../flonum/flonum-functions.rkt"
"../flonum/flonum-more-functions.rkt")
(provide power-of-two?
absolute-error
relative-error
sum
asinh acosh atanh
float-complex?
inl... | null | https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/base/base-functions.rkt | racket | ===================================================================================================
Inverse hyperbolic
===================================================================================================
module | #lang typed/racket/base
(require racket/flonum
"../flonum/flvector.rkt"
"../flonum/flonum-functions.rkt"
"../flonum/flonum-more-functions.rkt")
(provide power-of-two?
absolute-error
relative-error
sum
asinh acosh atanh
float-complex?
inl... |
ace5008217683c57ba398888027c73b7f4875f3f6b52f3a547590d31696ffa1c | alicemaz/digital_henge | Season.hs | module Season () where
import Types
import Util
instance CheckEvent Season where
checkEvent y m d
| m > 0 && m <= 12 && m `mod` 3 == 0 && floor d' == d = Event s (jdToTimestring jd)
| otherwise = Nil
where s = toEnum $ fromIntegral $ m `div` 3 - 1
jd = computeSeason s... | null | https://raw.githubusercontent.com/alicemaz/digital_henge/0a1c75a5088fc6f256179024b51ebbbf4381c9e4/src/Season.hs | haskell | note this returns ephemeris time | module Season () where
import Types
import Util
instance CheckEvent Season where
checkEvent y m d
| m > 0 && m <= 12 && m `mod` 3 == 0 && floor d' == d = Event s (jdToTimestring jd)
| otherwise = Nil
where s = toEnum $ fromIntegral $ m `div` 3 - 1
jd = computeSeason s... |
663a5f7f359ca76a2bbb984557947a3a8c5647eca56b57744b8b51d83663752a | metosin/kekkonen-sample | system.clj | (ns example.system
(:require [com.stuartsierra.component :as component]
[palikka.components.http-kit :as http-kit]
[example.handler :as handler]))
(defn new-system [config]
(component/map->SystemMap
{:state (reify component/Lifecycle
(start [_] {:counter (atom 0)}))
:... | null | https://raw.githubusercontent.com/metosin/kekkonen-sample/dbc852a144e93a7b92fad5a67a90d31575fd45c5/src/example/system.clj | clojure | re-create handler on every request | (ns example.system
(:require [com.stuartsierra.component :as component]
[palikka.components.http-kit :as http-kit]
[example.handler :as handler]))
(defn new-system [config]
(component/map->SystemMap
{:state (reify component/Lifecycle
(start [_] {:counter (atom 0)}))
:... |
dd9c0ef0ed3ee3cc08f2bec988a7bf9bd91cd8c5aa9290b4af3f0d8ecc3d7d5b | cram2/cram | qrpt.lisp | ;; QR with column pivoting
, Fri Apr 28 2006 - 16:53
Time - stamp : < 2011 - 04 - 23 >
;;
Copyright 2006 , 2007 , 2008 , 2009 , 2011
Distributed under the terms of the GNU General Public License
;;
;; This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Gen... | null | https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/linear-algebra/qrpt.lisp | lisp | QR with column pivoting
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 PARTICULAR PURPOSE. S... | , Fri Apr 28 2006 - 16:53
Time - stamp : < 2011 - 04 - 23 >
Copyright 2006 , 2007 , 2008 , 2009 , 2011
Distributed under the terms of the GNU General Public License
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or... |
b21eee58e1b5b36a994636c6f9f9fe9570a281645dd158eadbdba6de4c9c90fa | backtracking/ocamlgraph | builder.mli | (**************************************************************************)
(* *)
: a generic graph library for OCaml
Copyright ( C ) 2004 - 2010
, and
(* ... | null | https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/builder.mli | ocaml | ************************************************************************
This software is free software; you can redistribute it and/or
described in file LICENSE.... | : a generic graph library for OCaml
Copyright ( C ) 2004 - 2010
, and
modify it under the terms of the GNU Library General Public
License version 2.1 , with the special exception on linking
* { 2 Co... |
43729cee81930d8178d220ced1b05a39f5af0052860a0d96baf4014aacc1fc0c | project-oak/hafnium-verification | CTLTypes.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/al/CTLTypes.ml | ocaml | In formulas below prefix
"E" means "exists a path"
"A" means "for all path"
not really necessary but it makes it evaluation faster
a flag to print more or less in the dotty graph |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
23d7d5a03db221cf86623b919d6fccf9c16d83a2caa6bbf1ed1c779a6ff41e31 | inhabitedtype/ocaml-aws | addTagsToResource.mli | open Types
type input = AddTagsToResourceMessage.t
type output = TagListMessage.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| null | https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticache/lib/addTagsToResource.mli | ocaml | open Types
type input = AddTagsToResourceMessage.t
type output = TagListMessage.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| |
3ec309a78c633c8ad03c44558177c812e00227dd4498b2cd46656c00388343e5 | Lambda-X/re-console | app_test.cljs | (ns re-console.app-test
(:require [re-console.app :as app]
[cljs.test :refer-macros [deftest is async]]
[re-console.replumb-proxy :as replumb-proxy]))
;; Or doo will exit with an error, see:
;; #issuecomment-165498172
(set! (.-error js/console) (fn [x] (.log js/console x)))
(def db (atom {:c... | null | https://raw.githubusercontent.com/Lambda-X/re-console/a7a31046ba5066163d46ac586072c92b7414c52b/test/re_console/app_test.cljs | clojure | Or doo will exit with an error, see:
#issuecomment-165498172 | (ns re-console.app-test
(:require [re-console.app :as app]
[cljs.test :refer-macros [deftest is async]]
[re-console.replumb-proxy :as replumb-proxy]))
(set! (.-error js/console) (fn [x] (.log js/console x)))
(def db (atom {:consoles {}}))
(def console-key :cljs-console)
(def eval-opts (rep... |
93e98c6628978571e10b33636eb9f1d63a5a5c7bde6e85c93dd280615476a402 | Frama-C/Frama-C-snapshot | format_parser.ml | (**************************************************************************)
(* *)
This file is part of Frama - C.
(* *)
Copyright ... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/variadic/format_parser.ml | ocaml | ************************************************************************
alternatives)
... | This file is part of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , v... |
765a9cdbe3559e5a8a82934e74b2a2fde22ccf5b98b7d141012e6864e8d05ef5 | clash-lang/clash-compiler | LiftRecursiveGroup.hs | module LiftRecursiveGroup where
import Clash.Prelude
topEntity x y z
= let g p q k v = k (p + q) * v
h = ((3 :: Integer) *) . (g x y f)
f = ((4 :: Integer) *) . (g x y h)
in f (h z) + h (f z)
| null | https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldfail/LiftRecursiveGroup.hs | haskell | module LiftRecursiveGroup where
import Clash.Prelude
topEntity x y z
= let g p q k v = k (p + q) * v
h = ((3 :: Integer) *) . (g x y f)
f = ((4 :: Integer) *) . (g x y h)
in f (h z) + h (f z)
| |
45fa2572ac2f16a79049d732f91723f5f655024ee5d802dceac28f053aa692b3 | let-def/menhir | preFront.mli | (**************************************************************************)
(* *)
Menhir
(* *)
, INRIA Ro... | null | https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/preFront.mli | ocaml | ************************************************************************
et en Automatique. All rig... | Menhir
, INRIA Rocquencourt
, PPS , Université Paris Diderot
Copyright 2005 - 2008 Institut National de Recherche en Informatique
under the terms of the Q Public License versi... |
1592082740f0c4b49150d2e3f2bb6fa041004d748c2fb982a1cd58cdb2864a60 | egison/egison | MathOutput.hs | |
Module : Language . . MathOutput
Licence : MIT
This module provides translation from mathematical expression into
other languages / format of other computer algebra systems .
Module : Language.Egison.MathOutput
Licence : MIT
This module provides translation from mathematical Egison... | null | https://raw.githubusercontent.com/egison/egison/df4e47f7c8adfe90d9bf408459772a6cb4e71b70/hs-src/Language/Egison/MathOutput.hs | haskell | 'lang' is either "asciimath", "latex", "mathematica" or "maxima"
Other invalid options are rejected in Interpreter/egison.hs | |
Module : Language . . MathOutput
Licence : MIT
This module provides translation from mathematical expression into
other languages / format of other computer algebra systems .
Module : Language.Egison.MathOutput
Licence : MIT
This module provides translation from mathematical Egison... |
54a822d49230c36d684d142c09b13c37dff25b9a3863f6db7b02c5ebefee2b05 | ferd/ReVault | revault_fsm_sup.erl | %%%-------------------------------------------------------------------
@doc revault sync fsm supervisor .
%% @end
%%%-------------------------------------------------------------------
-module(revault_fsm_sup).
-behaviour(supervisor).
%% API
-export([start_link/0, start_fsm/4, start_fsm/5]).
%% Supervisor callbac... | null | https://raw.githubusercontent.com/ferd/ReVault/23bc9d897a682ccaf2489740a4d38f913958f656/apps/revault/src/revault_fsm_sup.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
API
Supervisor callbacks
====================================================================
API functions
===================================================================... | @doc revault sync fsm supervisor .
-module(revault_fsm_sup).
-behaviour(supervisor).
-export([start_link/0, start_fsm/4, start_fsm/5]).
-export([init/1]).
-define(SERVER, ?MODULE).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
start_fsm(DbDir, Name, Path, Interval) ->
superviso... |
646d72347927ef45862e8194cdc2e3c7f13e9af15d0b34829f2b858e3fbc5ce7 | SecPriv/webspec | visitor.ml | (********************************************************************************)
Copyright ( c ) 2022
(* *)
(* Permission is hereby granted, free of charge, to any person obtaining a *)
(* copy of this software and associated doc... | null | https://raw.githubusercontent.com/SecPriv/webspec/b7ff6b714b3a4b572c108cc3136506da3d263eff/verifier/src/visitor.ml | ocaml | ******************************************************************************
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
th... | Copyright ( c ) 2022
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 ACTION OF CONTRACT... |
c19e5e31d2d2745b916f42d996af30526337fd94447de1e8fb19381afe71bece | eburlingame/arinc-parser | project.clj | (defproject arinc424 "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/core.match "0.3.0-alpha5"]
[org.clojure/data.json "0.2.6"]]
:... | null | https://raw.githubusercontent.com/eburlingame/arinc-parser/1bef86924aef21888c27301bf51af90262ec4c52/project.clj | clojure | (defproject arinc424 "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/core.match "0.3.0-alpha5"]
[org.clojure/data.json "0.2.6"]]
:... | |
8fe9941d9792f598771d051d4fc1a3e665f603d0763ea22331744ab82021aed2 | synrc/avz | microsoft.erl | -module(microsoft).
-author('Maxim Sokhatsku').
-include_lib("avz/include/avz.hrl").
-include_lib("nitro/include/nitro.hrl").
-include_lib("n2o/include/wf.hrl").
-include_lib("kvs/include/user.hrl").
-compile(export_all).
-export(?API).
-define(OAUTH_URI, "").
-define(API_URI, "/").
-define(AUTHORIZE, ... | null | https://raw.githubusercontent.com/synrc/avz/1d86007f5c29c9856b443b0d7b5edbbcd2baeb5d/src/microsoft.erl | erlang | -module(microsoft).
-author('Maxim Sokhatsku').
-include_lib("avz/include/avz.hrl").
-include_lib("nitro/include/nitro.hrl").
-include_lib("n2o/include/wf.hrl").
-include_lib("kvs/include/user.hrl").
-compile(export_all).
-export(?API).
-define(OAUTH_URI, "").
-define(API_URI, "/").
-define(AUTHORIZE, ... | |
6145e5d30707b5b8a60f1afa0ba6626ae35cbebebdf61e2f1f7e696eca58cc24 | racket/htdp | signature-asl.rkt | #lang htdp/asl
(require test-engine/test-engine)
(require rackunit)
(define (assert-signature-violation got)
(begin
(let ((violations
(test-object-signature-violations
(current-test-object))))
(begin
(check-equal? (length violations) 1)
(let* ((violation (car violatio... | null | https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-test/tests/test-engine/signature-asl.rkt | racket | #lang htdp/asl
(require test-engine/test-engine)
(require rackunit)
(define (assert-signature-violation got)
(begin
(let ((violations
(test-object-signature-violations
(current-test-object))))
(begin
(check-equal? (length violations) 1)
(let* ((violation (car violatio... | |
e008f422f2705c5f3ad6e5257c425bcac7649c1884aa4ef253b6e065c5b7760d | CryptoKami/cryptokami-core | AddressSpec.hs | module Test.Pos.Wallet.Web.AddressSpec
( spec
) where
import Universum
import Data.Default (def)
import Formatting (sformat, (%))
import Serokell.Data.Memory.Units (memory)
import Test.Hspec (Spec, describe)
import Test.Hspec.QuickCheck (modify... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/wallet/test/Test/Pos/Wallet/Web/AddressSpec.hs | haskell | so another proper generator is helpful.
| Generator which is directly used in endpoints.
can't catch under 'PropertyM', workarounding | module Test.Pos.Wallet.Web.AddressSpec
( spec
) where
import Universum
import Data.Default (def)
import Formatting (sformat, (%))
import Serokell.Data.Memory.Units (memory)
import Test.Hspec (Spec, describe)
import Test.Hspec.QuickCheck (modify... |
13019be24f6ada6d0399a8d80d244d0013b1d499e3b8d797da017f17561b074a | herbelin/coq-hh | coqide.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/ide/coqide.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
********************************************************************** | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
The CoqIde main module . Th... |
9dcf19c5eabecb072d628efc70d4e97e5d56fa05cc353fd4bab7924c4aeb02b3 | lamdu/lamdu | Transaction.hs | # LANGUAGE GeneralizedNewtypeDeriving , RankNTypes , TemplateHaskell #
# LANGUAGE DerivingVia #
module Revision.Deltum.Transaction
( Transaction, run
, Store(..), onStoreM
, Changes, fork, merge
, lookupBS, lookup
, insertBS, insert
, delete, deleteIRef
, readIRef, writeIRef
, isEmpty
... | null | https://raw.githubusercontent.com/lamdu/lamdu/a9cea2b338451a880747b405e3b4defebd2003f2/src/Revision/Deltum/Transaction.hs | haskell | 't' is a phantom-type tag meant to make sure you run Transactions
with the right store
| The base is the set of changes we inherited from a parent
transaction (in a fork) that we do NOT apply when merging the
forked transaction.
This in contrast to the Stateful ChangesMap that starts empty
in the fork and is app... | # LANGUAGE GeneralizedNewtypeDeriving , RankNTypes , TemplateHaskell #
# LANGUAGE DerivingVia #
module Revision.Deltum.Transaction
( Transaction, run
, Store(..), onStoreM
, Changes, fork, merge
, lookupBS, lookup
, insertBS, insert
, delete, deleteIRef
, readIRef, writeIRef
, isEmpty
... |
b5f1a85037bda6b9aa7ce8e51106738043192165ae5261c465239536e984bacd | Tritlo/writ-plugin | Test.hs | {-# OPTIONS_GHC -fplugin=WRIT.Plugin
-frefinement-level-hole-fits=2
-fplugin-opt=WRIT.Plugin:fill-holes
-fplugin-opt=WRIT.Plugin:fill-hole-depth=1
-dcore-lint
#-}
# LANGUAGE ScopedTypeVariables #
module Main where
import WRIT.Configure
import Data.Dynami... | null | https://raw.githubusercontent.com/Tritlo/writ-plugin/c2e23ade6c67ceec9504fa0505638ae5326b5a5b/TestSyn/Test.hs | haskell | # OPTIONS_GHC -fplugin=WRIT.Plugin
-frefinement-level-hole-fits=2
-fplugin-opt=WRIT.Plugin:fill-holes
-fplugin-opt=WRIT.Plugin:fill-hole-depth=1
-dcore-lint
# | # LANGUAGE ScopedTypeVariables #
module Main where
import WRIT.Configure
import Data.Dynamic
ps :: Show a => a -> a
ps a = _
where k :: Show b => b
k = _
isOdd :: Integer -> Bool
isOdd arg = not _even_arg
where myEven :: Integer -> Bool
myEven 0 = True
myEven n = _ (n-1)
f :: b -> a ->... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.