_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 |
|---|---|---|---|---|---|---|---|---|
21386cfd3a75b463269165e5ae74bcc7c043398ec449055297588e4f73449b8d | alesaccoia/festival_flinger | cmu_us_aup_tagger.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ;;;
Carnegie Mellon University ; ; ;
and and ; ; ;
Copyright ( c ) 1998 - 2000 ... | null | https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/voices/us/cmu_us_aup_cg/festvox/cmu_us_aup_tagger.scm | scheme |
;;;
; ;
; ;
; ;
; ;
;;;
Permission is hereby granted, free of charge, to use and distribute ;;;
this software and its documentation without restriction, including ;;;
withou... | POS tagger for English
(require 'pos)
(define (cmu_us_aup::select_tagger)
"(cmu_us_aup::select_tagger)
Set up the POS tagger English."
(set! pos_lex_name "english_poslex")
(set! pos_ngram_name 'english_pos_ngram)
(set! pos_supported t)
)
(define (cmu_us_aup::reset_tagger)
"(cmu_us_aup::reset_tagger)
Rese... |
196bb39151ab201614ce81bcadeb5d6a835130b87cf173db33ce36aafe79d30a | input-output-hk/hydra | Party.hs | | Types and functions revolving around a Hydra ' Party ' . That is , a
-- participant in a Hydra Head, which signs transactions or snapshots in the
-- Hydra protocol.
module Hydra.Party where
import Hydra.Prelude hiding (show)
import Data.Aeson (ToJSONKey)
import Data.Aeson.Types (FromJSONKey)
import Hydra.Cardano.... | null | https://raw.githubusercontent.com/input-output-hk/hydra/cd4d7731813d608a7979d5a9cb5ece3bfa0a3892/hydra-node/src/Hydra/Party.hs | haskell | participant in a Hydra Head, which signs transactions or snapshots in the
Hydra protocol.
distinct type.
| Retrieve the "high-level" 'Party from the "low-level" on-chain
representation. This can fail because of the lower type-safety used on-chain
for an explanation why this is a distinct type. | | Types and functions revolving around a Hydra ' Party ' . That is , a
module Hydra.Party where
import Hydra.Prelude hiding (show)
import Data.Aeson (ToJSONKey)
import Data.Aeson.Types (FromJSONKey)
import Hydra.Cardano.Api (AsType (AsVerificationKey), SerialiseAsRawBytes (deserialiseFromRawBytes, serialiseToRawByt... |
c0df3595924a5a259347037d9832f1d6cc5913bf3dc77ed6a0e688e2565defe0 | fantasytree/fancy_game_server | client_open_rpc.erl | %%----------------------------------------------------
%% 客户端验证
%% **注意**以下调用都是开放的,请注意安全性
%%----------------------------------------------------
-module(client_open_rpc).
-export([handle/3]).
-include("common.hrl").
-include("conn.hrl").
-include("role.hrl").
请求验证账号登录
handle(1001, {Account, Platform, ZoneId, Sessio... | null | https://raw.githubusercontent.com/fantasytree/fancy_game_server/4ca93486fc0d5b6630170e79b48fb31e9c6e2358/src/mod/client/client_open_rpc.erl | erlang | ----------------------------------------------------
客户端验证
**注意**以下调用都是开放的,请注意安全性
----------------------------------------------------
----------------------------------------------------
---------------------------------------------------- | -module(client_open_rpc).
-export([handle/3]).
-include("common.hrl").
-include("conn.hrl").
-include("role.hrl").
请求验证账号登录
handle(1001, {Account, Platform, ZoneId, SessionId}, Conn = #conn{bind_obj = undefined}) ->
case check_acc(Account, Platform, ZoneId, SessionId) of
false ->
{stop, repl... |
5e93275b135e55a1bb9ea39c2b72db81ef64ac4e797eea386746abf567dc1adb | 8c6794b6/guile-tjit | t-nest-10.scm | ;;; More inlined procedure in nested loop.
;;;
;;; Calling procedure containing loop twice, adding results. Return
address of the first call to ` loop1 ' is different from the second
;;; call to `loop1'.
(define (loop1 n acc)
(let lp ((i n) (acc acc))
(if (< 0 i)
(lp (- i 1) (+ acc 2))
... | null | https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-nest-10.scm | scheme | More inlined procedure in nested loop.
Calling procedure containing loop twice, adding results. Return
call to `loop1'. | address of the first call to ` loop1 ' is different from the second
(define (loop1 n acc)
(let lp ((i n) (acc acc))
(if (< 0 i)
(lp (- i 1) (+ acc 2))
acc)))
(define (loop2 n)
(let lp ((i n) (acc 0))
(if (< 0 i)
(lp (- i 1) (+ (loop1 n 0)
(loop1 n 0... |
d4e02e60366b1f2427916cd7ca748858ccf5bb1c3713d0b08ffcb27a9c5d06a4 | Bogdanp/racket-lua | compiler.rkt | #lang racket/base
(require (for-syntax racket/base
syntax/parse)
racket/format
racket/list
racket/match
racket/string
racket/syntax
"ast.rkt")
(provide
compile-chunk)
(define (compile-chunk chunk)
(define loc (Node-loc chunk))
(define re... | null | https://raw.githubusercontent.com/Bogdanp/racket-lua/cc3371948238d92d9d13dff1702391b79aa57886/lua-lib/lang/compiler.rkt | racket | passes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Lua: The standard lua language.
L1: Removes Local{Assignment, Function}, adds Let
help ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
procedure names ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ; ; ; ; ; ; ; ; ; ; ... | #lang racket/base
(require (for-syntax racket/base
syntax/parse)
racket/format
racket/list
racket/match
racket/string
racket/syntax
"ast.rkt")
(provide
compile-chunk)
(define (compile-chunk chunk)
(define loc (Node-loc chunk))
(define re... |
ba2c04c09acccd7ffc0dee445ac7f638dc78113cc51a282dc667bcba9547791c | outergod/cl-m4 | m4-builtin.lisp | ;;;; cl-m4 - m4-builtin.lisp
Copyright ( C ) 2010 < >
This file is part of cl - m4 .
;;;; cl-m4 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 your opti... | null | https://raw.githubusercontent.com/outergod/cl-m4/9f6518b5a173a1234ae39ef45758927d329ded4a/src/m4-builtin.lisp | lisp | cl-m4 - m4-builtin.lisp
cl-m4 is free software; you can redistribute it and/or modify
either version 3 of the License , or
(at your option) any later version.
cl-m4 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A ... | Copyright ( C ) 2010 < >
This file is part of cl - m4 .
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
(in-package :cl-m4)
M4 builtin macros ahead .
(defun pushm4macro (name fun &optional (replace t))
(let ((stac... |
52227f03ab93cc6fa970317b107132da67e040c0ef1858935f52b583797f9de1 | lambdaisland/kaocha | kaocha_integration.clj | (ns features.steps.kaocha-integration
^{:clojure.tools.namespace.repl/load false
:clojure.tools.namespace.repl/unload false}
(:require [clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.java.shell :as shell]
[clojure.string :as str]
[clojure.test :as t :refer... | null | https://raw.githubusercontent.com/lambdaisland/kaocha/77334edf536a3b39b9fcc27e5b67e3011ee40a94/test/step_definitions/kaocha_integration.clj | clojure | By default these are hidden unless the test fails | (ns features.steps.kaocha-integration
^{:clojure.tools.namespace.repl/load false
:clojure.tools.namespace.repl/unload false}
(:require [clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.java.shell :as shell]
[clojure.string :as str]
[clojure.test :as t :refer... |
6ede27f9ad91f1d6a495eee6a4db42665396777ea09e037305ec1b9e3fb416eb | kmi/irs | original-rdfs-ontology.lisp | Mode : Lisp ; Package :
(in-package "OCML")
(in-ontology rdfs-ontology)
Automatically translated from RDF file " freaky : rdf - files;rdfs.rdf "
at 13:46:49 , on 27/3/2003
(def-class RESOURCE ()
((Value )
(Isdefinedby
:type resource)
(Seealso
:type resource)
(Label
:type literal)
(Comment
:type literal)
))
... | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/rdfs-ontology/original-rdfs-ontology.lisp | lisp | Package : |
(in-package "OCML")
(in-ontology rdfs-ontology)
Automatically translated from RDF file " freaky : rdf - files;rdfs.rdf "
at 13:46:49 , on 27/3/2003
(def-class RESOURCE ()
((Value )
(Isdefinedby
:type resource)
(Seealso
:type resource)
(Label
:type literal)
(Comment
:type literal)
))
(def-class LITERAL ()
())
... |
052fcea11b5bdad8f9d67d8fde78245c99061ecc87f6f401c958eb655bcc620f | B-Lang-org/bsc | SimPackage.hs | # LANGUAGE CPP #
module SimPackage(
-- types
SimSystem(..),
PackageMap,
InstModMap,
SimPackage(..),
DefMap,
AVInstMap,
MethodOrderMap,
SimSchedule(..),
... | null | https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/SimPackage.hs | haskell | types
utilities
import Debug.Trace
This is a map from AId to the ADef which defines the value for that AId
This is a map from AId of an instantiated submodule to its information
map from submodule instance name to a set of pairs of method names
name of top package
carryover
carryover
carryover
carryover?
ca... | # LANGUAGE CPP #
module SimPackage(
SimSystem(..),
PackageMap,
InstModMap,
SimPackage(..),
DefMap,
AVInstMap,
MethodOrderMap,
SimSchedule(..),
SchedNode(..)... |
e38118624e21031b3c971618aba4bb19dac3b1be7080d61766b206a462e850b2 | AntidoteDB/gingko | ct_redirect_handler.erl | %% redirects log messages to ct:log
-module(ct_redirect_handler).
-include("gingko.hrl").
%% API
-export([log/2]).
log(LogEvent, _Config) ->
CtMaster = application:get_env(?GINGKO_APP_NAME, ct_master, undefined),
#{msg := Message} = LogEvent,
case Message of
{Msg, Format} -> _ = rpc:call(CtMaster... | null | https://raw.githubusercontent.com/AntidoteDB/gingko/a965979aefb2868abcd0b3bf5ed1b5e4f9fdd163/test/utils/ct_redirect_handler.erl | erlang | redirects log messages to ct:log
API |
-module(ct_redirect_handler).
-include("gingko.hrl").
-export([log/2]).
log(LogEvent, _Config) ->
CtMaster = application:get_env(?GINGKO_APP_NAME, ct_master, undefined),
#{msg := Message} = LogEvent,
case Message of
{Msg, Format} -> _ = rpc:call(CtMaster, ct, log, [Msg, Format]);
_ -> _ =... |
07c25f23fa2db6dd9429d78fc2b55ddd36c6390a9c9b0482ea69115a52d193ac | hidaris/thinking-dumps | chap3.rkt | #lang racket/base
;; Load the J-Bob language:
(require "j-bob/j-bob-lang.rkt")
;; Load J-Bob, our little proof assistant:
(require "j-bob/j-bob.rkt")
;;; What's in a name?
(defun pair (x y)
(cons x (cons y '())))
(defun first-of (x)
(car x))
(defun second-of (x)
(car (cdr x)))
(dethm first-of-pair (a b) ; a ... | null | https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/the-little-series/the-little-prover/chap3.rkt | racket | Load the J-Bob language:
Load J-Bob, our little proof assistant:
What's in a name?
a claim of therom
Given the non-recursive function
(defun name (x1 ... xn) body),
(name e1 ... en) = body where x1 is e1, ..., xn is en
Insight: Skip Irrelevant Expressions
Rewriting a claim to 't does not have to go in
any par... | #lang racket/base
(require "j-bob/j-bob-lang.rkt")
(require "j-bob/j-bob.rkt")
(defun pair (x y)
(cons x (cons y '())))
(defun first-of (x)
(car x))
(defun second-of (x)
(car (cdr x)))
(equal (first-of (pair a b)) a))
The Law of Defun ( initial )
(dethm second-of-pair (a b)
(equal (second-of (pair a ... |
d74198d97a715c453310f1ae6d561c105e14bbd84be04245fb0edf2d971e3982 | ermine/sulci | scheduler.mli |
* ( c ) 2005 - 2008
* (c) 2005-2008 Anastasia Gornostaeva
*)
type elt = {
mutable time : float;
repeat : unit -> float;
callback : unit -> unit;
mutable cancelled : bool;
}
module TimerOrdered : sig type t = elt val compare : elt -> elt -> int end
module TimerQueue :
sig
exception Empty
t... | null | https://raw.githubusercontent.com/ermine/sulci/3ee4bd609b01e2093a6d37bf74579728d0a93b70/libs/scheduler/scheduler.mli | ocaml |
* ( c ) 2005 - 2008
* (c) 2005-2008 Anastasia Gornostaeva
*)
type elt = {
mutable time : float;
repeat : unit -> float;
callback : unit -> unit;
mutable cancelled : bool;
}
module TimerOrdered : sig type t = elt val compare : elt -> elt -> int end
module TimerQueue :
sig
exception Empty
t... | |
71b07d8b1e32f286cd2d7b737e555dc11856c0575a60ddc6770c5e623c9a3444 | mk270/archipelago | lexicon.ml |
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012
This programme is free software ; you may redistribute and/or modify
it under the terms of the GNU Affero General Public Licence as published by
the Free Software Foundation , either version 3 of said Licence , or
( ... | null | https://raw.githubusercontent.com/mk270/archipelago/4241bdc994da6d846637bcc079051405ee905c9b/src/server/lexicon.ml | ocaml |
Archipelago , a multi - user dungeon ( MUD ) server , by ( C ) 2009 - 2012
This programme is free software ; you may redistribute and/or modify
it under the terms of the GNU Affero General Public Licence as published by
the Free Software Foundation , either version 3 of said Licence , or
( ... | |
72aa6377c37edb662ec17464fc2ffd75567a048b285e148626e748d743371d1e | nikita-volkov/rerebase | Strict.hs | module Control.Monad.Writer.Strict
(
module Rebase.Control.Monad.Writer.Strict
)
where
import Rebase.Control.Monad.Writer.Strict
| null | https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Control/Monad/Writer/Strict.hs | haskell | module Control.Monad.Writer.Strict
(
module Rebase.Control.Monad.Writer.Strict
)
where
import Rebase.Control.Monad.Writer.Strict
| |
3d43c939a28394c3ceae4d0a474e0f8d1dd684d9e0cba21349efbfdbfc9a93b1 | quchen/generative-art | Billard.hs | module Geometry.Processes.Billard (
billard
) where
import Algebra.VectorSpace
import Control.Monad
import Data.List
import Data.Maybe
import Geometry.Core
| Shoot a ball , and record its trajectory as it is reflected off the
-- edges of a provided geometry.
--
-- <<docs/billard/3_lambda.svg>>
billard
... | null | https://raw.githubusercontent.com/quchen/generative-art/c2ea1b0bfc4128aed5fc5bc82002a63fa0d874e3/src/Geometry/Processes/Billard.hs | haskell | edges of a provided geometry.
<<docs/billard/3_lambda.svg>>
^ Geometry; typically involves the edges of a bounding polygon.
^ Initial velocity vector of the ball. Only start and direction,
not length, are relevant for the algorithm.
^ List of collision points. Finite iff the ball escapes the
geometry.
The ... | module Geometry.Processes.Billard (
billard
) where
import Algebra.VectorSpace
import Control.Monad
import Data.List
import Data.Maybe
import Geometry.Core
| Shoot a ball , and record its trajectory as it is reflected off the
billard
billard edges = go (const True)
where
go :: (Line -> Bool) -> Line... |
e8aafbb5b0d274e45bc6c5204177fbcf97660fcfe365b765e7bdf051f44d5ead | mbg/hoop | StateEnv.hs | # LANGUAGE FlexibleContexts #
module Language.Hoop.StateEnv where
--------------------------------------------------------------------------------
import Control.Monad.Except
import Data.Graph
import Data.List (intersperse)
import qualified Data.Map as M
import Language.Haskell.TH.Syntax
import Language.Hoop.Stat... | null | https://raw.githubusercontent.com/mbg/hoop/98a53bb1db66b06f9b5d3e5242eed336f908ad18/src/Language/Hoop/StateEnv.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
| Represents different errors that can arise during the construction of
a class graph.
-------------------------------------------------------------------------... | # LANGUAGE FlexibleContexts #
module Language.Hoop.StateEnv where
import Control.Monad.Except
import Data.Graph
import Data.List (intersperse)
import qualified Data.Map as M
import Language.Haskell.TH.Syntax
import Language.Hoop.StateDecl
import Language.Hoop.Pretty
data StateGraphError
= ClassNotFound Str... |
0d2128ed6a16d4e58ffbac30ed1fb407481599d57163f7615dfeed9d140d4bfe | status-im/status-electron | react.cljs | (ns cljsjs.react)
| null | https://raw.githubusercontent.com/status-im/status-electron/aad18c34c0ee0304071e984f21d5622735ec5bef/src_front/cljsjs/react.cljs | clojure | (ns cljsjs.react)
| |
ee515a650df57e4d0573c301aeb62dd4c063f2f020a590ab2ed375c48ad55b2c | parof/wstat | ProgramPoints.hs | module SyntacticStructure.ProgramPoints (
getProgramPoints,
chooseWideningPoints) where
import Interfaces.AbstractStateDomain
import SyntacticStructure.ControlFlowGraph
import SyntacticStructure.WhileGrammar
import Tools.StateTransitions
import Tools.Utilities
import Tools.MonadicBuilder
getProgramPoints :: Abstr... | null | https://raw.githubusercontent.com/parof/wstat/369cf5d1d92ef235049c29ad2f1cc6fd53747754/src/SyntacticStructure/ProgramPoints.hs | haskell | choose the entry program point for each loop | module SyntacticStructure.ProgramPoints (
getProgramPoints,
chooseWideningPoints) where
import Interfaces.AbstractStateDomain
import SyntacticStructure.ControlFlowGraph
import SyntacticStructure.WhileGrammar
import Tools.StateTransitions
import Tools.Utilities
import Tools.MonadicBuilder
getProgramPoints :: Abstr... |
1ebe2749ec8b60dba4dce8fe9c4bfd43193063ba43a594454d7c3b48e1fda022 | BinaryAnalysisPlatform/bap | primus_round_robin_main.ml | open Core_kernel[@@warning "-D"]
open Bap.Std
open Monads.Std
open Bap_primus.Std
open Format
include Self()
module Mid = Monad.State.Multi.Id
type t = {
pending : Mid.t Fqueue.t;
finished : Mid.Set.t
}
let state = Primus.Machine.State.declare
~uuid:"d1b33e16-bf5d-48d5-a174-3901dff3d123"
~name:"round-rob... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cbdf732d46c8e38df79d9942fc49bcb97915c657/plugins/primus_round_robin/primus_round_robin_main.ml | ocaml | open Core_kernel[@@warning "-D"]
open Bap.Std
open Monads.Std
open Bap_primus.Std
open Format
include Self()
module Mid = Monad.State.Multi.Id
type t = {
pending : Mid.t Fqueue.t;
finished : Mid.Set.t
}
let state = Primus.Machine.State.declare
~uuid:"d1b33e16-bf5d-48d5-a174-3901dff3d123"
~name:"round-rob... | |
669641d12121d617328bbf54f26f5c38264714446cb3a4707dd7788e8f6b6591 | appleshan/cl-http | tcp-interface-mp.lisp | ;;;; Server network interface.
;;;
This code was written by , has been placed in
;;; the public domain, and is provides 'as-is'.
;;;
Ideas from the other ports , and public domain CMUCL source .
(in-package :http)
;;;-------------------------------------------------------------------
;;;
(defparameter *numb... | null | https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/cmucl/server/tcp-interface-mp.lisp | lisp | Server network interface.
the public domain, and is provides 'as-is'.
-------------------------------------------------------------------
-------------------------------------------------------------------
SET LISP ENVIRONMENT VARIABLES
server
----------------------------------------------------------------... |
This code was written by , has been placed in
Ideas from the other ports , and public domain CMUCL source .
(in-package :http)
(defparameter *number-of-listening-processes* 1
"The number of threads simultaneously listening for HTTP connections.")
5 minutes in 60ths of a second .
(setq *server-timeout* (... |
2674c1204cada41944587bcb7fa97184bad7a8ddc7fb197957cd08eac2ce9286 | guildhall/guile-sly | repl.scm |
Copyright ( C ) 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 your option) any later version.
;;;
;;; This program is distrib... | null | https://raw.githubusercontent.com/guildhall/guile-sly/92f5f21da76986c5b606b36afc4bb984cc63da5b/sly/repl.scm | scheme |
This program is free software: you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General P... |
Copyright ( C ) 2014 >
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation , either version 3 of the
You should have received a copy of the GNU General Public License
Cooperative REPL server extension .
(define-module (sly repl)
#:use-module (sys... |
f8c591b298ed761391e01f23ec11a12f1f66f149b63aefa46ccadd63043aec0b | cardmagic/lucash | read-form.scm | Copyright ( c ) 1993 - 1999 by and . See file COPYING .
; The value of $NOTE-FILE-PACKAGE is called whenever a file is loaded into
; a package. env/debug.scm uses this to associate packages with files so
that code stuffed to the REPL will be eval'ed in the correct package .
;
; Is there any point in having th... | null | https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scheme/bcomp/read-form.scm | scheme | The value of $NOTE-FILE-PACKAGE is called whenever a file is loaded into
a package. env/debug.scm uses this to associate packages with files so
Is there any point in having this be a fluid?
message needs work | Copyright ( c ) 1993 - 1999 by and . See file COPYING .
that code stuffed to the REPL will be eval'ed in the correct package .
(define $note-file-package
(make-fluid (lambda (filename package)
(values))))
(define (read-forms pathname package)
(let* ((filename (namestring pathname #f *scheme-file-type*)... |
2c725828935f1b6aae0d439b01a3af27d4e1d1f9c436c9885051b61d01d9fbc3 | serokell/ariadne | Generic.hs | # LANGUAGE AllowAmbiguousTypes , DefaultSignatures , ExistentialQuantification ,
, LambdaCase , NoImplicitPrelude ,
TypeFamilyDependencies #
GeneralizedNewtypeDeriving, LambdaCase, NoImplicitPrelude,
TypeFamilyDependencies #-}
module Ariadne.Wallet.Cardano.Kerne... | null | https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ariadne/cardano/src/Ariadne/Wallet/Cardano/Kernel/CoinSelection/Generic.hs | haskell | * Domain
* Addresses
* Monad
opaque
* Errors
* Policy
* Coin selection result
* Defining policies
* Helper functions
* Convenience re-exports
------------------------------------------------------------------------------
Abstract domain
-----------------------------------------------------------------------... | # LANGUAGE AllowAmbiguousTypes , DefaultSignatures , ExistentialQuantification ,
, LambdaCase , NoImplicitPrelude ,
TypeFamilyDependencies #
GeneralizedNewtypeDeriving, LambdaCase, NoImplicitPrelude,
TypeFamilyDependencies #-}
module Ariadne.Wallet.Cardano.Kerne... |
f01bc9b2d5862f7406e72cf1cd343fbd80a30e790098458fe097c215bf3f32cc | xh4/web-toolkit | features.lisp | :abcl1.6.0
#| all features implemented |#
:allegro8.2-9.0
((:class-default-initargs)
(:class-direct-default-initargs)
(:default-superclass-for-funcallable-standard-class-is-funcallable-standard-object)
(:defgeneric-calls-find-method-combination)
(:defmethod-calls-make-method-lambda fixed)
(:dependent-protocol-for... | null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/closer-mop-20191227-git/features.lisp | lisp | all features implemented
fix with fix-slot-initargs
partially fixed
partially
partially
partially fixed
partially
partially
all features implemented | :abcl1.6.0
:allegro8.2-9.0
((:class-default-initargs)
(:class-direct-default-initargs)
(:default-superclass-for-funcallable-standard-class-is-funcallable-standard-object)
(:defgeneric-calls-find-method-combination)
(:defmethod-calls-make-method-lambda fixed)
(:dependent-protocol-for-generic-functions fixed)
(:ex... |
ee6f5f6716a48194bd79df137876c164835383c02d140e3e5687c9dea4adc821 | RyanGlScott/text-show | Generic.hs | {-# LANGUAGE CPP #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE StandaloneDeriving #
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
#if __GLASGOW_HASKELL__ >= 806
# LANGUAGE DerivingVia #
#endif
# OPTIONS_GHC -fno - warn - orphans #
|
Module : Instances . Generi... | null | https://raw.githubusercontent.com/RyanGlScott/text-show/cede44e2bc357db54a7e2ad17de200708b9331cc/tests/Instances/Generic.hs | haskell | # LANGUAGE CPP #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeFamilies # | # LANGUAGE DeriveGeneric #
# LANGUAGE StandaloneDeriving #
#if __GLASGOW_HASKELL__ >= 806
# LANGUAGE DerivingVia #
#endif
# OPTIONS_GHC -fno - warn - orphans #
|
Module : Instances . Generic
Copyright : ( C ) 2014 - 2017
License : BSD - style ( see the file LICENSE )
Maintainer : ... |
c2080fb6b8068e4e9f06285d7650fce8fc6ac5f1841ab463db2c130544f41095 | smart-chain-fr/tokenomia | LocalRepository.hs | {-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
module Tokenomia.TokenDistribution.Wallet.ChildAddress.LocalRepository
( deriveMissingChildAddresses
, fetchAddressesByWallet
, fetchAddressByWalletAtIndex
, fetchAddressesByWalletAtIndexes
, fetchAddressesB... | null | https://raw.githubusercontent.com/smart-chain-fr/tokenomia/eacde8e851a2e107c8a4a09ffe85cabaa4f52953/src/Tokenomia/TokenDistribution/Wallet/ChildAddress/LocalRepository.hs | haskell | # LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards # |
module Tokenomia.TokenDistribution.Wallet.ChildAddress.LocalRepository
( deriveMissingChildAddresses
, fetchAddressesByWallet
, fetchAddressByWalletAtIndex
, fetchAddressesByWalletAtIndexes
, fetchAddressesByWalletWithIndexFilter
, fetchAddressesByWalletWithNonZeroIndex
, fetchAddressesByWa... |
bb1819c88e0193102493c4b336eee5e46fd4413e6365cbec87b97539163466f2 | nomaddo/loop | intf_mod.ml | open Tident
open Batteries
type intf_mod =
(Tident.path * Ast.typ) list
let rec mangling = function
| Tident ident -> Tident { ident with id = Btypes.gen_sym () }
let search_file path =
let file = List.find (fun s ->
Sys.file_exists (s ^ path.name)) !Flags.search_path in
file ^ path.name
let load_mod ... | null | https://raw.githubusercontent.com/nomaddo/loop/cd2204208b67b7e1f386b730c953404482ca36d6/typing/intf_mod.ml | ocaml | open Tident
open Batteries
type intf_mod =
(Tident.path * Ast.typ) list
let rec mangling = function
| Tident ident -> Tident { ident with id = Btypes.gen_sym () }
let search_file path =
let file = List.find (fun s ->
Sys.file_exists (s ^ path.name)) !Flags.search_path in
file ^ path.name
let load_mod ... | |
139e44a5635e56305410fbd12a687a015cecdfccdc48c055e235b3002dd45b91 | Ericson2314/lighthouse | Id.hs | -- #hide
-----------------------------------------------------------------------------
-- |
-- Module : Id
Copyright : ( c ) 2002
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
-- Id defines the various kinds of identification values that id... | null | https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/ObjectIO/Graphics/UI/ObjectIO/Id.hs | haskell | #hide
---------------------------------------------------------------------------
|
Module : Id
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
Id defines the various kinds of identification values that identify GUI
in which all bound GUI objects are adminis... | Copyright : ( c ) 2002
objects . In addition , an ( implemented as ' FiniteMap ' ) is defined
module Graphics.UI.ObjectIO.Id
( Id, RId, R2Id, IdTable
, IdParent (..)
, toId, toRId, toR2Id
, r2IdtoId, rIdtoId
, getRIdIn, getR2IdIn, getR2IdOut
... |
b38ac70e17cfe41cfe8dfd2340a492ed8de47155821e52a08b46af21655b487e | jacekschae/learn-pedestal-course-files | conversations_tests.clj | (ns cheffy.conversations-tests
(:require [clojure.test :refer :all]
[io.pedestal.test :as pt]
[io.pedestal.http :as http]
[cheffy.test-system :as ts]
[com.stuartsierra.component.repl :as cr]))
(def service-fn (-> cr/system :api-server :service ::http/service-fn))
(de... | null | https://raw.githubusercontent.com/jacekschae/learn-pedestal-course-files/54431873708f11a497abd2795e02d0934f019c68/increments/50-clear-notifications-tests/src/test/cheffy/conversations_tests.clj | clojure | (ns cheffy.conversations-tests
(:require [clojure.test :refer :all]
[io.pedestal.test :as pt]
[io.pedestal.http :as http]
[cheffy.test-system :as ts]
[com.stuartsierra.component.repl :as cr]))
(def service-fn (-> cr/system :api-server :service ::http/service-fn))
(de... | |
2344ddacf62095dce7d5ab984a8063196ab659cea659d74c43e9daac9f3ffe8a | sboehler/beans | Include.hs | module Beans.Include (Include (Include)) where
import Data.Text.Prettyprint.Doc (Pretty (pretty), (<+>))
import qualified Text.Megaparsec.Pos as P
data Include = Include
{ position :: P.SourcePos,
filePath :: FilePath
}
deriving (Eq, Ord, Show)
instance Pretty Include where
pretty (Include _ filePath) = ... | null | https://raw.githubusercontent.com/sboehler/beans/897fc30a602f49906eb952c4fd5c8c0bf05a6beb/src/Beans/Include.hs | haskell | module Beans.Include (Include (Include)) where
import Data.Text.Prettyprint.Doc (Pretty (pretty), (<+>))
import qualified Text.Megaparsec.Pos as P
data Include = Include
{ position :: P.SourcePos,
filePath :: FilePath
}
deriving (Eq, Ord, Show)
instance Pretty Include where
pretty (Include _ filePath) = ... | |
b086c65053dadb4a893500604d2df9d07271d03e97e342268e926271e4a01b4e | larrychristensen/orcpub | feats.cljc | (ns orcpub.dnd.e5.feats
(:require #?(:clj [clojure.spec.alpha :as spec])
#?(:cljs [cljs.spec.alpha :as spec])
[orcpub.common :as common]))
(spec/def ::name (spec/and string? common/starts-with-letter?))
(spec/def ::key (spec/and keyword? common/keyword-starts-with-letter?))
(spec/def ::option... | null | https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/cljc/orcpub/dnd/e5/feats.cljc | clojure | (ns orcpub.dnd.e5.feats
(:require #?(:clj [clojure.spec.alpha :as spec])
#?(:cljs [cljs.spec.alpha :as spec])
[orcpub.common :as common]))
(spec/def ::name (spec/and string? common/starts-with-letter?))
(spec/def ::key (spec/and keyword? common/keyword-starts-with-letter?))
(spec/def ::option... | |
8cc470817210b4985fcc6b8e5522506d7f5248eb8e7ba0fcc5d03683903d6a27 | VictorCMiraldo/generics-mrsop | SimpTH.hs | # LANGUAGE TypeApplications #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeOperators #-}
# LANGUAGE DataKinds #
# LANGUAGE PolyKinds #
{-# LAN... | null | https://raw.githubusercontent.com/VictorCMiraldo/generics-mrsop/b66bb6c651297cdb71655663e34ab35812b38f72/src/Generics/MRSOP/Examples/SimpTH.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE GADTs #
# LANGUAGE TypeOperators #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE PatternSynonyms #
# OPTIONS_HADDOCK hide, prune, ignore-exports #
|Uses a more involved example to test some
* Sim... | # LANGUAGE TypeApplications #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE DataKinds #
# LANGUAGE PolyKinds #
# LANGUAGE FunctionalDependencies #
# LANGUAGE LambdaCase #
# OPTIONS_GHC -Wno - missing - pattern - synonym - sig... |
61a095c3b5f811bc33daa9be827476450b81323e3c247956a2a94a01ff4fb9a5 | Engil/Goodboy | utils.ml | open Goodboy
open Notty
open Printf
let msg s = Error (`Msg s)
let a_current = A.(fg black ++ bg green)
let show_hex_i16 i16 = sprintf "0x%04X" i16
let show_hex_i8 i8 = sprintf "0x%02X" i8
let show_instr i = (Instructions.sexp_of_instruction i |> Sexplib.Sexp.to_string)
| null | https://raw.githubusercontent.com/Engil/Goodboy/2e9abc243b929d8bdfb7c5d4874ddb8a07c55fac/debugger/utils.ml | ocaml | open Goodboy
open Notty
open Printf
let msg s = Error (`Msg s)
let a_current = A.(fg black ++ bg green)
let show_hex_i16 i16 = sprintf "0x%04X" i16
let show_hex_i8 i8 = sprintf "0x%02X" i8
let show_instr i = (Instructions.sexp_of_instruction i |> Sexplib.Sexp.to_string)
| |
25bbf4c482cddf6c6db7abce969854d8e03c937f0e3a461f51dec8601c659f09 | tnoda/rashinban | core.clj | (ns tnoda.rashinban.core
(:refer-clojure :exclude [apply eval])
(:require [clojure.core :as clj]
[clojure.string :as str]
[tnoda.rashinban.protocols :refer [clj->rexp java->clj]])
(:import (org.rosuda.REngine.Rserve RConnection)
(org.rosuda.REngine REXP
... | null | https://raw.githubusercontent.com/tnoda/rashinban/a9e6053d2a9cf852d04d594f52e03e045415a2e7/src/tnoda/rashinban/core.clj | clojure | (ns tnoda.rashinban.core
(:refer-clojure :exclude [apply eval])
(:require [clojure.core :as clj]
[clojure.string :as str]
[tnoda.rashinban.protocols :refer [clj->rexp java->clj]])
(:import (org.rosuda.REngine.Rserve RConnection)
(org.rosuda.REngine REXP
... | |
aa36bc78aac2bbcce3f493adab262d942ced9d910c25322fd61c44fee793c4eb | PhDP/Akarui | FOL.hs | {-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
| Type and functions for first - order predicate logic .
module Akarui.FOL.FOL where
import qualified Data.Map as Map
import Data.Map (Map)
import qualified Data.Set as Set
import Data.Set (Set)
import Data.List (foldl')
import qualified Data.Text as T
import... | null | https://raw.githubusercontent.com/PhDP/Akarui/4ad888d011f7115677e8f9ba18887865f5150746/Akarui/FOL/FOL.hs | haskell | # LANGUAGE TypeSynonymInstances, FlexibleInstances #
| Special "Truth", "Top", "True" predicate.
| Special "False", "Bot", "Bottom" predicate.
| Extracts predicates from a list of formulas. If a formula is not an atom,
it will be ignored.
| Tests if the formula is 'grounded', i.e. if it has no variables.
Gathers ... |
| Type and functions for first - order predicate logic .
module Akarui.FOL.FOL where
import qualified Data.Map as Map
import Data.Map (Map)
import qualified Data.Set as Set
import Data.Set (Set)
import Data.List (foldl')
import qualified Data.Text as T
import Akarui.ShowTxt
import Akarui.FOL.Formula
import Akarui.F... |
8faa3a5e9c9472d9eb6558d836a2dbdf70a0b1fc1d37d78186a6e92493912347 | mhayashi1120/Gauche-net-twitter | module.scm | (use gauche.test)
(use gauche.process)
(use file.util)
(use net.favotter)
(use net.twitter)
(use net.twitter.account)
(use net.twitter.auth)
(use net.twitter.block)
(use net.twitter.core)
(use net.twitter.dm)
(use net.twitter.friendship)
(use net.twitter.geo)
(use net.twitter.help)
(use net.twitter.list)
(use net.twitt... | null | https://raw.githubusercontent.com/mhayashi1120/Gauche-net-twitter/2c6ae5ff15461cb34a86c71e8f9f4eb5b7a7bf87/__tests__/module.scm | scheme | (use gauche.test)
(use gauche.process)
(use file.util)
(use net.favotter)
(use net.twitter)
(use net.twitter.account)
(use net.twitter.auth)
(use net.twitter.block)
(use net.twitter.core)
(use net.twitter.dm)
(use net.twitter.friendship)
(use net.twitter.geo)
(use net.twitter.help)
(use net.twitter.list)
(use net.twitt... | |
50eb9fe45ef6d00b755eb5d3373c99f33e3b9d594da195701e1663caf66169ee | crategus/cl-cffi-gtk | rtest-gtk-print-unix-dialog.lisp | (def-suite gtk-print-unix-dialog :in gtk-suite)
(in-suite gtk-print-unix-dialog)
;;; --- Types and Values -------------------------------------------------------
GtkPrintCapabilities
(test gtk-print-capabilities
;; Check the type
(is (g-type-is-flags "GtkPrintCapabilities"))
;; Check the registered name
... | null | https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/test/rtest-gtk-print-unix-dialog.lisp | lisp | --- Types and Values -------------------------------------------------------
Check the type
Check the registered name
Check the type initializer
Check the names
Check the values
Check the flags definition
GtkPrintUnixDialog
Type check
Check the registered name
Check the type initializer
Check the parent... | (def-suite gtk-print-unix-dialog :in gtk-suite)
(in-suite gtk-print-unix-dialog)
GtkPrintCapabilities
(test gtk-print-capabilities
(is (g-type-is-flags "GtkPrintCapabilities"))
(is (eq 'gtk-print-capabilities
(registered-flags-type "GtkPrintCapabilities")))
(is (eq (gtype "GtkPrintCapabilities"... |
46f4afabeac8abf11d0c1b1c26893abda9eeedbf0b95f6fa332322453eb642b2 | bytekid/mkbtt | conversion.ml | (*** SUBMODULES **********************************************************)
module Pos = Rewriting.Position;;
module Term = U.Term;;
module Rule = U.Rule;;
module Trs = U.Trs;;
module Elogic = U.Elogic;;
module Sub = U.Substitution;;
module INode = IndexedNode;;
module W = World;;
(*** OPENS **************************... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/conversion.ml | ocaml | ** SUBMODULES *********************************************************
** OPENS **************************************************************
** TYPES **************************************************************
** FUNCTIONS **********************************************************
** trace back ******************... | module Pos = Rewriting.Position;;
module Term = U.Term;;
module Rule = U.Rule;;
module Trs = U.Trs;;
module Elogic = U.Elogic;;
module Sub = U.Substitution;;
module INode = IndexedNode;;
module W = World;;
open Types.Node;;
open World;;
open World.Monad;;
open Util;;
type t =
Empty of Term.t
| Step of Term.t * No... |
066be972ef5d02e54b2511e58cde627c10acfdedaeb5150b3905838dd73e126e | ulrikstrid/ocaml-oidc | PiafOidc.ml | *
* Copyright 2022 . All rights reserved .
* Use of this source code is governed by a BSD - style
* license that can be found in the LICENSE file .
* Copyright 2022 Ulrik Strid. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*... | null | https://raw.githubusercontent.com/ulrikstrid/ocaml-oidc/3dcd0a258847561c8ce55b9e41b428ae0a99412c/executable/PiafOidc.ml | ocaml | *
* Copyright 2022 . All rights reserved .
* Use of this source code is governed by a BSD - style
* license that can be found in the LICENSE file .
* Copyright 2022 Ulrik Strid. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*... | |
4d99a92cd2a5b91b7a553f070d8c3385ac508c49113a9cb67e6aaa39c05cc669 | xapi-project/xen-api | test_unit.ml |
* Copyright ( C ) Citrix Systems Inc.
*
* 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 ; version 2.1 only . with the special
* exception on linking described in file LI... | null | https://raw.githubusercontent.com/xapi-project/xen-api/47fae74032aa6ade0fc12e867c530eaf2a96bf75/ocaml/xcp-rrdd/test/transport/test_unit.ml | ocaml | Check that writing then reading the shared file gives the expected
* timestamp and datasources.
After the timestamp has been updated, we should be able to read the
* payload again. |
* Copyright ( C ) Citrix Systems Inc.
*
* 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 ; version 2.1 only . with the special
* exception on linking described in file LI... |
788f02058e1ecb106819ff4a2e65ea6fb4f48f98dded6bc729a6420de02984d3 | ku-fpg/kansas-lava | Signal.hs | # LANGUAGE TypeFamilies , ExistentialQuantification ,
FlexibleInstances , UndecidableInstances , FlexibleContexts ,
ScopedTypeVariables , MultiParamTypeClasses #
FlexibleInstances, UndecidableInstances, FlexibleContexts,
ScopedTypeVariables, MultiParamTypeClasses #-}
| The Signal module serves as... | null | https://raw.githubusercontent.com/ku-fpg/kansas-lava/cc0be29bd8392b57060c3c11e7f3b799a6d437e1/Language/KansasLava/Signal.hs | haskell | deep embeddings of sequential circuits. The shallow portion is reprented as a
stream, the deep portion as a (typed) entity. To allow for multiple clock
is for sequential logic in some implicit global clock domain.
---------------------------------------------------------------------------------------------
| These... | # LANGUAGE TypeFamilies , ExistentialQuantification ,
FlexibleInstances , UndecidableInstances , FlexibleContexts ,
ScopedTypeVariables , MultiParamTypeClasses #
FlexibleInstances, UndecidableInstances, FlexibleContexts,
ScopedTypeVariables, MultiParamTypeClasses #-}
| The Signal module serves as... |
cd637876eb36386ad46fe03bebfd17e2ab8b7e40db2bcdbb48568d43b45457c4 | ocaml-multicore/ocaml-effects-tutorial | echo_async.ml | open Printf
module type Aio = sig
type 'a promise
(** Type of promises *)
val async : (unit -> 'a) -> 'a promise
(** [async f] runs [f] concurrently *)
val await : 'a promise -> 'a
(** [await p] returns the result of the promise. *)
val yield : unit -> unit
(** yields control to another task *)
val ... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-effects-tutorial/998376931b7fdaed5d54cb96b39b301b993ba995/sources/solved/echo_async.ml | ocaml | * Type of promises
* [async f] runs [f] concurrently
* [await p] returns the result of the promise.
* yields control to another task
* Runs the scheduler
******************
tasks blocked on reads
tasks blocked on writes
runnable tasks available
no runnable tasks, and no blocked tasks => we're done.
no run... | open Printf
module type Aio = sig
type 'a promise
val async : (unit -> 'a) -> 'a promise
val await : 'a promise -> 'a
val yield : unit -> unit
val accept : Unix.file_descr -> Unix.file_descr * Unix.sockaddr
val recv : Unix.file_descr -> bytes -> int -> int -> Unix.msg_flag list -> int
val send : Uni... |
0e47dcef8e96549334284cbd08b61b0fb1214a09be3b6080be05f6de96e9009b | craigfe/progress | line.ml | — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
Copyright ( c ) 2020–2021 < >
Distributed under the MIT license . See terms at the end of this file .
— — — — — — — — — — — — — — — — — — — — — — — — —... | null | https://raw.githubusercontent.com/craigfe/progress/4b5a0a4288cfc66219e48be824bf5d8d9c1e2866/src/progress/engine/line.ml | ocaml | * [Line] is a higher-level wrapper around [Segment] that makes some
simplifying assumptions about progress bar rendering:
- the reported value has a monoid instance, used for initialisation and
accumulation.
- the line is wrapped inside a single box.
It contains its own notion of "accumulated" ... | — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
Copyright ( c ) 2020–2021 < >
Distributed under the MIT license . See terms at the end of this file .
— — — — — — — — — — — — — — — — — — — — — — — — —... |
d9e2614b0a6aca2220a170a7daae7d7e57003ffcee60a51be15cd7964b2cbb72 | aarkerio/ZentaurLMS | user.clj | (ns user
"Userspace functions you can run by default in your local REPL."
(:require
[zentaur.config :refer [env]]
[clojure.pprint]
[clojure.spec.alpha :as s]
[expound.alpha :as expound]
[mount.core :as mount]
[zentaur.core :refer [start-app]]))
(alter-var-root #'s/*explain-out* (constantly e... | null | https://raw.githubusercontent.com/aarkerio/ZentaurLMS/adb43fb879b88d6a35f7f556cb225f7930d524f9/env/dev/clj/user.clj | clojure | (ns user
"Userspace functions you can run by default in your local REPL."
(:require
[zentaur.config :refer [env]]
[clojure.pprint]
[clojure.spec.alpha :as s]
[expound.alpha :as expound]
[mount.core :as mount]
[zentaur.core :refer [start-app]]))
(alter-var-root #'s/*explain-out* (constantly e... | |
f068cb757845aecbfb8d7d2092e25292693b1578077b0b98bffcbf5e39f39308 | dpom/clj-duckling | helpers.clj | (ns clj-duckling.util.helpers
"This namespace contains the common helpers used in rules"
(:require
[clj-time.core :as t]
[clj-duckling.util.core :as util]))
(defmacro fn& [dim & args-body]
(let [meta-map (when (-> args-body first map?)
(first args-body))
args-body (if meta-map
... | null | https://raw.githubusercontent.com/dpom/clj-duckling/8728f9a99b4b002e9ce2ea62b3a82a61b0cdac06/src/clj_duckling/util/helpers.clj | clojure | (ns clj-duckling.util.helpers
"This namespace contains the common helpers used in rules"
(:require
[clj-time.core :as t]
[clj-duckling.util.core :as util]))
(defmacro fn& [dim & args-body]
(let [meta-map (when (-> args-body first map?)
(first args-body))
args-body (if meta-map
... | |
bf15034aff5ede3c40b0274d493d10a7eecf4917798d33b67e5a552a895d559d | cacay/regexp | SparseMatrix.hs | {-# LANGUAGE GADTs #-}
# LANGUAGE DataKinds #
# LANGUAGE KindSignatures #
# LANGUAGE TypeApplications #
# LANGUAGE TypeOperators #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
-- TODO: remove
# LANGUAGE AllowAmbiguousTypes #
-- | A very cruddy implementation of sparse matrices. I couldn't
-- find an ... | null | https://raw.githubusercontent.com/cacay/regexp/25fd123edb00ce0dbd8b6fd6732a7aeca37e4a47/src/SparseMatrix.hs | haskell | # LANGUAGE GADTs #
TODO: remove
| A very cruddy implementation of sparse matrices. I couldn't
find an existing implementation that had all that I needed, so
I cooked this up.
TODO: find a package or make nicer
| A sparse matrix with @r@ rows and @c@ columns over
| Value at the given row and column.
| Row with ... | # LANGUAGE DataKinds #
# LANGUAGE KindSignatures #
# LANGUAGE TypeApplications #
# LANGUAGE TypeOperators #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE AllowAmbiguousTypes #
module SparseMatrix
( SparseMatrix
, matrix
, fromRows
, (!)
, nthRow
, plus
, times
... |
2822e7410ffd46ea9b17a1adac4db5ab5dd87a9426298bb463965c89dde3968a | logicmoo/wam_common_lisp | init.lsp | (load "../util/system")
(load "defsys")
(load "cmpinit")
( sbt : build - system clos )
;(setq *print-circle* t)
( allocate ' cons 800 t )
( setq si:*gc - verbose * nil )
| null | https://raw.githubusercontent.com/logicmoo/wam_common_lisp/4396d9e26b050f68182d65c9a2d5a939557616dd/prolog/wam_cl/src/clos/init.lsp | lisp | (setq *print-circle* t) | (load "../util/system")
(load "defsys")
(load "cmpinit")
( sbt : build - system clos )
( allocate ' cons 800 t )
( setq si:*gc - verbose * nil )
|
b93227af31c801043da22e3036c6216b89ef8516aa7e0be2d9169bb82e792b9c | didierverna/declt | package.lisp | package.lisp --- Declt setup package definition
Copyright ( C ) 2015 , 2017 , 2019 , 2021
Author : < >
This file is part of Declt .
;; 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 ... | null | https://raw.githubusercontent.com/didierverna/declt/13bb631eaf282a1fb5ebbb30843df6f21bf3983e/setup/package.lisp | lisp | 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.
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SH... | package.lisp --- Declt setup package definition
Copyright ( C ) 2015 , 2017 , 2019 , 2021
Author : < >
This file is part of Declt .
THIS SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RES... |
767cde4593406d2d0666d92d6defb41591a6dd19c20440f7c0acb7550ca3ad92 | AccelerateHS/accelerate-llvm | Module.hs | {-# LANGUAGE CPP #-}
# LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
-- |
-- Module : Data.Array.Accelerate.LLVM.Native.Compile.Module
Copyright : [ 2014 .. 2017 ] The Accelerate Team
-- License : BSD3
--
Maintainer : < >
-- Stability : experimental
Portability : non - po... | null | https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/accelerate-llvm-native/icebox/Data/Array/Accelerate/LLVM/Native/Compile/Module.hs | haskell | # LANGUAGE CPP #
|
Module : Data.Array.Accelerate.LLVM.Native.Compile.Module
License : BSD3
Stability : experimental
accelerate
library
| An encapsulation of the callable functions resulting from compiling
a module.
# UNPACK #
| Execute a named function that was defined in the module.... | # LANGUAGE RecordWildCards #
# LANGUAGE TemplateHaskell #
Copyright : [ 2014 .. 2017 ] The Accelerate Team
Maintainer : < >
Portability : non - portable ( GHC extensions )
module Data.Array.Accelerate.LLVM.Native.Compile.Module (
Module,
compileModule,
execute, executeMain,
nm,
) where
import... |
a848c18d785838853866533ce5408c850f8a8a0454a854e2598979528f420d96 | Zulu-Inuoe/clution | encode.lisp | This file is part of yason , a Common Lisp JSON parser / encoder
;;
Copyright ( c ) 2008 - 2014 and contributors
;; All rights reserved.
;;
;; Please see the file LICENSE in the distribution.
(in-package :yason)
(defvar *json-output*)
(defparameter *default-indent* nil
"Set to T or an numeric indentation wid... | null | https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/yason-v0.7.6/encode.lisp | lisp |
All rights reserved.
Please see the file LICENSE in the distribution.
Get the quoted list | This file is part of yason , a Common Lisp JSON parser / encoder
Copyright ( c ) 2008 - 2014 and contributors
(in-package :yason)
(defvar *json-output*)
(defparameter *default-indent* nil
"Set to T or an numeric indentation width in order to have YASON
indent its output by default.")
(defparameter *defaul... |
6f7581b88c10ec88e02ad32f011d58da2ed0e25e75d827e6c2a438823ad1aae2 | kansetsu7/awesome_name | combinations.cljs | (ns awesome-name.views.combinations
(:require
[awesome-name.component.core :as cpt]
[awesome-name.events :as evt]
[awesome-name.subs :as sub]
[awesome-name.views.shared :as shared]
[clojure.string :as cs]
[re-frame.core :as rf]
[reagent-mui.components :as mui]
[reagent-mui.icons.downlo... | null | https://raw.githubusercontent.com/kansetsu7/awesome_name/32d6d0f4c9a957d4739bb79d584d6298b4f6364e/src/awesome_name/views/combinations.cljs | clojure | (ns awesome-name.views.combinations
(:require
[awesome-name.component.core :as cpt]
[awesome-name.events :as evt]
[awesome-name.subs :as sub]
[awesome-name.views.shared :as shared]
[clojure.string :as cs]
[re-frame.core :as rf]
[reagent-mui.components :as mui]
[reagent-mui.icons.downlo... | |
485e4b9a3d80b63d05a8ef1e0d380dc5b67aa0461f960c9100596b2762cd4e22 | apache/couchdb-rebar | dummy_sup.erl | -module(dummy_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Dummy = {dummy_server,
{dummy_server, start_link, []},
permanent, 5000, worker, [dummy_server]},
{ok, {{one_... | null | https://raw.githubusercontent.com/apache/couchdb-rebar/8578221c20d0caa3deb724e5622a924045ffa8bf/test/upgrade_project/apps/dummy/src/dummy_sup.erl | erlang | -module(dummy_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
Dummy = {dummy_server,
{dummy_server, start_link, []},
permanent, 5000, worker, [dummy_server]},
{ok, {{one_... | |
11fd2643f91504a21091c9d8144e765b19de2a185082f44035a5bf0b729a8ab2 | Drup/dowsing | Timer.ml | type t = Float.t ref
let make () = ref 0.
let get t = !t
let start t =
t := Unix.gettimeofday ()
let stop t =
t := Unix.gettimeofday () -. !t
| null | https://raw.githubusercontent.com/Drup/dowsing/6a7b6a9d1206689da45f7030c700c58a0b3c3d8a/lib/utils/Timer.ml | ocaml | type t = Float.t ref
let make () = ref 0.
let get t = !t
let start t =
t := Unix.gettimeofday ()
let stop t =
t := Unix.gettimeofday () -. !t
| |
05c9c690e464d43176167a06d34a3bd2002637aeac9312461f0a38d68a2176d7 | sjl/advent | 2015.lisp |
(ql:quickload "beef")
(ql:quickload "alexandria")
(ql:quickload "split-sequence")
(ql:quickload "cl-arrows")
(ql:quickload "fset")
(ql:quickload "cl-ppcre")
(ql:quickload "ironclad")
(ql:quickload "smug")
(ql:quickload "bit-smasher")
(ql:quickload "optima")
(defpackage #:advent
(:use #:cl)
(:use #:cl-arrows)
... | null | https://raw.githubusercontent.com/sjl/advent/9c8c7f5a874678280244a8f7b865db49b907c64c/src/old/2015/2015.lisp | lisp | Day 1
Day 2
Day 3
come directly at me
Day 4
Day 5
Day 6
Day 7
Day 8
Day 9
nil itself
Otherwise, take an element, e, out of the bag.
Generate all permutations of the remaining elements,
And add e to the front of each of these.
Do this for all possible e to generate all pe... |
(ql:quickload "beef")
(ql:quickload "alexandria")
(ql:quickload "split-sequence")
(ql:quickload "cl-arrows")
(ql:quickload "fset")
(ql:quickload "cl-ppcre")
(ql:quickload "ironclad")
(ql:quickload "smug")
(ql:quickload "bit-smasher")
(ql:quickload "optima")
(defpackage #:advent
(:use #:cl)
(:use #:cl-arrows)
... |
9dbb0f275f8e46dd5a52b4ebe66c295edd9eab53b4bee1e87bedd3ab5054864c | dwincort/UISF | UISF.hs | module FRP.UISF
( -- UI functions
UISF
: : ( ) ( ) - > IO ( )
: : UIParams - > UISF ( ) ( ) - > IO ( )
, UIParams, defaultUIParams
, uiInitialize, uiClose, uiTitle, uiSize, uiInitFlow, uiTickDelay, uiCloseOnEsc, uiBackground
, Dimension -- type Dimension = (Int, Int)
-- Widgets
: : Str... | null | https://raw.githubusercontent.com/dwincort/UISF/291a6155e41f351d938daed3d2be6f8baf832a19/FRP/UISF.hs | haskell | UI functions
type Dimension = (Int, Int)
Widgets
:: String -> UISF (Event String) String
:: WrapSetting -> String -> UISF (Event String) String
:: String -> UISF (Event String) String
:: String -> UISF () Bool
:: String -> UISF () Bool
:: [(String, a)] -> UISF () [a]
:: RealFrac a => Layout -> UISF (Event [a]... | module FRP.UISF
UISF
: : ( ) ( ) - > IO ( )
: : UIParams - > UISF ( ) ( ) - > IO ( )
, UIParams, defaultUIParams
, uiInitialize, uiClose, uiTitle, uiSize, uiInitFlow, uiTickDelay, uiCloseOnEsc, uiBackground
: : String - > UISF a a
: : ( )
: : Show a = > UISF a ( )
: : Show b = > UISF a b - > UIS... |
c452ca73cbce251932c500dc63f8c57fbf19b7d6ef098c70e40f30239a06ef45 | pveber/biotk | bam_traversal.ml | open Core
open Biotk
open Rresult
let time f =
let start = Core_unix.gettimeofday () in
let y = f () in
let stop = Core_unix.gettimeofday () in
(y, stop -. start)
let ok_exn = function
| Ok x -> x
| Error (`Msg msg) -> failwith msg
| Error `Parse_error -> failwith "Incorrect format for location"
let ok... | null | https://raw.githubusercontent.com/pveber/biotk/422640d9303c90c43ecb4b679a8bf5867998119c/examples/bam_traversal.ml | ocaml | open Core
open Biotk
open Rresult
let time f =
let start = Core_unix.gettimeofday () in
let y = f () in
let stop = Core_unix.gettimeofday () in
(y, stop -. start)
let ok_exn = function
| Ok x -> x
| Error (`Msg msg) -> failwith msg
| Error `Parse_error -> failwith "Incorrect format for location"
let ok... | |
33b00ff823b60a03033b6462bc3d4cd01a7653864f6b804fec0836293ece387e | DavidAlphaFox/RabbitMQ | rabbit_amqp1_0_framing.erl | The contents of this file are subject to the Mozilla Public License
%% Version 1.1 (the "License"); you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distributed on an " AS IS "
%% basis, WITHOUT WARRANTY OF ... | null | https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/rabbitmq-amqp1.0/src/rabbit_amqp1_0_framing.erl | erlang | Version 1.1 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
debug
These ar... | The contents of this file are subject to the Mozilla Public License
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ .
The Initial Developer of the Original Code is GoPivotal , Inc.
Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved .
-module... |
144fb44f89905117bce47e3e94c24f27e7a94030d696f57ee646481f4033d75f | 2600hz/kazoo | ecallmgr_fs_channels.erl | %%%-----------------------------------------------------------------------------
( C ) 2013 - 2020 , 2600Hz
%%% @doc Track the FreeSWITCH channel information, and provide accessors
@author
@author
%%%
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the ... | null | https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/applications/ecallmgr/src/ecallmgr_fs_channels.erl | erlang | -----------------------------------------------------------------------------
@doc Track the FreeSWITCH channel information, and provide accessors
@end
-----------------------------------------------------------------------------
=============================================================================
API
===... | ( C ) 2013 - 2020 , 2600Hz
@author
@author
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 /.
-module(ecallmgr_fs_channels).
-behaviour(gen_listener).
-export([start_link/0]).
-export... |
803b8701785d7db78c1212747c2150bc56ef4787c281ced7e86fa01fe2b88840 | mtravers/wuwei | t-session.lisp | (in-package :wu)
(5am:def-suite :session :in :wuwei)
(5am:in-suite :session)
;;; Tests of session and login machinery
;;; Test dropping a cookie to establish session
(5am:test session-basics
(publish :path (test-path "session1")
:function #'(lambda (req ent)
(with-session (req ent)
(with-http-respons... | null | https://raw.githubusercontent.com/mtravers/wuwei/c0968cca10554fa12567d48be6f932bf4418dbe1/t/t-session.lisp | lisp | Tests of session and login machinery
Test dropping a cookie to establish session
Test session variable machinery without a web trip
This is how you do a login. Note that the make-new-session has to be OUTSIDE the with-http-response-and-body, to allow the cookies to be set early.
Tests protection of an ajax method... | (in-package :wu)
(5am:def-suite :session :in :wuwei)
(5am:in-suite :session)
(5am:test session-basics
(publish :path (test-path "session1")
:function #'(lambda (req ent)
(with-session (req ent)
(with-http-response-and-body (req ent)
(html (:html (:body "foo")))))))
(let ((cookie-jar (make-... |
6929a6c0f92145823e7b5e2a701c9e7d614559dd2942299a2b69f7e47275c517 | itchyny/miv | Cmdline.hs | # , LambdaCase , OverloadedStrings #
module Cmdline where
import Data.Text (Text, unpack)
import Data.YAML
import Prelude hiding (show)
import ShowText
data Cmdline = CmdlineExCommand
| CmdlineForwardSearch
| CmdlineBackwardSearch
| CmdlineInput
deriving (Eq, Ord... | null | https://raw.githubusercontent.com/itchyny/miv/36aba3a52e3169654af482cee6181172194a347e/src/Cmdline.hs | haskell | # , LambdaCase , OverloadedStrings #
module Cmdline where
import Data.Text (Text, unpack)
import Data.YAML
import Prelude hiding (show)
import ShowText
data Cmdline = CmdlineExCommand
| CmdlineForwardSearch
| CmdlineBackwardSearch
| CmdlineInput
deriving (Eq, Ord... | |
f54983da5f39ec41dcfe50ca8dfd0eafe11b882645f0a3197262d533fbce4fca | rabbitmq/rabbitmq-status | status_render.erl | The contents of this file are subject to the Mozilla Public License
Version 1.1 ( the " License " ) ; you may not use this file except in
%% compliance with the License. You may obtain a copy of the License at
%% /
%%
Software distributed under the License is distributed on an " AS IS "
%% basis, WITH... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-status/121829bb890ee6465d7c92b034f571a85df29f8f/src/status_render.erl | erlang | compliance with the License. You may obtain a copy of the License at
/
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific language governing rights and limitations
under the License.
All Rights Reserved.
Contributor(s): ___________________________... | The contents of this file are subject to the Mozilla Public License
Version 1.1 ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ Status Plugin .
The Initial Developers of the Original Code ar... |
8c7215f07b8e79a1ebc54584b351584d5bf2e52521cefa97f71250c0a36ff267 | redplanetlabs/proxy-plus | project.clj | (defproject com.rpl/proxy-plus "0.0.9-SNAPSHOT"
:description "A faster and more usable replacement for Clojure's proxy."
:java-source-paths ["test/java"]
:test-paths ["test/clj"]
:dependencies [[org.clojure/clojure "1.10.0"]
[com.rpl/specter "1.1.3"]
[org.ow2.asm/asm "4.2"]
... | null | https://raw.githubusercontent.com/redplanetlabs/proxy-plus/32190425408625eb3721af456ed15586983b9351/project.clj | clojure | (defproject com.rpl/proxy-plus "0.0.9-SNAPSHOT"
:description "A faster and more usable replacement for Clojure's proxy."
:java-source-paths ["test/java"]
:test-paths ["test/clj"]
:dependencies [[org.clojure/clojure "1.10.0"]
[com.rpl/specter "1.1.3"]
[org.ow2.asm/asm "4.2"]
... | |
6aa201c83ee85e8d8ed29de267157b97ae91b107a517bc4e8afb0fe8ae0fb3b7 | cark/cark.behavior-tree | guard.cljc | (ns cark.behavior-tree.node-defs.guard
"The :guard node is a special kind of branch node that can only have two children.
The first child is called the predicate node, the second child is the payload node.
It is usefull for possibly interrupting a running subtree based on the predicate result.
Each time the :... | null | https://raw.githubusercontent.com/cark/cark.behavior-tree/4e229fcc2ed3af3c66e74d2c51dda6684927d254/src/main/cark/behavior_tree/node_defs/guard.cljc | clojure | (ns cark.behavior-tree.node-defs.guard
"The :guard node is a special kind of branch node that can only have two children.
The first child is called the predicate node, the second child is the payload node.
It is usefull for possibly interrupting a running subtree based on the predicate result.
Each time the :... | |
ecec483b2619dacb6a21ee3e2e2fe01ccda6fbb57ba855b1efc2f94bf27cae03 | cedlemo/OCaml-GI-ctypes-bindings-generator | Numerable_icon.mli | open Ctypes
type t
val t_typ : t typ
(*Not implemented gtk_numerable_icon_new type interface not implemented*)
(*Not implemented gtk_numerable_icon_new_with_style_context type interface not implemented*)
Not implemented gtk_numerable_icon_get_background_gicon return type interface not handled
val get_background_icon_... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Numerable_icon.mli | ocaml | Not implemented gtk_numerable_icon_new type interface not implemented
Not implemented gtk_numerable_icon_new_with_style_context type interface not implemented
Not implemented gtk_numerable_icon_set_background_gicon type interface not implemented | open Ctypes
type t
val t_typ : t typ
Not implemented gtk_numerable_icon_get_background_gicon return type interface not handled
val get_background_icon_name :
t -> string option
val get_count :
t -> int32
val get_label :
t -> string option
val get_style_context :
t -> Style_context.t ptr option
val set_backgro... |
0e637c9cf0c499de8ab2b50a419d0f9a65f6135cc79b0809b9a7c89ab6e2c4e4 | coq/opam-coq-archive | archive2web.ml | module StrSet = Set.Make(String)
module StrMap = Map.Make(String)
[@@@ocaml.warning "-3"]
type package_name = string
[@@deriving yojson]
type package_version = {
homepage : string option;
keywords : string list;
categories : string list;
authors : string list;
description : string option;
date : string o... | null | https://raw.githubusercontent.com/coq/opam-coq-archive/02a50c59307880c2abd7a67df03859c06a4863bc/scripts/archive2web.ml | ocaml | module StrSet = Set.Make(String)
module StrMap = Map.Make(String)
[@@@ocaml.warning "-3"]
type package_name = string
[@@deriving yojson]
type package_version = {
homepage : string option;
keywords : string list;
categories : string list;
authors : string list;
description : string option;
date : string o... | |
c75f7acabb8ea03f2ccf7b7b114b8cd05156e566480d48d56023fd7b85eb4cfa | thelema/ocaml-community | text_tag_bind.ml | ##ifdef CAMLTK
let tag_bind widget tag eventsequence action =
check_class widget widget_text_table;
tkCommand [|
cCAMLtoTKwidget widget_text_table widget;
TkToken "tag";
TkToken "bind";
cCAMLtoTKtextTag tag;
cCAMLtoTKeventSequence eventsequence;
begin match action with
| BindRemove -> T... | null | https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/builtin/text_tag_bind.ml | ocaml | ##ifdef CAMLTK
let tag_bind widget tag eventsequence action =
check_class widget widget_text_table;
tkCommand [|
cCAMLtoTKwidget widget_text_table widget;
TkToken "tag";
TkToken "bind";
cCAMLtoTKtextTag tag;
cCAMLtoTKeventSequence eventsequence;
begin match action with
| BindRemove -> T... | |
015bbf4a6c3b66f72a8530f6aba4961de22dfa96cb30a4726156eb79e8a32d5d | icicle-lang/icicle-ambiata | Analysis.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternGuards #
module Icicle.Sea.FromAvalanche.Analysis (
factVarsOfProgram
, resumablesOfProgram
, accumsOfProgram
, outputsOfProgram
, readsOfProgram
, typesOfProgram
) where
import Icicle.Avalanche.Prim.Flat
impo... | null | https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/src/Icicle/Sea/FromAvalanche/Analysis.hs | haskell | # LANGUAGE OverloadedStrings #
----------------------------------------------------------------------
Analysis
----------------------------------------------------------------------
----------------------------------------------------------------------
------------------------------------------------------------------... | # LANGUAGE NoImplicitPrelude #
# LANGUAGE PatternGuards #
module Icicle.Sea.FromAvalanche.Analysis (
factVarsOfProgram
, resumablesOfProgram
, accumsOfProgram
, outputsOfProgram
, readsOfProgram
, typesOfProgram
) where
import Icicle.Avalanche.Prim.Flat
import Icicle.Avalanche.Progr... |
8bcead2ddf4a23a2c637e2868444e35814ea4695a7000d934b5043ff4c812261 | philnguyen/soft-contract | reverse-dep.rkt | #lang racket
(require soft-contract/fake-contract)
(define (append xs ys)
(if (empty? xs) ys
(cons (car xs) (append (cdr xs) ys))))
(define (reverse xs)
(if (empty? xs) empty
(append (cdr xs) (cons (car xs) empty))))
(provide/contract
[reverse (->i ([xs (listof any/c)])
(res (xs)
(and... | null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/sym-exe/reverse-dep.rkt | racket | #lang racket
(require soft-contract/fake-contract)
(define (append xs ys)
(if (empty? xs) ys
(cons (car xs) (append (cdr xs) ys))))
(define (reverse xs)
(if (empty? xs) empty
(append (cdr xs) (cons (car xs) empty))))
(provide/contract
[reverse (->i ([xs (listof any/c)])
(res (xs)
(and... | |
13a9e55d50ce161150fdfb1f9d133ec0e70b185f15f2d0f39d8fc3e3e3791fdd | SNePS/SNePS2 | rels.lisp | -*- Mode : Lisp ; Syntax : Common - Lisp ; Package : USER ; Base : 10 -*-
Copyright ( C ) 1984 - -2013
Research Foundation of State University of New York
;;; Version: $Id: rels.lisp,v
;;; This file is part of SNePS.
$ BEGIN LICENSE$
The contents of this file are subject to the University at
Buffalo P... | null | https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/demo/sneps/brachet-dist/rels.lisp | lisp | Syntax : Common - Lisp ; Package : USER ; Base : 10 -*-
Version: $Id: rels.lisp,v
This file is part of SNePS.
you may
not use this file except in compliance with the License. You
may obtain a copy of the License at
. edu/sneps/Downloads/ubpl.pdf.
or implied. See the License for the specific language gov
er... |
Copyright ( C ) 1984 - -2013
Research Foundation of State University of New York
$ BEGIN LICENSE$
The contents of this file are subject to the University at
Software distributed under the License is distributed on an
" AS IS " basis , WITHOUT WARRANTY OF ANY KIND , either express
The Original Code is... |
90f11a909729117365aa78e0fffb95f276be04a4cab80d75f9818d6a80d9f930 | xsc/version-clj | qualifiers.cljc | (ns version-clj.qualifiers)
(def default-qualifiers
"Order Map for well-known Qualifiers."
{ "alpha" 0 "a" 0
"beta" 1 "b" 1
"milestone" 2 "m" 2
"rc" 3 "cr" 3
"snapshot" 5
"" 6 "final" 6 "stable" 6 })
| null | https://raw.githubusercontent.com/xsc/version-clj/f5ccd13cef363e9933bc453a6c7048fa800968d9/src/version_clj/qualifiers.cljc | clojure | (ns version-clj.qualifiers)
(def default-qualifiers
"Order Map for well-known Qualifiers."
{ "alpha" 0 "a" 0
"beta" 1 "b" 1
"milestone" 2 "m" 2
"rc" 3 "cr" 3
"snapshot" 5
"" 6 "final" 6 "stable" 6 })
| |
c5eb205202448dad37175379e317b85a12c9471ccb75ef7855253de72fe69fb4 | mejgun/haskell-tdlib | SetFileGenerationProgress.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.SetFileGenerationProgress where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
Informs TDLib on a file generation progress
data SetFileGenerationProgress = SetFileGenerationProgress
{ -- | The number... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/9bd82101be6e6218daf816228f6141fe89d97e8b/src/TD/Query/SetFileGenerationProgress.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
| The number of bytes already generated
| Expected size of the generated file, in bytes; 0 if unknown
| The identifier of the generation process |
module TD.Query.SetFileGenerationProgress where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
Informs TDLib on a file generation progress
data SetFileGenerationProgress = SetFileGenerationProgress
local_prefix_size :: Maybe Int,
expected_size :: Maybe I... |
e27cce8080d7d5d88c8c1fe76a1874f95f095d192e476b26227f4668b524e872 | scheme/edwin48 | test-groups.scm | (define-structure test-groups
(export run-test)
(open scheme
formats
srfi-13
edwin:group
edwin:region
edwin:mark
edwin:buffer
edwin:motion)
(begin
(define (print . stuff)
(for-each
(lambda (s) (display s) (newline))
stuff))
(define (print-group group)
(print
(grou... | null | https://raw.githubusercontent.com/scheme/edwin48/fbe3c7ca14f1418eafddebd35f78ad12e42ea851/scratch/test-groups.scm | scheme | (define-structure test-groups
(export run-test)
(open scheme
formats
srfi-13
edwin:group
edwin:region
edwin:mark
edwin:buffer
edwin:motion)
(begin
(define (print . stuff)
(for-each
(lambda (s) (display s) (newline))
stuff))
(define (print-group group)
(print
(grou... | |
7a4f55c9adbd5449b86cc45e387ba3a41b770010f648c41e51ba1c7ea7bc101f | pookleblinky/lifescripts | coinfast.rkt | #lang racket
I 've been doing a stochastic intermittent fast , based on coinflips .
;; Each morning, flip a coin. Heads, eat. Tails, fast.
The EV of heads over 7 days is 3.5 , same as scheduled ADF .
(require "../machinery/rng.rkt")
(provide feast?)
;; I want to be able to easily change the meaning, so that say... | null | https://raw.githubusercontent.com/pookleblinky/lifescripts/eab3fe5aaf2c9f5ee9baaa441cb5d556cd7a3a78/fitness/coinfast.rkt | racket | Each morning, flip a coin. Heads, eat. Tails, fast.
I want to be able to easily change the meaning, so that say at maintenance | #lang racket
I 've been doing a stochastic intermittent fast , based on coinflips .
The EV of heads over 7 days is 3.5 , same as scheduled ADF .
(require "../machinery/rng.rkt")
(provide feast?)
heads becomes tdee+15 % , etc .
(define rules "Heads feast, tails fast.")
(define (feast?)
(printf "~a You got: ... |
7c8980c24eb4f10ee22b31abae8782c383fcbb4ccfaa3254625f5cb1f792b50e | monadbobo/ocaml-core | reader.mli | * A reader lets one do buffered input from a file descriptor .
Each of the read functions returns a deferred that will become determined when the
read completes . It is an error to have two simultaneous reads . That is , if one calls
a read function , one should not call another read function unt... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/async/unix/lib/reader.mli | ocaml | * [last_read_time t] returns time of the most recent [read] system call that
returned data.
* [open_file file] opens [file] for reading and returns a reader reading from
it.
* [close t] closes the underlying file descriptor of the reader.
* [closed t] returns a deferred that is filled in when the reader is
... | * A reader lets one do buffered input from a file descriptor .
Each of the read functions returns a deferred that will become determined when the
read completes . It is an error to have two simultaneous reads . That is , if one calls
a read function , one should not call another read function unt... |
ce83599eaa018b9133ce68f000f7e97663cc3cbeaed8d4248b819b186df89bb1 | janestreet/base | test_nativeint.ml | open! Import
open! Nativeint
let%expect_test "hash coherence" =
check_int_hash_coherence [%here] (module Nativeint);
[%expect {| |}]
;;
type test_case = nativeint * int32 * int64
let test_cases : test_case list =
[ 0x0000_0011n, 0x1100_0000l, 0x1100_0000_0000_0000L
; 0x0000_1122n, 0x2211_0000l, 0x2211_0000_0... | null | https://raw.githubusercontent.com/janestreet/base/221b085f3fcd77597f8245b4d73de3970b238e71/test/test_nativeint.ml | ocaml | open! Import
open! Nativeint
let%expect_test "hash coherence" =
check_int_hash_coherence [%here] (module Nativeint);
[%expect {| |}]
;;
type test_case = nativeint * int32 * int64
let test_cases : test_case list =
[ 0x0000_0011n, 0x1100_0000l, 0x1100_0000_0000_0000L
; 0x0000_1122n, 0x2211_0000l, 0x2211_0000_0... | |
ff980cd466593482e1cf3dc61699155738d26a13164d3fbf6f71822febc10ccd | paf31/dovetail | FFI.hs | # LANGUAGE ImportQualifiedPost #
{-# LANGUAGE OverloadedStrings #-}
module Dovetail.FFI
(
-- * Foreign function interface
FFI(..)
, ForeignImport(..)
, toEnv
, toExterns
) where
import Data.Map qualified as Map
import Dovetail.Types
import Language.PureScript qualified as P
import Language.Pure... | null | https://raw.githubusercontent.com/paf31/dovetail/60e00e247b643ad9c05e4137396ffddedcd8bcb6/dovetail/src/Dovetail/FFI.hs | haskell | # LANGUAGE OverloadedStrings #
* Foreign function interface
Right now, this consists only of foreign value declarations, even though
Values of this type can be constructed directly, but in many cases it is
instead.
Values of this type can be consumed by the 'toExterns' and 'toEnv' functions,
directly, but it... | # LANGUAGE ImportQualifiedPost #
module Dovetail.FFI
(
FFI(..)
, ForeignImport(..)
, toEnv
, toExterns
) where
import Data.Map qualified as Map
import Dovetail.Types
import Language.PureScript qualified as P
import Language.PureScript.Externs qualified as Externs
| Describes a module which is ... |
a0129cf842b491dc933fa837199203e8d33fb2c372f5a4e45e3be874dd2e6cea | atlas-engineer/nyxt | small-web.lisp | SPDX - FileCopyrightText : Atlas Engineer LLC
SPDX - License - Identifier : BSD-3 - Clause
(nyxt:define-package :nyxt/small-web-mode
(:documentation "Mode for Gopher/Gemini page interaction."))
(in-package :nyxt/small-web-mode)
(define-mode small-web-mode ()
"Gopher/Gemini page interaction mode.
Renders go... | null | https://raw.githubusercontent.com/atlas-engineer/nyxt/07063f399afddfe4679b28a351cf16ad04dd019d/source/mode/small-web.lisp | lisp | Gopher rendering.
TODO: Guess encoding?
into pages of the bigger Web, which is exactly what display-isolated means.
TODO: We used to build <ul>-lists out of those. Should we? | SPDX - FileCopyrightText : Atlas Engineer LLC
SPDX - License - Identifier : BSD-3 - Clause
(nyxt:define-package :nyxt/small-web-mode
(:documentation "Mode for Gopher/Gemini page interaction."))
(in-package :nyxt/small-web-mode)
(define-mode small-web-mode ()
"Gopher/Gemini page interaction mode.
Renders go... |
514ea291889ddd4bdfa7f293d3900c7b6ce0ea1acb074d85f0867834e03d8251 | CryptoKami/cryptokami-core | Holders.hs | | This module provides implementations of " MonadCede " based on
either pure DB or DB+hashmap access .
module Pos.Delegation.Cede.Holders
( DBCede
, runDBCede
, MapCede
, runMapCede
, evalMapCede
) where
import Universum
import Control.Lens (at, (%=)... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/delegation/src/Pos/Delegation/Cede/Holders.hs | haskell | --------------------------------------------------------------------------
Pure database-only holder
--------------------------------------------------------------------------
performed in batches on block application only.
--------------------------------------------------------------------------
-------------------... | | This module provides implementations of " MonadCede " based on
either pure DB or DB+hashmap access .
module Pos.Delegation.Cede.Holders
( DBCede
, runDBCede
, MapCede
, runMapCede
, evalMapCede
) where
import Universum
import Control.Lens (at, (%=)... |
4eb0e61b9777dc371f95dea78eea52315e70096798c40f874c381926b35f95bf | NelosG/fp-tests | Spec.hs | # LANGUAGE TemplateHaskell , NegativeLiterals , BlockArguments ,
StandaloneKindSignatures , ConstraintKinds , GeneralizedNewtypeDeriving ,
DerivingStrategies , FlexibleInstances #
StandaloneKindSignatures, ConstraintKinds, GeneralizedNewtypeDeriving,
DerivingStrat... | null | https://raw.githubusercontent.com/NelosG/fp-tests/2997fc0d4cf08fa17dffa00242369ac039e709aa/hw3/baseTests/T10/Spec.hs | haskell | -------------------------
---- NAME CHECKING ------
-------------------------
-------
-------------------------
---- TYPE CHECKING ------
-------------------------
-------------------------
---- PROP CHECKING ------
------------------------- | # LANGUAGE TemplateHaskell , NegativeLiterals , BlockArguments ,
StandaloneKindSignatures , ConstraintKinds , GeneralizedNewtypeDeriving ,
DerivingStrategies , FlexibleInstances #
StandaloneKindSignatures, ConstraintKinds, GeneralizedNewtypeDeriving,
DerivingStrat... |
322d1230a3227f11c80dd42f193398481ccb18b4c9913cc22bc7ad68a37c5bf7 | bjornbm/astro | At.hs | module Astro.Time.At where
import Control.Applicative
import Data.Foldable
import Data.Traversable
import Astro.Time (E)
-- | Data type tagging some value x with a specific time. Typically
use is @x ` At ` t@.
Isomorphic to @(E t a , x)@ ( also true for the ' Functor ' instance ) .
data At t a x = At { value ::... | null | https://raw.githubusercontent.com/bjornbm/astro/f4fb2c4b739a0a8f68f51aa154285120d2230c30/src/Astro/Time/At.hs | haskell | | Data type tagging some value x with a specific time. Typically
| A flipped 'At', in other words @t `tA` x == x `At` t@.
| Convert @x `At` t@ into the tuple (t, x).
| Kind of like an epoch-dependent 'fmap'.
| Maps 'appAt f'.
ordered. Values that do not match up (in time) with a value in the other
series are dro... | module Astro.Time.At where
import Control.Applicative
import Data.Foldable
import Data.Traversable
import Astro.Time (E)
use is @x ` At ` t@.
Isomorphic to @(E t a , x)@ ( also true for the ' Functor ' instance ) .
data At t a x = At { value :: x
, epoch :: !(E t a)
} deriv... |
e91e3206068a49e56163e5f45804c1f3777019a79baf39329671a05dabcdfa46 | broom-lang/broom | Ast.mli | type 'a with_pos = 'a Util.with_pos
module Primop : AstSigs.PRIMOP
module rec Expr : (AstSigs.EXPR
with type primop = Primop.t
with type stmt = Stmt.t
with type decl = Decl.t)
and Stmt : (AstSigs.STMT
with type expr = Expr.t)
and Decl : (AstSigs.DECL
with type expr = Expr.t)
module Program : As... | null | https://raw.githubusercontent.com/broom-lang/broom/a355c229575bccc853b9acb98437b0b767221971/compiler/lib/Ast/Ast.mli | ocaml | type 'a with_pos = 'a Util.with_pos
module Primop : AstSigs.PRIMOP
module rec Expr : (AstSigs.EXPR
with type primop = Primop.t
with type stmt = Stmt.t
with type decl = Decl.t)
and Stmt : (AstSigs.STMT
with type expr = Expr.t)
and Decl : (AstSigs.DECL
with type expr = Expr.t)
module Program : As... | |
ecf0f564882ff64e6bcdf7ea44890b38d0140bf84a88322c5ce42bc45b10f218 | ml4tp/tcoq | hook.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/lib/hook.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
********************************************************************** | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
type 'a content =
| Unset
| D... |
35cf3a0b91b4414ece625ca80301b80b58db2fd7878850ea8ba890bb3bc89a2d | monadbobo/ocaml-core | service_command.ml | open Core.Std
let command ~lock_file ~name main =
let start_main () =
let release_parent = Daemon.daemonize_wait () in
(* lock file created after [daemonize_wait] so that *child* pid is written
to the lock file rather than the parent pid *)
if Lock_file.create ~close_on_exec:true ~unlink_on_exit:t... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/service_command.ml | ocaml | lock file created after [daemonize_wait] so that *child* pid is written
to the lock file rather than the parent pid
this writes our pid in the file
we release the daemon's parent *after* the lock file is created
so that any error messages during lock file creation happen
prior to severing ... | open Core.Std
let command ~lock_file ~name main =
let start_main () =
let release_parent = Daemon.daemonize_wait () in
if Lock_file.create ~close_on_exec:true ~unlink_on_exit:true lock_file
release_parent ();
main ()
end;
0
in
let check_lock_file () =
if Lock_file.is_locked lock_f... |
90edba4ed0702fcaf0c73136abcc00641ae0871d3064d43400836e9ccdc961f7 | uw-unsat/serval | irreader.rkt | #lang racket/base
(require ffi/unsafe
ffi/unsafe/alloc
"core.rkt")
(provide LLVMParseIRInContext)
; allocate a new _LLVMMemoryBufferRef, which is consumed by this function
(define-llvm LLVMParseIRInContext
(_fun [_LLVMContextRef = (LLVMGetGlobalContext)]
[data : _?]
[_LLVMMemoryBu... | null | https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/serval/llvm/capi/irreader.rkt | racket | allocate a new _LLVMMemoryBufferRef, which is consumed by this function
no allocator here | #lang racket/base
(require ffi/unsafe
ffi/unsafe/alloc
"core.rkt")
(provide LLVMParseIRInContext)
(define-llvm LLVMParseIRInContext
(_fun [_LLVMContextRef = (LLVMGetGlobalContext)]
[data : _?]
[_LLVMMemoryBufferRef = (LLVMCreateMemoryBufferWithMemoryRangeCopy data "" 0)]
[... |
1ab2bb7b45dd4f8df1f2e262bcb0fac710d572ed39c6bf6c506ef015a6cd275d | rtoy/cmucl | print.lisp | ;;; -*- Package: C -*-
;;;
;;; **********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
;;;
(ext:file-comment
"$Header: src/compiler/mips/print.lisp $")
;;;
;;; ***... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/mips/print.lisp | lisp | -*- Package: C -*-
**********************************************************************
**********************************************************************
This file contains temporary printing utilities and similar noise.
| This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
(ext:file-comment
"$Header: src/compiler/mips/print.lisp $")
Written by .
(in-package "MIPS")
(define-vop (print)
(:args (object :scs (descriptor-reg) :target a0))
(:r... |
bf8bd74a73251ae9339c9ee4104ca1fb54733f1339f23074c4bfbaece17cd157 | degree9/enterprise | storage.cljs | (ns degree9.browser.storage
(:refer-clojure :exclude [key get assoc dissoc empty])
(:require [degree9.browser.window :as bom]))
(defprotocol IStorage
"Interface for interacting with Web Storage API."
(key [this index] "Returns name of nth key.")
(get-item [this key] "Return keys value or... | null | https://raw.githubusercontent.com/degree9/enterprise/65737c347e513d0a0bf94f2d4374935c7270185d/src/degree9/browser/storage.cljs | clojure | (ns degree9.browser.storage
(:refer-clojure :exclude [key get assoc dissoc empty])
(:require [degree9.browser.window :as bom]))
(defprotocol IStorage
"Interface for interacting with Web Storage API."
(key [this index] "Returns name of nth key.")
(get-item [this key] "Return keys value or... | |
7a3d96c55a26ec6a1129210231859ff6aeb10eca72835d850faacdf54b976595 | 5outh/chaosbox | AABB.hs | -- | Minimally axis-aligned bounding boxes
module ChaosBox.AABB
( HasAABB(..)
, AABB(..)
, boundary
, aabbContains
)
where
import ChaosBox.Geometry.Class
import ChaosBox.Geometry.P2
import Control.Lens ( (^.) )
import Data.List.NonEmpty
import ... | null | https://raw.githubusercontent.com/5outh/chaosbox/991ca3db48d8828287567302ba3293314b9127bd/src/ChaosBox/AABB.hs | haskell | | Minimally axis-aligned bounding boxes
| An Axis-Aligned Bounding Box
| Get the bounds of a list of positioned objects. | module ChaosBox.AABB
( HasAABB(..)
, AABB(..)
, boundary
, aabbContains
)
where
import ChaosBox.Geometry.Class
import ChaosBox.Geometry.P2
import Control.Lens ( (^.) )
import Data.List.NonEmpty
import Linear.V2
data AABB = AABB
{ aabbTopL... |
e65fc0b6b0dcfe11219852a1b77cebba7e5c56d7c63dcf01a34869da540ebc3f | HunterYIboHu/htdp2-solution | ex433-checked-bundle.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex433-checked-bundle) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constru... | null | https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter5/Section26-design-algorithm/ex433-checked-bundle.rkt | racket | about the language level of this file in a form that our tools can easily process.
[List-of 1String] N -> [List-of String]
bundles chunks of s into strings of length n.
termination (bundle s 0) loops unless s is '().
[List-of X] N -> [List-of X]
[List-of X] N -> [List-of X] | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex433-checked-bundle) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(check-expect (bundle (explode "abcdefg... |
95018fe27e706b92e11f36f2a7523f620eddbbdb976a9e9c5b11edd09af08120 | electric-sql/vaxine | test_utils.erl | %% -------------------------------------------------------------------
%%
Copyright < 2013 - 2018 > <
Technische Universität Kaiserslautern , Germany
, France
Universidade NOVA de Lisboa , Portugal
Université catholique de Louvain ( UCL ) , Belgique
, Portugal
%% >
%%
This file is provided... | null | https://raw.githubusercontent.com/electric-sql/vaxine/5f88829a513a076e9928f389995d913ea381ccb6/apps/antidote/test/utils/test_utils.erl | erlang | -------------------------------------------------------------------
>
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either expressed or implied. See the License for the
specific language governing perm... | Copyright < 2013 - 2018 > <
Technische Universität Kaiserslautern , Germany
, France
Universidade NOVA de Lisboa , Portugal
Université catholique de Louvain ( UCL ) , Belgique
, Portugal
This file is provided to you under the Apache License ,
except in compliance with the License . You... |
ae615c47ef958535262441b31c44ecb16c5a9c6de0fb64bab447a131a34f91b7 | nilern/monnit | state_macros.clj | (ns monnit.impl.state-macros
(:require [monnit.core :as m]))
(defmacro defstatetype [name fields & impls]
(concat
`(deftype ~name ~fields ~@impls)
'(m/Functor
(-fmap [self f] (->FMap1 f self))
(-fmap [self f b] (->FMap2 f self b))
(-fmap [self f b c] (->FMap3 f self b c))
(-fmap [se... | null | https://raw.githubusercontent.com/nilern/monnit/cc5fe2a031ef8540c4f77bb620d05a0f0564292b/src/monnit/impl/state_macros.clj | clojure | (ns monnit.impl.state-macros
(:require [monnit.core :as m]))
(defmacro defstatetype [name fields & impls]
(concat
`(deftype ~name ~fields ~@impls)
'(m/Functor
(-fmap [self f] (->FMap1 f self))
(-fmap [self f b] (->FMap2 f self b))
(-fmap [self f b c] (->FMap3 f self b c))
(-fmap [se... | |
33f38d2570f913f999550bf696ae36878dedefa4205ff21d47e116577a0d3d64 | clojure-interop/aws-api | AWSSecretsManagerClientBuilder.clj | (ns com.amazonaws.services.secretsmanager.AWSSecretsManagerClientBuilder
"Fluent builder for AWSSecretsManager. Use of the builder is preferred
over using constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.secretsmanager AWSSecretsManagerClientBu... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.secretsmanager/src/com/amazonaws/services/secretsmanager/AWSSecretsManagerClientBuilder.clj | clojure | (ns com.amazonaws.services.secretsmanager.AWSSecretsManagerClientBuilder
"Fluent builder for AWSSecretsManager. Use of the builder is preferred
over using constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.secretsmanager AWSSecretsManagerClientBu... | |
84bda211e74165c48e38719f575d338e513667d56cae08f99ee437e6d2af73b9 | grin-compiler/ghc-wpc-sample-programs | Constraints.hs | # LANGUAGE NondecreasingIndentation #
module Agda.TypeChecking.Constraints where
import Prelude hiding (null)
import Control.Monad
import qualified Data.List as List
import qualified Data.Set as Set
import Agda.Syntax.Internal
import Agda.TypeChecking.Monad
import Agda.TypeChecking.InstanceArguments
import Agda.T... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/TypeChecking/Constraints.hs | haskell | # SOURCE #
# SOURCE #
# SOURCE #
# SOURCE #
# SOURCE #
# SOURCE #
Not putting s (which should really be the what's already there) makes things go
The problem is most likely that there are internal catchErrors which forgets the
Need to reduce to reveal possibly blocking metas
no
yes
The added constraint can cause in... | # LANGUAGE NondecreasingIndentation #
module Agda.TypeChecking.Constraints where
import Prelude hiding (null)
import Control.Monad
import qualified Data.List as List
import qualified Data.Set as Set
import Agda.Syntax.Internal
import Agda.TypeChecking.Monad
import Agda.TypeChecking.InstanceArguments
import Agda.T... |
096ab6a967da051b3d8b4a4c501b2b0c27a7136b2be9357c7017f3254ab73945 | vaibhavsagar/experiments | CallIn.hs | --
Demonstrating explicit calling in to from
-- .NET code (directly via the Hugs Server API).
--
-- The external code calling in can be found in print.cs
--
module CallIn where
import Dotnet
foreign import dotnet
"static [print.dll]Print.p"
printIt :: Object () -> IO ()
callIn :: IO ()
callIn = do
mildly b... | null | https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/examples/callin/CallIn.hs | haskell |
.NET code (directly via the Hugs Server API).
The external code calling in can be found in print.cs
its methods are all static..
the entry point that will be called from Print.p() | Demonstrating explicit calling in to from
module CallIn where
import Dotnet
foreign import dotnet
"static [print.dll]Print.p"
printIt :: Object () -> IO ()
callIn :: IO ()
callIn = do
mildly bogus to create Hugs . Server object , since
serv <- new "Hugs.Server"
print serv
printIt serv
( invokeStati... |
d41abd99e0cb645031d7d658ac56c0e463041c705fad441918196930e5e14ad5 | clojure-interop/aws-api | AmazonElasticFileSystemAsyncClient.clj | (ns com.amazonaws.services.elasticfilesystem.AmazonElasticFileSystemAsyncClient
"Client for accessing EFS asynchronously. Each asynchronous method will return a Java Future object representing the
overloads which accept an AsyncHandler can be used to receive notification when an
asynchronous operation completes.
... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.elasticfilesystem/src/com/amazonaws/services/elasticfilesystem/AmazonElasticFileSystemAsyncClient.clj | clojure | (ns com.amazonaws.services.elasticfilesystem.AmazonElasticFileSystemAsyncClient
"Client for accessing EFS asynchronously. Each asynchronous method will return a Java Future object representing the
overloads which accept an AsyncHandler can be used to receive notification when an
asynchronous operation completes.
... | |
77082c808ef8f48079325944ffd9a0cd92681595c2016bd962e744cd39f54d93 | metaocaml/ber-metaocaml | pr5906.ml | (* TEST
* expect
*)
type _ constant =
| Int: int -> int constant
| Bool: bool -> bool constant
type (_, _, _) binop =
| Eq: ('a, 'a, bool) binop
| Leq: ('a, 'a, bool) binop
| Add: (int, int, int) binop
let eval (type a) (type b) (type c) (bop:(a,b,c) binop) (x:a constant)
(y:b constant) : c con... | null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-gadts/pr5906.ml | ocaml | TEST
* expect
|
type _ constant =
| Int: int -> int constant
| Bool: bool -> bool constant
type (_, _, _) binop =
| Eq: ('a, 'a, bool) binop
| Leq: ('a, 'a, bool) binop
| Add: (int, int, int) binop
let eval (type a) (type b) (type c) (bop:(a,b,c) binop) (x:a constant)
(y:b constant) : c constant =
match bop, x,... |
e2e006509f39dd2c1d9ed851e7bb1c6d0c0c9c623084fc2c651edc7ca09da937 | csabahruska/jhc-components | CanType.hs | module Support.CanType where
import Control.Monad.Error()
-- This is a simple routine meant to do the minimum amount of work to get the type of something
class CanType a where
type TypeOf a
getType :: a -> (TypeOf a)
instance CanType e => CanType [e] where
type TypeOf [e] = [TypeOf e]
getType es = ma... | null | https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/jhc-common/src/Support/CanType.hs | haskell | This is a simple routine meant to do the minimum amount of work to get the type of something | module Support.CanType where
import Control.Monad.Error()
class CanType a where
type TypeOf a
getType :: a -> (TypeOf a)
instance CanType e => CanType [e] where
type TypeOf [e] = [TypeOf e]
getType es = map getType es
instance CanType e => CanType (Maybe e) where
type TypeOf (Maybe e) = Maybe (T... |
5eeb3d3084c4a47b88c58773075217d7e34a85d3c9fd14fbb119678f449fb807 | racket/math | poisson-dist.rkt | #lang typed/racket/base
(require racket/performance-hint
racket/promise
"../../flonum.rkt"
"../../vector.rkt"
"../unsafe.rkt"
"../functions/incomplete-gamma.rkt"
(prefix-in impl: "impl/poisson-pdf.rkt")
"impl/poisson-random.rkt"
"normal-dist.rkt"
... | null | https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/distributions/poisson-dist.rkt | racket | #lang typed/racket/base
(require racket/performance-hint
racket/promise
"../../flonum.rkt"
"../../vector.rkt"
"../unsafe.rkt"
"../functions/incomplete-gamma.rkt"
(prefix-in impl: "impl/poisson-pdf.rkt")
"impl/poisson-random.rkt"
"normal-dist.rkt"
... | |
039914e4c0f2e7167d84dfd81384dc5a4cc6c13453caaeb66df7f6ec8397cafa | goldfirere/singletons | Lambdas.hs | {-# OPTIONS_GHC -Wno-unused-matches -Wno-name-shadowing #-}
We expect unused binds and name shadowing in test .
module Singletons.Lambdas where
import Data.Proxy
import Data.Singletons.Base.TH
$(singletons [d|
-- nothing in scope
foo0 :: a -> b -> a
foo0 = (\x y -> x)
-- eta-reduced function
foo1 :: a ... | null | https://raw.githubusercontent.com/goldfirere/singletons/a169d3f6c0c8e962ea2983f60ed74e507bca9b2b/singletons-base/tests/compile-and-dump/Singletons/Lambdas.hs | haskell | # OPTIONS_GHC -Wno-unused-matches -Wno-name-shadowing #
nothing in scope
eta-reduced function
same as before, but without eta-reduction
more lambda parameters + returning in-scope variable
name shadowing
Note: due to -dsuppress-uniques output of this test does not really
prove that the result is correct. Compili... |
We expect unused binds and name shadowing in test .
module Singletons.Lambdas where
import Data.Proxy
import Data.Singletons.Base.TH
$(singletons [d|
foo0 :: a -> b -> a
foo0 = (\x y -> x)
foo1 :: a -> b -> a
foo1 x = (\_ -> x)
foo2 :: a -> b -> a
foo2 x y = (\_ -> x) y
foo3 :: a -> a
foo3 x = ... |
cf449ff3b7f9530a24c09f9e4f8ecb9f204f4ed71c0925fed30e08a1fa9d0b49 | Frechmatz/cl-synthesizer | vco.lisp | (in-package :cl-synthesizer-modules-vco)
(defun make-module (name environment &key
base-frequency
v-peak
(cv-lin-hz-v 0.0)
(duty-cycle 0.5)
(phase-offset 0.0)
(f-max 12000.0)
(wave-forms nil)
(sync-threshold 2.5))
"Creates a Volt... | null | https://raw.githubusercontent.com/Frechmatz/cl-synthesizer/7490d12f0f1e744fa1f71e014627551ebc4388c7/src/modules/vco/vco.lisp | lisp | (in-package :cl-synthesizer-modules-vco)
(defun make-module (name environment &key
base-frequency
v-peak
(cv-lin-hz-v 0.0)
(duty-cycle 0.5)
(phase-offset 0.0)
(f-max 12000.0)
(wave-forms nil)
(sync-threshold 2.5))
"Creates a Volt... | |
9c36a0f28b34dc5f13f42628d87bc6b80a1c0922b7f2c331d46331132dd001d7 | plai-group/daphne | linalg_test.clj | (ns daphne.linalg-test
(:require [clojure.test :refer [deftest testing is]]
[daphne.linalg :refer [foppl-linalg]]
[daphne.core :refer [code->graph]]))
#_(deftest convolution-test
(testing "Test convolution function."
;; pytorch conv2d validated
[[[2.202277681399303 2.82811333634218... | null | https://raw.githubusercontent.com/plai-group/daphne/a8b27d3c7ceedc26b922bb32793a78ede3472669/test/daphne/linalg_test.clj | clojure | pytorch conv2d validated | (ns daphne.linalg-test
(:require [clojure.test :refer [deftest testing is]]
[daphne.linalg :refer [foppl-linalg]]
[daphne.core :refer [code->graph]]))
#_(deftest convolution-test
(testing "Test convolution function."
[[[2.202277681399303 2.8281133363421826]
[2.230589302485512 1.7... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.