_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 |
|---|---|---|---|---|---|---|---|---|
61252056abb86061914cd84560060c7b7f4039e17e0bf3843da1e51df6afbf00 | rtoy/cmucl | subprim.lisp | ;;; -*- Package: ALPHA; Log: C.Log -*-
;;;
;;; **********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
;;;
(ext:file-comment
"$Header: src/compiler/alpha/subprim.l... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/alpha/subprim.lisp | lisp | -*- Package: ALPHA; Log: C.Log -*-
**********************************************************************
**********************************************************************
Linkage information for standard static functions, and random vops.
Length | This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
(ext:file-comment
"$Header: src/compiler/alpha/subprim.lisp $")
Written by .
Converted by .
(in-package "ALPHA")
(define-vop (length/list)
(:translate length)
(:... |
7f580a12bd833eec7d1017cd9561af4e9467045466e6e6e2b205f40c15525d6e | pjotrp/guix | environment.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2014 , 2015 < >
Copyright © 2015 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU 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 Foundati... | null | https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/guix/scripts/environment.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2014 , 2015 < >
Copyright © 2015 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (guix scripts environment)
#:use-module (guix ui)
#:use-module... |
9b8d754328d817074bc3a16cf75bdfcddd4fe077efa275028615d5031a42097a | ghc/packages-Cabal | Internal.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE DeriveGeneric #
module Distribution.Verbosity.Internal
( VerbosityLevel(..)
, VerbosityFlag(..)
) where
import Prelude ()
import Distribution.Compat.Prelude
data VerbosityLevel = Silent | Normal | Verbose | Deafening
deriving (Generic, Show, Read, Eq, Ord, Enum... | null | https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/Cabal/Distribution/Verbosity/Internal.hs | haskell | # LANGUAGE DeriveDataTypeable #
^ @since 3.4.0.0 | # LANGUAGE DeriveGeneric #
module Distribution.Verbosity.Internal
( VerbosityLevel(..)
, VerbosityFlag(..)
) where
import Prelude ()
import Distribution.Compat.Prelude
data VerbosityLevel = Silent | Normal | Verbose | Deafening
deriving (Generic, Show, Read, Eq, Ord, Enum, Bounded, Typeable)
instance Binar... |
68c1119b7c72ecd8aff108976740747bc7a5bea463770475291821e209a32449 | haskell-lisp/yale-haskell | type-error-handlers.scm | ;;; This file contains error handlers for the type checker.
(define (type-error msg . args)
(apply (function phase-error) `(type-error ,msg ,@args))
(report-non-local-type-error)
(continue-from-type-error))
(define (report-non-local-type-error)
(when (pair? (dynamic *type-error-handlers*))
(funcall (car ... | null | https://raw.githubusercontent.com/haskell-lisp/yale-haskell/4e987026148fe65c323afbc93cd560c07bf06b3f/type/type-error-handlers.scm | scheme | This file contains error handlers for the type checker.
Error handlers |
(define (type-error msg . args)
(apply (function phase-error) `(type-error ,msg ,@args))
(report-non-local-type-error)
(continue-from-type-error))
(define (report-non-local-type-error)
(when (pair? (dynamic *type-error-handlers*))
(funcall (car (dynamic *type-error-handlers*)))))
(define (continue-from-... |
d7f4460afdcbe3e9eab02fcfdb9446346f0c7082d4796c62324f917bb8b7fbb3 | yogeshsajanikar/hspark | StageSpec.hs | # LANGUAGE TemplateHaskell #
module StageSpec where
import Spark.Context
import Spark.Block
import Spark . Static
import Spark.SeedRDD
import Spark.RDD
import Data.List (sort)
import Control.Distributed.Process
import Control.Distributed.Process.Closure
import Control.Distributed.Process.Node
import Control . Distr... | null | https://raw.githubusercontent.com/yogeshsajanikar/hspark/43e150ec38a62be3d14a7072787d1a8992f1841e/test/StageSpec.hs | haskell | say $ "Length : " ++ show (length xs) | # LANGUAGE TemplateHaskell #
module StageSpec where
import Spark.Context
import Spark.Block
import Spark . Static
import Spark.SeedRDD
import Spark.RDD
import Data.List (sort)
import Control.Distributed.Process
import Control.Distributed.Process.Closure
import Control.Distributed.Process.Node
import Control . Distr... |
4907b31fda451a3981fedf5661c76294b7858d1f1d238dc26f091141e452f9e6 | clj-kondo/clj-kondo | core.clj | (ns clj-kondo.impl.core
"Implementation details of clj-kondo.core"
{:no-doc true}
(:require
[babashka.fs :as fs]
[clj-kondo.impl.analysis.java :as java]
[clj-kondo.impl.analyzer :as ana]
[clj-kondo.impl.config :as config]
[clj-kondo.impl.findings :as findings]
[clj-kondo.impl.utils :as utils :re... | null | https://raw.githubusercontent.com/clj-kondo/clj-kondo/bae24c63764a255fe43ebf9ac19fc9e1b761eddf/src/clj_kondo/impl/core.clj | clojure | process config
'include-edn include
'include-string #(read-fn cfg-file slurp %)
config is a string that represents a file
local config exists implicitly when configs are discovered, even when
local-config was nil
command line config
process cache
for backward compatibility
find cache/config dir
we needed to ad... | (ns clj-kondo.impl.core
"Implementation details of clj-kondo.core"
{:no-doc true}
(:require
[babashka.fs :as fs]
[clj-kondo.impl.analysis.java :as java]
[clj-kondo.impl.analyzer :as ana]
[clj-kondo.impl.config :as config]
[clj-kondo.impl.findings :as findings]
[clj-kondo.impl.utils :as utils :re... |
01da99162cc8025c7526a176aab960bf8d13ff667da798f80cb3676d56b07ebf | rtoy/cmucl | dbe.lisp | -*- Mode : Lisp ; Syntax : Common - Lisp ; Package : XLIB ; -*-
;;; ---------------------------------------------------------------------------
;;; Title: Double Buffer Extension
Created : 2014 - 11 - 17
Author : < >
;;; ---------------------------------------------------------------------------
;;;
... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/clx/extensions/dbe.lisp | lisp | Syntax : Common - Lisp ; Package : XLIB ; -*-
---------------------------------------------------------------------------
Title: Double Buffer Extension
---------------------------------------------------------------------------
Permission is granted to any individual or institution to use,
copy, modify, an... | Created : 2014 - 11 - 17
Author : < >
( c ) copyright 2014 by
(in-package :xlib)
dbe-query-version
dbe-get-visual-info
dbe-allocate-back-buffer-name
dbe-deallocate-back-buffer-name
dbe-swap-buffers
dbe-begin-idiom
dbe-end-idiom
dbe-get-back-buffer-attributes
create-back-buff... |
c21cc5c8ebe3d4ea1da7974600d4dc7c0cd6d0509f87a687f10a0ff9a2e25593 | patoline/patoline | patoline.ml |
Copyright Florian Hatat , , ,
Pierre - Etienne Meunier , , 2012 .
This file is part of Patoline .
Patoline 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 th... | null | https://raw.githubusercontent.com/patoline/patoline/3dcd41fdff64895d795d4a78baa27d572b161081/patobuild/patoline.ml | ocaml | Arguments forwarded to the binary.
Configuration of paths, packages, format and driver.
Other configurations.
Forwarding of arguments to the compiler or to the preprocessor.
The data after parsing the command-line arguments.
Cleaning if required.
Compilation of the file. |
Copyright Florian Hatat , , ,
Pierre - Etienne Meunier , , 2012 .
This file is part of Patoline .
Patoline 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 th... |
11946ef61f618b320cf8c25b34ed823d042ab0d0dfb2a07c98bb075d7b11cee5 | returntocorp/semgrep | Run_semgrep.mli | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* # Notes
*
* # # semgrep CLI vs semgrep core
*
* Officially , ` semgrep - core ` is never run on its own . External users run
* ` semgrep ` , which i... | null | https://raw.githubusercontent.com/returntocorp/semgrep/bd5f0a47efc42b16f2772514eb4fb83676a3e3be/src/runner/Run_semgrep.mli | ocaml | * Main entry point to the semgrep engine. This is called from Main.ml
engine functions used in tests or semgrep-core variants
* this is the function used when running semgrep with -e or -f
Same as semgrep_with_raw_results_and_exn_handler but takes rules
and targets already filtered for a specific language.
A... | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* # Notes
*
* # # semgrep CLI vs semgrep core
*
* Officially , ` semgrep - core ` is never run on its own . External users run
* ` semgrep ` , which i... |
f8d04ee56cc1957a890ed4dc0f4c1435c7d6caaae0143ea089396fa3cf08e957 | xvw/planet | bedrock_test.ml | let suite =
[ "Bedrock.Util", Util_test.suite
; "Bedrock.String", String_test.suite
; "Bedrock.Functors", Functors_test.suite
; "Bedrock.Monads", Monads_test.suite
; "Bedrock.Applicatives", Applicatives_test.suite
]
;;
| null | https://raw.githubusercontent.com/xvw/planet/c2a77ea66f61cc76df78b9c2ad06d114795f3053/test/bedrock_test/bedrock_test.ml | ocaml | let suite =
[ "Bedrock.Util", Util_test.suite
; "Bedrock.String", String_test.suite
; "Bedrock.Functors", Functors_test.suite
; "Bedrock.Monads", Monads_test.suite
; "Bedrock.Applicatives", Applicatives_test.suite
]
;;
| |
0c77141860e4d96a82654cb5bace22e413cf96b7eea4682f3a74303581736bd2 | rajasegar/cl-djula-tailwind | tailwind-svg.lisp | (defpackage cl-djula-tailwind.svg
(:use :cl
:cl-djula-tailwind.colors)
(:export :*svg*))
(in-package cl-djula-tailwind.svg)
(defun get-list-key (prefix key)
(ppcre:regex-replace-all "\\\"" (concatenate 'string prefix (write-to-string key)) ""))
(defun get-list-value (prefix key value)
(list (ppcre:regex-r... | null | https://raw.githubusercontent.com/rajasegar/cl-djula-tailwind/6356bc02399cc299801fb6b56a9817d4827a9f95/src/tailwind-svg.lisp | lisp | fill colors
stroke colors | (defpackage cl-djula-tailwind.svg
(:use :cl
:cl-djula-tailwind.colors)
(:export :*svg*))
(in-package cl-djula-tailwind.svg)
(defun get-list-key (prefix key)
(ppcre:regex-replace-all "\\\"" (concatenate 'string prefix (write-to-string key)) ""))
(defun get-list-value (prefix key value)
(list (ppcre:regex-r... |
25f78e85ed0a5a1273cd647716137bc99f666583c0e869889e06110a1f05c0f8 | wireapp/wire-server | DanglingUserKeys.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -Wno - orphans #
-- This file is part of the Wire Server implementation.
--
Copyright ( C ) 2022 Wire Swiss GmbH < >
--
-- This program is free software: you can redistribute it and/or modify it under
th... | null | https://raw.githubusercontent.com/wireapp/wire-server/578854f230c714e01a5027b1e3e7f6b65914b10d/tools/db/inconsistencies/src/DanglingUserKeys.hs | haskell | # LANGUAGE OverloadedStrings #
This file is part of the Wire Server implementation.
This program is free software: you can redistribute it and/or modify it under
later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANT... | # LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -Wno - orphans #
Copyright ( C ) 2022 Wire Swiss GmbH < >
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License , or ( at your option ) any
You should have re... |
3f6e657f61eb7f6328de270aeba57a388cd543c1c146b38245de3491a42839ee | tlaplus/tlapm | m_fmt.mli | Formatting of modules .
Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
open Ctx
open M_t
val pp_print_modunit:
?force:bool -> Expr.Fmt.ctx ->
Format.formatter -> modunit -> Expr.Fmt.ctx
val pp_print_module:
?force:bool ... | null | https://raw.githubusercontent.com/tlaplus/tlapm/158386319f5b6cd299f95385a216ade2b85c9f72/src/module/m_fmt.mli | ocaml | Formatting of modules .
Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation
Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
open Ctx
open M_t
val pp_print_modunit:
?force:bool -> Expr.Fmt.ctx ->
Format.formatter -> modunit -> Expr.Fmt.ctx
val pp_print_module:
?force:bool ... | |
f2a81eaae450286134650f64e6ea60a83ee071a3abe8d81345bc6017572283a2 | LaurentMazare/ocaml-wasmtime | multi.ml | open! Base
module W = Wasmtime.Wrappers
module V = Wasmtime.Val
let multi_wat =
{|
(module
(func $f (import "" "f") (param i32 i64) (result i64 i32))
(func $g (export "g") (param i32 i64) (result i64 i32)
(call $f (local.get 0) (local.get 1))
)
(func $round_trip_many
(export "round_trip_many")
... | null | https://raw.githubusercontent.com/LaurentMazare/ocaml-wasmtime/49d3e35676d79d6573600fa4e9ff7460106341e3/tests/multi.ml | ocaml | open! Base
module W = Wasmtime.Wrappers
module V = Wasmtime.Val
let multi_wat =
{|
(module
(func $f (import "" "f") (param i32 i64) (result i64 i32))
(func $g (export "g") (param i32 i64) (result i64 i32)
(call $f (local.get 0) (local.get 1))
)
(func $round_trip_many
(export "round_trip_many")
... | |
1bf6bb4ea157c51c3df6e6b854968b8acf6375eb330f30d927e413b13e01a2fd | panda-planner-dev/ipc2020-domains | d-02.lisp | (defdomain domain (
(:operator (!navigate ?x ?y ?z)
;; preconditions
(
(type_rover ?x) (type_waypoint ?y) (type_waypoint ?z)
(can_traverse ?x ?y ?z) (available ?x) (at ?x ?y) (visible ?y ?z)
)
;; delete effects
((at ?x ?y))
;; add effects
((at ?x ?z))
)
(:operator (!sample_... | null | https://raw.githubusercontent.com/panda-planner-dev/ipc2020-domains/9adb54325d3df35907adc7115fcc65f0ce5953cc/partial-order/Rover/other/SHOP2/d-02.lisp | lisp | preconditions
delete effects
add effects
preconditions
delete effects
add effects
preconditions
delete effects
add effects
preconditions
delete effects
add effects
preconditions
delete effects
add effects
preconditions
delete effects
add effects
preconditions
delete effects
add effects
preconditio... | (defdomain domain (
(:operator (!navigate ?x ?y ?z)
(
(type_rover ?x) (type_waypoint ?y) (type_waypoint ?z)
(can_traverse ?x ?y ?z) (available ?x) (at ?x ?y) (visible ?y ?z)
)
((at ?x ?y))
((at ?x ?z))
)
(:operator (!sample_soil ?x ?s ?p)
(
(type_rover ?x) (type_store ?s) (ty... |
fdbfb31ad133bfeb0ef5ff85e2fcf781c579d9c5e577eeda0a845f840bd2655f | clojure-interop/java-jdk | BasicFileChooserUI.clj | (ns javax.swing.plaf.basic.BasicFileChooserUI
"Basic L&F implementation of a FileChooser."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.basic BasicFileChooserUI]))
(defn ->basic-file-chooser-ui
"Constructor.
b - `javax.swing.JFileChooser`"
(^BasicFileChooserUI [^javax.swing.... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/basic/BasicFileChooserUI.clj | clojure | (ns javax.swing.plaf.basic.BasicFileChooserUI
"Basic L&F implementation of a FileChooser."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.basic BasicFileChooserUI]))
(defn ->basic-file-chooser-ui
"Constructor.
b - `javax.swing.JFileChooser`"
(^BasicFileChooserUI [^javax.swing.... | |
198f075b2751ccd72b1e215669d4c7cbd6e55e0ae90c2b387934be19b1b419ca | AbstractMachinesLab/caramel | location.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/upstream/ocaml_406/parsing/location.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Lexing
let absname = ref false
This reference should be in Clflags , but it would create an addit... |
a6a32f048588f2e2cb3b9bc0a3666de1905684d1d4e809d5b6acd20f59fcf2bb | nikita-volkov/graph-db | Server.hs | module GraphDB.Server where
import GraphDB.Util.Prelude
import qualified Remotion.Server as R
import qualified GraphDB.Util.DIOVector as V
import qualified GraphDB.Protocol as P
import qualified GraphDB.Action as A
import qualified GraphDB.Graph as G
type Action n s = A.Action n (G.Value s) (G.Index s)
type Command... | null | https://raw.githubusercontent.com/nikita-volkov/graph-db/3e886f6b298d2b2b09eb94c2818a7b648f42cb0a/library/GraphDB/Server.hs | haskell | * Serve
-----------------------
|
A monad transformer for running the server.
Can only be executed inside a 'Session' using 'serve'.
|
Block the calling thread until the server stops (which should never happen). | module GraphDB.Server where
import GraphDB.Util.Prelude
import qualified Remotion.Server as R
import qualified GraphDB.Util.DIOVector as V
import qualified GraphDB.Protocol as P
import qualified GraphDB.Action as A
import qualified GraphDB.Graph as G
type Action n s = A.Action n (G.Value s) (G.Index s)
type Command... |
62dc31e72a1a331996aafc5c60e8da469a9b286dc312579ab3a607a479f7aae5 | onedata/op-worker | effective_value.erl | %%%-------------------------------------------------------------------
@author
( C ) 2019 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%-------------------------------------------------------------------
%%% @doc
%%% This module provides ets cache for... | null | https://raw.githubusercontent.com/onedata/op-worker/4a305af02da4b510c4f5c41502d7500469762c4e/src/tree_processing/effective_value.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
@doc
This module provides ets cache for effective values.
It is based on bounded_cache mechanism (see bounded_cache.erl
in cluster_worker). Cache is cleaned automatically whe... | @author
( C ) 2019 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
reference of file or all file 's references . Three modes are possible :
-module(effective_value).
-author("Michal Wrzeszcz").
-include("modules/datastore/datastore_models.hrl").
-include_lib("c... |
a3b85b69ac542fb3a5db50d24b7a4cef33fda6925c0642434f53530068b7c205 | momohatt/egison-trs | Types.hs | module Types where
import Data.List
import Data.Maybe
data Term
= Var String
| Compound String [Term]
deriving Eq
type Substitution = [(String, Term)]
type Ordering = (String, Int) -> (String, Int) -> Bool
type CriticalPair = (Term, Term)
instance Show Term where
show (Var x) = x
show ... | null | https://raw.githubusercontent.com/momohatt/egison-trs/ff3669f30aa962d82ee9a2641ab43d714c9821a9/src-hs/Types.hs | haskell | module Types where
import Data.List
import Data.Maybe
data Term
= Var String
| Compound String [Term]
deriving Eq
type Substitution = [(String, Term)]
type Ordering = (String, Int) -> (String, Int) -> Bool
type CriticalPair = (Term, Term)
instance Show Term where
show (Var x) = x
show ... | |
7645a8088abe38849ded3ba8e8eeec14e5733081e4544233ec0ff0fb8e5d41c3 | ktakashi/sagittarius-scheme | source.scm | -*- mode : scheme ; coding : utf-8 -*-
;;;
;;; text/markdown/parser/source.scm - Source info of input markdown
;;;
Copyright ( c ) 2022 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are me... | null | https://raw.githubusercontent.com/ktakashi/sagittarius-scheme/f3fe8ea86ec4f760af45d9ac055163b9146677f7/sitelib/text/markdown/parser/source.scm | scheme | coding : utf-8 -*-
text/markdown/parser/source.scm - Source info of input markdown
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
... | Copyright ( c ) 2022 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
#!nounbound
(library (text markdown parser source)
... |
ecb1fe86e2cb93adec95bf9d2a815b5febad335517930899e1d9613589b5d93a | phillord/tawny-pizza | core.clj | The contents of this file are subject to the LGPL License , Version 3.0 .
Copyright ( C ) 2011 , Newcastle University
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation , either versi... | null | https://raw.githubusercontent.com/phillord/tawny-pizza/41c2f10ef27cfdc046c10a2e9c326ece17995eb1/src/pizza/core.clj | clojure | This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHA... | The contents of this file are subject to the LGPL License , Version 3.0 .
Copyright ( C ) 2011 , Newcastle University
the Free Software Foundation , either version 3 of the License , or
GNU Lesser General Public License for more details .
You should have received a copy of the GNU General Public License
... |
5c286fe40ad9308ba42707a7f7fa669cf78b26a020d06f3bce9d7e028774388d | UnixJunkie/consent | mini_mol.ml | (* mini molecule module *)
module A = BatArray
module IntSet = BatSet.Int
module L = MyList
module StringMap = BatMap.String
type t = { name: string;
graph: Node.t array }
let get_name m = m.name
let get_graph m = m.graph
let create name graph =
{ name; graph }
let to_string (m: t): string =
let bu... | null | https://raw.githubusercontent.com/UnixJunkie/consent/f065ee7ba5a1ae014b5c3a28d0985ba5ad1abda5/src/mini_mol.ml | ocaml | mini molecule module
canonicalized count of atom types |
module A = BatArray
module IntSet = BatSet.Int
module L = MyList
module StringMap = BatMap.String
type t = { name: string;
graph: Node.t array }
let get_name m = m.name
let get_graph m = m.graph
let create name graph =
{ name; graph }
let to_string (m: t): string =
let buff = Buffer.create 80 in
... |
f2d3150edff0571b0d730ea15d5d567a88dc8a0a55b7b4e727a73ed89bf3db36 | scverif/scverif | utils.ml | Copyright 2019 - 2021 - Inria , NXP
SPDX - License - Identifier : BSD-3 - Clause - Clear WITH modifications
(* -------------------------------------------------------------------- *)
module Map = BatMap
module Set = BatSet
module Hash = BatHashtbl
module Sint = Set.Make (BatInt)
module Mint = Map.Make (Ba... | null | https://raw.githubusercontent.com/scverif/scverif/307a17b61a2286fb7009d434825f9245caebfddc/src/utils.ml | ocaml | --------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
-----------------------------------... | Copyright 2019 - 2021 - Inria , NXP
SPDX - License - Identifier : BSD-3 - Clause - Clear WITH modifications
module Map = BatMap
module Set = BatSet
module Hash = BatHashtbl
module Sint = Set.Make (BatInt)
module Mint = Map.Make (BatInt)
module Scmp = struct
type t = string
let compare = compare
end
m... |
8a43b522fecfea6c30cf64746bca9e3116616000b34eb86f1760808b996bcc0d | joedevivo/chatterbox | flow_control_handler.erl | -module(flow_control_handler).
-include_lib("chatterbox/include/http2.hrl").
-define(SEND_BYTES, 68).
-behaviour(h2_stream).
-export([
init/3,
on_receive_request_headers/2,
on_send_push_promise/2,
on_receive_request_data/2,
on_request_end_stream/1
]).
-record(st... | null | https://raw.githubusercontent.com/joedevivo/chatterbox/560f2c71a151716512781f0f6196a8a9ff678852/test/flow_control_handler.erl | erlang | -module(flow_control_handler).
-include_lib("chatterbox/include/http2.hrl").
-define(SEND_BYTES, 68).
-behaviour(h2_stream).
-export([
init/3,
on_receive_request_headers/2,
on_send_push_promise/2,
on_receive_request_data/2,
on_request_end_stream/1
]).
-record(st... | |
80753e33b279051df57db2f8dee32e2ed090a12108d3d48bda116218af9e0d62 | cdepillabout/password | Spec.hs | module Main where
import Data.String (fromString)
import Data.Text (pack)
import Test.QuickCheck.Instances()
import Test.Tasty ( defaultMain, testGroup )
import Test.Tasty.QuickCheck ( (===), testProperty )
import Data.Password.Types ( mkPassword, unsafeShowPassword )
main :: IO ()
main = defaultMain $
testGroup "... | null | https://raw.githubusercontent.com/cdepillabout/password/e90b7481af2d63de6b2d9ead3c03ddb798707d22/password-types/test/tasty/Spec.hs | haskell | module Main where
import Data.String (fromString)
import Data.Text (pack)
import Test.QuickCheck.Instances()
import Test.Tasty ( defaultMain, testGroup )
import Test.Tasty.QuickCheck ( (===), testProperty )
import Data.Password.Types ( mkPassword, unsafeShowPassword )
main :: IO ()
main = defaultMain $
testGroup "... | |
d057da1aa63da2040f304af2bffbd6747fab9a432fab4ffe5d3e63e029ae7573 | feliciofilipe/university | Battlefields.hs |
module Battlefields where
-- (0) Imports -----------------------------------------------------------------
import Direction
import Map as M
import Player
import Shot
import State
import Triple
( 1 ) = = = Map ------------------------------------------------------
inMap = map inLine
where
inLine = map ... | null | https://raw.githubusercontent.com/feliciofilipe/university/f2b5a00921c97d48033edbe21488ac829927caae/1st/LI1/clean/Tanks1939/src/Battlefields.hs | haskell | (0) Imports -----------------------------------------------------------------
----------------------------------------------------
(2) Battlefields ------------------------------------------------------------
| Função que cria o estado para um dos níveis
A criação do na ' mapaInicial ' criada na ' ' ... |
module Battlefields where
import Direction
import Map as M
import Player
import Shot
import State
import Triple
inMap = map inLine
where
inLine = map inChar
inChar '+' = Wall Unbreakable
inChar '*' = Wall Breakable
inChar 'x' = Bush
inChar 'w' = Water
inChar ' ' = Empty
inChar 'n' ... |
ba127785f37bc5a5ac6992dba828476ea7bd38fdc92fce55af98fd55f4cb2edb | cyga/real-world-haskell | Logger.hs | file : ch14 / Logger.hs
globToRegex :: String -> Logger String
file : ch14 / Logger.hs
module Logger
(
Logger
, Log
, runLogger
, record
) where
file : ch14 / Logger.hs
type Log = [String]
file : ch14 / Logger.hs
runLogger :: Logger a -> (a, Log)
file : ch14 / Logger.hs
record ::... | null | https://raw.githubusercontent.com/cyga/real-world-haskell/4ed581af5b96c6ef03f20d763b8de26be69d43d9/ch14/Logger.hs | haskell | (>>=) :: Logger a -> (a -> Logger b) -> Logger b | file : ch14 / Logger.hs
globToRegex :: String -> Logger String
file : ch14 / Logger.hs
module Logger
(
Logger
, Log
, runLogger
, record
) where
file : ch14 / Logger.hs
type Log = [String]
file : ch14 / Logger.hs
runLogger :: Logger a -> (a, Log)
file : ch14 / Logger.hs
record ::... |
ea895a05949d93a4658f3df47299e6824f13a4e90b734d74e0e6de49ee218867 | gedge-platform/gedge-platform | amqp_ssl.erl | -module(amqp_ssl).
-include("amqp_client_internal.hrl").
-include_lib("public_key/include/public_key.hrl").
-export([maybe_enhance_ssl_options/1,
add_verify_fun_to_opts/2,
verify_fun/3]).
maybe_enhance_ssl_options(Params = #amqp_params_network{ssl_options = none}) ->
Params;
maybe_enhance_ssl_... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/amqp_client/src/amqp_ssl.erl | erlang | server_name_indication at all. If Host is a DNS host name,
we will specify server_name_indication via code
server_name_indication
certificate chain verification so there's not much sense
in adding verify_fun
NOTE:
The user state is the hostname to verify as configured in
| -module(amqp_ssl).
-include("amqp_client_internal.hrl").
-include_lib("public_key/include/public_key.hrl").
-export([maybe_enhance_ssl_options/1,
add_verify_fun_to_opts/2,
verify_fun/3]).
maybe_enhance_ssl_options(Params = #amqp_params_network{ssl_options = none}) ->
Params;
maybe_enhance_ssl_... |
7b65b67fd88556fcedfb13e6ecee6cda0402772f1d2a9b873718f05286dd3ab0 | fpco/ide-backend | Macros.hs | -----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Build.Macros
Copyright : 2008
--
-- Maintainer :
-- Portability : portable
--
-- Generate cabal_macros.h - CPP macros for package version testing
--
When using CPP you get
--
-- > VERS... | null | https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.18.1.5/Distribution/Simple/Build/Macros.hs | haskell | ---------------------------------------------------------------------------
|
Module : Distribution.Simple.Build.Macros
Maintainer :
Portability : portable
Generate cabal_macros.h - CPP macros for package version testing
> VERSION_<package>
> MIN_VERSION_<package>(A,B,C)
numbers.
--------------... | Copyright : 2008
When using CPP you get
for each /package/ in @build - depends@ , which is true if the version of
/package/ in use is @>= A.B.C@ , using the normal ordering on version
module Distribution.Simple.Build.Macros (
generate,
generatePackageVersionMacros,
) where
import Distribution.... |
59ffa71b7b8b7049815ed5d30ca0f473b1725112037f6985fa025e27614be601 | fragnix/fragnix | Network.HPACK.Huffman.Params.hs | {-# LANGUAGE Haskell2010 #-}
# LINE 1 " Network / HPACK / Huffman / Params.hs " #
module Network.HPACK.Huffman.Params where
idxEos :: Int
idxEos = 256
| null | https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/tests/packages/scotty/Network.HPACK.Huffman.Params.hs | haskell | # LANGUAGE Haskell2010 # | # LINE 1 " Network / HPACK / Huffman / Params.hs " #
module Network.HPACK.Huffman.Params where
idxEos :: Int
idxEos = 256
|
44bf80d1dacfcecef24634eed74f506eb40bad6d72d7fb640ed8eb250fb98f76 | ghollisjr/cl-ana | binary-tree.lisp | cl - ana is a Common Lisp data analysis library .
Copyright 2013 , 2014
;;;;
This file is part of cl - ana .
;;;;
;;;; cl-ana 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 ... | null | https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/binary-tree/binary-tree.lisp | lisp |
cl-ana is free software: you can redistribute it and/or modify it
(at your option) any later version.
cl-ana is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public Lice... | cl - ana is a Common Lisp data analysis library .
Copyright 2013 , 2014
This file is part of cl - ana .
under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
... |
b210e481a18ce9755cd3f12acea705af3560321b7905b3ef84c6fef9172f6a2a | akapav/js | json.lisp | (in-package :cl-js)
(defvar *reading-slot-name* nil)
(defun is-whitespace (char)
(position char #.(concatenate '(vector character)
(list #\space #\tab #.(code-char 11) #\page #\return #\newline
(code-char #xa0) (code-char #x2028) (code-char #x202... | null | https://raw.githubusercontent.com/akapav/js/5ffa5e9d113f2000bbbdccda634f09e272b1983d/json.lisp | lisp | Throw away opening char | (in-package :cl-js)
(defvar *reading-slot-name* nil)
(defun is-whitespace (char)
(position char #.(concatenate '(vector character)
(list #\space #\tab #.(code-char 11) #\page #\return #\newline
(code-char #xa0) (code-char #x2028) (code-char #x202... |
c7409dfd952bdb4c28107ec767a9ecc4ffc17445710a4bf0c22be5bfb0f93b1b | erlang/percept | percept_db.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2007 - 2016 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applica... | null | https://raw.githubusercontent.com/erlang/percept/44ee3ca98bcd37dfab691072e953131107ebec55/src/percept_db.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific la... | Copyright Ericsson AB 2007 - 2016 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(percept_db).
-export([start/0,
stop/0,
insert/1,
select/2,
select/1,
... |
5c42bc126cf7350ba09ffab4e611d2ee07a005980eb30cab1c51c6aa33af645b | gelisam/typelevel-rewrite-rules | Test.hs | # LANGUAGE DataKinds , RankNTypes , TypeFamilies , TypeOperators #
# OPTIONS_GHC -fconstraint - solver - iterations=10
-fplugin TypeLevel . Rewrite
-fplugin - opt = TypeLevel . Rewrite : . Append . RightIdentity
-fplugin - opt = TypeLevel . Rewrite : . Append . Ri... | null | https://raw.githubusercontent.com/gelisam/typelevel-rewrite-rules/9a693dacfedd7cccec753b687020fa40364756f9/test/should-compile/MonoKinds/Test.hs | haskell | # LANGUAGE DataKinds , RankNTypes , TypeFamilies , TypeOperators #
# OPTIONS_GHC -fconstraint - solver - iterations=10
-fplugin TypeLevel . Rewrite
-fplugin - opt = TypeLevel . Rewrite : . Append . RightIdentity
-fplugin - opt = TypeLevel . Rewrite : . Append . Ri... | |
350318ac83bf11cdab0f7534cb11a8bbf6a6ef953788ebb48d59f2d2835931c6 | dgtized/shimmers | ordered.cljs | (ns shimmers.sketches.ordered
(:require
[shimmers.algorithm.lines :as lines]
[shimmers.algorithm.polygon-detection :as poly-detect]
[shimmers.common.svg :as csvg :include-macros true]
[shimmers.common.ui.controls :as ctrl]
[shimmers.common.ui.debug :as debug]
[shimmers.math.core :as sm]
[shimmers... | null | https://raw.githubusercontent.com/dgtized/shimmers/905c2aa3ecb5cb3ff8db9a419c263a705e968ff3/src/shimmers/sketches/ordered.cljs | clojure | FIXME: inset-polygon causes too many errors dwonstream
FIXME: mostly if the shape appears empty it looks like it's from multiple
copies of the origin shape, and not because it didn't split enough, so
maybe a bug in split generation or the cut-polygon routine? | (ns shimmers.sketches.ordered
(:require
[shimmers.algorithm.lines :as lines]
[shimmers.algorithm.polygon-detection :as poly-detect]
[shimmers.common.svg :as csvg :include-macros true]
[shimmers.common.ui.controls :as ctrl]
[shimmers.common.ui.debug :as debug]
[shimmers.math.core :as sm]
[shimmers... |
33986b43fa6ccd7d55b4e1f335542bf1245265e4b00cdf8a667a7845e80d4313 | Helium4Haskell/helium | PreludeInstances1.hs | data X = X Int
instance Eq X where
(X x) == (X y) = x <= y
main = [
X 3 == X 2
, X 3 == X 3
, X 3 == X 4
, X 3 == X 5
]
| null | https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeClasses/PreludeInstances1.hs | haskell | data X = X Int
instance Eq X where
(X x) == (X y) = x <= y
main = [
X 3 == X 2
, X 3 == X 3
, X 3 == X 4
, X 3 == X 5
]
| |
a09eb96344102ef8020a3a322f9b967bd745ba95771b6d46bdd2a225c497309a | phaazon/luminance | Debug.hs | # LANGUAGE CPP #
-----------------------------------------------------------------------------
-- |
Copyright : ( C ) 2015 , 2016
-- License : BSD3
--
Maintainer : < >
-- Stability : experimental
-- Portability : portable
-----------------------------------------------------------------------------... | null | https://raw.githubusercontent.com/phaazon/luminance/88b8f40b8d1ceec1f8fd1a111ccaffec5d9283a8/src/Graphics/Luminance/Core/Debug.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD3
Stability : experimental
Portability : portable
---------------------------------------------------------------------------
------------------------------------------------------------------------------
-------------... | # LANGUAGE CPP #
Copyright : ( C ) 2015 , 2016
Maintainer : < >
module Graphics.Luminance.Core.Debug where
import Control.Monad ( unless )
import Control.Monad.IO.Class ( MonadIO(..) )
#if DEBUG_GL
import Data.Foldable ( traverse_ )
import GHC.Stack ( currentCallStack, renderStack )
#endif
import Graph... |
5a69733d43df12ffae8e7e83e7cd206fe151f37772ad0b1e6108e8e8bcc7093f | ygmpkk/house | ForeignPtr.hs | module ForeignPtr (module Foreign.ForeignPtr) where
import Foreign.ForeignPtr
| null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/haskell98/ForeignPtr.hs | haskell | module ForeignPtr (module Foreign.ForeignPtr) where
import Foreign.ForeignPtr
| |
b7b70a1a4deaa3776162379a087d9aa79e293b71b013318603523b353e1c92b9 | michalkonecny/aern2 | aern2-generate-netlog.hs | # LANGUAGE TemplateHaskell #
|
Module : Main ( file aern2 - real - benchOp )
Description : Generate Elm bindings for NetLog JSON
Copyright : ( c ) : :
Stability : experimental
Portability : portable
Generate Elm bindings for NetLog JSON
... | null | https://raw.githubusercontent.com/michalkonecny/aern2/7ab41113ca8f73dca70d887d190ddab3b43ef084/aern2-net/tools/aern2-generate-netlog.hs | haskell | import Text.Printf | # LANGUAGE TemplateHaskell #
|
Module : Main ( file aern2 - real - benchOp )
Description : Generate Elm bindings for NetLog JSON
Copyright : ( c ) : :
Stability : experimental
Portability : portable
Generate Elm bindings for NetLog JSON
... |
8f8996a9baa07951b1e7c99d25ff7f3eff8eafeb46fcdff8ad42f8b3f415f63d | EligiusSantori/L2Apf | reply_join_party.scm | (module system racket/base
(require "../../packet.scm")
(provide game-client-packet/reply-join-party)
(define (game-client-packet/reply-join-party accept?)
(let ((s (open-output-bytes)))
(begin
(write-byte #x2a s)
(write-int32 (if accept? 1 0) #f s)
(get-output-bytes s)
)
)
)
) | null | https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/client/reply_join_party.scm | scheme | (module system racket/base
(require "../../packet.scm")
(provide game-client-packet/reply-join-party)
(define (game-client-packet/reply-join-party accept?)
(let ((s (open-output-bytes)))
(begin
(write-byte #x2a s)
(write-int32 (if accept? 1 0) #f s)
(get-output-bytes s)
)
)
)
) | |
0095c1b993a6ff5eaf13c25a9aa7f8ddcbcf6cedfc7f0e7d332c8a1678539b3c | shaunlebron/parinfer | state.cljs | (ns parinfer-site.state
"State of the editors on our page.")
;; map of editor key -> editor state
(defonce state
(atom {}))
(def empty-editor-state
{:text "" ;; text of the editor
:mode :indent-mode ;; editor mode (:indent-mode, :paren-mode)
Parinfer input options
Parinfer result
the Code... | null | https://raw.githubusercontent.com/shaunlebron/parinfer/6705c35adbabc90cc0af3bb4ddf3a60c390f93df/site/src/parinfer_site/state.cljs | clojure | map of editor key -> editor state
text of the editor
editor mode (:indent-mode, :paren-mode) | (ns parinfer-site.state
"State of the editors on our page.")
(defonce state
(atom {}))
(def empty-editor-state
Parinfer input options
Parinfer result
the CodeMirror instance
the ScrollMonitor instance
|
7c8dd362b72eb4e78c99e709602e2a2492dbe03204e0d2099b0d7e147439a84f | RichiH/git-annex | Fsck.hs | git fsck interface
-
- Copyright 2013 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2013 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
{-# LANGUAGE BangPatterns #-}
module Git.Fsck (
FsckResults(..),
MissingObjects,
findBroken,
foundBroken,
... | null | https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Git/Fsck.hs | haskell | # LANGUAGE BangPatterns #
If all fsck output was duplicateEntries warnings,
the repository is not broken, it just has some unusual
tree objects in it. So ignore nonzero exit status.
Finds objects that are missing from the git repsitory, or are corrupt.
-
- This does not use git cat-file --batch, because catting a... | git fsck interface
-
- Copyright 2013 < >
-
- Licensed under the GNU GPL version 3 or higher .
-
- Copyright 2013 Joey Hess <>
-
- Licensed under the GNU GPL version 3 or higher.
-}
module Git.Fsck (
FsckResults(..),
MissingObjects,
findBroken,
foundBroken,
findMissing,
isMissing,
know... |
4599e3d3a2c2514bfb47fce94c2a09ea852fc83a1b0e949017e39f97f09e826f | ghcjs/jsaddle-dom | SVGCursorElement.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGCursorElement
(getX, getY, SVGCursorElement(..), gTypeSVGCursorElement) where
import Prelude ((.), (==), (>>=), ... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGCursorElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SVGCursorElement
(getX, getY, SVGCursorElement(..), gTypeSVGCursorElement) where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show... |
2109c6d0f3e1fc761615bf01d00f1095bcaeff79a2592746eaa4a92b6e1e00a4 | raehik/binrep | FileTable.hs | module Binrep.Example.FileTable where
import Binrep
import Refined hiding ( Weaken )
import Refined.Unsafe
import Binrep.Type.Common ( Endianness(..) )
import Binrep.Type.Int
import Binrep.Type.LenPfx
import FlatParse.Basic qualified as FP
import Data.ByteString qualified as B
import Strongweak
import Strongweak.Gener... | null | https://raw.githubusercontent.com/raehik/binrep/d7b7b0c7c3e0bebbba49701db530b98ac0b154c5/src/Binrep/Example/FileTable.hs | haskell | import Data.Map ( Map )
the maximum offset. Validating that requires quite a lot of work: we have to
do much of the layouting work, which will be repeated for serializing. This
is a downside of phase separation, it crops up every now and then.
implemented with similar code to strengthening.
<- offset!! | module Binrep.Example.FileTable where
import Binrep
import Refined hiding ( Weaken )
import Refined.Unsafe
import Binrep.Type.Common ( Endianness(..) )
import Binrep.Type.Int
import Binrep.Type.LenPfx
import FlatParse.Basic qualified as FP
import Data.ByteString qualified as B
import Strongweak
import Strongweak.Gener... |
234f44918c96ec223dabab049c5aee586accacc295db0887d381e6f89b56df69 | ucsd-progsys/nate | frx_fillbox.mli | (***********************************************************************)
(* *)
MLTk , Tcl / Tk interface of Objective Caml
(* *)
, , and ... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/otherlibs/labltk/frx/frx_fillbox.mli | ocaml | *********************************************************************
described in file LICENSE found in the... | MLTk , Tcl / Tk interface of Objective Caml
, , and
projet Cristal , INRIA Rocquencourt
, Kyoto University RIMS
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique and... |
dee8a6cb3791ea21d250578bda68a86f98074dc449504f3f46e0bd10bc32d799 | rems-project/lem | big_int_impl.mli | module BI :
sig
type big_int = Big_int.big_int
val zero_big_int : big_int
val unit_big_int : big_int
val minus_big_int : big_int -> big_int
val abs_big_int : big_int -> big_int
val add_big_int : big_int -> big_int -> big_int
val succ_big_int : big_int -> big_int
val add_int_big_int : i... | null | https://raw.githubusercontent.com/rems-project/lem/a839114e468119d9ac0868d7dc53eae7f3cc3a6c/ocaml-lib/num_impl_num/big_int_impl.mli | ocaml | module BI :
sig
type big_int = Big_int.big_int
val zero_big_int : big_int
val unit_big_int : big_int
val minus_big_int : big_int -> big_int
val abs_big_int : big_int -> big_int
val add_big_int : big_int -> big_int -> big_int
val succ_big_int : big_int -> big_int
val add_int_big_int : i... | |
e60c329389d85fdcd59a9ddf1c07434bdd5762a418d27616f01c7c5358b31a18 | karen/haskell-book | ListyInstances.hs | module ListyInstances where
import Data.Monoid
import Listy
instance Monoid (Listy a) where
mempty = Listy []
mappend (Listy l) (Listy l') = Listy $ mappend l l'
| null | https://raw.githubusercontent.com/karen/haskell-book/90bb80ec3203fde68fc7fda1662d9fc8b509d179/src/ch15/ListyInstances.hs | haskell | module ListyInstances where
import Data.Monoid
import Listy
instance Monoid (Listy a) where
mempty = Listy []
mappend (Listy l) (Listy l') = Listy $ mappend l l'
| |
a17f8e950f2c025e85ea14caad345dc5bc6eb5ffed91d712cf2d4eea2dd7e451 | nikomatsakis/a-mir-formality | wf--references.rkt | #lang racket
(require redex/reduction-semantics
"../../util.rkt"
"../../ty/user-ty.rkt"
"../grammar.rkt"
"../prove.rkt"
"../libcore.rkt"
)
(module+ test
& ' a T is WF if T : ' a ...
traced '()
(test-equal
(term (rust:can-prove-goal-in-pro... | null | https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/71be4d5c4bd5e91d326277eaedd19a7abe3ac76a/racket-src/rust/test/wf--references.rkt | racket | ...and if `T: 'b` and `'b: 'a`...
...but not if `T` and `'a` have no relationship.
If we know that `(T,): 'a`, we know that `T: 'a` | #lang racket
(require redex/reduction-semantics
"../../util.rkt"
"../../ty/user-ty.rkt"
"../grammar.rkt"
"../prove.rkt"
"../libcore.rkt"
)
(module+ test
& ' a T is WF if T : ' a ...
traced '()
(test-equal
(term (rust:can-prove-goal-in-pro... |
615679e8bc04b6c5a235f2458945649a6789ff5d2e8e4ffb948f32ff7981e415 | ekmett/haskell | Class.hs | {-# language DefaultSignatures #-}
# language TypeOperators #
# language EmptyCase #
# language FlexibleInstances #
{-# language FlexibleContexts #-}
# language BangPatterns #
# language RankNTypes #
-- |
Copyright : ( c ) 2018
License : BSD-2 - Clause OR Apache-2.0
Maintainer : < >
-- Stability : ... | null | https://raw.githubusercontent.com/ekmett/haskell/37ad048531f5a3a13c6dfbf4772ee4325f0e4458/free-sequences/src/Unification/Class.hs | haskell | # language DefaultSignatures #
# language FlexibleContexts #
|
Stability : experimental
Portability: non-portable
import Aligned.Freer | # language TypeOperators #
# language EmptyCase #
# language FlexibleInstances #
# language BangPatterns #
# language RankNTypes #
Copyright : ( c ) 2018
License : BSD-2 - Clause OR Apache-2.0
Maintainer : < >
module Unification.Class
( Unified(..)
, GUnified
) where
import Control.Applicat... |
f61230f74e33132d2fdc24de75ff043543bfc6c2a3da569013fa79919aa331c4 | stevenvar/OMicroB | opcode.mli | type t =
| ACC0
| ACC1
| ACC2
| ACC3
| ACC4
| ACC5
| ACC6
| ACC7
| ACC
| PUSH
| PUSHACC1
| PUSHACC2
| PUSHACC3
| PUSHACC4
| PUSHACC5
| PUSHACC6
| PUSHACC7
| PUSHACC
| POP
| ASSIGN
| ENVACC1
| ENVACC2
| ENVACC3
| ENVACC4
| ENVACC
| PUSHENVACC1
| PUSHENVACC2
| PUSHENVACC3
| PUSHENVACC4
| PUSHENVACC
| PUSH_RETADDR_1B
| PU... | null | https://raw.githubusercontent.com/stevenvar/OMicroB/e4324d0736ac677b3086741dfdefb0e46775642b/src/bc2c/opcode.mli | ocaml | type t =
| ACC0
| ACC1
| ACC2
| ACC3
| ACC4
| ACC5
| ACC6
| ACC7
| ACC
| PUSH
| PUSHACC1
| PUSHACC2
| PUSHACC3
| PUSHACC4
| PUSHACC5
| PUSHACC6
| PUSHACC7
| PUSHACC
| POP
| ASSIGN
| ENVACC1
| ENVACC2
| ENVACC3
| ENVACC4
| ENVACC
| PUSHENVACC1
| PUSHENVACC2
| PUSHENVACC3
| PUSHENVACC4
| PUSHENVACC
| PUSH_RETADDR_1B
| PU... | |
2708e63991a20deb17da6078b6714f78180d9d74065a5e9c2aa740bd365890c2 | cedlemo/OCaml-GI-ctypes-bindings-generator | Date_weekday.mli | open Ctypes
type t = Bad_weekday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val t_view: t typ
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/GLib/Date_weekday.mli | ocaml | open Ctypes
type t = Bad_weekday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday
val of_value:
Unsigned.uint32 -> t
val to_value:
t -> Unsigned.uint32
val t_view: t typ
| |
89c9e18c4f3a708e7ea6eaa12d0c8bfdc18c1e3d4707744609f99d49b69851b0 | audreyt/openafp | EOC.hs |
module OpenAFP.Records.AFP.EOC where
import OpenAFP.Types
import OpenAFP.Internals
data EOC = EOC {
eoc_Type :: !N3
,eoc_ :: !N3
,eoc :: !NStr
} deriving (Show, Typeable)
| null | https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Records/AFP/EOC.hs | haskell |
module OpenAFP.Records.AFP.EOC where
import OpenAFP.Types
import OpenAFP.Internals
data EOC = EOC {
eoc_Type :: !N3
,eoc_ :: !N3
,eoc :: !NStr
} deriving (Show, Typeable)
| |
1c9ea3aca954fd7a74763a67a5481c1c0abdcb2bd220a78fbfbe708a4b3039e7 | acgollapalli/dataworks | kafka.clj | (ns dataworks.utils.kafka
(:require
[clojure.core.async :refer [go]]
[mount.core :refer [defstate]]
[tick.alpha.api :as tick])
(:import
[org.apache.kafka.clients.admin
AdminClient NewTopic]
org.apache.kafka.clients.consumer.KafkaConsumer
[org.apache.kafka.clients.producer
KafkaProducer Pro... | null | https://raw.githubusercontent.com/acgollapalli/dataworks/df8b48d66b762d1d5566306debe89081675913bd/src/dataworks/utils/kafka.clj | clojure | TODO Document this.
You need to call this in a while-loop or go-loop.
go-loop is preferable.
Actually, end-users never call this at all, they simply
use the streams interface.
that's what we do! | (ns dataworks.utils.kafka
(:require
[clojure.core.async :refer [go]]
[mount.core :refer [defstate]]
[tick.alpha.api :as tick])
(:import
[org.apache.kafka.clients.admin
AdminClient NewTopic]
org.apache.kafka.clients.consumer.KafkaConsumer
[org.apache.kafka.clients.producer
KafkaProducer Pro... |
c2ca43c86ed5eb8cd55f539be68eec2ea8d8fb921c76ab863b3bd001d73e2e48 | nasser/magic | genclass.clj | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; ... | null | https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/src/stdlib/clojure/genclass.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) . All rights reserved .
DM : This is one of the few bootstrap * .clj files where I did not even try to do a line - by - line
modification of the JVM version . Too many differences .
I put more of the support into C # rather than in Clojure , just so I could bang out the code... |
c8703d09a6560bc6bc65acdc6a4e8ce505c66cd473491dab3f0fa0bdf8f8071a | epiccastle/bbssh | test_identity_repository.clj | (ns bb-test.test-identity-repository
(:require [pod.epiccastle.bbssh.agent :as agent]
[pod.epiccastle.bbssh.session :as session]
[pod.epiccastle.bbssh.channel-exec :as channel-exec]
[pod.epiccastle.bbssh.input-stream :as input-stream]
[pod.epiccastle.bbssh.output-stream... | null | https://raw.githubusercontent.com/epiccastle/bbssh/89dd42e7a73488dee042f622a92d5ded22ffa9b7/test/bb_test/test_identity_repository.clj | clojure | decrypt the key | (ns bb-test.test-identity-repository
(:require [pod.epiccastle.bbssh.agent :as agent]
[pod.epiccastle.bbssh.session :as session]
[pod.epiccastle.bbssh.channel-exec :as channel-exec]
[pod.epiccastle.bbssh.input-stream :as input-stream]
[pod.epiccastle.bbssh.output-stream... |
80a88afd1416baa1667e2050e1956b9347365d75a8ba334c67e86f34d603c834 | fmw/vix | document.cljs | (ns vix.test.document
(:use [vix.document :only [request]]))
(defn run []
(comment (assert (= (add-some-numbers 2 2) 4))
(assert (= (add-some-numbers 1 2 3) 6))
(assert (= (add-some-numbers 4 5 6) 15))))
| null | https://raw.githubusercontent.com/fmw/vix/112a45d6e376f099ad0a3f5bff9cc07511f2ff5e/test/cljs/vix/test/document.cljs | clojure | (ns vix.test.document
(:use [vix.document :only [request]]))
(defn run []
(comment (assert (= (add-some-numbers 2 2) 4))
(assert (= (add-some-numbers 1 2 3) 6))
(assert (= (add-some-numbers 4 5 6) 15))))
| |
583b40d2c890cd4aa8a325694270834d6830ade50147bce42ff4755a674f3466 | clash-lang/clash-compiler | T2325.hs | {-# LANGUAGE OverloadedStrings #-}
module T2325 where
import qualified Prelude as P
import Clash.Explicit.Prelude
import Clash.Driver
import Clash.Driver.Manifest
import GHC.Stack
import System.Environment
import System.FilePath
import qualified Control.Exception as Exception
import qualified Data.List as L
type T... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/b4b326e4a1b1ba739bf430540fe2f8bc7238e144/tests/shouldwork/Issues/T2325.hs | haskell | # LANGUAGE OverloadedStrings #
# ANN f (defSyn "f") #
# ANN g (defSyn "g") #
# ANN h (defSyn "h") #
# ANN j (defSyn "j") # |
module T2325 where
import qualified Prelude as P
import Clash.Explicit.Prelude
import Clash.Driver
import Clash.Driver.Manifest
import GHC.Stack
import System.Environment
import System.FilePath
import qualified Control.Exception as Exception
import qualified Data.List as L
type T = Unsigned 8 -> Unsigned 8
f :: T... |
8a0ddbf39e7ec0b21678af4e5953fcd0891af60470c71e2a962aa4f4dff02ea4 | HugoPeters1024/hs-sleuth | CaseFolding.hs | -- This script processes the following source file:
--
module CaseFolding
(
CaseFolding(..)
, Fold(..)
, parseCF
, mapCF
) where
import Arsec
data Fold = Fold {
code :: Char
, status :: Char
, mapping :: [Char]
, name :: String
} deriving (Eq, Ord, Show)
data Cas... | null | https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/91aa2806ea71b7a26add3801383b3133200971a5/test-project/text-nofusion/scripts/CaseFolding.hs | haskell | This script processes the following source file:
|
module CaseFolding
(
CaseFolding(..)
, Fold(..)
, parseCF
, mapCF
) where
import Arsec
data Fold = Fold {
code :: Char
, status :: Char
, mapping :: [Char]
, name :: String
} deriving (Eq, Ord, Show)
data CaseFolding = CF { cfComments :: [Comment], cfFolding :: [... |
1004d59560d97389e797413f74d6183fa12559e7f8de4b8d027483a05d463449 | emina/rosette | tail.rkt | #lang rosette
(define-symbolic b boolean?)
(define (tri n acc)
(cond
[(zero? n) (1)]
[else (tri (sub1 n) (+ acc n))]))
(when b (add1 (tri 10 0)))
| null | https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/test/trace/code/tail.rkt | racket | #lang rosette
(define-symbolic b boolean?)
(define (tri n acc)
(cond
[(zero? n) (1)]
[else (tri (sub1 n) (+ acc n))]))
(when b (add1 (tri 10 0)))
| |
70a471a518feee6bf425a45518f3802743125b7c9067b9cad860c0ed1ec3d962 | monadicsystems/okapi | Pattern12.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE ViewPatterns #
module Okapi.Pattern where
import Control.Monad
import Control.Monad.Combinators
import Control.Monad.IO.Class
import qualified Data.Attoparsec.Text as Atto
import Data.Eithe... | null | https://raw.githubusercontent.com/monadicsystems/okapi/8a0c17485b3778d819d0cf38b63a2e20406f466a/experimental/Pattern12.hs | haskell | # LANGUAGE OverloadedStrings #
$setup
>>> :set -XFlexibleContexts
>>> :set -XOverloadedStrings
>>> import Okapi.Response
>>> import Okapi.Test
BELOW IS FOR TESTING
| Test example patterns in Okapi.Pattern module
>>> assertResponse is200 result1
True
True
>>> assertResponse is200 result3
True
True
True
>... | # LANGUAGE FlexibleContexts #
# LANGUAGE LambdaCase #
# LANGUAGE PatternSynonyms #
# LANGUAGE ViewPatterns #
module Okapi.Pattern where
import Control.Monad
import Control.Monad.Combinators
import Control.Monad.IO.Class
import qualified Data.Attoparsec.Text as Atto
import Data.Either.Extra
import Data.Map
import qual... |
7bb56cb1542b5a1f2f3bcefe87bea71df8cf35fb0048f11952249ef2f347b7ba | AshleyYakeley/Truth | Namespace.hs | module Test.Namespace
( testNamespace
) where
import Shapes
import Test.RunScript
testNamespace :: TestTree
testNamespace =
runScriptTestTree $
tDecls
[ "using Function"
, "using Action"
, "using Entity"
, "using Showable"
, "pass = return ()"
, "test = ... | null | https://raw.githubusercontent.com/AshleyYakeley/Truth/f567d19253bb471cbd8c39095fb414229b27706a/Pinafore/pinafore-language/test/Test/Namespace.hs | haskell | module Test.Namespace
( testNamespace
) where
import Shapes
import Test.RunScript
testNamespace :: TestTree
testNamespace =
runScriptTestTree $
tDecls
[ "using Function"
, "using Action"
, "using Entity"
, "using Showable"
, "pass = return ()"
, "test = ... | |
48659d6e7340cccc5ee458a7c149e3e75fb1d72e972d9fcb3446f24a140c40ae | RefactoringTools/HaRe | Errors.hs | module Errors (totallyUnknownEntity) where
import Errors (Foo)
import Prelude (foobar)
import Bubba (foobar)
infixr 3 %%
data P x = Foo (x,x)
data Q x = Bar (x,x)
class BarBar x where
a :: x -> x
data C = P Q
data P x = PP x
data BarBar x = BB x
instance BarBar P where
a x = x
c = B.f
repeaated type... | null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/tests/Errors.hs | haskell | recursive type synonym
^ Cannot derive instances for types with polymorphic or qualified components
Variable "x" in constraint is not locally bound
Illegal strictess annotation for newtype constructor
Repeated definition for constructor function "Bar"
Repeated field name "a" for constructor "Foo" | module Errors (totallyUnknownEntity) where
import Errors (Foo)
import Prelude (foobar)
import Bubba (foobar)
infixr 3 %%
data P x = Foo (x,x)
data Q x = Bar (x,x)
class BarBar x where
a :: x -> x
data C = P Q
data P x = PP x
data BarBar x = BB x
instance BarBar P where
a x = x
c = B.f
repeaated type... |
9f134bf18e22fbda22f3ce4c3b4e754eea5cbdd7dfc6b356673056291f869534 | geisha-lang/Geisha | Env.hs | module Geisha.TypeInfer.Env where
import qualified Data.HashMap.Strict as M
import Geisha.AST
import Geisha.AST.PrettyPrint
newtype TypeEnv = TypeEnv (M.HashMap Name Scheme)
deriving (Eq)
instance Show TypeEnv where
show (TypeEnv m) = unlines $ map (\(n, t) -> n ++ " :: " ++ show t) $ M... | null | https://raw.githubusercontent.com/geisha-lang/Geisha/14b875700774132028e1e618bfbd20bef8422124/src/Geisha/TypeInfer/Env.hs | haskell | module Geisha.TypeInfer.Env where
import qualified Data.HashMap.Strict as M
import Geisha.AST
import Geisha.AST.PrettyPrint
newtype TypeEnv = TypeEnv (M.HashMap Name Scheme)
deriving (Eq)
instance Show TypeEnv where
show (TypeEnv m) = unlines $ map (\(n, t) -> n ++ " :: " ++ show t) $ M... | |
7a0fe1673dc4d5b97c7c04b3d6b711d9f04cf9cc19a9fc1c90eca9f60345c494 | rbuchmann/samak | transit.cljc | (ns metosin.transit.dates
"Transit readers and writers for JodaTime and goog.date.
Supports two types:
- DateTime (org.joda.time.DateTime, goog.date.UtcDateTime)
- LocalDate (org.joda.time.LocalDate, goog.date.Date)
Represents DateTimes in RFC 3339 format: yyyy-mm-ddTHH:MM:SS.sssZ.
RFC 3339 format is an spe... | null | https://raw.githubusercontent.com/rbuchmann/samak/ab98d1a180ee02c6cd784962b3c03e473a6d481b/src/metosin/transit/dates/transit.cljc | clojure | (ns metosin.transit.dates
"Transit readers and writers for JodaTime and goog.date.
Supports two types:
- DateTime (org.joda.time.DateTime, goog.date.UtcDateTime)
- LocalDate (org.joda.time.LocalDate, goog.date.Date)
Represents DateTimes in RFC 3339 format: yyyy-mm-ddTHH:MM:SS.sssZ.
RFC 3339 format is an spe... | |
f0d39a1563ca7a5d825acc4560bd4ce77e678a8b0375834145dc6f13d22cb2dd | jimpil/clambda | redux.clj | (ns clambda.redux
(:import (java.util.stream Stream StreamSupport)
(java.util Spliterator)))
short - circuiting Spliterator
"Wraps a Spliterator such that it can (optionally) terminate early
(i.e. when <done?>, a fn of no args, returns true)."
[^Spliterator internal done?]
(reify Spliterator
... | null | https://raw.githubusercontent.com/jimpil/clambda/176831945e12e0736cee00b53d2b9a6a1b8c6964/src/clambda/redux.clj | clojure | ;; short-circuiting Stream
fast split
this is the slowest path :(
slow split | (ns clambda.redux
(:import (java.util.stream Stream StreamSupport)
(java.util Spliterator)))
short - circuiting Spliterator
"Wraps a Spliterator such that it can (optionally) terminate early
(i.e. when <done?>, a fn of no args, returns true)."
[^Spliterator internal done?]
(reify Spliterator
... |
7e16434b73b146a1e9cc4857b26e811fbf4a41e8b3410d48142ac77e3780925a | mauricioszabo/repl-tooling | connection.cljs | (ns repl-tooling.repl-client.connection
(:require [clojure.string :as str]
[clojure.reader :as edn]
[rewrite-clj.parser :as parser]
[promesa.core :as p]
["net" :as net]))
(defn- emit-line! [control on-line on-fragment buffer frags last-line]
(js/clearTimeout (:timeou... | null | https://raw.githubusercontent.com/mauricioszabo/repl-tooling/a340895ebaf79791decb8354903958fd186b586c/src/repl_tooling/repl_client/connection.cljs | clojure | (prn :SPLIT (split-with (complement has-newline?) new-state)) | (ns repl-tooling.repl-client.connection
(:require [clojure.string :as str]
[clojure.reader :as edn]
[rewrite-clj.parser :as parser]
[promesa.core :as p]
["net" :as net]))
(defn- emit-line! [control on-line on-fragment buffer frags last-line]
(js/clearTimeout (:timeou... |
e91b9275859da60cdfab4801c5dd0491391590a1744ddcc3fbf8976ae314f423 | re-ops/re-core | octo.clj | (ns re-mote.repl.octo
"Basic octo (git backup tool)"
(:require
[clojure.core.strint :refer (<<)]
[re-mote.repl.base :refer (refer-base)]
[re-mote.repl.publish :refer (notify)]
[pallet.stevedore :refer (script)]))
(refer-base)
(defn octo-script [f]
(script
(chain-and
("/usr/bin/octo" "sync" ~f... | null | https://raw.githubusercontent.com/re-ops/re-core/c34d7a5f5d6734b9c042a95e0aba033840c3cdeb/src/re_mote/repl/octo.clj | clojure | (ns re-mote.repl.octo
"Basic octo (git backup tool)"
(:require
[clojure.core.strint :refer (<<)]
[re-mote.repl.base :refer (refer-base)]
[re-mote.repl.publish :refer (notify)]
[pallet.stevedore :refer (script)]))
(refer-base)
(defn octo-script [f]
(script
(chain-and
("/usr/bin/octo" "sync" ~f... | |
6b2385e74ab928caf2da2947f3962b9cdfe25af50bf2dfcfa9407932c8f192b8 | igorhvr/bedlam | fmt-c-chicken.scm | ;;;; fmt-c-chicken.scm -- fmt-c for Chicken
;;
Copyright ( c ) 2007 . All rights reserved .
;; BSD-style license:
(require-extension fmt)
(module
fmt-c
(fmt-in-macro? fmt-expression? fmt-return? fmt-default-type
fmt-newline-before-brace? fmt-braceless-bodies?
fmt-indent-space fmt-switch-indent-space fmt-... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/fmt/fmt-0.8.1/fmt-c-chicken.scm | scheme | fmt-c-chicken.scm -- fmt-c for Chicken
BSD-style license:
++c --c ; |c\|=| | Copyright ( c ) 2007 . All rights reserved .
(require-extension fmt)
(module
fmt-c
(fmt-in-macro? fmt-expression? fmt-return? fmt-default-type
fmt-newline-before-brace? fmt-braceless-bodies?
fmt-indent-space fmt-switch-indent-space fmt-op fmt-gen
c-in-expr c-in-stmt c-in-test
c-paren c-maybe-paren c-t... |
bf5da85c9bf2225b81f9884b38f2eae643ecaa0c1fd9a8644e8333d7455719f5 | stylewarning/quickutil | app.lisp | (in-package :cl-user)
(defpackage quickutil-server.app
(:use :cl)
(:import-from :lack.component
:call)
(:import-from :ppcre
:scan)
(:import-from :ningle
:<app>))
(in-package :quickutil-server.app)
(cl-syntax:use-syntax :annot)
@export
(defvar *web* (make-instanc... | null | https://raw.githubusercontent.com/stylewarning/quickutil/d0e368ad68c6f19f83bb00b2de6044abf302ab21/quickutil-server/src/app.lisp | lisp | (in-package :cl-user)
(defpackage quickutil-server.app
(:use :cl)
(:import-from :lack.component
:call)
(:import-from :ppcre
:scan)
(:import-from :ningle
:<app>))
(in-package :quickutil-server.app)
(cl-syntax:use-syntax :annot)
@export
(defvar *web* (make-instanc... | |
0e79aa4360ba255cfe8fe109bf0b3df3af07387746c6220295f31ea8b414ed45 | sasha-glv/boards-io | components.cljs | (ns boards-io.components
(:require [bidi.bidi :as b]
[boards-io.handlers :as h]
[boards-io.router :as router]
[boards-io.modals :as m]
[boards-io.drawcanvas :as cnv]
[om.dom :as dom]
[goog.events :as events]
[om.next :as om :refer-mac... | null | https://raw.githubusercontent.com/sasha-glv/boards-io/bbe97e68cfa9a25d7ef0e27d1997f941a33fef4b/src/cljs/boards_io/components.cljs | clojure | e (.-nativeEvent e)
_ (aset (.-dataTransfer e) "effectAllowed" "move") | (ns boards-io.components
(:require [bidi.bidi :as b]
[boards-io.handlers :as h]
[boards-io.router :as router]
[boards-io.modals :as m]
[boards-io.drawcanvas :as cnv]
[om.dom :as dom]
[goog.events :as events]
[om.next :as om :refer-mac... |
59a280170c0c02ef805426c372b07b09d6f58f4e325db8b341710259c21b70b9 | input-output-hk/cardano-sl | Addresses.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Cardano.Wallet.API.V1.Handlers.Addresses where
import Universum
import Servant
import Cardano.Wallet.WalletLayer (PassiveWalletLayer)
import qualified Cardano.Wallet.WalletLayer as WalletLayer
import ... | null | https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/wallet/src/Cardano/Wallet/API/V1/Handlers/Addresses.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE TypeOperators #
| Validates an input 'Text' following these simple principles:
known to this wallet. |
module Cardano.Wallet.API.V1.Handlers.Addresses where
import Universum
import Servant
import Cardano.Wallet.WalletLayer (PassiveWalletLayer)
import qualified Cardano.Wallet.WalletLayer as WalletLayer
import Cardano.Wallet.API.Request
import Cardano.Wallet.API.Respo... |
2a29cbda981a12ad1dbca57adfc697b83bbe904c0b732d05edb34a1d89eeae87 | janestreet/merlin-jst | clflags.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/janestreet/merlin-jst/9c3b60c98d80b56af18ea95c27a0902f0244659a/upstream/ocaml_414/utils/clflags.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 2005 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
module Int_arg_helper : sig
type parsed
val parse : string -> string -> parsed ref -> unit
typ... |
193fe9ecf4d4e9b5f100838e4e30485d40eefcb5c9098d783ccd93a0b15860c1 | robertluo/waterfall | waterfall_test.clj | (ns robertluo.waterfall-test
#_{:clj-kondo/ignore [:unused-referred-var]}
(:require [clojure.test :refer [use-fixtures]]
[expectations.clojure.test :refer [defexpect expect more]]
[manifold.stream :as ms]
[malli.dev]
[robertluo.waterfall :as sut]
[robertlu... | null | https://raw.githubusercontent.com/robertluo/waterfall/5481ce89b54e1d334bed1793a4055357803db80b/test/robertluo/waterfall_test.clj | clojure | This can not pass on github for unknown reason :-( | (ns robertluo.waterfall-test
#_{:clj-kondo/ignore [:unused-referred-var]}
(:require [clojure.test :refer [use-fixtures]]
[expectations.clojure.test :refer [defexpect expect more]]
[manifold.stream :as ms]
[malli.dev]
[robertluo.waterfall :as sut]
[robertlu... |
79e0d2904c02c511542c121b616a596237d9354ef9a6ec882fc3d387b6abfdfa | nuvla/api-server | utils.clj | (ns sixsq.nuvla.server.middleware.cimi-params.utils
"Utilities for transforming the raw CIMI parameter values into to validated,
formatted values for further processing."
(:require
[clojure.string :as str]
[instaparse.core :as insta]
[sixsq.nuvla.server.util.response :as r]))
(defn as-vector
"Ensu... | null | https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/middleware/cimi_params/utils.clj | clojure | (ns sixsq.nuvla.server.middleware.cimi-params.utils
"Utilities for transforming the raw CIMI parameter values into to validated,
formatted values for further processing."
(:require
[clojure.string :as str]
[instaparse.core :as insta]
[sixsq.nuvla.server.util.response :as r]))
(defn as-vector
"Ensu... | |
0dc0f8de9457aef9940f0793b3b2de8bef0b92a00820999111928ec36060121e | bobzhang/ocaml-book | ast.mli | type expr =
Number of float
| Variable of string
| Binary of char * expr * expr
| Call of string * expr array
type proto = Prototype of string * string array
type func = Function of proto * expr
| null | https://raw.githubusercontent.com/bobzhang/ocaml-book/09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75/example/llvm/chap1/parsing/ast.mli | ocaml | type expr =
Number of float
| Variable of string
| Binary of char * expr * expr
| Call of string * expr array
type proto = Prototype of string * string array
type func = Function of proto * expr
| |
7cbda6d542adcca17322b75f998f61734b5365d454e8a2c17114380548307ee2 | coccinelle/coccinelle | semantic_c.ml | exception Semantic of string * Common.parse_info
| null | https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/parsing_c/semantic_c.ml | ocaml | exception Semantic of string * Common.parse_info
| |
6696c51b960f5bb6d4a442a641b735b0292299e0764e2ffbe61d5bc54318eadd | janestreet/bin_prot | bin_shape.mli | * [ Shape.t ] are constructed by the [ bin_shape ] syntax extension from Ocaml type
definitions & expressions .
There is a direct mapping from ocaml type definition syntax to the corresponding
[ Shape.group ] and from ocaml type expression syntax to the corresponding [ Shape.t ] .
definitions &... | null | https://raw.githubusercontent.com/janestreet/bin_prot/157805a66330c392b68feebda5033381d2a14459/shape/src/bin_shape.mli | ocaml | * [Tid.t] & [Vid.t] are identifiers for type-constructors & type-vars.
i.e. Given [type 'a t = ... ]
[t]
['a]
* [Location.t] is required when constructing shapes for which evaluation might fail.
* [Uuid.t] is used by [basetype] and [annotate].
* [of_string s] returns a [Uuid.t] wrapping [s].
There are ... | * [ Shape.t ] are constructed by the [ bin_shape ] syntax extension from Ocaml type
definitions & expressions .
There is a direct mapping from ocaml type definition syntax to the corresponding
[ Shape.group ] and from ocaml type expression syntax to the corresponding [ Shape.t ] .
definitions &... |
faf13cd94aa1bdf42fb0a4202e8d874cf9138e5221d0f9e1d8d7f1687f5ca7af | cwhitey/dotty | core_test.clj | (ns dotty.core-test
(:require [clojure.test :refer :all]
[dotty.core :refer :all]
[clojure.java.io :as io]))
(deftest decoding-env-vars
(testing "Honour .env format rules"
;; #rules
(testing "Decode a URL format"
(is (= {"TEST_ME" ""}
(decode-var "TEST_ME="))))
... | null | https://raw.githubusercontent.com/cwhitey/dotty/2fa2776ff837942d28bc45f0badb98ee999f723b/test/dotty/core_test.clj | clojure | #rules | (ns dotty.core-test
(:require [clojure.test :refer :all]
[dotty.core :refer :all]
[clojure.java.io :as io]))
(deftest decoding-env-vars
(testing "Honour .env format rules"
(testing "Decode a URL format"
(is (= {"TEST_ME" ""}
(decode-var "TEST_ME="))))
(testing "S... |
d517a01a6ad974de370f1d1675f3eb519aac549be1b7f9d21d2a978a39f0e7d2 | futurice/haskell-mega-repo | Config.hs | # LANGUAGE DataKinds #
module Futurice.App.PersonioProxy.Config where
import Futurice.EnvConfig
import Futurice.Postgres (ConnectInfo)
import Futurice.Prelude
import Futurice.Time
import Prelude ()
import qualified Personio
data Config = Config
{ cfgPersonioCfg :: !Personio.Cfg
, cfgPostgresConnInfo ::... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/personio-proxy/src/Futurice/App/PersonioProxy/Config.hs | haskell | # LANGUAGE DataKinds #
module Futurice.App.PersonioProxy.Config where
import Futurice.EnvConfig
import Futurice.Postgres (ConnectInfo)
import Futurice.Prelude
import Futurice.Time
import Prelude ()
import qualified Personio
data Config = Config
{ cfgPersonioCfg :: !Personio.Cfg
, cfgPostgresConnInfo ::... | |
9d7882557f274cb672b107ce763b2d4f473b9e20c942961af36ce5fe1d9ed6b1 | areina/elfeed-cljsrn | doo.cljs | (ns runners.doo
(:require [doo.runner :refer-macros [doo-all-tests]]
[runners.tests]))
(doo-all-tests #"(elfeed-cljsrn)\..*-test")
| null | https://raw.githubusercontent.com/areina/elfeed-cljsrn/4dea27f785d24a16da05c0ab2ac0c6a6f23360f1/test/runners/doo.cljs | clojure | (ns runners.doo
(:require [doo.runner :refer-macros [doo-all-tests]]
[runners.tests]))
(doo-all-tests #"(elfeed-cljsrn)\..*-test")
| |
b0b4fcedd5e5d8748274a873203cf1a4bb8cd9befecfa4f8110f5757286f12fd | gedge-platform/gedge-platform | amqp10_client_connection_sup.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(amqp10_client_connection_sup).
-behaviour... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/amqp10_client/src/amqp10_client_connection_sup.erl | erlang |
Private API.
Supervisor callbacks.
-------------------------------------------------------------------
Private API.
-------------------------------------------------------------------
-------------------------------------------------------------------
Supervisor callbacks.
------------------------------------... | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
-module(amqp10_client_connection_sup).
-behaviour(super... |
5f35368ba53bf7958a89ffbd27e1e161c7db6e9f27669b5dbb06a08bf7aa3eff | bsansouci/bsb-native | test_matches.ml | let l = List.filter [%matches ? 'a'..'z'] ['a';'A';'X';'x']
let f = [%matches ? Some i when i >= 0]
| null | https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/experimental/frisch/test_matches.ml | ocaml | let l = List.filter [%matches ? 'a'..'z'] ['a';'A';'X';'x']
let f = [%matches ? Some i when i >= 0]
| |
9cef02334f3586c15411882c14dc69cce83a794bf729f52c60738f9ee506eb73 | ejgallego/coq-lsp | stats.mli | (** time-based stats *)
module Kind : sig
type t =
| Hashing
| Parsing
| Exec
end
val get : kind:Kind.t -> float
val record : kind:Kind.t -> f:('a -> 'b) -> 'a -> 'b * float
val to_string : unit -> string
val reset : unit -> unit
type t
val zero : unit -> t
val dump : unit -> t
val restore : t -> unit
... | null | https://raw.githubusercontent.com/ejgallego/coq-lsp/f72982922d55689f9397283c525485ad26e952de/fleche/stats.mli | ocaml | * time-based stats | module Kind : sig
type t =
| Hashing
| Parsing
| Exec
end
val get : kind:Kind.t -> float
val record : kind:Kind.t -> f:('a -> 'b) -> 'a -> 'b * float
val to_string : unit -> string
val reset : unit -> unit
type t
val zero : unit -> t
val dump : unit -> t
val restore : t -> unit
val get_f : t -> kind:Ki... |
1365ede360bc2d8f9907f5eaa3a5979dab79bd0249d47c840e9952b1bd1e56c7 | NelosG/fp-tests | T6Spec.hs | # LANGUAGE LambdaCase #
module T6Spec
( tests
) where
import Data.Foldable (Foldable (fold))
import Data.Monoid (Sum (Sum, getSum))
import HW1.T6 (epart, mcat)
import Hedgehog (Gen, Property, forAll, property, (===))
import qualified Hedgehog.Gen as Gen
import qualified Hedgehog.Range as Range
import Test.Hspec (... | null | https://raw.githubusercontent.com/NelosG/fp-tests/7e2af5c3c3279c2045662faaff8e5f895af6af6a/hw1/test/T6/T6Spec.hs | haskell | # LANGUAGE LambdaCase #
module T6Spec
( tests
) where
import Data.Foldable (Foldable (fold))
import Data.Monoid (Sum (Sum, getSum))
import HW1.T6 (epart, mcat)
import Hedgehog (Gen, Property, forAll, property, (===))
import qualified Hedgehog.Gen as Gen
import qualified Hedgehog.Range as Range
import Test.Hspec (... | |
66b47f51bfb15154916cd1705b4cfcaa50711b840c4f5e0ee6fd91b4300fd014 | monadbobo/ocaml-core | typehash.mli | This library serves a single purpose :
To stop the following kind of code from compiling :
( * 1st def
To stop the following kind of code from compiling:
(* 1st def*)
type t = int with hashtype
module M = struct
2nd def
type t = bool
end
open M
(* Point A *)
type u = t ... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/typehash/lib/typehash.mli | ocaml | 1st def
Point A
*/* | This library serves a single purpose :
To stop the following kind of code from compiling :
( * 1st def
To stop the following kind of code from compiling:
type t = int with hashtype
module M = struct
2nd def
type t = bool
end
open M
type u = t with hashtype
We need to mak... |
7805d46e71843d896ac838b57bd4368ace0a60e4dccf0255b326e1900b453fe1 | ninenines/cowboy | rfc7231_SUITE.erl | Copyright ( c ) 2017 , < >
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
%% copyright notice and this permission notice appear in all copies.
%%
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS A... | null | https://raw.githubusercontent.com/ninenines/cowboy/8795233c57f1f472781a22ffbf186ce38cc5b049/test/rfc7231_SUITE.erl | erlang |
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVE... | Copyright ( c ) 2017 , < >
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES
ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN
-module(rfc7231_SUITE).
-compile(export_all).
-compile(nowar... |
6543542258d440b061492974860e0f7005112bbdf58cbfc7503b9acdc89c612a | dbuenzli/qoic | bigfile.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2021 The qoic programmers . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) ... | null | https://raw.githubusercontent.com/dbuenzli/qoic/f8aed04572ec657e3e35e95e8c31d383fa93b87c/test/bigfile.ml | ocaml | ---------------------------------------------------------------------------
Copyright ( c ) 2021 The qoic programmers . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
---------------------------------------------------------------------------
Copyright (c) ... | |
cc2272c40454c104d2e431d29360078fef13ced8af69fb84038d3ce3c9c49262 | tolysz/prepare-ghcjs | Version.hs | # LANGUAGE CPP , DeriveDataTypeable #
# LANGUAGE DeriveGeneric #
#if __GLASGOW_HASKELL__ < 707
# LANGUAGE StandaloneDeriving #
#endif
-- Hack approach to support bootstrapping.
-- When MIN_VERSION_binary macro is available, use it. But it's not available
-- during bootstrapping (or anyone else building Setup.hs direct... | null | https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts/cabal/Cabal/Distribution/Version.hs | haskell | Hack approach to support bootstrapping.
When MIN_VERSION_binary macro is available, use it. But it's not available
during bootstrapping (or anyone else building Setup.hs directly). If the
builder specifies -DMIN_VERSION_binary_0_8_0=1 or =0 then we respect that.
-----------------------------------------------------... | # LANGUAGE CPP , DeriveDataTypeable #
# LANGUAGE DeriveGeneric #
#if __GLASGOW_HASKELL__ < 707
# LANGUAGE StandaloneDeriving #
#endif
Otherwise we pick a default based on GHC version : assume binary < 0.8 when
GHC < 8.0 , and binary > = 0.8 when GHC > = 8.0 .
#ifdef MIN_VERSION_binary
#define MIN_VERSION_binary_0_... |
21a46386992ef283a0288e1305a7dadadb6ef561458c02fd4b33fd7f3fde0b21 | khibino/haskell-invertible-syntax-poly | Type.hs | {-# LANGUAGE Rank2Types #-}
-- |
-- Module : Text.Syntax.Poly.Type
Copyright : 2012
-- License : BSD3
--
-- Maintainer :
-- Stability : experimental
-- Portability : unknown
--
This module contains handy Rank2 type synonyms which has ' Syntax ' contexts .
module Text.Syntax.Poly.Type (
-- * Syn... | null | https://raw.githubusercontent.com/khibino/haskell-invertible-syntax-poly/03409b9d5f7767f33863ea8ae8b6787ddf99e29a/src/Text/Syntax/Poly/Type.hs | haskell | # LANGUAGE Rank2Types #
|
Module : Text.Syntax.Poly.Type
License : BSD3
Maintainer :
Stability : experimental
Portability : unknown
* Syntax type
* Error string type
| Type to run syntax as parser
| Same as 'RunAsParser' other than with computation @m@
| Type to run syntax as printer
| Same a... |
Copyright : 2012
This module contains handy Rank2 type synonyms which has ' Syntax ' contexts .
module Text.Syntax.Poly.Type (
SyntaxT,
* Type to run syntax as Parser \/ Printer .
RunAsParser, RunAsParserM,
RunAsPrinter, RunAsPrinterM,
ErrorString, errorString
) where
import Text.Syntax.Poly.Clas... |
933ca6e9fca61d76292b289c40c55e08c87009dd42513eaf6491d83079560d0a | ferd/tend | tend_reloader.erl | %%% This worker takes charge of reloading only the new modules
part of lib_dir as defined within ' tend '
-module(tend_reloader).
-behaviour(gen_server).
-export([start_link/1, reload/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
code_change/3, terminate/2]).
-include_lib("kernel/include... | null | https://raw.githubusercontent.com/ferd/tend/1cecf0480ff41b97eff95e3732b02244c0619e83/src/tend_reloader.erl | erlang | This worker takes charge of reloading only the new modules
API
PRIVATE | part of lib_dir as defined within ' tend '
-module(tend_reloader).
-behaviour(gen_server).
-export([start_link/1, reload/0]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
code_change/3, terminate/2]).
-include_lib("kernel/include/file.hrl").
-record(state, {ts, lib_dir}).
start_link(Dir) -... |
6f720c4aa585f8b5a2c5ee912f8343acaaf16baaf7e7ad5e320923327727362e | SonyCSLParis/BENG | NP->a-b-cxn.lisp | (in-package :beng)
(def-fcg-cxn NP->a-b-cxn
(nil
<-
(?determiner-unit
(syn-cat
(lex-class determiner))
(referent ?referent)
--
(parent ?np-unit)
(args (?referent ?input-105)))
(?head-unit
(referent ?referent)
(syn-cat
(agreement ?agr))
--
(paren... | null | https://raw.githubusercontent.com/SonyCSLParis/BENG/1eb525e132d2b1f74ae18532657561725f6fbb78/grammar/referring-expressions/NP-%3Ea-b-cxn.lisp | lisp | (in-package :beng)
(def-fcg-cxn NP->a-b-cxn
(nil
<-
(?determiner-unit
(syn-cat
(lex-class determiner))
(referent ?referent)
--
(parent ?np-unit)
(args (?referent ?input-105)))
(?head-unit
(referent ?referent)
(syn-cat
(agreement ?agr))
--
(paren... | |
71292e4d8fbdfdd7bc0b3ff268f41f9169cca5219f10fd3d3ecfd54db8948cb5 | camsaul/toucan2 | util.clj | (ns toucan2.util
(:require
[camel-snake-kebab.core :as csk]
[clojure.spec.alpha :as s]
[clojure.walk :as walk]
[methodical.util.dispatch :as m.dispatch]
[pretty.core :as pretty]
[toucan2.protocols :as protocols]))
TODO -- there is a lot of repeated code in here to make sure we do n't accidentally... | null | https://raw.githubusercontent.com/camsaul/toucan2/5204b34d46f5adb3e52b022218049abe9b336928/src/toucan2/util.clj | clojure | that logic.
[[try-with-error-context]]
TODO -- I don't love this stuff anymore, need to rework it at some point.
some sort of function call or something like that. | (ns toucan2.util
(:require
[camel-snake-kebab.core :as csk]
[clojure.spec.alpha :as s]
[clojure.walk :as walk]
[methodical.util.dispatch :as m.dispatch]
[pretty.core :as pretty]
[toucan2.protocols :as protocols]))
TODO -- there is a lot of repeated code in here to make sure we do n't accidentally... |
7290fcf1044f68801c8e251203f8150ddae9f83dd4fca2f9472fc9592ef9d00b | mjambon/caml2html | tag.ml | $ Id$
(* Various operations on lists of elements (Other) mixed with
Start and Stop tags *)
(* The type of elements *)
type kind = Start | Stop | Other
(* Recursively remove consecutive start/stop pairs *)
let rec remove_matches = function
(Start, _) as start :: l ->
(match remove_matches l with
(S... | null | https://raw.githubusercontent.com/mjambon/caml2html/297a7d2695896a2de8110d2acd4d64c85eb29805/tag.ml | ocaml | Various operations on lists of elements (Other) mixed with
Start and Stop tags
The type of elements
Recursively remove consecutive start/stop pairs
Annotate innermost start/stop pairs | $ Id$
type kind = Start | Stop | Other
let rec remove_matches = function
(Start, _) as start :: l ->
(match remove_matches l with
(Stop, _) :: rest -> rest
| rest -> start :: rest)
| (Stop, _) as stop :: l -> stop :: remove_matches l
| (Other, _) as x :: l -> x :: remove_matches l
| [] -> []
... |
0053cd6feda80eee257125d008804482e47eaa5d7c8052a7be96f282673df9ff | onedata/op-worker | lfm_test_utils.erl | %%%-------------------------------------------------------------------
@author
( C ) 2020 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%-------------------------------------------------------------------
%%% @doc
%%% Util functions for operation on fi... | null | https://raw.githubusercontent.com/onedata/op-worker/f8f37373e148180d1b896b2011cae05f555c97ba/test_distributed/utils/lfm_test_utils.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
@doc
Util functions for operation on files using lfm_proxy.
@end
-------------------------------------------------------------------
API
TODO VFS-7215 - merge this module wi... | @author
( C ) 2020 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(lfm_test_utils).
-author("Jakub Kudzia").
-include("lfm_test_utils.hrl").
-include("modules/fslogic/fslogic_common.hrl").
-include("modules/logical_file_manager/lfm.hrl").
-include("modules... |
5e14776bff934eb1aa9cdac9313a17d7e680c716f21b4eed12c03c40d44f1f50 | Gabriella439/pipes-concurrency | Tutorial.hs | | This module provides a tutorial for the @pipes - concurrency@ library .
This tutorial assumes that you have read the @pipes@ tutorial in
@Pipes . Tutorial@.
I 've condensed all the code examples into self - contained code listings in
the Appendix section that you can use to follow along .
... | null | https://raw.githubusercontent.com/Gabriella439/pipes-concurrency/0506d97c2de2bfd0948cb97c031c2eef3aed7ae3/src/Pipes/Concurrent/Tutorial.hs | haskell | * Introduction
$intro
* Work Stealing
$steal
* Termination
$termination
* Mailbox Sizes
$mailbox
* Broadcasts
$broadcast
* Updates
$updates
* Callbacks
$callback
* Safety
$safety
* Conclusion
$conclusion
* Appendix
$appendix
The game events
Try again
Wait 2 seconds
I 'll explain ' performGC '... | | This module provides a tutorial for the @pipes - concurrency@ library .
This tutorial assumes that you have read the @pipes@ tutorial in
@Pipes . Tutorial@.
I 've condensed all the code examples into self - contained code listings in
the Appendix section that you can use to follow along .
... |
bf4748ab783cc940e108310d418a41f8430e3f4792cf9f1ed40e9706a8f5a320 | coq/coq | egramcoq.ml | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/f66b58cc7e6a8e245b35c3858989181825c591ce/vernac/egramcoq.ml | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
ecf574a1ad508bd006027550e4d8711c9ae67e0dc0020c21dda082ea064b2a9c | evrim/core-server | git.lisp | Core Server : Web Application Server
Copyright ( C ) 2006 - 2008 , Aycan iRiCAN
;; This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
;; (at your opti... | null | https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/src/applications/git.lisp | lisp | This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public L... | Core Server : Web Application Server
Copyright ( C ) 2006 - 2008 , Aycan iRiCAN
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
(in-package :core... |
1d3f0e7940b41815c77277542f99a5d2125a210bdabae44ec9ed7e9f1ce3ebc3 | jiangpengnju/htdp2e | word-games-composition-illustrated.v2.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname word-games-composition-illustrated.v2) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #... | null | https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/arbitrarily-large-data/extended-exercises-lists/word-games-composition-illustrated.v2.rkt | racket | about the language level of this file in a form that our tools can easily process.
Sample Problem: Given a word, find (all possible) words that are made up
from some letters. For example, "cat" also spells "act".
of systematic program design.
constants
On OS X:
A Word is one of:
- '()
(cons 1String Word)
inte... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname word-games-composition-illustrated.v2) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
TASKs :
1 . A systematic... |
5f5d761699e8b665e1cdf9c410b5eddd367449f55c17fa8d17ae24648526ff04 | hyperfiddle/electric | bubbling1.cljc | (ns bubbling
(:require [clojure.core.protocols :as ccp :refer [nav]]
[clojure.datafy :refer [datafy]]
[contrib.clojurex :refer [bindx]]
#?(:clj [contrib.datomic-contrib :as dx])
[contrib.str :refer [pprint-str]]
#?(:clj [datomic.client.api :as d])
... | null | https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2022/forms/bubbling1.cljc | clojure | merge-command. server
server
Impure CT
Pure CT
todo fork stage differently
task can fail | (ns bubbling
(:require [clojure.core.protocols :as ccp :refer [nav]]
[clojure.datafy :refer [datafy]]
[contrib.clojurex :refer [bindx]]
#?(:clj [contrib.datomic-contrib :as dx])
[contrib.str :refer [pprint-str]]
#?(:clj [datomic.client.api :as d])
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.