_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 |
|---|---|---|---|---|---|---|---|---|
62d92d9dbe4183c2aca1493cf40404261ab089b426c52a21232d81ed19f853c6 | scrintal/heroicons-reagent | paper_airplane.cljs | (ns com.scrintal.heroicons.outline.paper-airplane)
(defn render []
[:svg {:xmlns ""
:fill "none"
:viewBox "0 0 24 24"
:strokeWidth "1.5"
:stroke "currentColor"
:aria-hidden "true"}
[:path {:strokeLinecap "round"
:strokeLinejoin "round"
... | null | https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/paper_airplane.cljs | clojure | (ns com.scrintal.heroicons.outline.paper-airplane)
(defn render []
[:svg {:xmlns ""
:fill "none"
:viewBox "0 0 24 24"
:strokeWidth "1.5"
:stroke "currentColor"
:aria-hidden "true"}
[:path {:strokeLinecap "round"
:strokeLinejoin "round"
... | |
3b66c4006c7f6bc3a36aa091d6a1e33bae9849f426b750ab718290e3ac8cefb9 | haskell/ghc-events | Utils.hs | module Utils where
files :: [FilePath]
files = map ("test/"++)
[ "nonmoving-gc.eventlog"
, "nonmoving-gc-census.eventlog"
, "parallelTest.eventlog"
, "sleep.h.eventlog"
, "sleep.hC.eventlog"
, "sleep.hm.eventlog"
, "sleep.hd.eventlog"
, "sleep.hy.eventlog"
, "stop.hT.eventlog"
,... | null | https://raw.githubusercontent.com/haskell/ghc-events/914038eed3d16a5dbe1036c52e39a6db6dc12a90/test/Utils.hs | haskell | Code to help print the differences between a working test and a failing test. | module Utils where
files :: [FilePath]
files = map ("test/"++)
[ "nonmoving-gc.eventlog"
, "nonmoving-gc-census.eventlog"
, "parallelTest.eventlog"
, "sleep.h.eventlog"
, "sleep.hC.eventlog"
, "sleep.hm.eventlog"
, "sleep.hd.eventlog"
, "sleep.hy.eventlog"
, "stop.hT.eventlog"
,... |
ea65044d15603df95440531981817dfc1afcc9ef98531b1e69b108ae75fac286 | oakes/play-cljc | instances.cljc | (ns play-cljc.instances
(:refer-clojure :exclude [assoc dissoc]))
(defprotocol IInstance
(->instanced-entity [entity] "Returns an instanced version of the given entity."))
(defprotocol IInstanced
(assoc [instanced-entity i entity]
"Adds an entity to the instanced entity at the given index.")
(dissoc ... | null | https://raw.githubusercontent.com/oakes/play-cljc/ccf9571c1dbc96c044e1d03057cb3b1533100ace/src/play_cljc/instances.cljc | clojure | (ns play-cljc.instances
(:refer-clojure :exclude [assoc dissoc]))
(defprotocol IInstance
(->instanced-entity [entity] "Returns an instanced version of the given entity."))
(defprotocol IInstanced
(assoc [instanced-entity i entity]
"Adds an entity to the instanced entity at the given index.")
(dissoc ... | |
ebd3499fa7dc0f7fac5151d72e6d60cc581c2be73c5a45e730f5eeba6c6048a4 | danr/hipspec | Theory.hs | # LANGUAGE ViewPatterns , RecordWildCards , PatternGuards , ScopedTypeVariables #
module HipSpec.Theory
( module HipSpec.Pretty
, ArityMap
, combineArityMap
, emptyArityMap
, Content(..)
, Theory
, Subtheory(..)
, dependencies
, subtheory
, calcDeps
, calcDepsIgnoring
, s... | null | https://raw.githubusercontent.com/danr/hipspec/a114db84abd5fee8ce0b026abc5380da11147aa9/src/HipSpec/Theory.hs | haskell | import Name
^ Function definition, or a constructor,
with no clauses and only depends on its parent data type
^ Axioms for a type
^ Pointer to some defined name
^ A lemma
^ The conjecture
^ Defines app and fn
| A dummy subtheory to initialise without dependencies
| Calculates and sets the dependencies for a... | # LANGUAGE ViewPatterns , RecordWildCards , PatternGuards , ScopedTypeVariables #
module HipSpec.Theory
( module HipSpec.Pretty
, ArityMap
, combineArityMap
, emptyArityMap
, Content(..)
, Theory
, Subtheory(..)
, dependencies
, subtheory
, calcDeps
, calcDepsIgnoring
, s... |
7883a853be50b31cf71e60ff18bf73a84d0460c513c9e899cf1d3da46e3c2fff | clojure/core.typed | env.cljc | Copyright ( c ) , Rich Hickey & contributors .
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 (-1.0.php)
;; which can be found in the file epl-v10.html at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be b... | null | https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/analyzer.common/src/clojure/core/typed/analyzer/common/env.cljc | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) , Rich Hickey & contributors .
(ns clojure.core.typed.analyzer.common.env
(:refer-clojure :exclude [ensure]))
(def ^:dynamic *env*
"Global env atom
Required options:
* :namespaces an atom containing a map from namespace symbol to namespace map,
the namespace map contains at leas... |
60ab83a1a6c041239aed565f8dd1049865bf525c78882abd709d5c6119cb59fe | florence/cover | file-utils.rkt | #lang racket
(require racket/list racket/path)
(require rackunit cover/private/file-utils)
(parameterize ([current-directory (build-path "/test")])
(check-equal? (->relative "a")
(build-path "a"))
(check-equal? (->relative "/test/a/b")
(build-path "a" "b")))
(parameterize ([curren... | null | https://raw.githubusercontent.com/florence/cover/bc17e4e22d47b1da91ddaa5eafefe28f4675e85c/cover-test/cover/tests/file-utils.rkt | racket | #lang racket
(require racket/list racket/path)
(require rackunit cover/private/file-utils)
(parameterize ([current-directory (build-path "/test")])
(check-equal? (->relative "a")
(build-path "a"))
(check-equal? (->relative "/test/a/b")
(build-path "a" "b")))
(parameterize ([curren... | |
22c52f804b1ca8cc692931cdcfbb1b5146219915c8c2ebedc75f4a845380edab | bjorng/wings | wings_move.erl | %%
%% wings_move.erl --
%%
%% This module implements the Move command.
%%
Copyright ( c ) 2001 - 2011
%%
%% See the file "license.terms" for information on usage and redistribution
%% of this file, and for a DISCLAIMER OF ALL WARRANTIES.
%%
%% $Id$
%%
-module(wings_move).
-export([setup/2,setup_we/4,plu... | null | https://raw.githubusercontent.com/bjorng/wings/dec64a500220359dbc552600af486be47c45d301/src/wings_move.erl | erlang |
wings_move.erl --
This module implements the Move command.
See the file "license.terms" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
$Id$
Conversion of vertex selection to vertices. :-)
Not entirely pointless, as we'll need to add vectors for... | Copyright ( c ) 2001 - 2011
-module(wings_move).
-export([setup/2,setup_we/4,plus_minus/3,magnet_move_fun/3]).
-include("wings.hrl").
-import(lists, [foldl/3,sort/1]).
-type vertex_num() :: wings_vertex:vertex_num().
-type face_num() :: wings_face:face_num().
setup({'ASK',Ask}, St) ->
wings:ask(Ask, St, fun... |
47baaa833d3deddede1847badfcb766a4ef16fc2f89386e6ed07fc8efdb2e077 | frasertweedale/hs-jose | Internal.hs | Copyright ( C ) 2013 , 2014 , 2017 Fraser Tweedale
--
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... | null | https://raw.githubusercontent.com/frasertweedale/hs-jose/18efe06b74b5ed051dd98da6f19660eab99b0717/src/Crypto/JOSE/Types/Internal.hs | haskell |
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 per... | Copyright ( C ) 2013 , 2014 , 2017 Fraser Tweedale
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
# LANGUAGE FlexibleContexts #
# LANGUAGE NoMonomorphismRestriction #
|
Internal utility functions for encoding / deco... |
b178af1db0d5087a5b5a1abd363d4e7e7cf7d91b8781c2cb32f9ebfe22be858f | inaka/shotgun | shotgun_meta_SUITE.erl | -module(shotgun_meta_SUITE).
-include_lib("mixer/include/mixer.hrl").
-mixin([ktn_meta_SUITE]).
-export([init_per_suite/1]).
-export([end_per_suite/1]).
init_per_suite(Config) -> [{application, shotgun} | Config].
end_per_suite(Config) ->
Config.
| null | https://raw.githubusercontent.com/inaka/shotgun/2fa6c86e7cc7c0d437c624aa72956a8f6e82f360/test/shotgun_meta_SUITE.erl | erlang | -module(shotgun_meta_SUITE).
-include_lib("mixer/include/mixer.hrl").
-mixin([ktn_meta_SUITE]).
-export([init_per_suite/1]).
-export([end_per_suite/1]).
init_per_suite(Config) -> [{application, shotgun} | Config].
end_per_suite(Config) ->
Config.
| |
1aaea9a1622ac6dd01ebc2856503caffc602b29ddb06da5c65cf19d7cfe59f60 | mhjort/clj-gatling | core.clj | (ns metrics-simulation.core
(:require [clj-gatling.core :as gatling]
[clj-gatling.reporters.raw-reporter :as raw-reporter]
[metrics-simulation.simulations :refer [simulations]])
(:import (java.time Duration))
(:gen-class))
(defn- ramp-up-distribution [percentage-at _]
(cond
(< perce... | null | https://raw.githubusercontent.com/mhjort/clj-gatling/a5f4a14ca7a8a360e0b93ecda2ecf47d7cb8231d/examples/metrics-simulation/src/metrics_simulation/core.clj | clojure | (ns metrics-simulation.core
(:require [clj-gatling.core :as gatling]
[clj-gatling.reporters.raw-reporter :as raw-reporter]
[metrics-simulation.simulations :refer [simulations]])
(:import (java.time Duration))
(:gen-class))
(defn- ramp-up-distribution [percentage-at _]
(cond
(< perce... | |
0805536efda984b87e1c9a41e7a5d83f36e87436d9e3f0cf5079fe0d4cc7561a | podiki/cl-tcod-tutorial | tutorial-part04.lisp | ;;;; tutorial-part04.lisp
;;;; "Field-of-view and exploration"
February 2017
;;;;
;;;; Commentary to be posted on 9bladed.com
;;;;
Original python+libtcod tutorial , part 4 :
;;;; ,_using_python%2Blibtcod,_part_4
(ql:quickload :tcod)
(defparameter *screen-width* 80)
(defparameter *screen-height* 50)
(defparameter... | null | https://raw.githubusercontent.com/podiki/cl-tcod-tutorial/1c5ab830b14fdf905993360c25b39d03814d7488/tutorial-part04.lisp | lisp | tutorial-part04.lisp
"Field-of-view and exploration"
Commentary to be posted on 9bladed.com
,_using_python%2Blibtcod,_part_4
go through the tiles in the rectangle and make them passable
vertical tunnel
random width and height
random position without going out of the boundaries of the map
"rect" class makes r... | February 2017
Original python+libtcod tutorial , part 4 :
(ql:quickload :tcod)
(defparameter *screen-width* 80)
(defparameter *screen-height* 50)
(defparameter *limit-fps* 20)
(defvar *map*)
(defparameter *map-width* 80)
(defparameter *map-height* 45)
(defparameter *room-max-size* 10)
(defparameter *room-min-si... |
97fcb68431984f40f12f387c393e65cc6d71d8428a344e9c502b5d109f9957b6 | SamB/coq | classes.ml | -*- compile - command : " make -C .. " -*-
(************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/toplevel/classes.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i $Id$ i
i
i
Calls to interpretatio... | -*- compile - command : " make -C .. " -*-
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ... |
82d7da22933da9ca09e49ae9551fcac7a6eb4fdd77b6d25a18c04545ab496aa9 | mauny/the-functional-approach-to-programming | pictures.ml | #directory "../MLGRAPH.DIR";;
#open "MLgraph";;
#open "option";;
#open "graph";;
#open "prelude";;
(* +confluence1+ *)
let confluence1_graph =
assembleGraphs [] ["e";"e1";"e2";"e3"]
[ [string "arrowDir" "F"], "e" , Dsw, "e1";
[string "arrowDir" "F"], "e" , Dse ,"e2";
[string "arrowDir" "F"], "e1" , Dse ,"e3... | null | https://raw.githubusercontent.com/mauny/the-functional-approach-to-programming/1ec8bed5d33d3a67bbd67d09afb3f5c3c8978838/cl-75/Semant/pictures.ml | ocaml | +confluence1+
+confluence1+
+confluence2+
+confluence2+
+graph_reec1+
+graph_reec1+ | #directory "../MLGRAPH.DIR";;
#open "MLgraph";;
#open "option";;
#open "graph";;
#open "prelude";;
let confluence1_graph =
assembleGraphs [] ["e";"e1";"e2";"e3"]
[ [string "arrowDir" "F"], "e" , Dsw, "e1";
[string "arrowDir" "F"], "e" , Dse ,"e2";
[string "arrowDir" "F"], "e1" , Dse ,"e3";
[string "arro... |
79a76619833333f2db9e59a98d78549a01297c10b1910b7806a9d7477c304dab | RickMoynihan/nrebl.middleware | middleware_test.clj | (ns nrebl.middleware-test
(:require [clojure.test :refer :all]
[nrebl.middleware :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| null | https://raw.githubusercontent.com/RickMoynihan/nrebl.middleware/f9889ae638e2c4d866953236a304e5c39c4def48/test/nrebl/middleware_test.clj | clojure | (ns nrebl.middleware-test
(:require [clojure.test :refer :all]
[nrebl.middleware :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| |
8152f7270f57dfe077c87d9c92ce68855f399414d34d206133f6706c68375f0e | ghc/packages-Cabal | disable-tests.test.hs | import Test.Cabal.Prelude
main = cabalTest $ do
withRepo "repo" . withSourceCopy $ do
cabal "v1-freeze" ["--disable-tests"]
cwd <- fmap testCurrentDir getTestEnv
assertFileDoesNotContain (cwd </> "cabal.config") "test-framework"
| null | https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Freeze/disable-tests.test.hs | haskell | import Test.Cabal.Prelude
main = cabalTest $ do
withRepo "repo" . withSourceCopy $ do
cabal "v1-freeze" ["--disable-tests"]
cwd <- fmap testCurrentDir getTestEnv
assertFileDoesNotContain (cwd </> "cabal.config") "test-framework"
| |
2c027647d965b163dcc4597cb0e6ff75b700434b5b1997b1b27d30b6593207f3 | darrenldl/ocaml-SeqBox | osbx_show.ml | open Cmdliner
open Show
open Stdint
open Sbx_block
exception Packaged_exn of string
let string_option_to_string (x:'a option) : string =
match x with
| Some n -> n
| None -> "N/A"
;;
let uint64_option_to_string (x:'a option) : string =
match x with
| Some n -> Printf.sprintf "%Ld" (Uint64.to_int64 n)
|... | null | https://raw.githubusercontent.com/darrenldl/ocaml-SeqBox/658c623db8745ae1d804c75880b29fb53435860f/src/osbx_show.ml | ocaml | open Cmdliner
open Show
open Stdint
open Sbx_block
exception Packaged_exn of string
let string_option_to_string (x:'a option) : string =
match x with
| Some n -> n
| None -> "N/A"
;;
let uint64_option_to_string (x:'a option) : string =
match x with
| Some n -> Printf.sprintf "%Ld" (Uint64.to_int64 n)
|... | |
dbc0d616f6ae2f6ce24f8ef32113fd7732523a8e9a0e4f665743a7b7dda7019f | ocamllabs/ocaml-modular-implicits | lexgen.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/tool-lexyacc/lexgen.ml | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
open Syntax
type regexp =
Empty
... |
7509b3b9cc99721c4a6cfc9131abcd1f9f84471fc4c87a7de8d8735eb6b99b54 | joaotavora/sly | slynk-mrepl.lisp | ;;; slynk-mrepl.lisp
;;
;; Licence: public domain
(defpackage :slynk-mrepl
(:use :cl :slynk-api)
(:import-from :slynk
#:*globally-redirect-io*
#:*use-dedicated-output-stream*
#:*dedicated-output-stream-port*
#:*dedicated-output-stream-buffering*)
(:... | null | https://raw.githubusercontent.com/joaotavora/sly/5966d68727898fa6130fb6bb02208f70aa8d5ce3/contrib/slynk-mrepl.lisp | lisp | slynk-mrepl.lisp
Licence: public domain
MREPL models
Helpers
FIXME: Dropping events should be moved to the library, and this
:DROP nonsense dropped, hence the deliberate SLYNK::.
Here's how this debugger hook handles "debugger
levels".
(1) This very lambda may be called multiple
times, but *not recursively... |
(defpackage :slynk-mrepl
(:use :cl :slynk-api)
(:import-from :slynk
#:*globally-redirect-io*
#:*use-dedicated-output-stream*
#:*dedicated-output-stream-port*
#:*dedicated-output-stream-buffering*)
(:export #:create-mrepl
#:globally-save-o... |
7d0c6c9f4946345861344804da161f4893ab8cf5891ce6469500ed5dba2aebad | Helium4Haskell/helium | PatNegateInt.hs | module PatNegateInt where
main :: Int
main = case -3 of
-3 -> 42
_ -> -1
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/correct/PatNegateInt.hs | haskell | module PatNegateInt where
main :: Int
main = case -3 of
-3 -> 42
_ -> -1
| |
ca03c4702fe322550871a93dfd6f63baee79c9d3324056d5bd4691e688d4c9ef | mentat-collective/functional-numerics | trapezoid_test.cljc | ;;
Copyright © 2020 .
This work is based on the Scmutils system of MIT / GNU Scheme :
Copyright © 2002 Massachusetts Institute of Technology
;;
;; This 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 ;... | null | https://raw.githubusercontent.com/mentat-collective/functional-numerics/44856b0e3cd1f0dd9f8ebb2f67f4e85a68aa8380/test/numerical/quadrature/trapezoid_test.cljc | clojure |
This is free software; you can redistribute it and/or modify
either version 3 of the License , or ( at
your option) any later version.
This software 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 © 2020 .
This work is based on the Scmutils system of MIT / GNU Scheme :
Copyright © 2002 Massachusetts Institute of Technology
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
(ns sicmutils.numerical.quadrature... |
c9b2b65ddcfc1672cf35ecd07d445da9bcc7f36f30e1aca89cc9c00601574747 | bmillwood/pointfree | Transform.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE PatternGuards #
module Plugin.Pl.Transform (
transform,
) where
import Plugin.Pl.Common
import Plugin.Pl.PrettyPrinter ()
import qualified Data.Map as M
import Data.Graph (stronglyConnComp, flattenSCC, flattenSCCs)
import Control.Monad.Trans.State
nub : : a = > [ a... | null | https://raw.githubusercontent.com/bmillwood/pointfree/34fdf4a8a023bce0c0c0155a49bc6eb611f1f2f9/Plugin/Pl/Transform.hs | haskell | variables.
It's a pity we still need that for the pointless transformation.
Otherwise a newly created id/const/... could be bound by a lambda
e.g. transform' (\id x -> x) ==> transform' (\id -> id) ==> id
act like a reader monad
Lambda pattern names are rewritten to be meaningless/unwritable, so we don't
need to... | # LANGUAGE FlexibleInstances #
# LANGUAGE PatternGuards #
module Plugin.Pl.Transform (
transform,
) where
import Plugin.Pl.Common
import Plugin.Pl.PrettyPrinter ()
import qualified Data.Map as M
import Data.Graph (stronglyConnComp, flattenSCC, flattenSCCs)
import Control.Monad.Trans.State
nub : : a = > [ a... |
d2fb6699a6307372389280afdaa3bc8595da188ad1a8e5249b61b5a244ca3dec | AshleyYakeley/Truth | Abstract.hs | # LANGUAGE ApplicativeDo #
module Language.Expression.Common.Abstract
( AbstractTypeSystem(..)
, TSOpenPattern
, TSMatch
, TSSealedExpressionPattern
, TSExpressionPatternConstructor
, unifierSubstituteSimplifyFinalRename
, unifierSolve
, abstractExpression
, FunctionWitness
, Un... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/4440fb14943e8a6ff02e760261918b1c9c535e3f/Pinafore/typed-expression/lib/Language/Expression/Common/Abstract.hs | haskell | | not recursive | # LANGUAGE ApplicativeDo #
module Language.Expression.Common.Abstract
( AbstractTypeSystem(..)
, TSOpenPattern
, TSMatch
, TSSealedExpressionPattern
, TSExpressionPatternConstructor
, unifierSubstituteSimplifyFinalRename
, unifierSolve
, abstractExpression
, FunctionWitness
, Un... |
612c5ac1937ea6394fe520bc68c15310d9f5e4ea99d4099ada0d90b0a65cffe8 | c-cube/smtlib-utils | check_regs.ml |
let ok = ref true
let test file =
Printf.eprintf "test file '%s'\n%!" file;
let code = Sys.command ("../src/bin/smtlib_cat.exe -q " ^ file) in
if code <> 0 then (
Printf.eprintf "> file '%s': code=%d\n%!" file code;
ok := false
)
let () =
for i = 1 to Array.length Sys.argv - 1 do
test Sys.argv.(... | null | https://raw.githubusercontent.com/c-cube/smtlib-utils/d93c5955d814e675045f2f7f024f6bbda9f74abf/tests/check_regs.ml | ocaml |
let ok = ref true
let test file =
Printf.eprintf "test file '%s'\n%!" file;
let code = Sys.command ("../src/bin/smtlib_cat.exe -q " ^ file) in
if code <> 0 then (
Printf.eprintf "> file '%s': code=%d\n%!" file code;
ok := false
)
let () =
for i = 1 to Array.length Sys.argv - 1 do
test Sys.argv.(... | |
4f04036e26258ef5155213e71d611dd2cb62293fda9918987961d03b6fe255d7 | damn/cdq | load_session.clj | (ns game.state.load-session
(:require (engine [core :as core]
[render :as g]
[statebasedgame :as state])
game.player.session-data
game.state.ids)
(:use [utils.core :only (log)]))
(def is-loaded-character (atom false))
(def ^:private render-once (atom... | null | https://raw.githubusercontent.com/damn/cdq/5093dbdba91c445e403f53ce96ead05d5ed8262b/src/game/state/load_session.clj | clojure | (ns game.state.load-session
(:require (engine [core :as core]
[render :as g]
[statebasedgame :as state])
game.player.session-data
game.state.ids)
(:use [utils.core :only (log)]))
(def is-loaded-character (atom false))
(def ^:private render-once (atom... | |
08e10b925d7b59e6248746c29d454eae28a7a2606899774ce2e22e1c85efdb73 | cl-unix-cybernetics/cl-unix-cybernetics | prepare-build.lisp | ;; cl-unix-cybernetics
Copyright 2013 - 2022 < >
;;
;; Permission is hereby granted to use this software granted
;; the above copyright notice and this permission paragraph
;; are included in all copies and substantial portions of this
;; software.
;;
;; THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
... | null | https://raw.githubusercontent.com/cl-unix-cybernetics/cl-unix-cybernetics/63e4862274e170bda7540b4caec6c94ed850a31c/prepare-build.lisp | lisp | cl-unix-cybernetics
Permission is hereby granted to use this software granted
the above copyright notice and this permission paragraph
are included in all copies and substantial portions of this
software.
THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER... | Copyright 2013 - 2022 < >
(in-package :common-lisp-user)
(defvar *system-directory*
(make-hash-table))
(defun system-directory (system)
(or #1=(gethash system *system-directory*)
(let* ((sys (typecase system (asdf:system system)
(t (asdf:find-system system))))
... |
c1d7331cdb19ae426ad2116cd15d8ea9c58fb4ddb3a60b0c2ee18c68ee2e45f3 | synrc/nitro | element_sortable_item.erl | -module(element_sortable_item).
-include_lib("nitro/include/sortable_item.hrl").
-include_lib("nitro/include/nitro.hrl").
-include_lib("nitro/include/event.hrl").
-export([render_element/1]).
render_element(#sortable_item{list_id=ListId, value=Value, bind=Bind, closeable=Close, disabled=Disabled}) ->
Item =
#pan... | null | https://raw.githubusercontent.com/synrc/nitro/8a4923599b1591e387ba879cc29b9562f935af16/src/elements/combo/element_sortable_item.erl | erlang | -module(element_sortable_item).
-include_lib("nitro/include/sortable_item.hrl").
-include_lib("nitro/include/nitro.hrl").
-include_lib("nitro/include/event.hrl").
-export([render_element/1]).
render_element(#sortable_item{list_id=ListId, value=Value, bind=Bind, closeable=Close, disabled=Disabled}) ->
Item =
#pan... | |
3a0411485728f1bbea06651cba4fb1a6efaff5d38a417f1ec6a79fa7470d43de | UU-ComputerScience/uhc | EmptyRecord1.hs | {- ----------------------------------------------------------------------------------------
what : parsing of empty record
expected: ok
---------------------------------------------------------------------------------------- -}
module Main where
data Inh_SStrings = Inh_SStrings {}
deriving Show
main = put... | null | https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/99/EmptyRecord1.hs | haskell | ----------------------------------------------------------------------------------------
what : parsing of empty record
expected: ok
---------------------------------------------------------------------------------------- |
module Main where
data Inh_SStrings = Inh_SStrings {}
deriving Show
main = putStrLn $ "Ok: " ++ show Inh_SStrings
|
0cf0ab7aa0fa3e987d0fae4ec24e7df79f8a40f7e1faf244aa3575f66316477b | expipiplus1/vulkan | VK_EXT_post_depth_coverage.hs | {-# language CPP #-}
-- | = Name
--
VK_EXT_post_depth_coverage - device extension
--
-- == VK_EXT_post_depth_coverage
--
-- [__Name String__]
-- @VK_EXT_post_depth_coverage@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
156
--
-- [__Revision__]
1
--
-- [__E... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/src/Vulkan/Extensions/VK_EXT_post_depth_coverage.hs | haskell | # language CPP #
| = Name
== VK_EXT_post_depth_coverage
[__Name String__]
@VK_EXT_post_depth_coverage@
[__Extension Type__]
Device extension
[__Registered Extension Number__]
[__Revision__]
[__Extension and Version Dependencies__]
[__Contact__]
== Other Extension Metadata
[__Last Modifie... | VK_EXT_post_depth_coverage - device extension
156
1
- Requires support for Vulkan 1.0
-
< -Docs/issues/new?body=[VK_EXT_post_depth_coverage ] @dgkoch%0A*Here describe the issue or question you have about the VK_EXT_post_depth_coverage extension * >
2017 - 07 - 17
... |
739dbc162d0aa6e3be0a456f55e8aeb71c6b2b1ae5791380445cd7531b22ce4a | RefactoringTools/HaRe | Dd2.hs | module DupDef.Dd2 where
import DupDef.Dd1
f2 x = ff (x+1)
mm = 5
| null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/DupDef/Dd2.hs | haskell | module DupDef.Dd2 where
import DupDef.Dd1
f2 x = ff (x+1)
mm = 5
| |
28b731c179c304201d0cc9c8e32517f2042c7c63340b0a7ab6898303a2493529 | stchang/parsack | info.rkt | #lang setup/infotab
(define version "0.5")
(define collection 'multi)
(define deps '("base" "parsack-lib" "parsack-doc" "parsack-test"))
(define implies '("parsack-lib" "parsack-doc" "parsack-test"))
(define build-deps '("rackunit-lib"
"scribble-lib"
"racket-doc"))
(define pkg-... | null | https://raw.githubusercontent.com/stchang/parsack/57b21873e8e3eb7ffbdfa253251c3c27a66723b1/parsack/info.rkt | racket | #lang setup/infotab
(define version "0.5")
(define collection 'multi)
(define deps '("base" "parsack-lib" "parsack-doc" "parsack-test"))
(define implies '("parsack-lib" "parsack-doc" "parsack-test"))
(define build-deps '("rackunit-lib"
"scribble-lib"
"racket-doc"))
(define pkg-... | |
b5c06c875baad7380413fb5cde0f2582e1962570df76004102ec2b2eb35aa398 | ndmitchell/extra | Extra.hs | # LANGUAGE TupleSections , ConstraintKinds #
-- | Extra functions for "Control.Concurrent".
--
This module includes three new types of ' MVar ' , namely ' Lock ' ( no associated value ) ,
' ' ( never empty ) and ' Barrier ' ( filled at most once ) . See
-- <-of-mvar_04.html this blog post>
-- for examples... | null | https://raw.githubusercontent.com/ndmitchell/extra/ee69e96b7bd6743be88f3675cd2e095101f9ae3e/src/Control/Concurrent/Extra.hs | haskell | | Extra functions for "Control.Concurrent".
<-of-mvar_04.html this blog post>
for examples and justification.
If you need greater control of exceptions and threads
see the <-thread slave-thread> package.
If you need elaborate relationships between threads
see the < async> package.
* Lock
* Barrie... | # LANGUAGE TupleSections , ConstraintKinds #
This module includes three new types of ' MVar ' , namely ' Lock ' ( no associated value ) ,
' ' ( never empty ) and ' Barrier ' ( filled at most once ) . See
module Control.Concurrent.Extra(
module Control.Concurrent,
withNumCapabilities,
once, onceFor... |
cfa103daa4ee5004281a162b79ba5a53ebd77b492f0b686446c4d36fce1ed4f7 | soegaard/metapict | markings.rkt | #lang racket/base
(require metapict metapict/mat
racket/class
(for-syntax racket/syntax syntax/parse racket/base)
(only-in "system.rkt" point->pt))
(provide
; Configuration
angle-radius
angle-spacing
mark-size
mark-spacing
; marks (ticks)
straight-mark
slanted-mark
arc-out... | null | https://raw.githubusercontent.com/soegaard/metapict/47ae265f73cbb92ff3e7bdd61e49f4af17597fdf/metapict/markings.rkt | racket | Configuration
marks (ticks)
It's a bit tricky to pick good defaults for the size and placement defaults
For now, let's rely on parameters.
distance along left leg
distance between arcs
size of straight mark
space between side marks
Automatic configuration
Eventually the above configuration ought to be compu... | #lang racket/base
(require metapict metapict/mat
racket/class
(for-syntax racket/syntax syntax/parse racket/base)
(only-in "system.rkt" point->pt))
(provide
angle-radius
angle-spacing
mark-size
mark-spacing
straight-mark
slanted-mark
arc-outline
mark-angle
mark-curve-angle... |
a4f0d161834976361ca50170f738a30fe869b04e551e087aee32470ae6152873 | tonsky/advent-of-code | day12.clj | (ns advent-of-code.year2021.day12
(:require
[advent-of-code.core :refer [cond+]]
[clojure.java.io :as io]
[clojure.java.math :as math]
[clojure.string :as str]
[clojure.set :as set]))
(set! *warn-on-reflection* true)
(set! *print-namespace-maps* false)
(def example1 (slurp "inputs/year2021/day12.exa... | null | https://raw.githubusercontent.com/tonsky/advent-of-code/57c7649d022344b2edf2d9492e004a90882856d0/src/advent_of_code/year2021/day12.clj | clojure | (ns advent-of-code.year2021.day12
(:require
[advent-of-code.core :refer [cond+]]
[clojure.java.io :as io]
[clojure.java.math :as math]
[clojure.string :as str]
[clojure.set :as set]))
(set! *warn-on-reflection* true)
(set! *print-namespace-maps* false)
(def example1 (slurp "inputs/year2021/day12.exa... | |
e5a165d8e7ccba7caebf4831ccababa0dc8e8d6ffe4b179e30f95e08ae220987 | plai-group/daphne | desugar_let.clj | (ns daphne.desugar-let
(:require [daphne.gensym :refer [*my-gensym*]]
[clojure.core.memoize :as memoize]))
(defn dispatch-desugar-let
[exp]
(cond (and (list? exp)
(= (first exp) 'let))
:let
(map? exp)
:map
(list? exp)
:list
(seq? exp)
... | null | https://raw.githubusercontent.com/plai-group/daphne/b0f43fbb9c856116ec44419fea91c4011072dd74/src/daphne/desugar_let.clj | clojure | (ns daphne.desugar-let
(:require [daphne.gensym :refer [*my-gensym*]]
[clojure.core.memoize :as memoize]))
(defn dispatch-desugar-let
[exp]
(cond (and (list? exp)
(= (first exp) 'let))
:let
(map? exp)
:map
(list? exp)
:list
(seq? exp)
... | |
870ad188264c3eaf01d878580e904c27ddcaa1931a396318cb18c8b751ec35b6 | philnguyen/soft-contract | count-checks.rkt | #lang typed/racket/base
(provide (all-defined-out))
(require racket/match
"../ast/signatures.rkt"
"../main.rkt")
(define-type Count (HashTable Symbol Natural))
(: make-counter : → (Values Count (Symbol * → Void)))
(define (make-counter)
(define m : Count (make-hasheq))
(values m
(λ k... | null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/count-checks.rkt | racket | Return a static estimation of run-time checks.
Numbers are conservative in that we only count up checks that definitely need to be there
don't count arity check here
'undefined)]
TODO: count up for each non-total primitive appearing in `f`.
FIXME count up for primitives
Mostly similar to `go!`, but count up every... | #lang typed/racket/base
(provide (all-defined-out))
(require racket/match
"../ast/signatures.rkt"
"../main.rkt")
(define-type Count (HashTable Symbol Natural))
(: make-counter : → (Values Count (Symbol * → Void)))
(define (make-counter)
(define m : Count (make-hasheq))
(values m
(λ k... |
778dfbc742f78d09dcf7209e9c40716f57d3fc8e8d1788eca63cf8b7444c7189 | NoRedInk/tracing-newrelic | Main.hs | module Main (main) where
import Test.Tasty.HUnit
import Test.Tasty as Tasty
import Control.Monad.IO.Class (liftIO)
import FreeAfter(FreeAfter(..), freeAfter)
import Data.IORef as IORef
main :: IO ()
main = Tasty.defaultMain tests
tests :: TestTree
tests = Tasty.testGroup "FreeAfter"
[ testCase "Monad instance ensu... | null | https://raw.githubusercontent.com/NoRedInk/tracing-newrelic/776ca219cb8739e9ded0b5b4a3fa9bf6180dcbad/tests/Main.hs | haskell | Log doesn't contain clean-up steps yet.
After `freeAfter` log contains the cleanup steps.
Log doesn't contain clean-up steps yet.
After `freeAfter` log contains the cleanup steps. | module Main (main) where
import Test.Tasty.HUnit
import Test.Tasty as Tasty
import Control.Monad.IO.Class (liftIO)
import FreeAfter(FreeAfter(..), freeAfter)
import Data.IORef as IORef
main :: IO ()
main = Tasty.defaultMain tests
tests :: TestTree
tests = Tasty.testGroup "FreeAfter"
[ testCase "Monad instance ensu... |
54c3619570988069330d4577e0c3f8ff68ddda4b3291f08ea60bf862e1201df4 | dyzsr/ocaml-selectml | includeclass.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/includeclass.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1997 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Types
let class_types env cty1 cty2 =
Ctype.match_class_types env cty1 cty2
let class_type_declara... |
fb26af36d047e1eae046d0a0f4688f8cce89320be1cd06bd7a14795c237c2b97 | Bogdanp/rackcheck | shrink-tree.rkt | #lang racket/base
(require racket/contract
racket/stream)
(provide
shrink-proc/c
(contract-out
(struct shrink-tree ([val any/c] [shrinks stream?]))
[make-shrink-tree (->* (any/c) (shrink-proc/c) shrink-tree?)]
[shrink-tree-map (-> shrink-tree? (-> any/c any/c) shrink-tree?)]))
(module+ private
(pr... | null | https://raw.githubusercontent.com/Bogdanp/rackcheck/965d21fdeefdde356cd563f0d916b1fd8469ea6f/rackcheck-lib/gen/shrink-tree.rkt | racket | #lang racket/base
(require racket/contract
racket/stream)
(provide
shrink-proc/c
(contract-out
(struct shrink-tree ([val any/c] [shrinks stream?]))
[make-shrink-tree (->* (any/c) (shrink-proc/c) shrink-tree?)]
[shrink-tree-map (-> shrink-tree? (-> any/c any/c) shrink-tree?)]))
(module+ private
(pr... | |
5ee655a690a12b09e5bc9f1696736259b538e360df1d11e4251d34468f155c51 | frenetic-lang/netkat | myocamlbuild.ml | OASIS_START
(* DO NOT EDIT (digest: bcd267d4e9de14e8d70ea0b82acd6952) *)
module OASISGettext = struct
# 22 " src / oasis / OASISGettext.ml "
let ns_ str = str
let s_ str = str
let f_ (str: ('a, 'b, 'c, 'd) format4) = str
let fn_ fmt1 fmt2 n =
if n = 1 then
fmt1^^""
else
fmt2^^""
... | null | https://raw.githubusercontent.com/frenetic-lang/netkat/aeac414fc2e2f4c35e9dde07cd9d98f369157265/myocamlbuild.ml | ocaml | DO NOT EDIT (digest: bcd267d4e9de14e8d70ea0b82acd6952)
Start with a _ if digit
ocamlfind command
This lists all supported packages.
Mock to list available syntaxes.
By using Before_options one let command line options have an higher
* priority on the contrary using After_options will guarantee to ha... | OASIS_START
module OASISGettext = struct
# 22 " src / oasis / OASISGettext.ml "
let ns_ str = str
let s_ str = str
let f_ (str: ('a, 'b, 'c, 'd) format4) = str
let fn_ fmt1 fmt2 n =
if n = 1 then
fmt1^^""
else
fmt2^^""
let init = []
end
module OASISString = struct
# 22 " src /... |
ea608fdf03b948e0ace05af4eef637dd66b40a43eb16a4d1231c66fe6c24b00d | haskell-suite/haskell-tc | Class4.hs | module Class4 where
data String
class Show a where
show :: a -> String
fn1 x y = (fn2 x, y)
where
fn2 x = show x
| null | https://raw.githubusercontent.com/haskell-suite/haskell-tc/abf5e3cc624e0095cae14c3c1c695b76ea8ffcb9/tests/Class4.hs | haskell | module Class4 where
data String
class Show a where
show :: a -> String
fn1 x y = (fn2 x, y)
where
fn2 x = show x
| |
f15951007116393c03bb8cbba2059908987c6520e8166a292e49edb8dab6151b | rabbitmq/rabbitmq-federation | rabbit_federation_link_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 - 2020 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(rabbit_federation_link_util).
-include_l... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-federation/960b8214487ae2495cd39afbbd3a2c4d9ea37985/src/rabbit_federation_link_util.erl | erlang |
real
temp
----------------------------------------------------------------------------
Don't trap exits until we have established
connections so that if we try to delete
federation upstreams while waiting for a
connection to be established then we don't
block
terminate/2 will not get this, as we
have not put... | 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 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_federation_link_util).
-include_lib("ra... |
cddbe9145787685d6ac2a6e7db4eb3312ca4a5f9e476da30424f132ac90fde45 | mattjbray/ocaml-decoders | decode.ml | (** Functors for creating Decoders. *)
open Util
type ('good, 'bad) result = ('good, 'bad) My_result.t =
| Ok of 'good
| Error of 'bad
module type S = Sig.S
module type Decodeable = Sig.Decodeable
module Make (Decodeable : Decodeable) :
Sig.S
with type value = Decodeable.value
and type 'a decoder = ... | null | https://raw.githubusercontent.com/mattjbray/ocaml-decoders/c0c4d59c6802e5ef853a38d931cf28bfd3c910bb/src/decode.ml | ocaml | * Functors for creating Decoders.
The field was present.
The field was not present. |
open Util
type ('good, 'bad) result = ('good, 'bad) My_result.t =
| Ok of 'good
| Error of 'bad
module type S = Sig.S
module type Decodeable = Sig.Decodeable
module Make (Decodeable : Decodeable) :
Sig.S
with type value = Decodeable.value
and type 'a decoder = (Decodeable.value, 'a) Decoder.t = stru... |
263b030b5ad76cbe4227ef3f1a5e9ba181d1abdb69f93795189b733c9b3fa9b7 | stuart-robinson/clojure-serverless-demo | api_test.clj | (ns clojure-serverless-demo.api-test
(:require [clojure-serverless-demo.api :as api]
[clojure.test :refer :all]
[ring.mock.request :as mock]
[ring.middleware.json :refer [wrap-json-body]]))
(def api (wrap-json-body (api/builder {}) {:keywords? true}))
(deftest api-ping-test
(is... | null | https://raw.githubusercontent.com/stuart-robinson/clojure-serverless-demo/d8d046bd79ccfe3dcea8823e8eddc3cb78a9f732/test/clj/clojure_serverless_demo/api_test.clj | clojure | (ns clojure-serverless-demo.api-test
(:require [clojure-serverless-demo.api :as api]
[clojure.test :refer :all]
[ring.mock.request :as mock]
[ring.middleware.json :refer [wrap-json-body]]))
(def api (wrap-json-body (api/builder {}) {:keywords? true}))
(deftest api-ping-test
(is... | |
274ec9016e9e365e64fcef87f3c552e4a0e90ba2858903c49b7d6b51bc11f282 | kyleburton/sandbox | project.clj | (defproject scratchpad "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:main ^:skip-aot scratchpad.core
:global-vars {*warn-on-reflection* true}
:dependencies [[org.clojure/clojure "1.10.1"]
... | null | https://raw.githubusercontent.com/kyleburton/sandbox/1164c96c1c0de0948e8666e2ad8a06bbc673d37a/examples/clojure/cider-scratchpad/project.clj | clojure | (defproject scratchpad "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:main ^:skip-aot scratchpad.core
:global-vars {*warn-on-reflection* true}
:dependencies [[org.clojure/clojure "1.10.1"]
... | |
22d0f5483d60c85701f10a44486661318df7186a4b37b8b58e0c85886ffffe04 | CodyReichert/qi | cstruct.lisp | ;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
;;;
cstruct.lisp --- Hook to
;;;
Copyright ( C ) 2009 , 2010 , 2011 < >
;;;
;;; 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 w... | null | https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cffi-master/libffi/cstruct.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... | cstruct.lisp --- Hook to
Copyright ( C ) 2009 , 2010 , 2011 < >
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 WAR... |
63bd23ce434227ef0d68c2587657eaddc1aea790015eff7fd4786450d97c0edc | simingwang/emqx-plugin-kafkav5 | rebar3_hex_file.erl | @private
-module(rebar3_hex_file).
-include_lib("kernel/include/file.hrl").
-export([
expand_paths/2,
update_app_src/2
]).
expand_paths(Paths, Dir) ->
AbsDir = expand(rebar3_hex:to_binary(Dir)),
Files1 = [filename:join(AbsDir, rebar3_hex:to_binary(P)) || P <- Paths],
Files2 = lists:flatmap(
... | null | https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/rebar3_hex/src/rebar3_hex_file.erl | erlang | @private
-module(rebar3_hex_file).
-include_lib("kernel/include/file.hrl").
-export([
expand_paths/2,
update_app_src/2
]).
expand_paths(Paths, Dir) ->
AbsDir = expand(rebar3_hex:to_binary(Dir)),
Files1 = [filename:join(AbsDir, rebar3_hex:to_binary(P)) || P <- Paths],
Files2 = lists:flatmap(
... | |
62c43b502e9a2e664ad04b807b752e6bfe7937ee6cc5a148472aabcc59dd4c82 | mfikes/coal-mine | problem_36.cljc | (ns coal-mine.problem-36
(:require [coal-mine.checks :refer [defcheck-36] :rename {defcheck-36 defcheck}]
[clojure.test]))
(defcheck solution-1682b85e
[z 1 y 3 x 7 ])
(defcheck solution-194b769d
[x 7 z 1 y 3])
(defcheck solution-1c8e327e
x + y = 10
z + y = 4
;z = x OR y
x)
(defcheck solution-... | null | https://raw.githubusercontent.com/mfikes/coal-mine/0961d085b37f4e59489a8cf6a2b8fef0a698d8fb/src/coal_mine/problem_36.cljc | clojure | z = x OR y | (ns coal-mine.problem-36
(:require [coal-mine.checks :refer [defcheck-36] :rename {defcheck-36 defcheck}]
[clojure.test]))
(defcheck solution-1682b85e
[z 1 y 3 x 7 ])
(defcheck solution-194b769d
[x 7 z 1 y 3])
(defcheck solution-1c8e327e
x + y = 10
z + y = 4
x)
(defcheck solution-1e546c99
[z ... |
86f458ef3f90433503740ff3361f5aaab3df343aaba2cc0746f9e610e08814e2 | zeromq/chumak | chumak_req.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 /.
@doc ZeroMQ Req Pattern for Erlang
%%
This pattern implement REQ especification
%% from: :28/REQREP#toc3
-module(chumak_req).
-behaviour(c... | null | https://raw.githubusercontent.com/zeromq/chumak/1fe17f2b9d2a55a7b0e7d1911e9b207727758daf/src/chumak_req.erl | erlang |
from: :28/REQREP#toc3
+----------+ +---------------+ +------------------+ +-----------------------+ +----------+
+----------+ e1 +---------------+ e2 +------------------+ e3 +-----------------------+ e4 +----------+
Flow of states and events
state for a pattern always to be module name.
not allow re... | 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 /.
@doc ZeroMQ Req Pattern for Erlang
This pattern implement REQ especification
-module(chumak_req).
-behaviour(chumak_pattern).
-include_lib... |
69690eeea1b7a7ce46febb27c50a6f7910ef1add463c2c1baa5535740e99102d | PowerMeMobile/smppload | smppload_parser_tests.erl | -module(smppload_parser_tests).
-include("../src/message.hrl").
-include_lib("eunit/include/eunit.hrl").
-spec test() -> ok | {error, term()}.
%% ===================================================================
%% Tests begin
%% ===================================================================
-spec parse_simp... | null | https://raw.githubusercontent.com/PowerMeMobile/smppload/3130eaa95ed1e69ace551dc7be9c9509d05fde2a/test/smppload_parser_tests.erl | erlang | ===================================================================
Tests begin
===================================================================
===================================================================
Tests end
=================================================================== | -module(smppload_parser_tests).
-include("../src/message.hrl").
-include_lib("eunit/include/eunit.hrl").
-spec test() -> ok | {error, term()}.
-spec parse_simple_address_test() -> ok | {error, term()}.
parse_simple_address_test() ->
Address = smppload_parser:parse_address("375293332211"),
?assertEqual(#addr... |
8bed05beaf7bb6e760f0426cd7f5aced9ddf9d5c7869dde66384a3842d3c24a2 | jdreaver/eventful | Memory.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
module Eventful.ProjectionCache.Memory
( ProjectionMap
, emptyProjectionMap
, projectionMapTVar
, tvarProjectionCache
, embeddedStateProjectionCache
, module Eventful.ProjectionCache.Types
) where
import Control.Concurrent.STM
import Control.Mon... | null | https://raw.githubusercontent.com/jdreaver/eventful/3f0c604e5bb2dcf5bacf0a2e01edf6a5e9c5e22e/eventful-memory/src/Eventful/ProjectionCache/Memory.hs | haskell | # LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
module Eventful.ProjectionCache.Memory
( ProjectionMap
, emptyProjectionMap
, projectionMapTVar
, tvarProjectionCache
, embeddedStateProjectionCache
, module Eventful.ProjectionCache.Types
) where
import Control.Concurrent.STM
import Control.Mon... | |
147f6e68f48476019e2fcc16d1b9b126026724b3397baf098aa2c025f50f9329 | facebook/flow | timeout.ml |
* 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/flow/52e59c7a9dea8556e7caf0be2b2c5c2e310b5b65/src/hack_forked/utils/sys/timeout.ml | ocaml | * Timeout
Any uncaught exception will cancel the timeout
* Channel
OCaml 4.03.0 changed the behavior of input_value to no longer
* throw End_of_file when the pipe has closed. We can simulate that
* behavior, however, by trying to read a byte afterwards, which WILL
* raise End_of_file if the pipe has... |
* 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... |
f366d3a8065ded603d978375fceb90d46e5331dc62a7d70f941281080cc7fa5e | mzp/coq-for-ipad | protocol.ml | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of Objective Caml
(* *)
, , and ... | null | https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/otherlibs/labltk/support/protocol.ml | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of Objective Caml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
92b50b40179dc374ff51afa419ec238b9ee72eede3315b3acbcf4c75ab0d04ee | aphyr/aesahaettr | æsahættr.clj | (ns æsahættr
"Provides functions for consistent hashing and partitioning of data."
(:refer-clojure :exclude [hash chunk])
(:require [taoensso.nippy :as nippy])
(:import (java.nio.charset Charset)
(java.util BitSet)
(com.google.common.primitives UnsignedBytes)
(com.google.common... | null | https://raw.githubusercontent.com/aphyr/aesahaettr/471f09dcef8e1d7df767b908cc36300881d103a6/src/%C3%A6sah%C3%A6ttr.clj | clojure | Convert to bigints
Find differing bits
Subtract the number of bits after the differing bit, from the total size.
(prn :prefix prefix :required-bits required-bits)
(prn "bits are " (bindump element))
Get byte in array
Get bit in byte (reversed)
use the
Should use a commutative hash instead,
used at thi... | (ns æsahættr
"Provides functions for consistent hashing and partitioning of data."
(:refer-clojure :exclude [hash chunk])
(:require [taoensso.nippy :as nippy])
(:import (java.nio.charset Charset)
(java.util BitSet)
(com.google.common.primitives UnsignedBytes)
(com.google.common... |
6e474eea94e5f4f67fa504ff86a3465858c24defb6a185cd38578cb33cd30d48 | ptal/AbSolute | octagon_interpretation.ml | Copyright 2019
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 License , or ( at your option ) any later version .
This program is distr... | null | https://raw.githubusercontent.com/ptal/AbSolute/469159d87e3a717499573c1e187e5cfa1b569829/src/domains/octagon/octagon_interpretation.ml | ocaml | * If the bound is discrete, it reformulates strict inequalities `<` into the inequality `<=` (dual `>` is handled by `generic_rewrite`).
It is not an over-approximation because the rewritten constraint is logically equivalent to the initial constraint.
For example, it rewrites `x - y < d` into `x - y <= d -... | Copyright 2019
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 License , or ( at your option ) any later version .
This program is distr... |
903317b60db1b2605c1afe8636190f9e03405212597e8a2876fea1b2d836d251 | uwplse/coq-plugin-lib | zooming.mli | (*
* Zooming into environments and reconstructing terms from environments
*)
open Constr
open Environ
open Evd
open Names
(* --- Zoom n deep --- *)
val zoom_n_prod : env -> int -> types -> (env * types)
val zoom_n_lambda : env -> int -> types -> (env * types)
(* --- Zoom all the way --- *)
... | null | https://raw.githubusercontent.com/uwplse/coq-plugin-lib/b249fc1954e2f1bc0b776e2d06e8ec1fc4d48ad9/src/coq/logicutils/hofs/zooming.mli | ocaml |
* Zooming into environments and reconstructing terms from environments
--- Zoom n deep ---
--- Zoom all the way ---
--- Zoom all the way except last n, return bindings ---
--- Projections of zooming ---
--- Zooming for sigma types ---
--- Conditional zooming for sigma types ---
--- Reconstruct until n ... |
open Constr
open Environ
open Evd
open Names
val zoom_n_prod : env -> int -> types -> (env * types)
val zoom_n_lambda : env -> int -> types -> (env * types)
val zoom_lambda_term : env -> types -> (env * types)
val zoom_product_type : env -> types -> (en... |
216009f2d6740938a46205468c26dc3164990ba65763d9d4ccca8085183ba71a | cljdoc/cljdoc | cache_bundle.clj | (ns cljdoc.spec.cache-bundle
"Schema and related functions for the cache-bundle structure
generated via `cljdoc.storage.sqlite-impl/bundle-docs`."
(:require [malli.core :as malli]
[malli.error]
[malli.provider]))
(def schema
(let [doc-attrs
[:map
[:cljdoc.doc/source-fil... | null | https://raw.githubusercontent.com/cljdoc/cljdoc/4034128558664bf81ceada65811f6eb3bd61c88e/src/cljdoc/spec/cache_bundle.clj | clojure | infer a schema to get you started | (ns cljdoc.spec.cache-bundle
"Schema and related functions for the cache-bundle structure
generated via `cljdoc.storage.sqlite-impl/bundle-docs`."
(:require [malli.core :as malli]
[malli.error]
[malli.provider]))
(def schema
(let [doc-attrs
[:map
[:cljdoc.doc/source-fil... |
0dbc2a0c3b6360b1d2d8e6d8500c17b997a06faa34c0bc162ff8188316caef81 | avsm/mirage-ci | oversions.ml | type version = Ocaml_version.t
let primary = Ocaml_version.Releases.latest
let recents = Ocaml_version.Releases.recent @ Ocaml_version.Releases.unreleased_betas
let has_native_dune_support v =
Ocaml_version.compare v Ocaml_version.Releases.v4_08_0 >= 0
let to_string v =
Ocaml_version.to_string (Ocaml_version.wit... | null | https://raw.githubusercontent.com/avsm/mirage-ci/a11ecf203976299fa19337fd9e1794d6ca3fa436/src/oversions.ml | ocaml | type version = Ocaml_version.t
let primary = Ocaml_version.Releases.latest
let recents = Ocaml_version.Releases.recent @ Ocaml_version.Releases.unreleased_betas
let has_native_dune_support v =
Ocaml_version.compare v Ocaml_version.Releases.v4_08_0 >= 0
let to_string v =
Ocaml_version.to_string (Ocaml_version.wit... | |
dc36f61eeb7dd3126f72d4d4ee3859936510ae32032f403fc4dfb5f95602027d | hamler-lang/hamler | EVal.erl | -module('EVal').
-export([toEVal/1, fromEVal/1]).
-include("./EVal.hrl").
| null | https://raw.githubusercontent.com/hamler-lang/hamler/37f37c9b01b94c7d21c27b681de7068c29ee56e9/lib/Data/EVal.erl | erlang | -module('EVal').
-export([toEVal/1, fromEVal/1]).
-include("./EVal.hrl").
| |
c5f34f39263568b930f32e6c30b79010d490429ee0606ba08a7bfceadc7a741c | wwezhuimeng/kazoo | rabbit_autoheal.erl | 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 distributed under the License is distributed on an " AS IS "
%% basis, WITHOUT WARRANTY OF ... | null | https://raw.githubusercontent.com/wwezhuimeng/kazoo/06a15811dbf123ae1601dc7a4ced956a7e04f58a/deps/rabbitmq_server-3.3.5/src/rabbit_autoheal.erl | erlang | 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 rights and
limitations under the License.
The named proce... | 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 RabbitMQ .
The Initial Developer of the Original Code is GoPivotal , Inc.
Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved .
-module... |
3fe761d53f6f6b6385decebc0767a4ffd76aa6a28eca0930bfdc3fe7826f7055 | returntocorp/semgrep | Taint_lval_env.ml | Iago Abal
*
* Copyright ( C ) 2022 r2c
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file LIC... | null | https://raw.githubusercontent.com/returntocorp/semgrep/70af5900482dd15fcce9b8508bd387f7355a531d/src/tainting/Taint_lval_env.ml | ocaml | TODO: This needs some clean up, maybe we shouldn't expect clients of this module
* to ensure that lvals satisfy IL_helpers.lval_is_var_and_dots, but rather handle
* that internally.
* Taint that is propagated via taint propagators (internally represented by
unique propagator variables).
this.x o_1 ... o_N bec... | Iago Abal
*
* Copyright ( C ) 2022 r2c
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file LIC... |
0d77847975ab1af008bb3fdc610ba370ba3541a422dc99528576dcf2dbc3837c | coalton-lang/coalton | coalton.lisp | (in-package #:coalton-impl)
;;; # Compiler
;;;
;;; The compiler is a combination of a code analyzer and code
;;; generator. The main analysis to be done is type checking. The code
;;; generator just generates valid Common Lisp, to be further
;;; processed by the Common Lisp compiler. Generally, this code will
be gen... | null | https://raw.githubusercontent.com/coalton-lang/coalton/3a08ed5f88250a67026a0c82d7da6abd3af229bc/src/coalton.lisp | lisp | # Compiler
The compiler is a combination of a code analyzer and code
generator. The main analysis to be done is type checking. The code
generator just generates valid Common Lisp, to be further
processed by the Common Lisp compiler. Generally, this code will
the short form means (INDICATOR T)."
Set properties i... | (in-package #:coalton-impl)
be generated at macroexpansion time of the ambient
compiler . See the COALTON macro .
(alexandria:define-constant +repr-specifiers+ '(:lisp :transparent :native :enum)
:test #'equal
:documentation "(repr ...) specifiers that the compiler is known to understand.")
(defmacro insta... |
55bb0e4c0fe1edde0f2abfe05a74b1a5bc138e9fb4497ba1fd023bed226cf7d8 | spawnfest/eneo4j | eneo4j_worker_SUITE.erl | -module(eneo4j_worker_SUITE).
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
-compile(export_all).
-define(AuthNeo4jUrl, ":7474").
-define(NoAuthNeo4jUrl, ":7470").
-define(Neo4jUser, "neo4j").
-define(Neo4jDB, "neo4j").
-define(Neo4jPassword, "test").
init_per_suite(Config) ->... | null | https://raw.githubusercontent.com/spawnfest/eneo4j/17f3a2b8b6a6b297259d170b3309d225a5d0eaf2/test/eneo4j_worker_SUITE.erl | erlang | --------------------------------------------------------------------
TEST CASES
--------------------------------------------------------------------
Begin and commit transaction
Wait for message to come
Wait for message to come
Wait for message to come | -module(eneo4j_worker_SUITE).
-include_lib("common_test/include/ct.hrl").
-include_lib("eunit/include/eunit.hrl").
-compile(export_all).
-define(AuthNeo4jUrl, ":7474").
-define(NoAuthNeo4jUrl, ":7470").
-define(Neo4jUser, "neo4j").
-define(Neo4jDB, "neo4j").
-define(Neo4jPassword, "test").
init_per_suite(Config) ->... |
69a367b256d1827df39bb8cd23302c4dc5298105cc8ffd1f1690f3df014e2455 | JShermanSteele/dxo | absento-tests.scm | Tests for general absento , where the first argument is n't a ground atom .
(test "test 0"
(run* (q) (absento q q))
'())
(test "test 1"
(run* (q)
(fresh (a b c)
(== a b)
(absento b c)
(== c b)
(== `(,a ,b ,c) q)))
'())
(test "test 2"
(run* (q)
(fresh (a)
(absento q a... | null | https://raw.githubusercontent.com/JShermanSteele/dxo/52fd7d995cf072e5278a3b6cc5c85a193b61a0cf/faster-miniKanren/absento-tests.scm | scheme | Tests for general absento , where the first argument is n't a ground atom .
(test "test 0"
(run* (q) (absento q q))
'())
(test "test 1"
(run* (q)
(fresh (a b c)
(== a b)
(absento b c)
(== c b)
(== `(,a ,b ,c) q)))
'())
(test "test 2"
(run* (q)
(fresh (a)
(absento q a... | |
579aa31dacadfbbf28a99e9710c6e1375b766ea733d14e9ec6fa08ad5898d7b0 | poroh/ersip | ersip_uri_test.erl | %%%
Copyright ( c ) 2017 , 2018 , 2020 Dmitry Poroh
%%% All rights reserved.
Distributed under the terms of the MIT License . See the LICENSE file .
%%%
%%% URI tests
%%%
-module(ersip_uri_test).
-include_lib("eunit/include/eunit.hrl").
%%===================================================================
%% Cas... | null | https://raw.githubusercontent.com/poroh/ersip/60afa92a53898f6692f3a30d04b5b88a580c8153/test/uri/ersip_uri_test.erl | erlang |
All rights reserved.
URI tests
===================================================================
Cases
===================================================================
-------------------------------------------------------------------
-------------------------------------------------------------------
-----... | Copyright ( c ) 2017 , 2018 , 2020 Dmitry Poroh
Distributed under the terms of the MIT License . See the LICENSE file .
-module(ersip_uri_test).
-include_lib("eunit/include/eunit.hrl").
Parse tests
basic_parse_test() ->
parse_sip_ok(<<"sip:b">>, #{host => <<"b">>}),
parse_sip_ok(<<"sip:b:5090">>... |
03d091132383b7cdbcc9994847250c58fa10495fb7d11ca6393f31151ff401f0 | mirage/ocaml-dns | dns_server_mirage.mli | ( c ) 2017 , 2018 , all rights reserved
module Make (P : Mirage_clock.PCLOCK) (M : Mirage_clock.MCLOCK) (T : Mirage_time.S) (S : Tcpip.Stack.V4V6) : sig
val primary :
?on_update:(old:Dns_trie.t -> authenticated_key:[`raw] Domain_name.t option -> update_source:Ipaddr.t -> Dns_server.Primary.s -> unit Lwt.t) ... | null | https://raw.githubusercontent.com/mirage/ocaml-dns/e8703c5e7d679b5242b064c009bd0f195422883d/mirage/server/dns_server_mirage.mli | ocaml | ( c ) 2017 , 2018 , all rights reserved
module Make (P : Mirage_clock.PCLOCK) (M : Mirage_clock.MCLOCK) (T : Mirage_time.S) (S : Tcpip.Stack.V4V6) : sig
val primary :
?on_update:(old:Dns_trie.t -> authenticated_key:[`raw] Domain_name.t option -> update_source:Ipaddr.t -> Dns_server.Primary.s -> unit Lwt.t) ... | |
b9a657eba1ad8836637c0f1d3368ea7b482f3eeb2a4edb87f12e54f47101bb5f | arendsee/lsystems | Grammar.hs | |
Module : . Grammar
Description : Core types
Copyright : ( c ) , 2018
License : MIT
Maintainer :
Stability : experimental
Module : Lsystem.Grammar
Description : Core types
Copyright : (c) Zebulun Arendsee, 2018
License : MIT
Maintainer :
Stability : experimental
-}
... | null | https://raw.githubusercontent.com/arendsee/lsystems/25ce08ae79ebf1f2769ca81a242e35cb985b3491/src/Lsystem/Grammar.hs | haskell |
^ x > 0 | |
Module : . Grammar
Description : Core types
Copyright : ( c ) , 2018
License : MIT
Maintainer :
Stability : experimental
Module : Lsystem.Grammar
Description : Core types
Copyright : (c) Zebulun Arendsee, 2018
License : MIT
Maintainer :
Stability : experimental
-}
... |
654d4a12fbf42fc174f522ed39e4c82ed9d752a7f4b9f4cf2a5caff9bb5df118 | eschulte/software-evolution | neutral.lisp | neutral.lisp --- Evolve neutral variants of an original program
Copyright ( C ) 2014
License : GNU General Public License , Version 3 or later
;;; Commentary:
;;; Code:
(defpackage :neutral
(:use :common-lisp
:alexandria
:split-sequence
:metabang-bind
:cl-ppcre
:c... | null | https://raw.githubusercontent.com/eschulte/software-evolution/dbf5900d1eef834b93eeb00eca34eb7c80e701b6/examples/neutral.lisp | lisp | Commentary:
Code:
guess type from path | neutral.lisp --- Evolve neutral variants of an original program
Copyright ( C ) 2014
License : GNU General Public License , Version 3 or later
(defpackage :neutral
(:use :common-lisp
:alexandria
:split-sequence
:metabang-bind
:cl-ppcre
:curry-compose-reader-macros... |
f0dd04d654d3ffe629c4d6eb383815aecba228b28498cb89bb9b10cba27a087f | jindrichmynarz/sparql-to-graphviz | cli.clj | (ns sparql-to-graphviz.cli
(:gen-class)
(:require [sparql-to-graphviz.core :as core]
[sparql-to-graphviz.spec :as spec]
[sparql-to-graphviz.endpoint :as endpoint]
[sparql-to-graphviz.util :as util]
[sparql-to-graphviz.graphviz :as graphviz]
[sparclj.core :... | null | https://raw.githubusercontent.com/jindrichmynarz/sparql-to-graphviz/29baed9ea7befe3c0b1693e3391afbff75820e86/src/sparql_to_graphviz/cli.clj | clojure | ----- Private functions -----
----- Private vars -----
----- Public functions ----- | (ns sparql-to-graphviz.cli
(:gen-class)
(:require [sparql-to-graphviz.core :as core]
[sparql-to-graphviz.spec :as spec]
[sparql-to-graphviz.endpoint :as endpoint]
[sparql-to-graphviz.util :as util]
[sparql-to-graphviz.graphviz :as graphviz]
[sparclj.core :... |
ed92a0af02399b8f1429f6d90142cd7d68ae95d348cd5d8e2af6c1bb3e53d187 | amnh/poy5 | sufTree.mli | POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies .
Copyright ( C ) 2014 , , , Ward Wheeler ,
and the American Museum of Natural History .
(* *)
(* This program is free softwa... | null | https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/sufTree.mli | ocaml |
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
This progra... | POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies .
Copyright ( C ) 2014 , , , Ward Wheeler ,
and the American Museum of Natural History .
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; ... |
daa88dc3148453c33468533e0ccd0719ed96f19a2219c99e2d4945b83deef8e7 | scslab/hails | SimpleApp.hs | {-# LANGUAGE OverloadedStrings #-}
module SimpleApp (server) where
import qualified Data.ByteString.Lazy.Char8 as L8
import LIO
import LIO.DCLabel
import Hails.HttpServer
import Hails.Data.Hson
server :: Application
server _ lreq = do
req <- unlabel lreq
ldoc <- labeledReq... | null | https://raw.githubusercontent.com/scslab/hails/4d4dfe0cdfb7c8941a55ce882cba20d82c6d9cfd/examples/SimpleWithClient/SimpleApp.hs | haskell | # LANGUAGE OverloadedStrings # | module SimpleApp (server) where
import qualified Data.ByteString.Lazy.Char8 as L8
import LIO
import LIO.DCLabel
import Hails.HttpServer
import Hails.Data.Hson
server :: Application
server _ lreq = do
req <- unlabel lreq
ldoc <- labeledRequestToHson lreq
doc <- unlabel ld... |
a61a19bb79c6c5db68eb448adb303837f8ed0ba8ed86b191d542ee5c71538b55 | janestreet/ocaml_plugin | config_v1_error.ml | (* this is a wrong config file containing type errors in it *)
let job = 42
| null | https://raw.githubusercontent.com/janestreet/ocaml_plugin/02b912d4200b107f936528c065f8d017ec378d32/sample/config/config_v1_error.ml | ocaml | this is a wrong config file containing type errors in it | let job = 42
|
350d3eb0a578fc964f7ea483f7c4708922c059dc4f767bff5c703691a775fe52 | simplex-chat/simplexmq | Stats.hs | # LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
module Simplex.Messaging.Notifications.Server.Stats where
import Control.Applicative (optional)
import qualified Data.Attoparsec.ByteString.Char8 as A
import qualified Data.ByteString.Char8 as B
import Data.Time.Clock (U... | null | https://raw.githubusercontent.com/simplex-chat/simplexmq/56eea29ec36ba723fda6ae27a18e03a4e5aad6e8/src/Simplex/Messaging/Notifications/Server/Stats.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
module Simplex.Messaging.Notifications.Server.Stats where
import Control.Applicative (optional)
import qualified Data.Attoparsec.ByteString.Char8 as A
import qualified Data.ByteString.Char8 as B
import Data.Time.Clock (UTCTime)
import Simplex.Messaging.En... |
3fc12a24fe00a5f456b7cea9e04cbba07472a4e219c569f4ab1d3e9e16bb9f06 | brandonchinn178/persistent-mtl | Shim.hs | {- THIS FILE IS AUTOGENERATED AND SHOULD NOT BE EDITED MANUALLY -}
{- FOURMOLU_DISABLE -}
# LANGUAGE CPP #
|
Module : Database . Persist . . Shim
Defines all the @persistent@ functions lifted into ' MonadSqlQuery ' , and
re - exports a version of the @Database . Persist . Sql@ module replacing each
function... | null | https://raw.githubusercontent.com/brandonchinn178/persistent-mtl/d6e2e54e1cb4f699a08e59109ddea121cc260bba/src/Database/Persist/Sql/Shim.hs | haskell | THIS FILE IS AUTOGENERATED AND SHOULD NOT BE EDITED MANUALLY
FOURMOLU_DISABLE |
# LANGUAGE CPP #
|
Module : Database . Persist . . Shim
Defines all the @persistent@ functions lifted into ' MonadSqlQuery ' , and
re - exports a version of the @Database . Persist . Sql@ module replacing each
function with the lifted version .
This file is autogenerated , to keep it in sync with
@Data... |
5b34834ede567b8fda6116085c501e7641c7c8ee423d08edda73afee67a4b727 | softwarelanguageslab/maf | R5RS_ad_queue-3.scm | ; Changes:
* removed : 1
* added : 0
* swaps : 0
; * negated predicates: 0
* swapped branches : 1
* calls to i d fun : 1
(letrec ((create-queue (lambda ()
(<change>
(let ((front ())
(rear ()))
... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_ad_queue-3.scm | scheme | Changes:
* negated predicates: 0 | * removed : 1
* added : 0
* swaps : 0
* swapped branches : 1
* calls to i d fun : 1
(letrec ((create-queue (lambda ()
(<change>
(let ((front ())
(rear ()))
(letrec ((empty? (lambda ()
... |
334ede1f7ef14fa5d574b7952cc4a3739d73105f195d4656be14d3d83dab514e | biocad/cobot | TH.hs | {-# LANGUAGE CPP #-}
# LANGUAGE TemplateHaskell #
module Bio.Chain.Alignment.Scoring.TH where
import Data.Char (toLower, toUpper)
import Language.Haskell.TH
import Language.Haskell.TH.Quote
import Bio.Chain.Alignment.Scoring.Loader
type Substitution a = a -> a -> Int
matrix :: QuasiQuote... | null | https://raw.githubusercontent.com/biocad/cobot/c6a0a8866d74637d2823f6ccdec35d74e13f32fd/src/Bio/Chain/Alignment/Scoring/TH.hs | haskell | # LANGUAGE CPP # | # LANGUAGE TemplateHaskell #
module Bio.Chain.Alignment.Scoring.TH where
import Data.Char (toLower, toUpper)
import Language.Haskell.TH
import Language.Haskell.TH.Quote
import Bio.Chain.Alignment.Scoring.Loader
type Substitution a = a -> a -> Int
matrix :: QuasiQuoter
matrix = QuasiQuoter { quotePat... |
0eda15ef844de770d8c5db9ea5021bdd26bff66e1088ec8cc0043f0cc5369762 | AbstractMachinesLab/caramel | datarepr.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/upstream/ocaml_403/typing/datarepr.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
Compute constructor and label descriptions from type declarations ,
determining their representati... |
95b6fd46d8b26f9b5c53eddc05f3a3b75a509fb57df408df5a4229d9f94216b1 | blindglobe/clocc | union-find-pkg.lisp | ;;; -*- Mode: CLtL -*-
;;; union-find-pkg.lisp --
;;; Simple implementation of the well known UNION-FIND data structure
;;; (with weighted path compression).
;;; See file README for more info.
;;;
Author :
;;;
Copyright ( c ) 2000 . All rights reserved .
;;; This software is released under the terms of the GNU... | null | https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/ext/union-find/union-find-pkg.lisp | lisp | -*- Mode: CLtL -*-
union-find-pkg.lisp --
Simple implementation of the well known UNION-FIND data structure
(with weighted path compression).
See file README for more info.
This software is released under the terms of the GNU Lesser General
Public License (LGPL, see file COPYRIGHT for details).
end of file --... |
Author :
Copyright ( c ) 2000 . All rights reserved .
(defpackage "CL.UTIL.UNION-FIND" (:use "COMMON-LISP")
(:nicknames "UNION-FIND" "CL-UF" "union-find" "cl-uf")
(:documentation
"This package contains an implementation of the well known
UNION-FIND data structure (with weighted path compression).
The ... |
00a4c1662fa96b9e83f2c70816f827d008f5a8f77cea41f74bbaf49fbf22a1a7 | DSiSc/why3 | main.ml | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University
(* ... | null | https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/tools/main.ml | 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 - 2018 -- Inria - CNRS - Paris - Sud University
General Public License version 2.1 , with the special exception
open Format
open Why3
open Whyconf
open Theory
let usage_msg = sprintf
"Usage: %s [options] <command> [... |
3e1a9cd0e29b0ea104993b4e79a1a16c8531723035a1aa0f8850238dbe7e3f59 | lilactown/flex | xform_test.cljc | (ns town.lilac.flex.xform-test
(:require
[clojure.test :as t :refer [deftest is testing]]
[town.lilac.flex :as f]
[town.lilac.flex.xform :as xf]))
(deftest reduce-test
(let [*calls (atom [])
A (f/source 0)
B (xf/reduce conj [] A)
Z (f/effect [_] (swap! *calls conj @B))
disp... | null | https://raw.githubusercontent.com/lilactown/flex/43181dca1e167c2f45d0079e451071fa341ad8c0/test/town/lilac/flex/xform_test.cljc | clojure | (ns town.lilac.flex.xform-test
(:require
[clojure.test :as t :refer [deftest is testing]]
[town.lilac.flex :as f]
[town.lilac.flex.xform :as xf]))
(deftest reduce-test
(let [*calls (atom [])
A (f/source 0)
B (xf/reduce conj [] A)
Z (f/effect [_] (swap! *calls conj @B))
disp... | |
ed4709ad7d06139b66f8ed6a946393a3ccad807469d29ce6740b7a05d3f7bc34 | aiju/lilith | astutil.ml | open Ast
open Type
type assoc = Left | Right | Nonassoc
let precStat = 0
let precComma = 1
let precCmp = 2
let precAdd = 3
let precMul = 4
let precUn = 5
let opinfo o =
match o with
| OpEq -> ("==", precCmp, Nonassoc)
| OpNe -> ("!=", precCmp, Nonassoc)
| OpLt -> ("<", precCmp, Nonassoc)
| OpLe -> ("<=", precCm... | null | https://raw.githubusercontent.com/aiju/lilith/56a34309abb016d75c7aa25937f9350f337287d7/eva/astutil.ml | ocaml | open Ast
open Type
type assoc = Left | Right | Nonassoc
let precStat = 0
let precComma = 1
let precCmp = 2
let precAdd = 3
let precMul = 4
let precUn = 5
let opinfo o =
match o with
| OpEq -> ("==", precCmp, Nonassoc)
| OpNe -> ("!=", precCmp, Nonassoc)
| OpLt -> ("<", precCmp, Nonassoc)
| OpLe -> ("<=", precCm... | |
cbf783a93c98c6941cbc44a3678948ec20257d0d1bff95f92f6298ca98c5f588 | EveryTian/Haskell-Codewars | memoized-fibonacci.hs | -- -fibonacci
module Fibonacci where
fibonacci :: Int -> Integer
fibonacci n = fibList n ! ! n
-- where fibList 0 = [0]
fibList 1 = [ 0 , 1 ]
-- fibList n = listN ++ [(listN !! (n - 1)) + (listN !! (n - 2))]
where listN = fibList ( n - 1 )
fibonacci n = fibs !! n
fibs :: [... | null | https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/5kyu/memoized-fibonacci.hs | haskell | -fibonacci
where fibList 0 = [0]
fibList n = listN ++ [(listN !! (n - 1)) + (listN !! (n - 2))] |
module Fibonacci where
fibonacci :: Int -> Integer
fibonacci n = fibList n ! ! n
fibList 1 = [ 0 , 1 ]
where listN = fibList ( n - 1 )
fibonacci n = fibs !! n
fibs :: [Integer]
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
|
1bd3b0933b278ee556ffcf2ddac08cdc60a46bd1fbc7eb903fe1e10d06b79a0f | dharmatech/abstracting | source.scm |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (record-template-obj tag fields)
(let ((fields (if (list? fields)
(vec-obj (list->vector fields))
fields)))
(let ((index-of-field
(lambda (field)
((-> fields 'index) (... | null | https://raw.githubusercontent.com/dharmatech/abstracting/9dc5d9f45a9de03c6ee379f1928ebb393dfafc52/src/record/source.scm | scheme |
Experimental
|
(define (record-template-obj tag fields)
(let ((fields (if (list? fields)
(vec-obj (list->vector fields))
fields)))
(let ((index-of-field
(lambda (field)
((-> fields 'index) (eq-to? field)))))
(letrec ((record-obj
... |
b1c0be83b40f9b4b40600b8deb93ac44c76f7a1316a1a8c46ebf02d75bb6b85e | gedge-platform/gedge-platform | prometheus_mnesia.erl | %% @doc
%% Mnesia instrumentation helpers.
%% @end
-module(prometheus_mnesia).
-export([table_disk_size/1,
table_disk_size/2,
tm_info/0]).
%%====================================================================
Macros
%%====================================================================
-define(E... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/prometheus/src/contrib/prometheus_mnesia.erl | erlang | @doc
Mnesia instrumentation helpers.
@end
====================================================================
====================================================================
====================================================================
Public API
========================================================... | -module(prometheus_mnesia).
-export([table_disk_size/1,
table_disk_size/2,
tm_info/0]).
Macros
-define(EXTS, [".DAT", ".TMP", ".DMP", ".DCD", ".DCL", ".LOGTMP"]).
-spec table_disk_size( Table) -> Size when
Table :: file:name_all(),
Size :: non_neg_integer().
table_disk_size(Table) ->
... |
cb4dd5adbb78d52e8b6f9ef365076aa5d6e447c8f66d0edb325bd8386782befb | pfdietz/ansi-test | floor.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Mon Aug 4 22:16:00 2003
;;;; Contains: Tests of FLOOR
;;; Error tests
(deftest floor.error.1
(signals-error (floor) program-error)
t)
(deftest floor.error.2
(signals-error (floor 1.0 1 nil) program-error)
t)
;;; Non-error tests
(deftest floor.1
... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/numbers/floor.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of FLOOR
Error tests
Non-error tests
To add: tests that involve adding/subtracting EPSILON constants
(suitably scaled) to floated integers. | Author :
Created : Mon Aug 4 22:16:00 2003
(deftest floor.error.1
(signals-error (floor) program-error)
t)
(deftest floor.error.2
(signals-error (floor 1.0 1 nil) program-error)
t)
(deftest floor.1
(floor.1-fn)
nil)
(deftest floor.2
(floor.2-fn)
nil)
(deftest floor.3
(floor.3-... |
d76bd931ec4fa53eb989e3563140953669ed78db4c3fa7d6731fc3579f18abf5 | BekaValentine/SimpleFP-v2 | Elaboration.hs | {-# OPTIONS -Wall #-}
-- | This module defines how elaboration of programs is performed.
module Continuations.Unification.Elaboration where
import Utils.ABT
import Utils.Elaborator
import Utils.Names
import Utils.Plicity
import Utils.Pretty
import Utils.Telescope
import Utils.Vars
import Continuations.Core.Con... | null | https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/Continuations/Unification/Elaboration.hs | haskell | # OPTIONS -Wall #
| This module defines how elaboration of programs is performed.
| We can add a new defined value declaration given a name, term, and type.
| We can add a new constructor by giving a name and a signature.
| We can add a constructor to a module other than the current one.
| We can add an alias to t... |
module Continuations.Unification.Elaboration where
import Utils.ABT
import Utils.Elaborator
import Utils.Names
import Utils.Plicity
import Utils.Pretty
import Utils.Telescope
import Utils.Vars
import Continuations.Core.ConSig
import Continuations.Core.DeclArg
import Continuations.Core.Program
import Continuati... |
0d0a3836086160d02b5d1f43ca1e4d2d731c53d1eddca7d86cb5f7101dfa4e7a | g000001/MacLISP-compat | RUBOUT.lisp | ;;; RUBOUT -*-Mode:Lisp;Package:SI;Lowercase:T-*-
;;; **************************************************************************
* * * * * * * * * * * Using SFA'a and CURSORPOS * * * * * * * * * *
;;; **************************************************************************
* * * * * * * * ( c ) Copyrig... | null | https://raw.githubusercontent.com/g000001/MacLISP-compat/a147d09b98dca4d7c089424c3cbaf832d2fd857a/RUBOUT.lisp | lisp | RUBOUT -*-Mode:Lisp;Package:SI;Lowercase:T-*-
**************************************************************************
**************************************************************************
**************************************************************************
Documentation
This file provides se... | * * * * * * * * * * * Using SFA'a and CURSORPOS * * * * * * * * * *
* * * * * * * * ( c ) Copyright 1981 Massachusetts Institute of Technology * * * * * * * *
(herald RUBOUT /27)
#-NIL (include ((lisp) subload lsp))
#-NIL
(eval-when (eval compile)
(subload SHARPCONDITIONALS)
)
#+(local MacLISP)
(eval-whe... |
34fa27a995465e3b72affbc7155ad9fce45e6ff4934b3630073cb8a4bcc55dfa | KavrakiLab/tmkit | package.lisp | (defpackage tmsmt/pddl
(:use :cl)
(:export
:domain
:define
:exists
:forall
:define
:problem))
(defpackage :tmsmt
(:use :cl :alexandria :sycamore :amino :sycamore :robray :sycamore-util :sycamore-cgen
:tmsmt/pddl)
(:export
:tmp-driver
:tmp-refine
:tm-op
:tm-op-nop
:tm-o... | null | https://raw.githubusercontent.com/KavrakiLab/tmkit/4fb6fc0fa02c5b242dfcbe0013d3c1178e9d9224/lisp/package.lisp | lisp | binders
helpers | (defpackage tmsmt/pddl
(:use :cl)
(:export
:domain
:define
:exists
:forall
:define
:problem))
(defpackage :tmsmt
(:use :cl :alexandria :sycamore :amino :sycamore :robray :sycamore-util :sycamore-cgen
:tmsmt/pddl)
(:export
:tmp-driver
:tmp-refine
:tm-op
:tm-op-nop
:tm-o... |
1d091495b4fa3db0c95a38a290574deff9b08360c8cd6c2b0d6e81a8e85d6f41 | stardust66/openapi-type-provider | openapi.rkt | #lang typed/racket/base
(provide file->openapi
(struct-out API)
(struct-out Route)
(struct-out Response)
(struct-out Param))
(require typed/json
racket/list
typed/net/url
"json-schema.rkt"
"utils.rkt")
(define-type Method (U 'get 'head 'post 'pu... | null | https://raw.githubusercontent.com/stardust66/openapi-type-provider/58981663b324707eb77b792bd7ccb7556c3d0992/openapi.rkt | racket | TODO: Write macro for the following functions
Security not implemented | #lang typed/racket/base
(provide file->openapi
(struct-out API)
(struct-out Route)
(struct-out Response)
(struct-out Param))
(require typed/json
racket/list
typed/net/url
"json-schema.rkt"
"utils.rkt")
(define-type Method (U 'get 'head 'post 'pu... |
79b7eb8eae3cca125cf61ebaf05fa5c52ea920dc66065c16cfc99f22bbca382e | dparis/gen-phzr | emitter.cljs | (ns phzr.particles.arcade.emitter
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser])
(:refer-clojure :exclude [update next reverse replace set filter sort iterate remove]))
(defn ->Emitter
"Emitter is a lightweight particle emitter... | null | https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/particles/arcade/emitter.cljs | clojure |
otherwise all children can be selected and will be passed to the predicate.
if force is `true` a new property will be created if needed | (ns phzr.particles.arcade.emitter
(:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]]
[phzr.impl.extend :as ex]
[cljsjs.phaser])
(:refer-clojure :exclude [update next reverse replace set filter sort iterate remove]))
(defn ->Emitter
"Emitter is a lightweight particle emitter... |
9c42f4c0179102f8ac78ac9756a18dbef282fb1e64a33dfbfb6e7c83187db50d | helium/blockchain-core | blockchain_region_param_v1.erl | %%%-------------------------------------------------------------------
%% @doc
%% == Blockchain Region Singular Paramater ==
%% @end
%%%-------------------------------------------------------------------
-module(blockchain_region_param_v1).
TODO
%% -behavior(blockchain_json).
-include("blockchain_json.hrl").
-inclu... | null | https://raw.githubusercontent.com/helium/blockchain-core/78d57ff4d1c42a949724db86589d6cc205c2cd99/src/region/blockchain_region_param_v1.erl | erlang | -------------------------------------------------------------------
@doc
== Blockchain Region Singular Paramater ==
@end
-------------------------------------------------------------------
-behavior(blockchain_json).
--------------------------------------------------------------------
api
-------------------------... | -module(blockchain_region_param_v1).
TODO
-include("blockchain_json.hrl").
-include("blockchain_vars.hrl").
-include_lib("helium_proto/include/blockchain_region_param_v1_pb.hrl").
-export([
new/4,
channel_frequency/1,
bandwidth/1,
max_eirp/1,
spreading/1
]).
-type region_param_v1() :: #block... |
c5d337a212a614be74c9e7a388cabc13bd39c6594c2999ea26fc8d2037ace712 | epiccastle/bbssh | channel_exec.clj | (ns pod.epiccastle.bbssh.channel-exec
"Creates and calls the various methods of a ChannelExec that
exists on the pod heap."
(:require [pod.epiccastle.bbssh.pod.channel-exec :as channel-exec]
[pod.epiccastle.bbssh.impl.cleaner :as cleaner]
[pod.epiccastle.bbssh.impl.utils :as utils]))
(def... | null | https://raw.githubusercontent.com/epiccastle/bbssh/ee15ca308e640c870c9ff3d7c519394e5732ee2b/src/bb/pod/epiccastle/bbssh/channel_exec.clj | clojure | no timeout, block forever | (ns pod.epiccastle.bbssh.channel-exec
"Creates and calls the various methods of a ChannelExec that
exists on the pod heap."
(:require [pod.epiccastle.bbssh.pod.channel-exec :as channel-exec]
[pod.epiccastle.bbssh.impl.cleaner :as cleaner]
[pod.epiccastle.bbssh.impl.utils :as utils]))
(def... |
f270b6a85f321a462b781523ece5449b80f2847dc8d7c9de9824b3ddc7066446 | tyage/tiny-c | Semantic.hs | module Semantic where
import Control.Applicative hiding (Const)
import Control.Monad
import Control.Monad.Writer
import Control.Monad.State
import Data.Maybe
import Type
import Show
environmentLevel :: Environment -> Int
environmentLevel env = tokensTableLevel $ tokensTable env
tokensTableLevel :: TokensTable -> In... | null | https://raw.githubusercontent.com/tyage/tiny-c/92aed366ad4e610b3daf15c9fccf4d5b6f3ba6ad/task8/Semantic.hs | haskell | semantic checker
同一レベルで同名の変数宣言・関数宣言があった場合はエラーを出す
lookupして、paramter宣言があった場合は警告を出す
levelが2以上のTokenをカウント
compoundStatementではlevel2なので戻す
同一レベルで同名の変数宣言があった場合はエラーを出す
同一レベルで同名のパラメータ宣言があった場合はエラーを出す
関数が参照できない場合は警告、変数・パラメータの場合はエラー
関数が参照できた場合、引数の数が異なっていればエラー
変数が参照できない場合・関数である場合はエラー | module Semantic where
import Control.Applicative hiding (Const)
import Control.Monad
import Control.Monad.Writer
import Control.Monad.State
import Data.Maybe
import Type
import Show
environmentLevel :: Environment -> Int
environmentLevel env = tokensTableLevel $ tokensTable env
tokensTableLevel :: TokensTable -> In... |
a70350fe068697692e74e50ca88e91bb58dc3486ead9b679bc1fca5331ae46bf | owlbarn/owl_symbolic | owl_symbolic_ops_reduction.ml |
* OWL - OCaml Scientific and Engineering Computing
* Copyright ( c ) 2016 - 2020 < >
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <>
*)
* Implemented : , ReduceSum , ReduceMin , ReduceSumSquare ,
* ReduceMean , ReduceProd , ReduceLogSum , ReduceLogSumExp... | null | https://raw.githubusercontent.com/owlbarn/owl_symbolic/dc853a016757d3f143c5e07e50075e7ae605d969/src/ops/owl_symbolic_ops_reduction.ml | ocaml | NOTE: ONNX requires an int parameter |
* OWL - OCaml Scientific and Engineering Computing
* Copyright ( c ) 2016 - 2020 < >
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <>
*)
* Implemented : , ReduceSum , ReduceMin , ReduceSumSquare ,
* ReduceMean , ReduceProd , ReduceLogSum , ReduceLogSumExp... |
882fed9e5d49eadeac4c6d52842024866ae2e520660bf07cb24d8ccbb503ba8e | bitblaze-fuzzball/fuzzball | smtlib_batch_engine.ml |
Based on stp_external_engine.ml , which bears the following notice :
Copyright ( C ) BitBlaze , 2009 - 2011 , and copyright ( C ) 2010 Ensighta
Security Inc. All rights reserved .
Based on stp_external_engine.ml, which bears the following notice:
Copyright (C) BitBlaze, 2009-2011, and copyright (C) ... | null | https://raw.githubusercontent.com/bitblaze-fuzzball/fuzzball/b9a617b45e68fa732f1357fedc08a2a10f87a62c/execution/smtlib_batch_engine.ml | ocaml | shouldn't really be here
success, widely
sat
unsat
can't see how to avoid no-model error on unsat |
Based on stp_external_engine.ml , which bears the following notice :
Copyright ( C ) BitBlaze , 2009 - 2011 , and copyright ( C ) 2010 Ensighta
Security Inc. All rights reserved .
Based on stp_external_engine.ml, which bears the following notice:
Copyright (C) BitBlaze, 2009-2011, and copyright (C) ... |
46ff112ad3554bdb8fdd5084e25bbd4edfd8207667459da1a069e712d515daa1 | originrose/cortex | parameters.clj | (ns cortex.optimise.parameters
"This namespace is a shared dependency of cortex.optimise.functions
and cortex.optimise.optimisers, and provides an extension of the
PParameters protocol to Clojure maps. See the above two namespaces
for more information on the use of this protocol extension.
Note that the exte... | null | https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/examples/optimise/src/cortex/optimise/parameters.clj | clojure | (ns cortex.optimise.parameters
"This namespace is a shared dependency of cortex.optimise.functions
and cortex.optimise.optimisers, and provides an extension of the
PParameters protocol to Clojure maps. See the above two namespaces
for more information on the use of this protocol extension.
Note that the exte... | |
f3e981b91a9f512d6bb75090140d233db44e291795525212ab3867e3113c077d | jeffshrager/biobike | string-type-check-doc.lisp | -*- Package : bbi ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*-
(in-package :bbi)
;;; +=========================================================================+
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
;;; | |
;;; | ... | null | https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Doc/bbldf/reduced/string-type-check-doc.lisp | lisp | mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*-
+=========================================================================+
| |
| Permission is hereby granted, free of charge, to any person obtaining |
| a copy of this software and as... |
(in-package :bbi)
| Copyright ( c ) 2002 , 2003 , 2004 JP , , |
| " Software " ) , to deal in the Software without restriction , including |
| distribute , sublicense , and/or sell copies of the Software , and to |
| permit persons to whom the Software is furnished to do so , subject to ... |
bafb7c469579fbb6f2fa238e1f7af3cad16839b3fa3f4d726ee44e149056b74e | facebook/duckling | Corpus.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Time.BG.Corpus
( corpus
, negativeCorpus
) where
... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/BG/Corpus.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
# LANGUAGE OverloadedStrings # | Copyright ( c ) 2016 - present , Facebook , Inc.
module Duckling.Time.BG.Corpus
( corpus
, negativeCorpus
) where
import Data.String
import Prelude
import Duckling.Locale
import Duckling.Resolve
import Duckling.Testing.Types hiding (examples)
import Duckling.Time.Corpus
import Duckling.Time.Types hiding (M... |
a42c3cc6170f259bb169cad50d92bed9a91e929c2e4e499595fc09fca4e806ec | fluree/db | cljs_exceptions.clj | (ns fluree.db.util.cljs-exceptions
(:require [fluree.db.util.exceptions :refer [find-clause]]))
(set! *warn-on-reflection* true)
(defmacro try* [& body]
(let [try-body (remove #(and
(list? %)
(or
(= 'catc... | null | https://raw.githubusercontent.com/fluree/db/70c49dfc3898945d3ab9a64beb798c1f1b2382e4/src/fluree/db/util/cljs_exceptions.clj | clojure | (ns fluree.db.util.cljs-exceptions
(:require [fluree.db.util.exceptions :refer [find-clause]]))
(set! *warn-on-reflection* true)
(defmacro try* [& body]
(let [try-body (remove #(and
(list? %)
(or
(= 'catc... | |
68fbb2fe49e737eb3009cfeead77293debfa6241509ef83d8e8e8f7b13497ee0 | incoherentsoftware/defect-process | JSON.hs | module Level.Room.JSON
( SignTypeJSON(..)
, SignJSON(..)
, RoomRandomOffsetsJSON(..)
, RoomJSON(..)
) where
import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON)
import GHC.Generics (Generic)
import qualified Data.List.NonEmpty as NE
import qualified Data.Map as M
import qualified Dat... | null | https://raw.githubusercontent.com/incoherentsoftware/defect-process/c39ce1f742d32a0ffcde82c03bf872adeb7d9162/src/Level/Room/JSON.hs | haskell | module Level.Room.JSON
( SignTypeJSON(..)
, SignJSON(..)
, RoomRandomOffsetsJSON(..)
, RoomJSON(..)
) where
import Data.Aeson.Types (FromJSON, genericParseJSON, parseJSON)
import GHC.Generics (Generic)
import qualified Data.List.NonEmpty as NE
import qualified Data.Map as M
import qualified Dat... | |
1985bc2b080ead077066442aff46b330e032226e41b871490551cdc8f9acd7e1 | opencog/opencog | data_#1.scm | Test # 1
;; anaphor is non-reflexive
;; The parse tree structure is:
;; verb
;; / \
;; antecedent anaphor
;; Expected result:
;; Rejection
Connection between two clauses
(ListLink
(AnchorNode "CurrentResolution")
(WordInstanceNode "anaphor")
(WordInstanceNode "antecedent")
)
(... | null | https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/tests/nlp/anaphora/data/propose/filter-%2314/data_%231.scm | scheme | anaphor is non-reflexive
The parse tree structure is:
verb
/ \
antecedent anaphor
Expected result:
Rejection
filter tests | Test # 1
Connection between two clauses
(ListLink
(AnchorNode "CurrentResolution")
(WordInstanceNode "anaphor")
(WordInstanceNode "antecedent")
)
(ListLink
(AnchorNode "CurrentPronoun")
(WordInstanceNode "anaphor")
)
(ListLink
(AnchorNode "CurrentProposal")
(WordInstanceNode "antece... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.