_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 |
|---|---|---|---|---|---|---|---|---|
f0423bd1a4a0181ab4cf88667d4095a8a7b23a3ef2542a6c23bb56561db87025 | typedclojure/typedclojure | env_utils.clj | ;; tests live in clj.checker for is-tc-e etc
(ns typed-test.cljc.runtime.env-utils
(:require [clojure.test :refer [deftest is testing]]
[typed.clojure :as t]
[typed.cljc.checker.var-env :as var-env]
[typed.clj.checker.test-utils :refer [is-clj is-tc-e is-tc-err]]))
(deftest forget... | null | https://raw.githubusercontent.com/typedclojure/typedclojure/78854954e2a3a62caf5571511c53f463167ccb95/typed/clj.checker/test/typed_test/cljc/runtime/env_utils.clj | clojure | tests live in clj.checker for is-tc-e etc
at runtime, *ns* will be 'registering-ns. | (ns typed-test.cljc.runtime.env-utils
(:require [clojure.test :refer [deftest is testing]]
[typed.clojure :as t]
[typed.cljc.checker.var-env :as var-env]
[typed.clj.checker.test-utils :refer [is-clj is-tc-e is-tc-err]]))
(deftest forget-types-after-ns-remove-test
(some-> (find-n... |
0a4a6020ddb26f9fb27b7e14f39d8a2e8ae9c4ef53e828cd1d1168e6d36839c9 | heshrobe/joshua-dist | tool-bar.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - ENV ; Base : 10 ; Lowercase : Yes -*-
Copyright ( c ) 1994 - 2000 , .
Copyright ( c ) 2001 - 2003 , and .
;;; All rights reserved. No warranty is expressed or implied.
;;; See COPYRIGHT for full copyright and terms of use.
(in-package :cl... | null | https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/clim-env/portable-lisp-environment/tool-bar.lisp | lisp | Syntax : ANSI - Common - Lisp ; Package : CLIM - ENV ; Base : 10 ; Lowercase : Yes -*-
All rights reserved. No warranty is expressed or implied.
See COPYRIGHT for full copyright and terms of use.
Support for tool bars containing typed icons
it's OK to grow this horizontally
but not vertically
Simple icons
--- We... |
Copyright ( c ) 1994 - 2000 , .
Copyright ( c ) 2001 - 2003 , and .
(in-package :clim-env)
(defclass tool-bar-icon ()
((pattern :initarg :pattern :accessor icon-pattern)
(object :initarg :object :accessor icon-object)
(type :initarg :type :accessor icon-type)))
(defclass tool-bar (clim-stre... |
159d3ae5cbb777ce8585a8d35ca83738ef6637400f459ae7ebed504f003f939f | fakedata-haskell/fakedata | Subscription.hs | # LANGUAGE TemplateHaskell #
{-# LANGUAGE OverloadedStrings #-}
module Faker.Subscription where
import Data.Text
import Faker
import Faker.Internal
import Faker.Provider.Subscription
import Faker.TH
$(generateFakeField "subscription" "plans")
$(generateFakeField "subscription" "statuses")
$(generateFakeField "subs... | null | https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/src/Faker/Subscription.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE TemplateHaskell #
module Faker.Subscription where
import Data.Text
import Faker
import Faker.Internal
import Faker.Provider.Subscription
import Faker.TH
$(generateFakeField "subscription" "plans")
$(generateFakeField "subscription" "statuses")
$(generateFakeField "subscription" "payment_methods")
$(gen... |
ad3f71d4f3c4799fc1e01a29f29432e5ddbd68ba7d31786462ffd6536404b9d8 | pflanze/chj-schemelib | cj-io-util.scm | Copyright 2013 - 2020 by < >
;;; This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
;;; (at your option) any later version.
(require eas... | null | https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/cj-io-util.scm | scheme | This file is free software; you can redistribute it and/or modify
(at your option) any later version.
posix:environ open close read write seek etc.
handle setenv:-enriched process specs:
if `p` was opened
XX still that hack of hard-coding constants
would preferably use read-line as the name, but, better do... | Copyright 2013 - 2020 by < >
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
(require easy-2
(cj-port port-name)
test
(cj-path path-string?)
(keyword-alist keyword-alist... |
0760a13daece9c1143a77dccf874e3d30993853aeb5a252a2d22b8ceab798371 | aryx/xix | output.ml | (*s: yacc/output.ml *)
s : copyright ocamlyacc
*
* Copyright ( C ) 2015
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special excep... | null | https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/yacc/output.ml | ocaml | s: yacc/output.ml
***************************************************************************
Prelude
***************************************************************************
***************************************************************************
Helpers
*****************************************************... | s : copyright ocamlyacc
*
* Copyright ( C ) 2015
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking describ... |
7ba8c67b1ec1fa5aca6b02a72d3c16876155dece13c3eaae4fd8f5bf805fc23e | donaldsonjw/bigloo | initialize.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / comptime / / initialize.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Cnst/initialize.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The initialize function definition. */
*===========================... | * serrano / prgm / project / bigloo / comptime / / initialize.scm * /
* Author : * /
* Creation : Mon Feb 20 15:50:19 1995 * /
* Last change : Tue Sep 9 14:43:56 2014 ( serrano ) * /
* Copyrig... |
2d00fe2354e78f5e26a971948ec19bdc507743dfef4ce88ddecd90a12c15a165 | samply/blaze | search_param_value_resource_spec.clj | (ns blaze.db.impl.index.search-param-value-resource-spec
(:require
[blaze.byte-string :refer [byte-string?]]
[blaze.byte-string-spec]
[blaze.coll.core-spec]
[blaze.db.impl.codec-spec]
[blaze.db.impl.index.search-param-value-resource :as sp-vr]
[blaze.db.impl.iterators-spec]
[blaze.db.kv.sp... | null | https://raw.githubusercontent.com/samply/blaze/867d3e17ec8148f055324a1ab526d3727b41715b/modules/db/test/blaze/db/impl/index/search_param_value_resource_spec.clj | clojure | (ns blaze.db.impl.index.search-param-value-resource-spec
(:require
[blaze.byte-string :refer [byte-string?]]
[blaze.byte-string-spec]
[blaze.coll.core-spec]
[blaze.db.impl.codec-spec]
[blaze.db.impl.index.search-param-value-resource :as sp-vr]
[blaze.db.impl.iterators-spec]
[blaze.db.kv.sp... | |
fcbf2c2410d6e9d444a38973d5bc94abd0f6ef9ff3967873b117365900bb1b71 | racket/draw | pango.rkt | #lang racket/base
(require ffi/unsafe
ffi/unsafe/define
ffi/unsafe/alloc
"glib.rkt"
"cairo.rkt"
"../private/utils.rkt"
"../private/libs.rkt")
(define-runtime-lib pango-lib
[(unix) (ffi-lib "libpango-1.0" '("0" ""))]
[(macosx)
(ffi-lib "libfribidi.0.dylib")
... | null | https://raw.githubusercontent.com/racket/draw/09fa3e82805e9d7f386213bda6e05a50ff55cb56/draw-lib/racket/draw/unsafe/pango.rkt | racket | if not ideal.
see
"cairo.rkt".
Inline PangoAnalysis:
means that it isn't place-safe in Racket. Use the same lock as
For working around a Win32 Pango bug (see `unref-font-map'):
(_fun _pointer -> _void) _pointer -> _void))
not an allocator
not an allocator
not an allocator
makes a copy
makes a copy
not an al... | #lang racket/base
(require ffi/unsafe
ffi/unsafe/define
ffi/unsafe/alloc
"glib.rkt"
"cairo.rkt"
"../private/utils.rkt"
"../private/libs.rkt")
(define-runtime-lib pango-lib
[(unix) (ffi-lib "libpango-1.0" '("0" ""))]
[(macosx)
(ffi-lib "libfribidi.0.dylib")
... |
df34b2bd18d1ca5e32571ee14967e9f5c83e9ef2a61ea4a22481cf4b30fa0f35 | byorgey/comprog-hs | Interval.hs | module Interval (I, lo, hi, mkI, uncons, splits, subs, length, take, drop, range) where
import Prelude hiding (drop, length, take)
data I = I { lo :: !Int, hi :: !Int }
deriving (Eq, Ord, Show)
mkI :: Int -> Int -> I
mkI l h
| l == h = I 0 0
| otherwise = I l h
uncons :: I -> I
uncons (I l h) = mkI ... | null | https://raw.githubusercontent.com/byorgey/comprog-hs/a42d35bdaef6fb555cc896f6c7e509b0cb9b7cd7/Interval.hs | haskell | module Interval (I, lo, hi, mkI, uncons, splits, subs, length, take, drop, range) where
import Prelude hiding (drop, length, take)
data I = I { lo :: !Int, hi :: !Int }
deriving (Eq, Ord, Show)
mkI :: Int -> Int -> I
mkI l h
| l == h = I 0 0
| otherwise = I l h
uncons :: I -> I
uncons (I l h) = mkI ... | |
19dcf2dd3ac3595eeef4212de91c212a8d476673fd9f8fbea443934b9f2526f9 | VisionsGlobalEmpowerment/webchange | icon_youtube.cljs | (ns webchange.ui.components.icon.social.icon-youtube)
(def data
[:svg {:width "25" :height "24" :viewBox "0 0 25 24" :fill "none" :xmlns ""}
[:g {:clip-path "url(#clip0_1217_80480)"}
[:path {:d "M24.2609 7.20078C24.2609 7.20078 24.0266 5.54609 23.3047 4.81953C22.3906 3.86328 21.3688 3.85859 20.9 3.80234C17.54... | null | https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/02c3025e05fe48feba48080de4f7c439856789c1/src/cljs/webchange/ui/components/icon/social/icon_youtube.cljs | clojure | (ns webchange.ui.components.icon.social.icon-youtube)
(def data
[:svg {:width "25" :height "24" :viewBox "0 0 25 24" :fill "none" :xmlns ""}
[:g {:clip-path "url(#clip0_1217_80480)"}
[:path {:d "M24.2609 7.20078C24.2609 7.20078 24.0266 5.54609 23.3047 4.81953C22.3906 3.86328 21.3688 3.85859 20.9 3.80234C17.54... | |
fe688b539e472e2b5c26face387caf4a39258aaa9608bb756785e735209783f5 | joneshf/open-source | Optional.hs | -- |
-- Module: Dhall.JavaScript.List
Description : The logic for compiling Dhall optionals to JavaScript arrays .
--
Copyright : ( c ) , 2018
-- License: BSD3
-- Maintainer:
-- Stability: experimental
--
It 's important to note that we compile to JavaScript arrays
where there is at most one element in the a... | null | https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/packages/dhall-javascript/haskell/src/Dhall/JavaScript/Optional.hs | haskell | |
Module: Dhall.JavaScript.List
License: BSD3
Maintainer:
Stability: experimental
|
@
'build' ~
function optionalBuild(_) {
return function(f) {
var just = function(x) {
return [x];
};
return f(null)(just)([]);
};
}
@
|
@
'fold' ~
function optionalFold(_)... | Description : The logic for compiling Dhall optionals to JavaScript arrays .
Copyright : ( c ) , 2018
It 's important to note that we compile to JavaScript arrays
where there is at most one element in the array .
module Dhall.JavaScript.Optional
( build
, fold
, literal
, optional
) where
import "f... |
b417c886f368e68e56c841a7ee4072f8e75be8ac062fea62383dbb452ff7f192 | nasser/magic | tests.clj | (ns magic.analyzer.tests
(:require [magic.analyzer :as clr]
[magic.analyzer.types :refer [ast-type]])
(:use clojure.test))
(defn tests [& fns]
(fn [frm frm*]
(testing (str frm)
(doseq [f fns]
(f frm frm*)))))
(defn should-be [fns & frms]
(let [testfn (apply tests fns)]
(doseq... | null | https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/src/magic/analyzer/tests.clj | clojure | host | (ns magic.analyzer.tests
(:require [magic.analyzer :as clr]
[magic.analyzer.types :refer [ast-type]])
(:use clojure.test))
(defn tests [& fns]
(fn [frm frm*]
(testing (str frm)
(doseq [f fns]
(f frm frm*)))))
(defn should-be [fns & frms]
(let [testfn (apply tests fns)]
(doseq... |
78f25aa03b849a26b1892364e310cf7a1c220ddd223e9ef987f9614a9e410c8f | janestreet/memtrace_viewer_with_deps | import.ml | include Incr_dom
include Incr.Let_syntax
module Js = Js_of_ocaml.Js
module Dom_html = Js_of_ocaml.Dom_html
include Splay_tree.Std
include Incr_dom_partial_render
module Row_id = struct
include Core_kernel.Unique_id.Int ()
end
module Ts_table = Table.Make (Row_id) (Core_kernel.Int) (Table.Default_sort_spec)
module S... | null | https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/incr_dom/example/ts_gui/import.ml | ocaml | include Incr_dom
include Incr.Let_syntax
module Js = Js_of_ocaml.Js
module Dom_html = Js_of_ocaml.Dom_html
include Splay_tree.Std
include Incr_dom_partial_render
module Row_id = struct
include Core_kernel.Unique_id.Int ()
end
module Ts_table = Table.Make (Row_id) (Core_kernel.Int) (Table.Default_sort_spec)
module S... | |
4ee93b74f39ef7fe363d18ef0e8764c4184647fcf2dedc6af9a55af9ee6c0a41 | reagent-project/reagent | protocols.cljs | (ns reagent.impl.protocols)
(defprotocol Compiler
(get-id [this])
(parse-tag [this tag-name tag-value])
(as-element [this x])
(make-element [this argv component jsprops first-child]))
| null | https://raw.githubusercontent.com/reagent-project/reagent/fe1c42a46cb44e9bae731389cf887d809a57cb79/src/reagent/impl/protocols.cljs | clojure | (ns reagent.impl.protocols)
(defprotocol Compiler
(get-id [this])
(parse-tag [this tag-name tag-value])
(as-element [this x])
(make-element [this argv component jsprops first-child]))
| |
217c09df9b8cf4e262274537a1e3a19ad303f52f1db8cb15fa61a3cd6340c44e | initc3/SaUCy | MatchTest.hs | module Unit.MatchTest (
test_match
) where
import Data.Map.Strict (fromList)
import Text.Printf
import Test.Tasty
import Test.Tasty.HUnit
import Language.ILC.Eval
import Language.ILC.Match
import Language.ILC.Syntax
import Language.ILC.Value
test_match :: TestTree
test_match =
testGroup "Unit.MatchTest" $ ... | null | https://raw.githubusercontent.com/initc3/SaUCy/199154c1f488af4561e4bf1f7f5f3ef8876dfa6b/test/Unit/MatchTest.hs | haskell | module Unit.MatchTest (
test_match
) where
import Data.Map.Strict (fromList)
import Text.Printf
import Test.Tasty
import Test.Tasty.HUnit
import Language.ILC.Eval
import Language.ILC.Match
import Language.ILC.Syntax
import Language.ILC.Value
test_match :: TestTree
test_match =
testGroup "Unit.MatchTest" $ ... | |
e201787a1ab32711ca2d7655980b14be9b90f367e3a14fd3f75dfe7622b69602 | cvogt/2020-07-01-haskell-game-demo | Util.hs | module Playtime.Util where
import Data.Time.Clock
import Data.Time.Clock.System
import Data.Time.Clock.TAI
import GHC.Float (int2Double)
import My.Prelude
import Playtime.Event
import Playtime.Geometry
timeDiffPico :: SystemTime -> SystemTime -> Integer
timeDiffPico before after = diffTimeToPicoseconds $ diffAbsolute... | null | https://raw.githubusercontent.com/cvogt/2020-07-01-haskell-game-demo/f90fcd19ea79802774dcfafe8505415d6f8c8a8b/lib/Playtime/Util.hs | haskell | -
- stuff below needs cleanup or removal: | module Playtime.Util where
import Data.Time.Clock
import Data.Time.Clock.System
import Data.Time.Clock.TAI
import GHC.Float (int2Double)
import My.Prelude
import Playtime.Event
import Playtime.Geometry
timeDiffPico :: SystemTime -> SystemTime -> Integer
timeDiffPico before after = diffTimeToPicoseconds $ diffAbsolute... |
4d27a4f4a39721d8e735db5cc6e8dd39849507bd5b2dd1d55f25041a7451fe67 | serokell/avl-plus | Persistence.hs | module Persistence (tests) where
import Data.List (sort)
import Common
import qualified Data.Tree.AVL as AVL
tests :: Spec
tests = describe "Persistence" $ do
describe "Sanity check" $ do
it'' "can rematerialise in Pure mutated storage after insert" $
\(k, v, list) -> do
AVL.... | null | https://raw.githubusercontent.com/serokell/avl-plus/3fb3933f4f11f282e8c498d128c3e5c79518ea9b/test/Persistence.hs | haskell | module Persistence (tests) where
import Data.List (sort)
import Common
import qualified Data.Tree.AVL as AVL
tests :: Spec
tests = describe "Persistence" $ do
describe "Sanity check" $ do
it'' "can rematerialise in Pure mutated storage after insert" $
\(k, v, list) -> do
AVL.... | |
33df6f61f3baca009f880830403b25a3ef1073b00b77f5ef4f5d99f9a882f473 | marick/Midje | t_chatty.clj | (ns midje.checking.checkers.t-chatty
(:require [midje.sweet :refer :all]
[midje.util :refer :all]
[midje.checking.core :refer :all]
[midje.checking.checkers.defining :refer [checker?]]
[midje.checking.checkers.chatty :refer [chatty-worth-reporting-on?
... | null | https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/midje/checking/checkers/t_chatty.clj | clojure | pathological cases
The form of chatty checkers
Destructuring arguments
Note: Can't use extended-= because it swallows chatty-failures
Chatty checkers: interaction with checkers that return chatty-failures.
Old bug. During midjcoexpansion/macroexpansion, the interior of a chatty checker
can turn into a lazy seq, ... | (ns midje.checking.checkers.t-chatty
(:require [midje.sweet :refer :all]
[midje.util :refer :all]
[midje.checking.core :refer :all]
[midje.checking.checkers.defining :refer [checker?]]
[midje.checking.checkers.chatty :refer [chatty-worth-reporting-on?
... |
06a6d4f2c47fed5558692588705c0ba9b3e573a5a46a6e5d73ec41dbefa9acdd | AndrewRademacher/gdax | Private.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Network.GDAX.Test.Private
( tests
) where
import Control.Lens
import qualified Data.HashMap.Strict as Map
import qualified Data.Vector.Generic as V
import Network.GDAX.Explicit
import Network.GDAX.T... | null | https://raw.githubusercontent.com/AndrewRademacher/gdax/3473aef6eb0282779b061875b7ea7e959e18b24f/test/Network/GDAX/Test/Private.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE TemplateHaskell #
module Network.GDAX.Test.Private
( tests
) where
import Control.Lens
import qualified Data.HashMap.Strict as Map
import qualified Data.Vector.Generic as V
import Network.GDAX.Explicit
import Network.GDAX.Test.Types
import Test.Tas... |
2ae6cd76d8f69506a33bf02dd708b07b1794c6cd30e4ecd2ddbd8b123ea4a0da | JanHenryNystrom/jhn_stdlib | json.erl | %%==============================================================================
Copyright 2013 - 2021 Jan < >
%%
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
%%
%% U... | null | https://raw.githubusercontent.com/JanHenryNystrom/jhn_stdlib/ffe3d8a58db28a4b0e270597fef7aa599dff9647/src/json.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 ex... | Copyright 2013 - 2021 Jan < >
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
The application / json Media Type for JavaScript Object Notation ( JSON )
The JavaScript Object Notation ( JSON ) Data Interchange ... |
2fd29146675ea5795e86892b14ad41f61368e30837af2616032fdd6228649eee | khotyn/4clojure-answer | 140-veitch-please.clj | (fn [algebra]
(letfn [(union [s1 s2]
(set (filter (complement nil?) (map #(if (s1 %) %) s2))))
(step [algebra]
(let [r (set (flatten (map
(fn [line]
(let [m (map
... | null | https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/140-veitch-please.clj | clojure | (fn [algebra]
(letfn [(union [s1 s2]
(set (filter (complement nil?) (map #(if (s1 %) %) s2))))
(step [algebra]
(let [r (set (flatten (map
(fn [line]
(let [m (map
... | |
c92a3822f41676c8524fba892bd6bdb86dda01a82ba12267ef48bf03b03146a6 | jellelicht/guix | cve.scm | ;;; GNU Guix --- Functional package management for GNU
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 Foundation ; either version 3 of the Lice... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/tests/cve.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 © 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 (test-cve)
#:use-module (guix cve)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-64))
(... |
9f6341caea90bc9ad330128ad96f394703de9e3a21b8bbfa13f5987f8ea3e2e0 | alexandergunnarson/quantum | core.cljc | (ns quantum.test.apis.google.drive.core
(:require [quantum.apis.google.drive.core :as ns]))
;___________________________________________________________________________________________________________________________________
;================================================={ AUX REQUEST-MAKING }========... | null | https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/apis/google/drive/core.cljc | clojure | ___________________________________________________________________________________________________________________________________
================================================={ AUX REQUEST-MAKING }=================================================
================================================={ ... | (ns quantum.test.apis.google.drive.core
(:require [quantum.apis.google.drive.core :as ns]))
#_(defn test:method+url-fn
[func id to method])
#_(defn test:query-params-fn
[^Map params])
#_(defn test:make-request
[email ^Key func ^String id to method ^Map params req])
#_(defn test:drive
[func & {:keys [id t... |
54e1da45519f987430c109bbbbce34afcb85efdea8c52cde4ea539b85abe642c | part-cw/lambdanative | ex-minimal.scm | (begin
Translated from CGraph example by .
(define g (graph-new 216 216))
(graph-aorigin g 1.5 1.5)
(let loop ((i 0))
(if (<= i 200)
(let* ((angle (* 3.14 i 0.01))
(x (* 1.2 (cos (* 3. angle))))
(y (* 1.2 (sin (* 5. angle)))))
(if (= i 0) (graph-moveto g x y) (graph-lineto g x... | null | https://raw.githubusercontent.com/part-cw/lambdanative/74ec19dddf2f2ff787ee70ad677bc13b9dfafc29/apps/scmgraph/examples/ex-minimal.scm | scheme | (begin
Translated from CGraph example by .
(define g (graph-new 216 216))
(graph-aorigin g 1.5 1.5)
(let loop ((i 0))
(if (<= i 200)
(let* ((angle (* 3.14 i 0.01))
(x (* 1.2 (cos (* 3. angle))))
(y (* 1.2 (sin (* 5. angle)))))
(if (= i 0) (graph-moveto g x y) (graph-lineto g x... | |
e509b5a06fa5af78c84e78315344bd49e84c672fec5bfde17e698da81ee58650 | serperu/secer | smerl.erl | @author < > [ ]
@copyright Yariv Sadan 2006 - 2007
%%
@doc Smerl : Simple Metaprogramming for Erlang
%%
Smerl is an Erlang library
that simplifies the creation and manipulation of Erlang modules in
%% runtime.
%%
You do n't need to know Smerl in order to use ErlyWeb ; Smerl
is included in ErlyW... | null | https://raw.githubusercontent.com/serperu/secer/ffe2f9602356c34c9465c44534c82cc758b809b5/src/smerl.erl | erlang |
runtime.
```
test_smerl() ->
{ok, M2} = smerl:add_func(M1, "bar() -> 1 + 1."),
returns 2 ` `
smerl:has_func(M2, bar, 0). % returns true
'''
or as abstract forms. For more information, read the Abstract Format
([-5.5/erts-5.5/doc/html/absform.html#4]).
would be written as
```
... | @author < > [ ]
@copyright Yariv Sadan 2006 - 2007
@doc Smerl : Simple Metaprogramming for Erlang
Smerl is an Erlang library
that simplifies the creation and manipulation of Erlang modules in
You do n't need to know Smerl in order to use ErlyWeb ; Smerl
is included in ErlyWeb because ErlyWeb use... |
fd0573d2f6a9df5d12d6bb28478ca136d0e98935bd1dd9961d8f7dd984c220c3 | pfdietz/ansi-test | call-next-method.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sat May 31 11:18:15 2003
;;;; Contains: Tests of CALL-NEXT-METHOD
Tests where there is no next method are in no-next-method.lsp
(defgeneric cnm-gf-01 (x)
(:method ((x integer)) (cons 'a (call-next-method)))
(:method ((x rational)) (cons 'b (call-next-metho... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/objects/call-next-method.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of CALL-NEXT-METHOD
Check that call-next-method passes along multiple values correctly
Call next method has indefinite extent
call-next-method goes up the list of applicable methods
the current method
Neither rebinding nor setq affects the arguments passed by
(call-next-met... | Author :
Created : Sat May 31 11:18:15 2003
Tests where there is no next method are in no-next-method.lsp
(defgeneric cnm-gf-01 (x)
(:method ((x integer)) (cons 'a (call-next-method)))
(:method ((x rational)) (cons 'b (call-next-method)))
(:method ((x real)) (cons 'c (call-next-method)))
(:meth... |
0847914751f4219016550b556c28936643d10760703cc5f89a6273ce9d3b9c72 | aantron/dream | mirage.mli | type client
type server
type 'a message
type request = client message
type response = server message
type handler = request -> response Lwt.t
type middleware = handler -> handler
module Make
(Pclock : Mirage_clock.PCLOCK)
(Time : Mirage_time.S)
(Stack : Tcpip.Stack.V4V6) : sig
This file is part of Dream ... | null | https://raw.githubusercontent.com/aantron/dream/10a6e3459ffcf10e9174b7c2db1a99b3b452abff/src/mirage/mirage.mli | ocaml | * HTTP requests, such as [GET /something HTTP/1.1]. See
{!section-requests}.
* ['a message], pronounced “any message,” allows some functions to take either
{!type-request} or {!type-response} as arguments, because both are defined
in terms of ['a message]. For example, in {!section-headers}:
{... | type client
type server
type 'a message
type request = client message
type response = server message
type handler = request -> response Lwt.t
type middleware = handler -> handler
module Make
(Pclock : Mirage_clock.PCLOCK)
(Time : Mirage_time.S)
(Stack : Tcpip.Stack.V4V6) : sig
This file is part of Dream ... |
fad1e9c905c5b829fa235aaf1bb1614bca6c20e7466c412cb77511cbf4df4b13 | yav/haskell-lexer | PPrint.hs | -- Simple and efficient printing combinators
module PPrint where
infixr 2 &,!
infixr 1 !/
data Output = Sep | Str String | Nl | Indent Int
newtype Document = P ([Output] -> [Output])
class Printable a where
pr :: a -> Document
prList :: [a] -> Document
prList = wpr
instance Printable Document where
pr = i... | null | https://raw.githubusercontent.com/yav/haskell-lexer/357df3d88fa6638703126ad6178380386944819e/generator/src/PPrint.hs | haskell | Simple and efficient printing combinators
instance Printable a => Printable (Maybe a) where
pr Nothing = nil
pr (Just x) = pr x
The printer is designed to avoid producing redundant spaces:
+ No indentation space on blank lines.
+ No trailing spaces at the end of lines.
+ No double spaces between items.
f... | module PPrint where
infixr 2 &,!
infixr 1 !/
data Output = Sep | Str String | Nl | Indent Int
newtype Document = P ([Output] -> [Output])
class Printable a where
pr :: a -> Document
prList :: [a] -> Document
prList = wpr
instance Printable Document where
pr = id
nil = P id
nl = P (Nl:)
sep = P (Sep:)
i... |
3de17de7a14f70ff2bc251741abf7714f826e78135d9236a0861965556dbdcfa | granule-project/granule | SubstitutionsSpec.hs | # LANGUAGE ImplicitParams #
module Language.Granule.Checker.SubstitutionsSpec where
import Language.Granule.Syntax.Type
import Language.Granule.Syntax.Identifiers
import Test.Hspec
import Language.Granule.Checker.Substitution
import Language.Granule.Checker.SubstitutionContexts
import Language.Granule.Checker.Monad
... | null | https://raw.githubusercontent.com/granule-project/granule/e6d8314b0e444eafe33a689e041a15590dcc69dd/frontend/tests/hspec/Language/Granule/Checker/SubstitutionsSpec.hs | haskell | # LANGUAGE ImplicitParams #
module Language.Granule.Checker.SubstitutionsSpec where
import Language.Granule.Syntax.Type
import Language.Granule.Syntax.Identifiers
import Test.Hspec
import Language.Granule.Checker.Substitution
import Language.Granule.Checker.SubstitutionContexts
import Language.Granule.Checker.Monad
... | |
37f286c0439b404637c554ac724f8e385d6f33236c2d8f22a43f0e951df4f64c | Butanium/monte-carlo-tree-search-TSP | Iterated_2Opt.ml | open Two_Opt
type random_policy = Roulette | Random
let string_of_random_policy = function
| Random -> "Random"
| Roulette -> "Roulette"
let weight_update adj last q = function
| Random -> ()
| Roulette -> RndQ.roulette_weights adj last q
let randomize_tour q adj policy tour_arr =
for i = 0 to Array.lengt... | null | https://raw.githubusercontent.com/Butanium/monte-carlo-tree-search-TSP/24a6397a3bdf4c2ef360767f9e1c98893a9ba1ec/tsp_solvers/Iterated_2Opt.ml | ocaml | type debug = {mutable } | open Two_Opt
type random_policy = Roulette | Random
let string_of_random_policy = function
| Random -> "Random"
| Roulette -> "Roulette"
let weight_update adj last q = function
| Random -> ()
| Roulette -> RndQ.roulette_weights adj last q
let randomize_tour q adj policy tour_arr =
for i = 0 to Array.lengt... |
50d321dab8c44c54201029beae72460158e4e9aaf2cd0c83698cccc4b6e06b01 | tobiasbehr/camunda-clojure | project.clj | (defproject camunda-clojure "0.2.0-SNAPSHOT"
:description "This is a prototype library to find out how it feels to develop Camunda process applications with Clojure"
:url "-clojure"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]]
:profiles {... | null | https://raw.githubusercontent.com/tobiasbehr/camunda-clojure/8eae8b3aba2254bce2c54d5e3c9e050ab50157e4/project.clj | clojure | (defproject camunda-clojure "0.2.0-SNAPSHOT"
:description "This is a prototype library to find out how it feels to develop Camunda process applications with Clojure"
:url "-clojure"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]]
:profiles {... | |
6f2a4627badb56bd0c7fa138532a62f8f035487e5f8707c6ca97862cac2b41af | 8c6794b6/guile-tjit | t-subr-call-05.scm | Loop with subr - call , returned value from subr - call has Scheme double
;;; type. Number of iterations is large enough to trigger a call to
;;; garbage collector.
(define (f n)
(let lp ((n n) (acc 0))
(if (= n 0)
acc
(lp (- n 1) (+ acc (exact->inexact n))))))
(f #e1e7)
| null | https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-subr-call-05.scm | scheme | type. Number of iterations is large enough to trigger a call to
garbage collector. | Loop with subr - call , returned value from subr - call has Scheme double
(define (f n)
(let lp ((n n) (acc 0))
(if (= n 0)
acc
(lp (- n 1) (+ acc (exact->inexact n))))))
(f #e1e7)
|
49c133860e7b569829ce775542e10d53f2c0bba3e77267236677ae9a603e7ca0 | tommaisey/aeon | pv-mag-smear.help.scm | ;; (pv-mag-smear buffer bins)
Average a 's magnitude with its neighbors .
;; buffer - fft buffer.
bins - number of bins to average on each side of .
;; As this number rises, so will CPU usage.
(with-sc3
(lambda (fd)
(async fd (b-alloc 10 2048 1))
(async fd (b-alloc-read 12 "/home/rohan/audi... | null | https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/fft/pv-mag-smear.help.scm | scheme | (pv-mag-smear buffer bins)
buffer - fft buffer.
As this number rises, so will CPU usage. |
Average a 's magnitude with its neighbors .
bins - number of bins to average on each side of .
(with-sc3
(lambda (fd)
(async fd (b-alloc 10 2048 1))
(async fd (b-alloc-read 12 "/home/rohan/audio/metal.wav" 0 0))))
(let* ((dup (lambda (a) (mce2 a a)))
(in (mul (lf-saw ar 500 0) (decay2 (mul (... |
a403493cfbe108ec993fcb63ba5e37705a54a1bb05c3a9c244a5737f793d26a3 | techascent/tvm-clj | cuda.clj | (ns tvm-clj.impl.fns.tvm.intrin.rule.cuda
(:require [tvm-clj.impl.tvm-ns-fns :as tvm-ns-fns]))
(tvm-ns-fns/export-tvm-functions "tvm.intrin.rule.cuda") | null | https://raw.githubusercontent.com/techascent/tvm-clj/1088845bd613b4ba14b00381ffe3cdbd3d8b639e/src/tvm_clj/impl/fns/tvm/intrin/rule/cuda.clj | clojure | (ns tvm-clj.impl.fns.tvm.intrin.rule.cuda
(:require [tvm-clj.impl.tvm-ns-fns :as tvm-ns-fns]))
(tvm-ns-fns/export-tvm-functions "tvm.intrin.rule.cuda") | |
8c54d9bb3eb24407b2239faaacf45f6163861d7ceee151d6f48dffa724883824 | RutledgePaulV/kube-api | utils_test.clj | (ns kube-api.controllers.utils-test
(:require [kube-api.controllers.utils :refer :all]
[clojure.test :refer :all]))
(deftest backoff-seq-test
(is (not-empty (take 20 (backoff-seq 10)))))
| null | https://raw.githubusercontent.com/RutledgePaulV/kube-api/ff335b5e9dbf0f10ed00227733f26898d57c2c55/kube-api-controllers/test/kube_api/controllers/utils_test.clj | clojure | (ns kube-api.controllers.utils-test
(:require [kube-api.controllers.utils :refer :all]
[clojure.test :refer :all]))
(deftest backoff-seq-test
(is (not-empty (take 20 (backoff-seq 10)))))
| |
eab38852514a4bbbfd93a4bc41f0b75769043578333bcea41eadd4717dfe718d | domainlanguage/time-count | allens_composition_table.clj | (ns time-count.allens-composition-table
(:require [clojure.set :refer [map-invert]]))
(def full #{:equal
:before :after
:meets :met-by
:starts :started-by
:finishes :finished-by
:during :contains
:overlaps :overlapped-by})
(comment "too verbose... | null | https://raw.githubusercontent.com/domainlanguage/time-count/f2d26a1e5fe1a137f5d1a01be295dde0385cc31e/src/time_count/allens_composition_table.clj | clojure | Tired of typing ...
Skipping some that I don't use right now
... Skipping some more | (ns time-count.allens-composition-table
(:require [clojure.set :refer [map-invert]]))
(def full #{:equal
:before :after
:meets :met-by
:starts :started-by
:finishes :finished-by
:during :contains
:overlaps :overlapped-by})
(comment "too verbose... |
ec1c9408dfcad7368c6fac039ce99bfa2c27bf2705c9c9e4a1fd678beaa85ecf | r0man/oauth-clj | etsy.clj | (ns oauth.etsy
(:require [clj-http.util :refer [url-decode]]
[oauth.v1 :as v1]))
(def ^:dynamic *oauth-access-token-url*
"")
;; Authorization url is set dynamically after a request-token call to Etsy
(def ^:dynamic *oauth-authorization-url*)
(def ^:dynamic *oauth-request-token-url*
"")
(defn oaut... | null | https://raw.githubusercontent.com/r0man/oauth-clj/9a67dc99756071c1865ba6e73566052643af4e5e/src/oauth/etsy.clj | clojure | Authorization url is set dynamically after a request-token call to Etsy | (ns oauth.etsy
(:require [clj-http.util :refer [url-decode]]
[oauth.v1 :as v1]))
(def ^:dynamic *oauth-access-token-url*
"")
(def ^:dynamic *oauth-authorization-url*)
(def ^:dynamic *oauth-request-token-url*
"")
(defn oauth-authorize
"Sends the user to Etsy's authorization endpoint."
[] (cloj... |
07f6a5f7f53732e8f1e7de7dfdf150641fc6fa6bb42b7aa64a7691c06d91d161 | sebastiw/otc | otc_nas_security_tests.erl | %% 3GPP TS 33.401(EPS) & TS 33.501(5G)
-module(otc_nas_security_tests).
-include_lib("eunit/include/eunit.hrl").
% Ciphering
ts33401_ciphering_test_sets() ->
%% TS 33.401 C.1.1 - C.1.6
format : { Key , Count , Bearer , Direction , Length , PlainText , CipherText }
[{hexstream_to_binary(<<"d3c5d592327fb11c4... | null | https://raw.githubusercontent.com/sebastiw/otc/4b2a732343bb6982063885fc677b1eecbd2cba39/test/otc_nas_security_tests.erl | erlang | 3GPP TS 33.401(EPS) & TS 33.501(5G)
Ciphering
TS 33.401 C.1.1 - C.1.6
Integrity protection
TS 33.401 C.2.1 - C.2.8
test cases 3GPP provides are not tested here at this moment.
C.2.1 - not supported yet
C.2.3 - not supported yet
C.2.4 - not supported yet
C.2.6 - not supported yet
C.2.7 - not supported yet
C.... | -module(otc_nas_security_tests).
-include_lib("eunit/include/eunit.hrl").
ts33401_ciphering_test_sets() ->
format : { Key , Count , Bearer , Direction , Length , PlainText , CipherText }
[{hexstream_to_binary(<<"d3c5d592327fb11c4035c6680af8c6d1">>),
hexstream_to_binary(<<"398a59b4">>),
16#15,
... |
ed02425bf8ccfccb0b6f2f7145239bae591093e18d50659cf7e02638f6dc41ec | bobbae/gosling-emacs | kill.ml | (declare-global kill-ring-size kill-ring-pos kill-buffer-name)
(setq kill-ring-size 10)
(setq kill-ring-pos -1)
(defun
(perform-kill
(if (!= (previous-command) -84)
(progn
(setq kill-ring-pos (% (+ kill-ring-pos 1) kill-ring-size))
(setq kill-buffer-name (concat "kill-buffer-" kill-ring-pos))
(copy-reg... | null | https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/maclib/kill.ml | ocaml | (declare-global kill-ring-size kill-ring-pos kill-buffer-name)
(setq kill-ring-size 10)
(setq kill-ring-pos -1)
(defun
(perform-kill
(if (!= (previous-command) -84)
(progn
(setq kill-ring-pos (% (+ kill-ring-pos 1) kill-ring-size))
(setq kill-buffer-name (concat "kill-buffer-" kill-ring-pos))
(copy-reg... | |
b5c53bf04cb1835522b1e3f83ac3821d2c89b416ec02a4287f9d276ce700c922 | marick/Midje | t_nested_facts.clj | (ns midje.data.t-nested-facts
(:require [midje.data.nested-facts :refer :all]
[clojure.test :refer :all]
[midje.sweet :refer :all]
[midje.test-util :refer :all]
[midje.util.pile :as pile]))
(defn faux-fact
([] (gensym))
([description]
(with-meta (gensym) {:mi... | null | https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/midje/data/t_nested_facts.clj | clojure | Binding maps
It happens that binding maps are duplicated in nested
tables. | (ns midje.data.t-nested-facts
(:require [midje.data.nested-facts :refer :all]
[clojure.test :refer :all]
[midje.sweet :refer :all]
[midje.test-util :refer :all]
[midje.util.pile :as pile]))
(defn faux-fact
([] (gensym))
([description]
(with-meta (gensym) {:mi... |
dc7d7851ff3c7f8b9e2aaaf2ba4df80eaa12ea0edfe15d4ef50aad6614f2af6d | lilydjwg/myhaskells | mylocate.hs | import Control.Applicative ((<*>), (<$>))
import Control.Monad.Instances
import Data.List (isPrefixOf)
import Data.Maybe (fromJust)
import System.Environment (getArgs, getProgName)
import System.Exit (exitWith)
import System.IO (hGetContents, hSetBuffering, BufferMode(LineBuffering))
import System.Posix.Terminal (query... | null | https://raw.githubusercontent.com/lilydjwg/myhaskells/9a028c36a46e811e56d47a11ac4f261787fba0cf/locatewrapper/mylocate.hs | haskell | import Control.Applicative ((<*>), (<$>))
import Control.Monad.Instances
import Data.List (isPrefixOf)
import Data.Maybe (fromJust)
import System.Environment (getArgs, getProgName)
import System.Exit (exitWith)
import System.IO (hGetContents, hSetBuffering, BufferMode(LineBuffering))
import System.Posix.Terminal (query... | |
02e68c6c626c5654d14c881aca293511393c10587b9b5f8358161b65cbb742e0 | B-Lang-org/bsc | Pretty.hs | module Pretty (module GHCPretty, pretty,
-- utils
s2par, s2docs
) where
import GHCPretty
--
The follow definitions used to be in PPrint , but this caused a
dependency cycle from ErrorUtil to PPrint to Util to ErrorUtil .
Since ErrorUtil only needed core Pretty routine... | null | https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/Pretty.hs | haskell | utils
functionality, this module was created.
Produces a string from a text "x" in Normal mode with "w" line
length, "w/m" ribbons per line.
into a String.
--
Pretty printing utilities
Creates a paragraph
-- | module Pretty (module GHCPretty, pretty,
s2par, s2docs
) where
import GHCPretty
The follow definitions used to be in PPrint , but this caused a
dependency cycle from ErrorUtil to PPrint to Util to ErrorUtil .
Since ErrorUtil only needed core Pretty routines and not the PPrint
XXX... |
bc6e02c00c2f6e3b4a1485a5cf2858cc08fc97c5c67ab287c4c50ee5a60239df | coq/coq | tac2entries.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/352e9fdd84d92f813d092d89825f3ec81ae78e46/plugins/ltac2/tac2entries.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... |
c76195cbaab02c5797d79625e2e53ad222d5dfe29d95fc1b5335a4875c1705a0 | xvw/planet | context.ml | module Table = Paperwork.Table
module Fetch = Table.Fetch
let keep_biggest_date potential_date1 date2 =
match potential_date1 with
| None -> Some date2
| Some date1 ->
if Paperwork.Timetable.Day.cmp date2 date1 > 0
then Some date2
else Some date1
;;
let keep_smallest_date potential_date1 date2 =
m... | null | https://raw.githubusercontent.com/xvw/planet/c2a77ea66f61cc76df78b9c2ad06d114795f3053/src/shapes/context.ml | ocaml | module Table = Paperwork.Table
module Fetch = Table.Fetch
let keep_biggest_date potential_date1 date2 =
match potential_date1 with
| None -> Some date2
| Some date1 ->
if Paperwork.Timetable.Day.cmp date2 date1 > 0
then Some date2
else Some date1
;;
let keep_smallest_date potential_date1 date2 =
m... | |
f1e4a0d323bb942e682c72c9077cace9854f4ba9eb6e8951af41abce0d8b837f | wdebeaum/DeepSemLex | extensions.lisp | ;;;;
;;;; extensions.lisp for config/lisp/allegro
;;;;
, , 13 Sep 2002
$ I d : extensions.lisp , v 1.7 2008/11/26 17:28:05 wdebeaum Exp $
;;;;
Not sure where this came from - gf 3/17/2007
(require :acldns)
(in-package :trips)
(defun exit (n &key quiet)
(excl:exit n :quiet quiet))
(defun get-env (var)
(... | null | https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/config/lisp/allegro/extensions.lisp | lisp |
extensions.lisp for config/lisp/allegro
Per bug report spr29907, this will fix it using internal APIs,
which of course may break in the future... | , , 13 Sep 2002
$ I d : extensions.lisp , v 1.7 2008/11/26 17:28:05 wdebeaum Exp $
Not sure where this came from - gf 3/17/2007
(require :acldns)
(in-package :trips)
(defun exit (n &key quiet)
(excl:exit n :quiet quiet))
(defun get-env (var)
(sys:getenv var))
(defun gc (arg)
(excl:gc arg))
(defun m... |
9b7a5f7ef915ae5626be1909ab89258bed0e1422fc29a64d55ec29d89a7a642c | CryptoKami/cryptokami-core | VAR.hs | -- | Verify|apply|rollback logic.
module Pos.Block.Logic.VAR
( verifyBlocksPrefix
, BlockLrcMode
, verifyAndApplyBlocks
, applyWithRollback
-- * Exported for tests
, applyBlocks
, rollbackBlocks
) where
import Universum
import Control.Exce... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/block/src/Pos/Block/Logic/VAR.hs | haskell | | Verify|apply|rollback logic.
* Exported for tests
-- CHECK: @verifyBlocksLogic
-- #txVerifyBlocks
-- #sscVerifyBlocks
# dlgVerifyBlocks
-- #usVerifyBlocks
verification fails. All blocks must be from the same epoch. This
function checks literally __everything__ from blocks, including
header, body, extra dat... |
module Pos.Block.Logic.VAR
( verifyBlocksPrefix
, BlockLrcMode
, verifyAndApplyBlocks
, applyWithRollback
, applyBlocks
, rollbackBlocks
) where
import Universum
import Control.Exception.Safe (bracketOnError)
import Control.Lens (_Wrapp... |
02f0426470e064380568da644469b88cf685a74a89c79b6ffcf7229e3371997c | gheber/kenzo | algebras.lisp | ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS
ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS
ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS
(IN-PACKAGE #:cat-8)
(PROVIDE "algebras")
(DEFVAR *ALGB-LIST*)
(SETF *ALGB-LIST* +empty-list+)
(PUSHNEW '*ALGB-LIST*... | null | https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/src/kenzo-8/algebras.lisp | lisp | to be done before change-class | ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS
ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS
ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS ALGEBRAS
(IN-PACKAGE #:cat-8)
(PROVIDE "algebras")
(DEFVAR *ALGB-LIST*)
(SETF *ALGB-LIST* +empty-list+)
(PUSHNEW '*ALGB-LIST*... |
f3b5c35f91a14691e3bc06d67b4b8967becb82c313e26423a57a81166fd9754f | byorgey/diagrams-play | TextNL.hs | # LANGUAGE NoMonomorphismRestriction #
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
main = defaultMain (text "Hi\nworld" <> square 5) | null | https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/TextNL.hs | haskell | # LANGUAGE NoMonomorphismRestriction #
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
main = defaultMain (text "Hi\nworld" <> square 5) | |
b76ef0c73cc926bcfb72093adc59b2f7caec9c455e907d6a9019579c730d9493 | ucsd-progsys/nate | parsetree.mli | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/parsing/parsetree.mli | ocaml | *********************************************************************
Objective Caml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 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 .
$ I d : parsetree.mli , v 1.43 2006/0... |
9f73b003c3be880a74517b9c13fc5bd918feb665e573e3ec1efeb396fb640061 | ghc/testsuite | T4875.hs | {-# OPTIONS -XMultiParamTypeClasses -XFunctionalDependencies -XFlexibleInstances #-}
module HaskellBug where
The basic Relation
= Rel { relnm :: String -- The name of the relation
, relsrc :: c -- Source concept
, reltrg :: c -- ^Target concept
}
deriv... | null | https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/T4875.hs | haskell | # OPTIONS -XMultiParamTypeClasses -XFunctionalDependencies -XFlexibleInstances #
The name of the relation
Source concept
^Target concept
This declaration is ok; should not get an error here
This declaration has a kind error
The error should be reported here
| module HaskellBug where
The basic Relation
}
deriving Eq
class (Eq concept)=> Association rel concept | rel -> concept where
source, target :: rel -> concept
e.g. Declaration Concept - > Concept
sign :: rel -> (concept,concept)
sign x = (source x,target x)
hom... |
e2f4fdf5550f639f9a72d978a74d968bb00b81f9c5f4c3b95f3ce779f00fa3a8 | haskell-mafia/boris | Schema.hs | # LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
module Boris.Store.Schema (
schema
, tTick
, tBuild
, tBuilds
, tRefs
, tProjectRefs
, tProject
, tProjectCommits
, tResults
, kTick
, iContext
, iBuildId
, iProject
, iBuild
, iProjectBuild
, iRef
, iCommit
, kConte... | null | https://raw.githubusercontent.com/haskell-mafia/boris/fb670071600e8b2d8dbb9191fcf6bf8488f83f5a/boris-store/src/Boris/Store/Schema.hs | haskell | # LANGUAGE OverloadedStrings #
|
Build id state.
Key:
Attributes:
|
Build instance state.
Key:
kBuildId :: String
Attributes:
kCommit :: String
kQueueTime :: String
kHeartbeatTime :: String
kCancelled :: Boolean
kBuildResult :: Boolean
|
Index mapping project/build to:
* refs
* current... | # LANGUAGE NoImplicitPrelude #
module Boris.Store.Schema (
schema
, tTick
, tBuild
, tBuilds
, tRefs
, tProjectRefs
, tProject
, tProjectCommits
, tResults
, kTick
, iContext
, iBuildId
, iProject
, iBuild
, iProjectBuild
, iRef
, iCommit
, kContext
, kProject
, kProjectBuild
... |
70a2fa8a687de0088c72776466a2738f23e151b01e300c0dc0845f4471becf62 | quil/quil | tools.clj | (ns quil.helpers.tools)
(defmacro with-shape [mode & body]
(if (keyword? mode)
`(do
(quil.core/begin-shape ~mode)
~@body
(quil.core/end-shape))
`(do
(quil.core/begin-shape)
~mode
~@body
(quil.core/end-shape))))
| null | https://raw.githubusercontent.com/quil/quil/1f214e712d834ede311fdc652eafe9cc0232c96e/src/cljs/quil/helpers/tools.clj | clojure | (ns quil.helpers.tools)
(defmacro with-shape [mode & body]
(if (keyword? mode)
`(do
(quil.core/begin-shape ~mode)
~@body
(quil.core/end-shape))
`(do
(quil.core/begin-shape)
~mode
~@body
(quil.core/end-shape))))
| |
25a21ce775a936b54978fd62fbe16a2b5fdaeb3605d7ae1d4fe4353cd5b5cb04 | jlongster/gambit-iphone-example | app5.scm | " "
;;; Balls thrown up and pulled down by gravity (determined from
;;; accelerometer)
(include "../events#.scm")
(include "../obj-loader2.scm")
(include "../scene.scm")
(include "../physics.scm")
;;; resources
(define sphere-mesh #f)
;;; throwing
(define (spread-number fl)
(- (* fl 2.) 1.))
(define (get-ran... | null | https://raw.githubusercontent.com/jlongster/gambit-iphone-example/e55d915180cb6c57312cbb683d81823ea455e14f/lib/apps/app5.scm | scheme | Balls thrown up and pulled down by gravity (determined from
accelerometer)
resources
throwing
controls
app
opengl | " "
(include "../events#.scm")
(include "../obj-loader2.scm")
(include "../scene.scm")
(include "../physics.scm")
(define sphere-mesh #f)
(define (spread-number fl)
(- (* fl 2.) 1.))
(define (get-random-throw)
(+ (real-time) (/ (random-real) 9.)))
(define next-throw (get-random-throw))
(define (possibly-... |
bca2858be980da27df3203daa84e31a571b7012684eb93fe55633cfc30c9cdc4 | ndmitchell/supero | Template.hs |
module Firstify.Template(
isHO, isLambda, isConLambda, lamArity,
Template, genTemplate, useTemplate
) where
import Yhc.Core hiding (collectAllVars,collectFreeVars,uniqueBoundVars,replaceFreeVars)
import Yhc.Core.FreeVar2
import Data.List
import Control.Monad
import Control.Monad.State
import qualified Da... | null | https://raw.githubusercontent.com/ndmitchell/supero/a8b16ea90862e2c021bb139d7a7e9a83700b43b2/Dead/Firstify1/Template.hs | haskell | given a call to this function, with the given arguments
return the arguments you require, and the expression you are
for all equivalent expressions
irrelevant of free or bound var names, alpha rename to the same thing |
module Firstify.Template(
isHO, isLambda, isConLambda, lamArity,
Template, genTemplate, useTemplate
) where
import Yhc.Core hiding (collectAllVars,collectFreeVars,uniqueBoundVars,replaceFreeVars)
import Yhc.Core.FreeVar2
import Data.List
import Control.Monad
import Control.Monad.State
import qualified Da... |
b3312b8dd1761d5a3030b15cafeceb79e3961cee0b6dfd66affda115750b21a4 | cognitect/clojure-lab | flowcontrol.clj | gorilla-repl.fileformat = 1
;; **
;;; # Clojure Flow Control
;;;
;;;
;; **
;; **
# # Statements vs. Expressions
In Java , expressions return values , whereas statements do not .
;;;
;;; ```java
;;; // "if" is a statement because it doesn't return a value:
;;; String s;
if ( x > 10 ) {
;;; s = "greater"... | null | https://raw.githubusercontent.com/cognitect/clojure-lab/f32947e75c999310a84bf0650c22beea18271a94/src/cljlab/flowcontrol.clj | clojure | **
# Clojure Flow Control
**
**
```java
// "if" is a statement because it doesn't return a value:
String s;
s = "greater";
} else {
s = "greater or equal";
}
obj.someMethod(s);
// Ternary operator is an expression; it returns a value:
```
Accordingly, flow control operators are expre... | gorilla-repl.fileformat = 1
# # Statements vs. Expressions
In Java , expressions return values , whereas statements do not .
if ( x > 10 ) {
In Clojure , however , everything is an expression ! _ Everything _ returns a value , and a block of multiple expressions returns the last value . Expressions that exc... |
a691aeea6db08f63dc1af6ad4145ab11cc7f3f1ef3d34d9ef217ceb230b25f93 | wireapp/wire-server | Bot.hs | -- 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
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License... | null | https://raw.githubusercontent.com/wireapp/wire-server/0cdd40781b9982fcac747b1848280d4536fa9493/libs/wire-api/src/Wire/API/Routes/Public/Galley/Bot.hs | haskell | 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 MERCHANTABILITY or FITNESS
FOR A PARTI... | 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 received a copy of the GNU Affero General Public License along
module Wire.API.Routes.Public.Ga... |
27f4996febba5148ece5a850a12fa5351cf64438c8a6aea2c1b6b3d3bae2b413 | clojure-interop/google-cloud-clients | SecurityCenterClient$GroupAssetsFixedSizeCollection.clj | (ns com.google.cloud.securitycenter.v1.SecurityCenterClient$GroupAssetsFixedSizeCollection
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.securitycenter.v1 SecurityCenterClient$GroupAssetsFixedSizeCollection]))
| null | https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.securitycenter/src/com/google/cloud/securitycenter/v1/SecurityCenterClient%24GroupAssetsFixedSizeCollection.clj | clojure | (ns com.google.cloud.securitycenter.v1.SecurityCenterClient$GroupAssetsFixedSizeCollection
(:refer-clojure :only [require comment defn ->])
(:import [com.google.cloud.securitycenter.v1 SecurityCenterClient$GroupAssetsFixedSizeCollection]))
| |
4b1169db79117f516a68fd18fd4b4bd59034e3a8dc6219738860d60bca75e967 | swaywm/wlroots-ocaml | output_layout.ml | open Ctypes
open Wlroots_common.Utils
module Bindings = Wlroots_ffi_f.Ffi.Make (Generated_ffi)
module Types = Wlroots_ffi_f.Ffi.Types
type t = Types.Output_layout.t ptr
include Ptr
let create = Bindings.wlr_output_layout_create
let add_auto = Bindings.wlr_output_layout_add_auto
| null | https://raw.githubusercontent.com/swaywm/wlroots-ocaml/a4a36121a331c14b0f2ab363a6a59065513985e5/lib/output_layout.ml | ocaml | open Ctypes
open Wlroots_common.Utils
module Bindings = Wlroots_ffi_f.Ffi.Make (Generated_ffi)
module Types = Wlroots_ffi_f.Ffi.Types
type t = Types.Output_layout.t ptr
include Ptr
let create = Bindings.wlr_output_layout_create
let add_auto = Bindings.wlr_output_layout_add_auto
| |
7f0f7c3d2f0183840b2b97f037526513e63715bb9e01f9b7a670028732572eda | DomainDrivenArchitecture/dda-managed-vm | app_test.clj | Licensed to the Apache Software Foundation ( ASF ) under one
; or more contributor license agreements. See the NOTICE file
; distributed with this work for additional information
; regarding copyright ownership. The ASF licenses this file
to you under the Apache License , Version 2.0 ( the
; "License"); you may not... | null | https://raw.githubusercontent.com/DomainDrivenArchitecture/dda-managed-vm/ed44f97ef89468a4dd4bc514439df3f936c86d26/test/src/dda/pallet/dda_managed_vm/app_test.clj | clojure | or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
"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 b... | Licensed to the Apache Software Foundation ( ASF ) under one
to you under the Apache License , Version 2.0 ( the
distributed under the License is distributed on an " AS IS " BASIS ,
(ns dda.pallet.dda-managed-vm.app-test
(:require
[clojure.test :refer :all]
[schema.core :as s]
[dda.pallet.dda-manage... |
64229750edf46cb28d237338ad45d07f47a69b1539fc4201702ff2499a0fc225 | racket/rhombus-prototype | define-operator.rkt | #lang racket/base
(require (for-syntax racket/base
syntax/parse/pre
"srcloc.rkt")
"expression.rkt"
"repetition.rkt"
"compound-repetition.rkt")
(provide define-prefix
define-infix
(for-syntax prefix
inf... | null | https://raw.githubusercontent.com/racket/rhombus-prototype/4e66c1361bdde51c2df9332644800baead49e86f/rhombus/private/define-operator.rkt | racket | #lang racket/base
(require (for-syntax racket/base
syntax/parse/pre
"srcloc.rkt")
"expression.rkt"
"repetition.rkt"
"compound-repetition.rkt")
(provide define-prefix
define-infix
(for-syntax prefix
inf... | |
f92f9004602ce3413120dc861872ef5ea9a7c73725eb7c446855af2639887f1b | satori-com/mzbench | dummy_worker_tests.erl | -module(dummy_worker_tests).
-include_lib("eunit/include/eunit.hrl").
-include_lib("mzbench_language/include/mzbl_types.hrl").
empty_script_test() ->
?assertEqual("", run("")).
oneliner_test() ->
Script = "{test_method, \"Hello\"}.",
?assertEqual("Hello", run(Script)).
print_three_test() ->
Script ... | null | https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/node/apps/dummy_worker/test/dummy_worker_tests.erl | erlang | -module(dummy_worker_tests).
-include_lib("eunit/include/eunit.hrl").
-include_lib("mzbench_language/include/mzbl_types.hrl").
empty_script_test() ->
?assertEqual("", run("")).
oneliner_test() ->
Script = "{test_method, \"Hello\"}.",
?assertEqual("Hello", run(Script)).
print_three_test() ->
Script ... | |
22f851b2641146bc247058c15ff11a3f276f069ff29bc448b62f0c0aac39216c | GaloisInc/pads-haskell | LittleEndian.hs | # LANGUAGE QuasiQuotes #
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* ( c ) < > *
* < > ... | null | https://raw.githubusercontent.com/GaloisInc/pads-haskell/ffa01030cd1c1edf5f50df53f3783ff28bf43c7e/Language/Pads/Library/LittleEndian.hs | haskell | SIGNED INTEGERS --
| # LANGUAGE QuasiQuotes #
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* ( c ) < > *
* < > ... |
a4d8a3e4384eed6746cffa86f5b19ead799f6045b64d9b1da0ec0086adb336f7 | lingnand/VIMonad | UrgencyHook.hs | # LANGUAGE FlexibleContexts , MultiParamTypeClasses , TypeSynonymInstances , PatternGuards , DeriveDataTypeable ,
FlexibleInstances #
FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Hooks.UrgencyHook
Copyright : < >
-- Li... | null | https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Hooks/UrgencyHook.hs | haskell | ---------------------------------------------------------------------------
|
Module : XMonad.Hooks.UrgencyHook
License : BSD3-style (see LICENSE)
Stability : unstable
Portability : unportable
your attention. (In traditional WMs, this takes the form of \"flashing\"
------------------------------... | # LANGUAGE FlexibleContexts , MultiParamTypeClasses , TypeSynonymInstances , PatternGuards , DeriveDataTypeable ,
FlexibleInstances #
FlexibleInstances #-}
Copyright : < >
Maintainer : < >
UrgencyHook lets you configure an action to occur when a window demands
on your \"taskbar.\ " Blech .... |
b61ddfcb84234f2a9ba0b55a1010d9a71c93910638a08b48e30b173f8c51f2a0 | clojure-interop/java-jdk | SynthCheckBoxMenuItemUI.clj | (ns javax.swing.plaf.synth.SynthCheckBoxMenuItemUI
"Provides the Synth L&F UI delegate for
JCheckBoxMenuItem."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.synth SynthCheckBoxMenuItemUI]))
(defn ->synth-check-box-menu-item-ui
"Constructor."
(^SynthCheckBoxMenuItemUI []
(n... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/synth/SynthCheckBoxMenuItemUI.clj | clojure | (ns javax.swing.plaf.synth.SynthCheckBoxMenuItemUI
"Provides the Synth L&F UI delegate for
JCheckBoxMenuItem."
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf.synth SynthCheckBoxMenuItemUI]))
(defn ->synth-check-box-menu-item-ui
"Constructor."
(^SynthCheckBoxMenuItemUI []
(n... | |
c3e0d2c7501f44ed38203e3a25e732c06b75ffe1f03267b22c0ae865c6dc227d | Liam-Eagen/BulletproofsPP | Internal.hs | # LANGUAGE BangPatterns , MagicHash , UnboxedTuples #
module Data.Field.Galois.FastPrime.Internal where
import GHC.Word
-- import GHC.Prim
import GHC.Exts hiding (Word64#, F#)
import GHC.Natural
import GHC.Integer
import GHC.Integer.GMP.Internals
import Debug.Trace
--
This file implements 256 bit arithmetic modul... | null | https://raw.githubusercontent.com/Liam-Eagen/BulletproofsPP/0494201e2048f5c679f4ce3ee0cc6ac0ff9d3ef7/src/Data/Field/Galois/FastPrime/Internal.hs | haskell | import GHC.Prim
performs addition, subtraction and multiplication without explicitly calling
modulo. Division is not currently optimized. This does not take full
advantage of the optimization potential, but it should be faster than using a
data Field = F# { unF# :: Word256# }
0xffffffffffffffff
0xffffffffffffff... | # LANGUAGE BangPatterns , MagicHash , UnboxedTuples #
module Data.Field.Galois.FastPrime.Internal where
import GHC.Word
import GHC.Exts hiding (Word64#, F#)
import GHC.Natural
import GHC.Integer
import GHC.Integer.GMP.Internals
import Debug.Trace
This file implements 256 bit arithmetic modulo a prime p representa... |
f88c0c521bd0cdb2aa0d7b2d13538c4056f5197cb5e1e3922214e39910bc8e24 | Ericson2314/lighthouse | Device.hs | -- #hide
-----------------------------------------------------------------------------
-- |
-- Module : Window.Device
Copyright : ( c ) 2002
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
-- Window.Device defines the window device event hand... | null | https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/ObjectIO/Graphics/UI/ObjectIO/Window/Device.hs | haskell | #hide
---------------------------------------------------------------------------
|
Module : Window.Device
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
Window.Device defines the window device event handlers
------------------------------------------------... | Copyright : ( c ) 2002
module Graphics.UI.ObjectIO.Window.Device
( windowFunctions
) where
import Graphics.UI.ObjectIO.CommonDef
import Graphics.UI.ObjectIO.Control.Create
import Graphics.UI.ObjectIO.Control.Draw(drawCompoundLook)
import Graphics.UI.ObjectIO.Control.Layout(layoutControls)
import Graphi... |
ff7c5b22b198f299f30cc40e80a96bca024bf552d1fff7042e6f3f45bd7dc33e | serokell/importify | Options.hs | # LANGUAGE ApplicativeDo #
| Command line options for Importify
module Options
( ImportifyCliArgs (..)
, CommonOptions (..)
, Command (..)
, CabalCacheOptions (..)
, SingleFileOptions (..)
, parseOptions
) where
import Universum
import Options.Applicative (Pa... | null | https://raw.githubusercontent.com/serokell/importify/09f31d851b2152ae6ce880b81abc3554ade29f37/app/Options.hs | haskell | ^ Severity for logger
^ File where all redundant imports should be removed
^ Options for @importify file@ output
^ Don't delete downloaded package cache
^ Use specified dependencies overriding .cabal ones | # LANGUAGE ApplicativeDo #
| Command line options for Importify
module Options
( ImportifyCliArgs (..)
, CommonOptions (..)
, Command (..)
, CabalCacheOptions (..)
, SingleFileOptions (..)
, parseOptions
) where
import Universum
import Options.Applicative (Pa... |
6c726e2b272023ca6adb32e4e4782ec216c65e5cc572bcdf26e6d1ce808a8582 | ghc/ghc | unpack_sums_8.hs | # LANGUAGE UnboxedTuples #
# LANGUAGE UnboxedSums #
module Main where
data Void
data WithVoid = LV Void | RV
data EnumT = L | R
deriving Show
data BoxEnum = BoxEnum {-# UNPACK #-} !EnumT
deriving Show
l = BoxEnum L
r = BoxEnum R
main = do
print l
print r
data BoxWithVoid = BoxWithVoid {-# UNPACK ... | null | https://raw.githubusercontent.com/ghc/ghc/37cfe3c0f4fb16189bbe3bb735f758cd6e3d9157/testsuite/tests/unboxedsums/unpack_sums_8.hs | haskell | # UNPACK #
# UNPACK #
# UNPACK #
# UNPACK # | # LANGUAGE UnboxedTuples #
# LANGUAGE UnboxedSums #
module Main where
data Void
data WithVoid = LV Void | RV
data EnumT = L | R
deriving Show
deriving Show
l = BoxEnum L
r = BoxEnum R
main = do
print l
print r
wv = BoxWithVoid (LV undefined)
bv = BoxVoid undefined
bs = BoxS (# 1 | #)
|
79da4419e9d4ba542f9208ab80e6af3bed6b7fe0b6c64a85971efad5af6d799b | fourmolu/fourmolu | associated-type-defaults-four-out.hs | # LANGUAGE TypeFamilies #
class Foo a where type FooBar a = Int
-- | Something.
class Bar a where
-- Define bar
type
BarBar a =
BarBaz a
-- Define baz
type
BarBaz
a =
BarBar -- Middle comment
a
class Baz a where
type
Baz... | null | https://raw.githubusercontent.com/fourmolu/fourmolu/1f8903a92c8d5001dc1ec8ecfd4a04a3b61c3283/data/examples/declaration/class/associated-type-defaults-four-out.hs | haskell | | Something.
Define bar
Define baz
Middle comment | # LANGUAGE TypeFamilies #
class Foo a where type FooBar a = Int
class Bar a where
type
BarBar a =
BarBaz a
type
BarBaz
a =
a
class Baz a where
type
BazBar
a
type
BazBar a =
Bar a
|
141f7fadc313a5bd4e44c6727ded318c6762b3da63b28b585f5520631af08c85 | nasa/Common-Metadata-Repository | handler.clj | (ns cmr.http.kit.app.handler
"This namespace defines the handlers for general resources.
Simple handlers will only need to make a call to a library and then have that
data prepared for the client by standard response function. More complex
handlers will need to perform additional tasks. For example, in order o... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/http-kit-support/src/cmr/http/kit/app/handler.clj | clojure |
Utility Handlers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
| (ns cmr.http.kit.app.handler
"This namespace defines the handlers for general resources.
Simple handlers will only need to make a call to a library and then have that
data prepared for the client by standard response function. More complex
handlers will need to perform additional tasks. For example, in order o... |
a411ac4cc3ab32fb391735e90f36a4b8b3d88ca26e05adc047a6675d5609f81d | philnguyen/soft-contract | prims-04-15.rkt | #lang typed/racket/base
(require racket/match
racket/contract
racket/bool
racket/string
racket/math
racket/list
racket/stream
racket/dict
racket/function
racket/set
racket/flonum
racket/fixnum
racket/generator
... | null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/primitives/prims-04-15.rkt | racket |
FIXME varargs
, contracts
4.15.2.1 Primitive Dictionary Methods
FIXME listof
TODO more precise than doc . Confirm . ; FIXME listof
FIXME contract ?
4.15.5 Custom Hash Tables
FIXME uses , - > *
((or/c (any/c any/c . -> . any/c)
(any/c any/c (any/c any/c . -> . any/c) . -> . any/c))
. -> . (values ... | #lang typed/racket/base
(require racket/match
racket/contract
racket/bool
racket/string
racket/math
racket/list
racket/stream
racket/dict
racket/function
racket/set
racket/flonum
racket/fixnum
racket/generator
... |
8ea7c63ce0439ca049a041be45a257b64eb2e7c3ef8bb749dbfcf2300b8dded2 | llelf/prose | Tests.hs | import Test.Tasty
import Test.Tasty.QuickCheck
import Test.Tasty.HUnit
import qualified NormalizationTests as Norm
import qualified SegmentationTests as Segm
main = defaultMain tests
tests :: TestTree
tests = testGroup "tests" [
testGroup "norm" [
testCase "g1" (Norm.g1_check @?= Tru... | null | https://raw.githubusercontent.com/llelf/prose/ee32bef5cc7af41265ede92406943a5e2a60d530/tests/Tests.hs | haskell | FIXME testProperty "g1" Segm.g1_prop, | import Test.Tasty
import Test.Tasty.QuickCheck
import Test.Tasty.HUnit
import qualified NormalizationTests as Norm
import qualified SegmentationTests as Segm
main = defaultMain tests
tests :: TestTree
tests = testGroup "tests" [
testGroup "norm" [
testCase "g1" (Norm.g1_check @?= Tru... |
0dbe10e526c208c060b124806d58545f373a8e0c69da1eba89d6a0a3c19d1ae1 | PDP-10/panda | evonce.lsp | ;;; EVONCE -*-MODE:LISP;PACKAGE:SI-*- -*-LISP-*-
;;; **************************************************************
* * * * * * * * * * * * Macro for Defining SETF Structures * * * * *
;;; **************************************************************
* * ( C ) COPYRIGHT 1980 MASSACHUSETTS INST... | null | https://raw.githubusercontent.com/PDP-10/panda/522301975c062914ea3d630a1daefde261ddf590/files/maclisp/evonce.lsp | lisp | EVONCE -*-MODE:LISP;PACKAGE:SI-*- -*-LISP-*-
**************************************************************
**************************************************************
****** THIS IS A READ-ONLY FILE! (ALL WRITES RESERVED) *******
**************************************************************... | * * * * * * * * * * * * Macro for Defining SETF Structures * * * * *
* * ( C ) COPYRIGHT 1980 MASSACHUSETTS INSTITUTE OF TECHNOLOGY * *
(eval-when (eval compile)
(cond ((and (status feature MACLISP) (status nofeature FOR-NIL))
(sstatus feature FM)
(sstatus feature FOR-MACLISP)))
)
... |
7d5852c2d979e4d6dfb6a01f2c9ca5efb01187a09b2a7e27ac3bb9445f03edd9 | haskell-game/sdl2-image | Helper.hs | |
Module : SDL.Raw . Helper
Copyright : ( c ) 2015
License : MIT
Maintainer :
Stability : experimental
Exposes a way to automatically generate a foreign import alongside its lifted ,
inlined MonadIO variant . Use this to simplify the package 's SDL.Raw . * modules .
Module ... | null | https://raw.githubusercontent.com/haskell-game/sdl2-image/382395c763b473032721c71921b5c9241142178f/src/SDL/Raw/Helper.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE LambdaCase #
| Given a name @fname@, a name of a C function @cname@ and the desired
* A foreign import of @cname@, named as @fname'@.
* An always-inline MonadIO version of @fname'@, named @fname@.
Direct binding.
Lifted.
Type of direct binding.
The generated function... | |
Module : SDL.Raw . Helper
Copyright : ( c ) 2015
License : MIT
Maintainer :
Stability : experimental
Exposes a way to automatically generate a foreign import alongside its lifted ,
inlined MonadIO variant . Use this to simplify the package 's SDL.Raw . * modules .
Module ... |
8082b86a2f8da12771f1bb2885ba447faf492533db43d40ede1207927923427f | zack-bitcoin/amoveo | amoveo_http_sup.erl | -module(amoveo_http_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
-define(CHILD(Mod, Type, Args), {Mod, {Mod, start_link, Args},
permanent, 5000, Type, [Mod]}).
%%%===========================================================... | null | https://raw.githubusercontent.com/zack-bitcoin/amoveo/257f3e8cc07f1bae9df1a7252b8bc67a0dad3262/apps/amoveo_http/src/amoveo_http_sup.erl | erlang | API
Supervisor callbacks
===================================================================
API functions
===================================================================
===================================================================
Supervisor callbacks
====================================================... | -module(amoveo_http_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(CHILD(Mod, Type, Args), {Mod, {Mod, start_link, Args},
permanent, 5000, Type, [Mod]}).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
{o... |
7237f629c7821022ddb52921702ca40f739cbd61e0f404ab1de476c28b289d51 | YoshikuniJujo/test_haskell | Middle.hs | # LANGUAGE ImportQualifiedPost #
# LANGUAGE BlockArguments #
# LANGUAGE MonoLocalBinds #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module Glfw.Middle where
import Foreign.Marshal
import Foreign.Storable
import Foreign.Storable.PeekPoke
import Gpu.Vulkan.Exception.Middle
import qualified Graphics.UI.GLFW as GlfwB
imp... | null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/0c0bb15dcd8cf6c7a9b9ec1abc95b8d6b219734d/themes/gui/vulkan/try-my-vulkan-snd/src/Glfw/Middle.hs | haskell | # LANGUAGE ImportQualifiedPost #
# LANGUAGE BlockArguments #
# LANGUAGE MonoLocalBinds #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module Glfw.Middle where
import Foreign.Marshal
import Foreign.Storable
import Foreign.Storable.PeekPoke
import Gpu.Vulkan.Exception.Middle
import qualified Graphics.UI.GLFW as GlfwB
imp... | |
b2ed171828084eefeaa8f7a148e8bc1995a9654243b8bbcc81e1ec6c2b7812dc | haskell-tools/haskell-tools | HashDefine.hs | -----------------------------------------------------------------------------
-- |
Module : HashDefine
Copyright : 2004
-- Licence : LGPL
--
Maintainer : < >
-- Stability : experimental
-- Portability : All
--
-- What structures are declared in a \#define.
--------------------------... | null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/cli/examples/CppHs/Language/Preprocessor/Cpphs/HashDefine.hs | haskell | ---------------------------------------------------------------------------
|
Licence : LGPL
Stability : experimental
Portability : All
What structures are declared in a \#define.
---------------------------------------------------------------------------
| Expand an instance of a macro.
Preconditio... | Module : HashDefine
Copyright : 2004
Maintainer : < >
module Language.Preprocessor.Cpphs.HashDefine
( HashDefine(..)
, ArgOrText(..)
, expandMacro
, parseHashDefine
, simplifyHashDefines
) where
import Data.Char (isSpace)
import Data.List (intercalate)
data HashDefine
... |
c01e61338a0a5dc507026982c8d556365f00c10b57c078b4cb2ad594f3b4fa4f | plumatic/grab-bag | push_notification_messages.clj | (ns domain.push-notification-messages
"Definition of messages pertaining to push notifications."
(:use plumbing.core)
(:require
[schema.experimental.abstract-map :as abstract-map]
[schema.core :as s]))
(s/defschema MessagePayload
(abstract-map/abstract-map-schema
:type
{:message String
;; optio... | null | https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/domain/src/domain/push_notification_messages.clj | clojure | optional for backwards compatibility | (ns domain.push-notification-messages
"Definition of messages pertaining to push notifications."
(:use plumbing.core)
(:require
[schema.experimental.abstract-map :as abstract-map]
[schema.core :as s]))
(s/defschema MessagePayload
(abstract-map/abstract-map-schema
:type
{:message String
(s/optio... |
0e2a3ae9201afde087713755ab4a19b8c8997b609f4c5cd8ff7714398f684743 | cac-t-u-s/om-sharp | cocoa.lisp | -*- Mode : Lisp ; rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / compound/61 / LISPopengl / RCS / cocoa.lisp , v 1.7.1.1 2014/05/27 20:56:56 davef Exp $ " -*-
Copyright ( c ) 1987 - -2015 LispWorks Ltd. All rights reserved .
Support for OpenGL with CAPI / Cocoa .
;; Symbols in the CAPI-COCOA-LIB p... | null | https://raw.githubusercontent.com/cac-t-u-s/om-sharp/74aa97891177de1d167aa5963be00f0d453a3bcd/src/packages/space/OpenGL/lw-opengl/cocoa.lisp | lisp | rcs - header : " $ Header : /hope / lwhope1 - cam / hope.0 / compound/61 / LISPopengl / RCS / cocoa.lisp , v 1.7.1.1 2014/05/27 20:56:56 davef Exp $ " -*-
Symbols in the CAPI-COCOA-LIB package are not part of a supported API.
Invoking setView here does not work for some reason so do it in
%start-rendering using the... |
Copyright ( c ) 1987 - -2015 LispWorks Ltd. All rights reserved .
Support for OpenGL with CAPI / Cocoa .
(in-package "OPENGL")
(defun opengl-pane-representation-view (rep)
(capi-cocoa-lib::representation-main-view rep))
(defstruct cocoa-context
context
pixel-format
set-view)
(defmethod %make-context (... |
dbfbec50efed168fa6472fa9da07fb22cf3053fce93f3def9a8704cbe8533fef | psibi/shell-conduit | Types.hs | # LANGUAGE TypeFamilies #
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
# LANGUAGE StandaloneD... | null | https://raw.githubusercontent.com/psibi/shell-conduit/ac93851967d3f3099fdbafa9f5bdb4b990537f06/src/Data/Conduit/Shell/Types.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DeriveDataTypeable #
| All types.
handling to handle usual exceptions.
| An exception resulting from a shell command.
^ Process exited with failure. | # LANGUAGE TypeFamilies #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE UndecidableInstances #
# LANGUAGE StandaloneDeriving #
# LANGUAGE CPP #
module Data.Conduit.Shell.Types where
im... |
622b896eaca186d031ab653146f2bcc2da79a8cddada5d4b401d77f318e48b64 | imrehg/ypsilon | attribute.scm | #!nobacktrace
Ypsilon Scheme System
Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited .
See license.txt for terms and conditions of use .
(library (ypsilon pango attribute)
(export pango_attribute_copy
pango_attribute_destroy
pango_attribute_equal
pango_attribute_... | null | https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/pango/attribute.scm | scheme | PangoAttribute* pango_attribute_copy (const PangoAttribute* attr)
void pango_attribute_destroy (PangoAttribute* attr)
gboolean pango_attribute_equal (const PangoAttribute* attr1, const PangoAttribute* attr2)
void pango_attribute_init (PangoAttribute* attr, const PangoAttrClass* klass)
[end] | #!nobacktrace
Ypsilon Scheme System
Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited .
See license.txt for terms and conditions of use .
(library (ypsilon pango attribute)
(export pango_attribute_copy
pango_attribute_destroy
pango_attribute_equal
pango_attribute_... |
2e7a82199ebf9d9f3fb866f4bf6c2f23af5513693dbfa8def18b8ccfefc2994f | codinuum/cca | LACS.ml |
Copyright 2012 - 2020 Codinuum Software Lab < >
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 wri... | null | https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/otreediff/src/LACS.ml | ocaml | ** Cuts **
** Effects **
Lemma 3.1
Lemma 3.3
Lemma 3.4
let psi_array = array3_create (i - li + 2) (j - lj + 2) (d + 1) (-1, []) in
Lemma 3.2(ii)
Lemma 3.5
Lemma 3.6
assumes sorted(in descending order) mapping |
Copyright 2012 - 2020 Codinuum Software Lab < >
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 wri... |
2cafe6c4676b296e0353be2f98bc7bde9d5399aa160ebc57f7c9cc8b884559ed | softwarelanguageslab/maf | R5RS_gabriel_triangl-3.scm | ; Changes:
* removed : 1
* added : 0
* swaps : 2
; * negated predicates: 0
* swapped branches : 1
* calls to i d fun : 1
(letrec ((*board* (vector 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1))
(*sequence* (vector 0 0 0 0 0 0 0 0 0 0 0 0 0 0))
(*a* (vector 1 2 4 3 5 6 1 3 6 2 5 4 11 12 13 7 8 4 4 7 11 8 ... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_gabriel_triangl-3.scm | scheme | Changes:
* negated predicates: 0 | * removed : 1
* added : 0
* swaps : 2
* swapped branches : 1
* calls to i d fun : 1
(letrec ((*board* (vector 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1))
(*sequence* (vector 0 0 0 0 0 0 0 0 0 0 0 0 0 0))
(*a* (vector 1 2 4 3 5 6 1 3 6 2 5 4 11 12 13 7 8 4 4 7 11 8 12 13 6 10 15 9 14 13 13 14 15 9 10 6... |
b54dcdec3b705595474594a641ce6672014390b2079c456c9838de4b573ea0b9 | yuriy-chumak/ol | synchronous_concurrency.scm | ; #Ol
(import (owl parse))
(actor 'reader (lambda ()
; lazy file line-by-line reader
(define (not-a-newline x) (not (eq? x #\newline)))
(define parser (let-parse*
((line (greedy* (byte-if not-a-newline)))
(newline (imm #\newline)))
(bytes-... | null | https://raw.githubusercontent.com/yuriy-chumak/ol/e6e02f6a3024fec87c88d563be6889b96a2e6f84/tests/rosettacode/synchronous_concurrency.scm | scheme | #Ol
lazy file line-by-line reader
file is ended
wait for a request
send a end-of-file
new line is read
wait for a request
send a line
just a lazy read, let's repeat
wait for a request |
(import (owl parse))
(actor 'reader (lambda ()
(define (not-a-newline x) (not (eq? x #\newline)))
(define parser (let-parse*
((line (greedy* (byte-if not-a-newline)))
(newline (imm #\newline)))
(bytes->string line)))
(define file (port->by... |
d84ee13c7868dd18f603eafd6794ec523106f50ce455abdf2b05c3fc955ccf74 | clojure-numerics/expresso | construct.clj | (ns numeric.expresso.construct
(:refer-clojure :exclude [== record?])
(:use [numeric.expresso.properties]
[clojure.core.logic])
(:require [clojure.walk :as walk]
[clojure.set :as set]
[numeric.expresso.protocols :as protocols]
[numeric.expresso.impl.pimplementation :as ... | null | https://raw.githubusercontent.com/clojure-numerics/expresso/ff18c753b3bbc5307983e0d4feef5558e89b6e5e/src/main/clojure/numeric/expresso/construct.clj | clojure | This is the namespace for constructing expressions. Its main function is
ce (for create expression) which behaves like list* but adds important meta
data to the expression which expresso uses for its manipulations.
The constructing is also based on multimethod dispatch so it can be extended
to custom operators easily
a... | (ns numeric.expresso.construct
(:refer-clojure :exclude [== record?])
(:use [numeric.expresso.properties]
[clojure.core.logic])
(:require [clojure.walk :as walk]
[clojure.set :as set]
[numeric.expresso.protocols :as protocols]
[numeric.expresso.impl.pimplementation :as ... |
cab9ab98a572222b96a290440f5e9cd9c893a6368a537c3d193e170994e8a66e | dcastro/twenty48 | Gen.hs | module Game.Gen where
import Data.Pair
import qualified Game.Optimized.Board as O
import qualified Game.Simple.Board as S
import Game.Types
import Test.QuickCheck
import TestImport
genOptimizedBoard :: Gen O.Board
genOptimizedBoard = map O.boardFromLists genCells
genSimpleB... | null | https://raw.githubusercontent.com/dcastro/twenty48/d4a58bfa389bb247525fd18f80ef428d84ef5fe9/test/Game/Gen.hs | haskell | module Game.Gen where
import Data.Pair
import qualified Game.Optimized.Board as O
import qualified Game.Simple.Board as S
import Game.Types
import Test.QuickCheck
import TestImport
genOptimizedBoard :: Gen O.Board
genOptimizedBoard = map O.boardFromLists genCells
genSimpleB... | |
829452fe8d0e8f0d405181312b8d2cdf137727cd3547381f813c4aee47d894ff | informatimago/lisp | generate-application.lisp | -*- mode : lisp;coding : utf-8 -*-
;;;;**************************************************************************
FILE : generate-application.lisp
;;;;LANGUAGE: Common-Lisp
;;;;SYSTEM: Common-Lisp
USER - INTERFACE :
;;;;DESCRIPTION
;;;;
;;;; Save the botihn executable.
;;... | null | https://raw.githubusercontent.com/informatimago/lisp/83929db9ed866b82274de5c09c5f42d7e86986d5/small-cl-pgms/botihn/generate-application.lisp | lisp | coding : utf-8 -*-
**************************************************************************
LANGUAGE: Common-Lisp
SYSTEM: Common-Lisp
DESCRIPTION
Save the botihn executable.
LEGAL
This program is free software: you can redistribute it and/or modify
(at your option) any later vers... | FILE : generate-application.lisp
USER - INTERFACE :
< PJB > < >
MODIFICATIONS
2015 - 04 - 27 < PJB > Created .
AGPL3
Copyright 2015 - 2016
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version... |
fecb3b11d8aa469e7f524c268a12c8cd5e0761b363fe2a11e5d57adbb570aa51 | Frama-C/Frama-C-snapshot | book_manager.ml | (**************************************************************************)
(* *)
This file is part of Frama - C.
(* *)
Copyright ... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/gui/book_manager.ml | ocaml | ************************************************************************
alternatives)
... | This file is part of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , v... |
5dfd56409e45e685052922ca976bfc978f5df5f5e81e250b27be4de6943e38c3 | haskell/haskell-language-server | NestedWhere.hs | module NestedWhere where
function x = identity x
where
identity x = x
| null | https://raw.githubusercontent.com/haskell/haskell-language-server/2b691b65cbc0c592471ae68597e32478d49b87f2/plugins/hls-retrie-plugin/test/testdata/NestedWhere.hs | haskell | module NestedWhere where
function x = identity x
where
identity x = x
| |
1b53588442d97760ab6f505f32bc342b3768f66e47830c007ed66417e8550451 | bennn/iPoe | free-lib.rkt | #lang racket/base
;; Require the 'free-verse' language
(require ipoe/free-verse/lang/reader)
(free-verse "lol")
| null | https://raw.githubusercontent.com/bennn/iPoe/4a988f6537fb738b4fe842c404f9d78f658ab76f/examples/free-verse/free-lib.rkt | racket | Require the 'free-verse' language | #lang racket/base
(require ipoe/free-verse/lang/reader)
(free-verse "lol")
|
4823a41fcda799f45c34f416d83eb08432382200640684bf18766a616e5f9f79 | raaz-crypto/raaz | Digest.hs | -- |
-- Module : Raaz.Digest
-- Description : Message digest.
Copyright : ( c ) , 2016
-- License : Apache-2.0 OR BSD-3-Clause
-- Maintainer : Piyush P Kurur <>
-- Stability : experimental
--
module Raaz.Digest
(
-- ** Message digest.
--
-- $messagedigest$
... | null | https://raw.githubusercontent.com/raaz-crypto/raaz/c2a55d83be53b57b9405dcf4028ab03e14637cad/raaz/Raaz/Digest.hs | haskell | |
Module : Raaz.Digest
Description : Message digest.
License : Apache-2.0 OR BSD-3-Clause
Maintainer : Piyush P Kurur <>
Stability : experimental
** Message digest.
$messagedigest$
** Incremental processing.
$incremental$
*** Specific message digests.
$specific-digest$
*** Meta Information
... | Copyright : ( c ) , 2016
module Raaz.Digest
(
Digest, digest, digestFile, digestSource
, DigestCxt
, startDigest, updateDigest, finaliseDigest
, digestAlgorithm
) where
import GHC.TypeLits
import Raaz.Core
import qualified Raaz.V1.Digest as Digest
import ... |
2e8432569eacfbf77d309a26f33d48910e323efc8d9fc88428bf7fc9c8057271 | fulcrologic/fulcro | file_upload.clj | (ns com.fulcrologic.fulcro.networking.file-upload
(:require [edn-query-language.core :as eql]
[taoensso.timbre :as log]
[taoensso.encore :as enc]
[clojure.string :as str]
[clojure.tools.reader.edn :as edn]
[com.fulcrologic.fulcro.algorithms.transit :as trans... | null | https://raw.githubusercontent.com/fulcrologic/fulcro/71ed79c650222567ac4a566513365a95f12657e3/src/main/com/fulcrologic/fulcro/networking/file_upload.clj | clojure | (ns com.fulcrologic.fulcro.networking.file-upload
(:require [edn-query-language.core :as eql]
[taoensso.timbre :as log]
[taoensso.encore :as enc]
[clojure.string :as str]
[clojure.tools.reader.edn :as edn]
[com.fulcrologic.fulcro.algorithms.transit :as trans... | |
680947034a3fbc04953fec6c9a7db14f1846d0c8cd5b54eb729b9c121f79e519 | mstewartgallus/hs-callbypushvalue | AsCompose.hs | # LANGUAGE DataKinds #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
module AsCompose ((:.:), extract, extractTerm, extractData, extractStack, Stack (..), Data (..), Code (..)) where
import Cbpv
import qualified Cps
import HasCall
import HasCode
import HasConstants
impor... | null | https://raw.githubusercontent.com/mstewartgallus/hs-callbypushvalue/d8770b7e9e444e1261901f5ee435fcefb0f7ad75/src/AsCompose.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
module AsCompose ((:.:), extract, extractTerm, extractData, extractStack, Stack (..), Data (..), Code (..)) where
import Cbpv
import qualified Cps
import HasCall
import HasCode
import HasConstants
impor... | |
e6cdd1fbfa8fc4f83210da1fff44f0ed69886039cbe3423bff2f73fdca60afd8 | spechub/Hets | appendHaskellPreludeString.hs | |
Module : $ Id$
Copyright : ( c ) , Uni Bremen 2002 - 2004
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : experimental
Portability : portable
append a haskell Prelude string for programatica analysis
or add CASL_DL / PredDatatypes.dol to CAS... | null | https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/utils/appendHaskellPreludeString.hs | haskell | |
Module : $ Id$
Copyright : ( c ) , Uni Bremen 2002 - 2004
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : experimental
Portability : portable
append a haskell Prelude string for programatica analysis
or add CASL_DL / PredDatatypes.dol to CAS... | |
98b979df16ac0238fbb6b3cf47550ce5cad012d8148c2f5f851329bf7947849a | gonimo/gonimo | Frontend.hs | # LANGUAGE DataKinds #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TypeApplications #
module Frontend where
import qualified Data.Text as T
import Obelisk.Frontend
import Control.Monad (void)
import Obelisk.Route
import Reflex.Dom.Core
import Control.Monad.IO.C... | null | https://raw.githubusercontent.com/gonimo/gonimo/f4072db9e56f0c853a9f07e048e254eaa671283b/frontend/src/Frontend.hs | haskell | # LANGUAGE OverloadedStrings #
, _frontend_headRender = HeadRender_Static
, _frontend_headRender = HeadRender_Static
TODO: Replace with obelisk config: | # LANGUAGE DataKinds #
# LANGUAGE TypeApplications #
module Frontend where
import qualified Data.Text as T
import Obelisk.Frontend
import Control.Monad (void)
import Obelisk.Route
import Reflex.Dom.Core
import Control.Monad.IO.Class (liftIO)
import Com... |
0032a6d65bceb57d4dc2cada8a830fcd9eefa257ac7d77a50afe87e0e0a47935 | haskellfoundation/error-message-index | NotInScopeLambda.hs | module NotInScopeLambda where
f = \A -> A
| null | https://raw.githubusercontent.com/haskellfoundation/error-message-index/6b80c2fe6d8d2941190bda587bcea6f775ded0a4/message-index/messages/GHC-76037/example1/before/NotInScopeLambda.hs | haskell | module NotInScopeLambda where
f = \A -> A
| |
e3e6190cc86a54414393e07ab6004d47078be4e12d3b79c3d28e36833c32e54c | jkoppel/ecta | SATSpec.hs | {-# LANGUAGE OverloadedStrings #-}
module SATSpec ( spec ) where
import qualified Data.HashMap.Strict as HashMap
import qualified Data.HashSet as HashSet
import Test.Hspec
import Application.SAT
-----------------------------------------------------------------
smallFormula :: CNF
smallFormula = And [ Or [PosLit "x... | null | https://raw.githubusercontent.com/jkoppel/ecta/865cf95fea1c875c2732991db6415d963c5d6189/test/SATSpec.hs | haskell | # LANGUAGE OverloadedStrings #
---------------------------------------------------------------
------ |
module SATSpec ( spec ) where
import qualified Data.HashMap.Strict as HashMap
import qualified Data.HashSet as HashSet
import Test.Hspec
import Application.SAT
smallFormula :: CNF
smallFormula = And [ Or [PosLit "x1", PosLit "x2"]
, Or [NegLit "x1", NegLit "x2"]
]
spec :: Sp... |
ce8dbe556b7c51f4d1c38188cbd6811972e79d182e7e9789754723f597bcaad5 | sdiehl/elliptic-curve | BLS12381.hs | module Data.Curve.Weierstrass.BLS12381
( module Data.Curve.Weierstrass
, Point(..)
-- * BLS12381 curve
, module Data.Curve.Weierstrass.BLS12381
) where
import Protolude
import Data.Field.Galois
import GHC.Natural (Natural)
import Data.Curve.Weierstrass
-----------------------------------------------------... | null | https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/BLS12381.hs | haskell | * BLS12381 curve
-----------------------------------------------------------------------------
Types
-----------------------------------------------------------------------------
| BLS12381 curve.
| Field of points of BLS12381 curve.
| Field of coefficients of BLS12381 curve.
# INLINABLE a_ #
# INLINABLE h_ #
| A... | module Data.Curve.Weierstrass.BLS12381
( module Data.Curve.Weierstrass
, Point(..)
, module Data.Curve.Weierstrass.BLS12381
) where
import Protolude
import Data.Field.Galois
import GHC.Natural (Natural)
import Data.Curve.Weierstrass
data BLS12381
type Fq = Prime Q
type Q = 0x1a0111ea397fe69a4b1ba7b6434bac... |
d18da9c0f961fd2e019ff9957cebb77acfaa36fb1e72b77e214bd47a6ce8e7db | lspitzner/brittany | Test395.hs | -- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
# LANGUAGE ImplicitParams #
func :: (?asd::Int) -> ()
| null | https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test395.hs | haskell | brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } | # LANGUAGE ImplicitParams #
func :: (?asd::Int) -> ()
|
681e8ede7919986ea25b31f01e5980afc9c87766a0c3db01d23b008b563a2295 | jumarko/clojure-experiments | transducers.clj | (ns clojure-experiments.transducers.transducers
(:require [clojure.core.async :refer [>! <! <!!] :as async]
[clojure.string :as str]
[clojure.java.io :as io]
[net.cgrand.xforms :as x]))
;;; My own experiments
;;; - Check this to learn about arities of reducing functions: #_creatin... | null | https://raw.githubusercontent.com/jumarko/clojure-experiments/8dec2abaece1cd3fd18c28d78b7a244b287ba588/src/clojure_experiments/transducers/transducers.clj | clojure | My own experiments
- Check this to learn about arities of reducing functions: #_creating_transducers
Note that transduce (or any transduction) does not require arity-0 support of the bottom reducing fn unless you use it in a context without an init value.
(#gistcomment-1293960)
- Early termination is also use... | (ns clojure-experiments.transducers.transducers
(:require [clojure.core.async :refer [>! <! <!!] :as async]
[clojure.string :as str]
[clojure.java.io :as io]
[net.cgrand.xforms :as x]))
- And stateful transducers ( ` dedupe ` ): #_transducers_with_reduction_state
(defn filterer
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.