_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 |
|---|---|---|---|---|---|---|---|---|
cb6254097d624159149059aee03745dff0843bc18b0ea17a243bf0197929c31e | hidaris/thinking-dumps | drscheme-init.rkt | drscheme-init.scm - compatibility file for DrScheme
;; usage: (require "drscheme-init.scm")
;;; makes structs printable, and provides basic functionality for
;;; testing. This includes pretty-printing and tracing.
(module drscheme-init mzscheme
;; show the contents of define-datatype values
(print-struct #t)
... | null | https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/eopl-solutions/chap4/4-12/store-passing/drscheme-init.rkt | racket | usage: (require "drscheme-init.scm")
makes structs printable, and provides basic functionality for
testing. This includes pretty-printing and tracing.
show the contents of define-datatype values
safely apply procedure fn to a list of args.
if successful, return (cons #t val)
if eopl:error is invoked, returns (c... | drscheme-init.scm - compatibility file for DrScheme
(module drscheme-init mzscheme
(print-struct #t)
(require (lib "pretty.ss"))
(provide (all-from (lib "pretty.ss")))
(require (lib "trace.ss"))
(provide (all-from (lib "trace.ss")))
(provide make-parameter)
(provide
run-experiment
run-tests... |
ab5bd2b8cc3a8c6c1830de8be19317007c97678fb7151b934cfee75b981c6709 | LaurentMazare/tensorflow-ocaml | checkpointing.ml | (* TODO: add the possibility to only keep a fixed number of checkpoints. *)
open Base
let latest_index_and_filename ~checkpoint_base =
let dirname = Caml.Filename.dirname checkpoint_base in
let basename = Caml.Filename.basename checkpoint_base in
Caml.Sys.readdir dirname
|> Array.to_list
|> List.filter_map ~... | null | https://raw.githubusercontent.com/LaurentMazare/tensorflow-ocaml/52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39/src/graph/checkpointing.ml | ocaml | TODO: add the possibility to only keep a fixed number of checkpoints.
From this point, no op should be added to the graph anymore as we may call
[Session.run]. | open Base
let latest_index_and_filename ~checkpoint_base =
let dirname = Caml.Filename.dirname checkpoint_base in
let basename = Caml.Filename.basename checkpoint_base in
Caml.Sys.readdir dirname
|> Array.to_list
|> List.filter_map ~f:(fun filename ->
match String.chop_prefix filename ~prefix:(basen... |
c68c6deead9485c56fd28c538d4f4266b0fb6614dbc64e081d26ad5d20572198 | cryptosense/pkcs11 | pkcs11_CK_HW_FEATURE_TYPE.ml | type t = P11_ulong.t
let typ = Ctypes.ulong
| null | https://raw.githubusercontent.com/cryptosense/pkcs11/93c39c7a31c87f68f0beabf75ef90d85a782a983/driver/pkcs11_CK_HW_FEATURE_TYPE.ml | ocaml | type t = P11_ulong.t
let typ = Ctypes.ulong
| |
fa9ddedac9ff870a8df6f2e084c7942046954408692c3e96626984c3c080c3bb | ocaml-flambda/flambda-backend | linearize.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/bed9613a24b4bc5ed377ca20c3b685195c993e21/backend/linearize.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Linear
let cons_instr d n =
{ desc = d; next = n; arg = [||]; res = [||];
dbg = Debuginfo.no... |
3cdc4d0f6e516a77faf53eede156ce1bd13d4b5814d70268b16b5fb7bc43361d | RichiH/git-annex | Ssh.hs | git - annex assistant ssh utilities
-
- Copyright 2012 - 2013 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2012-2013 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Assistant.Ssh where
import Annex.Common
import Utility.Tmp
import Utility.S... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Assistant/Ssh.hs | haskell | server has git-annex-shell installed
server has git installed
server supports raw rsync access (not only via git-annex-shell)
repo on server is set up already, and ready to accept pushes
ssh -ofoo=bar command-line option
user@host or host
Reverses genSshUrl
dummy values, cannot determine from url
The output... | git - annex assistant ssh utilities
-
- Copyright 2012 - 2013 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2012-2013 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Assistant.Ssh where
import Annex.Common
import Utility.Tmp
import Utility.S... |
8001b8260348d04751b9fe80de6d1600d7abc253c44493c3135ce84b45eb940d | jyh/metaprl | mfir_tr_atom_base.ml | doc <:doc<
@module[Mfir_tr_atom_base]
The @tt[Mfir_tr_atom_base] module defines the argument types
and result types of the FIR operators.
@docoff
------------------------------------------------------------------------
@begin[license]
This file is part of MetaPRL, a modular, higher order
logi... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/fir/mfir_tr_atom_base.ml | ocaml | *************************************************************************
* Declarations.
*************************************************************************
*************************************************************************
* Display forms.
*************************************************************... | doc <:doc<
@module[Mfir_tr_atom_base]
The @tt[Mfir_tr_atom_base] module defines the argument types
and result types of the FIR operators.
@docoff
------------------------------------------------------------------------
@begin[license]
This file is part of MetaPRL, a modular, higher order
logi... |
12210a712d030a6e431feefb2bbae5b3fbdf228ca2cc478c2d7afd03cfa6b674 | brawnski/git-annex | Upgrade.hs | git - annex command
-
- Copyright 2011 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2011 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Command.Upgrade where
import Command
import Upgrade
import Version
import Messages
command :: [Command... | null | https://raw.githubusercontent.com/brawnski/git-annex/8b847517a810d384a79178124b9766141b89bc17/Command/Upgrade.hs | haskell | git - annex command
-
- Copyright 2011 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2011 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Command.Upgrade where
import Command
import Upgrade
import Version
import Messages
command :: [Command... | |
753989c2e166e580a6aa5efae17f54b7aae0fab18c7bb82cfbded6b1760f9541 | KavehYousefi/Esoteric-programming-languages | main.lisp | Date : 2022 - 01 - 14
;;
;; Sources:
;; -> ""
- > " "
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; -- Declaration of types. -- ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(deftype destination ()
"The ``... | null | https://raw.githubusercontent.com/KavehYousefi/Esoteric-programming-languages/ca9e1f171af964721e09f2c8959cc92e84d83c5a/JR/JR_001/main.lisp | lisp |
Sources:
-> ""
-- Declaration of types. -- ;;
-------------------------------------------------------
-------------------------------------------------------
-------------------------------------------------------
-- Definition of interface "Console". ... | Date : 2022 - 01 - 14
- > " "
(deftype destination ()
"The ``destination'' type defines a data sink for output operations,
compatible, for instance, with ``format'' and ``write''."
'(or null (eql T) stream string))
(deftype deadfish-instruction-set ()
"The ``deadfish-instruction-set'' type defines... |
dca68e55c0d7c87e9891321f18f60372335f141b8eea77fb58dfed52d543b349 | ocaml-flambda/ocaml-jst | pr10661_ok.ml | (* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
*** check-ocamlc.byte-output
*)
module M = struct
class row = object
end
end
| null | https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/testsuite/tests/typing-modules-bugs/pr10661_ok.ml | ocaml | TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
*** check-ocamlc.byte-output
|
module M = struct
class row = object
end
end
|
c89a9f23512582a53148c169df13ffbcd07254559ba0da1346cfd85be4ca5360 | dmitryvk/sbcl-win32-threads | sysmacs.lisp | ;;;; miscellaneous system hacking macros
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
;;;; public domain. The software is in the public domain ... | null | https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/sysmacs.lisp | lisp | miscellaneous system hacking macros
more information.
public domain. The software is in the public domain and is
provided with absolutely no warranty. See the COPYING and CREDITS
files for more information.
these are initialized in cold init
When the dynamic usage increases beyond this amount, the system
notes... |
This software is part of the SBCL system . See the README file for
This software is derived from the CMU CL system , which was
written at Carnegie Mellon University and released into the
(in-package "SB!IMPL")
(defvar *in-without-gcing*)
(defvar *gc-inhibit*)
(defvar *gc-pending*)
#!+sb-thread
(defvar *stop... |
18460c628327ac2af025ec191289fb4b5f5f2d72b2b5aef6ff4009a94d9d0293 | nasa/Common-Metadata-Repository | service.clj | (ns cmr.umm-spec.test.migration.version.service
(:require
[cheshire.core :refer [decode]]
[clojure.java.io :as io]
[clojure.test :refer :all]
[clojure.test.check.generators :as gen]
[cmr.common.mime-types :as mt]
[cmr.common.test.test-check-ext :as ext :refer [defspec]]
[cmr.common.util :refer [a... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/1606a1949aad31833d37718d25dce3190be8a9fe/umm-spec-lib/test/cmr/umm_spec/test/migration/version/service.clj | clojure | ---- 1.3.1 tests ----
---- a 1.3.3 test ----
(slurp (io/file (io/resource "example-data/umm-json/service/v1.2/S10000000-TEST_ORNL_WCS_v1.2.json")))) | (ns cmr.umm-spec.test.migration.version.service
(:require
[cheshire.core :refer [decode]]
[clojure.java.io :as io]
[clojure.test :refer :all]
[clojure.test.check.generators :as gen]
[cmr.common.mime-types :as mt]
[cmr.common.test.test-check-ext :as ext :refer [defspec]]
[cmr.common.util :refer [a... |
7e3c742256657c8abbfb2f1fb778dfbc967cd58daa4896d4db149fad2c6eb0c2 | lasp-lang/partisan | partisan_support_otp.erl | -module(partisan_support_otp).
-compile([nowarn_export_all, export_all]).
start_node(Name) ->
start_node(Name, []).
start_node(Name, Config) ->
Prefix = string:join([atom_to_list(Name), "server"], "_"),
Result = partisan_support:start(Prefix, Config, [
{peer_service_manager, partisan_pluggable... | null | https://raw.githubusercontent.com/lasp-lang/partisan/73913c954f63b673ffc84dc1e3d02b6c00a415d8/test/partisan_support_otp.erl | erlang | -module(partisan_support_otp).
-compile([nowarn_export_all, export_all]).
start_node(Name) ->
start_node(Name, []).
start_node(Name, Config) ->
Prefix = string:join([atom_to_list(Name), "server"], "_"),
Result = partisan_support:start(Prefix, Config, [
{peer_service_manager, partisan_pluggable... | |
d7008bfb8b8d5d50c0811fe755c009bafd5c1e565e708b6d88624cec047fa413 | ejgallego/HOARe2 | exp.ml | Copyright ( c ) 2014 , The Trustees of the University of Pennsylvania
Copyright ( c ) 2014 , The IMDEA Software Institute
All rights reserved .
LICENSE : 3 - clause BSD style .
See the LICENSE file for details on licensing .
Copyright (c) 2014, The IMDEA Software Institute
All rights rese... | null | https://raw.githubusercontent.com/ejgallego/HOARe2/48d8760696fdf4b8a3eda5a4d2a53eeba53072d8/src/exp.ml | ocaml | Miscellanous random bits for dealing with expressions, most of it will
eventually be moved elsewhere
This module captures the state of an expression
Logical conectives
Required for the monad
Name of the file
Whether we will trust VC, in which case they are relegated to a
why3 file
Builtins
Expr... | Copyright ( c ) 2014 , The Trustees of the University of Pennsylvania
Copyright ( c ) 2014 , The IMDEA Software Institute
All rights reserved .
LICENSE : 3 - clause BSD style .
See the LICENSE file for details on licensing .
Copyright (c) 2014, The IMDEA Software Institute
All rights rese... |
b90d866d0a7a30f52f04fb1928d74c76419b47f1c83c15630bd7136abadcfc48 | fractalide/fractalide | model.rkt | #lang racket
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/def)
(require/edge ${cardano-wallet.wcreate})
(define-agent
#:input '("data" "trigger")
#:output '("out")
(define msg (recv (input "data")))
(recv (input "trigger"))
(send (output "out") msg)
)
| null | https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/cardano-wallet/wcreate/wallet-recovery/model.rkt | racket | #lang racket
(require fractalide/modules/rkt/rkt-fbp/agent
fractalide/modules/rkt/rkt-fbp/def)
(require/edge ${cardano-wallet.wcreate})
(define-agent
#:input '("data" "trigger")
#:output '("out")
(define msg (recv (input "data")))
(recv (input "trigger"))
(send (output "out") msg)
)
| |
d6a91ad856d293ea98dcc19efdb92624440bd99aa15a694a9424d85f67d18ce6 | Dasudian/DSDIN | dsdcuckoo.erl |
-module(dsdcuckoo).
%% API
-export([bin_dir/0,
bin/1,
lib_dir/0]).
%% Returns the path of the directory where the miner and verifier
%% executables are.
-spec bin_dir() -> file:filename_all().
bin_dir() ->
filename:join([priv_dir(), "bin"]).
%% Returns the path of the file of the specified exe... | null | https://raw.githubusercontent.com/Dasudian/DSDIN/b27a437d8deecae68613604fffcbb9804a6f1729/apps/dsdcuckoo/src/dsdcuckoo.erl | erlang | API
Returns the path of the directory where the miner and verifier
executables are.
Returns the path of the file of the specified executable.
Returns the directory where the shared-objects files needed by
miner and verifier executables are. |
-module(dsdcuckoo).
-export([bin_dir/0,
bin/1,
lib_dir/0]).
-spec bin_dir() -> file:filename_all().
bin_dir() ->
filename:join([priv_dir(), "bin"]).
-spec bin(nonempty_string()) -> file:filename_all().
bin(ExecutableBasename) ->
filename:join([bin_dir(), ExecutableBasename]).
-spec lib_di... |
198dc106b97dc5d75ce4021a50b993269dc3eb804d44f6432872fc5a81773f17 | avsm/eeww | thread.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
and ... | null | https://raw.githubusercontent.com/avsm/eeww/23ca8b36127b337512e13c6fb8e86b3a7254d4f9/boot/ocaml/otherlibs/systhreads/thread.mli | ocaml | ************************************************************************
OCaml
... | and , projet Cristal , INRIA Rocquencourt
Copyright 1995 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
* Lightweight threads for [ 1003.1c ] and .
type t
* { 1 Thread creation and termination }
val create : ('a ->... |
46e6e15e79d52cadd9f8b32fb79d8e7a6efcc98365e5ea77ce78d7d87dba2091 | cdornan/keystore | markdown.hs | import Data.KeyStore.Types.Schema
import Data.API.Markdown
import Data.API.Types
main :: IO ()
main =
writeFile "schema.md" $ markdown markdownMethods keystoreSchema
markdownMethods :: MarkdownMethods
markdownMethods =
MDM
{ mdmSummaryPostfix = _TypeName
, mdmLink ... | null | https://raw.githubusercontent.com/cdornan/keystore/e16103e75cf067baa3a939a1d9e79bd7af6942e7/scripts/markdown.hs | haskell | import Data.KeyStore.Types.Schema
import Data.API.Markdown
import Data.API.Types
main :: IO ()
main =
writeFile "schema.md" $ markdown markdownMethods keystoreSchema
markdownMethods :: MarkdownMethods
markdownMethods =
MDM
{ mdmSummaryPostfix = _TypeName
, mdmLink ... | |
6851b01e348957636526b6cedf7cfb6bf8aa84e644f012bc53ba960526011dd5 | mattdw/atompub | project.clj | (defproject atompub "1.0.0"
:description "An implementation of Atom Syndication and the Atom Publishing Protocol."
:url ""
:license "Eclipse Public License 1.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/data.zip "0.1.1"]
[joda-time "1.6"]
[net.c... | null | https://raw.githubusercontent.com/mattdw/atompub/fd8036e74a9a586d7c2e6e9c14992497e8e9b416/project.clj | clojure | (defproject atompub "1.0.0"
:description "An implementation of Atom Syndication and the Atom Publishing Protocol."
:url ""
:license "Eclipse Public License 1.0"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/data.zip "0.1.1"]
[joda-time "1.6"]
[net.c... | |
a851a58c4f52673394ccfdb34d833073564044103defec16793d92afbc401ada | fukamachi/clozure-cl | cocoa-utils.lisp | ; -*- Mode: Lisp; Package: GUI -*-
(in-package "GUI")
(defmethod list-from-ns-array (thing) (error "~S is not an instance of NS:NS-ARRAY" thing))
(defmethod list-from-ns-array ((nsa ns:ns-array))
(let ((result (list))
(c (#/count nsa)))
(dotimes (i c) (setf result (push (#/objectAtIndex: nsa i) result))... | null | https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/cocoa-ide/cocoa-utils.lisp | lisp | -*- Mode: Lisp; Package: GUI -*-
return key
Looks like a "util" to me ...
Put these in separate ignore-errors, so at least some of it can get thru
because we use a user-defined event to signal the event loop to
invoke a lisp function, and the only way I know of to respond to a
user-defined event is to override... |
(in-package "GUI")
(defmethod list-from-ns-array (thing) (error "~S is not an instance of NS:NS-ARRAY" thing))
(defmethod list-from-ns-array ((nsa ns:ns-array))
(let ((result (list))
(c (#/count nsa)))
(dotimes (i c) (setf result (push (#/objectAtIndex: nsa i) result)))
(reverse result)))
(defclass... |
978c3041e4ed1f324c7e39cda7065e5be6fcc2d19b370c49121fedcfc4713f50 | ocaml-multicore/ocaml-tsan | odoc_value.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/f54002470cc6ab780963cc81b11a85a820a40819/ocamldoc/odoc_value.mli | ocaml | ************************************************************************
OCaml
... | , projet Cambium , INRIA Paris
Copyright 2022 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
module Name = Odoc_name
type t_value = {
val_name : Name.t;
mutable val_info : Odoc_types.info option;
... |
04c6c3e4f6ed7cf3e9c3150c5bdb6b6bab96bf1b7aea74a70fb98b44ef1b1425 | eugeneia/athens | id.lisp | Erlangen universal agent identifiers .
(in-package :erlangen.distribution.id)
(defun valid-name-p (string)
"Predicate to test if STRING is a valid name (e.g. not empty and does
not contain #\/)."
(not (or (= (length string) 0) (find #\/ string))))
(deftype name ()
"Type for host, node and agent names."
'(a... | null | https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/lib/erlangen/distribution/id.lisp | lisp | of type AGENT will be encoded as their respective agent id and decoded
as plain strings. | Erlangen universal agent identifiers .
(in-package :erlangen.distribution.id)
(defun valid-name-p (string)
"Predicate to test if STRING is a valid name (e.g. not empty and does
not contain #\/)."
(not (or (= (length string) 0) (find #\/ string))))
(deftype name ()
"Type for host, node and agent names."
'(a... |
26b64fa15b79b9ccbc5ecf271400b506dfd47b29525c6e0b2762b66fafc4f13e | facebook/flow | existsCheck.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/b6de2c8bbe21682cad96c788a192075d66bbef25/src/typing/existsCheck.ml | ocaml |
* 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... | |
8bf06dc3714a5cb76abff531373810332b8def5c64b5a4d8f9d0f9eaf1ada90b | seckcoder/iu_c311 | infer-parser1.rkt | #lang racket
(require eopl/datatype
"../base/utils.rkt"
"../cps/builtin.rkt")
(provide (all-defined-out))
(define-datatype
expression expression?
(const-exp
(cst const?))
(var-exp
(var symbol?))
(quote-exp
(sexp sexp?))
(op-exp
(op op?)
(rands (list-of expression?)))
... | null | https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/racket/types/infer-parser1.rkt | racket | symbol
builtin ops
if
lambda
procedure call | #lang racket
(require eopl/datatype
"../base/utils.rkt"
"../cps/builtin.rkt")
(provide (all-defined-out))
(define-datatype
expression expression?
(const-exp
(cst const?))
(var-exp
(var symbol?))
(quote-exp
(sexp sexp?))
(op-exp
(op op?)
(rands (list-of expression?)))
... |
017f29c49d79c231caf607ce3407d84766c977f816c8086d741d93fccfb1086a | PrincetonUniversity/lucid | TyperModules.ml | open Syntax
open SyntaxUtils
open Collections
open Batteries
open TyperUtil
Goes through each decl and substitutes each bound TName for whatever it 's
bound to . If it runs into a type declaration in an interface , it adds it to
the environment before continuing . If it runs into an abstract type declarati... | null | https://raw.githubusercontent.com/PrincetonUniversity/lucid/b6e8130edb2e1f4a082e48e020b37576b1126600/src/lib/frontend/typing/TyperModules.ml | ocaml | Don't replace in rty
Go through a module and consistently replace each abstract type which is
defined in the body. For use in checking equivalence/interface validity
We'll return false later
Not an abstract type, don't need to replace
print_endline @@ "replaced_m1: " ^ modul_to_string m1;
print_endline @@... | open Syntax
open SyntaxUtils
open Collections
open Batteries
open TyperUtil
Goes through each decl and substitutes each bound TName for whatever it 's
bound to . If it runs into a type declaration in an interface , it adds it to
the environment before continuing . If it runs into an abstract type declarati... |
8eb5be8dbb076be6c9fe7a3bdb22d849be9bf934ecd391df30c7688a37b3db20 | GaloisInc/what4 | StringSeq.hs | |
Module : . StringSeq
Description : Datastructure for sequences of appended strings
Copyright : ( c ) Galois Inc , 2019 - 2020
License : :
A simple datatype for collecting sequences of strings
that are to be concatenated together .
We intend to maintain several invariants . First ,... | null | https://raw.githubusercontent.com/GaloisInc/what4/f4912ea9efa8a2ef54c8010383695372af4492b6/what4/src/What4/Expr/StringSeq.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes #
| Annotation value for string sequences. | |
Module : . StringSeq
Description : Datastructure for sequences of appended strings
Copyright : ( c ) Galois Inc , 2019 - 2020
License : :
A simple datatype for collecting sequences of strings
that are to be concatenated together .
We intend to maintain several invariants . First ,... |
0b7cbd63f6c30384d0327dbe5b4fc902c0cae4da763e8fd6a1461c149830b9d3 | comptekki/esysman | redirect_handler.erl | Copyright ( c ) 2012 , < >
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
%% modification, are permitted provided that the following conditions are met:
%%
%% * Redistributions of source code must retain the above copyright
%% notice, this list of condi... | null | https://raw.githubusercontent.com/comptekki/esysman/f13b48c8aef261e230b374cc8272e409fc7d4e10/src/redirect_handler.erl | erlang | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Red... | Copyright ( c ) 2012 , < >
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS "
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR
LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY... |
c17425c232dc95de9194bee43b047ee39deb2940bc82608ee15c7296aaece553 | thoughtstem/game-engine | on-key.rkt | #lang racket
(require "../game-entities.rkt")
(provide (except-out (struct-out on-key) on-key)
(rename-out (make-on-key on-key)
(on-key struct-on-key)
(on-key-rule struct-on-key-rule)
(on-key-f struct-on-key-f)
))
(... | null | https://raw.githubusercontent.com/thoughtstem/game-engine/98c4b9e9b8c071818e564ef7efb55465cff487a8/components/on-key.rkt | racket | #lang racket
(require "../game-entities.rkt")
(provide (except-out (struct-out on-key) on-key)
(rename-out (make-on-key on-key)
(on-key struct-on-key)
(on-key-rule struct-on-key-rule)
(on-key-f struct-on-key-f)
))
(... | |
c747851058ab1ea126e23e34fd603f4eca41eaa6d30a1dc6452f42d3c3225f43 | dada-lang/dada-model | traverse.rkt | #lang racket
(require redex
"../grammar.rkt"
"../util.rkt"
"lang.rkt"
"stack.rkt"
"heap.rkt"
"lease.rkt"
"test-store.rkt")
(provide traversal
traversal-e
swap-traversal
logical-write-traversal
read-traversal
ow... | null | https://raw.githubusercontent.com/dada-lang/dada-model/a9796940861e4802beb5822840475b91ce7af699/racket/opsem/traverse.rkt | racket | A **traversal** encodes the path that we walked when evaluating a place.
Creating a traversal is a side-effect free operation. It is used to derive
the actions that result from reading/writing a place.
Example (assume all edges are `my` for simplicity):
│ a ───┼──►│[Point]│
│ b ───┼─┐ │ ... | #lang racket
(require redex
"../grammar.rkt"
"../util.rkt"
"lang.rkt"
"stack.rkt"
"heap.rkt"
"lease.rkt"
"test-store.rkt")
(provide traversal
traversal-e
swap-traversal
logical-write-traversal
read-traversal
ow... |
f6f5d8e57b638076431c4c1e12b444a76e013e5e6788d224c16baa13f337f6da | baskeboler/cljs-karaoke-client | seek_buttons.cljs | (ns cljs-karaoke.views.seek-buttons
(:require [reagent.core :as reagent :refer [atom]]
[re-frame.core :as rf]
[stylefy.core :as stylefy]
[cljs-karaoke.subs :as s]
[cljs-karaoke.events.views :as view-events]))
(declare right-seek-hotspot)
(defn right-seek-hotspot []
... | null | https://raw.githubusercontent.com/baskeboler/cljs-karaoke-client/bb6512435eaa436d35034886be99213625847ee0/src/main/cljs_karaoke/views/seek_buttons.cljs | clojure | (ns cljs-karaoke.views.seek-buttons
(:require [reagent.core :as reagent :refer [atom]]
[re-frame.core :as rf]
[stylefy.core :as stylefy]
[cljs-karaoke.subs :as s]
[cljs-karaoke.events.views :as view-events]))
(declare right-seek-hotspot)
(defn right-seek-hotspot []
... | |
a6fc41633f5e3270e4f8b0e4ddd92e929010c8e384c0365d5a15b2bc6ebf35b0 | Plutonomicon/Shrinker | Spec.hs | module Main (main) where
import Test.Tasty (defaultMain, localOption, testGroup)
import Test.Tasty.Hedgehog (HedgehogTestLimit (HedgehogTestLimit))
import UnitTests (makeUnitTests)
main :: IO ()
main = do
unitTests <- makeUnitTests
defaultMain $
testGroup
"shrinker tests"
[ localOption (HedgehogT... | null | https://raw.githubusercontent.com/Plutonomicon/Shrinker/3347923943ec87707cdc53c268ba7fe20577c79b/unit-testing/spec/Spec.hs | haskell | module Main (main) where
import Test.Tasty (defaultMain, localOption, testGroup)
import Test.Tasty.Hedgehog (HedgehogTestLimit (HedgehogTestLimit))
import UnitTests (makeUnitTests)
main :: IO ()
main = do
unitTests <- makeUnitTests
defaultMain $
testGroup
"shrinker tests"
[ localOption (HedgehogT... | |
990bc80e7875b9a02ec71bde2d32d156162403ec1bcbf13383f71a1960d92634 | Kappa-Dev/KappaTools | color.mli | type color = Red | Grey | Lightblue | Black
val triple_of_color: color -> int * int * int
| null | https://raw.githubusercontent.com/Kappa-Dev/KappaTools/5e756eb3529db9976cf0a0884a22676925985978/core/dataStructures/color.mli | ocaml | type color = Red | Grey | Lightblue | Black
val triple_of_color: color -> int * int * int
| |
0a15b05a0a4549157385210c8adfd6ea5de674da3a8993e12a201e2a15796bf5 | camdez/honeybadger | core.clj | (ns honeybadger.core
(:require [aleph.http :as http]
[byte-streams :as bs]
[clj-stacktrace.core :as st]
[clj-stacktrace.repl :as st-repl]
[clojure.data.json :as json]
[clojure.java.io :as io]
[clojure.string :as str]
[clojure.walk :re... | null | https://raw.githubusercontent.com/camdez/honeybadger/2b126f53d4f5fa4f2c38d9d4fe1ae718fe43c483/src/honeybadger/core.clj | clojure |
displays differently if nil
Public | (ns honeybadger.core
(:require [aleph.http :as http]
[byte-streams :as bs]
[clj-stacktrace.core :as st]
[clj-stacktrace.repl :as st-repl]
[clojure.data.json :as json]
[clojure.java.io :as io]
[clojure.string :as str]
[clojure.walk :re... |
0260f7428147f2a806df84260ff10f45091df59cfea93fbef27e054b87d9f025 | fetburner/compelib | topologicalSort.mli | (* 無向グラフ *)
module type UnweightedDirectedGraph = sig
module Vertex : sig
type t
type set
(* グラフに含まれる頂点の集合 *)
val universe : set
(* 頂点に含まれる集合の畳み込み *)
val fold_universe : (t -> 'a -> 'a) -> 'a -> 'a
(* 隣接する頂点の畳み込み *)
val fold_adjacencies : t -> (t -> 'a -> 'a) -> 'a -> 'a
end
end
リ... | null | https://raw.githubusercontent.com/fetburner/compelib/d8fc5d9acd04e676c4d4d2ca9c6a7140f1b85670/lib/graph/topologicalSort.mli | ocaml | 無向グラフ
グラフに含まれる頂点の集合
頂点に含まれる集合の畳み込み
隣接する頂点の畳み込み
頂点を添字,真偽値を要素とした配列の実装
A.make は false で初期化された配列を返さなくてはならない
頂点のリスト
トポロジカルソート
有向グラフ | module type UnweightedDirectedGraph = sig
module Vertex : sig
type t
type set
val universe : set
val fold_universe : (t -> 'a -> 'a) -> 'a -> 'a
val fold_adjacencies : t -> (t -> 'a -> 'a) -> 'a -> 'a
end
end
リスト
module type List = sig
type t
type elt
val nil : t
val cons : elt -> t -... |
becfbdd9241bb1d2580913f872dd5ffd322df64aa087a8d82cbf068e6edfa5c0 | kevsmith/giza | giza_datetime.erl | Copyright ( c ) 2009 Electronic Arts , Inc.
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the "Software"), to deal
in the Software without restriction , including without limitation the rights
%% to use, copy, modify, merge, ... | null | https://raw.githubusercontent.com/kevsmith/giza/576eada45ccff8d7fb688b8abe3a33c25d34028d/src/giza_datetime.erl | erlang | Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnished to do so, subject to the following conditions:
The above copyright notice a... | Copyright ( c ) 2009 Electronic Arts , Inc.
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KI... |
6e8e8f93d8a50e096cc9df4e2aec46ed66f22234e191155cb0b1cce326b8c3df | aeternity/aesophia | aeso_compiler_tests.erl | %%% -*- erlang-indent-level:4; indent-tabs-mode: nil -*-
%%%-------------------------------------------------------------------
( C ) 2018 , Aeternity Anstalt
%%% @doc Test Sophia language compiler.
%%%
%%% @end
%%%-------------------------------------------------------------------
-module(aeso_compiler_tests).
-c... | null | https://raw.githubusercontent.com/aeternity/aesophia/c078119bc46045088076d4397506aa92e720b674/test/aeso_compiler_tests.erl | erlang | -*- erlang-indent-level:4; indent-tabs-mode: nil -*-
-------------------------------------------------------------------
@doc Test Sophia language compiler.
@end
-------------------------------------------------------------------
Very simply test compile the given contracts. Only basic checks
are made on the ou... | ( C ) 2018 , Aeternity Anstalt
-module(aeso_compiler_tests).
-compile([export_all, nowarn_export_all]).
-include_lib("eunit/include/eunit.hrl").
run_test(Test) ->
TestFun = list_to_atom(lists:concat([Test, "_test_"])),
[ begin
io:format("~s\n", [Label]),
Fun()
end || {Label, Fun... |
0ce594b1c2431715ec3cb15f49977c6eda01e7d777861dbc1883bacebe85e2ec | redclawtech/vmq_cloudwatch_metrics | vmq_cloudwatch_metrics_app.erl | Copyright 2018 Dairon ( )
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, software
distributed ... | null | https://raw.githubusercontent.com/redclawtech/vmq_cloudwatch_metrics/8392c3c16358b591fe0fc92fc16ac44143565d00/src/vmq_cloudwatch_metrics_app.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2018 Dairon ( )
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(vmq_cloudwatch_metrics_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
vmq_cloudwatch... |
5df7edda09daedb1b82d192cb3717eeed4fb2e6c453760487ab21c5742c52359 | PeterDWhite/Osker | CoreData.hs | Copyright ( c ) , 2002 , 2003
Copyright ( c ) OHSU , 2002 , 2003
module CoreData
( FSData (..) -- The state maintained by the file system core
, initFSData -- Initializer for the file system core state
) where
----------------------------------------------------------------------
-- The file system... | null | https://raw.githubusercontent.com/PeterDWhite/Osker/301e1185f7c08c62c2929171cc0469a159ea802f/Kernel/FileSystem/CoreData.hs | haskell | The state maintained by the file system core
Initializer for the file system core state
--------------------------------------------------------------------
The file system core device driver data structures
--------------------------------------------------------------------
The data maintained by the file system ... | Copyright ( c ) , 2002 , 2003
Copyright ( c ) OHSU , 2002 , 2003
module CoreData
) where
Osker imports
import qualified DirectoryCache as DC
data FSData = FSData { fileSystem :: String
, directoryCache :: DC.DirectoryCache
}
initFSData :: String -> FSData
i... |
d97d9979d5258286b0daeea9909bb296a403f2ac6d49d27cac3a6326986ad8fb | TorXakis/TorXakis | SMTInternal.hs |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and Radboud University
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and Radboud University
See LICENSE at root directory of this repository.
-}
-- -----------------------------------... | null | https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/solve/src/SMTInternal.hs | haskell | ----------------------------------------------------------------------------------------- --
# LANGUAGE OverloadedStrings #
------------------------------------------------------------
Some of these functions are used for test purposes
--------------------------------------------------------------------------------... |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and Radboud University
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and Radboud University
See LICENSE at root directory of this repository.
-}
module SMTInternal
SMT Internal sh... |
391d628358e0e4dde18a51c442d2deb402923289f9222546d54cf20878b002e3 | mzp/coq-for-ipad | odoc_dot.ml | (***********************************************************************)
(* Ocamldoc *)
(* *)
, projet Cristal , INRIA Rocquencourt
(* ... | null | https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/ocamldoc/odoc_dot.ml | ocaml | *********************************************************************
Ocamldoc
... | , projet Cristal , INRIA Rocquencourt
Copyright 2001 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 .
$ I d : odoc_dot.ml 7619 2006 - 09 - 20 ... |
d3e5b6ca7ff4c48c499f9e44a25640a03517a219ec75a8a020d702567e3bc63e | oliyh/re-partee | macros.cljc | (ns re-partee.fake.macros
#?(:clj (:require [clojure.edn :as edn]
[clojure.java.io :as io])))
#?(:clj (defmacro defdata [sym resource-name]
(let [data (edn/read-string (slurp (io/resource resource-name)))]
`(def ~sym ~data))))
| null | https://raw.githubusercontent.com/oliyh/re-partee/8ab2b4301c518ee9448157f4249e33ad09ff2fc7/src/re_partee/fake/macros.cljc | clojure | (ns re-partee.fake.macros
#?(:clj (:require [clojure.edn :as edn]
[clojure.java.io :as io])))
#?(:clj (defmacro defdata [sym resource-name]
(let [data (edn/read-string (slurp (io/resource resource-name)))]
`(def ~sym ~data))))
| |
83c6afec668425d35c52b947b82c7e0619084bd272e306d09f50b716424a020a | ku-fpg/haskino | IntExample.hs | -------------------------------------------------------------------------------
-- |
-- Module : System.Hardware.Haskino.SamplePrograms.Deep.intExample
Copyright : ( c ) University of Kansas
-- License : BSD3
-- Stability : experimental
--
This is an example of using semaphores to communicate bet... | null | https://raw.githubusercontent.com/ku-fpg/haskino/9a0709c92c2da9b9371e292b00fd076e5539eb18/legacy/Deep/IntExample.hs | haskell | -----------------------------------------------------------------------------
|
Module : System.Hardware.Haskino.SamplePrograms.Deep.intExample
License : BSD3
Stability : experimental
-----------------------------------------------------------------------------
Create the tasks
Query to confirm tas... | Copyright : ( c ) University of Kansas
This is an example of using semaphores to communicate between two tasks .
One task gives a semaphore then delays for 2 seconds . The other task
waits for the semaphore then blinks the led rapidly 3 times .
module System.Hardware.Haskino.SamplePrograms.Deep.IntExamp... |
b5404fc7f9bc635bae7600dc693dd9d85d3717bd99e89fc9c05fef2c1f04b992 | zefhemel/adia | application.clj | (ns application
(:require wiki.index)
(:use adia.servlet))
(start-server 8080)
| null | https://raw.githubusercontent.com/zefhemel/adia/12d1f47ab7e891f417fa87ce6016269fee6e5dd2/examples/wiki/application.clj | clojure | (ns application
(:require wiki.index)
(:use adia.servlet))
(start-server 8080)
| |
be701266220ec8b54758f47ad0b85f886f7bf2d56f6fd56bb81c59539bcf6a66 | clojure-interop/java-jdk | NavigationFilter$FilterBypass.clj | (ns javax.swing.text.NavigationFilter$FilterBypass
"Used as a way to circumvent calling back into the caret to
position the cursor. Caret implementations that wish to support
a NavigationFilter must provide an implementation that will
not callback into the NavigationFilter."
(:refer-clojure :only [require com... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/text/NavigationFilter%24FilterBypass.clj | clojure | (ns javax.swing.text.NavigationFilter$FilterBypass
"Used as a way to circumvent calling back into the caret to
position the cursor. Caret implementations that wish to support
a NavigationFilter must provide an implementation that will
not callback into the NavigationFilter."
(:refer-clojure :only [require com... | |
617ba5a6b10084cca3da1b833482ab7da925fbfcbf5428e4147883aa739c3217 | rudymatela/express | instances.hs | Copyright ( c ) 2017 - 2021 .
-- Distributed under the 3-Clause BSD licence (see the file LICENSE).
# LANGUAGE NoMonomorphismRestriction #
import Test
main :: IO ()
main = mainTest tests 5040
tests :: Int -> [Bool]
tests n =
[ True
, eval undefined (eqFor (undefined :: Int) :$ one :$ one) == True
, eval un... | null | https://raw.githubusercontent.com/rudymatela/express/07e5ad577a0fca83d82ab32394e1cd17be7ac41f/test/instances.hs | haskell | Distributed under the 3-Clause BSD licence (see the file LICENSE).
for the time being, compare has been removed from reifyOrd's result
when lookupName does not find a name instance,
depending on the number of list nestings
XXX: caveat
XXX: caveat
compareFor = head . reifyOrd | Copyright ( c ) 2017 - 2021 .
# LANGUAGE NoMonomorphismRestriction #
import Test
main :: IO ()
main = mainTest tests 5040
tests :: Int -> [Bool]
tests n =
[ True
, eval undefined (eqFor (undefined :: Int) :$ one :$ one) == True
, eval undefined (eqFor (undefined :: Int) :$ one :$ two) == False
, eval un... |
054e4c390d617348583634d8947ea7707adf08f54ac3c35b23d507917769722a | FranklinChen/hugs98-plus-Sep2006 | FiniteMap.hs | -- | Simple Finite Maps.
This implementation provides several useful methods that Data .
-- does not.
module Data.Graph.Inductive.Internal.FiniteMap(
-- * Type
FiniteMap(..),
-- * Operations
emptyFM,addToFM,delFromFM,
updFM,
accumFM,
splitFM,
isEmptyFM,sizeFM,lookupFM,elemFM,
ran... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/fgl/Data/Graph/Inductive/Internal/FiniteMap.hs | haskell | | Simple Finite Maps.
does not.
* Type
* Operations
--------------------------------------------------------------------
--------------------------------------------------------------------
pretty printing
other
--------------------------------------------------------------------
MAIN FUNCTIONS
---------------... | This implementation provides several useful methods that Data .
module Data.Graph.Inductive.Internal.FiniteMap(
FiniteMap(..),
emptyFM,addToFM,delFromFM,
updFM,
accumFM,
splitFM,
isEmptyFM,sizeFM,lookupFM,elemFM,
rangeFM,
minFM,maxFM,predFM,succFM,
splitMinFM,
fmToList
) wher... |
343845b9c4b8133532a35232809680b46ce542c53f299ec23433984c13f36cb6 | rufus-lang/rufus | rufus_parse_throw_test.erl | -module(rufus_parse_throw_test).
-include_lib("eunit/include/eunit.hrl").
parse_function_that_throws_an_atom_literal_test() ->
RufusText =
"func Explode() atom {\n"
" throw :kaboom\n"
"}\n",
{ok, Tokens} = rufus_tokenize:string(RufusText),
{ok, Forms} = rufus_parse:parse(Tokens)... | null | https://raw.githubusercontent.com/rufus-lang/rufus/fb3ec8f67c06e8d656c6aa6c4297461559ee168f/rf/test/rufus_parse_throw_test.erl | erlang | Failure mode tests | -module(rufus_parse_throw_test).
-include_lib("eunit/include/eunit.hrl").
parse_function_that_throws_an_atom_literal_test() ->
RufusText =
"func Explode() atom {\n"
" throw :kaboom\n"
"}\n",
{ok, Tokens} = rufus_tokenize:string(RufusText),
{ok, Forms} = rufus_parse:parse(Tokens)... |
9f8a9772b6fc28e64f8a9ddd705107697d1d3b249528f7ac37eb9189d1ffd96c | swaywm/chicken-wlroots | wlr-matrix.scm | Copyright 2019
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to
deal in the Software without restriction , including without limitation the
;; rights to use, copy, modify, merge, publish, distribute, subl... | null | https://raw.githubusercontent.com/swaywm/chicken-wlroots/649f200126102b1247ba638eb797d14b46bafc0b/src/wlr/types/wlr-matrix.scm | scheme |
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
furnished to do so, subject to the following conditions:
The above copyright notice and... | Copyright 2019
deal in the Software without restriction , including without limitation the
sell copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILI... |
7b0230704f386bc1530a49d1a718cbdde73e8cb4639bf0e73267cc057687fb4a | elaforge/karya | DiffPerformance.hs | Copyright 2013
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
| Functions to compare a performance against a previous \"known good\ " one .
-- This is used to detect when code changes cause a performance to change.
module Cmd.DiffPerformance (
... | null | https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Cmd/DiffPerformance.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
This is used to detect when code changes cause a performance to change.
* save and load
* diff
* util
* save and load
| Perform the input score and save the midi msgs to the output file.
This creates the ... | Copyright 2013
| Functions to compare a performance against a previous \"known good\ " one .
module Cmd.DiffPerformance (
load_midi, save_midi, midi_magic
, diff_lilypond
, diff_im
, diff_midi
, show_midi
, diff_lines
) where
import qualified Control.Exception as Exception
import qualifie... |
289d966115f9d03dabb6a3008f89e32259d76f4a4d0e8b6d0088615090b9cd05 | janestreet/universe | example.ml | open Core
(* Examples from ../README.md *)
let _basic_use =
[%sexp { a = "hello" ; b = (Time.now () : Time.t) } ]
let _expressions_with_their_evaluations ~x ~y ~z =
[%sexp ~~(x : int), (y + z : int), "literal"]
let _recomended_use_for_errors ~tmpfile ~dst =
try Unix.rename ~src:tmpfile ~dst
with exn ->
... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/ppx_sexp_value/example/example.ml | ocaml | Examples from ../README.md | open Core
let _basic_use =
[%sexp { a = "hello" ; b = (Time.now () : Time.t) } ]
let _expressions_with_their_evaluations ~x ~y ~z =
[%sexp ~~(x : int), (y + z : int), "literal"]
let _recomended_use_for_errors ~tmpfile ~dst =
try Unix.rename ~src:tmpfile ~dst
with exn ->
raise_s
[%sexp "Error while... |
c3c68190fa0153511216eedda3418113f6e28f62d662dd5a808328ce7322c6f5 | MinaProtocol/mina | snark_util.ml | open Core_kernel
module Make (Impl : Snarky_backendless.Snark_intf.S) = struct
open Impl
open Let_syntax
let pack_int bs =
assert (List.length bs < 62) ;
let rec go pt acc = function
| [] ->
acc
| b :: bs ->
if b then go (2 * pt) (pt + acc) bs else go (2 * pt) acc bs
... | null | https://raw.githubusercontent.com/MinaProtocol/mina/774ee06e0aa9472f9eb8f71f346c13b7e283af4b/src/lib/snark_params/snark_util.ml | ocaml | This can't overflow since the field is huge
Someday: this could definitely be made more efficient | open Core_kernel
module Make (Impl : Snarky_backendless.Snark_intf.S) = struct
open Impl
open Let_syntax
let pack_int bs =
assert (List.length bs < 62) ;
let rec go pt acc = function
| [] ->
acc
| b :: bs ->
if b then go (2 * pt) (pt + acc) bs else go (2 * pt) acc bs
... |
b2ac18682da85c488701038dc2f5862030bcb9d587b3a439391a1a7c800b8a5e | gilith/hol-light | minisat_resolve.ml | open satCommonTools
functions for replaying minisat proof LCF - style .
Called from minisatProve.ml after proof log has
been parsed .
Called from minisatProve.ml after proof log has
been parsed. *)
(* p is a literal *)
let toVar p =
if is_neg p
then rand p
else p;;
let (NOT_NOT_ELIM,NOT_NO... | null | https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/Minisat/minisat_resolve.ml | ocaml | p is a literal
mcth maps clause term t to thm of the form cnf |- t,
where t is a clause of the cnf term
will return clause info at index ci
will return clause info at index ci
will return clause thm at index ci
ground resolve clauses c0 and c1 on v,
where v is the only var that occurs w... | open satCommonTools
functions for replaying minisat proof LCF - style .
Called from minisatProve.ml after proof log has
been parsed .
Called from minisatProve.ml after proof log has
been parsed. *)
let toVar p =
if is_neg p
then rand p
else p;;
let (NOT_NOT_ELIM,NOT_NOT_CONV) =
let t = m... |
f410f761aa6f00d547d664178e1231b35e4251a698a3a7fd62a8a7f75c4f0e81 | lipas-liikuntapaikat/lipas | lists.cljs | (ns lipas.ui.components.lists
(:require
["react-virtualized" :refer [AutoSizer List InfiniteLoader]]
[goog.object :as gobj]
[lipas.ui.mui :as mui]
[reagent.core :as r]))
(defn row-renderer
[{:keys [items label-fn label2-fn on-item-click]} js-opts]
(let [key (gobj/get js-opts "key")
idx (g... | null | https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/779934b723ec1e0cf52d6a7778b0b7e9f5d15c6b/webapp/src/cljs/lipas/ui/components/lists.cljs | clojure | (ns lipas.ui.components.lists
(:require
["react-virtualized" :refer [AutoSizer List InfiniteLoader]]
[goog.object :as gobj]
[lipas.ui.mui :as mui]
[reagent.core :as r]))
(defn row-renderer
[{:keys [items label-fn label2-fn on-item-click]} js-opts]
(let [key (gobj/get js-opts "key")
idx (g... | |
6a615a842cd2e6372a8572a9f40a1c95e44084150259b1f665e1690e4fdf3ee1 | abridgewater/nq-clim | port-discovery.lisp | ;;;
nq - clim / port / port - discovery
;;;
Part of CLIM II 9.2 .
;;;
(cl:defpackage :nq-clim/port/port-discovery
(:use :cl
:nq-clim/port/port
:nq-clim/port/port-protocol)
(:export
"*DEFAULT-SERVER-PATH*"
"FIND-PORT"
"MAP-OVER-PORTS"
;; The following are nq-clim specific implementa... | null | https://raw.githubusercontent.com/abridgewater/nq-clim/11d339fd0ac77b6d624fc5537b170294a191a3de/port/port-discovery.lisp | lisp |
The following are nq-clim specific implementation hooks. | nq - clim / port / port - discovery
Part of CLIM II 9.2 .
(cl:defpackage :nq-clim/port/port-discovery
(:use :cl
:nq-clim/port/port
:nq-clim/port/port-protocol)
(:export
"*DEFAULT-SERVER-PATH*"
"FIND-PORT"
"MAP-OVER-PORTS"
"RESOLVE-SERVER-PATH"
"CREATE-PORT"))
(cl:in-package :nq-... |
31b3b003f9753ccfdd762f29642c3f1709ae211d46633549f2102ecaf329598b | zalora/zerobin | Main.hs | # LANGUAGE QuasiQuotes #
module Main where
import Data.Version (showVersion)
import Paths_zerobin (version) -- from cabal
import System.Environment (getArgs)
import System.Exit (exitFailure)
import System.IO (stderr, hPutStrLn)
import Text.RawString.QQ (r)
import Web.ZeroBin (share, Expiration(..))
import qualified D... | null | https://raw.githubusercontent.com/zalora/zerobin/3c3da3eca80e2343fa196c864d06653784169c03/cli/Main.hs | haskell | from cabal
help Show this message | # LANGUAGE QuasiQuotes #
module Main where
import Data.Version (showVersion)
import System.Environment (getArgs)
import System.Exit (exitFailure)
import System.IO (stderr, hPutStrLn)
import Text.RawString.QQ (r)
import Web.ZeroBin (share, Expiration(..))
import qualified Data.ByteString as BS
import qualified Data.By... |
af06602d624e456dd7a1180d40e15ec76a4fb7dd12668b4aee19fe36ff7e8e2d | cuplv/raz.ocaml | batList.ml |
* BatList - additional and modified functions for lists .
* Copyright ( C ) 2003
* Copyright ( C ) 2003
* Copyright ( C ) 2008 Red Hat Inc.
* Copyright ( C ) 2008 , LIFO , Universite d'Orleans
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms ... | null | https://raw.githubusercontent.com/cuplv/raz.ocaml/b9b42d87d95cb1db34b8b35b3e30b4d4da41dea6/batList.ml | ocaml | $T is_empty
is_empty []
not (is_empty [1])
normalize: the return type of nsplit \
is quotiented by the equivalence []~[[]]
FIXME BAD TESTS: RESULT IS SPECIFIC TO IMPLEMENTATION
use a stateful filter to remove duplicate elements
put h in hash table
and to output list
if already in hashtable then d... |
* BatList - additional and modified functions for lists .
* Copyright ( C ) 2003
* Copyright ( C ) 2003
* Copyright ( C ) 2008 Red Hat Inc.
* Copyright ( C ) 2008 , LIFO , Universite d'Orleans
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms ... |
9f56aa75683ea217c428cfd4fb08d17c4edc66cd3a5ff123c450a5531f25d239 | slipstream/SlipStreamServer | session_test.cljc | (ns com.sixsq.slipstream.ssclj.resources.spec.session-test
(:require
[clojure.test :refer [deftest is]]
[com.sixsq.slipstream.ssclj.resources.session :refer :all]
[com.sixsq.slipstream.ssclj.resources.spec.session :as session]
[com.sixsq.slipstream.ssclj.resources.spec.spec-test-utils :as stu]))
(def... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/test/com/sixsq/slipstream/ssclj/resources/spec/session_test.cljc | clojure | (ns com.sixsq.slipstream.ssclj.resources.spec.session-test
(:require
[clojure.test :refer [deftest is]]
[com.sixsq.slipstream.ssclj.resources.session :refer :all]
[com.sixsq.slipstream.ssclj.resources.spec.session :as session]
[com.sixsq.slipstream.ssclj.resources.spec.spec-test-utils :as stu]))
(def... | |
e921bf20b07a547c0b9dcca508598a5757fd5cebbf21072f44a93a23c8d103d2 | ksseono/the-joy-of-clojure | promises.clj | (ns joy.promises
(:require [joy.mutation :refer (dothreads!)])
(:require [joy.futures :refer (feed-children)]))
(def x (promise))
(def y (promise))
(def z (promise))
(comment
(dothreads! #(deliver z (+ @x @y)))
(dothreads!
#(do (Thread/sleep 2000) (deliver x 52)))
(dothreads!
#(do (Thread/sleep 4000... | null | https://raw.githubusercontent.com/ksseono/the-joy-of-clojure/4fee3fb2750236b85b59ae9d7a83e0929040e4f0/src/clj/ch11/joy/promises.clj | clojure | (ns joy.promises
(:require [joy.mutation :refer (dothreads!)])
(:require [joy.futures :refer (feed-children)]))
(def x (promise))
(def y (promise))
(def z (promise))
(comment
(dothreads! #(deliver z (+ @x @y)))
(dothreads!
#(do (Thread/sleep 2000) (deliver x 52)))
(dothreads!
#(do (Thread/sleep 4000... | |
24fde590b87d80424827ed4400c8496cd81cb0a730c8dff998105d6fa491d12c | jimcrayne/jhc | Demand.hs | module E.Demand(
Demand(..),
DemandSignature(..),
DemandType(..),
SubDemand(..),
analyzeProgram,
absSig,
lazy
) where
import Control.Monad.Reader
import Control.Monad.Writer hiding(Product(..))
import Data.Binary
import Data.List hiding(union,delete)
import Data.Typeable
--import Debug... | null | https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/src/E/Demand.hs | haskell | import Debug.Trace
always diverges
lazy
strict
diverges, might use arguments
Not used
! derive: Binary !
! derive: Binary !
! derive: Binary !
! derive: Binary !
# UNPACK #
! derive: Binary !
lazySig = DemandSignature 0 lazyType
Sp [L .. L] = S
Sp [.. _|_ ..] = _|_
None
sp s = sp' True s where
sp' True [] ... | module E.Demand(
Demand(..),
DemandSignature(..),
DemandType(..),
SubDemand(..),
analyzeProgram,
absSig,
lazy
) where
import Control.Monad.Reader
import Control.Monad.Writer hiding(Product(..))
import Data.Binary
import Data.List hiding(union,delete)
import Data.Typeable
import DataCon... |
5049d52b7ad95d63bd52bca54efab9a52a3e7cb4c9e4facf44e68e5b96dc8950 | tweag/lagoon | ColumnSpec.hs | Copyright 2020 Pfizer Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
-- -2.0
-- Unless required by applicable law or agreed to in writing, software
distributed under th... | null | https://raw.githubusercontent.com/tweag/lagoon/2ef0440db810f4f45dbed160b369daf41d92bfa4/src/interface/src/Lagoon/Interface/ColumnSpec.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 permiss... | Copyright 2020 Pfizer Inc.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
# LANGUAGE GeneralizedNewtypeDeriving #
module Lagoon.Interface.ColumnSpec (
ColumnIx(..)
, ColumnSpec(..)
, Column_(..)
, Column
, C... |
5260c06d1f9a7dff2bdacb3a547966a3aef0856cf0bcfcb019f5d1c13794ee6b | celsobonutti/real_world_ocaml | nested.ml | open Base
module Username : sig
type t
val of_string : string -> t
val to_string : t -> string
val (=) : t -> t -> bool
end = struct
type t = string
let of_string x = x
let to_string x = x
let (=) = String.(=)
end
| null | https://raw.githubusercontent.com/celsobonutti/real_world_ocaml/b829900f33575deb9a358f6defff7c949071be0e/ch4/nested.ml | ocaml | open Base
module Username : sig
type t
val of_string : string -> t
val to_string : t -> string
val (=) : t -> t -> bool
end = struct
type t = string
let of_string x = x
let to_string x = x
let (=) = String.(=)
end
| |
0ccf59004b19aa6419cf57529be6b026f86ed73cae0c5322bf8f22ee727c489b | cgohla/pureshell | Lower.hs | {-# LANGUAGE DataKinds #-}
# LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE KindSignatures #-}
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PolyKinds #
# LANGUAGE TypeApplications #
module L... | null | https://raw.githubusercontent.com/cgohla/pureshell/caa3ea63da2b73765779c6389f205a5155599dd7/pureshell/Language/PureShell/Combinatory/Lower.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE GADTs #
# LANGUAGE ImpredicativeTypes #
# LANGUAGE KindSignatures #
# LANGUAGE OverloadedStrings #
| Presumably the main entry point in this module
NOTE the function names effect might need to be run at the top of
the module, to guarantee function names ar... | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE PolyKinds #
# LANGUAGE TypeApplications #
module Language.PureShell.Combinatory.Lower where
import qualified Language.PureShell.Combinatory.CodeGen as C
import qualified Language.PureShell.Combinatory.Context as C
import qualifie... |
e874407b67bcd355ddb32501f92b5dae86b1981bdae1747d2a4231775cc394b2 | PLSysSec/FaCT | pseudocode.ml | open Util
open Pos
open Err
open Tast
let sprintf = Printf.sprintf
let concat = String.concat
class pseudocode (m : fact_module) =
object (visit)
val mutable _indent : int = -1
val _minfo : module_info =
let Module(_,_,minfo) = m in minfo
method _prindent n =
"\n" ^ (String.make ((_indent ... | null | https://raw.githubusercontent.com/PLSysSec/FaCT/b6820cf764de0a0f70bd54db0399ff7436bca231/src/pseudocode.ml | ocaml | open Util
open Pos
open Err
open Tast
let sprintf = Printf.sprintf
let concat = String.concat
class pseudocode (m : fact_module) =
object (visit)
val mutable _indent : int = -1
val _minfo : module_info =
let Module(_,_,minfo) = m in minfo
method _prindent n =
"\n" ^ (String.make ((_indent ... | |
5312c77ef76b7cffa50cca1b74aa286ddbf66764ccf763e7638cca127ca68513 | minoki/haskell-floating-point | Conversion.hs | # LANGUAGE DataKinds #
# LANGUAGE HexFloatLiterals #
# LANGUAGE NumericUnderscores #
# OPTIONS_GHC -Wno - type - defaults #
module Conversion (benchmark) where
import Data.Bits
import Data.Functor.Product
import Data.Int
import Data.Ratio
import Data.Word
import ... | null | https://raw.githubusercontent.com/minoki/haskell-floating-point/7d7bb31bb2b07c637a5eaeda92fc622566e9b141/rounded-hw/benchmark/Conversion.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE HexFloatLiterals #
# LANGUAGE NumericUnderscores #
# OPTIONS_GHC -Wno - type - defaults #
module Conversion (benchmark) where
import Data.Bits
import Data.Functor.Product
import Data.Int
import Data.Ratio
import Data.Word
import ... | |
d880c95d6787ab63de1c7524478f609ff205224c0c67ce2e49009563116142fb | flipstone/orville | Plan.hs | {-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
module Database.Orville.PostgreSQL.Plan
( Plan
, Planned
, Execute
, Explain
, askParam
-- * Using a Plan after it is constructed
, execute
, explain
-- * Making a Plan to find rows in the database
, findMaybeOne
, findMaybeOneWhere
, findOne
... | null | https://raw.githubusercontent.com/flipstone/orville/832fa1f2a24f35f05653e6d7e659988dbf1a4ae3/orville-postgresql/src/Database/Orville/PostgreSQL/Plan.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes #
* Using a Plan after it is constructed
* Making a Plan to find rows in the database
* Creating a multi-step Plan from other Plan values
|
'Execute' is a tag type used by as the 'scope' variable for
'Plan' values when executing them via the 'execute' function.
|
A 'Pl... | module Database.Orville.PostgreSQL.Plan
( Plan
, Planned
, Execute
, Explain
, askParam
, execute
, explain
, findMaybeOne
, findMaybeOneWhere
, findOne
, findOneShowVia
, findOneWhere
, findOneWhereShowVia
, findAll
, findAllWhere
, bind
, use
, using
, chain
, apply
, plan... |
8244b3c8047b022c73b20debe3fb2482fe70ec2df390a9330812750f4bfd291d | basho-labs/riak_explorer | re_wm.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2015 Basho Technologies , Inc. All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may ob... | null | https://raw.githubusercontent.com/basho-labs/riak_explorer/3d06ca2b14a57ed2850e56efc280d7e5b5f4bbbc/src/re_wm.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2015 Basho Technologies , Inc. All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module... |
eacfb8dec35bffd7fd4115c385bd6eb5bf1c692911da005a5f35345b29b34206 | maxcountryman/flake | test_utils.clj | (ns flake.test_utils
(:require [clojure.test :refer [deftest is]]
[flake.utils :as utils]))
(deftest test-base62-encode
(is (= "1c" (utils/base62-encode 100))))
(deftest test-now-from-epoch
(let [epoch (utils/epoch-mean 10)]
(dotimes [_ 100]
(Thread/sleep 1)
(is (>= 1 (- (System/cur... | null | https://raw.githubusercontent.com/maxcountryman/flake/5aba7aac4dcc7ad08c245f70b21ae0e6639fa373/test/flake/test_utils.clj | clojure | (ns flake.test_utils
(:require [clojure.test :refer [deftest is]]
[flake.utils :as utils]))
(deftest test-base62-encode
(is (= "1c" (utils/base62-encode 100))))
(deftest test-now-from-epoch
(let [epoch (utils/epoch-mean 10)]
(dotimes [_ 100]
(Thread/sleep 1)
(is (>= 1 (- (System/cur... | |
813e382245be9ed93389c9fba35186c8ef9c7d8ea9904c8a85fa2c63e3fbeb35 | comby-tools/comby | pipeline.mli | open Comby_kernel
open Configuration
open Command_input
type output =
| Matches of (Match.t list * int)
| Replacement of (Replacement.t list * string * int)
| Nothing
val process_single_source
: (module Matchers.Matcher.S)
-> ?fast_offset_conversion:bool
-> ?verbose:bool
-> ?timeout:int
-> ?metasynta... | null | https://raw.githubusercontent.com/comby-tools/comby/a36c63fb1e686adaff3e90aed00e88404f8cda78/lib/app/pipeline/pipeline.mli | ocaml | open Comby_kernel
open Configuration
open Command_input
type output =
| Matches of (Match.t list * int)
| Replacement of (Replacement.t list * string * int)
| Nothing
val process_single_source
: (module Matchers.Matcher.S)
-> ?fast_offset_conversion:bool
-> ?verbose:bool
-> ?timeout:int
-> ?metasynta... | |
1a96675faaf9a2d7f3793775648902d931ead41ad843af626c1e41715c301d8e | OCamlPro/ez_search | reStr.ml | Fork of Re . to add ? len option to search_forward
(***********************************************************************)
(* *)
(* Objective Caml *)
(* ... | null | https://raw.githubusercontent.com/OCamlPro/ez_search/509b5b9433ba4d95f9402c215e5e2762fb4d2a7c/src/ez_search/reStr.ml | ocaml | *********************************************************************
Objective Caml
... | Fork of Re . to add ? len option to search_forward
, projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public Lice... |
608d777ba8e9699338f78116632da4eada49a895ddeada77a7a6831ccab90632 | xh4/web-toolkit | frequency.lisp | (in-package :css)
(define-dimension frequency ())
(define-dimension-unit hz (frequency))
(define-dimension-unit khz (frequency))
| null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/css/frequency.lisp | lisp | (in-package :css)
(define-dimension frequency ())
(define-dimension-unit hz (frequency))
(define-dimension-unit khz (frequency))
| |
7412c3b3668df97c2a6308ffe1ffa58bd96a17801149536ddba91714d9f0e9af | manuel-serrano/bigloo | gstelement.scm | ;*=====================================================================*/
;* .../project/bigloo/api/gstreamer/src/Llib/gstelement.scm */
;* ------------------------------------------------------------- */
* Author : * /
* Creation : Sun Dec 30... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api/gstreamer/src/Llib/gstelement.scm | scheme | *=====================================================================*/
* .../project/bigloo/api/gstreamer/src/Llib/gstelement.scm */
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*===========================... | * Author : * /
* Creation : Sun Dec 30 15:46:10 2007 * /
* Last change : Tue Nov 15 16:56:12 2011 ( serrano ) * /
* Copyright : 2007 - 11 * /
* GstElement wrapper ... |
3aa57fccaf960f5df9eab8ef3bf72feb4fad9e0a88208c7ea73fc122d5250840 | albertov/bindings-gdal | OGRInfo.hs | # LANGUAGE RecordWildCards #
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Control.Monad (forM_)
import Data.Conduit
import Data.Monoid ((<>))
import qualified Data.HashMap.Strict as HM
import qualified Data.ByteString.Char8 as BS
import qualified Data.Text as T
import qualified Data.Text.IO as T... | null | https://raw.githubusercontent.com/albertov/bindings-gdal/f91087e06a569fc6dc81b4c22e58b5c9a1dcdc73/exe/OGRInfo.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE RecordWildCards #
module Main (main) where
import Control.Monad (forM_)
import Data.Conduit
import Data.Monoid ((<>))
import qualified Data.HashMap.Strict as HM
import qualified Data.ByteString.Char8 as BS
import qualified Data.Text as T
import qualified Data.Text.IO as T
import System.Environment (getArg... |
37638940c2b61e724181fd6ed36c5ae791508d8b92135fe164c0b9a658768eee | Flexiana/tiny-rbac | test.clj | (ns tiny-rbac.test
(:require [clojure.test :refer :all]
[tiny-rbac.builder :as b]
[tiny-rbac.core :as c]))
(declare thrown-with-msg?)
(deftest add-resource
(is (= #{:comment}
(-> (b/add-resource {} :comment)
(c/resources)))
"can add one resource")
(is (= #{:co... | null | https://raw.githubusercontent.com/Flexiana/tiny-rbac/66310b29406450e7e727818286a767db202d7639/test/tiny_rbac/test.clj | clojure | (ns tiny-rbac.test
(:require [clojure.test :refer :all]
[tiny-rbac.builder :as b]
[tiny-rbac.core :as c]))
(declare thrown-with-msg?)
(deftest add-resource
(is (= #{:comment}
(-> (b/add-resource {} :comment)
(c/resources)))
"can add one resource")
(is (= #{:co... | |
46f3d00b7ab49ce8187d4e82f8aee2006c5f36ff424c5f64ea9561fb1a128b5f | cbaggers/varjo | variables-from-spec.lisp | (in-package :vari.glsl)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defvar *definitions-missing-from-glsl-spec*
'((:lisp-name "GL-IN" :name "gl_in" :type "{gl_PerVertex" :place-p t
:versions (150 330 400 410 420 430 440 450 460)
:stage :geometry)
)))
(defmacro populate-vars ()
... | null | https://raw.githubusercontent.com/cbaggers/varjo/9e77f30220053155d2ef8870ceba157f75e538d4/src/vari.glsl/variables-from-spec.lisp | lisp | (in-package :vari.glsl)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defvar *definitions-missing-from-glsl-spec*
'((:lisp-name "GL-IN" :name "gl_in" :type "{gl_PerVertex" :place-p t
:versions (150 330 400 410 420 430 440 450 460)
:stage :geometry)
)))
(defmacro populate-vars ()
... | |
3394d9c524ad4e18a7f8f69cfed8c5388301f00c3f3076824f8d97a820717381 | karlhof26/gimp-scheme | blackboard-effect_02.scm | * Copyright ( c ) 2007 for www.gimp.org.es
; * All rights reserved.
; *
; * Redistribution and use in source and binary forms, with or without
; * modification, are permitted provided that the following conditions
; * are met:
* 1 . Redistributions of source code must retain the above copyright
; * no... | null | https://raw.githubusercontent.com/karlhof26/gimp-scheme/1199124f12bc4d0b5eb90ea4cffebdca28791581/blackboard-effect_02.scm | scheme | * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* notice, this list of conditions and the following disclaimer.
* notice, this list of conditions and the following disclaimer ... | * Copyright ( c ) 2007 for www.gimp.org.es
* 1 . Redistributions of source code must retain the above copyright
* 2 . Redistributions in binary form must reproduce the above copyright
* 3 . Neither the name of copyright holders nor the names of its
* ` ` AS IS '' AND ANY EXPRESS OR IMPLIED WARRANTIE... |
14b0c4fbef8a94a44cc7143dba96562cdf65a954a0b9d2252e8c062f364e64a4 | digitallyinduced/ihp | Controller.hs | module IHP.IDE.Data.Controller where
import IHP.ControllerPrelude
import IHP.IDE.ToolServer.Types
import IHP.IDE.Data.View.ShowDatabase
import IHP.IDE.Data.View.ShowTableRows
import IHP.IDE.Data.View.ShowQuery
import IHP.IDE.Data.View.NewRow
import IHP.IDE.Data.View.EditRow
import IHP.IDE.Data.View.EditValue
import IH... | null | https://raw.githubusercontent.com/digitallyinduced/ihp/ca4691970a130a1589506c66fe8257ac8670e905/IHP/IDE/Data/Controller.hs | haskell | # OVERLAPS # | module IHP.IDE.Data.Controller where
import IHP.ControllerPrelude
import IHP.IDE.ToolServer.Types
import IHP.IDE.Data.View.ShowDatabase
import IHP.IDE.Data.View.ShowTableRows
import IHP.IDE.Data.View.ShowQuery
import IHP.IDE.Data.View.NewRow
import IHP.IDE.Data.View.EditRow
import IHP.IDE.Data.View.EditValue
import IH... |
7b41bf4dd8ef350b82283cdb0c4e85585e26636fa9148e88fb9a85ee541b590d | janestreet/ecaml | funcall.mli | * A typeful interface for calling Elisp , as [ external ] does for
open! Core
open! Import
type 'a t
* [ Wrap ] wraps an Elisp function as an OCaml function . Idiomatic use looks like :
{ [
let not = . Wrap.("not " < : bool @- > return bool )
let about_emacs = . Wrap.("about - emacs " < ... | null | https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/ecaml_value/src/funcall.mli | ocaml | * A typeful interface for calling Elisp , as [ external ] does for
open! Core
open! Import
type 'a t
* [ Wrap ] wraps an Elisp function as an OCaml function . Idiomatic use looks like :
{ [
let not = . Wrap.("not " < : bool @- > return bool )
let about_emacs = . Wrap.("about - emacs " < ... | |
3fd8a0d2799541c5afec3c4483cbb8b53467c6e0857eb5bbe18badc736b7358a | racket/redex | typed-info.rkt | #lang racket/base
(require racket/runtime-path
"../util/info-util.rkt")
(provide (all-defined-out))
(define name "rvm")
(define fname (make-path-root 'rvm))
(define-runtime-path here ".")
(define (all-mods)
(all-mods/type 'typed here name fname)) | null | https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-benchmark/redex/benchmark/models/rvm/typed-info.rkt | racket | #lang racket/base
(require racket/runtime-path
"../util/info-util.rkt")
(provide (all-defined-out))
(define name "rvm")
(define fname (make-path-root 'rvm))
(define-runtime-path here ".")
(define (all-mods)
(all-mods/type 'typed here name fname)) | |
551a9ea14a543b0fcfc21165521e88ea936fc491a6944a3ef5b7363b875c2da2 | balayette/blockchan | transaction.ml | type t =
{ data : Transaction_data.t;
hash : string;
timestamp : int;
}
let print_transaction t =
Printf.printf "TRANSACTION:\nhash : %s\ntimestamp : %d\n" t.hash t.timestamp;
Transaction_data.print_transaction_data t.data;
Printf.printf "-------------\n\n\n"
let create_transaction data hash timesta... | null | https://raw.githubusercontent.com/balayette/blockchan/3b7e292ec9e9574eefcdebd0a6036698a80febdb/src/transaction.ml | ocaml | type t =
{ data : Transaction_data.t;
hash : string;
timestamp : int;
}
let print_transaction t =
Printf.printf "TRANSACTION:\nhash : %s\ntimestamp : %d\n" t.hash t.timestamp;
Transaction_data.print_transaction_data t.data;
Printf.printf "-------------\n\n\n"
let create_transaction data hash timesta... | |
df2c3d8f574ef4c543cde52e4b822962ffc33ebfe7b536ff5873a5500945085c | arrdem/sad | stack.clj | (ns me.arrdem.sad.runtime.stack)
(def ^:dynamic rule-stack (atom '("toplevel")))
(def ^:dynamic indent-width (atom 0))
(def ^:dynamic prn-prefix (atom true))
(defn- stack []
(let [s (apply str (interpose "-> " (reverse @rule-stack)))]
(reset! indent-width (count s))
s))
(defn scope-pop! []
(swap! ... | null | https://raw.githubusercontent.com/arrdem/sad/11aca91ec38009069d6d7f50de7fd2326cc627b8/src/me/arrdem/sad/runtime/stack.clj | clojure | (ns me.arrdem.sad.runtime.stack)
(def ^:dynamic rule-stack (atom '("toplevel")))
(def ^:dynamic indent-width (atom 0))
(def ^:dynamic prn-prefix (atom true))
(defn- stack []
(let [s (apply str (interpose "-> " (reverse @rule-stack)))]
(reset! indent-width (count s))
s))
(defn scope-pop! []
(swap! ... | |
d628c351beea2d813102fd17be0ae4f06c750d2e91a94cc8f39cf702b4bdf2f6 | hammerlab/ketrew | myocamlbuild.ml | open Nonstd
open Solvuu_build.Std
let (//) = Filename.concat
let failwithf fmt = ksprintf failwith fmt
let project_name = "ketrew"
let version = "3.2.0+dev"
let build_tests =
try Sys.getenv "WITH_TESTS" = "true" with _ -> false
let jsoo_debug =
try Sys.getenv "JSOO_DEBUG_MODE" = "true" with _ -> false
let with_... | null | https://raw.githubusercontent.com/hammerlab/ketrew/8940d48fbe174709f076b7130974ecd0ed831d58/myocamlbuild.ml | ocaml | Older versionso of Lwt build `lwt.react`, then Lwt ≥ 3.0.0 uses
`lwt_react` as a separate opam package.
We need to override the files to remove the ".cppo.ml" | open Nonstd
open Solvuu_build.Std
let (//) = Filename.concat
let failwithf fmt = ksprintf failwith fmt
let project_name = "ketrew"
let version = "3.2.0+dev"
let build_tests =
try Sys.getenv "WITH_TESTS" = "true" with _ -> false
let jsoo_debug =
try Sys.getenv "JSOO_DEBUG_MODE" = "true" with _ -> false
let with_... |
f33dcf496538985bfebf9f0a7fefc787cf9640f432d02c88cebbba5590a72878 | camfort/fortran-src | Fortran2003Spec.hs | module Language.Fortran.Parser.Free.Fortran2003Spec ( spec ) where
import Prelude hiding (GT, EQ, exp, pred)
import Test.Hspec
import TestUtil
import Language.Fortran.Parser.Free.Common
import Language.Fortran.AST
import Language.Fortran.Version
import Language.Fortran.Parser
import Language.Fortran.Parser.Monad ( P... | null | https://raw.githubusercontent.com/camfort/fortran-src/9229338d6b09a724d38e46bd852f76fe3329d64f/test/Language/Fortran/Parser/Free/Fortran2003Spec.hs | haskell | module Language.Fortran.Parser.Free.Fortran2003Spec ( spec ) where
import Prelude hiding (GT, EQ, exp, pred)
import Test.Hspec
import TestUtil
import Language.Fortran.Parser.Free.Common
import Language.Fortran.AST
import Language.Fortran.Version
import Language.Fortran.Parser
import Language.Fortran.Parser.Monad ( P... | |
b65647d48b942aec24504665f4f8131348a44a79b87a73a402a818e7d4415bda | cicakhq/potato | flexichain-output-history.lisp | (cl:in-package #:climacs-flexichain-output-history)
(defclass flexichain-pane (clim:application-pane)
()
(:default-initargs :output-record (make-instance 'flexichain-output-history)
:display-time nil
:scroll-bars t))
(defclass flexichain-output-history
(clim:output-re... | null | https://raw.githubusercontent.com/cicakhq/potato/88b6c92dbbc80a6c9552435604f7b1ae6f2a4026/contrib/potato-client-clim/src/flexichain-output-history.lisp | lisp | If there are lines in the suffix that are entirely above the
viewport, then move them to the prefix.
If there are lines in the prefix that are not entirely above
the viewport, then move them to the suffix.
For now, loop over all the records. To do this better, do a
binary search. | (cl:in-package #:climacs-flexichain-output-history)
(defclass flexichain-pane (clim:application-pane)
()
(:default-initargs :output-record (make-instance 'flexichain-output-history)
:display-time nil
:scroll-bars t))
(defclass flexichain-output-history
(clim:output-re... |
11edaa9f42830e1f925ba9d8d84d30a13f7fa991465555146ca7a0cc44810ab5 | hiroshi-unno/coar | linked.ml | open Core
open Ast
open Ast.LogicOld
open CSyntax
exception Error of string
module LinkedStatement : sig
type t =
IF of Formula.t * t ref * t ref
| ASSIGN of string * Term.t * t ref
| NONDET_ASSIGN of string * t ref
| NONDET of t ref * t ref
| ASSUME of Formula.t * t ref
| NOP of t ref
... | null | https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/c/linked.ml | ocaml | open Core
open Ast
open Ast.LogicOld
open CSyntax
exception Error of string
module LinkedStatement : sig
type t =
IF of Formula.t * t ref * t ref
| ASSIGN of string * Term.t * t ref
| NONDET_ASSIGN of string * t ref
| NONDET of t ref * t ref
| ASSUME of Formula.t * t ref
| NOP of t ref
... | |
8f00bcd828376d31c99119c494d45f4a6cdb4996d3414661355e006f67113d9c | Workiva/eva | protocols.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/query/datalog/qsqr/protocols.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.query.datalog.qsqr.protocols)
(defprotocol State
(rule-log [state] [state queries] "Returns/sets a nested datastructure representing the generalized rule queries that have been seen already: { predica... |
b414dc85bf1ee8584ddefae7f8a6b905dd5fcab2c8c6a7ce4050ecc71c937b68 | kitnil/dotfiles | video.scm | (define-module (home services video)
#:use-module (gnu home services)
#:use-module (gnu home services shepherd)
#:use-module (guix gexp)
#:use-module (guix records)
#:use-module (gnu services)
#:use-module (home config)
#:export (home-mpv-service))
(define home-mpv-service
(simple-service 'mpv-config
... | null | https://raw.githubusercontent.com/kitnil/dotfiles/354a101e7e2789ad37e8b0c9f4534e2a9fc55439/dotfiles/guixsd/modules/home/services/video.scm | scheme | (define-module (home services video)
#:use-module (gnu home services)
#:use-module (gnu home services shepherd)
#:use-module (guix gexp)
#:use-module (guix records)
#:use-module (gnu services)
#:use-module (home config)
#:export (home-mpv-service))
(define home-mpv-service
(simple-service 'mpv-config
... | |
9b78d24fd06dddcdd670a4b07cc2cc998e784449f06ed2567d6ee54afa837249 | DaiF1/Oditor | oditor.ml | (*
file: oditor.ml
dependencies: editor.ml display.ml input.ml
Main file
*)
open Editor;;
open Display;;
open Input;;
open Default_keymaps;;
open Vim_keymaps;;
(* Keymap setup *)
store_keymap "default" setup_defaultkeymaps;;
store_keymap "vim" setup_vimkeymaps;;
Main loop
Refresh screen and proce... | null | https://raw.githubusercontent.com/DaiF1/Oditor/9f49ce05281f3253c166475b21c282a1e36c99f7/oditor.ml | ocaml |
file: oditor.ml
dependencies: editor.ml display.ml input.ml
Main file
Keymap setup |
open Editor;;
open Display;;
open Input;;
open Default_keymaps;;
open Vim_keymaps;;
store_keymap "default" setup_defaultkeymaps;;
store_keymap "vim" setup_vimkeymaps;;
Main loop
Refresh screen and process keys . If process returns false , exit editor
Refresh screen and process keys. If process returns fa... |
b63b2fc044a8b4cbb141d5eb8f261d0918906ec0840aa0bbe695c820d1c98a7a | dgiot/dgiot | dgiot_charref.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy... | null | https://raw.githubusercontent.com/dgiot/dgiot/c9f2f78af71692ba532e4806621b611db2afe0c9/apps/dgiot_api/src/utils/dgiot_charref.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@doc Converts HTML 5 charrefs and entities to codepoints ( or lists of code points ) .
-modu... |
7b969f62ee5aa527b0e479702e2059a465f60558bc4c03a404ff52ebc515f7bd | tweag/ormolu | warning-single-line-out.hs | {-# DEPRECATED test, foo "This is a deprecation" #-}
{-# WARNING test "This is a warning" #-}
test :: IO ()
test = pure ()
bar = 3
{-# DEPRECATED bar "Bar is deprecated" #-}
# DEPRECATED baz " is also deprecated " #
baz = 5
data Number = Number Dobule
{-# DEPRECATED Number "Use Scientific instead." #-}
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/warning/warning-single-line-out.hs | haskell | # DEPRECATED test, foo "This is a deprecation" #
# WARNING test "This is a warning" #
# DEPRECATED bar "Bar is deprecated" #
# DEPRECATED Number "Use Scientific instead." # | test :: IO ()
test = pure ()
bar = 3
# DEPRECATED baz " is also deprecated " #
baz = 5
data Number = Number Dobule
|
7e3621ab15740ed28f55ee99b55323b084fa9fd2c545d988669099e297837785 | iloveponies/sudoku | project.clj | (defproject sudoku "1.0.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.0"]
[iloveponies.tests/sudoku "0.2.0-SNAPSHOT"]]
:profiles {:dev {:plugins [[lein-midje "3.2.1"]]}})
| null | https://raw.githubusercontent.com/iloveponies/sudoku/e0ea7bb1af2b47c6fef3ca9e014089e235b8fe54/project.clj | clojure | (defproject sudoku "1.0.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.0"]
[iloveponies.tests/sudoku "0.2.0-SNAPSHOT"]]
:profiles {:dev {:plugins [[lein-midje "3.2.1"]]}})
| |
fc4ee1901403c055271a0cc9e5c23501b1a9a200278eb738d5a4f14bfb0b2fdf | graninas/Functional-Design-and-Architecture | Runtime.hs | module Andromeda.Hardware.Impl.Runtime where
import qualified Andromeda.Hardware.Common as T
import qualified Andromeda.Hardware.Domain as T
import qualified Andromeda.Hardware.Impl.Service as SImpl
import qualified Andromeda.Hardware.Impl.Device.Types as TImpl
import qualified Data.Map as Map
import Data.IORef (IO... | null | https://raw.githubusercontent.com/graninas/Functional-Design-and-Architecture/b6a78f80a2a2e0b913bcab1d2279fc137a90db4c/Second-Edition-Manning-Publications/BookSamples/CH08/Section8p1/src/Andromeda/Hardware/Impl/Runtime.hs | haskell | module Andromeda.Hardware.Impl.Runtime where
import qualified Andromeda.Hardware.Common as T
import qualified Andromeda.Hardware.Domain as T
import qualified Andromeda.Hardware.Impl.Service as SImpl
import qualified Andromeda.Hardware.Impl.Device.Types as TImpl
import qualified Data.Map as Map
import Data.IORef (IO... | |
f1a635c60a14cb191914d9e8674124c10b14d3922308b08efdf5acb1b95a73a1 | repl-electric/.sonic-pi | knit.sps | #key: knit
#point_line:0
#point_index:6
# --
(knit ,1).tick()
| null | https://raw.githubusercontent.com/repl-electric/.sonic-pi/a00c733f0a5fa1fa0aa65bf06fe7ab71654d2da9/snippets/knit.sps | scheme | #key: knit
#point_line:0
#point_index:6
# --
(knit ,1).tick()
| |
920c1b978ba5218cd280067bcfac2938cfc39d37cad8d95aa25f6d6cb20bd5a7 | franzinc/clim2 | db-stream.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*-
;; See the file LICENSE for the full license governing this code.
;;
(in-package :clim-internals)
" Copyright ( c ) 1990 by International Lisp Associates . All rights reserved .
Portions copyright ( c ... | null | https://raw.githubusercontent.com/franzinc/clim2/e8d03da80e1f000be40c37d088e283d95365bfdd/clim/db-stream.lisp | lisp | Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*-
See the file LICENSE for the full license governing this code.
--- How to keep PANE-BACKGROUND/FOREGROUND in sync with the medium?
--- I'm not convinced that including WINDOW-STREAM here is right...
includes output recording... |
(in-package :clim-internals)
" Copyright ( c ) 1990 by International Lisp Associates . All rights reserved .
Portions copyright ( c ) 1991 , 1992 Franz , Inc. All rights reserved .
Portions copyright ( c ) 1989 , 1990 Symbolics , Inc. All rights reserved . "
CLIM stream sheets and panes
(defclass clim-... |
58e0cbac5961de48300fd383e78b0f93cac947d4a5f34dd55fa9a27814fdd729 | Feuerlabs/yang | yang_scan_nif.erl | %%%---- BEGIN COPYRIGHT -------------------------------------------------------
%%%
Copyright ( C ) 2007 - 2012 , Rogvall Invest AB , < >
%%%
%%% This software is licensed as described in the file COPYRIGHT, which
%%% you should have received as part of this distribution. The terms
%%% are also available at .
%%%
%%... | null | https://raw.githubusercontent.com/Feuerlabs/yang/92330c742cdd2a8e7ce07f99b34c0fe761806e82/src/yang_scan_nif.erl | erlang | ---- BEGIN COPYRIGHT -------------------------------------------------------
This software is licensed as described in the file COPYRIGHT, which
you should have received as part of this distribution. The terms
are also available at .
You may opt to use, copy, modify, merge, publish, distribute and/or sell
furni... | Copyright ( C ) 2007 - 2012 , Rogvall Invest AB , < >
copies of the Software , and permit persons to whom the Software is
This software is distributed on an " AS IS " basis , WITHOUT WARRANTY OF ANY
@author < >
scanner
Created : 4 Jan 2012 by < >
-module(yang_scan_nif).
-on_load(init/0).
-ex... |
e144df0c4cb6e67b0611871208a95502e287e5a60b0b8d748a262eae91d916ea | kaol/heist-tutorial | Examples.hs | module Tutorial.Examples
( examplesMap
, launchExample
, example1
, example2
, example3
, example4
) where
{-
If you are looking for the example sources, look for the numbered
Example files.
-}
import Tutorial.Example1
import Tutorial.Example2
import Tutorial.Example3
... | null | https://raw.githubusercontent.com/kaol/heist-tutorial/c85d4a7165dd39ab6e0c674c5e382a42dbd9fca8/src/Tutorial/Examples.hs | haskell |
If you are looking for the example sources, look for the numbered
Example files.
| module Tutorial.Examples
( examplesMap
, launchExample
, example1
, example2
, example3
, example4
) where
import Tutorial.Example1
import Tutorial.Example2
import Tutorial.Example3
import Tutorial.Example4
import Site
import Snap.Snaplet
import Snap.Http.Server.Confi... |
06ec138de4bbceda656a1a942b357964a2188354422caa9429b6eabbadcef3e7 | AccelerateHS/accelerate | RealFloat.hs | {-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# L... | null | https://raw.githubusercontent.com/AccelerateHS/accelerate/5d32f1710e39f8aa7596f6beffebd2e8369cc36d/src/Data/Array/Accelerate/Classes/RealFloat.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DefaultSignatures #
# LANGUAGE FlexibleContexts #
# LANGUAGE OverloadedStrings #
|
Module : Data.Array.Accelerate.Classes.RealFloat
License : BSD3
Stability : experimental
| Efficient, machine-independent access to the components of a floating-point
... | # LANGUAGE FlexibleInstances #
# LANGUAGE NoImplicitPrelude #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
# OPTIONS_GHC -fno - warn - orphans #
Copyright : [ 2016 .. 2020 ] The Accelerate Team
Maintainer : < >
... |
c88871ace1680e36814a6f03d63034f03117c64dba0cce1c40a2f7d7cb971407 | informatimago/lisp | utility.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : utility.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;; This file defines a few utilities.
;;;;
... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/future/vfs/utility.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
This file defines a few utilities.
LEGAL
GPL
This program is free software; you can redistribute it and/or
either version
This p... | FILE : utility.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2012 - 01 - 15 < PJB > Extracted from ' virtual-fs.lisp ' .
Copyright 2012 - 2016
modify it under the terms of the GNU General Public License
2 of the License , or ( at your option ) any later version... |
51dfec5d6fa2ab04248b60fc0709925b232ae3d49fe40f6acd70ddd5f1a5bcd8 | roelvandijk/numerals | TestData.hs | |
[ @ISO639 - 1@ ] -
[ @ISO639 - 2@ ] -
[ @ISO639 - 3@ ] cod
[ @Native name@ ]
[ @English name@ ]
[@ISO639-1@] -
[@ISO639-2@] -
[@ISO639-3@] cod
[@Native name@] Kokáma
[@English name@] Cocama
-}
module Text.Numeral.Language.COD.TestData ... | null | https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src-test/Text/Numeral/Language/COD/TestData.hs | haskell | ------------------------------------------------------------------------------
Imports
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Test data
---------------------------------------------------------------... | |
[ @ISO639 - 1@ ] -
[ @ISO639 - 2@ ] -
[ @ISO639 - 3@ ] cod
[ @Native name@ ]
[ @English name@ ]
[@ISO639-1@] -
[@ISO639-2@] -
[@ISO639-3@] cod
[@Native name@] Kokáma
[@English name@] Cocama
-}
module Text.Numeral.Language.COD.TestData ... |
df32bc55c5d650861b0704887eb0b4c1b7b3d6d025f62bfe563a00e94a288c94 | BranchTaken/Hemlock | test_min_max.ml | open! Basis.Rudiments
open! Basis
open Zint
let test () =
let rec test_pairs = function
| [] -> ()
| (x, y) :: pairs' -> begin
File.Fmt.stdout
|> Fmt.fmt "min,max "
|> fmt ~alt:true ~radix:Radix.Hex x
|> Fmt.fmt " "
|> fmt ~alt:true ~radix:Radix.Hex y
|> Fmt.fm... | null | https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/zint/test_min_max.ml | ocaml | open! Basis.Rudiments
open! Basis
open Zint
let test () =
let rec test_pairs = function
| [] -> ()
| (x, y) :: pairs' -> begin
File.Fmt.stdout
|> Fmt.fmt "min,max "
|> fmt ~alt:true ~radix:Radix.Hex x
|> Fmt.fmt " "
|> fmt ~alt:true ~radix:Radix.Hex y
|> Fmt.fm... | |
9eb17a68b2aaee548f3b05fc7f02280a58236ec7c6a2bca8d6ac573fef3c6906 | rollacaster/hiccup-d3 | pack.cljs | (ns tech.thomas-sojka.hiccup-d3.charts.pack
(:require ["d3" :as d3]
[tech.thomas-sojka.hiccup-d3.utils :refer [fetch-json]])
(:require-macros [tech.thomas-sojka.hiccup-d3.macros :as m]))
(def plain
(m/build-chart
"plain"
(fn [data]
(let [size 300
color (d3/scaleOrdinal d3/scheme... | null | https://raw.githubusercontent.com/rollacaster/hiccup-d3/1c124d293889793638fa65f1ab6c82b79df52b85/src/main/tech/thomas_sojka/hiccup_d3/charts/pack.cljs | clojure | (ns tech.thomas-sojka.hiccup-d3.charts.pack
(:require ["d3" :as d3]
[tech.thomas-sojka.hiccup-d3.utils :refer [fetch-json]])
(:require-macros [tech.thomas-sojka.hiccup-d3.macros :as m]))
(def plain
(m/build-chart
"plain"
(fn [data]
(let [size 300
color (d3/scaleOrdinal d3/scheme... | |
ffdf94ac61d657ec8117cdeed2d4db0d1138a5a0e433803908851a2ce885a987 | informatimago/lisp | rdp-lisp-boilerplate.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : rdp-lisp-boilerplate.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;; The lisp parser boilerplate.
;... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/rdp/rdp-lisp-boilerplate.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
The lisp parser boilerplate.
LEGAL
This program is free software: you can redistribute it and/or modify
(at your option) any later ver... | FILE : rdp-lisp-boilerplate.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2012 - 05 - 06 < PJB > Extracted from rdp.lisp .
AGPL3
Copyright 2012 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.