_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 |
|---|---|---|---|---|---|---|---|---|
a5a2581585d5349e2016aebff28a1219eb5df7cdb801f961b5412b50be02be02 | emqx/emqx-bridge-mqtt | emqx_bridge_worker.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the L... | null | https://raw.githubusercontent.com/emqx/emqx-bridge-mqtt/f0107526efbfc38fab7727605ffd81e817ea3013/src/emqx_bridge_worker.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@doc Bridge works in two layers ( 1 ) batching layer ( 2 ) transport layer
In case ` REMOTE ' is al... |
1602c19b68c6824872623c513ce4c1d7958f6a9afe469bca1fbae0d05084c3cf | gonzojive/sbcl | stream.impure.lisp | ;;;; tests related to Lisp streams
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
While most of SBCL is derived from the CMU CL system , the test
;;;; files (like this one) were written from scratch after the fork
from CMU CL .
;;;;
;;;; This software is in the pub... | null | https://raw.githubusercontent.com/gonzojive/sbcl/3210d8ed721541d5bba85cbf51831238990e33f1/tests/stream.impure.lisp | lisp | tests related to Lisp streams
more information.
files (like this one) were written from scratch after the fork
This software is in the public domain and is provided with
absolutely no warranty. See the COPYING and CREDITS files for
more information.
type errors for inappropriate stream arguments, fixed in
sbc... |
This software is part of the SBCL system . See the README file for
While most of SBCL is derived from the CMU CL system , the test
from CMU CL .
(load "assertoid.lisp")
(use-package "ASSERTOID")
(locally
(declare (optimize (safety 3)))
(assert (raises-error? (make-two-way-stream (make-string-output-strea... |
680e9785465f41b90d752edbf1babd4dac4bcc74d4f8ed91060c52cf5cbe357d | uw-unsat/serval | symopt.rkt | #lang rosette
(require "base.rkt"
(prefix-in core: "../lib/core.rkt"))
(provide (all-defined-out))
; Jalr masks out the lowest bit of the PC.
; This symbolic optimizations kills the mask and emits an assertion that
; the rewrite is sound; to be used in situations where the target is known
; to be aligned an... | null | https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/riscv/symopt.rkt | racket | Jalr masks out the lowest bit of the PC.
This symbolic optimizations kills the mask and emits an assertion that
the rewrite is sound; to be used in situations where the target is known
to be aligned and the resulting PC must be as concrete as possible. | #lang rosette
(require "base.rkt"
(prefix-in core: "../lib/core.rkt"))
(provide (all-defined-out))
(define (kill-jalr-mask cpu)
(define mask (bvnot (bv 1 (cpu-xlen cpu))))
(define newpc
(match (cpu-pc cpu)
[(expression (== bvand) x y) #:when (and (! (term? x)) (equal? x mask)) y]
[pc pc]... |
f03821cd2caac4e197ee3e53ed73e6bbaf5f1e33db78479c35f1cb363114718e | patoline/patoline | PageLayout.ml | open Patutil
type pageMaster =
{
paperWidth: float;
paperHeight: float;
marginTop: float;
marginBottom: float;
marginLeft: float;
marginRight: float;
}
type master = pageMaster array
let default =
let (w,h) = Util.a4 in
{
paperWidth = w;
paperHeight = h;
marginTop = h /. 6... | null | https://raw.githubusercontent.com/patoline/patoline/3dcd41fdff64895d795d4a78baa27d572b161081/typography/PageLayout.ml | ocaml | After Box.make_page, zip contains at least the new frame
We are on a right page
We are on a left page | open Patutil
type pageMaster =
{
paperWidth: float;
paperHeight: float;
marginTop: float;
marginBottom: float;
marginLeft: float;
marginRight: float;
}
type master = pageMaster array
let default =
let (w,h) = Util.a4 in
{
paperWidth = w;
paperHeight = h;
marginTop = h /. 6... |
aba9cf31fe6035ecd68be4df204025f8f04ae4afed6bd3675b584aa1ba6365f5 | input-output-hk/cardano-explorer | Insert.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
module Explorer.DB.Insert
( insertBlock
, insertEpoch
, insertMeta
, insertSlotLeader
, insertTx
, insertTxIn
, insertTxOut
-- Export mainly for testing.
, insertByReturnKey
) where
import Control.Monad.IO.Class (MonadIO)
import ... | null | https://raw.githubusercontent.com/input-output-hk/cardano-explorer/3abcb32339edac7c2397114a1d170cc76b82e9b6/cardano-explorer-db/src/Explorer/DB/Insert.hs | haskell | Export mainly for testing.
-----------------------------------------------------------------------------
record is inserted and 'Left key' if the record already exists in the DB. | # LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
module Explorer.DB.Insert
( insertBlock
, insertEpoch
, insertMeta
, insertSlotLeader
, insertTx
, insertTxIn
, insertTxOut
, insertByReturnKey
) where
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Trans.Rea... |
010243f443055d4877f10ef271bf3dd69a6b6e2437a56270f412948e0f9f4751 | aws-beam/aws-erlang | aws_mobileanalytics.erl | %% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
See -beam/aws-codegen for more details .
@doc Amazon Mobile Analytics is a service for collecting , visualizing , and
%% understanding app usage data at scale.
-module(aws_mobileanalytics).
-export([put_events/2,
put_events/3]).
-include_lib("hackney/include... | null | https://raw.githubusercontent.com/aws-beam/aws-erlang/e6dbe19b0aefc4b5b8abd509c9e25ba493146c1f/src/aws_mobileanalytics.erl | erlang | WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
understanding app usage data at scale.
====================================================================
API
====================================================================
attribute or metric values.
===============================================================... | See -beam/aws-codegen for more details .
@doc Amazon Mobile Analytics is a service for collecting , visualizing , and
-module(aws_mobileanalytics).
-export([put_events/2,
put_events/3]).
-include_lib("hackney/include/hackney_lib.hrl").
@doc The PutEvents operation records one or more events .
You ... |
2a934205694f67bc8473bf5d62fc02e48e99c6c7590713b2cb82a0bae26e9e95 | kcsongor/generic-lens | Families.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE KindSignatures #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
{-# LANGUAGE TypeOperators #-}
-----------------------------------------------------------... | null | https://raw.githubusercontent.com/kcsongor/generic-lens/8e1fc7dcf444332c474fca17110d4bc554db08c8/generic-lens-core/src/Data/Generics/Internal/Families.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE TypeOperators #
---------------------------------------------------------------------------
|
Module : Data.Generics.Internal.Families
License : BSD3
Stability : experimental
Portability : non-portable
--------... | # LANGUAGE FlexibleInstances #
# LANGUAGE KindSignatures #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
Copyright : ( C ) 2020
Maintainer : < >
module Data.Generics.Internal.Families
( module Families
, ShowSymbols
) where
import Data.Generics.Internal.Fa... |
4cd7320fe6090415db467363dbb876318f1a98b3fe608b0d2921ed8815711750 | progman1/genprintlib | primitives.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.10.0/primitives.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
OCaml port by and
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
val nothing : 'a -> unit
exception Out_of_range
val ... |
56f98df28f0564151e213c36403367a641826d3997937843da2204a0353b8340 | jekor/redo | Setup.hs | # LANGUAGE CPP #
import Control.Monad (unless)
import Distribution.Simple
import Distribution.Simple.InstallDirs (InstallDirs(..), fromPathTemplate, toPathTemplate)
import Distribution.Simple.LocalBuildInfo (LocalBuildInfo(..))
import Distribution.Simple.Setup (ConfigFlags(..), fromFlag, fromFlagOrDefault)
import Syst... | null | https://raw.githubusercontent.com/jekor/redo/6cfc1d48f3f20eb9f96b055847e110de0012b7ec/Setup.hs | haskell | I tried the following seemingly more correct way but received the error:
"internal error InstallDirs.libsubdir". For now I gave up on tracking it
down and switched to the following code. If you know what I'm doing wrong
here, please let me know.
let installDirs = absoluteInstallDirs pkgDesc buildInfo NoCopyDest | # LANGUAGE CPP #
import Control.Monad (unless)
import Distribution.Simple
import Distribution.Simple.InstallDirs (InstallDirs(..), fromPathTemplate, toPathTemplate)
import Distribution.Simple.LocalBuildInfo (LocalBuildInfo(..))
import Distribution.Simple.Setup (ConfigFlags(..), fromFlag, fromFlagOrDefault)
import Syst... |
5a24b284174c3fb27b8d49f1a5eb29fe6668868a862c7ede1d01d9129c7ded71 | bsaleil/lc | boyer.scm.scm | ;;------------------------------------------------------------------------------
Macros
(##define-macro (def-macro form . body)
`(##define-macro ,form (let () ,@body)))
(def-macro (FLOATvector-const . lst) `',(list->vector lst))
(def-macro (FLOATvector? x) `(vector? ,x))
(def-macro (FLOATvector . lst... | null | https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultbak/m5intra/boyer.scm.scm | scheme | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Gabriel benchmarks
C benchmarks
Other benchmarks
Fairly CONS intensive. | Macros
(##define-macro (def-macro form . body)
`(##define-macro ,form (let () ,@body)))
(def-macro (FLOATvector-const . lst) `',(list->vector lst))
(def-macro (FLOATvector? x) `(vector? ,x))
(def-macro (FLOATvector . lst) `(vector ,@lst))
(def-macro (FLOATmake-vector n . init) `(make-vector ,... |
2e1521f3332160bf51b4388d9cc53343c74cec8d1b696c90c53d8905eb8af3a7 | maitria/gambit-objc | expect#.scm | (namespace ("expect#"
raises?
display-expect-results
))
(define-macro (expect #!rest args)
(if (= 2 (length args))
(let ((message (car args))
(test-expression (cadr args)))
`(if (not ,test-expression)
(raise ,message)))
`(if (not ,(car args))
(raise ',(car args)))))
| null | https://raw.githubusercontent.com/maitria/gambit-objc/abf6755d67d7137ade321c699304ed1e932cc675/lib/expect%23.scm | scheme | (namespace ("expect#"
raises?
display-expect-results
))
(define-macro (expect #!rest args)
(if (= 2 (length args))
(let ((message (car args))
(test-expression (cadr args)))
`(if (not ,test-expression)
(raise ,message)))
`(if (not ,(car args))
(raise ',(car args)))))
| |
ffb60912644e9aaf24c5f086c92867a15ba170c873b444cba354391e867a6f5b | markus-git/hardware-edsl | VHDL.hs | # LANGUAGE GADTs #
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
# LANGUAGE KindSignatures #
{-# LANGUAGE TypeSynonymInstances #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE Overloaded... | null | https://raw.githubusercontent.com/markus-git/hardware-edsl/d0fde93ff57a8f5c2c37e273ff3a1d2a761fc5eb/src/Language/Embedded/Hardware/Command/Backend/VHDL.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE TypeSynonymInstances #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE ConstraintKinds #
------------------------------------------------------------------------------
* VHDL code generation.
---------------------------------------... | # LANGUAGE GADTs #
# LANGUAGE KindSignatures #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE PolyKinds #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE FlexibleContexts #
module Language.Embedded.Hardware.... |
fc509ccc5ae9b53e4717797da36d8aca142362b98fface32221cc421a3f1227c | simonmichael/shelltestrunner | Utils.hs | module Utils
( module Utils.Debug
, module Utils
)
where
import Text.Parsec (choice, try)
import Text.Parsec.String (GenParser)
import Text.Regex.TDFA ((=~))
import Import
import Utils.Debug
-- strings
trim :: String -> String
trim s | l <= limit = s
| otherwise = take limit s ++ suffix
where
... | null | https://raw.githubusercontent.com/simonmichael/shelltestrunner/10084f69dc0e39588535dce9c39211cc198414b3/src/Utils.hs | haskell | strings
| Test if a string contains a regular expression. A malformed regexp
(or a regexp larger than 300 characters, to avoid a regex-tdfa memory leak)
will cause a runtime error. This version uses regex-tdfa and no regexp
options.
parsing
system
misc
| Replace occurrences of old list with new list within a... | module Utils
( module Utils.Debug
, module Utils
)
where
import Text.Parsec (choice, try)
import Text.Parsec.String (GenParser)
import Text.Regex.TDFA ((=~))
import Import
import Utils.Debug
trim :: String -> String
trim s | l <= limit = s
| otherwise = take limit s ++ suffix
where
limit = 5... |
15f335ec055f0c15319e631873ebaf89f7960a751bb2e2756d1e1b7222f28b64 | Quickscript-Competiton/July2020entries | copy-selection-as-html.rkt | #lang at-exp racket/base
(require racket/format
racket/string
syntax-color/racket-lexer
quickscript)
; COPY SELECTION AS HTML
Author : ( )
Date : 07 - 2020
License : [ MIT]( / licenses / MIT )
; From: -Competiton/July2020entries/issues/14
;
This copies the selection to the clip... | null | https://raw.githubusercontent.com/Quickscript-Competiton/July2020entries/b6406a4f021671bccb6b464042ba6c91221286fe/scripts/copy-selection-as-html.rkt | racket | COPY SELECTION AS HTML
From: -Competiton/July2020entries/issues/14
HTML. It uses a pretty <style> and the clever placement of
<spans> to colorize parens using rainbow colors.
The lexinate function and the CSS associated with the rainbow parens,
or as I like to describe: "all that is actually interesting and use... | #lang at-exp racket/base
(require racket/format
racket/string
syntax-color/racket-lexer
quickscript)
Author : ( )
Date : 07 - 2020
License : [ MIT]( / licenses / MIT )
This copies the selection to the clipboard as
in this script " is originally made by , copied from :
PS... |
3b466466ebf23f5eb3929e28d3055adc3b904bf257eb500224a4fbb606596053 | ruricolist/cl-shlex | test.lisp | (in-package :shlex/test)
(def data
(read-file-into-string
(asdf:system-relative-pathname :shlex/test "t/data.txt")
:external-format :utf-8))
(def posix-data
(read-file-into-string
(asdf:system-relative-pathname :shlex/test "t/posix-data.txt")
:external-format :utf-8))
(defun split-test-cases (string)... | null | https://raw.githubusercontent.com/ruricolist/cl-shlex/3dee1cb7c0140fa7660ca7a3b2ac5e75d1218e5c/t/test.lisp | lisp | whitespace-split is nil, so splitting will be based on
punctuation-chars
whitespace-split is True, so splitting will be based on
white space
e + acute accent, a + grave, sharp s | (in-package :shlex/test)
(def data
(read-file-into-string
(asdf:system-relative-pathname :shlex/test "t/data.txt")
:external-format :utf-8))
(def posix-data
(read-file-into-string
(asdf:system-relative-pathname :shlex/test "t/posix-data.txt")
:external-format :utf-8))
(defun split-test-cases (string)... |
dfccca2ab30921c1144ce7970a23c3443a72dfb72f39be26608e194a910dd094 | fission-codes/cli | Base.hs | module Fission.CLI.Config.Base
( runBase
, module Fission.CLI.Config.Base.Types
) where
import Fission.Prelude
import Fission.CLI.Config.Base.Types
runBase :: MonadIO m => BaseConfig -> FissionBase a -> m a
runBase cfg actions =
actions
|> unwrapFissionBase
|> runRIO cfg
| null | https://raw.githubusercontent.com/fission-codes/cli/dc3500babad35a6cb44835fa503d27d672cbcdb3/library/Fission/CLI/Config/Base.hs | haskell | module Fission.CLI.Config.Base
( runBase
, module Fission.CLI.Config.Base.Types
) where
import Fission.Prelude
import Fission.CLI.Config.Base.Types
runBase :: MonadIO m => BaseConfig -> FissionBase a -> m a
runBase cfg actions =
actions
|> unwrapFissionBase
|> runRIO cfg
| |
6b4d744dc99453a3c2649b9505159c233634a4c8e163c8e626d7472f5fae710a | Lelio-Brun/Obelisk | scan.ml | (** Build the set of symbols appearing in a grammar. *)
open Ast
open Common
open List
(** [add_defined symbols r] adds to the [symbols] set the name of [r]
(left-hand side) as a non terminal (see {!Common.Symbols.def_non_term})
if the rule has no parameter or as a functional non terminal along with
its p... | null | https://raw.githubusercontent.com/Lelio-Brun/Obelisk/ab8ab94f1974caca8a164768634fa171cfe47503/src/scan.ml | ocaml | * Build the set of symbols appearing in a grammar.
* [add_defined symbols r] adds to the [symbols] set the name of [r]
(left-hand side) as a non terminal (see {!Common.Symbols.def_non_term})
if the rule has no parameter or as a functional non terminal along with
its parameters (see {!Common.Symbols.def_fun... |
open Ast
open Common
open List
let add_defined symbols {name; params; _} =
match params with
| [] -> Symbols.def_non_term name symbols
| _ -> Symbols.def_fun name params symbols
let add_terminal symbols {params; groups; _} =
let rec add_terminal_actual symbols = function
| Symbol (s, ps) ->
let s... |
743f4877aecaba775636fdb97da55479eace2813ce210f4faed8e306d187d3d2 | OCamlPro/operf-micro | loc.ml | open Lexing
type t = {
lstart: Lexing.position;
lend: Lexing.position;
}
open Format
let print_loc ppf loc =
let p1 = loc.lstart in
let p2 = loc.lend in
let off1 = p1.pos_cnum - p1.pos_bol in
let off2 = p2.pos_cnum - p1.pos_bol in
fprintf ppf "File \"%s\", line %i, characters %i-%i"
p1.pos_fname p1... | null | https://raw.githubusercontent.com/OCamlPro/operf-micro/d5d2bf2068204b889321b0c5a7bc0d079c0fca80/tools/operf-micro/loc.ml | ocaml | open Lexing
type t = {
lstart: Lexing.position;
lend: Lexing.position;
}
open Format
let print_loc ppf loc =
let p1 = loc.lstart in
let p2 = loc.lend in
let off1 = p1.pos_cnum - p1.pos_bol in
let off2 = p2.pos_cnum - p1.pos_bol in
fprintf ppf "File \"%s\", line %i, characters %i-%i"
p1.pos_fname p1... | |
18b66bd1ce8a7ca31df52ee77157187247b9f0aba95b3626952352aef50635a4 | clojure/tools.logging | ns.clj | (ns external.ns
"Used by clojure.tools.logging.test-logging."
(:require [clojure.tools.logging.impl :as impl]))
(defn factory []
(reify impl/LoggerFactory
(name [_] "external.ns/good-fn")
(get-logger [_ _] (impl/disabled-logger))))
| null | https://raw.githubusercontent.com/clojure/tools.logging/31073fe1fbb0533f3c775fa667de70809f24b127/src/test/clojure/external/ns.clj | clojure | (ns external.ns
"Used by clojure.tools.logging.test-logging."
(:require [clojure.tools.logging.impl :as impl]))
(defn factory []
(reify impl/LoggerFactory
(name [_] "external.ns/good-fn")
(get-logger [_ _] (impl/disabled-logger))))
| |
189fc50ca6ff57badd7f894ee0aec7c1c75921bc76c4492f00da684b39df39a1 | aryx/syncweb | test_mandel.ml | (***********************************************************************)
(* *)
(* The Caml/MPI interface *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/aryx/syncweb/af402ffb2e03b2a34f3ac57da6b59136b969d65f/demos/mapreduce/ocamlmpi/test_mandel.ml | ocaml | *********************************************************************
The Caml/MPI interface
... | , projet Cristal , INRIA Rocquencourt
Copyright 1998 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ I d : test_mandel.ml , v 1.2 2003/0... |
fb826291209952f41183045fd11950647f8387a085d7cf362f06044859745479 | janestreet/incr_dom | app.mli | open! Core
open! Async_kernel
open Incr_dom
include App_intf.S with type State.t = unit and type Model.t = unit
val initial_model : Model.t
| null | https://raw.githubusercontent.com/janestreet/incr_dom/56c04e44d6a8f1cc9b2b841495ec448de4bf61a1/example/hello_world/lib/app.mli | ocaml | open! Core
open! Async_kernel
open Incr_dom
include App_intf.S with type State.t = unit and type Model.t = unit
val initial_model : Model.t
| |
3cd5695e47d94cc6bfe110677713ed9f997218caa5db00c07661ce01bd78cbcc | sashashakun/SICP | test.rkt | #lang racket/base
(require rackunit "solution.rkt")
(check-equal? (solution) -0.022123893805309734)
| null | https://raw.githubusercontent.com/sashashakun/SICP/2b5f15fa7c0ff5b0f31272eb100c691b5a4703fc/src/chapter1/1.2/test.rkt | racket | #lang racket/base
(require rackunit "solution.rkt")
(check-equal? (solution) -0.022123893805309734)
| |
e09ccdd15639b9ec2a74f1d235566f7f11e2194cf2c830cbf354747926e0bdab | Clozure/ccl-tests | unbound-slot.lsp | ;-*- Mode: Lisp -*-
Author :
Created : We d Jun 4 20:14:26 2003
Contains : Tests for UNBOUND - SLOT , UNBOUND - SLOT - INSTANCE
(in-package :cl-test)
(defclass ubs-class-01 ()
((a :initarg :a)))
(deftest unbound-slot.1
(let ((obj (make-instance 'ubs-class-01)))
(handler-case
(slot-val... | null | https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/unbound-slot.lsp | lisp | -*- Mode: Lisp -*- | Author :
Created : We d Jun 4 20:14:26 2003
Contains : Tests for UNBOUND - SLOT , UNBOUND - SLOT - INSTANCE
(in-package :cl-test)
(defclass ubs-class-01 ()
((a :initarg :a)))
(deftest unbound-slot.1
(let ((obj (make-instance 'ubs-class-01)))
(handler-case
(slot-value obj 'a)
(unbound... |
eb012bbfbf435c7ff449ebffcb526d9bec26c4ccb1f33778fe4cee2208ab5650 | clj-jgit/clj-jgit | internal.clj | (ns clj-jgit.test.internal
(:use
[clj-jgit.test.helpers]
[clj-jgit.porcelain]
[clj-jgit.querying]
[clj-jgit.internal]
[clojure.test])
(:import
[org.eclipse.jgit.lib ObjectId]
[org.eclipse.jgit.revwalk RevWalk RevCommit]
[org.eclipse.jgit.treewalk TreeWalk]))
(deftest internal-tests
... | null | https://raw.githubusercontent.com/clj-jgit/clj-jgit/fe159662f34e738c083fb7f73a86eaecf5f8ceac/test/clj_jgit/test/internal.clj | clojure | commit-ish
initial commit
tree
blob
initial commit
branch name
commit before master's head | (ns clj-jgit.test.internal
(:use
[clj-jgit.test.helpers]
[clj-jgit.porcelain]
[clj-jgit.querying]
[clj-jgit.internal]
[clojure.test])
(:import
[org.eclipse.jgit.lib ObjectId]
[org.eclipse.jgit.revwalk RevWalk RevCommit]
[org.eclipse.jgit.treewalk TreeWalk]))
(deftest internal-tests
... |
789824031ebb34b3e6221ad3bbbe848737bfbf3b36a39bdc6d901b0da0a22cf4 | softwarelanguageslab/maf | R5RS_sigscheme_rec-5.scm | ; Changes:
* removed : 1
* added : 0
* swaps : 0
; * negated predicates: 0
; * swapped branches: 0
; * calls to id fun: 0
(letrec ((test (lambda (f g n)
(if (= n 0)
f
(let ((m (- n 1)))
((f g f m) f g m)
(<chang... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_sigscheme_rec-5.scm | scheme | Changes:
* negated predicates: 0
* swapped branches: 0
* calls to id fun: 0 | * removed : 1
* added : 0
* swaps : 0
(letrec ((test (lambda (f g n)
(if (= n 0)
f
(let ((m (- n 1)))
((f g f m) f g m)
(<change>
((g f g m) g f m)
())
... |
bbf86303d2984125c293754978f67b6877ef92c20877cf90f226bc1d3fd8cd8a | joaotavora/sly | start-slynk.lisp | ;;; This file is intended to be loaded by an implementation to
;;; get a running slynk server
e.g. sbcl --load start-slynk.lisp
;;;
Default port is 4005
;;; For additional slynk-side configurations see
6.2 section of the Slime user manual .
(load (make-pathname :name "slynk-loader" :type "lisp"
... | null | https://raw.githubusercontent.com/joaotavora/sly/5966d68727898fa6130fb6bb02208f70aa8d5ce3/slynk/start-slynk.lisp | lisp | This file is intended to be loaded by an implementation to
get a running slynk server
For additional slynk-side configurations see
delete any existing SLYNK packages
reload SLYNK, even if the SLYNK package already exists
if non-nil the connection won't be closed
after connecting | e.g. sbcl --load start-slynk.lisp
Default port is 4005
6.2 section of the Slime user manual .
(load (make-pathname :name "slynk-loader" :type "lisp"
:defaults *load-truename*))
(slynk-loader:init
(slynk:create-server :port 4005
:dont-close t)
|
764ca858c6926488a906e5febd652aab46de3acd14da6abcb634b91a11cfbcfe | kmi/irs | new.lisp | Mode : Lisp ; Package :
File created in WebOnto
(in-package "OCML")
(in-ontology trust-heuristic-classification)
| null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/applications/trust-heuristic-classification/new.lisp | lisp | Package : |
File created in WebOnto
(in-package "OCML")
(in-ontology trust-heuristic-classification)
|
ed35fe1026f2f8e14f0ca21358858db7faa3d133feda1def3305650ee4839ed2 | ucsd-progsys/nate | frx_req.ml | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of Objective Caml
(* *)
, , and ... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/frx/frx_req.ml | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of Objective Caml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
8be9f710bd6c5550472e89680172716bfcb528d4bb8c48e8cd44f69f167db789 | timbertson/passe | clipboard.ml | open Js_of_ocaml
open Js
class type document = object
method execCommand : string -> bool -> _ -> bool meth
end
let document : document t = Js.Unsafe.get (Js.Unsafe.global) "document"
let triggerCopy () =
if document##execCommand "copy" true ()
then None
else Some "copy command not supported"
| null | https://raw.githubusercontent.com/timbertson/passe/467a79ea0cd7b08a97b52be3bd1307a3bdf55799/src/www/clipboard.ml | ocaml | open Js_of_ocaml
open Js
class type document = object
method execCommand : string -> bool -> _ -> bool meth
end
let document : document t = Js.Unsafe.get (Js.Unsafe.global) "document"
let triggerCopy () =
if document##execCommand "copy" true ()
then None
else Some "copy command not supported"
| |
7cbf434f3db10571e65cb863ee18e6209510de2c3fb8e01de5a5042c3080d496 | degree9/enterprise | documentdb.cljs | (ns degree9.documentdb
(:require
[degree9.string :as s]
[goog.object :as obj]
[meta.promise :as p]
[feathers.services :as svc]
[degree9.debug :as dbg]
degree9.env
["documentdb" :as documentdb]))
(dbg/defdebug debug "degree9:enterprise:documentdb")
;; DB Definitions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/degree9/enterprise/65737c347e513d0a0bf94f2d4374935c7270185d/src/degree9/documentdb.cljs | clojure | DB Definitions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DB Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SQL Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DB Service Methods ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
... | (ns degree9.documentdb
(:require
[degree9.string :as s]
[goog.object :as obj]
[meta.promise :as p]
[feathers.services :as svc]
[degree9.debug :as dbg]
degree9.env
["documentdb" :as documentdb]))
(dbg/defdebug debug "degree9:enterprise:documentdb")
(def dbclient (obj/get documentdb "DocumentClient"))
... |
b506c914b7e93c854245e051a6e9aa3fa76c46c787ee96f5e49038bc69e37fff | nickng/gong | SymbolicSem.hs | module SymbolicSem where
import GoTypes
import PrettyGoTypes (pprintEqn, pprintType)
import Utils
import TypeSize
import Unbound.LocallyNameless
import Unbound.LocallyNameless.Ops
import Data.List as L
import Data.Set as S (intersection, null, fromList)
-- DEBUG
import System.IO.Unsafe
import Debug.Trace
inLi... | null | https://raw.githubusercontent.com/nickng/gong/e912d3c900172498190f9953198058b0ebbeb9b4/SymbolicSem.hs | haskell | DEBUG
no buffer if already created | module SymbolicSem where
import GoTypes
import PrettyGoTypes (pprintEqn, pprintType)
import Utils
import TypeSize
import Unbound.LocallyNameless
import Unbound.LocallyNameless.Ops
import Data.List as L
import Data.Set as S (intersection, null, fromList)
import System.IO.Unsafe
import Debug.Trace
inList :: GoT... |
291bbba1983387ece59ce9dac39f0e7da4e7f3e5a03f371038907cf869947c4c | bhaskara/programmable-reinforcement-learning | number-set.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; data-struct/set/number-set.lisp
;; code relating to the integer n viewed as the set (0,1,...,n-1)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package set)
(defmethod member? (item (s int... | null | https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/data-struct/set/number-set.lisp | lisp |
data-struct/set/number-set.lisp
code relating to the integer n viewed as the set (0,1,...,n-1)
|
(in-package set)
(defmethod member? (item (s integer))
(and (typep item 'integer) (utils:between2 item 0 s)))
(defmethod iterator ((s integer))
(let ((current 0))
(lambda ()
(if (< current s)
(let ((ret current))
(incf current)
(iterator-not-done ret))
(iterator-done)))))
... |
9b333a940e22e3837501770becbf8944f49b8509790324624a342c8df837564e | a-nikolaev/wanderers | simorg.ml | Wanderers - open world adventure game .
Copyright ( C ) 2013 - 2014 .
This program is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
( at... | null | https://raw.githubusercontent.com/a-nikolaev/wanderers/054c1cdc6dd833d8938357e6d898def510531d67/src/simorg.ml | ocaml | Sim Org
returns (bunch, (core, value)) option; the 'bunch' contains what is left
returns ((core,value),leftovers)
helper function
update the state of the system with an updated actor
update the state of the system with an updated core of a simple unit
try to use the items of the defeated opponent
take b... | Wanderers - open world adventure game .
Copyright ( C ) 2013 - 2014 .
This program is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
( at... |
7c35c575e98c6ea1b578c441caef7032c5c9c61cc2e9f37656f6d06d0769b3a0 | gilith/hol-light | fol_prop.ml | (* ========================================================================= *)
Propositional logic as subsystem of FOL , leading to compactness .
(* ========================================================================= *)
let pholds = new_recursive_definition form_RECURSION
`(pholds v False <=> F) /... | null | https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/Logic/fol_prop.ml | ocaml | =========================================================================
=========================================================================
-------------------------------------------------------------------------
Propositional satisfaction.
---------------... | Propositional logic as subsystem of FOL , leading to compactness .
let pholds = new_recursive_definition form_RECURSION
`(pholds v False <=> F) /\
(pholds v (Atom p l) <=> v (Atom p l)) /\
(pholds v (q --> r) <=> pholds v q ==> pholds v r) /\
(pholds v (!!x q) <=> v (!!x q))`;;
let PHOLDS = pro... |
d10a3c404376c450dd69f6daebcce092307c31cef1ecf684a1138b45c8005152 | soulomoon/SICP | Exercise4.60.scm | Exercise 4.60 : By giving the query
( lives - near ? person ( Hacker ) )
is able to find people who live near her , with whom she can ride to work . On the other hand , when she tries to find all pairs of people who live near each other by querying
; (lives-near ?person-1 ?person-2)
; she notices that each... | null | https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter4/Exercise4.60.scm | scheme | (lives-near ?person-1 ?person-2)
she notices that each pair of people who live near each other is listed twice; for example,
Why does this happen? Is there a way to find a list of people who live near each other, in which each pair appears only once? Explain.
which you have to find a way to compare which variable i... | Exercise 4.60 : By giving the query
( lives - near ? person ( Hacker ) )
is able to find people who live near her , with whom she can ride to work . On the other hand , when she tries to find all pairs of people who live near each other by querying
( lives - near ( Hacker ) ( ) )
( lives - near (... |
fec7ce85779675a49f9b1a01361710ab7e9bf9c0ec9c28f8bdae7657a0dcab7a | apache/dubbo-erlang | dubbo_consumer_pool_tests.erl | %%------------------------------------------------------------------------------
Licensed to the Apache Software Foundation ( ASF ) under one or more
%% contributor license agreements. See the NOTICE file distributed with
%% this work for additional information regarding copyright ownership.
The ASF licenses this ... | null | https://raw.githubusercontent.com/apache/dubbo-erlang/24e0c1a9028b50d2e9e05e3fe26f4e3335384acc/test/dubbo_consumer_pool_tests.erl | erlang | ------------------------------------------------------------------------------
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES ... | Licensed to the Apache Software Foundation ( ASF ) under one or more
The ASF licenses this file to You under the Apache License , Version 2.0
( the " License " ) ; you may not use this file except in compliance with
the License . You may obtain a copy of the License at
distributed under the License is distr... |
b1767eb710eb92a6216880d23bdbf607f1642ad2ce53444af6a887b4edb90ff3 | dimitri/pgloader | csv.lisp | ;;;
;;; Tools to handle MySQL data fetching
;;;
(in-package :pgloader.source.csv)
(defclass csv-connection (md-connection) ())
(defmethod initialize-instance :after ((csv csv-connection) &key)
"Assign the type slot to sqlite."
(setf (slot-value csv 'type) "csv"))
;;;
;;; Implementing the pgloader source API
;;;... | null | https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/sources/csv/csv.lisp | lisp |
Tools to handle MySQL data fetching
Implementing the pgloader source API
or :filename
CSV separator
CSV line ending
CSV quoting
CSV quote escaping
CSV quote escaping mode
return the new instance!
Read a file format in CSV format, and call given function on each line.
a field entry is a list of... |
(in-package :pgloader.source.csv)
(defclass csv-connection (md-connection) ())
(defmethod initialize-instance :after ((csv csv-connection) &key)
"Assign the type slot to sqlite."
(setf (slot-value csv 'type) "csv"))
(defclass copy-csv (md-copy)
one of : inline , : stdin , : regex
:initform #\N... |
b6d840b7919f8713ad1930c27eaea0fb648e72134a71033eef15232b53fd0e2c | mindreframer/clojure-stuff | core.clj | (ns yesql.core
(:require [yesql.parser :refer [parse-tagged-queries]]
[yesql.types :refer [emit-def]]
[yesql.util :refer [slurp-from-classpath]]))
(defmacro defquery
"Defines a query function, as defined in the given SQL file.
Any comments in that file will form the docstring."
[name f... | null | https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/krisajenkins/yesql/src/yesql/core.clj | clojure | (ns yesql.core
(:require [yesql.parser :refer [parse-tagged-queries]]
[yesql.types :refer [emit-def]]
[yesql.util :refer [slurp-from-classpath]]))
(defmacro defquery
"Defines a query function, as defined in the given SQL file.
Any comments in that file will form the docstring."
[name f... | |
42a73dea20359ce6238d5d02ca6d8880fbad3cb2d40ba4581ade849ca63db91c | coccinelle/coccinelle | lexer_parser.ml |
*
* Copyright ( C ) 2010 , University of Copenhagen DIKU and INRIA .
* Copyright ( C ) 2002 , 2006
*
* This program is free software ; you can redistribute it and/or
* modify it under the terms of the GNU General Public License ( GPL )
* version 2 as published by the Free Software Foundation ... | null | https://raw.githubusercontent.com/coccinelle/coccinelle/99ec612852a88fae85dfad863daafccf55b874ce/parsing_c/lexer_parser.ml | ocaml | parse_typedef_fix
parse_typedef_fix2
have far more .failed without this
Used by parse_c when do some error recovery. The parse error may
* have some bad side effects on typedef hash, so recover this.
|
*
* Copyright ( C ) 2010 , University of Copenhagen DIKU and INRIA .
* Copyright ( C ) 2002 , 2006
*
* This program is free software ; you can redistribute it and/or
* modify it under the terms of the GNU General Public License ( GPL )
* version 2 as published by the Free Software Foundation ... |
76cb9e528aefa5cd4b7d58118af8cd1af5f5d92b93745a1c3a310686640320ad | jberryman/unagi-chan | Main.hs | module Main (main) where
import Control.Monad
import System.Environment
import Control.Concurrent.MVar
import Control.Concurrent
import qualified Control.Concurrent.Chan.Unagi as U
import qualified Control.Concurrent.Chan.Unagi.Unboxed as UU
import qualified Control.Concurrent.Chan.Unagi.Bounded as UB
import qualified... | null | https://raw.githubusercontent.com/jberryman/unagi-chan/03f62bb6989fcfa3372a93925b7bc0294b51a65d/core-example/Main.hs | haskell | "chan" -> runC w r n
"stm" -> runS w r n
runUU ( read n )
runUB ( read n )
runUN ( read n )
runUNStream ( read n )
runUNUStream ( read n )
runUU (read n)
runUB (read n)
runUN (read n)
runUNStream (read n)
runUNUStream (read n)
# INLINE tryReadChanErrUN #
Event logging is much slower than our queue re... | module Main (main) where
import Control.Monad
import System.Environment
import Control.Concurrent.MVar
import Control.Concurrent
import qualified Control.Concurrent.Chan.Unagi as U
import qualified Control.Concurrent.Chan.Unagi.Unboxed as UU
import qualified Control.Concurrent.Chan.Unagi.Bounded as UB
import qualified... |
7a8d9300b9a311e5e03f8ffd5081cac76ab61f95092ad06e63e729d4dae7338b | purescript/purescript | Unify.hs | -- |
-- Functions and instances relating to unification
--
module Language.PureScript.TypeChecker.Unify
( freshType
, freshTypeWithKind
, solveType
, substituteType
, unknownsInType
, unifyTypes
, unifyRows
, alignRowsWith
, replaceTypeWildcards
, varIfUnknown
) where
import Prelude
import Contr... | null | https://raw.githubusercontent.com/purescript/purescript/042150325abf842064877ce9268fbce8df029e64/src/Language/PureScript/TypeChecker/Unify.hs | haskell | |
Functions and instances relating to unification
| Generate a fresh type variable with an unknown kind. Avoid this if at all possible.
| Generate a fresh type variable with a known kind.
| Update the substitution to solve a type constraint
We strip the position so that any errors get rethrown with the position ... | module Language.PureScript.TypeChecker.Unify
( freshType
, freshTypeWithKind
, solveType
, substituteType
, unknownsInType
, unifyTypes
, unifyRows
, alignRowsWith
, replaceTypeWildcards
, varIfUnknown
) where
import Prelude
import Control.Monad
import Control.Monad.Error.Class (MonadError(..))
... |
2793196150983dacab4a585b32411f7602a8a1d92f3bb8f800758dd154f5653c | vult-dsp/vult | interpreter.ml |
The MIT License ( MIT )
Copyright ( c ) 2016 ,
Permission is hereby granted , free of charge , to any person obtaining a copy
of this software and associated documentation files ( the " Software " ) , to deal
in the Software without restriction , including without limitation the rights
... | null | https://raw.githubusercontent.com/vult-dsp/vult/860b2b7a8e891aa729578175a931ce2a9345428b/src/core/interpreter.ml | ocaml | * Non empty list of 't'
* Used by lookupFunction to iterate the environments until the function is found
exists in the functions table and it's a single name
exists in the modules table and it is not a single name
no more environments to look for
* Looks for a function with the given name
* Used by lookupVar t... |
The MIT License ( MIT )
Copyright ( c ) 2016 ,
Permission is hereby granted , free of charge , to any person obtaining a copy
of this software and associated documentation files ( the " Software " ) , to deal
in the Software without restriction , including without limitation the rights
... |
73be2c037747f36ebb1e4728e489a7b21e3ce2ad08a033d5d6201e6c2c212240 | TheAlgorithms/Haskell | Palindrome.hs | module Maths.Palindrome where
palinedrome :: Eq a => [a] -> Bool
palinedrome xs = (xs == reverse xs)
main :: IO ()
main = do
print (palinedrome [1, 3, 1]) | null | https://raw.githubusercontent.com/TheAlgorithms/Haskell/9dcabef99fb8995a760ff25a9e0d659114c0b9d3/src/Maths/Palindrome.hs | haskell | module Maths.Palindrome where
palinedrome :: Eq a => [a] -> Bool
palinedrome xs = (xs == reverse xs)
main :: IO ()
main = do
print (palinedrome [1, 3, 1]) | |
f76088a01512529afd82bdd9e2b09d299c86ba12ad99ced6eb0b7b15480b07de | vlstill/hsExprTest | rebind.q.hs | -- @ student exts: [RebindableSyntax]
--
-- this example demonstrates how rebindable syntax can be used to disable
-- syntax constructs such as if-then-else
-- @ INJECT BEGIN
import Prelude ( Bool ( True, False ) )
-- @ INJECT END
expr = "myif"
timeout = 4
myif :: Bool -> a -> a -> a
myif True x _ = x
myif False _ ... | null | https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/examples/rebind.q.hs | haskell | @ student exts: [RebindableSyntax]
this example demonstrates how rebindable syntax can be used to disable
syntax constructs such as if-then-else
@ INJECT BEGIN
@ INJECT END |
import Prelude ( Bool ( True, False ) )
expr = "myif"
timeout = 4
myif :: Bool -> a -> a -> a
myif True x _ = x
myif False _ y = y
|
928ab97f69fc6bf6b9b522ac5d5d88cb27e1a0911bbffa9d79f42c43f06bdb52 | zerokarmaleft/tapl-haskell | Main.hs | module Main where
import Simplebool.Context
import Simplebool.Evaluator
import Simplebool.Parser
import Simplebool.Syntax
import Simplebool.Typechecker
import System.Environment
import Text.Parsec
main :: IO ()
main =
do args <- getArgs
case args of
[sourceFile] ->
do let ctx = mkContext
... | null | https://raw.githubusercontent.com/zerokarmaleft/tapl-haskell/7fced6ab1d3d4a7bbe905902ee0443b4c535c306/simplebool/src/Main.hs | haskell | module Main where
import Simplebool.Context
import Simplebool.Evaluator
import Simplebool.Parser
import Simplebool.Syntax
import Simplebool.Typechecker
import System.Environment
import Text.Parsec
main :: IO ()
main =
do args <- getArgs
case args of
[sourceFile] ->
do let ctx = mkContext
... | |
f34f1d47296af12bef2a2001c9d8734e8be59920345589350d3b146626370aed | tonyg/kali-scheme | load.scm | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1997 by NEC Research Institute , Inc. See file COPYING .
; To load Pre-Scheme, do
; ,exec ,load <this file>
(config)
(load "interface.scm")
(load "package-defs.scm")
| null | https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/prescheme/load.scm | scheme | To load Pre-Scheme, do
,exec ,load <this file> | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1997 by NEC Research Institute , Inc. See file COPYING .
(config)
(load "interface.scm")
(load "package-defs.scm")
|
49f44146319d44a80d6cdd43bf96191b73423688ddec3d1a205a54b56149cafa | rabbitmq/rabbitmq-common | code_version.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(code_version).
-export([update/1, get_otp... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-common/67c4397ffa9f51d87f994aa4db4a68e8e95326ab/src/code_version.erl | erlang |
----------------------------------------------------------------------------
API
----------------------------------------------------------------------------
----------------------------------------------------------------------------
@doc Reads the abstract code of the given `Module`, modifies it to adapt to
call... | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(code_version).
-export([update/1, get_otp_versi... |
985b401234e439b049b82b1cd99e3cf2ac73c53cb5f8a474c2f7cce162a68b3c | pavlobaron/ErlangOTPBookSamples | wechselkurs_more_tests.erl | -module(wechselkurs_more_tests).
-include_lib("eunit/include/eunit.hrl").
-include("wechselkurs.hrl").
result() ->
{ok,
#kursinfo{waehrung=eur,
zielwaehrung=usd,
eroeffnungskurs = 1.32362,
schlusskurs = 1.32545,
tageshoch = 1.33220,
tagestief = 1.31642, ... | null | https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/entwicklung/wechselkurs/test/wechselkurs_more_tests.erl | erlang | -module(wechselkurs_more_tests).
-include_lib("eunit/include/eunit.hrl").
-include("wechselkurs.hrl").
result() ->
{ok,
#kursinfo{waehrung=eur,
zielwaehrung=usd,
eroeffnungskurs = 1.32362,
schlusskurs = 1.32545,
tageshoch = 1.33220,
tagestief = 1.31642, ... | |
f63e346a61040c91445d5ca430893e7df6ceeeef5b9cf076fdd9e18036fb63a5 | tjammer/raylib-ocaml | configure.ml | module C = Configurator.V1
let rec link ?(flag = "-l") = function
| [] -> []
| lib :: libs -> "-cclib" :: (flag ^ " " ^ lib) :: link ~flag libs
let () =
C.main ~name:"raylib" (fun c ->
let library_flags =
match C.ocaml_config_var c "system" with
| Some ("linux" | "linux_elf" | "elf") ->
... | null | https://raw.githubusercontent.com/tjammer/raylib-ocaml/7cec56a732645e53c901109b987d8c7fb3f2c271/src/c/config/configure.ml | ocaml | module C = Configurator.V1
let rec link ?(flag = "-l") = function
| [] -> []
| lib :: libs -> "-cclib" :: (flag ^ " " ^ lib) :: link ~flag libs
let () =
C.main ~name:"raylib" (fun c ->
let library_flags =
match C.ocaml_config_var c "system" with
| Some ("linux" | "linux_elf" | "elf") ->
... | |
4609e82e981d562319bba8bde269b830cf6da9110272930ffaa596a612c19a9d | rubenbarroso/EOPL | 1_9.scm | ;This version of remove:
(define remove
(lambda (s los)
(if (null? los)
'()
(if (eqv? (car los) s)
(remove s (cdr los))
(remove s (cdr los))))))
;is transformed into:
(define remove2
(lambda (s los)
(if (null? los)
'()
(remove2 s (cdr los)))))
;whi... | null | https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/chapter1/1_9.scm | scheme | This version of remove:
is transformed into:
which returns always the empty list. Let's check it:
> (remove2 'a '(a b c))
()
> (remove2 'a '())
()
> (remove2 'a '(b c d e))
() |
(define remove
(lambda (s los)
(if (null? los)
'()
(if (eqv? (car los) s)
(remove s (cdr los))
(remove s (cdr los))))))
(define remove2
(lambda (s los)
(if (null? los)
'()
(remove2 s (cdr los)))))
|
325ff324a18e63e152a1498247929f74d0ecd4549e27547a4d0a56258debaaa1 | maiste/equinoxe | equinoxe.ml | (*****************************************************************************)
(* Open Source License *)
Copyright ( c ) 2021 - present < >
(* *)
(* Permission is hereby gra... | null | https://raw.githubusercontent.com/maiste/equinoxe/03919122465e48eb6e9beb18bd195866d58d7080/src/equinoxe/equinoxe.ml | ocaml | ***************************************************************************
Open Source License
Permission is hereby granted, free of charge, to any person obtaining a
copy of this so... | Copyright ( c ) 2021 - present < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN ACT... |
4e797763d7b083e64d0501a1ff53e91122e31b29094bf2734dd008c00710eabe | aryx/fork-efuns | buffer_menu.ml |
*
* Copyright ( C ) 2015
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file license.txt .... | null | https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/major_modes/buffer_menu.ml | ocaml | ***************************************************************************
Prelude
***************************************************************************
A port of my (colorized) buffer-menu from emacs to efuns.
*
* todo:
* - D, X to delete buffers and execute plan
***************************************... |
*
* Copyright ( C ) 2015
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file license.txt .... |
af8bed9a7ab8fd98b581e73d83f090d3429809519c6d78255c99025828aba00c | cburgmer/buildviz | junit_xml_test.clj | (ns buildviz.data.junit-xml-test
(:require [buildviz.data.junit-xml :as junit-xml]
[clojure
[test :refer :all]
[walk :refer :all]]))
(deftest test-parse-testsuites
(testing "status"
(is (= [{:name "a suite"
:children [{:name "a test"
:... | null | https://raw.githubusercontent.com/cburgmer/buildviz/c012003beb069730a1e667b60fa7df77b934e1c9/test/buildviz/data/junit_xml_test.clj | clojure | (ns buildviz.data.junit-xml-test
(:require [buildviz.data.junit-xml :as junit-xml]
[clojure
[test :refer :all]
[walk :refer :all]]))
(deftest test-parse-testsuites
(testing "status"
(is (= [{:name "a suite"
:children [{:name "a test"
:... | |
9d987d7104bf27a4a5e3d9209916b9fa73c21bcb0503b26413744b9f7fd1a214 | clj-commons/clj-yaml | build_shared.clj | (ns build-shared
"a few things that are both needed by bb script code and build.clj"
(:require [clojure.string :as string]
[clojure.edn :as edn]))
(defn- project-info []
(-> (edn/read-string (slurp "deps.edn"))
:aliases :neil :project))
(def version-tag-prefix "v")
(defn lib-version []
(-> ... | null | https://raw.githubusercontent.com/clj-commons/clj-yaml/1d3a87efd410c9854dceb3e7038fec7f3b90d649/build/build_shared.clj | clojure | (ns build-shared
"a few things that are both needed by bb script code and build.clj"
(:require [clojure.string :as string]
[clojure.edn :as edn]))
(defn- project-info []
(-> (edn/read-string (slurp "deps.edn"))
:aliases :neil :project))
(def version-tag-prefix "v")
(defn lib-version []
(-> ... | |
4e30b8c49aff19745296037a46a9b1af6bdd0b179e7234b4107a814e1377038b | andrewMacmurray/haskell-book-solutions | ReaderT.hs | # LANGUAGE InstanceSigs #
module Ch26.ReaderT where
newtype ReaderT r m a = ReaderT {
runReaderT :: r -> m a
}
instance Functor m => Functor (ReaderT r m) where
fmap f (ReaderT rma) = ReaderT $ (fmap . fmap) f rma
instance Applicative m => Applicative (ReaderT r m) where
pure a = ReaderT $ (pure . pure) a
... | null | https://raw.githubusercontent.com/andrewMacmurray/haskell-book-solutions/f4fd386187c03828d1736d9a43642ab4f0ec6462/src/ch26/ReaderT.hs | haskell | # LANGUAGE InstanceSigs #
module Ch26.ReaderT where
newtype ReaderT r m a = ReaderT {
runReaderT :: r -> m a
}
instance Functor m => Functor (ReaderT r m) where
fmap f (ReaderT rma) = ReaderT $ (fmap . fmap) f rma
instance Applicative m => Applicative (ReaderT r m) where
pure a = ReaderT $ (pure . pure) a
... | |
89652528191e7155c624f597f6a73fb2e3eed92d6bdc1dda9fa381e0184c22ae | takeoutweight/clojure-scheme | macros.clj | (ns cljs.macro-test.macros
(:refer-clojure :exclude [==]))
(defmacro == [a b]
`(+ ~a ~b)) | null | https://raw.githubusercontent.com/takeoutweight/clojure-scheme/6121de1690a6a52c7dbbe7fa722aaf3ddd4920dd/test/cljs/cljs/macro_test/macros.clj | clojure | (ns cljs.macro-test.macros
(:refer-clojure :exclude [==]))
(defmacro == [a b]
`(+ ~a ~b)) | |
be7b054fb5879e06f42f01e0b0a6dd29ea7f93b027c66fa42f8629c1e733b26e | AndrewMagerman/wizard-book-study | mceval.rkt | #lang racket
(require (planet dyoo/simply-scheme))
(provide (all-defined-out))
(require compatibility/mlist)
METACIRCULAR EVALUATOR FROM CHAPTER 4 ( SECTIONS 4.1.1 - 4.1.4 ) of
;;;; STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS
;;;;Matches code in ch4.scm
;;;;This file can be loaded into Scheme as a whole.
;;;;... | null | https://raw.githubusercontent.com/AndrewMagerman/wizard-book-study/779854631f17164cbddecf3fde102504df1a83f0/reference/cs61as_library/mceval.rkt | racket | STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS
Matches code in ch4.scm
This file can be loaded into Scheme as a whole.
Then you can initialize and start the evaluator by evaluating
no else clause
SECTION 4.1.3
[do later] (define the-global-environment (setup-environment))
more primitives
[moved to start of f... | #lang racket
(require (planet dyoo/simply-scheme))
(provide (all-defined-out))
(require compatibility/mlist)
METACIRCULAR EVALUATOR FROM CHAPTER 4 ( SECTIONS 4.1.1 - 4.1.4 ) of
the expression ( ) .
from section 4.1.4 -- must precede def of metacircular apply
(define apply-in-underlying-scheme apply)
SECTION 4.... |
ff80a5c7f4ab81a963dfd2df961ba9934407ff7698966d5320628a84e25f9720 | teknql/systemic | internal.clj | (ns systemic.internal
"Internal namespace used by systemic macros"
{:no-doc true}
(:require [clojure.walk :as walk]
[clojure.set :as set]))
(defn extract-arg
"Utility function for extracting arguments from a list.
Returns a tuple of the value matching the `pred` if it returns logical true and the... | null | https://raw.githubusercontent.com/teknql/systemic/d6e4ddc16bc08c7823e2c775084530867b1a03e0/src/systemic/internal.clj | clojure | (ns systemic.internal
"Internal namespace used by systemic macros"
{:no-doc true}
(:require [clojure.walk :as walk]
[clojure.set :as set]))
(defn extract-arg
"Utility function for extracting arguments from a list.
Returns a tuple of the value matching the `pred` if it returns logical true and the... | |
30e39901fea306493ac91f54aa7dfafad49d1f684349c17033e189fc1e9aba4c | tomjridge/tjr_simple_earley | log.ml | let log (x:unit Lazy.t) = Lazy.force x
| null | https://raw.githubusercontent.com/tomjridge/tjr_simple_earley/ca558e0e7f4ddba4cd6573bf180710cd02f25ba4/_archive/.dockerfile/tjr_simple_earley/src/log.ml | ocaml | let log (x:unit Lazy.t) = Lazy.force x
| |
40be0f8f506f4ec0100a94fc5efa02bd2de3ea868c4cadfdcf451a913392fd0b | roosta/herb | runtime.cljs | (ns herb.runtime
(:require [goog.dom :as dom]
[goog.object :as gobj]
[garden.core :refer [css]]
[garden.selectors :as s]))
(def dev? ^boolean js/goog.DEBUG)
(defonce
^{:private true
:doc "Atom containing all styles added to DOM. Takes the form of a map with
classnames as ... | null | https://raw.githubusercontent.com/roosta/herb/64afb133a7bf51d7171a3c5260584c09dbe4e504/src/herb/runtime.cljs | clojure | (ns herb.runtime
(:require [goog.dom :as dom]
[goog.object :as gobj]
[garden.core :refer [css]]
[garden.selectors :as s]))
(def dev? ^boolean js/goog.DEBUG)
(defonce
^{:private true
:doc "Atom containing all styles added to DOM. Takes the form of a map with
classnames as ... | |
b974ba75f2115a420a55c4c7d74bba9184e0cbf7b0b016c37965baa2ca62bf76 | mtolly/rail | Expression.hs | # LANGUAGE GADTs , StandaloneDeriving #
-- | Optimize Rail functions so sequences of stack operations are replaced with
-- expressions, which can translate directly to high-level language expressions.
module Language.Rail.Expression where
import Data.Char (isSpace)
import Data.List (genericLength)
import Data.Control... | null | https://raw.githubusercontent.com/mtolly/rail/0fdd7fc1061d3b5ee18766aff0e71dbba20843b1/src/Language/Rail/Expression.hs | haskell | | Optimize Rail functions so sequences of stack operations are replaced with
expressions, which can translate directly to high-level language expressions.
| An expression is a side-effect-free value that can be converted to a linear
sequence of stack operations. Its value depends only on local variables at
the tim... | # LANGUAGE GADTs , StandaloneDeriving #
module Language.Rail.Expression where
import Data.Char (isSpace)
import Data.List (genericLength)
import Data.ControlFlow
import qualified Language.Rail.Base as R
import Language.Rail.Base (Command(), Val(), Result())
data Expr a where
Str :: String -> Expr String
Int :: I... |
f008e364405ae9e1248cdcf7dd6f3896962eefb0bc1f18b3e0c7b263eca8fcbe | modular-macros/ocaml-macros | weaktest.ml | let debug = false;;
open Printf;;
module Hashed = struct
type t = string list;;
let equal x y =
eprintf "equal: %s / %s\n" (List.hd x) (List.hd y);
x = y
;;
let hash x = Hashtbl.hash (List.hd x);;
end;;
module HT = Weak.Make (Hashed);;
let tbl = HT.create 7;;
let r = ref [];;
let bunch =
if Arra... | null | https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/misc/weaktest.ml | ocaml | let debug = false;;
open Printf;;
module Hashed = struct
type t = string list;;
let equal x y =
eprintf "equal: %s / %s\n" (List.hd x) (List.hd y);
x = y
;;
let hash x = Hashtbl.hash (List.hd x);;
end;;
module HT = Weak.Make (Hashed);;
let tbl = HT.create 7;;
let r = ref [];;
let bunch =
if Arra... | |
23584c1b57b327f9c5b26752d79f12a1d8d9d5ff7d4331a4f25c9dc5ba29dadb | intermine/bluegenes | core.cljs | (ns bluegenes.pages.templates.core
(:require [bluegenes.pages.templates.events]
[bluegenes.pages.templates.subs])) | null | https://raw.githubusercontent.com/intermine/bluegenes/417ea23b2d00fdca20ce4810bb2838326a09010e/src/cljs/bluegenes/pages/templates/core.cljs | clojure | (ns bluegenes.pages.templates.core
(:require [bluegenes.pages.templates.events]
[bluegenes.pages.templates.subs])) | |
2c838778a72d47d8bdb11d9557f0ccf689dc4c2af5022cad0ee91257618fbafc | gregtatcam/imaplet-lwt | irmin_storage.ml |
* Copyright ( c ) 2013 - 2014 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND... | null | https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/lib/commands/irmin_storage.ml | ocaml | user
status
select mailbox
examine mailbox
create mailbox
delete mailbox
subscribe mailbox.
* subscribe and unsubscribe should be in a separate module TBD
unsubscribe mailbox
list
* returns list of files/folders with list of flags
append message(s) to selected mailbox
delete a messag... |
* Copyright ( c ) 2013 - 2014 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND... |
179476c5561a554f117aadaabb8f5e58418367a08de82f19d7a12ab847cdffd4 | rescript-lang/rescript-compiler | js_vector.mli | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or
* ( at your option ) any later... | null | https://raw.githubusercontent.com/rescript-lang/rescript-compiler/c3fcc430360079546a6aabd2b2770303480f8486/jscomp/others/js_vector.mli | ocaml | * shallow copy
[@@deprecated "Use Js.List.toVector instead"]
val ofList : 'a list -> 'a t
* Return the length (number of elements) of the given array.
*
`Vector.set(a, n, x)` modifies vector `a` in place, replacing element number
`n` with `x`. Raise `Invalid_argument "index out of bounds"` if `n` is outside
the... | Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or
* ( at your option ) any later... |
56f0ec244ccb101965f23c7b41bdc6b528d71ded226ca0ae5fffe5f5dda2abef | conal/circat | ShowUtils.hs | { - # LANGUAGE # - }
# OPTIONS_GHC -Wall #
{ - # OPTIONS_GHC -fno - warn - unused - imports # - } -- TEMP
{ - # OPTIONS_GHC -fno - warn - unused - binds # - } -- TEMP
----------------------------------------------------------------------
-- |
-- Module : Circat.ShowUtils
Copyright : ( c ) 2014 T... | null | https://raw.githubusercontent.com/conal/circat/083155b1aafe523fb0df84aaa107064b36c1fd0d/src/Circat/ShowUtils.hs | haskell | TEMP
TEMP
--------------------------------------------------------------------
|
Module : Circat.ShowUtils
Maintainer :
Stability : experimental
Show-related utilities
--------------------------------------------------------------------
Show for all type arguments | { - # LANGUAGE # - }
# OPTIONS_GHC -Wall #
Copyright : ( c ) 2014 Tabula , Inc.
module Circat.ShowUtils (Show'(..)) where
class Show' f where
show' :: f a -> String
showsPrec' :: Int -> f a -> ShowS
showsPrec' _ x s = show' x ++ s
show' x = showsPrec' 0 x ""
|
b982426ff79f18f36d283d2ddfdb0bbc39f3e3bb087a5ed3acec30a906cb8987 | RefactoringTools/wrangler | refac_lists_concat.erl | %%%-------------------------------------------------------------------
@author < >
( C ) 2014 , ,
%%% @doc
Lists Concatenation - Simplifies lists concatenations . This refactoring uses Wrangler API and can be found in < em > Wrangler - > Refactor - > gen_refac Refacs - > Symbolic Evaluation - > L... | null | https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/symbolic_evaluation/refactorings/refac_lists_concat.erl | erlang | -------------------------------------------------------------------
@doc
For more details of the transformation, please refer to <a href="../core/core_lists_concat.html">Lists Concatenation Core</a>.
@end
Include files
===================================================================
gen_refac callbacks
=======... | @author < >
( C ) 2014 , ,
Lists Concatenation - Simplifies lists concatenations . This refactoring uses Wrangler API and can be found in < em > Wrangler - > Refactor - > gen_refac Refacs - > Symbolic Evaluation - > Lists Concatenation</em > .
-module(refac_lists_concat).
-behaviour(gen_refac).
... |
be67d0d9bdc299efc51bd647797ea7aa5e973a83f7d934bc12f716ec57672cf5 | tweag/ormolu | deriving-strategies.hs | module Main where
-- | Something.
newtype Foo = Foo Int
deriving stock (Eq, Show, Generic)
deriving anyclass
( ToJSON
, FromJSON
)
deriving newtype (Num)
deriving Monoid via (Sum Int)
deriving Semigroup
via (Sum Int)
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/data/deriving-strategies.hs | haskell | | Something. | module Main where
newtype Foo = Foo Int
deriving stock (Eq, Show, Generic)
deriving anyclass
( ToJSON
, FromJSON
)
deriving newtype (Num)
deriving Monoid via (Sum Int)
deriving Semigroup
via (Sum Int)
|
4668d72d02cff6abe9a84e030bce844f00c65b7c44294eb40012755ffd841774 | WhatsApp/eqwalizer | eqwater_maps.erl | Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved .
%%%
This source code is licensed under the Apache 2.0 license found in
%%% the LICENSE file in the root directory of this source tree.
-module(eqwater_maps).
-compile([export_all, nowarn_export_all]).
-spec map_occ_01(#{a := integer()} ... | null | https://raw.githubusercontent.com/WhatsApp/eqwalizer/8017d486c025eaa5c35ced1481ad5bad0f665efa/eqwalizer/test_projects/eqwater/src/eqwater_maps.erl | erlang |
the LICENSE file in the root directory of this source tree. | Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved .
This source code is licensed under the Apache 2.0 license found in
-module(eqwater_maps).
-compile([export_all, nowarn_export_all]).
-spec map_occ_01(#{a := integer()} | ok) -> ok.
map_occ_01(#{a := I}) when is_integer(I) -> ok;
map_occ... |
3a71d620ed4f1ba61bade055d2d6aa40999728f75c976ea25d4c06cb9ee32c3e | facebook/flow | merge_service.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/9107dc65a33ad61e605dedbabd477971c422902d/src/services/inference/merge_service.ml | ocaml | The module type of a resource dependency only depends on the file
* extension. See Type_sig_merge.merge_resource_module_t
A dependency which is not part of the cycle has already been merged and its
* hashes are stored in shared memory. We can create a checked_dep record
* containing accessors to those hashe... |
* 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... |
14aade0fd2478e1bac4546270b17bd81818879d3b719fceabdae9f692bb4ed87 | mpickering/apply-refact | Default88.hs | test = foo . not . not | null | https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Default88.hs | haskell | test = foo . not . not | |
653928b9e367f00c5b0dadf95edcff269917422afac3ee8af06a280502abb134 | achirkin/vulkan | VK_EXT_image_drm_format_modifier.hs | # OPTIONS_GHC -fno - warn - orphans #
# OPTIONS_HADDOCK not - home #
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE ForeignFunctionInterface #
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LA... | null | https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_EXT_image_drm_format_modifier.hs | haskell | # LANGUAGE CPP #
# LANGUAGE DataKinds #
# LANGUAGE MagicHash #
# LANGUAGE PatternSynonyms #
# LANGUAGE Strict #
# LANGUAGE TypeFamilies #
# LANGUAGE ViewPatterns #
> #include "vk_platform.h"
# INLINE _VkGetImageDrmFor... | # OPTIONS_GHC -fno - warn - orphans #
# OPTIONS_HADDOCK not - home #
# LANGUAGE FlexibleInstances #
# LANGUAGE ForeignFunctionInterface #
module Graphics.Vulkan.Ext.VK_EXT_image_drm_format_modifier
(AHardwareBuffer(), ANativeWindow(), CAMetalLayer(), VkBool32(..),
VkDeviceAddress(..), VkDeviceSiz... |
0b753f13f7885745e82690d66680ea295355b3ae8ade93290782239e0dac9378 | rundis/acme-buddy | project.clj | (defproject acme-webstore "0.1.0-SNAPSHOT"
:description "Acme Corp Web Store"
:url "-buddy/acme-webstore"
:min-lein-version "2.0.0"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[compojure "1.2.1"]
[ring "1... | null | https://raw.githubusercontent.com/rundis/acme-buddy/4134ee33391c858c1c6c517eb22f65aaff34a40e/acme-webstore/project.clj | clojure | (defproject acme-webstore "0.1.0-SNAPSHOT"
:description "Acme Corp Web Store"
:url "-buddy/acme-webstore"
:min-lein-version "2.0.0"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[compojure "1.2.1"]
[ring "1... | |
ae16dd8e6c9474c0767246ec3f67437c740cfc04b8eb3d8088f7ff9b81c0fccd | weblocks-framework/weblocks | stores.lisp |
(in-package :employer-employee)
;;; Multiple stores may be defined. The last defined store will be the
default . In the case of weblocks demo static store configuration
;;; isn't used - we dynamically create stores for each session because
;;; we need to sandbox users. We only create static configurations to
;;; lo... | null | https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/contrib/yarek/examples/employer-employee/conf/stores.lisp | lisp | Multiple stores may be defined. The last defined store will be the
isn't used - we dynamically create stores for each session because
we need to sandbox users. We only create static configurations to
load appropriate store code during application startup.
Memory store
Prevalence store...
:database-type :m... |
(in-package :employer-employee)
default . In the case of weblocks demo static store configuration
(defstore *scratch-store* :memory)
(defstore *prevalence-store* :prevalence
(merge-pathnames (make-pathname :directory '(:relative "data"))
(asdf-system-directory :employer-employee)))
CLSQL s... |
037fab7458340909660630fd40040e0c2837a332c851e012b36e29b9ccb75041 | jiesoul/soul-talk | site.clj | (ns soul-talk.site
(:require [compojure.api.sweet :refer :all]
[compojure.api.meta :refer [restructure-param]]
[soul-talk.middleware :as m]
[soul-talk.site-info.routes :as site-info]
[soul-talk.app-key.routes :as app-key]
[soul-talk.data-dic.routes :as data-... | null | https://raw.githubusercontent.com/jiesoul/soul-talk/630de08c6549b206d59023764d5f2576d97d1030/api/src/soul_talk/site.clj | clojure | 如果需要这里添加路由,请拷贝此方法到路由文件。 | (ns soul-talk.site
(:require [compojure.api.sweet :refer :all]
[compojure.api.meta :refer [restructure-param]]
[soul-talk.middleware :as m]
[soul-talk.site-info.routes :as site-info]
[soul-talk.app-key.routes :as app-key]
[soul-talk.data-dic.routes :as data-... |
82fb96b7d7f06611bafaa1c42452ba7104a7fcc9b7c9f0b01bb2075e9f6f0e52 | conjure-cp/conjure | TildeOrdering.hs | # LANGUAGE QuasiQuotes #
module Conjure.Rules.TildeOrdering where
import Conjure.Rules.Import
rule_BoolInt :: Rule
rule_BoolInt = "tildeOrd-bool-int" `namedRule` theRule where
theRule [essence| &x ~< &y |] = do
tyx <- typeOf x
tyy <- typeOf y
case mostDefined [tyx, tyy] of
Ty... | null | https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Rules/TildeOrdering.hs | haskell | there exists an i, where freq_x is smaller than freq_y
and all j's (s.t. j<i), freq_x = freq_y
i.e. all those that are smaller than the ith occur equal nb times
if i is a toSet, that doesn't contain any duplicates anyway, stip the toSet | # LANGUAGE QuasiQuotes #
module Conjure.Rules.TildeOrdering where
import Conjure.Rules.Import
rule_BoolInt :: Rule
rule_BoolInt = "tildeOrd-bool-int" `namedRule` theRule where
theRule [essence| &x ~< &y |] = do
tyx <- typeOf x
tyy <- typeOf y
case mostDefined [tyx, tyy] of
Ty... |
642ebb5d4251f8c97d7256b4a2a391862d4d139e66d4b490940690937f186136 | mfoemmel/erlang-otp | wxBrush.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pub... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxBrush.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 2008 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(wxBrush).
-include("wxe.hrl").
-e... |
a4b065ec323156fe0546be9faf7ad9ed1ad8e1a3c268d1d4b82ea6296a9448dd | LeventErkok/sbv | Birthday.hs | -----------------------------------------------------------------------------
-- |
-- Module : BenchSuite.Puzzles.Birthday
Copyright : ( c )
-- License : BSD3
-- Maintainer:
-- Stability : experimental
--
Bench suite for Documentation . SBV.Examples . Puzzles . Birthday
-----------------... | null | https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/SBVBenchSuite/BenchSuite/Puzzles/Birthday.hs | haskell | ---------------------------------------------------------------------------
|
Module : BenchSuite.Puzzles.Birthday
License : BSD3
Maintainer:
Stability : experimental
---------------------------------------------------------------------------
# OPTIONS_GHC -Wall -Werror #
benchmark suite | Copyright : ( c )
Bench suite for Documentation . SBV.Examples . Puzzles . Birthday
module BenchSuite.Puzzles.Birthday(benchmarks) where
import Documentation.SBV.Examples.Puzzles.Birthday
import BenchSuite.Bench.Bench as S
import Utils.SBVBenchFramework
benchmarks :: Runner
benchmarks = ... |
0084795ad20226921b1dc37113780a076c04d867514d7dc99b700a57a611a8a1 | yallop/ocaml-ctypes | process_summary.ml | type point = {
configuration : string;
parameter : int;
time : float;
time_err : float * float;
cycles : float;
cycles_err : float * float;
}
let split_on_colon s =
let i = String.index s ':' in
String.sub s 0 i, String.sub s (i + 1) (String.length s - i - 1)
let early_float s = Scanf.sscanf s "%f" (f... | null | https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/bench-micro/process_summary.ml | ocaml | type point = {
configuration : string;
parameter : int;
time : float;
time_err : float * float;
cycles : float;
cycles_err : float * float;
}
let split_on_colon s =
let i = String.index s ':' in
String.sub s 0 i, String.sub s (i + 1) (String.length s - i - 1)
let early_float s = Scanf.sscanf s "%f" (f... | |
0efa6a3e249f2b821aba7808162265ba502587cd7b7dfed96aea983b8c631d14 | nasa/Common-Metadata-Repository | generic_documents.clj | (ns cmr.ingest.api.generic-documents
"Subscription ingest functions in support of the ingest API."
(:require
[camel-snake-kebab.core :as csk]
[cheshire.core :as json]
[clojure.java.io :as jio]
[clojure.set :as set]
[cmr.acl.core :as acl]
[cmr.common-app.api.launchpad-token-validation :as lt-valida... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/7a217ca3758f9f7b2d894f31d0e23c42819cc3e0/ingest-app/src/cmr/ingest/api/generic_documents.clj | clojure | Log the successful ingest, with the metadata size in bytes.
name is added just for the logging above.
dissoc it so that it remains the same as the
original code. | (ns cmr.ingest.api.generic-documents
"Subscription ingest functions in support of the ingest API."
(:require
[camel-snake-kebab.core :as csk]
[cheshire.core :as json]
[clojure.java.io :as jio]
[clojure.set :as set]
[cmr.acl.core :as acl]
[cmr.common-app.api.launchpad-token-validation :as lt-valida... |
4133df65f5c8b7d3d718e9ab4b490e589c9adda17a7faa99cae0f3d5175eca97 | larcenists/larceny | 16locals3.scm | (bits 16)
(text
(nop)
(label bar (jmp quux))
(locals (bar quux)
(nop)
(label bar
(jmp quux)
(nop))
(label quux
(jmp bar)
(nop)))
(label quux (jmp bar)))
00000000 90 nop
00000001 E90900 jmp 0xd
00000004 90 nop
00000... | null | https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/src/Lib/Sassy/tests/prims16/16locals3.scm | scheme | (bits 16)
(text
(nop)
(label bar (jmp quux))
(locals (bar quux)
(nop)
(label bar
(jmp quux)
(nop))
(label quux
(jmp bar)
(nop)))
(label quux (jmp bar)))
00000000 90 nop
00000001 E90900 jmp 0xd
00000004 90 nop
00000... | |
3953062cb6337f2a34f8577974d21e56cba76d3bb4a0e8118e0909fa3b657f23 | TaylanUB/scheme-bytestructures | union.scm | (define-module (bytestructures guile union))
(import
(srfi :9)
(srfi :11)
(bytestructures guile bytevectors)
(bytestructures guile utils)
(bytestructures guile base))
(include-from-path "bytestructures/body/align.scm")
(include-from-path "bytestructures/body/union.scm")
(include-from-path "bytestructures/r7/union.... | null | https://raw.githubusercontent.com/TaylanUB/scheme-bytestructures/27cadba6b69a01b38b33bb39b9766d713eb90c1b/bytestructures/guile/union.scm | scheme | (define-module (bytestructures guile union))
(import
(srfi :9)
(srfi :11)
(bytestructures guile bytevectors)
(bytestructures guile utils)
(bytestructures guile base))
(include-from-path "bytestructures/body/align.scm")
(include-from-path "bytestructures/body/union.scm")
(include-from-path "bytestructures/r7/union.... | |
0875c4cc94db47f5c31bd425e66aabb963bb036ecb7db8068412f0b9ad17a760 | dfithian/th-tutorial | Exercise02.hs | module Solved.Exercise02 where
import ClassyPrelude hiding (stripPrefix)
import Data.List (stripPrefix)
import Language.Haskell.TH
data Pet
= PetDog
| PetCat
| PetTeddyBear
deriving (Eq, Show)
class PrettyShow a where
prettyShow :: a -> Text
trimAndLowerTH :: Name -> Name -> Q String
trimAndLowerTH tyName... | null | https://raw.githubusercontent.com/dfithian/th-tutorial/dd083682b92ff311e17b2eeb059ba79b29d7f183/solved/src/Solved/Exercise02.hs | haskell | module Solved.Exercise02 where
import ClassyPrelude hiding (stripPrefix)
import Data.List (stripPrefix)
import Language.Haskell.TH
data Pet
= PetDog
| PetCat
| PetTeddyBear
deriving (Eq, Show)
class PrettyShow a where
prettyShow :: a -> Text
trimAndLowerTH :: Name -> Name -> Q String
trimAndLowerTH tyName... | |
28ae7c1205c57b7df2755baec5e2f446e60655e79c199fe11e08b998a907a13e | ruanpienaar/goanna | goanna_forward_shell_tests.erl | -module(goanna_forward_shell_tests).
-include_lib("eunit/include/eunit.hrl").
forward_init_test() ->
?assertMatch(
{ok, _},
goanna_forward_shell:forward_init('childId')
).
forward_test() ->
?assertEqual(
ok,
goanna_forward_shell:forward(
self(),
{'ch... | null | https://raw.githubusercontent.com/ruanpienaar/goanna/52d75566fd6f9760fbdebe53b2ca3c82fdb44e01/test/goanna_forward_shell_tests.erl | erlang | -module(goanna_forward_shell_tests).
-include_lib("eunit/include/eunit.hrl").
forward_init_test() ->
?assertMatch(
{ok, _},
goanna_forward_shell:forward_init('childId')
).
forward_test() ->
?assertEqual(
ok,
goanna_forward_shell:forward(
self(),
{'ch... | |
f44e97e2c38d0c15fa22c02ce40589558ac688627590bcbf3ce0d6fc91adc578 | namin/clpsmt-miniKanren | test-header.scm | (load "mk.scm")
(load "z3-driver.scm")
(load "test-check.scm")
| null | https://raw.githubusercontent.com/namin/clpsmt-miniKanren/4fa74fb973c95b7913f0e0239852f18a23073ccc/test-header.scm | scheme | (load "mk.scm")
(load "z3-driver.scm")
(load "test-check.scm")
| |
57c531613b64b6677f787f9b120b1f2ae355437282d4ccd72b24a94fe4c18af6 | cenary-lang/cenary | CodegenM.hs | {-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveFunctor #-}
# LANGUAGE FlexibleContexts #
module Cenary.Codegen.CodegenM where
import Cenary.Codegen.CodegenError
import Cenary.Codegen.CodegenState
import Cenary.Codegen.ContextM
import Cenary.Codegen.Memory
import ... | null | https://raw.githubusercontent.com/cenary-lang/cenary/bf5ab4ac6bbc2353b072d32de2f3bc86cbc88266/src/Cenary/Codegen/CodegenM.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DeriveFunctor #
at top level we use all contexts | # LANGUAGE FlexibleContexts #
module Cenary.Codegen.CodegenM where
import Cenary.Codegen.CodegenError
import Cenary.Codegen.CodegenState
import Cenary.Codegen.ContextM
import Cenary.Codegen.Memory
import Cenary.Codegen.TcM
import Cenary.EvmAPI.OpcodeM
import... |
7ee426be24f9f43f310020c44388a4318a44ab943b5820cd22e8052dcce61ac4 | seckcoder/iu_c311 | interp.rkt | ; interpreter of let-lang
#lang eopl
(require "../base/utils.rkt")
(require racket/file)
(provide (all-defined-out))
; expval := Int | Bool | Proc
; during the implemention, I find this datatype actually
; useless...
(define-datatype
expval expval?
(numval
(int integer?))
(boolval
(bool boolean?))
(... | null | https://raw.githubusercontent.com/seckcoder/iu_c311/a1215983b6ab08df32058ef1e089cb294419e567/racket/letrec-multi-declare/interp.rkt | racket | interpreter of let-lang
expval := Int | Bool | Proc
during the implemention, I find this datatype actually
useless...
environment
env := '() | (var val env)
grammer
the following example is used to identify scoping of the proc-lang.
for multi args test
test block
(display (list-the-datatypes)) |
#lang eopl
(require "../base/utils.rkt")
(require racket/file)
(provide (all-defined-out))
(define-datatype
expval expval?
(numval
(int integer?))
(boolval
(bool boolean?))
(procval
(var symbol?)
(body anything?)))
(define-datatype
proc proc?
(closure
(vars (list-of symbol?))
(b... |
c858609135e59702f70b8e3d86b9f877f3964a58c05338274696270a20a73e84 | ocamllabs/ocaml-effects | odoc_dep.ml | (***********************************************************************)
(* *)
(* OCamldoc *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/ocamldoc/odoc_dep.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 .
module StrS = Depend.StringSet
module Mod... |
5d7457f82a504ca12563aed7c8f3863b5d34242083bac83fda9e815b662877bd | ih/ikarus.dev | prefix-ikarus.scm | ;INSERTCODE
;------------------------------------------------------------------------------
;(define depth (make-parameter 0))
;(current-eval
; (lambda (x)
( parameterize ( [ depth ( + ( depth ) 1 ) ] )
; (printf "[~s] compiling \n" (depth))
; (pretty-print x)
; (alt-compile x))))
;(current-eval ... | null | https://raw.githubusercontent.com/ih/ikarus.dev/8bb0c8e4d1122cf0f9aeb675cb51bc7df178959b/benchmarks.larceny/prefix/prefix-ikarus.scm | scheme | INSERTCODE
------------------------------------------------------------------------------
(define depth (make-parameter 0))
(current-eval
(lambda (x)
(printf "[~s] compiling \n" (depth))
(pretty-print x)
(alt-compile x))))
(current-eval alt-compile)
(define-syntax if-fixflo (syntax-rules () ((if-fi... |
( parameterize ( [ depth ( + ( depth ) 1 ) ] )
(define (run-bench name count ok? run)
(let loop ((i 0) (result (list 'undefined)))
(if (< i count)
(loop (+ i 1) (run))
result)))
(define (run-benchmark name count ok? run-maker . args)
(newline)
(let* ((run (apply run-maker args))
... |
36555324c50d13be3c041b14eb3b119dc21ee9a656f1b229a0cba753bc0711da | finnishtransportagency/harja | perus.cljs | (ns harja.ui.grid.perus
"Harjan käyttöön soveltuva geneerinen muokattava ruudukkokomponentti."
(:require [reagent.core :refer [atom] :as r]
[harja.loki :refer [log tarkkaile! logt] :refer-macros [mittaa-aika]]
[harja.ui.yleiset :refer [ajax-loader linkki livi-pudotusvalikko virheen-ohje vihj... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/d2c3efc456f459e72943c97c369d5391b57f5536/src/cljs/harja/ui/grid/perus.cljs | clojure | Rivin valinta
Solu
muokattu datajoukko
id:t indekseissä (tai otsikko)
validointivirheet: (:id rivi) => [virheet]
validointivaroitukset: (:id rivi) => [varoitukset]
sulje vetolaatikot | (ns harja.ui.grid.perus
"Harjan käyttöön soveltuva geneerinen muokattava ruudukkokomponentti."
(:require [reagent.core :refer [atom] :as r]
[harja.loki :refer [log tarkkaile! logt] :refer-macros [mittaa-aika]]
[harja.ui.yleiset :refer [ajax-loader linkki livi-pudotusvalikko virheen-ohje vihj... |
e76608f8d4e004d38e0a4a37d3b4d0fa7e3ea337843adff0de7d2822c90ceb2d | ar-nelson/schemepunk | vector.scm |
(define (vector-unfold! f vec start end . o)
(let lp ((i start) (seeds o))
(if (< i end)
(call-with-values (lambda () (apply f i seeds))
(lambda (x . seeds)
(vector-set! vec i x)
(lp (+ i 1) seeds))))))
(define (vector-unfold-right! f vec start end . o)
(let lp ((i (-... | null | https://raw.githubusercontent.com/ar-nelson/schemepunk/e2840d3c445933528aaf0a36ec72b053ec5016ce/polyfills/vector.scm | scheme |
(define (vector-unfold! f vec start end . o)
(let lp ((i start) (seeds o))
(if (< i end)
(call-with-values (lambda () (apply f i seeds))
(lambda (x . seeds)
(vector-set! vec i x)
(lp (+ i 1) seeds))))))
(define (vector-unfold-right! f vec start end . o)
(let lp ((i (-... | |
065a463ffe13318c47444420bcfb845ee0b8aa1ddf09c1a42ddb9b0a544d2c59 | clojure-interop/google-cloud-clients | DatabaseAdminClient$ListDatabasesPage.clj | (ns com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesPage
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.spanner.admin.database.v1 DatabaseAdminClient$ListDatabasesPage]))
(defn create-page-async
"context - `com.google.api.gax.rpc.PageContext`
future-resp... | null | https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.spanner/src/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient%24ListDatabasesPage.clj | clojure | (ns com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient$ListDatabasesPage
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.spanner.admin.database.v1 DatabaseAdminClient$ListDatabasesPage]))
(defn create-page-async
"context - `com.google.api.gax.rpc.PageContext`
future-resp... | |
77483bd5d21e038ed732f7cff0fdce2e4fddc631ee69f41a39ed4d825685e77e | runtimeverification/haskell-backend | GraphTraversal.hs | {-# LANGUAGE MultiWayIf #-}
|
Copyright : ( c ) Runtime Verification , 2018 - 2022
License : BSD-3 - Clause
Maintainer :
Copyright : (c) Runtime Verification, 2018-2022
License : BSD-3-Clause
Maintainer :
-}
module Kore.Exec.GraphTraversal (
graphTraversal,
simpleTransition,
TS... | null | https://raw.githubusercontent.com/runtimeverification/haskell-backend/4e9b76ab1f8bd35aabe64e0b0c51ee7d1e243327/kore/src/Kore/Exec/GraphTraversal.hs | haskell | # LANGUAGE MultiWayIf #
| straight-line execution
| no next state but not final (e.g., not goal state, or side
conditions do not hold)
| final state (e.g., goal state reached, side conditions hold)
| not stuck, but also not final (maximum depth reached before
finishing the proof). Provides current and "next" stat... |
|
Copyright : ( c ) Runtime Verification , 2018 - 2022
License : BSD-3 - Clause
Maintainer :
Copyright : (c) Runtime Verification, 2018-2022
License : BSD-3-Clause
Maintainer :
-}
module Kore.Exec.GraphTraversal (
graphTraversal,
simpleTransition,
TState (..),
TransitionRes... |
3dcc9100f98c0570bb440478a109305011c4d5b93b77bc1dffa1f63d1fd0c3f1 | migamake/json-autotype | Fstab-schema.hs |
# LANGUAGE TemplateHaskell #
# LANGUAGE ScopedTypeVariables #
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
# LANGUAGE DeriveGeneric #
module ExamplesJsonSchemaFstabSchema where
import System.Exit (exitFailure, exitSuccess)... | null | https://raw.githubusercontent.com/migamake/json-autotype/6244e1f2c0352e9a18657051b65df62b9af157cd/json-autotype/examples/json-schema/Fstab-schema.hs | haskell | # LANGUAGE RecordWildCards #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeOperators # |
# LANGUAGE TemplateHaskell #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE DeriveGeneric #
module ExamplesJsonSchemaFstabSchema where
import System.Exit (exitFailure, exitSuccess)
import System.IO (stderr, hPutStrLn)
import qualified Data.ByteString.Lazy.Char8 as BSL
imp... |
6904c0fae6ae98fe6791a6bde8da91d132c83a56e960ebd68e48e078dc513722 | nvim-treesitter/nvim-treesitter | highlights.scm | [ (line_comment) (block_comment) ] @comment
(label_decl) @label
(string) @string
(instruction opcode: _ @function.call)
[ "pins" "x" "y" "null" "isr" "osr" "osre" "status" "pc" "exec" ] @constant.builtin
(wait_source [ "irq" "gpio" "pin" ] @constant.builtin)
(out_target "pindirs" @constant.builtin)
(set_target "pi... | null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/67332894efcb6a51a18e1120f2fc242089de7dd1/queries/pioasm/highlights.scm | scheme | [ (line_comment) (block_comment) ] @comment
(label_decl) @label
(string) @string
(instruction opcode: _ @function.call)
[ "pins" "x" "y" "null" "isr" "osr" "osre" "status" "pc" "exec" ] @constant.builtin
(wait_source [ "irq" "gpio" "pin" ] @constant.builtin)
(out_target "pindirs" @constant.builtin)
(set_target "pi... | |
428cc0277d1a593796a891eb4c50c314fc65d5784047e05da2c27182baa7e833 | simmone/racket-simple-qr | data-trace.rkt | #lang racket
(require "../../../../share/draw/draw.rkt")
(require "../../../../share/func.rkt")
(provide (contract-out
[write-report-data-trace (-> list? list? hash? natural? path-string? void?)]
))
(define (write-report-data-trace trace_list data_list points_map modules express_path)
(let* ([s... | null | https://raw.githubusercontent.com/simmone/racket-simple-qr/904f1491bc521badeafeabd0d7d7e97e3d0ee958/simple-qr/write/lib/express/data-trace/data-trace.rkt | racket | #lang racket
(require "../../../../share/draw/draw.rkt")
(require "../../../../share/func.rkt")
(provide (contract-out
[write-report-data-trace (-> list? list? hash? natural? path-string? void?)]
))
(define (write-report-data-trace trace_list data_list points_map modules express_path)
(let* ([s... | |
2b714026d8cf4d303804472a11711ee2ac011466efb1beabbf63e3b7f19a8871 | tolysz/ghcjs-stack | PackageUtils.hs | -----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.PackageUtils
Copyright : ( c ) 2010
-- License : BSD-like
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
Various package description utils that shou... | null | https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/cabal-install/Distribution/Client/PackageUtils.hs | haskell | ---------------------------------------------------------------------------
|
Module : Distribution.Client.PackageUtils
License : BSD-like
Maintainer :
Stability : provisional
Portability : portable
---------------------------------------------------------------------------
| The list of depe... | Copyright : ( c ) 2010
Various package description utils that should be in the lib
module Distribution.Client.PackageUtils (
externalBuildDepends,
) where
import Distribution.Package
( packageVersion, packageName, Dependency(..) )
import Distribution.PackageDescription
( PackageDesc... |
fb8645e89bfba457475a3bbd5537b4fd56000e0af302b2e73ca2e7d4c85139d7 | aantron/luv | mutex.ml | This file is part of Luv , released under the MIT license . See LICENSE.md for
details , or visit .
details, or visit . *)
type t = C.Types.Mutex.t Ctypes.ptr
let init ?(recursive = false) () =
let mutex = Ctypes.addr (Ctypes.make C.Types.Mutex.t) in
let result =
if recursive then
C.Functio... | null | https://raw.githubusercontent.com/aantron/luv/4b49d3edad2179c76d685500edf1b44f61ec4be8/src/mutex.ml | ocaml | This file is part of Luv , released under the MIT license . See LICENSE.md for
details , or visit .
details, or visit . *)
type t = C.Types.Mutex.t Ctypes.ptr
let init ?(recursive = false) () =
let mutex = Ctypes.addr (Ctypes.make C.Types.Mutex.t) in
let result =
if recursive then
C.Functio... | |
8a02bcceff56280dec8f10458a00e07aea98aebad3b1cbf087416c5b6a9651b1 | g-andrade/locus | locus_mmdb_check.erl | Copyright ( c ) 2019 - 2023
%%
%% 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, di... | null | https://raw.githubusercontent.com/g-andrade/locus/c731b1a4a819e998c60d90a0484e75e36966aa8c/src/locus_mmdb_check.erl | erlang |
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
the rights to use, copy, modify, merge, publish, distribute, sublicense,
Software is furnished to do so, subject to the following conditions:
The above copyright not... | Copyright ( c ) 2019 - 2023
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
... |
666470e0691d708142af7790102cb505918e6a163ad28edcc853353a17a5a9a4 | mirage/ocaml-hvsock | flow.mli |
* Copyright ( C ) 2016 Docker Inc
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND TH... | null | https://raw.githubusercontent.com/mirage/ocaml-hvsock/f4f4ff02b90f2c12568140b30fb8fceeedd8e2f1/lwt_unix/flow.mli | ocaml |
* Copyright ( C ) 2016 Docker Inc
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND TH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.