_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 |
|---|---|---|---|---|---|---|---|---|
f46e2969f1186c9bd90308b98906ddfd9f18fed1b8dcc4200ea86533ad25d2e3 | appleshan/cl-http | sysdcl.lisp | -*- Mode : lisp ; Syntax : ansi - common - lisp ; Package : future - common - lisp - user ; Base : 10 -*-
( C ) Copyright 2000 , .
;;; All Rights Reserved.
;;;
( C ) Copyright 1997 ,
;;; All Rights Reserved.
;;;
#+Genera
(unless (fs:get-logical-pathname-host "HTTP" t)
(fs:make-logical-pathname-h... | null | https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/proxy/sysdcl.lisp | lisp | Syntax : ansi - common - lisp ; Package : future - common - lisp - user ; Base : 10 -*-
All Rights Reserved.
All Rights Reserved.
Server
Client Substrate
Symbols and exports
Variables
Class Definitions
Database operations
Cache operations
Resource operations
Representation operations
Proxy caching operatio... |
( C ) Copyright 2000 , .
( C ) Copyright 1997 ,
#+Genera
(unless (fs:get-logical-pathname-host "HTTP" t)
(fs:make-logical-pathname-host "HTTP"))
(sct:defsystem http-proxy
(:pretty-name "HTTP Proxy Server"
:default-pathname "http:proxy;"
:journal-directory "http:lispm;proxy;patch;"
:ini... |
eb4f4ff63b7e0bf68841316701b32404ddfb217bcd612fb9ad7bc8b072f3fa80 | haskellari/postgresql-simple | Implementation.hs | ------------------------------------------------------------------------------
-- |
-- Module: Database.PostgreSQL.Simple.Time.Implementation
Copyright : ( c ) 2012 - 2015
License : BSD3
Maintainer : < >
-- Stability: experimental
--
--------------------------------------------------------... | null | https://raw.githubusercontent.com/haskellari/postgresql-simple/6cabb13959310f32a15285f8e41c2d053403d687/src/Database/PostgreSQL/Simple/Time/Implementation.hs | haskell | ----------------------------------------------------------------------------
|
Module: Database.PostgreSQL.Simple.Time.Implementation
Stability: experimental
----------------------------------------------------------------------------
# LANGUAGE DeriveDataTypeable, DeriveFunctor # | Copyright : ( c ) 2012 - 2015
License : BSD3
Maintainer : < >
module Database.PostgreSQL.Simple.Time.Implementation where
import Prelude hiding (take)
import Data.ByteString.Builder(Builder, byteString)
import Data.ByteString.Builder.Prim(primBounded)
import Control.Arrow((***))
import Control... |
46c6528086a94a9b3f422f02269cb42da1be160bcb6562614bd98e57e83eff93 | tweag/ormolu | qualified-post.hs | # LANGUAGE ImportQualifiedPost #
import qualified Data.Text as T
import qualified Data.Text (a, c, b)
import Data.Text qualified hiding (c, b, a)
| null | https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/import/qualified-post.hs | haskell | # LANGUAGE ImportQualifiedPost #
import qualified Data.Text as T
import qualified Data.Text (a, c, b)
import Data.Text qualified hiding (c, b, a)
| |
7d898eaccc623f7fb0ea82ca9581fd687c3660f29d4247039533d6381eb10f1d | ta0kira/zeolite | CompileMetadata.hs | -----------------------------------------------------------------------------
Copyright 2020 - 2021 under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applic... | null | https://raw.githubusercontent.com/ta0kira/zeolite/1b3780a0cc9305280a91034d502bab7f479d1c7e/src/Module/CompileMetadata.hs | haskell | ---------------------------------------------------------------------------
---------------------------------------------------------------------------
--------------------------------------------------------------------------- -} | Copyright 2020 - 2021 under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
distributed under the License is di... |
db528b6b58fb01356e00e688e1a41b82c6457844452ba6e0cbe4a03e47d297d9 | NorfairKing/smos | Main.hs | module Main where
import Smos.Calendar.Import
main :: IO ()
main = smosCalendarImport
| null | https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos-calendar-import/app/Main.hs | haskell | module Main where
import Smos.Calendar.Import
main :: IO ()
main = smosCalendarImport
| |
f58ffdf4415373dd452e3bebc2888a2dccf87a6ef82152ad27ab2c447861d553 | rudymatela/tankode | wal.hs | import Tankode.Basic
ident :: Id
ident = Id
{ name = "wal"
, trackColour = "grey3"
, bodyColour = "grey4"
, gunColour = "grey9"
, radarColour = "grey4"
, bulletColour = "grey4"
, scanColour = "grey4"
}
wal :: Tankode ()
wal Input {wall = Just d} = output
{ shoot = 1
, accel = a
}
wher... | null | https://raw.githubusercontent.com/rudymatela/tankode/299ec6f78a9a18a8fc902be911a556d0497c30e1/haskell/eg/wal.hs | haskell | import Tankode.Basic
ident :: Id
ident = Id
{ name = "wal"
, trackColour = "grey3"
, bodyColour = "grey4"
, gunColour = "grey9"
, radarColour = "grey4"
, bulletColour = "grey4"
, scanColour = "grey4"
}
wal :: Tankode ()
wal Input {wall = Just d} = output
{ shoot = 1
, accel = a
}
wher... | |
e82322b5b003167021d628d762bba09e91f5676440ffdbac4a22227d2d7b3ec7 | haskell-tools/haskell-tools | B.hs | module Refactor.GenerateTypeSignature.BringToScope.B where
import Refactor.GenerateTypeSignature.BringToScope.A
f :: T -> S
f = const S | null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/GenerateTypeSignature/BringToScope/B.hs | haskell | module Refactor.GenerateTypeSignature.BringToScope.B where
import Refactor.GenerateTypeSignature.BringToScope.A
f :: T -> S
f = const S | |
bdd639ea99407b492d71f838b3e87a458743764008b28ce3a9632e7f82cdf103 | ftovagliari/ocamleditor | text_init.ml |
OCamlEditor
Copyright ( C ) 2010 - 2014
This file is part of OCamlEditor .
OCamlEditor 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 y... | null | https://raw.githubusercontent.com/ftovagliari/ocamleditor/f8b0ee31adce759ba7cf482f6eae20b8d70e55dc/src/text_init.ml | ocaml | * key_press
* realize
Change the bg color of the gutter on screen |
OCamlEditor
Copyright ( C ) 2010 - 2014
This file is part of OCamlEditor .
OCamlEditor 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 y... |
a8f15ab05541b0b8661b1ddc20d663ea44de6040c63ddfbe702fbafc5b7ead2e | janestreet/merlin-jst | oprint.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/janestreet/merlin-jst/980b574405617fa0dfb0b79a84a66536b46cd71b/upstream/ocaml_413/typing/oprint.mli | ocaml | ************************************************************************
OCaml
... | Projet Cristal , INRIA Rocquencourt
Copyright 2002 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Format
open Outcometree
val out_ident : (formatter -> out_ident -> unit) ref
val out_valu... |
10975cd18c3ffce37ad39d193e8ca0e22bd2605f57360ff94cb74d9c8e9df6dd | joshrotenberg/clj-wordnik | wordlist.clj | (ns wordnik.test.api.wordlist
(:use wordnik.core
wordnik.util
wordnik.test.properties
re-rand
[clojure.data.json :as json]
clojure.data
clojure.test)
(:require
[wordnik.api.account :as account]
[wordnik.api.wordlist :as wl]
[wordnik.api.wordlists :as wls]
... | null | https://raw.githubusercontent.com/joshrotenberg/clj-wordnik/a24a17f040cb29942080913585fc1b2b43681f41/test/wordnik/test/api/wordlist.clj | clojure | wordlist
test our local object agains the one we created
now fetch it, and test it again | (ns wordnik.test.api.wordlist
(:use wordnik.core
wordnik.util
wordnik.test.properties
re-rand
[clojure.data.json :as json]
clojure.data
clojure.test)
(:require
[wordnik.api.account :as account]
[wordnik.api.wordlist :as wl]
[wordnik.api.wordlists :as wls]
... |
cc428f478efdf3c556723c8c187f9487f55e755cdc4a647923fa0b86eb1a9121 | mzp/scheme-abc | swfBaseOut.mli | type bit =
SB of int * int
| UB of int * int
| FB of int * float
type s = [
`Si8 of int
| `Si16 of int
| `Si24 of int
| `Si32 of int32
| `Ui8 of int
| `Ui16 of int
| `Ui24 of int
| `Ui32 of int32
| `Ui64 of int64
| `EUi32 of int32
| `Bits of bit list
| `Fixed of float
| `F... | null | https://raw.githubusercontent.com/mzp/scheme-abc/2cb541159bcc32ae4d033793dea6e6828566d503/swflib/swfBaseOut.mli | ocaml | type bit =
SB of int * int
| UB of int * int
| FB of int * float
type s = [
`Si8 of int
| `Si16 of int
| `Si24 of int
| `Si32 of int32
| `Ui8 of int
| `Ui16 of int
| `Ui24 of int
| `Ui32 of int32
| `Ui64 of int64
| `EUi32 of int32
| `Bits of bit list
| `Fixed of float
| `F... | |
82646168d0c664be1146e891556ef0316cf4b820f552ba5776ef4d99029c424c | kimwnasptd/YAAC-Yet-Another-Alan-Compiler | Compiler.hs | import ASTTypes
import Parser
import SemanticFunctions
import Codegen
import SymbolTableTypes
import Emit
import Control.Monad.Trans
import System.IO
import System.Environment
import System.Console.Haskeline
import qualified LLVM.AST as AST
initModule :: AST.Module
initModule = emptyModule "-I'm really happy righ... | null | https://raw.githubusercontent.com/kimwnasptd/YAAC-Yet-Another-Alan-Compiler/73046cb21d29aaeb5ab3f83ae6ff6978d445afc8/Compiler.hs | haskell | Optimisation level | import ASTTypes
import Parser
import SemanticFunctions
import Codegen
import SymbolTableTypes
import Emit
import Control.Monad.Trans
import System.IO
import System.Environment
import System.Console.Haskeline
import qualified LLVM.AST as AST
initModule :: AST.Module
initModule = emptyModule "-I'm really happy righ... |
fd39931b89ed28778beeb5824e6a0555e1cadbee600893d2be8afc275357be2a | ntoronto/pict3d | renderbuffer.rkt | #lang typed/racket/base
(require typed/opengl
(except-in typed/opengl/ffi cast ->)
"object.rkt")
(provide (all-defined-out))
;; ===================================================================================================
;; Managed render buffers
(struct gl-renderbuffer gl-object
([width ... | null | https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/pict3d/private/gl/renderbuffer.rkt | racket | ===================================================================================================
Managed render buffers | #lang typed/racket/base
(require typed/opengl
(except-in typed/opengl/ffi cast ->)
"object.rkt")
(provide (all-defined-out))
(struct gl-renderbuffer gl-object
([width : Natural]
[height : Natural]
[internal-format : Integer])
#:transparent)
(define null-gl-renderbuffer (gl-renderbuffer ... |
f1903a6498db8256e7e4a9c7c931abefb0ab402155857658c552a9ec78d04b4f | gonimo/gonimo | Socket.hs | module Gonimo.Server.Handlers.Socket where
import Control.Monad.IO.Class (liftIO)
import Gonimo.Server.Auth as Auth
import Gonimo.Server.Effects
import Gonimo.Server.Error
import Gonimo.Server.Messenger
import Gonimo.SocketAPI.Types (DeviceId)
import ... | null | https://raw.githubusercontent.com/gonimo/gonimo/f4072db9e56f0c853a9f07e048e254eaa671283b/back/src/Gonimo/Server/Handlers/Socket.hs | haskell | | Create a channel for communication with a baby station
Both devices have to be online:
and online in the same family:
Additional sanity check: | module Gonimo.Server.Handlers.Socket where
import Control.Monad.IO.Class (liftIO)
import Gonimo.Server.Auth as Auth
import Gonimo.Server.Effects
import Gonimo.Server.Error
import Gonimo.Server.Messenger
import Gonimo.SocketAPI.Types (DeviceId)
import ... |
82bc6ba5a3e6e0121df482f43f6ff5980fd3b4b63226ce3b339504836752acc1 | mzp/coq-ide-for-ios | refine.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/tactics/refine.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
pour debugger
pp_mm mm ++ fnl () ... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
$ I d : refine.ml 13323 201... |
cd6c968cc3b8e746eeb99b651f381c15397cd9450a3177a0f028bd77df9842fc | input-output-hk/high-assurance-legacy | Examples.hs | module Examples
( module Examples.GlobalRetry
, module Examples.HopByHop
, module Examples.PingPong
, module Examples.Ring
, module Examples.Ticker
, module Examples.Timeout
, testAll
, ringComparison
) where
import Data.Colour.Names
import DeltaQ
import Examples.GlobalRetry
import ... | null | https://raw.githubusercontent.com/input-output-hk/high-assurance-legacy/ee90add31d3fa286322144219092d60fe854bf8d/Exploration/%CE%94Q%20simulation/src/Examples.hs | haskell | module Examples
( module Examples.GlobalRetry
, module Examples.HopByHop
, module Examples.PingPong
, module Examples.Ring
, module Examples.Ticker
, module Examples.Timeout
, testAll
, ringComparison
) where
import Data.Colour.Names
import DeltaQ
import Examples.GlobalRetry
import ... | |
a8e105a8a4cf164a617d7f79b071c202db9ce6d6e56f86a56875e31dea85fea6 | craigl64/clim-ccl | windows.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : USER ; Base : 10 ; Lowercase : Yes -*-
(in-package :win)
"Copyright (c) 1990, 1991, 1992 Symbolics, Inc. All rights reserved."
(export '(START-WINDOWS))
;;; Buffer commands (MUST BE KEPT CONSISTENT WITH VMWIN.H!)
Takes a one byte argument and sets th... | null | https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/pre-silica/windows.lisp | lisp | Syntax : ANSI - Common - Lisp ; Package : USER ; Base : 10 ; Lowercase : Yes -*-
Buffer commands (MUST BE KEPT CONSISTENT WITH VMWIN.H!)
only processed by the windows side
Get ready to received menu items. No args.
Expose and get a selection from the menu
Get pathname from user, blocks until response is generate... |
(in-package :win)
"Copyright (c) 1990, 1991, 1992 Symbolics, Inc. All rights reserved."
(export '(START-WINDOWS))
Takes a one byte argument and sets the state . This command is currently
(defconstant *VM-BCOM-SET-STATE* #x01)
(defconstant *VM-STATE-INITIALIZED* #x01)
(defconstant *VM-STATE-INPUT-WAIT* #x02)
(... |
a805befb4b948ac01b9eb93b86fc560aea361a6627ea4a7768eeaf627836fdeb | mcna/usocket | test-usocket.lisp | $ I d : test-usocket.lisp 660 2011 - 05 - 11 13:08:19Z ctian $
;;;; $URL: svn-lisp.net/project/usocket/svn/usocket/tags/0.6.0.1/test/test-usocket.lisp $
;;;; See LICENSE for licensing information.
Usage : ( usoct : run - usocket - tests ) or ( usoct : do - tests )
(in-package :usocket-test)
(defparameter +non-e... | null | https://raw.githubusercontent.com/mcna/usocket/187e0ecd58ec0b2093d972e0eb607a50182a3efd/test/test-usocket.lisp | lisp | $URL: svn-lisp.net/project/usocket/svn/usocket/tags/0.6.0.1/test/test-usocket.lisp $
See LICENSE for licensing information.
80 = just a port
let's hope c-l.net doesn't move soon, or that people start to
test usocket like crazy..
let's hope c-l.net doesn't change its software any time soon | $ I d : test-usocket.lisp 660 2011 - 05 - 11 13:08:19Z ctian $
Usage : ( usoct : run - usocket - tests ) or ( usoct : do - tests )
(in-package :usocket-test)
(defparameter +non-existing-host+ "1.2.3.4")
(defparameter +unused-local-port+ 15213)
(defparameter *fake-usocket*
(usocket::make-stream-socket :socket... |
cb4c84977d7977729821231b72fb9f774df58ba4b99bf203ad5af9b9d0a0a661 | dieu/consulerl | consulerl_kv_tests.erl | -module(consulerl_kv_tests).
-include("consulerl.hrl").
-include("consulerl_eunit.hrl").
-include_lib("eunit/include/eunit.hrl").
-import(consulerl_eunit, [
command/4,
command_async/4,
command_async_twice/4
]).
setup_get() ->
ok = consulerl_eunit:setup_app(),
ok = consulerl_eunit:setup_httpc_200(?GET_RESP... | null | https://raw.githubusercontent.com/dieu/consulerl/a8c003dbc380911a1ad90a3468e60017aef38c79/test/consulerl_kv_tests.erl | erlang | -module(consulerl_kv_tests).
-include("consulerl.hrl").
-include("consulerl_eunit.hrl").
-include_lib("eunit/include/eunit.hrl").
-import(consulerl_eunit, [
command/4,
command_async/4,
command_async_twice/4
]).
setup_get() ->
ok = consulerl_eunit:setup_app(),
ok = consulerl_eunit:setup_httpc_200(?GET_RESP... | |
9a00e5e51d64fa48332e090f63094df13ab225e38eb5512397632da94f15fca3 | triffon/fp-2022-23 | 08.union.rkt | (define (unique L)
(if (null? L)
L
(let ((h (car L)))
(cons h (unique (filter (lambda (x)
(not (equal? x h)))
L))))))
(define (union L M)
(unique (append L M)))
| null | https://raw.githubusercontent.com/triffon/fp-2022-23/b6991b5be25fb65d1e44b49ff612eb4e63f7caae/exercises/cs2/05.scheme.fold-deeplists/solutions/08.union.rkt | racket | (define (unique L)
(if (null? L)
L
(let ((h (car L)))
(cons h (unique (filter (lambda (x)
(not (equal? x h)))
L))))))
(define (union L M)
(unique (append L M)))
| |
e587ca55dee51ac02f0821a05152987fcb9f34ec9d226bf9a4d4926e3e69c5db | cognitect-labs/aws-api | api.clj | Copyright ( c ) Cognitect , Inc.
;; All rights reserved.
(ns cognitect.aws.client.api
"API functions for using a client to interact with AWS services."
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[cognitect.aws.client.impl :as client]
[cognitect.aws.clie... | null | https://raw.githubusercontent.com/cognitect-labs/aws-api/7d07cb796eaa06a229290be92e92d18ee3448830/src/cognitect/aws/client/api.clj | clojure | All rights reserved. | Copyright ( c ) Cognitect , Inc.
(ns cognitect.aws.client.api
"API functions for using a client to interact with AWS services."
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[cognitect.aws.client.impl :as client]
[cognitect.aws.client.protocol :as client.p... |
b549e634c20889e867e30892c68f4de4ab552767b72379819f89a5195d4e63e9 | trskop/command-wrapper | Prelude.hs | -- |
Module : CommandWrapper . Subcommand . Prelude
-- Description: Give subcommands everything they need to seamlessly integrate.
Copyright : ( c ) 2018 - 2020
License : BSD3
--
-- Maintainer:
-- Stability: experimental
Portability : GHC specific language extensions ; POSIX .
--
-- Give sub... | null | https://raw.githubusercontent.com/trskop/command-wrapper/4f2e2e1f63a3296ccfad9f216d75a708969890ed/command-wrapper-subcommand/src/CommandWrapper/Subcommand/Prelude.hs | haskell | |
Description: Give subcommands everything they need to seamlessly integrate.
Maintainer:
Stability: experimental
Give subcommands everything they need to seamlessly integrate.
* Subcommand Protocol
| Some definitions are re-exported from
** Verbosity
** Colour Output
** Command Line Options
*** Co... | Module : CommandWrapper . Subcommand . Prelude
Copyright : ( c ) 2018 - 2020
License : BSD3
Portability : GHC specific language extensions ; POSIX .
module CommandWrapper.Subcommand.Prelude
(
" CommandWrapper . Environment . Params " module .
Params(..)
, subcommandParams
| Re... |
8a817cbc3e7778c5f4128850c155fcba2de4bc0678848831893cc77038f47156 | EMSL-NMR-EPR/Haskell-MFAPipe-Executable | Node.hs | -----------------------------------------------------------------------------
-- |
-- Module : Data.Graph.Inductive.Graph.Extras.Node
Copyright : 2016 - 17 Pacific Northwest National Laboratory
-- License : ECL-2.0 (see the LICENSE file in the distribution)
--
-- Maintainer :
-- Stability : expe... | null | https://raw.githubusercontent.com/EMSL-NMR-EPR/Haskell-MFAPipe-Executable/8a7fd13202d3b6b7380af52d86e851e995a9b53e/fgl-extras/src/Data/Graph/Inductive/Graph/Extras/Node.hs | haskell | ---------------------------------------------------------------------------
|
Module : Data.Graph.Inductive.Graph.Extras.Node
License : ECL-2.0 (see the LICENSE file in the distribution)
Maintainer :
Stability : experimental
Portability : portable
This module exports assorted functions and ty... | Copyright : 2016 - 17 Pacific Northwest National Laboratory
module Data.Graph.Inductive.Graph.Extras.Node
isIsolated , isSource , isSink , isIntermediate , isLeaf
* NodeType type
, NodeType(..) , getNodeType
) where
import Control.Applicative (liftA2)
import Data.Graph.Inductive.Graph (... |
a5742f9d36180ba17da0a6462685576524e1edc18ba2a0beb8b1fb9e101b2886 | thierry-martinez/stdcompat | obj.mli | type t
external repr : 'a -> t = "%identity"
external obj : t -> 'a = "%identity"
external magic : 'a -> 'b = "%identity"
external is_block : t -> bool = "caml_obj_is_block"
external is_int : t -> bool = "%obj_is_int"
external tag : t -> int = "caml_obj_tag"
external set_tag : t -> int -> unit = "caml_obj_set_tag"
exte... | null | https://raw.githubusercontent.com/thierry-martinez/stdcompat/83d786cdb17fae0caadf5c342e283c3dcfee2279/interfaces/3.11/obj.mli | ocaml | type t
external repr : 'a -> t = "%identity"
external obj : t -> 'a = "%identity"
external magic : 'a -> 'b = "%identity"
external is_block : t -> bool = "caml_obj_is_block"
external is_int : t -> bool = "%obj_is_int"
external tag : t -> int = "caml_obj_tag"
external set_tag : t -> int -> unit = "caml_obj_set_tag"
exte... | |
e73a7913eabc072f5f3a4304f344482c8738c605a637fcb88bdae1c7039c12cf | appcanary/crustacean | db_funcs.clj | (ns crustacean.db-funcs
(:require [datomic.api :as d]
[crustacean.utils :refer [entity-exists? fields-with unique-fields remove-nils]]))
(defn generate-tx-map
"Generates a tx map for a crustacean model. Assumes symbols 'db 'id and 'input are available. Optionally specify whether to include default val... | null | https://raw.githubusercontent.com/appcanary/crustacean/63a084e8c6bcd1db3cf57a77d5cab6092e322732/src/crustacean/db_funcs.clj | clojure | If the id is a long it's not a tempid so it's an update
Maybe the entity exists
Exclude defaults cuz it's an update
annotate the transaction
annotate the transaction | (ns crustacean.db-funcs
(:require [datomic.api :as d]
[crustacean.utils :refer [entity-exists? fields-with unique-fields remove-nils]]))
(defn generate-tx-map
"Generates a tx map for a crustacean model. Assumes symbols 'db 'id and 'input are available. Optionally specify whether to include default val... |
3edc012892ec7d91ce60d010f8ac76b6c9bac6a6616fbb71cf5b16fcb0e4031f | arttuka/reagent-material-ui | bottom_navigation_action.cljs | (ns reagent-mui.material.bottom-navigation-action
"Imports @mui/material/BottomNavigationAction as a Reagent component.
Original documentation is at -ui/api/bottom-navigation-action/ ."
(:require [reagent.core :as r]
["@mui/material/BottomNavigationAction" :as MuiBottomNavigationAction]))
(def botto... | null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/bottom_navigation_action.cljs | clojure | (ns reagent-mui.material.bottom-navigation-action
"Imports @mui/material/BottomNavigationAction as a Reagent component.
Original documentation is at -ui/api/bottom-navigation-action/ ."
(:require [reagent.core :as r]
["@mui/material/BottomNavigationAction" :as MuiBottomNavigationAction]))
(def botto... | |
4fcba6a0fabf81858b8681a97600289eb5ee52793b690667a5c94e915e7ef1a1 | bollu/coremlir | doubles.hs | (doubles [xs]
(case xs
NIL
y ys (CONS (* 2 y) (doubles ys))))
| null | https://raw.githubusercontent.com/bollu/coremlir/7ab044051e62c54e8d3f94a38e3d1ecbf49fb2b0/reading/projection-impl/doubles.hs | haskell | (doubles [xs]
(case xs
NIL
y ys (CONS (* 2 y) (doubles ys))))
| |
f36d02609333169d15eef78c2086506a415958116c1fae450441c21312c650e8 | EFanZh/EOPL-Exercises | exercise-3.29-test.rkt | #lang racket/base
(require rackunit)
(require "../solutions/exercise-3.28.rkt")
(check-equal? (run "let a = 3
in let p = proc (z) a
in let f = proc (x) (p 0)
in let a = 5
in (f 2)")
(num-val 5))
(check-equ... | null | https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-3.29-test.rkt | racket | #lang racket/base
(require rackunit)
(require "../solutions/exercise-3.28.rkt")
(check-equal? (run "let a = 3
in let p = proc (z) a
in let f = proc (x) (p 0)
in let a = 5
in (f 2)")
(num-val 5))
(check-equ... | |
3e99f6c33bcc07b094af0a6ddbfc6be89fe3ac091cc24f27d7a46a6295114273 | loguntsov/reliable_udp | rudp_protocol.erl | -module(rudp_protocol).
-author("Sergey Loguntsov <>").
-behaviour(gen_server).
%% API
-export([
start_link/1, close/2, destroy/1,
connect/4, connect/5,
controlling_process/2,
accept/4,
incomming_packet/2,
get_socket/1,
get_state_atom/1
]).
-include("listener.hrl").
-include("logger.hrl").
-include("pa... | null | https://raw.githubusercontent.com/loguntsov/reliable_udp/6544c08a551397182f33ca89ce2ff1db470a0daa/src/rudp_protocol.erl | erlang | API
gen_server callbacks
===================================================================
API
===================================================================
===================================================================
gen_server callbacks
==============================================================... | -module(rudp_protocol).
-author("Sergey Loguntsov <>").
-behaviour(gen_server).
-export([
start_link/1, close/2, destroy/1,
connect/4, connect/5,
controlling_process/2,
accept/4,
incomming_packet/2,
get_socket/1,
get_state_atom/1
]).
-include("listener.hrl").
-include("logger.hrl").
-include("packet_ty... |
5d1d85b33d92ba174a7c4783a9e2556c8cbd71c51d640567ae198a887fdd36b7 | TrustInSoft/tis-interpreter | int_Intervals_sig.mli | Modified by TrustInSoft
(**************************************************************************)
(* *)
This file is part of Frama - C.
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_services/abstract_interp/int_Intervals_sig.mli | ocaml | ************************************************************************
alternatives)
... | Modified by TrustInSoft
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Softwa... |
c686a317f262b45a6f86de5495c553bb5d45b9c749f0ace6a61a9d79b80fba7f | soywod/comodoro | socket.ml | open Unix
let get_sock_addr () =
let path = Path.tmp_file "comodoro.sock" in
ADDR_UNIX path
let create_and_accept () =
let sock = socket PF_UNIX SOCK_STREAM 0
and sock_addr = get_sock_addr ()
and mutex = Mutex.create ()
and conns = ref [] in
let handle_conn conn =
let chan_in = in_channel_of_descr ... | null | https://raw.githubusercontent.com/soywod/comodoro/4b7696f485e7567458035fb4cd12b31027d6edfa/lib/socket.ml | ocaml | open Unix
let get_sock_addr () =
let path = Path.tmp_file "comodoro.sock" in
ADDR_UNIX path
let create_and_accept () =
let sock = socket PF_UNIX SOCK_STREAM 0
and sock_addr = get_sock_addr ()
and mutex = Mutex.create ()
and conns = ref [] in
let handle_conn conn =
let chan_in = in_channel_of_descr ... | |
c5eddba718cabdf3dfcdd54b1758a1a446d977a6d089839c3718bc94e8f9dc3b | luqui/experiments | higherk.hs | {-# OPTIONS -fdefer-type-errors #-}
# LANGUAGE DataKinds , PolyKinds , TypeFamilies , TypeOperators , RankNTypes , GADTs , TypeApplications , ScopedTypeVariables , UndecidableInstances , MultiParamTypeClasses , TypeInType , TypeSynonymInstances , FlexibleInstances , InstanceSigs , FlexibleContexts #
import Prelude hid... | null | https://raw.githubusercontent.com/luqui/experiments/c0b9153c41507afbfdeb2b32bfc65fd1ac83fb26/higherk.hs | haskell | # OPTIONS -fdefer-type-errors #
Example of higher-kinded natrual transformations.
An "axiomatic type"
Polykinded products! | # LANGUAGE DataKinds , PolyKinds , TypeFamilies , TypeOperators , RankNTypes , GADTs , TypeApplications , ScopedTypeVariables , UndecidableInstances , MultiParamTypeClasses , TypeInType , TypeSynonymInstances , FlexibleInstances , InstanceSigs , FlexibleContexts #
import Prelude hiding (id, (.))
import Control.Categor... |
ea46aa2d6fafdf43c0c125e04b847cb7823b39dc292ea8e3cc5557be12c1b0c5 | incoherentsoftware/defect-process | Payload.hs | # LANGUAGE NoStrictData #
module Msg.Payload
( IsMsgPayload(..)
, AudioMsgPayload(..)
, CollisionMsgPayload(..)
, ConsoleMsgPayload(..)
, EnemyMsgPayload(..)
, HurtMsgPayload(..)
, InfoMsgPayload(..)
, MenuMsgPayload(..)
, RoomMsgPayload(..)
, ParticleMsgPayload(..)
, Player... | null | https://raw.githubusercontent.com/incoherentsoftware/defect-process/61ee16c917b6da8f0ebd84b0bbebc7e3fe8bce27/src/Msg/Payload.hs | haskell | # SOURCE # | # LANGUAGE NoStrictData #
module Msg.Payload
( IsMsgPayload(..)
, AudioMsgPayload(..)
, CollisionMsgPayload(..)
, ConsoleMsgPayload(..)
, EnemyMsgPayload(..)
, HurtMsgPayload(..)
, InfoMsgPayload(..)
, MenuMsgPayload(..)
, RoomMsgPayload(..)
, ParticleMsgPayload(..)
, Player... |
106aef48b8658f8aed7707a4c435c9587852b64babf713eda89309cfb4a1a89f | commercialhaskell/stack | SourceMap.hs | # LANGUAGE NoImplicitPrelude #
-- | A sourcemap maps a package name to how it should be built, including source
-- code, flags, options, etc. This module contains various stages of source map
-- construction. See the @build_overview.md@ doc for details on these stages.
module Stack.Types.SourceMap
( -- * Different s... | null | https://raw.githubusercontent.com/commercialhaskell/stack/a1dee536c35495d69068aac539204591cf7259db/src/Stack/Types/SourceMap.hs | haskell | | A sourcemap maps a package name to how it should be built, including source
code, flags, options, etc. This module contains various stages of source map
construction. See the @build_overview.md@ doc for details on these stages.
* Different source map types
* Helper types
| Common settings for both dependency an... | # LANGUAGE NoImplicitPrelude #
module Stack.Types.SourceMap
SMWanted (..)
, SMActual (..)
, Target (..)
, PackageType (..)
, SMTargets (..)
, SourceMap (..)
, FromSnapshot (..)
, DepPackage (..)
, ProjectPackage (..)
, CommonPackage (..)
, GlobalPackageVersion (..)
, GlobalPackage (..)
, is... |
632f19094865a6da50bf3e9d6654b69683ccde92c3b407a4bcf4395df6116a9e | al3623/rippl | check_lists.ml | open Ast
open Scanner
open Parser
let rec check_list_clauses clauses =
match clauses with
| hd :: tl -> (
match hd with
| ListVBind(_, lst) -> "GOOD LIST COMPREHENSION"
| _ -> "BAD LIST COMPREHENSION"
)
| [] -> ""
let rec... | null | https://raw.githubusercontent.com/al3623/rippl/a7e5c24f67935b3513324148279791042856a1fa/src/passes/check_lists.ml | ocaml | open Ast
open Scanner
open Parser
let rec check_list_clauses clauses =
match clauses with
| hd :: tl -> (
match hd with
| ListVBind(_, lst) -> "GOOD LIST COMPREHENSION"
| _ -> "BAD LIST COMPREHENSION"
)
| [] -> ""
let rec... | |
58461fc016017dd625d6938d3c7fd211628c7ca2aa92c3ea9f269fc52a7e9ee1 | JustusAdam/language-haskell | T0051.hs | SYNTAX TEST " source.haskell " " Type - level naturals "
f :: A 3 -> B 4
-- ^ ^ constant.numeric.integral.decimal.haskell
let x = (something :: MyLabel 5)
-- ^ constant.numeric.integral.decimal.haskell
g = f @( F 3 + 4 )
-- ^ ^ constant.numeric.integral.decimal.haskell
| null | https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tickets/T0051.hs | haskell | ^ ^ constant.numeric.integral.decimal.haskell
^ constant.numeric.integral.decimal.haskell
^ ^ constant.numeric.integral.decimal.haskell | SYNTAX TEST " source.haskell " " Type - level naturals "
f :: A 3 -> B 4
let x = (something :: MyLabel 5)
g = f @( F 3 + 4 )
|
61f833d4130dbea79fbbc9eefcba617bcd164123d9bc618fd4c83482b493b585 | uw-unsat/leanette-popl22-artifact | queries.rkt | #lang rosette
(require "util.rkt" racket/stxparam
(only-in rackunit test-pred)
(for-syntax (only-in racket/syntax with-syntax*))
(only-in "forms.rkt" range :)
(only-in rosette/lib/synthax print-forms)
(prefix-in @ (only-in rosette verify synthesize)))
(provide verify syn... | null | https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/synthcl/lang/queries.rkt | racket | The verify form.
The synthesize form.
Returns the declared id and the Racket sequence
of values over which the id ranges.
Prints the counterexample by evaluating the given
values against the given model. | #lang rosette
(require "util.rkt" racket/stxparam
(only-in rackunit test-pred)
(for-syntax (only-in racket/syntax with-syntax*))
(only-in "forms.rkt" range :)
(only-in rosette/lib/synthax print-forms)
(prefix-in @ (only-in rosette verify synthesize)))
(provide verify syn... |
c7007b72bc8d3f3dc30e7b6aa1ca2b16a34ebf05520013de8ea8206844424f19 | danlarkin/subrosa | expect.clj | (ns subrosa.test.expect
(:require [carica.core :refer [config]]
[clojure.java.io :refer [delete-file file]]
[clojure.string :refer [join]]
[clojure.test :refer :all]
[clojure.tools.logging :as log]
[slingshot.slingshot :refer [try+ throw+]]
[subr... | null | https://raw.githubusercontent.com/danlarkin/subrosa/b8e554ffc1b83572acbbb8f50704d3db44b3770f/test/subrosa/test/expect.clj | clojure | (ns subrosa.test.expect
(:require [carica.core :refer [config]]
[clojure.java.io :refer [delete-file file]]
[clojure.string :refer [join]]
[clojure.test :refer :all]
[clojure.tools.logging :as log]
[slingshot.slingshot :refer [try+ throw+]]
[subr... | |
25e2f75ef640eea5726bfd54e1cf2037dbaedd5aaf68f0b8cc958d2a2c3f94bd | leptonyu/boots | Main.hs | # LANGUAGE DataKinds #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeApplications #
{-# LANGUAGE TypeOperators #-}
module Main where
import Boots
import Boots.Cloud
import Boots.Web
import Paths_demo (version)
import Servant
type API = "hello" :> G... | null | https://raw.githubusercontent.com/leptonyu/boots/335d58baafb1e0700b1a7dbe595a7264bd4d83ba/demo/Main.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE TypeOperators # | # LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
module Main where
import Boots
import Boots.Cloud
import Boots.Web
import Paths_demo (version)
import Servant
type API = "hello" :> Get '[JSON] NoContent
type AppE = (App (AppEnv ()))
apiServer :: Serv... |
56b0b18235175c60743ea87878542030462ab7802fc8d7983276f785b251da34 | Workiva/eva | alpha.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/alpha.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.alpha
(:require [eva.entity-id :as e]
[utiliva.core :as uc]
[map-experiments.smart-maps.protocol :as smart-maps]))
(defn to-ex-data
"(alpha)
Given a j.u.c.ExecutionExcept... |
f7299358d5e48d9204a707f8391285b47e499b14094655c551a3703bd911b488 | intermine/bluegenes | alerts.cljs | (ns bluegenes.components.ui.alerts
(:require [re-frame.core :refer [subscribe dispatch]]
[reagent.core :as r]))
(defn tool-operation-alert []
(let [working? @(subscribe [:bluegenes.pages.tools.subs/tool-working?])]
(when working?
[:div.alert-container
[:div.alert.alert-info
[:s... | null | https://raw.githubusercontent.com/intermine/bluegenes/417ea23b2d00fdca20ce4810bb2838326a09010e/src/cljs/bluegenes/components/ui/alerts.cljs | clojure | Or any other markup.
:markup can also be a function which takes `id` and returns hiccup.
Or any bootstrap color name.
This hieroglyph is read as "React Fragment".
It lets you return multiple elements without wrapping them in a container element. | (ns bluegenes.components.ui.alerts
(:require [re-frame.core :refer [subscribe dispatch]]
[reagent.core :as r]))
(defn tool-operation-alert []
(let [working? @(subscribe [:bluegenes.pages.tools.subs/tool-working?])]
(when working?
[:div.alert-container
[:div.alert.alert-info
[:s... |
4f2f7acc1745ce3e6d54e4281c2f6c76bcaaeee3d9858ebf3d6dcadb10b1fcb6 | bennn/dissertation | bit-ports.rkt | #lang typed/racket
;; racket-jpeg
Copyright ( C ) 2014 < wingo at pobox dot com >
;; This library 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)... | null | https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/jpeg/typed/bit-ports.rkt | racket | racket-jpeg
This library is free software; you can redistribute it and/or modify
either version 3 of the License , or ( at
your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR... | #lang typed/racket
Copyright ( C ) 2014 < wingo at pobox dot com >
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
entropy - coded section of a JPEG . This is n't a general bit - port
(provide make-bit-port
re... |
7cbc1150744c16e636cf1497f40aa20a8005541fbb2ac7c673100f0a93b0a31f | Eventuria/demonstration-gsd | Workspaces.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE NamedFieldPuns #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE DataKinds #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies #
# LANGUAGE RecordWildCards #
module Eventuria.GSD.CLI.UI.Workspaces (run)where
import Prelude hiding (length,read)
import Co... | null | https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/GSD/CLI/UI/Workspaces.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
Workspaces Command | # LANGUAGE NamedFieldPuns #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE DataKinds #
# LANGUAGE TypeFamilies #
# LANGUAGE RecordWildCards #
module Eventuria.GSD.CLI.UI.Workspaces (run)where
import Prelude hiding (length,read)
import Control.Monad.IO.Class (MonadIO(liftIO))
import Data.Te... |
c6f06fcaba38dbb6788028d4ca4acd51c5403ca088b5e9e6c0a5ef9819d00284 | huangz1990/SICP-answers | 78-contents.scm | ;;; 78-contents.scm
(define (contents datum)
(cond ((number? datum)
datum)
((pair? datum)
(cdr datum))
(else
(error "Bad tagged datum -- CONTENT" datum))))
| null | https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/78-contents.scm | scheme | 78-contents.scm |
(define (contents datum)
(cond ((number? datum)
datum)
((pair? datum)
(cdr datum))
(else
(error "Bad tagged datum -- CONTENT" datum))))
|
c1a18b33eaa222cb32c67b433d6c900e1bc3a5ebac24051029d2d6e3a8fedca4 | jekor/jcoreutils | map.hs | import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BS8
import Data.List (intercalate)
import System.Environment (getArgs)
import System.IO (isEOF, hClose)
import System.Process (createProcess, shell, CreateProcess(std_in), StdStream(CreatePipe), waitForProcess)
main :: IO ()
main = do
a... | null | https://raw.githubusercontent.com/jekor/jcoreutils/7de7d688076632c3dabbb6c5fff16f908ceb6025/map/map.hs | haskell | Technically, we'd want to alert the user to a non-zero exit code, but
not all programs are well-behaved. | import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BS8
import Data.List (intercalate)
import System.Environment (getArgs)
import System.IO (isEOF, hClose)
import System.Process (createProcess, shell, CreateProcess(std_in), StdStream(CreatePipe), waitForProcess)
main :: IO ()
main = do
a... |
405872cbd16eac5a5c7085f30edbbe3bb8cb5c5c67cce27fd6dc54b57a610bff | kadena-io/pact | Errors.hs | # LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE StrictData #
-- | Errors that can occur during symbolic analysis.
module Pact.Analyze.Errors where
import qualified Data.SBV.Internals as SBVI
import Data.String (IsString (fromString))
import Data... | null | https://raw.githubusercontent.com/kadena-io/pact/e2f3dd1fd1952bb4f736042083769b52dbb2a819/src-tool/Pact/Analyze/Errors.hs | haskell | # LANGUAGE OverloadedStrings #
| Errors that can occur during symbolic analysis.
For cases we don't handle yet:
these are internal errors. not quite as much care is taken on the messaging
these are likely user-facing errors
TODO: maybe we should differentiate between opaque values and type
variables, because the... | # LANGUAGE LambdaCase #
# LANGUAGE StrictData #
module Pact.Analyze.Errors where
import qualified Data.SBV.Internals as SBVI
import Data.String (IsString (fromString))
import Data.Text (Text)
import qualified Data.Text as T
import ... |
5be187c23cd5e3e2ae5a278b645cf763f23167a3f05f4d8b71beb6a0891d82e9 | marigold-dev/deku | spectest.ml | (*
* Simple collection of functions useful for writing test cases.
*)
open Types
open Values
open Instance
let global (GlobalType (t, _) as gt) =
let v =
match t with
| NumType I32Type -> Num (I32 666l)
| NumType I64Type -> Num (I64 666L)
| NumType F32Type -> Num (F32 (F32.of_float 666.6))
| N... | null | https://raw.githubusercontent.com/marigold-dev/deku/a26f31e0560ad12fd86cf7fa4667bb147247c7ef/deku-c/interpreter/host/spectest.ml | ocaml |
* Simple collection of functions useful for writing test cases.
|
open Types
open Values
open Instance
let global (GlobalType (t, _) as gt) =
let v =
match t with
| NumType I32Type -> Num (I32 666l)
| NumType I64Type -> Num (I64 666L)
| NumType F32Type -> Num (F32 (F32.of_float 666.6))
| NumType F64Type -> Num (F64 (F64.of_float 666.6))
| VecType V128Type ... |
dde488c0e014f5522e753499549cf68cf2555f629ef9af3ae00343acb5683a5f | fresnel/fresnel | Test.hs | # LANGUAGE TemplateHaskell #
module Tropical.Test
( tests
) where
import Data.Monoid (Sum)
import Fresnel.Tropical
import Test.Group
import Test.QuickCheck hiding ((><))
prop_semigroup_assoc (ArbTropical a) (ArbTropical b) (ArbTropical c) = label (summarize a) . label (summarize b) . label (summarize c) $ a <> (b <> ... | null | https://raw.githubusercontent.com/fresnel/fresnel/d96d57da2bf82af90494b77712e29a1dbcc88b87/fresnel/test/Tropical/Test.hs | haskell | # LANGUAGE TemplateHaskell #
module Tropical.Test
( tests
) where
import Data.Monoid (Sum)
import Fresnel.Tropical
import Test.Group
import Test.QuickCheck hiding ((><))
prop_semigroup_assoc (ArbTropical a) (ArbTropical b) (ArbTropical c) = label (summarize a) . label (summarize b) . label (summarize c) $ a <> (b <> ... | |
b815f90dd5a4974661bacaa3ab620e9e491bbbe7f752110dba745859fcc968d6 | phronmophobic/membrane | macroexpand.cljs | Copyright ( C ) Rights Reserved
;; Unauthorized copying of this file, via any medium is strictly prohibited
;; Proprietary and confidential
Written by , June 2019
(ns membrane.macroexpand
(:require-macros [cljs.core.async.macros :refer [go]])
(:require clojure.walk
[cljs.core.async :refer [pu... | null | https://raw.githubusercontent.com/phronmophobic/membrane/4a69da67c5924068fd9a47df77226e6529a01b99/src/membrane/macroexpand.cljs | clojure | Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
"Like postwalk, but does pre-order traversal."
[f form]
(walk-async (partial prewalk-async f) identity (f form))) | Copyright ( C ) Rights Reserved
Written by , June 2019
(ns membrane.macroexpand
(:require-macros [cljs.core.async.macros :refer [go]])
(:require clojure.walk
[cljs.core.async :refer [put! chan <! timeout dropping-buffer]
:as async]
[cljs.js :as cljs]))
(defn mexpand... |
1391f12840b2879620dd492d00b093b18ec071c867826ba0e0371e896c70a7ea | janestreet/bonsai | type.mli | include module type of Type_intf
| null | https://raw.githubusercontent.com/janestreet/bonsai/33e9a58fc55ec12095959dc5ef4fd681021c1083/examples/sexp_grammar/type.mli | ocaml | include module type of Type_intf
| |
8708f2f8045d15dea64712c14a76d997929a9c1db49156d8c783922dfbb85927 | scrintal/heroicons-reagent | book_open.cljs | (ns com.scrintal.heroicons.mini.book-open)
(defn render []
[:svg {:xmlns ""
:viewBox "0 0 20 20"
:fill "currentColor"
:aria-hidden "true"}
[:path {:d "M10.75 16.82A7.462 7.462 0 0115 15.5c.71 0 1.396.098 2.046.282A.75.75 0 0018 15.06v-11a.75.75 0 00-.546-.721A9.006 9.00... | null | https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/book_open.cljs | clojure | (ns com.scrintal.heroicons.mini.book-open)
(defn render []
[:svg {:xmlns ""
:viewBox "0 0 20 20"
:fill "currentColor"
:aria-hidden "true"}
[:path {:d "M10.75 16.82A7.462 7.462 0 0115 15.5c.71 0 1.396.098 2.046.282A.75.75 0 0018 15.06v-11a.75.75 0 00-.546-.721A9.006 9.00... | |
7b59842f47e2a3318801eb83ec2ebbfc62aee1b7e4475933c56bfdb4b77581c1 | vsedach/Vacietis | vcc.lisp | (in-package #:vacietis.vcc)
#-(or sbcl ccl clisp) (error "VCC only supports CCL, SBCL, and CLISP at this time.")
(defun del (file)
(when (probe-file file)
(delete-file file)))
(defun getargv ()
#+sbcl sb-ext:*posix-argv*
#+ccl ccl:*command-line-argument-list*
#+cmucl *command-line-strings*
#+clis... | null | https://raw.githubusercontent.com/vsedach/Vacietis/50c1b82a9f906c270cd8cbc7a1fe7f7281ebad2f/vcc/vcc.lisp | lisp | (in-package #:vacietis.vcc)
#-(or sbcl ccl clisp) (error "VCC only supports CCL, SBCL, and CLISP at this time.")
(defun del (file)
(when (probe-file file)
(delete-file file)))
(defun getargv ()
#+sbcl sb-ext:*posix-argv*
#+ccl ccl:*command-line-argument-list*
#+cmucl *command-line-strings*
#+clis... | |
9e38d09b9506d0303f5d3947dd68e62b219bf1a276162e9afa5dfac2332c49ec | haroldcarr/learn-haskell-coq-ml-etc | FA_args_in_parallel.hs | {-# OPTIONS_GHC -Wno-unused-do-bind #-}
# LANGUAGE FlexibleContexts #
-- experiment trying run applicative args in parallel
module FA_args_in_parallel where
import Control.Applicative.Free (Ap, liftAp, runAp_)
import Control.Concurrent
import Control.Monad
import Control.Mona... | null | https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/0640bc37dcedc25bbf1aac07789a9c7e515be24c/haskell/topic/fix-free/fa-args-in-parallel/src/FA_args_in_parallel.hs | haskell | # OPTIONS_GHC -Wno-unused-do-bind #
experiment trying run applicative args in parallel
---------------------------------------------------------------------------- |
# LANGUAGE FlexibleContexts #
module FA_args_in_parallel where
import Control.Applicative.Free (Ap, liftAp, runAp_)
import Control.Concurrent
import Control.Monad
import Control.Monad.IO.Class
import Data.List ((\\))
# ANN module " HLint : ignore Eta... |
d1572dedc43a2562271d7049158b80572309fe40a79a03a455f303f95f2f8009 | spechub/Hets | ToXml.hs | |
Module : ./CASL / CompositionTable / ToXml.hs
Description : XML output for composition tables of qualitative calculi
Copyright : ( c ) Uni Bremen 2005
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : non - portable ( Flex... | null | https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CASL/CompositionTable/ToXml.hs | haskell | hets -v2 -n RCC8CompositionTable -o comptable.xml Calculi / Space / RCC8.het
writes Calculi / Space / RCC8_RCC8CompositionTable.comptable.xml
hets -v2 -n RCC8CompositionTable -o comptable.xml Calculi/Space/RCC8.het
writes Calculi/Space/RCC8_RCC8CompositionTable.comptable.xml
Public identifier (suggestion)
Syste... | |
Module : ./CASL / CompositionTable / ToXml.hs
Description : XML output for composition tables of qualitative calculi
Copyright : ( c ) Uni Bremen 2005
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : provisional
Portability : non - portable ( Flex... |
3cfe60a570d72f94f47e7b6d165d5b4dd9629e05c52916c1d66a88592a80b7cb | IBM/probzelus | types.ml |
* Copyright 2018 - 2020 IBM Corporation
*
* Licensed under the Apache License , Version 2.0 ( the " License " ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* -2.0
*
* Unless required by applicable law or agreed to in writin... | null | https://raw.githubusercontent.com/IBM/probzelus/424b53146885cbe1502edb09f39cda8ec89fed08/probzelus/inference/types.ml | ocaml | * Logarithm of probabilities
* Family of marginal distributions (used as kind)
* Type of distributions
| Dist_mixture of ('a distr) distr
det(sigma)
let u,s,_ = svd(sigma) in u *@ sqrt(diagm s)
* Marginalized distribution
* Conditionned distribution
* Delayed sampling
* Random variable of type ['b] and with... |
* Copyright 2018 - 2020 IBM Corporation
*
* Licensed under the Apache License , Version 2.0 ( the " License " ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* -2.0
*
* Unless required by applicable law or agreed to in writin... |
ed88270dad104d08001831059b32561d79aa92aa4bc27e4b7b256216548c2664 | roelvandijk/numerals | TestData.hs | |
[ @ISO639 - 1@ ] oc
[ @ISO639 - 2@ ] oci
[ @ISO639 - 3@ ] oci
[ @Native name@ ] occitan , lenga d'òc
[ @English name@ ] Occitan
[@ISO639-1@] oc
[@ISO639-2@] oci
[@ISO639-3@] oci
[@Native name@] occitan, lenga d'òc
[@English name@] Occita... | null | https://raw.githubusercontent.com/roelvandijk/numerals/b1e4121e0824ac0646a3230bd311818e159ec127/src-test/Text/Numeral/Language/OCI/TestData.hs | haskell | ------------------------------------------------------------------------------
Imports
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Test data
---------------------------------------------------------------... | |
[ @ISO639 - 1@ ] oc
[ @ISO639 - 2@ ] oci
[ @ISO639 - 3@ ] oci
[ @Native name@ ] occitan , lenga d'òc
[ @English name@ ] Occitan
[@ISO639-1@] oc
[@ISO639-2@] oci
[@ISO639-3@] oci
[@Native name@] occitan, lenga d'òc
[@English name@] Occita... |
fc35cae80ec1276b4110cb81dbbb2ca6e34fae6f00d9349e63ca1de24099ebc2 | babashka/babashka | smoke_test.clj | (ns cprop.smoke-test
(:require [clojure.test :as t :refer [deftest is]]
[cprop.core]
[cprop.source :refer [from-env]]))
(deftest from-env-test
(println (:cprop-env (from-env))))
| null | https://raw.githubusercontent.com/babashka/babashka/665ae4dd97535bf72a5ce34a19d624e74e5c4fe8/test-resources/lib_tests/cprop/smoke_test.clj | clojure | (ns cprop.smoke-test
(:require [clojure.test :as t :refer [deftest is]]
[cprop.core]
[cprop.source :refer [from-env]]))
(deftest from-env-test
(println (:cprop-env (from-env))))
| |
ce4e888a46de8520f31f97fc54bfb11c5878f49ca7eaa562d96c6d48c44a3927 | aryx/xix | globals.ml |
This global is used by the lexer and parser to consider certain
* newlines as regular spaces . Because rc is an interactive
* interpreter , newline has a special meaning : it terminates a command .
* However , sometimes we just want to add a newline because the command
* is too long . Escaping the newlin... | null | https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/shell/globals.ml | ocaml | to mimic Plan 9 errstr() |
This global is used by the lexer and parser to consider certain
* newlines as regular spaces . Because rc is an interactive
* interpreter , newline has a special meaning : it terminates a command .
* However , sometimes we just want to add a newline because the command
* is too long . Escaping the newlin... |
bbe5f4eaf0466b932519578c7a140fc4a6307212e944a8b5c7545fa3ce26620d | PureFnOrg/sentenza | api.clj | (ns org.purefn.sentenza.api
"A library for building up pipelines of transducers
using core.async for parallelism."
(:require [clojure.string :as str]
[clojure.spec.alpha :as s]
[clojure.core.async
:as async
:refer [>! <! >!! <!! close! chan go-loop]]
... | null | https://raw.githubusercontent.com/PureFnOrg/sentenza/3eac3a9712782ece05264c630d9cff3c5cd76b45/src/org/purefn/sentenza/api.clj | clojure | =============================
Main API
=============================
===========================================================
Starting with source, we want to ayncly apply each xform.
We will create an output channel at each step, the output
channel will have the xform for that step.
========================... | (ns org.purefn.sentenza.api
"A library for building up pipelines of transducers
using core.async for parallelism."
(:require [clojure.string :as str]
[clojure.spec.alpha :as s]
[clojure.core.async
:as async
:refer [>! <! >!! <!! close! chan go-loop]]
... |
9d03cc2ece9c5bae7c897be44774a8779b234cf3b32fc04922a60c87f3b3f965 | nationalarchives/miiify | utils.mli | val get_timestamp: unit -> string
val read_file: string -> string
val key_to_string: string list -> string | null | https://raw.githubusercontent.com/nationalarchives/miiify/099ceb026fe2a92eecb2079b003850cf893b956a/lib/utils.mli | ocaml | val get_timestamp: unit -> string
val read_file: string -> string
val key_to_string: string list -> string | |
02ff0b7e2b9630d1565367e21732fde4fc043d4ca40e2259448c384cf506d191 | dmotz/GildedGauge | project.clj | (defproject gilded-gauge "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.520"]
[org.clojure/core.async "0.4.500"]
[sablono "0.7.2"]
[org.omcljs/om "0.9.0"]
[cljsjs/react-dom "15.2.1-1"... | null | https://raw.githubusercontent.com/dmotz/GildedGauge/f462d16aa821fea2684bd3a4d097cd6fc843a986/project.clj | clojure | (defproject gilded-gauge "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.520"]
[org.clojure/core.async "0.4.500"]
[sablono "0.7.2"]
[org.omcljs/om "0.9.0"]
[cljsjs/react-dom "15.2.1-1"... | |
38aa030c9977647fc925cfd536b715b61000f49057c083aa7b1d66fbbacc2b27 | haskell/stylish-haskell | Tests.hs | --------------------------------------------------------------------------------
# LANGUAGE OverloadedLists #
module Language.Haskell.Stylish.Step.TrailingWhitespace.Tests
( tests
) where
--------------------------------------------------------------------------------
import Test.Framework ... | null | https://raw.githubusercontent.com/haskell/stylish-haskell/be4814e4380613567b7055830cd596a580a5ad6d/tests/Language/Haskell/Stylish/Step/TrailingWhitespace/Tests.hs | haskell | ------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----... | # LANGUAGE OverloadedLists #
module Language.Haskell.Stylish.Step.TrailingWhitespace.Tests
( tests
) where
import Test.Framework (Test, testGroup)
import Test.Framework.Providers.HUnit (testCase)
import Test.HUnit (Asser... |
624208aa0b223b71d17aba70fab3fafc0cf84adad2f6a68c68e85806bce26f35 | pa-ba/compdata | Arbitrary.hs | {-# LANGUAGE GADTs #-}
# LANGUAGE TemplateHaskell #
--------------------------------------------------------------------------------
-- |
-- Module : Data.Comp.Derive.Arbitrary
Copyright : ( c ) 2011
-- License : BSD3
Maintainer : < >
-- Stability : experimental
Portability :... | null | https://raw.githubusercontent.com/pa-ba/compdata/5783d0e11129097e045cabba61643114b154e3f2/src/Data/Comp/Derive/Arbitrary.hs | haskell | # LANGUAGE GADTs #
------------------------------------------------------------------------------
|
Module : Data.Comp.Derive.Arbitrary
License : BSD3
Stability : experimental
------------------------------------------------------------------------------
| Signature arbitration. An instanc... | # LANGUAGE TemplateHaskell #
Copyright : ( c ) 2011
Maintainer : < >
Portability : non - portable ( GHC Extensions )
Automatically derive instances of @ArbitraryF@.
module Data.Comp.Derive.Arbitrary
(
ArbitraryF(..),
makeArbitraryF,
Arbitrary(..)
)where
import Data.Comp.... |
f19a29e4131c3502edc4c551ebf2004aea240688c170e954777f5264187a13a4 | elaforge/karya | Instrument.hs | Copyright 2018
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
-- | Local instrument definition with nothing in it. If you have MIDI
-- instruments you'll want to put some basic configuration in here.
-- See User\/Elaforge\/Instrument for examples.
... | null | https://raw.githubusercontent.com/elaforge/karya/8d30186009ac22d1e66a5ba3e1a93159abb64cd1/User/Generic/Instrument.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
| Local instrument definition with nothing in it. If you have MIDI
instruments you'll want to put some basic configuration in here.
See User\/Elaforge\/Instrument for examples.
| Synth declarations for each... | Copyright 2018
module User.Generic.Instrument (midi_synths, all_loads) where
import qualified Cmd.Instrument.MidiInst as MidiInst
import qualified Derive.ScoreT as ScoreT
import qualified Instrument.InstT as InstT
import qualified Midi.Midi as Midi
import qualified User.Generic.Instrument.GeneralMidi as GeneralMid... |
0463d945261e02e63fcaae370b9c0a36e6f0d572083ecbe23046fe43bdc2cb38 | leo-project/leo_gateway | leo_nlm_lock_behaviour.erl | %%======================================================================
%%
Network Lock Manager written in Erlang
%%
Copyright ( c ) 2012 - 2015 Rakuten , Inc.
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the Lice... | null | https://raw.githubusercontent.com/leo-project/leo_gateway/7bac8912b762688f0ef237b31fee17e30e3888a3/src/leo_nlm_lock_behaviour.erl | erlang | ======================================================================
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permis... | Network Lock Manager written in Erlang
Copyright ( c ) 2012 - 2015 Rakuten , Inc.
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF... |
1bb8c1c59ef45bad25df6bb393cf4711a33407d4445e4336ba183960803fc2a5 | glondu/belenios | migrate.ml | (**************************************************************************)
(* BELENIOS *)
(* *)
Copyright © 2012 - 2023
(* ... | null | https://raw.githubusercontent.com/glondu/belenios/a1f9e4cc8c9aa823f3d0f9ba1e21b8c700cd5522/src/web/server/migrate/migrate.ml | ocaml | ************************************************************************
BELENIOS
This program is free softw... | Copyright © 2012 - 2023
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation , either version 3 of the
exemption that compiling , linking , and/or using OpenSSL is allowed .
You should have rece... |
57bbdd3bd03941a0dca20d0c59e1238a14879130aed8f66e22cb7dcd9572b177 | roman/Haskell-Reactive-Extensions | TestSuite.hs | module Main where
import Test.Hspec (hspec)
import qualified Rx.Observable.ConcatTest
import qualified Rx.Observable.DistinctTest
import qualified Rx.Observable.DoTest
import qualified Rx.Observable.ErrorTest
import qualified Rx.Observable.FilterTest
import qualified Rx.Observable.FirstTest
import qualified Rx.Observ... | null | https://raw.githubusercontent.com/roman/Haskell-Reactive-Extensions/0faddbb671be7f169eeadbe6163e8d0b2be229fb/rx-core/test/TestSuite.hs | haskell | module Main where
import Test.Hspec (hspec)
import qualified Rx.Observable.ConcatTest
import qualified Rx.Observable.DistinctTest
import qualified Rx.Observable.DoTest
import qualified Rx.Observable.ErrorTest
import qualified Rx.Observable.FilterTest
import qualified Rx.Observable.FirstTest
import qualified Rx.Observ... | |
5a6c327f65072021e7d75cc7eae5cdd3298b1160d7e48c3cc3fae577ee9e2816 | philopon/apiary-benchmark | scotty.hs | {-# LANGUAGE OverloadedStrings #-}
import System.Environment
import Web.Scotty
import qualified Data.ByteString.Lazy as L
import Network.Wai.Handler.Warp (run)
import Control.Concurrent (runInUnboundThread)
deep :: ActionM ()
deep = do
setHeader "Content-Type" "text/plain"
raw "deep"
# INLINE deep #
main :: ... | null | https://raw.githubusercontent.com/philopon/apiary-benchmark/015322b87d1789682a8b9b91182ac2eaa2ba17e9/src/scotty.hs | haskell | # LANGUAGE OverloadedStrings # |
import System.Environment
import Web.Scotty
import qualified Data.ByteString.Lazy as L
import Network.Wai.Handler.Warp (run)
import Control.Concurrent (runInUnboundThread)
deep :: ActionM ()
deep = do
setHeader "Content-Type" "text/plain"
raw "deep"
# INLINE deep #
main :: IO ()
main = do
port:_ <- getAr... |
83a2dcf21ded81e4641032305fc3c375da9a86759a23b1830dbbffacf3b2136c | cl-axon/shop2 | adlsimpleTimeSat.lisp | ;;
: SimpleTime ( Version 1.0 )
;;
;; functions for debugging
(defun print-last-action ()
(let ((tplan (strip-nops *current-plan*))
(fplan nil)
(i 1))
(do* ((cc (pop tplan) (pop tplan))
(tt (pop tplan) (pop tplan)))
((not cc))
(when (and (not (eql (car tt) '!!IN... | null | https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/examples/IPC-2002/Satellite/SimpleTime/adlsimpleTimeSat.lisp | lisp |
functions for debugging
OPERATOR
no when
METHOD
Main Method ;;;
(println "START >>>")
(print-config)
(println "==== Initial State ===============================")
(print-satellite)
(println "==== Planning ====================================")
(println "==== Final State =============================... | : SimpleTime ( Version 1.0 )
(defun print-last-action ()
(let ((tplan (strip-nops *current-plan*))
(fplan nil)
(i 1))
(do* ((cc (pop tplan) (pop tplan))
(tt (pop tplan) (pop tplan)))
((not cc))
(when (and (not (eql (car tt) '!!INOP)))
(push tt fplan))
... |
f140bac514c374f8f19169feeb19d38c61c26d12f13df491a933317668188c05 | facebook/duckling | Tests.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Ordinal.GA.Tests
( tests
) where
import Prelude
import Data.String
import Test.Tasty
i... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Ordinal/GA/Tests.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. | Copyright ( c ) 2016 - present , Facebook , Inc.
module Duckling.Ordinal.GA.Tests
( tests
) where
import Prelude
import Data.String
import Test.Tasty
import Duckling.Dimensions.Types
import Duckling.Ordinal.GA.Corpus
import Duckling.Testing.Asserts
tests :: TestTree
tests = testGroup "GA Tests"
[ makeCorpu... |
eb4b73819d77d6ec9fab94fb6d2ba0703e20fe7ff6aeaae2c808bbe215a1a8af | privet-kitty/cl-competitive | buffered-read-line.lisp | (defpackage :cp/test/buffered-read-line
(:use :cl :fiveam :cp/buffered-read-line :cp/test/octet-input-stream)
(:import-from :cp/test/base #:base-suite))
(in-package :cp/test/buffered-read-line)
(in-suite base-suite)
(test buffered-read-line
(let ((*standard-input* (make-octet-input-stream "foo")))
(is (equal... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/test/buffered-read-line.lisp | lisp | (defpackage :cp/test/buffered-read-line
(:use :cl :fiveam :cp/buffered-read-line :cp/test/octet-input-stream)
(:import-from :cp/test/base #:base-suite))
(in-package :cp/test/buffered-read-line)
(in-suite base-suite)
(test buffered-read-line
(let ((*standard-input* (make-octet-input-stream "foo")))
(is (equal... | |
a8cf43699839cdcf00f9c00e7aacc8cb3c16926b43dfea13e732153a9cc911b5 | flybot-sg/Pastoral | unity.cljc | Copyright ( c ) 2018 Flybot Pte Ltd , Singapore .
;;
This file is distributed under the Eclipse Public License , the same as
Clojure .
(ns pastoral.unity
(:require
[clojure.string :as string]
[clojure.reflect :refer [typename]])
(:import
[UnityEditor Help]
[UnityEditorInternal InternalEditorUt... | null | https://raw.githubusercontent.com/flybot-sg/Pastoral/c0bfb0e083e7fee22cb242d03768fc8a72598683/src/pastoral/unity.cljc | clojure | Copyright ( c ) 2018 Flybot Pte Ltd , Singapore .
This file is distributed under the Eclipse Public License , the same as
Clojure .
(ns pastoral.unity
(:require
[clojure.string :as string]
[clojure.reflect :refer [typename]])
(:import
[UnityEditor Help]
[UnityEditorInternal InternalEditorUtili... | |
44bc6467fc1a13ff420172d3c67825bcd69c346f406bd31b987d92a84f824349 | UU-ComputerScience/uhc | Prelude11.hs | This prelude can be compiled by EHC 11 , and contains :
from Prelude8.hs :
* datatypes : , Ordering , [ ] , PackedString , Maybe , Either
-- * very polymorphic functions: 9id, flip etc.)
-- * functions on lists: (head, ++, filter, foldr etc.)
-- * primitives for Int
from Prelude9.hs :
* classes E... | null | https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/nofib-jvschie/tools/Prelude11.hs | haskell | * very polymorphic functions: 9id, flip etc.)
* functions on lists: (head, ++, filter, foldr etc.)
* primitives for Int
and additional:
-----------------------------------------------------------
Ordering type ------------------------------------------------------------
Lists -----------------------------... | This prelude can be compiled by EHC 11 , and contains :
from Prelude8.hs :
* datatypes : , Ordering , [ ] , PackedString , Maybe , Either
from Prelude9.hs :
* classes Eq , Ord , Integral , , Bounded , , Functor , Monad
* Int instance of Eq , Ord , Integral , , Bounded ,
List ins... |
9a3739213a93bc5e751dccac7fcbfaecdd80e2932cba753f1ec65b61264d6434 | Decentralized-Pictures/T4L3NT | test_level_module.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Nomadic Labs < >
(* ... | null | https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_112_Pt4FJEL6/lib_protocol/test/test_level_module.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 Nomadic Labs < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER IN AN... |
b15c3979b2f57a3f1fccf73fc855297fcac0a8e26df762c276ce060f0ea8e46b | ygmpkk/house | Tess.hs |
Tess.hs ( adapted from tess.c which is ( c ) Silicon Graphics , Inc )
Copyright ( c ) 2003 < >
This file is part of HOpenGL and distributed under a BSD - style license
See the file libraries / GLUT / LICENSE
This program demonstrates polygon tessellation . Two tesselated objects are
dr... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/GLUT/examples/RedBook/Tess.hs | haskell | resolve overloading, not needed in "real" programs
'Float' is a dummy, any marshalable type would do |
Tess.hs ( adapted from tess.c which is ( c ) Silicon Graphics , Inc )
Copyright ( c ) 2003 < >
This file is part of HOpenGL and distributed under a BSD - style license
See the file libraries / GLUT / LICENSE
This program demonstrates polygon tessellation . Two tesselated objects are
dr... |
4a5529b75bc4a391344b701bed3641b41274b3f37d659011ef78ce4fbc05fe27 | spl/ivy | rcprint.ml | Copyright ( c ) 2007 Intel Corporation
* All rights reserved .
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are
* met :
*
* Redistributions of source code must retain the above copyright
* notice , th... | null | https://raw.githubusercontent.com/spl/ivy/b1b516484fba637eb24e83d27555d273495e622b/src/heapsafe/rcprint.ml | ocaml | The 'rcPrinter' class filters out our attributes, and prints adjust
functions
Wrap some code in a C block
RCHACK: typedebug code doesn't deal with floats yet
For generating unique index variables
Generate a loop over the array elements
Generate code for all structure fields
Printer that filters out ou... | Copyright ( c ) 2007 Intel Corporation
* All rights reserved .
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions are
* met :
*
* Redistributions of source code must retain the above copyright
* notice , th... |
778eba6bd9b2c2a22b9950e7bd4778953be950358d42694b84132b66ff6e0169 | KenDickey/Crosstalk | st-stream.scm | ;;; FILE: "st-stream.scm"
IMPLEMENTS : Stream , CharStream , ByteStream
AUTHOR :
DATE : 24 July 2016
;; (requires 'st-core-classes)
;; (requires 'st-string)
( requires ' st - array ) ; ; for bytevectors
ST Streams are similar to Scheme ports , which
;;; are exposed here.
;;;
;;; This implementation hierar... | null | https://raw.githubusercontent.com/KenDickey/Crosstalk/c4a315baf039e714980e14f5b07860632b9bd0e6/st-stream.scm | scheme | FILE: "st-stream.scm"
(requires 'st-core-classes)
(requires 'st-string)
; for bytevectors
are exposed here.
This implementation hierarchy is non-standard! (not ANSI ST)
Stream
write-only ports always at end
@@??handle EOF??@@
ByteStream
(provides st-stream)
--- E O F --- ;;; | IMPLEMENTS : Stream , CharStream , ByteStream
AUTHOR :
DATE : 24 July 2016
ST Streams are similar to Scheme ports , which
(define Stream
(newSubclassName:iVars:cVars:
Object
'Stream '() '())
)
(perform:with:
Stream
'category:
'|Collections-Streams|)
(perform:with:
Stream
... |
8fe563abf0c8661ed4cbcad4d774057a6dde6275ff5b47bf7eaf6cc02d80deaf | alexandergunnarson/quantum | collections.cljc | (ns quantum.untyped.core.collections
(:refer-clojure :exclude
[#?(:cljs array?) assoc-in cat contains? count distinct distinct? get group-by filter
flatten last map map-indexed mapcat partition-all pmap remove zipmap])
(:require
[clojure.core :as core]
[fast-zip.core ... | null | https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src-untyped/quantum/untyped/core/collections.cljc | clojure | no idea why this is required currently :/
===== SOCIATIVE ===== ;;
----- UPDATE ----- ;;
----- *SOC ----- ;;
----- *SOC-IN ----- ;;
this is terrible
===== Sequential ==== ;;
===== Keyed ==== ;;
===== ... ==== ;;
others O(log(N))."
`subviewable?`
reducing function to behave correctly (e.g. `partition-all+`),... | (ns quantum.untyped.core.collections
(:refer-clojure :exclude
[#?(:cljs array?) assoc-in cat contains? count distinct distinct? get group-by filter
flatten last map map-indexed mapcat partition-all pmap remove zipmap])
(:require
[clojure.core :as core]
[fast-zip.core ... |
1cfc69577301dabad321543acb9e5283c771e90967392f54aa5a84e00c546876 | racket/compatibility | contract-arrow.rkt | #lang racket/base
(require racket/contract/private/guts
racket/contract/private/blame
racket/contract/private/prop
racket/contract/private/opt
racket/contract/private/misc
"contract-arr-checks.rkt")
(require (for-syntax racket/base)
(for-syntax racket/contract/priv... | null | https://raw.githubusercontent.com/racket/compatibility/492030dac6f095045ce8a13dca75204dd5f34e32/compatibility-lib/mzlib/private/contract-arrow.rkt | racket | rng-any? : boolean
dom-rest : (or/c false/c contract)
quoted-keywords : (listof keyword) -- must be sorted by keyword<
func : the wrapper function maker. It accepts a procedure for
and it produces a wrapper-making function.
(printf "comparing ~s to ~s\n" (car x) fst-kwd)
->/proc/main : syntax -> (values sy... | #lang racket/base
(require racket/contract/private/guts
racket/contract/private/blame
racket/contract/private/prop
racket/contract/private/opt
racket/contract/private/misc
"contract-arr-checks.rkt")
(require (for-syntax racket/base)
(for-syntax racket/contract/priv... |
647d1bed1bf324b978637134dc3570d6a973c1d8e0f2fb856e614d6a7bf62db3 | BioHaskell/hPDB | StrandSense.hs | -- | Module with enumeration of beta-strand senses.
module Bio.PDB.EventParser.StrandSense(StrandSenseT(Parallel, Antiparallel))
where
-- | Enumeration of beta-strand sense.
data StrandSenseT = Parallel |
Antiparallel
deriving (Eq, Ord, Show, Read)
| null | https://raw.githubusercontent.com/BioHaskell/hPDB/5be747e2f2c57370b498f4c11f9f1887fdab0418/Bio/PDB/EventParser/StrandSense.hs | haskell | | Module with enumeration of beta-strand senses.
| Enumeration of beta-strand sense. | module Bio.PDB.EventParser.StrandSense(StrandSenseT(Parallel, Antiparallel))
where
data StrandSenseT = Parallel |
Antiparallel
deriving (Eq, Ord, Show, Read)
|
287482ab83c72eb86b5b2449d1cc0670637609727d1b0b405b49071cff464fd0 | fourier/ppath | nt-cffi.lisp | (defpackage ppath.details.nt.cffi
(:use :cl :cffi)
(:export
get-full-path-name
getpid
get-temp-path
get-file-attributes
get-file-attributes-ex
;; file attributes struct and accessors
file-attribute-data
file-attribute-data-dw-file-attributes
file-attribute-data-ft-creation-time... | null | https://raw.githubusercontent.com/fourier/ppath/eb1a8173b4d1d691ea9a7699412123462f58c3ce/src/details/nt-cffi.lisp | lisp | file attributes struct and accessors
GetFileAttributes section ;;;;;;;;;;;;;;;;;;;;;;
not failed to get attributes
| (defpackage ppath.details.nt.cffi
(:use :cl :cffi)
(:export
get-full-path-name
getpid
get-temp-path
get-file-attributes
get-file-attributes-ex
file-attribute-data
file-attribute-data-dw-file-attributes
file-attribute-data-ft-creation-time-low
file-attribute-data-ft-creation-tim... |
0206750d1bb79ac3be3d73036a2795da0820e37108a01604d0bff8bded0dc1f2 | threatgrid/ctim | incident.cljc | (ns ctim.schemas.incident
(:require [ctim.schemas.common :as c]
[ctim.schemas.relationship :as rel]
[ctim.schemas.vocabularies :as v]
#?(:clj [flanders.core :as f :refer [def-entity-type def-map-type def-eq]]
:cljs [flanders.core :as f :refer-macros [def-entity-type... | null | https://raw.githubusercontent.com/threatgrid/ctim/4aa3a14db97715c493a05dec581984b2ae542af5/src/ctim/schemas/incident.cljc | clojure | (ns ctim.schemas.incident
(:require [ctim.schemas.common :as c]
[ctim.schemas.relationship :as rel]
[ctim.schemas.vocabularies :as v]
#?(:clj [flanders.core :as f :refer [def-entity-type def-map-type def-eq]]
:cljs [flanders.core :as f :refer-macros [def-entity-type... | |
4108abb3a1a4579734741873038ab53904da572012583f44baf4ed51d670fcf2 | maralorn/kassandra | LogWidget.hs | module Kassandra.LogWidget (logWidget) where
logWidget :: Monad m => m ()
logWidget = pass
| null | https://raw.githubusercontent.com/maralorn/kassandra/598133b89ab4e4a6209da920636e9e6ee540f38a/apps/kassandra/kassandra/src/Kassandra/LogWidget.hs | haskell | module Kassandra.LogWidget (logWidget) where
logWidget :: Monad m => m ()
logWidget = pass
| |
f6f3a436eaf9c1ba862b14e13afe996afafc1098f32c91600d3a2d4846e5df4c | ghcjs/ghcjs-dom | HTMLLinkElement.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.HTMLLinkElement
(js_setDisabled, setDisabled, js_getDisabled, getDisabled,
js_s... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLLinkElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/HTMLLinkElement.rev Mozilla HTMLLinkElement.rev documentation>
| <-US/docs/Web/API/HTMLLinkElement.rev Mozilla HTMLLinkElement.rev documentation>
| <-US/docs/Web/API/HTMLLinkElement.crossOrigin Mozilla ... | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.HTMLLinkElement
(js_setDisabled, setDisabled, js_getDisabled, getDisabled,
js_setCharset, setCharset, js_getCharset, getCharset, js_setHref,
setHref, js_getHref, getHref,... |
932f27d3c66e3e822adde6b5955da3033e1a65ec1367ceb9a5be2055a69c2fc9 | cwebber/racket-linkeddata | pem.rkt | #lang racket
(require net/base64 crypto)
(module+ test
(require rackunit crypto/libcrypto)
(define rsa-impl (get-pk 'rsa libcrypto-factory))
(when (eq? (crypto-factories) '())
(crypto-factories (list libcrypto-factory))))
(define (base64-encode-with-header bstr header)
(string-append "-----BEGIN " header... | null | https://raw.githubusercontent.com/cwebber/racket-linkeddata/4d59948bb978d6d0abf06ec4de8eb6b946f5f291/linkeddata/pem.rkt | racket | #lang racket
(require net/base64 crypto)
(module+ test
(require rackunit crypto/libcrypto)
(define rsa-impl (get-pk 'rsa libcrypto-factory))
(when (eq? (crypto-factories) '())
(crypto-factories (list libcrypto-factory))))
(define (base64-encode-with-header bstr header)
(string-append "-----BEGIN " header... | |
97bfa55736ecb57c59df0e64911fb2e2e180072d6a5d546914545715e4809c3c | elginer/Delve | VarCore.hs |
The Delve Programming Language
Copyright 2009
Distributed under the terms of the GNU General Public License v3 , or ( at your option ) any later version .
This file is part of Delve .
Delve is free software : you can redistribute it and/or modify
it under the terms of the GNU Ge... | null | https://raw.githubusercontent.com/elginer/Delve/997c25d2c43ac3ab06f7d70304a59f4a8d5f9670/src/VarCore.hs | haskell | A simplified version of core where only simple expressions can be applied to functions |
The Delve Programming Language
Copyright 2009
Distributed under the terms of the GNU General Public License v3 , or ( at your option ) any later version .
This file is part of Delve .
Delve is free software : you can redistribute it and/or modify
it under the terms of the GNU Ge... |
4b075ffff6bae6997e236ffebac81c6ad02a584d5579ba416fc5d618546ab630 | OCADml/OSCADml | text.mli | (** {!Scad.text} configuration parameter types *)
(** Horizontal alignment *)
type h_align = Text0.h_align =
| Left
| Center
| Right
(** Vertical alignment *)
type v_align = Text0.v_align =
| Top
| Center
| Baseline
(** Reading direction *)
type direction = Text0.direction =
| LeftToRight
| RightToLe... | null | https://raw.githubusercontent.com/OCADml/OSCADml/51cbf59256f36487de81d0f76b8d356077884894/lib/text.mli | ocaml | * {!Scad.text} configuration parameter types
* Horizontal alignment
* Vertical alignment
* Reading direction |
type h_align = Text0.h_align =
| Left
| Center
| Right
type v_align = Text0.v_align =
| Top
| Center
| Baseline
type direction = Text0.direction =
| LeftToRight
| RightToLeft
| TopToBottom
| BottomToTop
|
f910fc52b7cc91dccd3595968bb1941501f165314abc37307b296607e9418fbc | GaloisInc/halfs | HalfsState.hs | -- Contains HalfsState, the "global" data structure for tracking
-- filesystem state.
module Halfs.HalfsState
(
HalfsState(..)
)
where
import Data.Map as M
import Data.Word
import Halfs.BlockMap (BlockMap)
import Halfs.Errors (HalfsError)
import Halfs.Monad (HalfsT)
im... | null | https://raw.githubusercontent.com/GaloisInc/halfs/2eb16fb3744e6221ee706b6bd290681a08c18048/Halfs/HalfsState.hs | haskell | Contains HalfsState, the "global" data structure for tracking
filesystem state.
^ explicitly memoized Inode.computeSizes
^ Tracks active directory handles; we probably want to add a
(refcounting?) expiry mechanism so that the size of the map is
bounded. TODO.
^ Tracks active file handles, their open counts, an... |
module Halfs.HalfsState
(
HalfsState(..)
)
where
import Data.Map as M
import Data.Word
import Halfs.BlockMap (BlockMap)
import Halfs.Errors (HalfsError)
import Halfs.Monad (HalfsT)
import Halfs.Protection (UserID, GroupID)
import Halfs.SuperBlock (Sup... |
7f9eb7ac73a41985c8e9dacd7ee241748d784647cbad1fea5338ae39a5d9c1da | bobby/redisconf19-demo | core.clj | (ns redis-streams-clj.storefront.api.core
(:require [clojure.java.io :as io]
[clojure.core.async :as async]
[com.stuartsierra.component :as component]
[io.pedestal.log :as log]
[taoensso.carmine :as car :refer (wcar)]
[redis-streams-clj.common.domain :as dom... | null | https://raw.githubusercontent.com/bobby/redisconf19-demo/0191ed1cf6a7cdf47037de3e4dd187a5c6a33a36/storefront/src/redis_streams_clj/storefront/api/core.clj | clojure | Refactor this to just publish customer updates, which then get
updated in redis via processor
Refactor this to just publish customer updates, which then get
updated in redis via processor | (ns redis-streams-clj.storefront.api.core
(:require [clojure.java.io :as io]
[clojure.core.async :as async]
[com.stuartsierra.component :as component]
[io.pedestal.log :as log]
[taoensso.carmine :as car :refer (wcar)]
[redis-streams-clj.common.domain :as dom... |
e57ab056ce3fe9f2593dc4a7ad0872466307a99142c91d1989f78d198bb5ad46 | janestreet/ecaml | symbol_prefix.ml | open! Core
open! Import0
include Symbol_prefix_intf
type t = string [@@deriving sexp_of]
module type S = S with type t := t
let create elisp_name =
(module struct
let elisp_name = elisp_name
let symbol_prefix = concat [ elisp_name; "-" ]
let all_commands =
Lazy.from_fun (fun () ->
let re... | null | https://raw.githubusercontent.com/janestreet/ecaml/25a5a2972b3a94f5529a46363b37670a6c1de195/src/symbol_prefix.ml | ocaml | open! Core
open! Import0
include Symbol_prefix_intf
type t = string [@@deriving sexp_of]
module type S = S with type t := t
let create elisp_name =
(module struct
let elisp_name = elisp_name
let symbol_prefix = concat [ elisp_name; "-" ]
let all_commands =
Lazy.from_fun (fun () ->
let re... | |
44a16161d9a34bbae719976150a8309e0f40cbce508f395cd280ab2e7bd3b807 | TikhonJelvis/TPL | Parse.hs | module TPL.Parse where
import Control.Applicative ((*>), (<$), (<$>), (<*), (<*>))
import Data.Char (isPunctuation, isSymbol)
import Data.List ((\\))
import Text.ParserCombinators.Parsec
import TPL.Value
-- Parses... | null | https://raw.githubusercontent.com/TikhonJelvis/TPL/81e01e405ef45d0bd918ad3a1197dea3ee1c1616/src/TPL/Parse.hs | haskell | Parses an expression, keeping track of its source string. | module TPL.Parse where
import Control.Applicative ((*>), (<$), (<$>), (<*), (<*>))
import Data.Char (isPunctuation, isSymbol)
import Data.List ((\\))
import Text.ParserCombinators.Parsec
import TPL.Value
expr :: Par... |
5baf4e6456ab15aee9ad9d270d92b5ee69a8d76024c1674b7ec7f711fbbca0ec | facebook/pyre-check | iterableTest.ml |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | null | https://raw.githubusercontent.com/facebook/pyre-check/10c375bea52db5d10b71cb5206fac7da9549eb0c/source/analysis/test/integration/iterableTest.ml | ocaml |
* Copyright ( c ) Meta Platforms , Inc. and affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in t... | |
af8a3328169b525a5cfeb8dcc7b669926d8eac26a113ca21a62cecdb85ff1af5 | ygmpkk/house | Sm.hs | module Sm where
import Prelude hiding (Maybe(..),sequence)
import GadgetsPrelude
import Components
import Display
S C R E E N M A N A G E R ( S M )
-- screen manager state:
type SMState = (
1 . has first expose event arrived yet ?
2 . display data structure
3 . ID of image that will receive next MouseU... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Gadgets/lib/Sm.hs | haskell | screen manager state:
with coord of image origin, and action to perform for
spawn screen
spawn mouse
Keyboard to SM
spawn keyboard
new child request
new connection request
move image
change image size
change image draw function
update image draw function
make image invisible
make image visible
change ... | module Sm where
import Prelude hiding (Maybe(..),sequence)
import GadgetsPrelude
import Components
import Display
S C R E E N M A N A G E R ( S M )
type SMState = (
1 . has first expose event arrived yet ?
2 . display data structure
3 . ID of image that will receive next MouseUnClick
corresponding... |
e9daa993e3878e6d717e2af94ecedac295f5c8e57346a46eb4f0465117bf2347 | borkdude/advent-of-cljc | bgrabow.cljc | (ns aoc.y2018.d12.bgrabow
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d12.data :refer [input answer-1 answer-2]]
[clojure.test :as t :refer [is testing]]
[clojure.string :as str]
[clojure.set :as set]))
(def parse-pla... | null | https://raw.githubusercontent.com/borkdude/advent-of-cljc/17c8abb876b95ab01eee418f1da2e402e845c596/src/aoc/y2018/d12/bgrabow.cljc | clojure | Scratch
_ (println "Qss at" n)
_ (println "QSS: " (print-plants quasi-stable-state)) | (ns aoc.y2018.d12.bgrabow
(:refer-clojure :exclude [read-string format])
(:require
[aoc.utils :as u :refer [deftest read-string format]]
[aoc.y2018.d12.data :refer [input answer-1 answer-2]]
[clojure.test :as t :refer [is testing]]
[clojure.string :as str]
[clojure.set :as set]))
(def parse-pla... |
92c553a2363e983edc60b06e4bcf3441bdb63756c45d1600020f34c9c603ea96 | nallen05/djula | tag.lisp | this file extends PROCESS - TOKENS and COMPILE - TOKEN to understand : UNPARSED - TAG
; and :TAG tokens
;
; see "tag-definitions.lisp" for the source code of the individual tags and
; "tag-documentation.lisp" for the documentation of the tags
(in-package :djula)
; processing unparsed tags
(defun .semi-parse-tag (s... | null | https://raw.githubusercontent.com/nallen05/djula/331e2d5b0c9967b636e4df22e847ac98f16f6ba9/src/tag.lisp | lisp | and :TAG tokens
see "tag-definitions.lisp" for the source code of the individual tags and
"tag-documentation.lisp" for the documentation of the tags
processing unparsed tags
this is big a kludge!!! fix later
defining tag processors
processing tags
util for tags with start and end tag
defining tag compilers
c... | this file extends PROCESS - TOKENS and COMPILE - TOKEN to understand : UNPARSED - TAG
(in-package :djula)
(defun .semi-parse-tag (string)
(let ((*package* (find-package :keyword))
(*read-eval* nil))
(read-from-string string)))
(let ((*package* (find-package :keyword))
(*read-eval* nil))
(with-templa... |
4069258d9f8a9473465b2394768d6403e1f0f068567018e2676adad66b7fa6e1 | input-output-hk/cardano-ledger-byron | API.hs | {-# Language TypeApplications #-}
{-# Language OverloadedStrings #-}
{-# Language RankNTypes #-}
module Test.Cardano.Chain.Byron.API
( genApplyMempoolPayloadErr
, ts_mempoolValidation
, ts_roundTripApplyMempoolPayloadErrCompat
, ts_scheduledDelegations
, tests
)
where
import Cardano.Prelude
import ... | null | https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/test/Test/Cardano/Chain/Byron/API.hs | haskell | # Language TypeApplications #
# Language OverloadedStrings #
# Language RankNTypes #
| should be the same as ticking from a to c.
| A transaction should validate in the mempool at a given slot when
it validates in a block issued for that same slot. |
module Test.Cardano.Chain.Byron.API
( genApplyMempoolPayloadErr
, ts_mempoolValidation
, ts_roundTripApplyMempoolPayloadErrCompat
, ts_scheduledDelegations
, tests
)
where
import Cardano.Prelude
import Data.Coerce (coerce)
import Data.Maybe (maybeToList)
import qualified Data.Map ... |
c970bac43e2f76a94ed80f2c60df8cefc402086b8c2d420a8efa6030dc8cedfc | patricoferris/ocaml-multicore-monorepo | gen_huffman.ml | ----------------------------------------------------------------------------
Copyright ( c ) 2019
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
1 . Redistributions of sourc... | null | https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/src/vendor/h2/hpack/util/gen_huffman.ml | ocaml | ----------------------------------------------------------------------------
Copyright ( c ) 2019
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are met :
1 . Redistributions of sourc... | |
1c3b4f597acb98a7d4cb0c47d6c6519c2feb13d039718efa2ea19f7f3081c66d | tonyg/pi-nothing | asm-x86-common.rkt | #lang racket/base
Copyright ( C ) 2012 - 2015 < >
;;
;; This file is part of pi-nothing.
;;
;; pi-nothing 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 you... | null | https://raw.githubusercontent.com/tonyg/pi-nothing/4b2b59d42babd72cfd007cb71ed295dcdbf53d4a/nothingc/asm-x86-common.rkt | racket |
This file is part of pi-nothing.
pi-nothing is free software: you can redistribute it and/or modify
or (at your option) any later version.
pi-nothing is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR... | #lang racket/base
Copyright ( C ) 2012 - 2015 < >
it under the terms of the GNU General Public License as published
by the Free Software Foundation , either version 3 of the License ,
You should have received a copy of the GNU General Public License
Common definitions for machine - code emission for i38... |
e3123e86a33af0c39ea94ec941b3fe15807226222b09300697faaf76516aaed4 | macourtney/drift | 001_create_tests.clj | (ns migrations.001-create-tests)
(defn up [])
(defn down []) | null | https://raw.githubusercontent.com/macourtney/drift/b5cf735ab41ff2c95b0b1d9cf990faa342353171/test/migrations/001_create_tests.clj | clojure | (ns migrations.001-create-tests)
(defn up [])
(defn down []) | |
9fa73e8be2607bda4d6afe20a325688c9dab7a69af8412bdc0c9a362e7aea109 | dpiponi/Wattage | ex5.hs | -- /~pak/papers/bess8.pdf
--
import Prelude hiding (iterate)
import Formal as F
x = F.var :: Formal Q
identity
lhs = infiniteProduct [1 + x ^ k | k <- [1 ..]]
rhs = zipWith (/) [x ^ k | k <- scanl1 (+) [1 ..]]
--------------------------------------
(scanl1 (*) [(1 - x^k) | k <- ... | null | https://raw.githubusercontent.com/dpiponi/Wattage/723a27f067cdf62f80f5c51446470697bab326ba/examples/ex5.hs | haskell | /~pak/papers/bess8.pdf
------------------------------------ | import Prelude hiding (iterate)
import Formal as F
x = F.var :: Formal Q
identity
lhs = infiniteProduct [1 + x ^ k | k <- [1 ..]]
rhs = zipWith (/) [x ^ k | k <- scanl1 (+) [1 ..]]
(scanl1 (*) [(1 - x^k) | k <- [1 ..]])
main = do
mapM _ print $ take 10 $ map ( F.truncate 10 ) rhs
print $ F... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.