_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 |
|---|---|---|---|---|---|---|---|---|
f74f11af741b5c91549c42908431a7534f31de38eb12700b0f3466f5f1a881be | quil/quil | environment.cljc | (ns quil.snippets.environment
(:require #?(:clj [quil.snippets.macro :refer [defsnippet]])
[quil.core :as q :include-macros true]
quil.snippets.all-snippets-internal)
#?(:cljs
(:use-macros [quil.snippets.macro :only [defsnippet]])))
(defsnippet current-frame-rate-target-frame-rate
["... | null | https://raw.githubusercontent.com/quil/quil/1f214e712d834ede311fdc652eafe9cc0232c96e/src/cljc/quil/snippets/environment.cljc | clojure | (ns quil.snippets.environment
(:require #?(:clj [quil.snippets.macro :refer [defsnippet]])
[quil.core :as q :include-macros true]
quil.snippets.all-snippets-internal)
#?(:cljs
(:use-macros [quil.snippets.macro :only [defsnippet]])))
(defsnippet current-frame-rate-target-frame-rate
["... | |
8f85f39cb2019fcf7dbf5a732bcff89d4d57a820aee37602b6627db4177c8473 | racket/typed-racket | dead-code-values.rkt | #lang typed/racket/shallow
;; Test the 'values' case in defender/defender protect-codomain,
;; ... application returns +1 results that need cod checks
;; ... but also send the rewritten code through the optimizer
(: forth-eval (-> Any Any (Values Symbol Symbol)))
(define (forth-eval E S)
(match 'any
[(? pair? E... | null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/dead-code-values.rkt | racket | Test the 'values' case in defender/defender protect-codomain,
... application returns +1 results that need cod checks
... but also send the rewritten code through the optimizer
dead code | #lang typed/racket/shallow
(: forth-eval (-> Any Any (Values Symbol Symbol)))
(define (forth-eval E S)
(match 'any
[(? pair? E+S)
(values (car E+S) (cdr E+S))]))
|
078d3630bd8e308f115bededa97126ea2ea07c9fd5462bede93df7791ea002c4 | bennn/dissertation | array-broadcast.rkt | #lang typed/racket #:locally-defensive
(require racket/fixnum
"array-struct.rkt"
"../unsafe.rkt"
"utils.rkt")
(provide array-broadcasting
array-broadcast
array-shape-broadcast)
(: array-broadcasting (Parameterof (U #f #t 'permissive)))
(define array-broadcasting (make-par... | null | https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/math-test/array-map/transient/math/private/array/array-broadcast.rkt | racket | #lang typed/racket #:locally-defensive
(require racket/fixnum
"array-struct.rkt"
"../unsafe.rkt"
"utils.rkt")
(provide array-broadcasting
array-broadcast
array-shape-broadcast)
(: array-broadcasting (Parameterof (U #f #t 'permissive)))
(define array-broadcasting (make-par... | |
3a2d4cf726f88c302aeb97e162969de72553090f23edb3c6fad60b168ac8971d | cram-code/cram_core | pulse-fluent.lisp | ;;;
Copyright ( c ) 2009 , < > ,
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions are met:
;;;
;;; * Redistributions of source code must retain the above copyright
;;; notice, this li... | null | https://raw.githubusercontent.com/cram-code/cram_core/984046abe2ec9e25b63e52007ed3b857c3d9a13c/cram_language/src/fluents/pulse-fluent.lisp | lisp |
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redi... | Copyright ( c ) 2009 , < > ,
* Neither the name of Willow Garage , Inc. nor the names of its
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS "
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR... |
c991dcd6c974145ea0f17dcf27d02915f2dccfbc93df7ddb25dfe038010b1b31 | reborg/clojure-essential-reference | 5.clj | (import 'java.util.Collections)
< 1 >
(let [xs (into () (range n 0 -1))]
(map #(do (print % ", ") %) xs)))
< 2 >
1 , 2 , ... , 32 , 33 , 1
(first (enumeration-seq (Collections/enumeration (dbg-coll 100)))) ; <3>
1 , 1 | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/Sequences/OtherGenerators/iterator-seqandenumeration-seq/5.clj | clojure | <3> | (import 'java.util.Collections)
< 1 >
(let [xs (into () (range n 0 -1))]
(map #(do (print % ", ") %) xs)))
< 2 >
1 , 2 , ... , 32 , 33 , 1
1 , 1 |
3541233bd70bbefbad537990e6fec17938b0b72ddd357c3e86adbc30a86a3da1 | CSVdB/pinky | Resize.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
# LANGUAGE ScopedTypeVariables #
module Pinky.Layers.Resize where
import Import
import Pinky.Core
import Pinky.Cre... | null | https://raw.githubusercontent.com/CSVdB/pinky/e77a4c0812ceb4b8548c41a7652fb247c2ab39e0/pinky/src/Pinky/Layers/Resize.hs | haskell | # LANGUAGE DeriveGeneric #
# LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
# LANGUAGE ScopedTypeVariables #
module Pinky.Layers.Resize where
import Import
import Pinky.Core
import Pinky.Cre... | |
4ed8b366880c17b1b7b256e8fe74d244ab9cd26dfac3a491e3aacb82597d61b4 | zenspider/schemers | exercise.3.31.scm | #lang racket/base
Exercise 3.31
;; The internal procedure `accept-action-procedure!'
;; defined in `make-wire' specifies that when a new action procedure
;; is added to a wire, the procedure is immediately run. Explain why
;; this initialization is necessary. In particular, trace through the
half - adder exampl... | null | https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_3/exercise.3.31.scm | scheme | The internal procedure `accept-action-procedure!'
defined in `make-wire' specifies that when a new action procedure
is added to a wire, the procedure is immediately run. Explain why
this initialization is necessary. In particular, trace through the
system's response would differ if we had defined
`accept-action... | #lang racket/base
Exercise 3.31
half - adder example in the paragraphs above and say how the
|
13c7f42ec2f32cd15a9707041931bb05657010984cb516b0c4715f5d3f9b2878 | informatimago/lisp | cl-pdf.lisp | -*- coding : utf-8 -*-
;;;;****************************************************************************
FILE : cl-pdf.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;;
< PJB > < >
MODIFICATIONS
2004 - ... | null | https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/cl-loaders/cl-pdf.lisp | lisp | ****************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
LEGAL
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... | -*- coding : utf-8 -*-
FILE : cl-pdf.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2004 - 10 - 05 < PJB > Created .
AGPL3
Copyright 2004 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundat... |
cf83cc40559a2afc89c9844a65ecfe3fbdd3f11b7af0f7008ce5b7b0741ca8c2 | ghc/testsuite | T2806.hs |
# LANGUAGE MagicHash #
-- Trac #2806
module Foo where
import GHC.Base
foo :: Int
foo = 3
where (I# _x) = 4
| null | https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/T2806.hs | haskell | Trac #2806 |
# LANGUAGE MagicHash #
module Foo where
import GHC.Base
foo :: Int
foo = 3
where (I# _x) = 4
|
0a71868bf48ffd6e9d34709ec39b5f90fb08c35940f2a9df54264c97a46c1723 | sneeuwballen/zipperposition | qle.ml |
This file is free software , part of Zipperposition . See file " license " for more details .
* { 1 Quasipure Literal Elimination }
open Logtk
open Libzipperposition
let k_enabled = Flex_state.create_key ()
let k_inprocessing = Flex_state.create_key ()
let k_check_at = Flex_state.create_key ()
let k_pure_only = Fl... | null | https://raw.githubusercontent.com/sneeuwballen/zipperposition/800b51178cff0ebeb383ec0d3d19ac01abd307e5/src/prover_calculi/qle.ml | ocaml | Create p+, p- variables for each predicate symbol p.
Make sure that deep, higher-order occurrences of predicate symbols are
protected by other symbols. If pure_only is true, prevent such symbols
from being pure. |
This file is free software , part of Zipperposition . See file " license " for more details .
* { 1 Quasipure Literal Elimination }
open Logtk
open Libzipperposition
let k_enabled = Flex_state.create_key ()
let k_inprocessing = Flex_state.create_key ()
let k_check_at = Flex_state.create_key ()
let k_pure_only = Fl... |
dfd5ca71b8180ac8a74cf107c0981204a1631520e17cdd67e5407d57aaafbc39 | mattmundell/nightshade | sort-folder.lisp | ;;; Tests of mh:sort-folder.
(in-package "USER")
(import '(deftest:deftest deftest:with-test-dir))
(deftest sort-folder (t sort-folder-1)
"Test `sort-folder' on an empty folder."
(with-test-dir (dir "Mail/folder/")
(letf (((search-list "home:") (list dir)))
(to-file (stream "home:.mh_profile"
... | null | https://raw.githubusercontent.com/mattmundell/nightshade/d8abd7bd3424b95b70bed599e0cfe033e15299e0/src/tests/code/mh.lisp/sort-folder.lisp | lisp | Tests of mh:sort-folder.
Errors.
the folder should be cleared. |
(in-package "USER")
(import '(deftest:deftest deftest:with-test-dir))
(deftest sort-folder (t sort-folder-1)
"Test `sort-folder' on an empty folder."
(with-test-dir (dir "Mail/folder/")
(letf (((search-list "home:") (list dir)))
(to-file (stream "home:.mh_profile"
:if-does-not-exist :create)
... |
5bd9d8147b0cf7251314c614e857106da78643b282c8526f406277942bafa33e | rpeszek/typed-encoding | Decode.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE PolyKinds #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE TypeApplications #
-- |
Type classes accompanying decoding types defin... | null | https://raw.githubusercontent.com/rpeszek/typed-encoding/441f9f3bbf849f485f82eae66402ee2fd7b47a34/src/Data/TypedEncoding/Common/Class/Decode.hs | haskell | |
|
|
| With type safety in place decoding errors should be unexpected.
This class can be used to provide extra info if decoding could fail
|
| | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE PolyKinds #
# LANGUAGE FlexibleInstances #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE TypeApplications #
Type classes accompanying decoding types defined in... |
a2848b9f201410186563f1557a5749e9b5af97c667d0220a6b66d2dcc998d4f9 | Beluga-lang/Beluga | tokenizer.ml | open Support
(** The things needed to build a tokenizer. *)
module type TokenizerInfo = sig
type 'a token
module Stream : Types.BASIC_STREAM
(** A way to construct a token. *)
val token : 'a -> Span.t -> 'a token
end
(** Basic tokenizer. *)
module type Base = sig
(** The type of tokens emitted by the toke... | null | https://raw.githubusercontent.com/Beluga-lang/Beluga/57cbfe5e399126f9414d49b88acae7b7b21f87e5/src/replay/tokenizer.ml | ocaml | * The things needed to build a tokenizer.
* A way to construct a token.
* Basic tokenizer.
* The type of tokens emitted by the tokenizer.
* The streams processed by the tokenizer.
* Considers everything to be on the same line, and sequentially
numbers each token.
* Tokenizes a stream of characters and increment... | open Support
module type TokenizerInfo = sig
type 'a token
module Stream : Types.BASIC_STREAM
val token : 'a -> Span.t -> 'a token
end
module type Base = sig
type 'a token
module Stream : Types.BASIC_STREAM
val trivial_tokenize_from : Loc.t -> 'a Stream.t -> 'a token Stream.t
val char_tokenize_from ... |
ab4c6e9a8bc1d23cf6d8143bb06392d3cefa585a53592b62634fbf4733043b57 | susanemcg/pandoc-tufteLaTeX2GitBook | Docx.hs | # LANGUAGE ScopedTypeVariables #
Copyright ( C ) 2012 - 2014 < >
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later versi... | null | https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Writers/Docx.hs | haskell | ^ Writer options
^ Document to convert
from scratch rather than reading from reference.docx,
because Word sometimes changes these files when a reference.docx is modified,
e.g. deleting the reference to footnotes.xml or removing default entries
for image content types.
word/_rels/document.xml.rels
word/document.... | # LANGUAGE ScopedTypeVariables #
Copyright ( C ) 2012 - 2014 < >
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later versi... |
efa54e41ac6ca72761b576e51be941756547152e9a38b338c1a6efd98b9c47cd | jabber-at/ejabberd | ejabberd_router_multicast.erl | %%%----------------------------------------------------------------------
%%% File : ejabberd_router_multicast.erl
Author : >
%%% Purpose : Multicast router
Created : 11 Aug 2007 by >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne
%%%
%%% This program is free software; you can redistribut... | null | https://raw.githubusercontent.com/jabber-at/ejabberd/7bfec36856eaa4df21b26e879d3ba90285bad1aa/src/ejabberd_router_multicast.erl | erlang | ----------------------------------------------------------------------
File : ejabberd_router_multicast.erl
Purpose : Multicast router
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,... | Author : >
Created : 11 Aug 2007 by >
ejabberd , Copyright ( C ) 2002 - 2018 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have received a copy of the GNU General Public License along
with... |
9013a1f98eec2a994034fcb82d36540a4078607766e3f72b232a9f02a7b40bcc | scrive/haskell-soap | Main.hs | {-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module Main where
import qualified Data.ByteString.Lazy.Char8 as BSL
import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Lazy.IO as TL
import Network.HTTP.Conduit (simpleHttp)
import Text.XML (parseLBS_)
... | null | https://raw.githubusercontent.com/scrive/haskell-soap/b237ca8c7d5411e9b5fcf239db02c53df9ba41d4/soap-wsdl/src/wsdl2hs/Main.hs | haskell | # LANGUAGE OverloadedStrings, RecordWildCards #
* Arguments
* Entry
* Commands
** List operations
** Generate code |
module Main where
import qualified Data.ByteString.Lazy.Char8 as BSL
import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Lazy.IO as TL
import Network.HTTP.Conduit (simpleHttp)
import Text.XML (parseLBS_)
import Data.Default (def)
import ... |
9d06b044246b49a75e57be5d4adc1975783652177068d61db9c6b7720b57a070 | jserot/fsml | types.ml | (**********************************************************************)
(* *)
This file is part of the FSML library
(* github.com/jserot/fsml *)
(* ... | null | https://raw.githubusercontent.com/jserot/fsml/9e3e04acbbb1cb1700fa9d4a0497f35ad4f70796/src/lib/types.ml | ocaml | ********************************************************************
github.com/jserot/fsml
... | This file is part of the FSML library
Copyright ( c ) 2020 - present , . All rights reserved .
type t =
| TyInt of sign attr * size attr * range attr
| TyBool
[@@deriving show {with_path=false}, yojson]
and 'a attr =
| Const of 'a
| Var of ('a attr) var
[@@deriving... |
bab863eed1693cc73ad4ae9d00609030cc796acd15f43c4e02f52b49c2672ac7 | GaloisInc/renovate | ABI.hs | # LANGUAGE KindSignatures #
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeInType #-}
| An abstract interface for ' ABI 's .
--
There can be more than one ' ABI ' for a given ' ISA ' .
--
The implementations of ' ABI 's will be under the Renovate . Arch module
-- hierarchy.
module Renovate.ABI (
ABI(..)
) where... | null | https://raw.githubusercontent.com/GaloisInc/renovate/550f64c1119f6804967e3077dcf0cb7c57ddb603/renovate/src/Renovate/ABI.hs | haskell | # LANGUAGE RankNTypes #
# LANGUAGE TypeInType #
hierarchy.
| A description of the properties of an Application Binary
information about registers and their roles in returns.
The type parameter 'i' is the instruction type, and 'r' is the
register type.
^ Return 'True' if the given instruction is a return from a... | # LANGUAGE KindSignatures #
| An abstract interface for ' ABI 's .
There can be more than one ' ABI ' for a given ' ISA ' .
The implementations of ' ABI 's will be under the Renovate . Arch module
module Renovate.ABI (
ABI(..)
) where
import Data.Word ( Word8, Word32 )
import Renovate.Core.Address
import Ren... |
5430166572af3442104e02185e790fbd266bbdee932ae1b0d3e8ec33170adda9 | yutotakano/discord-haskell-voice | VoiceCommon.hs | # LANGUAGE ImportQualifiedPost #
# LANGUAGE TemplateHaskell #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE GeneralisedNewtypeDeriving #
|
Module : Discord . Internal . Types . VoiceCommon
Description : Strictly for internal use only . See Dis... | null | https://raw.githubusercontent.com/yutotakano/discord-haskell-voice/793be7f3b25505ce882dfdd606104fb8e950d9e3/src/Discord/Internal/Types/VoiceCommon.hs | haskell | transformers over the @DiscordHandler@ monad. It holds references to
voice connections/threads. The content of the reader handle is strictly
internal and is hidden deliberately behind the newtype wrapper.
Developer Note: ExceptT is on the base rather than ReaderT, so that when a
transformer stack, kill the thread... | # LANGUAGE ImportQualifiedPost #
# LANGUAGE TemplateHaskell #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE GeneralisedNewtypeDeriving #
|
Module : Discord . Internal . Types . VoiceCommon
Description : Strictly for internal use only . See Dis... |
18035933215df20d14713b756554ec78d235f6194edc0103bc9dca5462b03e46 | facebookarchive/pfff | builtins_java.mli |
will generate some java.lang.xxx.java files in dst by just extracting
* the class definitions from src . Useful to build pfff / data / java_stdlib
* the class definitions from src. Useful to build pfff/data/java_stdlib
*)
val extract_from_sources:
src:Common.dirname -> dst:Common.dirname ->
Common.filenam... | null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_java/analyze/builtins_java.mli | ocaml |
will generate some java.lang.xxx.java files in dst by just extracting
* the class definitions from src . Useful to build pfff / data / java_stdlib
* the class definitions from src. Useful to build pfff/data/java_stdlib
*)
val extract_from_sources:
src:Common.dirname -> dst:Common.dirname ->
Common.filenam... | |
f6c933e54786f28b1405c9c5c610fadeb71175f0fdeacc09a3f36df0264fc5c5 | aantron/hyper | real.ml | This file is part of Hyper , released under the MIT license . See LICENSE.md
for details , or visit .
Copyright 2022
for details, or visit .
Copyright 2022 Anton Bachin *)
let%expect_test _ =
Hyper.get ""
|> ignore;
[%expect {| |}]
let%expect_test _ =
let url =
"-known/" ^
"op... | null | https://raw.githubusercontent.com/aantron/hyper/0da630062d6bfd33b34a5f11c24e20c65d4262b1/test/expect/real/real.ml | ocaml | This file is part of Hyper , released under the MIT license . See LICENSE.md
for details , or visit .
Copyright 2022
for details, or visit .
Copyright 2022 Anton Bachin *)
let%expect_test _ =
Hyper.get ""
|> ignore;
[%expect {| |}]
let%expect_test _ =
let url =
"-known/" ^
"op... | |
923078566a3e89ecaa0663223d2f67348ca9cff02511662a16b93149181df74d | spl/xformat | Read.hs | # LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE TypeSynonymInstances #-}
# LANGUAGE UndecidableInstances #
--------------------------------------------------------------------------------
-- |
-- Module : Text.XFormat.R... | null | https://raw.githubusercontent.com/spl/xformat/582504fcf06ee601d59603dda8f5b593df359612/src/Text/XFormat/Read.hs | haskell | # LANGUAGE TypeSynonymInstances #
------------------------------------------------------------------------------
|
Module : Text.XFormat.Read
License : BSD3
Maintainer :
Stability : experimental
Portability : non-portable
This module defines an extensible, type-indexed function for reading
w... | # LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE FunctionalDependencies #
# LANGUAGE FlexibleInstances #
# LANGUAGE UndecidableInstances #
Copyright : ( c ) 2009
considered a variant of the C @scanf@ function .
module Text.XFormat.Read (
Format(..),
readsf,
readf,
C... |
2a12f53b5c1601f7fc5abb17559b8dd9e44b3771b2db6e5aa12e4662ccc8755e | Clozure/ccl-tests | with-open-stream.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Mon Dec 13 01:42:59 2004
;;;; Contains: Tests of WITH-OPEN-STREAM
(in-package :cl-test)
(deftest with-open-stream.1
(with-open-stream (os (make-string-output-stream)))
nil)
(deftest with-open-stream.2
(with-open-stream (os (make-string-output-stream))
... | null | https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/with-open-stream.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of WITH-OPEN-STREAM
Free declaration scope | Author :
Created : Mon Dec 13 01:42:59 2004
(in-package :cl-test)
(deftest with-open-stream.1
(with-open-stream (os (make-string-output-stream)))
nil)
(deftest with-open-stream.2
(with-open-stream (os (make-string-output-stream))
(declare (ignore os)))
nil)
(deftest with-open-stream.3
(wi... |
38fbb6560f3ef65887730afe0fe90c4c905b8f9b15c9a8684fbf7f8e2ccd80e5 | stuart-robinson/clojure-serverless-demo | config.cljs | (ns clojure-serverless-demo.config)
(def debug?
^boolean goog.DEBUG)
(def host
(if debug?
":8888"
"-api.eu-west-2.amazonaws.com/prod"))
| null | https://raw.githubusercontent.com/stuart-robinson/clojure-serverless-demo/d8d046bd79ccfe3dcea8823e8eddc3cb78a9f732/src/cljs/clojure_serverless_demo/config.cljs | clojure | (ns clojure-serverless-demo.config)
(def debug?
^boolean goog.DEBUG)
(def host
(if debug?
":8888"
"-api.eu-west-2.amazonaws.com/prod"))
| |
31647e08ac61902e8fe26ec2a3bae6239ccf006544018fee0119f550f91f927b | bsansouci/bsb-native | odoc_man.ml | (***********************************************************************)
(* *)
(* OCamldoc *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/ocamldoc/odoc_man.ml | ocaml | *********************************************************************
OCamldoc
... | , projet Cristal , INRIA Rocquencourt
Copyright 2001 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
open Odoc_info
open Parameter
open Value
o... |
b1cabeaa32ba1de2cfa91a42e7d698a69a1f463c887543ea83139589db2695ce | amnh/poy5 | pdfread.ml | (* \chaptertitle{PDFRead}{Reading PDF from File} *)
This module can read PDF files into the format given by the [ Pdf ] module . It
supports PDF versions 1.0 - -1.6 . The commentary is not in itself sufficient for
full understanding : you must read this together with the Adobe PDF Reference
Manual . Secti... | null | https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/camlpdf-0.3/pdfread.ml | ocaml | \chaptertitle{PDFRead}{Reading PDF from File}
Bring Pdf data constructors and functions up to top level.
\intf Errors in low-level functions, errors in lexing, errors in parsing.
\intf Errors in the structure of the PDF (i.e not in its basic syntax.)
Predicate on newline characters (carriage return and linefee... |
This module can read PDF files into the format given by the [ Pdf ] module . It
supports PDF versions 1.0 - -1.6 . The commentary is not in itself sufficient for
full understanding : you must read this together with the Adobe PDF Reference
Manual . Section numbers are from the Fifth Edition .
supports PDF ... |
c5afebc2960949787a43dcdb3af203d6dd71970102bd0db710fde12e94cd2d6a | Carnap/Carnap | SharedFunctions.hs | module Carnap.GHCJS.SharedFunctions
(simpleCipher, simpleDecipher, simpleHash, inOpts, rewriteWith)
where
import Data.Bits (xor)
import Data.List (foldl')
import qualified Data.Map as M
import Carnap.Calculi.NaturalDeduction.Syntax (NaturalDeductionCalc(..))
import Carnap.Languages.PurePropositional.Logic
... | null | https://raw.githubusercontent.com/Carnap/Carnap/6f4461b2ac023700a5ede7c1db3b64f166d6589e/Carnap-Client/src/Carnap/GHCJS/SharedFunctions.hs | haskell | module Carnap.GHCJS.SharedFunctions
(simpleCipher, simpleDecipher, simpleHash, inOpts, rewriteWith)
where
import Data.Bits (xor)
import Data.List (foldl')
import qualified Data.Map as M
import Carnap.Calculi.NaturalDeduction.Syntax (NaturalDeductionCalc(..))
import Carnap.Languages.PurePropositional.Logic
... | |
27d397b711781ec313799f460119d750c960b91c155bbe829eb44284ddac7186 | lispgames/glop | foundation.lisp | (in-package #:glop-bridge)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Types ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defctype ns-uinteger #+x86-64 :ulong #-x86-64... | null | https://raw.githubusercontent.com/lispgames/glop/45e722ab4a0cd2944d550bf790206b3326041e38/src/osx/foundation.lisp | lisp |
Types ;;;
; ;
; ;
; ;
; ;
General Functions ;;;
| (in-package #:glop-bridge)
(defctype ns-uinteger #+x86-64 :ulong #-x86-64 :uint)
(defctype ns-integer #+x86-64 :long #-x86-64 :int)
(defctype cg-float #+x86-64 :double #-x86-64 :float)
(defcstruct ns-point-struct
(x cg-float)
(y cg-float))
(define-foreign-type ns-point-type ()
()
(:actual-type ns-point-st... |
482849fd502250602fcb1e4ac35d8a5640b66fb2d548bab1d2bafe096fbd6366 | slipstream/SlipStreamServer | filter.clj | (ns com.sixsq.slipstream.db.es.filter
(:require
[clojure.string :as s]
[clojure.walk :as w]
[com.sixsq.slipstream.db.utils.time-utils :as uu])
(:import
[org.elasticsearch.index.query QueryBuilders]))
(defn prefix-query
[^String term ^String value]
(QueryBuilders/prefixQuery term value))
(defn ... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/db-binding/src/com/sixsq/slipstream/db/es/filter.clj | clojure | (a=1 and b=2) case | (ns com.sixsq.slipstream.db.es.filter
(:require
[clojure.string :as s]
[clojure.walk :as w]
[com.sixsq.slipstream.db.utils.time-utils :as uu])
(:import
[org.elasticsearch.index.query QueryBuilders]))
(defn prefix-query
[^String term ^String value]
(QueryBuilders/prefixQuery term value))
(defn ... |
1f9ec882bac9d7ee75cc97896ab5c3d7aa848949d463ab236c6af55c7bbc347b | cusu/stv-tools | tally.mli |
STV Tools , a reference implementation of STV , by ( C ) 2016 - 2017
This programme is free software ; you may redistribute and/or modify
it under the terms of the GNU Affero General Public Licence as published by
the Free Software Foundation , either version 3 of said Licence , or
( at you... | null | https://raw.githubusercontent.com/cusu/stv-tools/410431a31462589a02db42fd7f094c88d5b144af/reference/src/tally.mli | ocaml |
STV Tools , a reference implementation of STV , by ( C ) 2016 - 2017
This programme is free software ; you may redistribute and/or modify
it under the terms of the GNU Affero General Public Licence as published by
the Free Software Foundation , either version 3 of said Licence , or
( at you... | |
fb97c296ceee5c61ebe38d6bfb935b8594eab7bc327a7fbf2e0f63657e309ada | softlab-ntua/bencherl | tx_tm_rtm.erl | 2009 - 2012 Zuse Institute Berlin ,
2009 onScale solutions GmbH
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% -2.0
%
% Unless required by applicable l... | null | https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/scalaris/src/transactions/tx_tm_rtm.erl | erlang | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language gov... | 2009 - 2012 Zuse Institute Berlin ,
2009 onScale solutions GmbH
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
@doc Part of a generic implementation of transactions using
th... |
e03ecad985b277677db596aa068305c7c0f8101456bdbc4f88a39a63b7dd1ba8 | turquoise-hexagon/euler | solution.scm | (import
(chicken io)
(chicken string)
(euler))
(define (import-input)
(let ((lst (read-lines)))
(map
(lambda (str index)
(let ((_ (map string->number (string-split str ","))))
(cons index _)))
lst (range 1 (length lst)))))
(define (solve input)
(car
(extremum input
... | null | https://raw.githubusercontent.com/turquoise-hexagon/euler/592c5f4f45fe8e8b82102be9fe11b3b1134d98fc/src/099/solution.scm | scheme | (import
(chicken io)
(chicken string)
(euler))
(define (import-input)
(let ((lst (read-lines)))
(map
(lambda (str index)
(let ((_ (map string->number (string-split str ","))))
(cons index _)))
lst (range 1 (length lst)))))
(define (solve input)
(car
(extremum input
... | |
0e916116a120fd88fddb3831659744994602ee912d57bfe69984d3e6ade321c6 | Ptival/yugioh | GameEffects.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
# LANGUAGE QuasiQuotes #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
module YuGiOh.GameEffects
( chooseTribute,
)
where
import Data.String.Interpolate
import Polysemy (Member, Sem)
import Polysemy... | null | https://raw.githubusercontent.com/Ptival/yugioh/855e8f22c3ff322c7ca1d0a1fa96c50a54724aeb/lib/YuGiOh/GameEffects.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE GADTs # | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE QuasiQuotes #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
module YuGiOh.GameEffects
( chooseTribute,
)
where
import Data.String.Interpolate
import Polysemy (Member, Sem)
import Polysemy.Embed
import Polysemy.State (State, get)
import YuGiOh.... |
bc28e55f51288aad03ac5686ee33398dbd4f6f8eba452b82c2a7a06ad050e1c2 | rm-hull/wireframes | core_test.cljs | (ns wireframes.core-test
(:use-macros [cljs-test.macros :only [deftest is= is]])
(:require [cljs-test.core :as test]
[inkspot.color :refer [coerce]]))
(deftest bootstrap
(is= (+ 2 2) 4))
| null | https://raw.githubusercontent.com/rm-hull/wireframes/7df78cc6e2040cd0de026795f2e63ad129e4fee5/test/wireframes/core_test.cljs | clojure | (ns wireframes.core-test
(:use-macros [cljs-test.macros :only [deftest is= is]])
(:require [cljs-test.core :as test]
[inkspot.color :refer [coerce]]))
(deftest bootstrap
(is= (+ 2 2) 4))
| |
7c8973b9401f7190a59a4691cb47f6f17fafa15ec9fb3f238b92e1bf272ab262 | greghendershott/frog | util.rkt | #lang racket/base
(require racket/require
(multi-in racket (contract file pretty))
threading
(only-in markdown display-xexpr)
"verbosity.rkt")
(provide pp
display-to-file*
write-to-file*
copy-file*
make-directories-if-needed
delete-file*... | null | https://raw.githubusercontent.com/greghendershott/frog/93d8b442c2e619334612b7e2d091e4eb33995021/frog/private/util.rkt | racket | Less typing, and also returns its value so good for sticking in
threading macros for debugging.
Like display-to-file, but makes directories if needed.
Like write-to-file, but makes directories if needed.
Like delete-file, but: (a) Doesn't raise exn when file doesn't
exist. (b) Does a prn1 "Deleted <path>" where t... | #lang racket/base
(require racket/require
(multi-in racket (contract file pretty))
threading
(only-in markdown display-xexpr)
"verbosity.rkt")
(provide pp
display-to-file*
write-to-file*
copy-file*
make-directories-if-needed
delete-file*... |
5ef18701daf5dc0222b691524e3bfa75186b9c324f35659b7dbc36473b0b3fd8 | haskell/haskell-language-server | Outline.hs | {-# LANGUAGE CPP #-}
# LANGUAGE DuplicateRecordFields #
# LANGUAGE GADTs #
{-# LANGUAGE RankNTypes #-}
module Development.IDE.LSP.Outline
( moduleOutline
)
where
import Control.Monad.IO.Class
import Data.Functor
import Data.Generics ... | null | https://raw.githubusercontent.com/haskell/haskell-language-server/388fd40ade4256b1a1556d2f01a53a91cd5cc88b/ghcide/src/Development/IDE/LSP/Outline.hs | haskell | # LANGUAGE CPP #
# LANGUAGE RankNTypes #
_ltop is 0 0 0 0
| Extract the record fields of a constructor
| Wrap the Document imports into a hierarchical outline for
a better overview of symbols in scope.
If there are no imports, then no hierarchy will be created.
safe because if we have... |
# LANGUAGE DuplicateRecordFields #
# LANGUAGE GADTs #
module Development.IDE.LSP.Outline
( moduleOutline
)
where
import Control.Monad.IO.Class
import Data.Functor
import Data.Generics hiding (Prefix)
import Data.Maybe
import qualified Data... |
b7d660115d2cf5627ee3ffe1d5f313427988c95c303b6a30e8575ca30f331f83 | fredlund/McErlang | mce_alg_safety.erl | Copyright ( c ) 2009 ,
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
%% modification, are permitted provided that the following conditions are met:
%% %% Redistributions of source code must retain the above copyright
%% notice, this list of conditions a... | null | https://raw.githubusercontent.com/fredlund/McErlang/25b38a38a729fdb3c3d2afb9be016bbb14237792/algorithms/src/mce_alg_safety.erl | erlang | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
%% Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
%% Redi... | Copyright ( c ) 2009 ,
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR
@author
2006 - 2009
@private
Implementation of a simple depth - first verification algorithm for
-module(mce_alg_saf... |
39485a12465fdc85a963dc32225d82852199c921959e28a1539d35e8017eefa6 | dakrone/clj-http | core_test.clj | (ns clj-http.test.core-test
(:require [cheshire.core :as json]
[clj-http.client :as client]
[clj-http.conn-mgr :as conn]
[clj-http.core :as core]
[clj-http.util :as util]
[clojure.java.io :refer [file]]
[clojure.test :refer :all]
[rin... | null | https://raw.githubusercontent.com/dakrone/clj-http/5a5288319abab50141b8785625feca8de5a11dfc/test/clj_http/test/core_test.clj | clojure | '("foo" "bar") and ["foo" "bar"] compare as equal with =.
super-basic test for methods that aren't used that often
(deftest t-add-client-params
(testing "Using add-client-params!"
"http.protocol.allow-circular-redirects" false
"http.useragent" "clj-http"}
setps (.getParams... | (ns clj-http.test.core-test
(:require [cheshire.core :as json]
[clj-http.client :as client]
[clj-http.conn-mgr :as conn]
[clj-http.core :as core]
[clj-http.util :as util]
[clojure.java.io :refer [file]]
[clojure.test :refer :all]
[rin... |
9fcca0a320e62c3e6fd487a001f1abe05659608a95d08ffd24b42aaa773e22c8 | msp-strath/feet | NewSemantics.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE TupleSections #
# LANGUAGE PatternSynonyms #
# LANGUAGE DeriveFunctor #
# LANGUAGE GeneralizedNewtypeDeriving #
module Feet.Old.NewSemantics where
import Prelude hiding (fail)
import Data.Char
import Data.Maybe
import Data.List
import Control.Arrow ((***))
import Control.Appl... | null | https://raw.githubusercontent.com/msp-strath/feet/630a3e897c83bde3b1a4d9dfdd98304afaef165f/src/Feet/Old/NewSemantics.hs | haskell | -------- Eval is abstract from here on ----------------------------------------
Evaluation --------------------
------------------
vappend (VAppend clxs zs) ys = VAppend clxs (vappend zs ys)
Quotation --------------------
b is base level, ie the name supply is >= b, and every level >= b
should be converted to an i... | # LANGUAGE FlexibleInstances #
# LANGUAGE TupleSections #
# LANGUAGE PatternSynonyms #
# LANGUAGE DeriveFunctor #
# LANGUAGE GeneralizedNewtypeDeriving #
module Feet.Old.NewSemantics where
import Prelude hiding (fail)
import Data.Char
import Data.Maybe
import Data.List
import Control.Arrow ((***))
import Control.Appl... |
fb9074d9209fbf0a344859031517f990d677871e542f0aa86c23043d68c60e61 | michaelmrose/rdr | project.clj | (defproject rdr "0.1.0-SNAPSHOT"
:description "A handy cli interface to searching and opening books from your calibre library or recently read titles from your library."
:url "none"
:license {:name "GPL-3.0-or-later"
:url "-3.0"}
:plugins [[io.taylorwood/lein-native-image "0.3.0"]]
:dependencies [... | null | https://raw.githubusercontent.com/michaelmrose/rdr/5b2981f4609b3b9d02f7f42f959a5b767476f5fe/project.clj | clojure | (defproject rdr "0.1.0-SNAPSHOT"
:description "A handy cli interface to searching and opening books from your calibre library or recently read titles from your library."
:url "none"
:license {:name "GPL-3.0-or-later"
:url "-3.0"}
:plugins [[io.taylorwood/lein-native-image "0.3.0"]]
:dependencies [... | |
51eca342e4c1af0c5120df9de028dc1b35c3626465ecb16748e208771aca1d1e | ucsd-progsys/liquid-fixpoint | UniqifyBinds.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE PatternGuards #
{-# OPTIONS_GHC -Wno-name-shadowing #-}
-- This module makes it so no binds with different sorts have the same name.
module Language.Fixpoint.Solver.UniqifyBinds (renameAll) where
import Language.Fixpoint.Types
import Language.Fixpoint.Solver... | null | https://raw.githubusercontent.com/ucsd-progsys/liquid-fixpoint/021d7af56a39985170c78b07c842b853a6180f77/src/Language/Fixpoint/Solver/UniqifyBinds.hs | haskell | # OPTIONS_GHC -Wno-name-shadowing #
This module makes it so no binds with different sorts have the same name.
import Debug.Trace (trace)
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-----------------------... | # LANGUAGE DeriveGeneric #
# LANGUAGE PatternGuards #
module Language.Fixpoint.Solver.UniqifyBinds (renameAll) where
import Language.Fixpoint.Types
import Language.Fixpoint.Solver.Sanitize (dropDeadSubsts)
import Language.Fixpoint.Misc (fst3, mlookup, snd3)
import qualified D... |
f7de1f8b6dd329ce30f56431158d863f243311c2aebb827700e600491c4a0428 | halcat0x15a/one | util.cljs | (ns one.core.util
(:require [one.core.lens :as lens]))
(def count-lines (comp count (partial lens/lens-get lens/text)))
(defn count-line [y editor]
(when-let [line (lens/lens-get (lens/line y) editor)]
(count line)))
(defn insert-newline
([x y text]
(let [[text' text''] (split-at y text)
li... | null | https://raw.githubusercontent.com/halcat0x15a/one/b37197ccf47c1dc1fb0e12f1cb2bee8491d07d80/src-cljs/one/core/util.cljs | clojure | (ns one.core.util
(:require [one.core.lens :as lens]))
(def count-lines (comp count (partial lens/lens-get lens/text)))
(defn count-line [y editor]
(when-let [line (lens/lens-get (lens/line y) editor)]
(count line)))
(defn insert-newline
([x y text]
(let [[text' text''] (split-at y text)
li... | |
eb8e2ed6bdb153ba9d3368a30f8b8bccaebe03cb48032def75e56502ca425bb1 | alonsodomin/groot | TaskDef.hs | # LANGUAGE LambdaCase #
module Groot.Exception.TaskDef where
import Control.Exception.Lens
import Control.Lens
import Control.Monad.Catch hiding (Handler)
import Data.Typeable
import Groot.Types
data TaskDefException =
TaskDefNotFound TaskDefNotFound
| Fail... | null | https://raw.githubusercontent.com/alonsodomin/groot/040215db2797bef27b1c336ea826a58ddd45f8de/src/Groot/Exception/TaskDef.hs | haskell | # LANGUAGE LambdaCase #
module Groot.Exception.TaskDef where
import Control.Exception.Lens
import Control.Lens
import Control.Monad.Catch hiding (Handler)
import Data.Typeable
import Groot.Types
data TaskDefException =
TaskDefNotFound TaskDefNotFound
| Fail... | |
40283f5f7a7d843eadff30d518d767929426c56e41f3d16052d61ddd9f848370 | sebastiaanvisser/clay | PositionSpec.hs | {-# LANGUAGE OverloadedStrings, OverloadedLists #-}
module Clay.PositionSpec where
import Test.Hspec
import Clay
import Common
spec :: Spec
spec = do
describe "position (Mozilla examples)" $ do
describe "static" $ do
"{position:static}" `shouldRenderAsFrom`
"{position:static}" $
position... | null | https://raw.githubusercontent.com/sebastiaanvisser/clay/16f55a5c6ab7fd98e39cedf852bd3400a02ac45f/spec/Clay/PositionSpec.hs | haskell | # LANGUAGE OverloadedStrings, OverloadedLists # | module Clay.PositionSpec where
import Test.Hspec
import Clay
import Common
spec :: Spec
spec = do
describe "position (Mozilla examples)" $ do
describe "static" $ do
"{position:static}" `shouldRenderAsFrom`
"{position:static}" $
position static
describe "absolute" $ do
"{positio... |
08a91e49daa6eb7c739a09fdf29aac15d55169c6e6d40d55c8c650c4d94ae13f | jesperes/aoc_erlang | aoc2020_day13.erl | %%%=============================================================================
%%% @doc Advent of code puzzle solution
%%% @end
%%%=============================================================================
-module(aoc2020_day13).
-behavior(aoc_puzzle).
-export([ parse/1
, solve1/1
, solve2/1
... | null | https://raw.githubusercontent.com/jesperes/aoc_erlang/ec0786088fb9ab886ee57e17ea0149ba3e91810a/src/2020/aoc2020_day13.erl | erlang | =============================================================================
@doc Advent of code puzzle solution
@end
=============================================================================
------------------------------------------------------------------------------
@doc info/0
Returns info about this puzz... | -module(aoc2020_day13).
-behavior(aoc_puzzle).
-export([ parse/1
, solve1/1
, solve2/1
, info/0
]).
-include("aoc_puzzle.hrl").
-spec info() -> aoc_puzzle().
info() ->
#aoc_puzzle{ module = ?MODULE
, year = 2020
, day = 13
, name = "Shuttle Se... |
2e983a0f7a95ebfcdafca143d1ebd7258293a2efeda8538f8a78e79e314ee2f9 | justone/brisk | opts.clj | (ns brisk.lib.opts
(:require
[clojure.string :as string]
[brisk.lib.string]
))
(defn find-errors
[parsed]
(let [{:keys [errors options]} parsed
{:keys [help]} options]
(cond
help
{:exit 0}
errors
{:message (string/join "\n" errors)
:exit 1}
)))
(def... | null | https://raw.githubusercontent.com/justone/brisk/60854c11130ebb635e1d75a2d1b3ac33b59720f0/src/brisk/lib/opts.clj | clojure | (ns brisk.lib.opts
(:require
[clojure.string :as string]
[brisk.lib.string]
))
(defn find-errors
[parsed]
(let [{:keys [errors options]} parsed
{:keys [help]} options]
(cond
help
{:exit 0}
errors
{:message (string/join "\n" errors)
:exit 1}
)))
(def... | |
f3efe1c6c838f75ac538d3ac92091a0ab78ec9c2b2ba66071bb91e0d4a0b9310 | typelead/eta | tcfail202.hs | trac # 2307
This was accepted due to a bug in GHC
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies ,
UndecidableInstances , IncoherentInstances ,
FlexibleInstances #
UndecidableInstances, IncoherentInstances,
FlexibleInstances #-}
module Foo where
... | null | https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/fail/tcfail202.hs | haskell | trac # 2307
This was accepted due to a bug in GHC
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies ,
UndecidableInstances , IncoherentInstances ,
FlexibleInstances #
UndecidableInstances, IncoherentInstances,
FlexibleInstances #-}
module Foo where
... | |
790b50c683c69c432713d6c7bcce5332f4d3df382c4e02cf862189718b8c35bf | B-Lang-org/bsc | Id.hs | # LANGUAGE FlexibleInstances , DeriveDataTypeable #
{-# OPTIONS_GHC -fwarn-name-shadowing -fwarn-missing-signatures #-}
module Id(
Id,
mkId,
mkQId,
qualId,
dummyId,
emptyId,
unq_eqs,
getIdString,
getIdQualString,
getIdPosition,
isE... | null | https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/Id.hs | haskell | # OPTIONS_GHC -fwarn-name-shadowing -fwarn-missing-signatures #
mk_homeless_qid,
import Util(traces)
# A new data type enumerating the various properties an Id might have.
interface ready signal
generated interface name
commutative type constructor
is a dictionary
id for temporary renaming
a _nn suffix has bee... | # LANGUAGE FlexibleInstances , DeriveDataTypeable #
module Id(
Id,
mkId,
mkQId,
qualId,
dummyId,
emptyId,
unq_eqs,
getIdString,
getIdQualString,
getIdPosition,
isEmptyId,
isUnqualId,
getIdFString,
setIdQual,... |
5940478ecd04682b0468c69fe9a47bb773b16faeea3fd43b43a8ce1f67e7bec6 | tsloughter/kuberl | kuberl_v1beta2_stateful_set_update_strategy.erl | -module(kuberl_v1beta2_stateful_set_update_strategy).
-export([encode/1]).
-export_type([kuberl_v1beta2_stateful_set_update_strategy/0]).
-type kuberl_v1beta2_stateful_set_update_strategy() ::
#{ 'rollingUpdate' => kuberl_v1beta2_rolling_update_stateful_set_strategy:kuberl_v1beta2_rolling_update_stateful_set_str... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta2_stateful_set_update_strategy.erl | erlang | -module(kuberl_v1beta2_stateful_set_update_strategy).
-export([encode/1]).
-export_type([kuberl_v1beta2_stateful_set_update_strategy/0]).
-type kuberl_v1beta2_stateful_set_update_strategy() ::
#{ 'rollingUpdate' => kuberl_v1beta2_rolling_update_stateful_set_strategy:kuberl_v1beta2_rolling_update_stateful_set_str... | |
f178f2c9eaa20134dcc5db52fa56a3acc12c61501d62ec224db6ed25f52cbca3 | RileyEv/CircuitFlow | example.hs | {-# OPTIONS_GHC -fprint-potential-instances #-}
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Csv
import Data.List.Unique (count_)
import... | null | https://raw.githubusercontent.com/RileyEv/CircuitFlow/707def18b54c7fded53a180d8ea9e06405cdd8d7/examples/circuit-linear/app/example.hs | haskell | # OPTIONS_GHC -fprint-potential-instances #
# LANGUAGE DeriveAnyClass #
# LANGUAGE KindSignatures #
# LANGUAGE OverloadedStrings # | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
module Main where
import Data.Csv
import Data.List.Unique (count_)
import qualified Data.Vector as V (fromList)
import GHC.Generics
import Pipeline
import Prelude ... |
017456b1ec6bf569b532947e9bae72631fb869d29251fdc7bd0155d7025bfa5e | jvf/scalaris | rr_eval_point.erl | 2012 - 2015 Zuse Institute Berlin
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, software
di... | null | https://raw.githubusercontent.com/jvf/scalaris/c069f44cf149ea6c69e24bdb08714bda242e7ee0/test/rr_eval_point.erl | erlang | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language gov... | 2012 - 2015 Zuse Institute Berlin
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
-module(rr_eval_point).
-include("rr_records.hrl").
-export([generate_ep/3, generate_ep_rounds/4, column_names/0, m... |
85511649bd4c0ddaa48b69154c612d2210cd4ab0620723c5155ed8eade4c895f | ocaml/dune | clflags.mli | (** Store original source directory in dune-package metadata *)
val store_orig_src_dir : bool ref
(** Whether we are ignoring rules with [(mode promote)] *)
val ignore_promoted_rules : bool ref
(** Promote the generated [<package>.install] files to the source tree *)
val promote_install_files : bool ref
* Re - expor... | null | https://raw.githubusercontent.com/ocaml/dune/4edb5ff19aa3efcabdc8194ef7f837e49866517b/src/dune_rules/clflags.mli | ocaml | * Store original source directory in dune-package metadata
* Whether we are ignoring rules with [(mode promote)]
* Promote the generated [<package>.install] files to the source tree
* Print debug info about artifact substitution | val store_orig_src_dir : bool ref
val ignore_promoted_rules : bool ref
val promote_install_files : bool ref
* Re - exported form [ ]
val display : Dune_engine.Display.t ref
* Re - exported form [ ]
val capture_outputs : bool ref
val debug_artifact_substitution : bool ref
|
095e23d83cf07b38aa0b571954c2c202b5bb2df23975625fcb82b9d996c26bb3 | nuvla/api-server | data_object_public.cljc | (ns sixsq.nuvla.server.resources.spec.data-object-public
(:require
[clojure.spec.alpha :as s]
[sixsq.nuvla.server.resources.spec.common :as common]
[sixsq.nuvla.server.resources.spec.core :as core]
[sixsq.nuvla.server.resources.spec.data-object :as do]
[sixsq.nuvla.server.util.spec :as su]
[sp... | null | https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/data_object_public.cljc | clojure | (ns sixsq.nuvla.server.resources.spec.data-object-public
(:require
[clojure.spec.alpha :as s]
[sixsq.nuvla.server.resources.spec.common :as common]
[sixsq.nuvla.server.resources.spec.core :as core]
[sixsq.nuvla.server.resources.spec.data-object :as do]
[sixsq.nuvla.server.util.spec :as su]
[sp... | |
956b4d8c520e0cacbc5230466bb31523c21d2d598df340490868f6584d89be65 | pokepay/aws-sdk-lisp | appstream.lisp | ;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(uiop:define-package #:aws-sdk/services/appstream
(:use)
(:use-reexport #:aws-sdk/services/appstream/api))
| null | https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/836b87df520391478a19462443342dc56f4b3f2c/services/appstream.lisp | lisp | DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. |
(uiop:define-package #:aws-sdk/services/appstream
(:use)
(:use-reexport #:aws-sdk/services/appstream/api))
|
4b053bd709a2d59b2d6503c852b9e8c36e3893952f749fefc77139abefee9ea5 | ghc/packages-Cabal | A.hs | module A where
import Quxbaz
| null | https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/Backpack/Includes5/A.hs | haskell | module A where
import Quxbaz
| |
34b1b9047c7d43829d74bbf74d592884e1fd0870febb7209263681e1c38a87d0 | bobzhang/fan | type.ml | type t = [ A of int | B of t ];
type t2 = [ A of int | B of t ];
type t3 = [ A of int | B of t ];
| null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/fixtures/type.ml | ocaml | type t = [ A of int | B of t ];
type t2 = [ A of int | B of t ];
type t3 = [ A of int | B of t ];
| |
aa2f64744ac0bbb7c1e6f8cc0f99272032e0f36006890b4fdcc0552ae6daad1f | ekmett/colorimetry | RGB.hs | module Nut.Color.Spectrum.RGB
( RGB(..)
) where
import Control.Applicative
import Data.Foldable
import Data.Traversable
import Data.Monoid
import Nut.Numeric.Double
import Nut.Numeric.Float
data RGB a = RGB a a a
instance Functor RGB where
fmap f (RGB r g b) = RGB (f r) (f g) (f b)
instance Applicative RGB wh... | null | https://raw.githubusercontent.com/ekmett/colorimetry/c1dd19051ec33c2f4afdb5e95af364bcf43719fe/Colorimetry/Spectrum/RGB.hs | haskell | module Nut.Color.Spectrum.RGB
( RGB(..)
) where
import Control.Applicative
import Data.Foldable
import Data.Traversable
import Data.Monoid
import Nut.Numeric.Double
import Nut.Numeric.Float
data RGB a = RGB a a a
instance Functor RGB where
fmap f (RGB r g b) = RGB (f r) (f g) (f b)
instance Applicative RGB wh... | |
c73e2ca5b1f2a388ed4f4ebbffd651df797a4e2005f61ef1d6735d117671c23b | GlideAngle/flare-timing | Radius.hs | module Flight.Zone.Radius
( Radius(..)
, QRadius
, RawRadius
) where
import GHC.Generics (Generic)
import "newtype" Control.Newtype (Newtype(..))
import Data.Aeson (ToJSON(..), FromJSON(..))
import Data.UnitsOfMeasure (u)
import Data.UnitsOfMeasure.Internal (Quantity(..))
import Flight.Units ()
import... | null | https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/zone/library/Flight/Zone/Radius.hs | haskell | module Flight.Zone.Radius
( Radius(..)
, QRadius
, RawRadius
) where
import GHC.Generics (Generic)
import "newtype" Control.Newtype (Newtype(..))
import Data.Aeson (ToJSON(..), FromJSON(..))
import Data.UnitsOfMeasure (u)
import Data.UnitsOfMeasure.Internal (Quantity(..))
import Flight.Units ()
import... | |
e8956383e1d4c40ca372ff699b2c98ff2fdb61e3e248fd6770baa6757965fb3f | simplegeo/erlang | leex.erl | Copyright ( c ) 2008,2009 . All rights reserved .
%%
%% Redistribution and use in source and binary forms, with or without
%% modification, are permitted provided that the following conditions
%% are met:
%%
1 . Redistributions of source code must retain the above copyright
%% notice, this list of conditions and ... | null | https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/parsetools/src/leex.erl | erlang |
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials pr... | Copyright ( c ) 2008,2009 . All rights reserved .
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
COPYRIGHT HOLDERS OR FOR ANY DIRECT , INDIRECT ,... |
a8b667ae0b21402c1d3e608ca35314b1ea5d77f9286179144539f919de0b3a71 | ocsigen/ocaml-eliom | pervasives.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/stdlib/pervasives.mli | 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
* { 6 Exceptions }
external raise : exn -> 'a = "%raise"
external raise_notrace : exn -> 'a = "%raise... |
a582243f72df1501ccaa944124f81dddfe4c18a09a9a3b304e73038de8a72805 | well-typed-lightbulbs/ocaml-esp32 | dynlink_types.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/otherlibs/dynlink/dynlink_types.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
and , Europe
Copyright 1996 Institut National de Recherche en Informatique et
Copyright 2017 - -2018 Jane Street Group LLC
the GNU Lesser General Public License version 2.1 , with... |
b17736e3e4098a30d304408f32d9d864984fa42ce353249fa6b3cf19618e296c | rtrusso/scp | data.scm | (need sasm/machdesc)
(define (x86-32-bit-intconst x)
(if (>= x 0)
(number->string x 16)
(let ((bin (string->list (number->string (- x) 2))))
(define (fix-bin)
;; needed to detect overflow when there is no tower
(if (and (pair? bin) (char=? (car bin) #\-))
... | null | https://raw.githubusercontent.com/rtrusso/scp/d647639ecb8e5a87c0a31a7c9d4b6a26208fbc53/src/sasm/nasmx86/data.scm | scheme | needed to detect overflow when there is no tower
(display "bin: ")
(newline)
(display "fixed-bin: ")
(display fixed-bin)
(newline)
(display "loop len:")
(display len)
(newline)
(display "negated: ")
(display negated)
(newline)
(display "twos-comp: ")
(display twos-comp)
(newline)
(display "x:")
(displa... | (need sasm/machdesc)
(define (x86-32-bit-intconst x)
(if (>= x 0)
(number->string x 16)
(let ((bin (string->list (number->string (- x) 2))))
(define (fix-bin)
(if (and (pair? bin) (char=? (car bin) #\-))
(cdr bin)
bin))
( display )
... |
451f116c643d423cad45371017085439bdcbc3d3ab68398dd1beb5d634b4e124 | Innf107/polaris | promise.ml | open Thread
open Util
type 'a result = Finished of 'a
| Failed of exn
| Pending
type 'a t = {
thread : Thread.t;
result_ref : 'a result ref;
}
module ThreadMap = Map.Make(Int)
let remaining : Thread.t ThreadMap.t ref =
ref ThreadMap.empty
let create f =
let result = ref Pe... | null | https://raw.githubusercontent.com/Innf107/polaris/122d561c1f5c82944f03394e3ca8c391a9148732/src/promise.ml | ocaml | open Thread
open Util
type 'a result = Finished of 'a
| Failed of exn
| Pending
type 'a t = {
thread : Thread.t;
result_ref : 'a result ref;
}
module ThreadMap = Map.Make(Int)
let remaining : Thread.t ThreadMap.t ref =
ref ThreadMap.empty
let create f =
let result = ref Pe... | |
5b92c91f32aa3ac3bcf3e3b62aaaca83fbaf5ad2748510869321a46aa8c90a47 | exoscale/clojure-kubernetes-client | apps_v1beta1_deployment_strategy.clj | (ns clojure-kubernetes-client.specs.apps-v1beta1-deployment-strategy
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.apps-v1beta1-rolling-update-deployment :refer :all]
)
(:import (java.io File)))
(declare apps-v1beta1-deploym... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/apps_v1beta1_deployment_strategy.clj | clojure | (ns clojure-kubernetes-client.specs.apps-v1beta1-deployment-strategy
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.apps-v1beta1-rolling-update-deployment :refer :all]
)
(:import (java.io File)))
(declare apps-v1beta1-deploym... | |
2264890c0f503779f637c03e567635fecfa3375dab39ca7117b17c227b98cc27 | darkleaf/publicator | post_test.clj | (ns publicator.domain.aggregates.post-test
(:require
[publicator.domain.aggregates.post :as sut]
[publicator.domain.test.fakes :as fakes]
[publicator.utils.test.instrument :as instrument]
[publicator.domain.test.factories :as factories]
[publicator.domain.abstractions.aggregate :as aggregate]
[cloju... | null | https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/core/test/publicator/domain/aggregates/post_test.clj | clojure | (ns publicator.domain.aggregates.post-test
(:require
[publicator.domain.aggregates.post :as sut]
[publicator.domain.test.fakes :as fakes]
[publicator.utils.test.instrument :as instrument]
[publicator.domain.test.factories :as factories]
[publicator.domain.abstractions.aggregate :as aggregate]
[cloju... | |
b4b944038d85d368af19f195ac6852af804e45941a911f7409827f3d3515cedd | bytekid/mkbtt | stream.ml | Copyright 2008 , Christian Sternagel ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 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 ve... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/util/src/stream.ml | ocaml | ** OPENS *******************************************************************
** MODULES *****************************************************************
** MODULE TYPES ************************************************************
** MODULES *****************************************************************
************... | Copyright 2008 , Christian Sternagel ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 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 ve... |
ed00efda6e047a528147bfa95ae5f490e4d7d2d907b3069a3c6065f670a78ce4 | scmlab/gcl | Diagnostic.hs | {-# LANGUAGE OverloadedStrings #-}
module LSP.Diagnostic where
import Data.Loc
import Data.Text (Text)
import qualified Data.Text as Text
import Error (Error (..))
import GCL.Type (TypeError (..))
import GCL.WP (StructError (..), StructWarning (..))
import Language.LSP.Types hiding (TextDocumentSyncClientCapabilities... | null | https://raw.githubusercontent.com/scmlab/gcl/a7b100028c5ac1147fb508aa72da722038ba4d51/src/LSP/Diagnostic.hs | haskell | # LANGUAGE OverloadedStrings #
we only mark the opening tokens ("do" and "if") for loops & conditionals
we only mark the closing tokens ("od" and "fi") for loops & conditionals |
module LSP.Diagnostic where
import Data.Loc
import Data.Text (Text)
import qualified Data.Text as Text
import Error (Error (..))
import GCL.Type (TypeError (..))
import GCL.WP (StructError (..), StructWarning (..))
import Language.LSP.Types hiding (TextDocumentSyncClientCapabilities (..))
import Pretty
import Syntax.... |
3be51549eadcd8f735f26a754e9e0dad478e1cbd31c970c0b1fab9e38bc7eadc | district0x/district-server-smart-contracts | smart_contracts.cljs | (ns district.server.smart-contracts
(:require [cljs-web3-next.core :as web3-core]
[cljs-web3-next.eth :as web3-eth]
[cljs-web3-next.helpers :as web3-helpers]
[cljs.core.async :refer [<! >! timeout] :as async]
[cljs.core.async.impl.protocols]
[cljs.nodejs :as... | null | https://raw.githubusercontent.com/district0x/district-server-smart-contracts/cc7a0ef736ee286412a8b9c7d8d0de79d98c691c/src/district/server/smart_contracts.cljs | clojure | if we have callbacks registered, fire this event in all of them
if callback returns a promise or chan we block until it resolves | (ns district.server.smart-contracts
(:require [cljs-web3-next.core :as web3-core]
[cljs-web3-next.eth :as web3-eth]
[cljs-web3-next.helpers :as web3-helpers]
[cljs.core.async :refer [<! >! timeout] :as async]
[cljs.core.async.impl.protocols]
[cljs.nodejs :as... |
b7d8f60b09556fe5c54907618c94625eaa11b33c19e5306f7495f566507d491e | clojurecup2014/parade-route | agents.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/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/test_clojure/agents.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 .
Author :
(ns clojure.test-clojure.agents
(:use clojure.test)
(def fragile-wait 1000)
(deftest handle-all-throwables-during-agent-actions
(let [agt (agent nil)]
(try
(await-for fragile-wait agt)
RuntimeException
(is (= 1 (count (agent-errors agt)))... |
2f70d48b73882c2500cbefc5b8b997109d144ef0ef42b851b7c2a68c591c6daf | static-analysis-engineering/codehawk | jCHIntervalArray.ml | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author :
------------------------------------------------------------------------------
The MIT License ( MIT )
... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpoly/jCHIntervalArray.ml | ocaml | chutil
jchlib
jchsys
double indexed array of intervals
double indexed array of type intervals
var could be made-up length variable that is not in the system
var could be made-up length variable that is not in the system
It returns the variables that are singleton in one but not the
* other or are d... | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author :
------------------------------------------------------------------------------
The MIT License ( MIT )
... |
4fc5fa862bd4f5c1562795ed253765c0d2b1852a9c19adafd77b572f34bd7fbc | opencog/opencog | filter-#9.scm | ;; anaphor is "plural"
;; antecedent is "singular"
;; Examples:
" ate an apple . They do not like it . "
" They " should not refer to " "
(define filter-#9
(BindLink
(VariableList
(TypedVariableLink
(VariableNode "$word-inst-antecedent")
(TypeNode "Word... | null | https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/anaphora/rules/filters/filter-%239.scm | scheme | anaphor is "plural"
antecedent is "singular"
Examples:
filter |
" ate an apple . They do not like it . "
" They " should not refer to " "
(define filter-#9
(BindLink
(VariableList
(TypedVariableLink
(VariableNode "$word-inst-antecedent")
(TypeNode "WordInstanceNode")
)
(TypedVariableLink
... |
f1d585a0dbceff7f3069a5aa81a459b778d22d866acd8a65627dd9a1bc297bd8 | rescript-lang/rescript-compiler | pparse_driver.mli | val parse_implementation : string -> Parsetree.structure
val parse_interface : string -> Parsetree.signature
| null | https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/core/pparse_driver.mli | ocaml | val parse_implementation : string -> Parsetree.structure
val parse_interface : string -> Parsetree.signature
| |
cf014df76f3d1873d9efc1582a1b1316aa26c317c3e033ef2a9c9ad3563175a9 | korya/efuns | opttable.mli | (***********************************************************************)
(* *)
(* ____ *)
(* *)
Fabrice Le Fessa... | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/gwml/opttable.mli | ocaml | *********************************************************************
____
... | Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt
Copyright 1999 Institut National de Recherche en Informatique et
Automatique . Distributed only by permission .
type 'a t
val create : unit -> 'a t
val find : 'a t -> string -> 'a
val add : 'a t -> string -> 'a... |
e6e9a1c1d6de0dbf94ffeddd4ebd771509571f9ed7f0e38a119eba81391f6b19 | keithfancher/tvmv | EnvSpec.hs | module Exec.EnvSpec (spec) where
import Data.Either (isLeft)
import Exec.Env
import Test.Hspec
spec :: Spec
spec = do
describe "populateAPIKey" $ do
it "defaults to the key from CLI args, if available" $ do
populateAPIKey (Just "cliArgKey") fullyPopulatedEnv
`shouldBe` Right "cliArgKey"
it "d... | null | https://raw.githubusercontent.com/keithfancher/tvmv/bf6e12555074a216f517c30a2a4213a7160a4606/test/unit/Exec/EnvSpec.hs | haskell | module Exec.EnvSpec (spec) where
import Data.Either (isLeft)
import Exec.Env
import Test.Hspec
spec :: Spec
spec = do
describe "populateAPIKey" $ do
it "defaults to the key from CLI args, if available" $ do
populateAPIKey (Just "cliArgKey") fullyPopulatedEnv
`shouldBe` Right "cliArgKey"
it "d... | |
1cc65dc139a60595e2ed3173bfa0b76f58bd4f914db31d439d1f1c6435a90419 | jeromesimeon/Galax | ast_walker_rewrite.ml | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | null | https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/ast_walker/ast_walker_rewrite.ml | ocaml | *********************************************************************
GALAX
XQuery Engine
... | Copyright 2001 - 2007 .
$ I d : ast_walker_rewrite.ml , v 1.39 2007/10/16 01:25:34
Module : Ast_walker_rewrite
Description :
This module implements a generic tree walker , which recursively
applies rewrite rules until a fix - point is reache... |
4d8b84c203cbf546264136dfcccc496dd36138cac7987cfea5e15d773edd4f64 | MLstate/opalang | surfaceAstHelper.ml |
Copyright © 2011 - 2013 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be us... | null | https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/opalang/surfaceAstHelper.ml | ocaml | depends
let (|>) = InfixOperator.(|>)
functions wrapping expressions constructors
functions wrapping code_elt constructors
transitional
transitional
functions wrapping pat_node constructors
functions wrapping type_node constructors
functions wrapping other type constructors
extracts 'foo' from '_ -> f... |
Copyright © 2011 - 2013 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be us... |
67f6ad65abf903ec03f9a23aaa5ae6025dcb79b4d2f2552df1cff2572c7fc5c6 | timjs/tophat-haskell | Simulate.hs | module Task.Simulate where
| null | https://raw.githubusercontent.com/timjs/tophat-haskell/665d620ded5b61c454b6c50b8590f0d3f21c055f/src/Task/Simulate.hs | haskell | module Task.Simulate where
| |
d75b537d85cae5144a830ef82d8199c05e0ba955ca09852a3d6be5e713874ea4 | nextjournal/advent-of-clerk | day_04.clj | # 🎄 Advent of Clerk : Day 4
(ns advent-of-clerk.day-04
(:require [nextjournal.clerk :as clerk]))
| null | https://raw.githubusercontent.com/nextjournal/advent-of-clerk/6b491cb5bd47420cfc1164bbf03d4d66b364773e/src/advent_of_clerk/day_04.clj | clojure | # 🎄 Advent of Clerk : Day 4
(ns advent-of-clerk.day-04
(:require [nextjournal.clerk :as clerk]))
| |
986eac6881463916915898352d4cf554c5bac12d9125e484adda5e022dcfce5b | janestreet/core | test_char.ml | open! Core
open! Import
open! Char
let%test_module "Caseless Comparable" =
(module struct
let%test _ =
Int.equal (Base.Map.find_exn (Caseless.Map.of_alist_exn [ 'a', 4; 'b', 5 ]) 'A') 4
;;
let%test _ = Base.Set.mem (Caseless.Set.of_list [ 'a'; 'b' ]) 'A'
let%test _ = Int.equal (Base.Set.length... | null | https://raw.githubusercontent.com/janestreet/core/4b6635d206f7adcfac8324820d246299d6f572fe/core/test/test_char.ml | ocaml | open! Core
open! Import
open! Char
let%test_module "Caseless Comparable" =
(module struct
let%test _ =
Int.equal (Base.Map.find_exn (Caseless.Map.of_alist_exn [ 'a', 4; 'b', 5 ]) 'A') 4
;;
let%test _ = Base.Set.mem (Caseless.Set.of_list [ 'a'; 'b' ]) 'A'
let%test _ = Int.equal (Base.Set.length... | |
72ce1370f029a66665b764a927d0515a1aa186a1c9cec5a511d30b167e08da5a | zkincaid/duet | abstract.mli | (** Symbolic abstraction routines. *)
open Syntax
* [ affine_hull srk phi symbols ] computes a basis for the affine hull of phi ,
projected onto the given set of symbols . The basis is represented as a
list of terms , with the interpretation that a point [ p ] belongs to the
affine hull if every te... | null | https://raw.githubusercontent.com/zkincaid/duet/d204e01acc3662477abe664e8c24ce4e8abc73e9/srk/src/abstract.mli | ocaml | * Symbolic abstraction routines.
* [boxify srk phi terms] computes the strongest formula of the form
[/\ { lo <= t <= hi : t in terms }]
that is implied by [phi].
* Domains must satisfy the ascending chain condition, and are
equipped with a function [of_model] that computes the best
abstraction of a... | open Syntax
* [ affine_hull srk phi symbols ] computes a basis for the affine hull of phi ,
projected onto the given set of symbols . The basis is represented as a
list of terms , with the interpretation that a point [ p ] belongs to the
affine hull if every term in the list evaluates to 0 at [ p ]... |
538c1432a91661c2c15f18a07af7acaa05c214064f21ac90057368b85b07233c | AdaCore/why3 | why3session_lib.mli | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
(* ... | null | https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/why3session/why3session_lib.mli | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
General Public License version 2.1 , with the special exception
open Why3
open Whyconf
type spec_list = Getopt.opt list
type cmd =
{
cmd_spec : spec_list;
... |
c33463588274ed540a908323e38771c41d161a195f7a3a2b3e2e15b73d25eb36 | haskus/haskus-system | Arg.hs | -- | Helper class to pass parameters to system calls
module Haskus.System.Linux.Internals.Arg
( Arg (..)
)
where
import Haskus.Number.Word
import Haskus.Number.Int
import Haskus.Binary.CTypes
import Foreign.Ptr (Ptr, ptrToWordPtr)
-- | Parameters that can be directly passed to system calls
class Arg a where
... | null | https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/System/Linux/Internals/Arg.hs | haskell | | Helper class to pass parameters to system calls
| Parameters that can be directly passed to system calls | module Haskus.System.Linux.Internals.Arg
( Arg (..)
)
where
import Haskus.Number.Word
import Haskus.Number.Int
import Haskus.Binary.CTypes
import Foreign.Ptr (Ptr, ptrToWordPtr)
class Arg a where
toArg :: a -> Int64
instance Arg Bool where
toArg True = 1
toArg False = 0
instance Arg Int wher... |
ae48dd105b5fef9225960cd6c6d926a16c4183b913d9e99d187e6eb672210eb3 | ivanperez-keera/Yampa | Diagnostics.hs | -- |
Module : . Diagnostics
Copyright : ( c ) , 2014 - 2022
( c ) , 2007 - 2012
( c ) , 2005 - 2006
( c ) and , Yale University , 2003 - 2004
-- License : BSD-style (see the LICENSE file in the distribution)
--
-- Maintainer :
-- Sta... | null | https://raw.githubusercontent.com/ivanperez-keera/Yampa/e00c94f39ceaa017d0c5f48c5f504da3ee0c15fa/yampa/src/FRP/Yampa/Diagnostics.hs | haskell | |
License : BSD-style (see the LICENSE file in the distribution)
Maintainer :
Stability : provisional
Portability : portable
| Module : . Diagnostics
Copyright : ( c ) , 2014 - 2022
( c ) , 2007 - 2012
( c ) , 2005 - 2006
( c ) and , Yale University , 2003 - 2004
Standardized error - reporting for Yampa
module FRP.Yampa.Diagnostics where
| Reports an error due ... |
8c49cfb46bf84c8c971471b95b486d810abb4564afaaae36e975603d4627d402 | logseq/mldoc | table.ml | open Angstrom
open Parsers
open Prelude
open Type
(* -Groups.html#Column-Groups *)
| N | N^2 | N^3 | N^4 | sqrt(n ) | sqrt[4](N ) |
|---+-----+-----+-----+---------+------------|
| / | < | | > | < | > |
| 1 | 1 | 1 | 1 | 1 | 1 |
| 2 | 4 | 8 |... | null | https://raw.githubusercontent.com/logseq/mldoc/376bcdca3fef551d233ce8ebdc618e06edfe2e44/lib/syntax/table.ml | ocaml | -Groups.html#Column-Groups
-syntax/#alignment
| Syntax | Description | Test Text |
| :--- | :----: | ---: |
| Header | Title | Here's this |
| Paragraph | Text | And more |
*
TODO: markdown add alignment support
add '|' to support markdown
new row
sepa... | open Angstrom
open Parsers
open Prelude
open Type
| N | N^2 | N^3 | N^4 | sqrt(n ) | sqrt[4](N ) |
|---+-----+-----+-----+---------+------------|
| / | < | | > | < | > |
| 1 | 1 | 1 | 1 | 1 | 1 |
| 2 | 4 | 8 | 16 | 1.4142 | 1.1892 | ... |
0971f9b8937f317cb3e353efed8d38550147be4da31d3fc69e19312619a85dee | DATX02-17-26/DATX02-17-26 | SolutionContext.hs | DATX02 - 17 - 26 , automated assessment of imperative programs .
- Copyright , 2017 , see AUTHORS.md .
-
- 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 2
- ... | null | https://raw.githubusercontent.com/DATX02-17-26/DATX02-17-26/f5eeec0b2034d5b1adcc66071f8cb5cd1b089acb/libsrc/SolutionContext.hs | haskell | | The context in which we are investigating a student solution
| `Context` is a functor, obviously
| Get the file path of student and model solutions
Check if the student solution exists
Get the .java files in the model solution directory
| Read the contents from the student and model solution paths
Do some logg... | DATX02 - 17 - 26 , automated assessment of imperative programs .
- Copyright , 2017 , see AUTHORS.md .
-
- 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 2
- ... |
e5fbf9a980a6bbcb57273419230706dfff143b4b23380c5cb45611c14b090fb7 | gtk2hs/gtk2hs | Errors.hs | Compiler Toolkit : basic error management
--
Author :
Created : 20 February 95
--
Version $ Revision : 1.2 $ from $ Date : 2004/11/13 17:26:50 $
--
Copyright ( c ) [ 1995 .. 2000 ]
--
-- This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library... | null | https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/tools/c2hs/base/errors/Errors.hs | haskell |
This library is free software; you can redistribute it and/or
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- DESCRIPTION -------------------------------------... | Compiler Toolkit : basic error management
Author :
Created : 20 February 95
Version $ Revision : 1.2 $ from $ Date : 2004/11/13 17:26:50 $
Copyright ( c ) [ 1995 .. 2000 ]
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation ; eith... |
455d2a61447d4ddd40bec6b83c1ce0901520dfe7a1aefeb1cba370c8d9eaa522 | CardanoSolutions/kupo | Cardano.hs | 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 /.
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE PatternSynonyms #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
modu... | null | https://raw.githubusercontent.com/CardanoSolutions/kupo/81279c36f6f3979122e80d63750ba8482016ac79/src/Kupo/Data/Cardano.hs | haskell | IsBlock
Block
Note that the new collOuts function generates a single output
with an index |txouts{txb}|. | 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 /.
# LANGUAGE AllowAmbiguousTypes #
# LANGUAGE PatternSynonyms #
# LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
modu... |
3f008210031534ce5718a177b5bdb153e54502becd2cdef4eedae2b4de6dcf89 | rohitjha/ProjectEuler | PE006.hs |
Author :
File : PE006.hs
July 7 , 2013
Problem 6 :
The sum of the squares of the first ten natural numbers is ,
1 ^ 2 + 2 ^ 2 + ... + 10 ^ 2 = 385
The square of the sum of the first ten natural numbers is ,
( 1 + 2 + ... + 10)^2 = 55 ^ 2 = 3025
Hence the difference between the sum of the squares... | null | https://raw.githubusercontent.com/rohitjha/ProjectEuler/2f0a46bb1547b06a373c30966bba7a001b932bf4/Haskell/PE006.hs | haskell |
Author :
File : PE006.hs
July 7 , 2013
Problem 6 :
The sum of the squares of the first ten natural numbers is ,
1 ^ 2 + 2 ^ 2 + ... + 10 ^ 2 = 385
The square of the sum of the first ten natural numbers is ,
( 1 + 2 + ... + 10)^2 = 55 ^ 2 = 3025
Hence the difference between the sum of the squares... | |
df9a5ed51b4156436bf48197e2cfbc59021653766555718948966a984a5c0d06 | avsm/ocaml-ssh | ssh_openssh_formats.ml |
* Copyright ( c ) 2005 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... | null | https://raw.githubusercontent.com/avsm/ocaml-ssh/26577d1501e7a43e4b520239b08da114c542eda4/server/ssh_openssh_formats.ml | ocaml |
* Copyright ( c ) 2005 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... | |
01c7b9581a87971ad0c281411dec8be6811c0eb46d872d5fe2cbc0f273fbba0a | haskell-mafia/tinfoil | Signing.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Test.IO.Tinfoil.Signing where
import Data.ByteString (ByteString)
import Disorder.Core (UniquePair(..))
import Disorder.Core.IO (testIO)
import P
import System.... | null | https://raw.githubusercontent.com/haskell-mafia/tinfoil/f46b2ea0b9984ac9a97073932b5584ce0a2e0554/test/Test/IO/Tinfoil/Signing.hs | haskell | # LANGUAGE OverloadedStrings #
good
bad key
bad message
bad key, bad message | # LANGUAGE NoImplicitPrelude #
# LANGUAGE TemplateHaskell #
module Test.IO.Tinfoil.Signing where
import Data.ByteString (ByteString)
import Disorder.Core (UniquePair(..))
import Disorder.Core.IO (testIO)
import P
import System.IO
import Test.QuickChec... |
942186f7c5e171b0aa28e265c5985ed04b2b324b372a539c122250d67d6f858e | OCamlPro/ocaml-top | gui.ml | (**************************************************************************)
(* *)
(* Copyright 2013 OCamlPro *)
(* *)
(* All righ... | null | https://raw.githubusercontent.com/OCamlPro/ocaml-top/8515c086e5891fdf86fee29f7153794d2513d551/src/gui.ml | ocaml | ************************************************************************
Copyright 2013 OCamlPro
All rights reserved. This... | the GNU Public License version 3.0 .
open Tools.Ops
let _ = GtkMain.Main.init()
module Controls = struct
type t = [ `NEW | `OPEN | `SAVE | `SAVE_AS
| `EXECUTE | `EXECUTE_ALL | `STOP | `RESTART | `CLEAR
| `SELECT_COLOR | `ZOOM_IN | `ZOOM_OUT | `FULLSCREEN
... |
6a2a84613779a6c7534963ebe88d17dcb63e076c3eb8c70656448ddbfe84f90e | typelead/etlas | UHC.hs | # LANGUAGE FlexibleContexts #
{-# LANGUAGE RankNTypes #-}
-----------------------------------------------------------------------------
-- |
Module : Distribution . Simple .
Copyright : 2009
-- License : BSD3
--
-- Maintainer :
-- Portability : portable
--
This module contains most of th... | null | https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/Simple/UHC.hs | haskell | # LANGUAGE RankNTypes #
---------------------------------------------------------------------------
|
License : BSD3
Maintainer :
Portability : portable
and installing packages.
Thanks to the authors of the other implementation-specific files, in
inspiration on how to design this module.
-----------... | # LANGUAGE FlexibleContexts #
Module : Distribution . Simple .
Copyright : 2009
This module contains most of the UHC - specific code for configuring , building
particular to , and , for
module Distribution.Simple.UHC (
configure, getInstalledPackages,
buildLib, buildExe, installL... |
e7ef76bb32febf3334dcfce521432dcadbb7d8b68a618f3082f6613f5290c8b2 | monadbobo/ocaml-core | search_foo.mli | open Core.Std
(* stands for a comparison like would be returned by polymorphic compare *)
type comparison = int
(* 'comparable is supposed to indicate a type on which polymorphic compare will not raise
an exception *)
val cmp_fasc : ('a -> 'comparable) -> 'a -> 'a -> comparison
val cmp_fdesc : ('a -> 'comparable) ... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/search_foo.mli | ocaml | stands for a comparison like would be returned by polymorphic compare
'comparable is supposed to indicate a type on which polymorphic compare will not raise
an exception
[f] should return the comparison of its argument with the "good" value. | open Core.Std
type comparison = int
val cmp_fasc : ('a -> 'comparable) -> 'a -> 'a -> comparison
val cmp_fdesc : ('a -> 'comparable) -> 'a -> 'a -> comparison
val maxf : ('a -> 'comparable) -> 'a -> 'a -> 'a
val minf : ('a -> 'comparable) -> 'a -> 'a -> 'a
val in_order : 'a list -> cmp:('a -> 'a -> comparison) -> b... |
dddebf2bea3b48962ddb4928cc81bf5ee32172266e71290bc52ceeffef400153 | oakes/Nightcode | graphics.clj | (ns leiningen.new.graphics
(:require [leiningen.new.templates :as t]))
(defn graphics
[name package-name]
(let [render (t/renderer "graphics")
package-name (t/sanitize (t/multi-segment (or package-name name)))
main-ns (t/sanitize-ns package-name)
data {:app-name name
:name (... | null | https://raw.githubusercontent.com/oakes/Nightcode/2e112c59cddc5fdec96059a08912c73b880f9ae8/resources/leiningen/new/graphics.clj | clojure | (ns leiningen.new.graphics
(:require [leiningen.new.templates :as t]))
(defn graphics
[name package-name]
(let [render (t/renderer "graphics")
package-name (t/sanitize (t/multi-segment (or package-name name)))
main-ns (t/sanitize-ns package-name)
data {:app-name name
:name (... | |
461bb2d36dd92242870dc3f197063f82e66225140448329691803ebe562fbf1c | eslick/cl-registry | charting.lisp | (in-package :flashex)
(define-api-handler (fx-chart :mime "text/html") (token params auth-p)
(let ((question (assoc-get :query params))
(population (assoc-get :pop params))
(style (assoc-get :style params)))
(with-html
(json:encode-json-to-string
(if (equal question "test")
(map-chart *chart1... | null | https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/plugins/flashex/charting.lisp | lisp |
Turn a question into a dataset for the charting widget
SERIES
Discrete Charts
Line Charts
Strings | (in-package :flashex)
(define-api-handler (fx-chart :mime "text/html") (token params auth-p)
(let ((question (assoc-get :query params))
(population (assoc-get :pop params))
(style (assoc-get :style params)))
(with-html
(json:encode-json-to-string
(if (equal question "test")
(map-chart *chart1... |
7414a85dfc10a913121cfe859972c0ab49dc4c92a16137376f94743db3c7ac0f | benl23x5/bmp | BitmapInfo.hs | {-# OPTIONS_HADDOCK hide #-}
module Codec.BMP.BitmapInfo
( BitmapInfo (..)
, getBitmapInfoV3)
where
import Codec.BMP.BitmapInfoV3
import Codec.BMP.BitmapInfoV4
import Codec.BMP.BitmapInfoV5
import Control.Applicative
import Data.Binary
import Data.Binary.Get
-- | A wrapper for the various image h... | null | https://raw.githubusercontent.com/benl23x5/bmp/1a5912f0ea586da6efc16e9de45b315369594799/Codec/BMP/BitmapInfo.hs | haskell | # OPTIONS_HADDOCK hide #
| A wrapper for the various image header types.
| module Codec.BMP.BitmapInfo
( BitmapInfo (..)
, getBitmapInfoV3)
where
import Codec.BMP.BitmapInfoV3
import Codec.BMP.BitmapInfoV4
import Codec.BMP.BitmapInfoV5
import Control.Applicative
import Data.Binary
import Data.Binary.Get
data BitmapInfo
= InfoV3 BitmapInfoV3
| InfoV4 Bitm... |
eca3655677b2f153432d91915c15dea92ec319c87c2b15a03ad97165e5de97e9 | keera-studios/keera-hails | ConditionDirection.hs | -- | Conditions to update a program can go from the view to the model
-- and from the model to the view. Future versions must "ignore" this
-- completely and simply work even if the constraints are of kind
-- Model-to-Model or View-to-View.
--
Copyright : ( C ) Keera Studios Ltd , 2013
-- License : BSD3
Main... | null | https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/keera-hails-mvc-controller/src/Hails/MVC/Controller/ConditionDirection.hs | haskell | | Conditions to update a program can go from the view to the model
and from the model to the view. Future versions must "ignore" this
completely and simply work even if the constraints are of kind
Model-to-Model or View-to-View.
License : BSD3
| Direction of an update condition: view to model, or model to vi... | Copyright : ( C ) Keera Studios Ltd , 2013
Maintainer :
module Hails.MVC.Controller.ConditionDirection where
data ConditionDirection = VM
| MV
|
418a382a50a70630ac401d701c85dfe21bbb68bc8194bcd8124fdc824263a14b | arttuka/reagent-material-ui | link.cljs | (ns reagent-mui.material.link
"Imports @mui/material/Link as a Reagent component.
Original documentation is at -ui/api/link/ ."
(:require [reagent.core :as r]
["@mui/material/Link" :as MuiLink]))
(def link (r/adapt-react-class (.-default MuiLink)))
| null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/link.cljs | clojure | (ns reagent-mui.material.link
"Imports @mui/material/Link as a Reagent component.
Original documentation is at -ui/api/link/ ."
(:require [reagent.core :as r]
["@mui/material/Link" :as MuiLink]))
(def link (r/adapt-react-class (.-default MuiLink)))
| |
1bc91d664b4ffcf2921d7c699e2e82dbfa181760a1f3850ef62afc2c7d10cb31 | vult-dsp/vult | teensyAudio.ml |
The MIT License ( MIT )
Copyright ( c ) 2014
Permission is hereby granted , free of charge , to any person obtaining a copy
of this software and associated documentation files ( the " Software " ) , to deal
in the Software without restriction , including without limitation the rights
... | null | https://raw.githubusercontent.com/vult-dsp/vult/0ae2120a1e245d2b5223af142206b8ee3ab9f75f/src/generators/templates/teensyAudio.ml | ocaml | * Header function
* Implementation function |
The MIT License ( MIT )
Copyright ( c ) 2014
Permission is hereby granted , free of charge , to any person obtaining a copy
of this software and associated documentation files ( the " Software " ) , to deal
in the Software without restriction , including without limitation the rights
... |
87aa87ecaadfe2375f1117cd9d0399d6dbc56c2cbd5a1a5209b47747e86d7055 | ayato-p/mokuhan | parser_test.clj | (ns org.panchromatic.mokuhan.parser-test
(:require [clojure.test :as t]
[fast-zip.core :as zip]
[org.panchromatic.mokuhan.ast :as ast]
[org.panchromatic.mokuhan.parser :as sut]))
(comment
(t/deftest parse-variables-test
(t/testing "escaped variables"
(t/is
(= #o... | null | https://raw.githubusercontent.com/ayato-p/mokuhan/8f6de17b5c4a3712aa83ba4f37234de86f3c630b/test/org/panchromatic/mokuhan/parser_test.clj | clojure | (ns org.panchromatic.mokuhan.parser-test
(:require [clojure.test :as t]
[fast-zip.core :as zip]
[org.panchromatic.mokuhan.ast :as ast]
[org.panchromatic.mokuhan.parser :as sut]))
(comment
(t/deftest parse-variables-test
(t/testing "escaped variables"
(t/is
(= #o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.