_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 |
|---|---|---|---|---|---|---|---|---|
741e4f2a3ced90ad2e92318b1442246c5060ff08f0852963129eee68bae2a826 | bobzhang/fan | fid.mli | (** Basic module for Fan's deriving mechanism *)
*
{ [
x ~off:2 3 - > _ c3
x 3 - > _ a3
] }
The default offset is zero
{[
x ~off:2 3 -> _c3
x 3 -> _a3
]}
The default offset is zero
*)
val x : ?off:int -> int -> string
val xid : ?off:int -> int -> [> `Lid of string ]
... | null | https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/main/fid.mli | ocaml | * Basic module for Fan's deriving mechanism |
*
{ [
x ~off:2 3 - > _ c3
x 3 - > _ a3
] }
The default offset is zero
{[
x ~off:2 3 -> _c3
x 3 -> _a3
]}
The default offset is zero
*)
val x : ?off:int -> int -> string
val xid : ?off:int -> int -> [> `Lid of string ]
*
see { ! x } , add a prefix [ " all " ] . ... |
ab5c0a2e9d87175b76be078132bc1964dbae1112f9fd8d2703ba037a8d511e0f | rackerlabs/gen_batch | gen_batch_runner.erl | -module(gen_batch_runner).
-behaviour(gen_fsm).
%% API
-export([start_link/1, run_job/2, sync_run_job/2, stop/1]).
%% Worker callback
-export([worker_ready/2, worker_ready/3]).
%% gen_fsm callbacks
-export([init/1, handle_event/3, handle_sync_event/4, handle_info/3,
terminate/3, code_change/4]).
State ca... | null | https://raw.githubusercontent.com/rackerlabs/gen_batch/cbd50ad86985d042cc33ae9c99491f37bdd23e89/src/gen_batch_runner.erl | erlang | API
Worker callback
gen_fsm callbacks
module
queue
orddict
defined by callback module
===================================================================
API
===================================================================
===================================================================
Worker callback
=... | -module(gen_batch_runner).
-behaviour(gen_fsm).
-export([start_link/1, run_job/2, sync_run_job/2, stop/1]).
-export([worker_ready/2, worker_ready/3]).
-export([init/1, handle_event/3, handle_sync_event/4, handle_info/3,
terminate/3, code_change/4]).
State callbacks
-export([ready/2, ready/3, running/2, c... |
6ce1f0f7996824ce6b7805b5ebc6abde41096708028145c01c1ae61e4d0b2bf7 | helins/binf.cljc | user.clj | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(ns user
"For daydreaming at the REPL."
(:require [helins.binf.dev]))
(set! *warn-on-reflection*
true)
;;;;;;;;;;
(comment
... | null | https://raw.githubusercontent.com/helins/binf.cljc/14719a69590289459209db6964b64256fbdf3d29/src/dev/user.clj | clojure | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(ns user
"For daydreaming at the REPL."
(:require [helins.binf.dev]))
(set! *warn-on-reflection*
true)
(comment
)
| |
ea804cf0c4450130082a7c5f1549c0f613b2b22f2538fb49b0b372797bd529e6 | jfeser/L2 | generate_functions.ml | #!/usr/bin/env ocaml
#use "topfind";;
#thread;;
#require "core.top";;
#ppx "ppx-jane -as-ppx";;
#require "l2";;
open Core.Std
open L2
open Collections
open Hypothesis
open Infer
open Synthesis_common
open V2_engine
module Sp = Specification
let rec generate_value : ?max_int:int -> ?max_len:int -> Type.t -> Valu... | null | https://raw.githubusercontent.com/jfeser/L2/a66659c7d75f75788c48a17b531045fb3d5f8351/bin/generate_functions.ml | ocaml | let choices =
in
flush stdout;
match List.random choices with
| Some `Abstract ->
|> List.find_map ~f:loop
| None -> None
let choices =
in
flush stdout;
match List.random choices with
| Some `Abstract ->
|> List.find_map ~f:loop
| None -> None
Sequence.repeat ()
|> Sequence.map ~f:(fu... | #!/usr/bin/env ocaml
#use "topfind";;
#thread;;
#require "core.top";;
#ppx "ppx-jane -as-ppx";;
#require "l2";;
open Core.Std
open L2
open Collections
open Hypothesis
open Infer
open Synthesis_common
open V2_engine
module Sp = Specification
let rec generate_value : ?max_int:int -> ?max_len:int -> Type.t -> Valu... |
1eb6aec628225f698a3d5ef818e1d255da10432ad54d3c16db84dec63acd3eb9 | philschonholzer/co2db | New.hs | module Web.View.Categories.New where
import Web.View.Prelude
data NewView = NewView {category :: Category}
instance View NewView where
html NewView {..} =
[hsx|
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href={CategoriesAction}>Categories</a></li>
... | null | https://raw.githubusercontent.com/philschonholzer/co2db/f2baa01eb31b3d23ffd7b256fb10a4764e89c0ef/Web/View/Categories/New.hs | haskell | module Web.View.Categories.New where
import Web.View.Prelude
data NewView = NewView {category :: Category}
instance View NewView where
html NewView {..} =
[hsx|
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href={CategoriesAction}>Categories</a></li>
... | |
411c38032d8eb64575ed055b6148e2d4a9c1a997f8140696d6f94dca67cc0503 | shayan-najd/NativeMetaprogramming | T10715.hs | # LANGUAGE FlexibleContexts #
module T10715 where
import Data.Coerce (coerce, Coercible)
import Data.Ord ( Down ) -- convenient newtype
data X a
doCoerce :: Coercible a (X a) => a -> X a
doCoerce = coerce
| null | https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_fail/T10715.hs | haskell | convenient newtype | # LANGUAGE FlexibleContexts #
module T10715 where
import Data.Coerce (coerce, Coercible)
data X a
doCoerce :: Coercible a (X a) => a -> X a
doCoerce = coerce
|
1c89163ca0f9bad32f2aca8c1c5ec8bbbb45951a64064bca64df90a797399b27 | grin-compiler/ghc-grin | StaticSingleAssignment.hs | # LANGUAGE LambdaCase , TupleSections , RecordWildCards #
module Lambda.StaticSingleAssignment where
import Control.Monad.State
import Data.Functor.Foldable
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Map (Map)
import qualified Data.Map as Map
import qualified Data.Foldable
import Transformatio... | null | https://raw.githubusercontent.com/grin-compiler/ghc-grin/ebc4dca2e1f5b3581d4b84726730564ce909d786/lambda-grin/src/Lambda/StaticSingleAssignment.hs | haskell | name shadowing in the bind sequence
no name shadowing | # LANGUAGE LambdaCase , TupleSections , RecordWildCards #
module Lambda.StaticSingleAssignment where
import Control.Monad.State
import Data.Functor.Foldable
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Map (Map)
import qualified Data.Map as Map
import qualified Data.Foldable
import Transformatio... |
043cda8e2b2c0d7424be751723b16730b3e47e18d53419f77607957bda9ac77d | screenshotbot/screenshotbot-oss | test-channel.lisp | ;;;; Copyright 2018-Present Modern Interpreters Inc.
;;;;
This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(pkg:define-package :screenshotbot/model/test-channel
(:use #:cl
#:alexandr... | null | https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/9b3d1b08c42578a03e5b8b485d493d1d9b3627e7/src/screenshotbot/model/test-channel.lisp | lisp | Copyright 2018-Present Modern Interpreters Inc.
| This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(pkg:define-package :screenshotbot/model/test-channel
(:use #:cl
#:alexandria
#:screenshotbot/model/channel
#:screens... |
d7d1c117394486fbf5ad0e1c82ed45792675ede58e1c735667d367c63e10c4a9 | hanshuebner/bknr-web | package.lisp | (defpackage :bknr.mail
(:use :cl
:cl-user
:cxml
:cl-ppcre
:cl-interpol
:cl-smtp
:bknr.utils
:bknr.web
:bknr.user
:bknr.indices
:bknr.datastore
:bknr.impex
:hunchentoot
:puri
:xhtml-generator)
(:shadowing-import-from :cl-interpol quote-meta-chars)
(:export #:subscription
#:subscription-mailinglis... | null | https://raw.githubusercontent.com/hanshuebner/bknr-web/5c30b61818a2f02f6f2e5dc69fd77396ec3afc51/modules/mail/package.lisp | lisp | accessor
accessor
ac
accessor
pop only
pop only | (defpackage :bknr.mail
(:use :cl
:cl-user
:cxml
:cl-ppcre
:cl-interpol
:cl-smtp
:bknr.utils
:bknr.web
:bknr.user
:bknr.indices
:bknr.datastore
:bknr.impex
:hunchentoot
:puri
:xhtml-generator)
(:shadowing-import-from :cl-interpol quote-meta-chars)
(:export #:subscription
#:subscription-mailinglis... |
4c5ca58f0d8aafece1ae66a7bdf1e0083484df0bd8141d7070343b0f71837260 | janestreet/bonsai | weak_map.ml | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
open! Js_of_ocaml
open! Gen_js_api
type ('a, 'b) t = Ojs.t
let rec t_of_js :
'a 'b . (Ojs.t -> 'a) -> (Ojs.t -> 'b) -> Ojs.t -> ('a, 'b) t =
fun (type __a) ->
fun (type __b) ->
fun (__a_of_js : Ojs.t -> __a) ->
... | null | https://raw.githubusercontent.com/janestreet/bonsai/4baeedc75bf73a0915e04dc02d8a49b78779e9b0/web_ui/element_size_hooks/src/weak_map.ml | ocaml | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
open! Js_of_ocaml
open! Gen_js_api
type ('a, 'b) t = Ojs.t
let rec t_of_js :
'a 'b . (Ojs.t -> 'a) -> (Ojs.t -> 'b) -> Ojs.t -> ('a, 'b) t =
fun (type __a) ->
fun (type __b) ->
fun (__a_of_js : Ojs.t -> __a) ->
... | |
5f675ef3948659cfe3f0ae9e5432ac895c2abb685edd5974d1f9279e1249347c | pfdietz/ansi-test | print-complex.lsp | ;-*- Mode: Lisp -*-
Author :
Created : We d Mar 3 06:44:04 2004
;;;; Contains: Tests of printing complex numbers
(in-package :cl-test)
(deftest print.complex.1
(equalt
(with-standard-io-syntax
(let ((*print-readably* nil))
(with-output-to-string (s) (prin1 (complex 1 2) s))))
"#... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/printer/print-complex.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of printing complex numbers
General floating point complex printing tests will go here | Author :
Created : We d Mar 3 06:44:04 2004
(in-package :cl-test)
(deftest print.complex.1
(equalt
(with-standard-io-syntax
(let ((*print-readably* nil))
(with-output-to-string (s) (prin1 (complex 1 2) s))))
"#C(1 2)")
t)
(deftest print.complex.2
(equalt
(with-standard-io-sy... |
a129116afcc98734ba3e844ff2e994288376055c0550bc7276fd8fbbc817f3a7 | ksseono/the-joy-of-clojure | scalars.clj | (ns joy.scalars)
;;
;; Listing 4.1
;;
(defn pour [lb ub]
(cond
(= ub :toujours) (iterate inc lb)
:else (range lb ub)))
(comment
(pour 1 10)
;;=> (1 2 3 4 5 6 7 8 9)
(pour 1 :toujours)
;; ... runs forever
)
| null | https://raw.githubusercontent.com/ksseono/the-joy-of-clojure/4fee3fb2750236b85b59ae9d7a83e0929040e4f0/src/clj/ch04/joy/scalars.clj | clojure |
Listing 4.1
=> (1 2 3 4 5 6 7 8 9)
... runs forever | (ns joy.scalars)
(defn pour [lb ub]
(cond
(= ub :toujours) (iterate inc lb)
:else (range lb ub)))
(comment
(pour 1 10)
(pour 1 :toujours)
)
|
6db44ef7798d9bbd328f6266da8997912ec48a697fe653c0ed32ea1668c30473 | riemann/riemann | pubsub_test.clj | (ns riemann.pubsub-test
(:require [riemann.common :refer [event]]
[riemann.core :refer [transition! core wrap-index]]
[riemann.index :as index]
[riemann.logging :as logging]
[riemann.pubsub :refer :all]
[clojure.test :refer :all]))
(deftest one-to... | null | https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/test/riemann/pubsub_test.clj | clojure | (ns riemann.pubsub-test
(:require [riemann.common :refer [event]]
[riemann.core :refer [transition! core wrap-index]]
[riemann.index :as index]
[riemann.logging :as logging]
[riemann.pubsub :refer :all]
[clojure.test :refer :all]))
(deftest one-to... | |
627418c696989a1f1c75fafbdb24850758fb023187627b51cb3f4eb8d2a8bb53 | tonyg/kali-scheme | receive.scm | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define-syntax receive
(syntax-rules ()
((receive ?vars ?producer . ?body)
(call-with-values (lambda () ?producer)
(lambda ?vars . ?body)))))
| null | https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/scheme/big/receive.scm | scheme | Copyright ( c ) 1993 , 1994 by and .
Copyright ( c ) 1996 by NEC Research Institute , Inc. See file COPYING .
(define-syntax receive
(syntax-rules ()
((receive ?vars ?producer . ?body)
(call-with-values (lambda () ?producer)
(lambda ?vars . ?body)))))
| |
7ab346a00430d39313c7e69997160fee4e2ac63804d4961c1c58b4bce12ee5a1 | ndmitchell/hlint | FreeVars.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE TypeFamilies #
module GHC.Util.FreeVars (
vars, varss, pvars,
Vars (..), FreeVars(..) , AllVars (..)
) where
import GHC.Types.Name.Reader
import GHC.Types.Name.Occurrence
import GHC.Types.Name
import GHC.Hs
import GHC.Types.SrcLoc
impor... | null | https://raw.githubusercontent.com/ndmitchell/hlint/98c4479a361fff836a116d4a1388d541368fda7e/src/GHC/Util/FreeVars.hs | haskell | See [Note : Space leaks lurking here?] below.
Useful for debugging.
`allVars` for producing a pair of the bound and free varaiable
sets in a value of `a`.
| Return the variables, erring on the side of more free
variables.
`freeVars` for producing a set of free varaiable of a value of
`a`.
| Return the variable... | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE TypeFamilies #
module GHC.Util.FreeVars (
vars, varss, pvars,
Vars (..), FreeVars(..) , AllVars (..)
) where
import GHC.Types.Name.Reader
import GHC.Types.Name.Occurrence
import GHC.Types.Name
import GHC.Hs
import GHC.Types.SrcLoc
impor... |
42f3012187cf06c5a08d7e379fde5404ce19f7a593557bb3c88cd702f34904b1 | caradoc-org/caradoc | resources.ml | (*****************************************************************************)
(* Caradoc: a PDF parser and validator *)
Copyright ( C ) 2016 - 2017
(* *)
(* This program ... | null | https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/src/contentstream/resources.ml | ocaml | ***************************************************************************
Caradoc: a PDF parser and validator
This program is free software; you can redistribute it and/or modify
... | Copyright ( C ) 2016 - 2017
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation .
You should have received a copy of the GNU General Public License along
with this program ; if... |
100401e034386c5d85e5cd1466e440d8bae2883e2b9d732350923c9a4e6b3eec | esl/MongooseIM | mod_inbox_rdbms.erl | %%%-------------------------------------------------------------------
( C ) 2018 , Erlang Solutions Ltd.
%%% @doc
%%%
%%% @end
Created : 30 . Jan 2018 16:59
%%%-------------------------------------------------------------------
-module(mod_inbox_rdbms).
-include("mod_inbox.hrl").
-include("mongoose_logger.hrl").... | null | https://raw.githubusercontent.com/esl/MongooseIM/8275095eb844b3988a38a28c2e002c2fb059e99b/src/inbox/mod_inbox_rdbms.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
----------------------------------------------------------------------
API
----------------------------------------------------------------------
removals
upsert... | ( C ) 2018 , Erlang Solutions Ltd.
Created : 30 . Jan 2018 16:59
-module(mod_inbox_rdbms).
-include("mod_inbox.hrl").
-include("mongoose_logger.hrl").
-behaviour(mod_inbox_backend).
-export([get_inbox/4,
init/2,
set_inbox/6,
set_inbox_incr_unread/5,
reset_unread/4,
e... |
f9ea9ad3631e47bdf42d87c07ecf693fe6f7493b47e6d4a40efffc058cd9c5de | metametadata/clj-fakes | protocols.cljc | (ns unit.fixtures.protocols)
(defprotocol AnimalProtocol
(speak [this] [this name] [this name1 name2])
(eat [this food drink])
(sleep [this]))
(defprotocol FileProtocol
(save [this])
(scan [this])) | null | https://raw.githubusercontent.com/metametadata/clj-fakes/d928ddfd11b150b1cd2df5621265c447bf42395a/test/unit/fixtures/protocols.cljc | clojure | (ns unit.fixtures.protocols)
(defprotocol AnimalProtocol
(speak [this] [this name] [this name1 name2])
(eat [this food drink])
(sleep [this]))
(defprotocol FileProtocol
(save [this])
(scan [this])) | |
8e62004b0d9947ab0afbf61555117bad17a239c79c2875275a09bf2a41f86232 | mikewin/cspbox-trading | envelope_moving_avg_trend_following.clj | (ns cspbox.trading.ind.envelope-moving-avg-trend-following
(:require [cspbox.trading.ind.base :refer [make-ema-ind]]
[cspbox.runtime.sys.utils.macro :refer [to-map]]
[taoensso.timbre :as log]))
(defn envelope-moving-avg-trend-following
[{:keys [N width]}]
(let[ema-fn (make-ema-ind N)]
... | null | https://raw.githubusercontent.com/mikewin/cspbox-trading/76f9cfb780d5f36e5fbd6d8cec7c978a0e51cb94/src/cspbox/trading/ind/envelope_moving_avg_trend_following.clj | clojure | (ns cspbox.trading.ind.envelope-moving-avg-trend-following
(:require [cspbox.trading.ind.base :refer [make-ema-ind]]
[cspbox.runtime.sys.utils.macro :refer [to-map]]
[taoensso.timbre :as log]))
(defn envelope-moving-avg-trend-following
[{:keys [N width]}]
(let[ema-fn (make-ema-ind N)]
... | |
818d71dcfc66f69849b42e9dfe9e3581b4d6af185b2c08fcff8262690c3bc485 | lopec/LoPEC | logger_int.erl | -module(logger_int).
-export([start/2, stop/1]).
%%%===================================================================
%%% Exported functions
%%%===================================================================
%%--------------------------------------------------------------------
@private
%% @doc
%%
%% Just cal... | null | https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/old_stuff/old_master/src/logger_int.erl | erlang | ===================================================================
Exported functions
===================================================================
--------------------------------------------------------------------
@doc
Just calls logger_loop with the given arguments.
@end
-------------------------------... | -module(logger_int).
-export([start/2, stop/1]).
@private
, FlagList::list ( ) ) - > term ( )
@todo ! ! ! !
start(ExternalLogger, FlagList) ->
logger_loop(ExternalLogger, FlagList).
@private
Sends a message to the ExternalLogger and tells it that this
) - > term ( )
@todo ! ! ! !
stop(External... |
c6ea0047e5da4faa8c24a05311586fe08d66d198fc82417bb8d18c5b58530dc6 | ivarref/double-trouble | initial_test.clj | (ns com.github.ivarref.initial-test
(:require [clojure.test :as test :refer [deftest is]]
[com.github.ivarref.double-trouble :as ndt]
[com.github.ivarref.log-init :as log-init]
[datomic.api :as d]))
(log-init/init-logging!
[[#{"datomic.*" "com.datomic.*" "org.apache.*"} :warn]
... | null | https://raw.githubusercontent.com/ivarref/double-trouble/e4f64efbc0c27c1f6a8c2806b93417989020e730/test/com/github/ivarref/initial_test.clj | clojure | The following transaction success, though it shouldn't: | (ns com.github.ivarref.initial-test
(:require [clojure.test :as test :refer [deftest is]]
[com.github.ivarref.double-trouble :as ndt]
[com.github.ivarref.log-init :as log-init]
[datomic.api :as d]))
(log-init/init-logging!
[[#{"datomic.*" "com.datomic.*" "org.apache.*"} :warn]
... |
02bf9e1b00501c7717f1d62995d3da11f4f27c71afe724ef0f12cbcea2f5c76f | brendanhay/amazonka | Internal.hs | -- |
-- Module : Test.Amazonka.TimeStreamWrite.Internal
Copyright : ( c ) 2013 - 2023
License : Mozilla Public License , v. 2.0 .
Maintainer : < brendan.g.hay+ >
-- Stability : auto-generated
Portability : non - portable ( GHC extensions )
module Test.Amazonka.TimeStreamWrite.Internal where... | null | https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-timestream-write/test/Test/Amazonka/TimeStreamWrite/Internal.hs | haskell | |
Module : Test.Amazonka.TimeStreamWrite.Internal
Stability : auto-generated | Copyright : ( c ) 2013 - 2023
License : Mozilla Public License , v. 2.0 .
Maintainer : < brendan.g.hay+ >
Portability : non - portable ( GHC extensions )
module Test.Amazonka.TimeStreamWrite.Internal where
|
cefbc2f7e4c6614f77aa90758ea995a103253c52bd8ecd4330a4ea99c6b55c39 | basho/riak_core | riak_core_supps.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2022 TI Tokyo . All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy ... | null | https://raw.githubusercontent.com/basho/riak_core/dfcc27ad86e3f28a01e6653d1e7fd2e02cd35591/src/riak_core_supps.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2022 TI Tokyo . All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
is 1 , meaning on... |
a0ad9481c9fa40d2205935c385afc8c1942b9e14a433621bac08ab568f944fe9 | arttuka/reagent-material-ui | avatar.cljs | (ns reagent-mui.material.avatar
"Imports @mui/material/Avatar as a Reagent component.
Original documentation is at -ui/api/avatar/ ."
(:require [reagent.core :as r]
["@mui/material/Avatar" :as MuiAvatar]))
(def avatar (r/adapt-react-class (.-default MuiAvatar)))
| null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/avatar.cljs | clojure | (ns reagent-mui.material.avatar
"Imports @mui/material/Avatar as a Reagent component.
Original documentation is at -ui/api/avatar/ ."
(:require [reagent.core :as r]
["@mui/material/Avatar" :as MuiAvatar]))
(def avatar (r/adapt-react-class (.-default MuiAvatar)))
| |
69c10b2eae31d021c68bfd082a4ba48188563c36790b77569bb0d9b020559a88 | haskell-tools/haskell-tools | SemanticTraversal.hs | do n't show warnings , generated code contains unused variables
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - unused - matches #
| Generating instances for traversing the semantic information of the Haskell Representation
module Language.Haskell.Tools.AST.Instances.SemanticTraversal () where
import C... | null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/ast/Language/Haskell/Tools/AST/Instances/SemanticTraversal.hs | haskell | Modules
Declarations
Base | do n't show warnings , generated code contains unused variables
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - unused - matches #
| Generating instances for traversing the semantic information of the Haskell Representation
module Language.Haskell.Tools.AST.Instances.SemanticTraversal () where
import C... |
a22999d32c793ee309666ef19c2c1058210fbd7051b91f7f2f947b60b96b2692 | brendanhay/amazonka | WorkMail.hs | -- |
-- Module : Test.Amazonka.WorkMail
Copyright : ( c ) 2013 - 2023
License : Mozilla Public License , v. 2.0 .
Maintainer : < brendan.g.hay+ >
-- Stability : auto-generated
Portability : non - portable ( GHC extensions )
module Test.Amazonka.WorkMail
( tests,
fixtures,
)
where
i... | null | https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workmail/test/Test/Amazonka/WorkMail.hs | haskell | |
Module : Test.Amazonka.WorkMail
Stability : auto-generated | Copyright : ( c ) 2013 - 2023
License : Mozilla Public License , v. 2.0 .
Maintainer : < brendan.g.hay+ >
Portability : non - portable ( GHC extensions )
module Test.Amazonka.WorkMail
( tests,
fixtures,
)
where
import Test.Tasty (TestTree)
tests :: [TestTree]
tests = []
fixtures :: [Tes... |
40684d4a2b696cbc1b810cf3c3d4e830c1b3c625fe86f09ea02bc20c308d9a10 | racket/frtime | erl.rkt | #lang racket
(require frtime/core/erl
tests/eli-tester)
(define ch (make-channel))
(define t
(spawn/name
'test
(let loop ()
(receive
[after 10
(channel-put ch "Timeout")
(loop)]
['self
(channel-put ch (self))
(loop)]
[v
(channel... | null | https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/tests/erl.rkt | racket | #lang racket
(require frtime/core/erl
tests/eli-tester)
(define ch (make-channel))
(define t
(spawn/name
'test
(let loop ()
(receive
[after 10
(channel-put ch "Timeout")
(loop)]
['self
(channel-put ch (self))
(loop)]
[v
(channel... | |
cf03dd635c7e5428141a109ecbfdf9aa6b8499ae7d3b3e4848cf914bf4be8a0a | tlikonen/cl-eval-bot | sandbox-extra.lisp | Eval - bot --- An IRC bot for evaluating Common Lisp expressions
Copyright ( C ) 2013 < >
;;
;; 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/tlikonen/cl-eval-bot/4d5840466acc639de2b7a9d59d68ae981a5ed3c3/src/sandbox-extra.lisp | lisp |
This program is free software: you can redistribute it and/or modify
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Aff... | Eval - bot --- An IRC bot for evaluating Common Lisp expressions
Copyright ( C ) 2013 < >
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation , either version 3 of the
You should have received a copy of the GNU Affero General Public
(cl:defpackage #:sa... |
af6c189b105ec966cff3cc4b2bb1607b84495b13b9b7bc8ce2d90c9790afcc3c | cffi/cffi | enum.lisp | ;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
;;;
;;; enum.lisp --- Defining foreign constants as Lisp keywords.
;;;
Copyright ( C ) 2005 - 2006 , < >
;;;
;;; Permission is hereby granted, free of charge, to any person
;;; obtaining a copy of this software and associated documentation
files ( the " Software "... | null | https://raw.githubusercontent.com/cffi/cffi/677cabae64b181330a3bbbda9c11891a2a8edcdc/src/enum.lisp | lisp | -*- Mode: lisp; indent-tabs-mode: nil -*-
enum.lisp --- Defining foreign constants as Lisp keywords.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publi... | Copyright ( C ) 2005 - 2006 , < >
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
(in-package ... |
fe1d84b7f092e305f3cf6d1bf4bf2a44f6e912f83b5dbc1023047c0bc5c60f09 | karttu/bream | utilits1.scm |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
BREAM / utilits1.scm ( general utility functions ) ; ;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/karttu/bream/f46f2da3b285d70e83d9ae167a9d2f57f157236c/src/utilits1.scm | scheme |
;;
;
;;
Unless otherwise mentioned, all the files in this code tree are
See the file COPYING for more information. Contact the author for
further developments at the address: <his-fi... |
Copyright ( C ) 2010 - 2011 , subject to the terms of the GPL v2 .
( " karttu " ) started writing this module May 20 2011 ,
Edited May 22 2011 by karttu .
Added nonnegatives_least_binwidth and negatives_least_binwidth
Edited Jul 22 2011 by karttu .
Edited Jul 27 2011 by karttu .
Edit... |
71192270f9bb73c654f6ffdd48d7f903c1ad129e96d6b787783c3061a38f1aba | struktured/ocaml-gemini | order_events.mli | (** Order events web sockets api for the gemini trading exchange. This
is used to get private events about orders and trades without having to
depend on the slower and clumsier json REST api. Users still must submit
orders using REST, however. This is only for responses.
*)
open Common
module Request = No... | null | https://raw.githubusercontent.com/struktured/ocaml-gemini/35e1d4ea60c5be05262fc63f49f7c4988c8eefc1/lib/order_events.mli | ocaml | * Order events web sockets api for the gemini trading exchange. This
is used to get private events about orders and trades without having to
depend on the slower and clumsier json REST api. Users still must submit
orders using REST, however. This is only for responses.
* The order events api has no uri arg... |
open Common
module Request = Nonce.Request
type uri_args = [`None] [@@deriving sexp, enumerate]
type heartbeat = {timestampms:Timestamp.Ms.t;
sequence:Int_number.t;
trace_id:string;
socket_sequence:Int_number.t
} [@@deriving sexp, yojson]
mod... |
ebfb2e3964c3488f966212733812244f4bf4b3a668a37da54b59660591590da1 | zk/nsfw | request.clj | (ns nsfw.http.request
"Utilities for working with Ring requests")
(defn decode-body [content-length body]
(when (and content-length
(> content-length 0))
(let [buf (byte-array content-length)]
(.read body buf 0 content-length)
(.close body)
(String. buf))))
(defn response-body
... | null | https://raw.githubusercontent.com/zk/nsfw/ea07ba20cc5453b34a56b34c9d8738bf9bf8e92f/src/clj/nsfw/http/request.clj | clojure | (ns nsfw.http.request
"Utilities for working with Ring requests")
(defn decode-body [content-length body]
(when (and content-length
(> content-length 0))
(let [buf (byte-array content-length)]
(.read body buf 0 content-length)
(.close body)
(String. buf))))
(defn response-body
... | |
77bda314e4eb872351842fba691a25ba481847467009771567d61d1c3345d000 | wdebeaum/step | pyjamas.lisp | ;;;;
;;;; w::pyjamas
;;;;
(define-words :pos W::n
:words (
(w::pyjamas
(senses
((LF-PARENT ONT::attire)
(meta-data :origin caloy3 :entry-date 20070330 :change-date nil :comments nil)
;(TEMPL mass-PRED-TEMPL)
(TEMPL COUNT-PRED-3p-TEMPL)
(syntax (W::morph (:forms (-none))))
)
)
)
))
| null | https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/pyjamas.lisp | lisp |
w::pyjamas
(TEMPL mass-PRED-TEMPL) |
(define-words :pos W::n
:words (
(w::pyjamas
(senses
((LF-PARENT ONT::attire)
(meta-data :origin caloy3 :entry-date 20070330 :change-date nil :comments nil)
(TEMPL COUNT-PRED-3p-TEMPL)
(syntax (W::morph (:forms (-none))))
)
)
)
))
|
09742b5c87b5f6913b0b5627a6cdf15aaa32152738320cf098f72111637de99f | NetComposer/nksip | proxy_test_client2.erl | %% -------------------------------------------------------------------
%%
%% proxy_test: Stateless and Stateful Proxy Tests
%%
Copyright ( c ) 2013 . All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance... | null | https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/callbacks/proxy_test_client2.erl | erlang | -------------------------------------------------------------------
proxy_test: Stateless and Stateful Proxy Tests
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the Licen... | Copyright ( c ) 2013 . All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(proxy_test_client2).... |
badbfe09b853b0ac1ac947d280777084e997239accfbb055357f7d8049122087 | exercism/common-lisp | example.lisp | (defpackage :meetup
(:use :common-lisp)
(:export :meetup))
(in-package :meetup)
(defun day-of-week (day month year)
(nth 6 (multiple-value-list
(decode-universal-time
(encode-universal-time 0 0 0 day month year)))))
(defun last-day-of (month year)
(let ((month (if (= month 12) 1 (1+ month)))
(year (i... | null | https://raw.githubusercontent.com/exercism/common-lisp/0bb38d1b126f7dc90d86f04c41479d4eaf35df74/exercises/practice/meetup/.meta/example.lisp | lisp | (defpackage :meetup
(:use :common-lisp)
(:export :meetup))
(in-package :meetup)
(defun day-of-week (day month year)
(nth 6 (multiple-value-list
(decode-universal-time
(encode-universal-time 0 0 0 day month year)))))
(defun last-day-of (month year)
(let ((month (if (= month 12) 1 (1+ month)))
(year (i... | |
b51e20f8b8a480795996c8745017be7df42678c1c652504c60edf939132f916b | reborg/clojure-essential-reference | 3.clj | (binding [*print-length* 3
< 1 >
(pprint document))
{ : tag : rss ,
: attrs
{ : xmlns : media " " ,
;; :version "2.0",
;; :xmlns:atom "",
;; ...},
;; :content [{#, #, #}]} | null | https://raw.githubusercontent.com/reborg/clojure-essential-reference/9a3eb82024c8e5fbe17412af541c2cd30820c92e/DynamicVariablesintheStandardLibrary/Prettyprintingvariables/3.clj | clojure | :version "2.0",
:xmlns:atom "",
...},
:content [{#, #, #}]} | (binding [*print-length* 3
< 1 >
(pprint document))
{ : tag : rss ,
: attrs
{ : xmlns : media " " , |
98940fe2391a817db4ba59f8b7b16ff1b0b5bdb7da555e24d88c54c33aabe3a9 | fpco/optparse-simple | Main.hs | # LANGUAGE RecordWildCards #
{-# LANGUAGE OverloadedStrings #-}
import Options.Applicative.Simple hiding(action)
import GHC.IO.Handle
import System.IO
import System.Environment
import Control.Exception
import Control.Monad
import System.Directory
import System.Exit
import Data.ByteString (ByteString)
import qualified ... | null | https://raw.githubusercontent.com/fpco/optparse-simple/e7bed6f1170299a661e7e235b4085f293196031f/test/Main.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE RecordWildCards #
import Options.Applicative.Simple hiding(action)
import GHC.IO.Handle
import System.IO
import System.Environment
import Control.Exception
import Control.Monad
import System.Directory
import System.Exit
import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
import Data.M... |
72ad108be3f95dd62efdb3479aeaea6f2d214b713a04c664fc4ae0a74385576d | FundingCircle/jackdaw | json_test.clj | (ns jackdaw.serdes.json-test
(:require [clojure.data.json :as json]
[clojure.java.io :as io]
[clojure.test :refer [deftest is testing]]
[clojure.test.check.clojure-test :as ct :refer [defspec]]
[clojure.test.check.generators :as gen]
[clojure.test.check.prop... | null | https://raw.githubusercontent.com/FundingCircle/jackdaw/e0c66d386277282219e070cfbd0fe2ffa3c9dca5/test/jackdaw/serdes/json_test.clj | clojure | (ns jackdaw.serdes.json-test
(:require [clojure.data.json :as json]
[clojure.java.io :as io]
[clojure.test :refer [deftest is testing]]
[clojure.test.check.clojure-test :as ct :refer [defspec]]
[clojure.test.check.generators :as gen]
[clojure.test.check.prop... | |
377bc1bbc551db8daeb9ccc3c84892d2858fb0bd94a1e2b18a8d2879e20d0722 | perkss/tinklj | symmetric_key_encryption_test.clj | (ns tinklj.acceptance.symmetric-key-encryption-test
(:require [clojure.test :refer [deftest is testing]]
[tinklj.config :refer [register]]
[tinklj.primitives :as primitives]
[tinklj.keys.keyset-handle :as keyset-handles]
[tinklj.encryption.aead :as sut]))
(register :ae... | null | https://raw.githubusercontent.com/perkss/tinklj/b695469ddb1e3a76dcae99ee62db0554edc38705/test/tinklj/acceptance/symmetric_key_encryption_test.clj | clojure | (ns tinklj.acceptance.symmetric-key-encryption-test
(:require [clojure.test :refer [deftest is testing]]
[tinklj.config :refer [register]]
[tinklj.primitives :as primitives]
[tinklj.keys.keyset-handle :as keyset-handles]
[tinklj.encryption.aead :as sut]))
(register :ae... | |
b30a4e0ceda11f82d8cb5e07c282f658ea5527db10ba618dc61eec2bfe896a94 | UU-ComputerScience/uhc | Parse.hs | module Parse
(Parse, Parses, -- data types
thenP, returnP, eachP, consP, -- sequencing and success
elseP, failP, guardP, filterP, -- alternation and failure
starP, plusP, cutP, -- repetition and cut
e... | null | https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/benchmark/nofib/real/infer/Parse.hs | haskell | data types
sequencing and success
alternation and failure
repetition and cut
end, next item, and literals
spaces and lexemes
character parsers
surrounds and separators
using a parser | module Parse
alphaP, upperP, lowerP, digitP, alphanumP,
where
1.3
infixr 1 `elseP`
infix 2 `thenP`
infix 2 `eachP`
infixr 3 `filterP`
infixr 3 `guardP`
type Parse a x = a -> [(x, a)]
type Parses x = Parse String x
thenP :: Parse a x -> (x -> Parse a y) -> Parse a ... |
46eb21d9a8ad532a0cf380d60d17fdecb029e573cbbdaccb165e7a92b80af920 | lwhjp/racket-jni | unsafe.rkt | #lang racket/base
(require "private/jni.rkt"
"private/mutf8.rkt"
"private/types.rkt")
(provide (except-out
(all-from-out "private/jni.rkt"
"private/types.rkt"
"private/mutf8.rkt")
JNIEnv%
JavaVM%))
| null | https://raw.githubusercontent.com/lwhjp/racket-jni/3bd67d3093f97dcac470629df5510d841272edec/unsafe.rkt | racket | #lang racket/base
(require "private/jni.rkt"
"private/mutf8.rkt"
"private/types.rkt")
(provide (except-out
(all-from-out "private/jni.rkt"
"private/types.rkt"
"private/mutf8.rkt")
JNIEnv%
JavaVM%))
| |
6441adab65ffc6f19e4450f763df01b6568bd3d811aec6de4b3a3a0b74e93f72 | danlentz/cl-btree | debug.lisp | (in-package :b-tree-impl)
(defun make-b-tree-block-formatter ()
(let ((count 0)
(byte-count 0)
(state nil))
(lambda (data)
(labels
((format-b-tree-ref-position (data)
(swap-file:format-octet (car data))
(incf byte-count)
(when (>= byte-count ... | null | https://raw.githubusercontent.com/danlentz/cl-btree/ff422472c4d3e8172d6fae85063eb8c40f18404d/debug.lisp | lisp | (in-package :b-tree-impl)
(defun make-b-tree-block-formatter ()
(let ((count 0)
(byte-count 0)
(state nil))
(lambda (data)
(labels
((format-b-tree-ref-position (data)
(swap-file:format-octet (car data))
(incf byte-count)
(when (>= byte-count ... | |
ce6ace673242540547adbc93d55d329e4910ce28d157674e8a78b7e415cf99bc | 4clojure/4clojure | git.clj | (ns foreclojure.git
(:require [clojure.string :as s])
(:use [clojure.java.shell :only [sh]]))
(letfn [(cmd [& args]
(not-empty (s/trim (:out (apply sh args)))))]
;; fetch these at load time rather than on demand, so that it's accurate even
;; if someone checks out a different revision to poke at wit... | null | https://raw.githubusercontent.com/4clojure/4clojure/25dec057d9d6871ce52aee9e2c3de7efdab14373/src/foreclojure/git.clj | clojure | fetch these at load time rather than on demand, so that it's accurate even
if someone checks out a different revision to poke at without restarting
the server (eg to diagnose bugs in a release) | (ns foreclojure.git
(:require [clojure.string :as s])
(:use [clojure.java.shell :only [sh]]))
(letfn [(cmd [& args]
(not-empty (s/trim (:out (apply sh args)))))]
(def sha (cmd "git" "rev-parse" "--verify" "HEAD"))
(def tag (cmd "git" "describe" "--abbrev=0" "master")))
|
d2ac51b3333cd767f786c1d192d7ee9196885a0d1a4a72040992a65711e17da6 | LPCIC/matita | ocamlExtractionTable.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2011
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_extraction/ocamlExtractionTable.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
s Extraction Optimize
+ 16
+ 512 + ... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2011
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
i $ I d : table.ml 14641 2011... |
d5cc9e9ffee835b936c3d02ac2cdaae6f383c663d474cebbd17f2edc78ef566d | fukamachi/clozure-cl | l0-io.lisp | -*- Mode : Lisp ; Package : CCL ; -*-
;;;
Copyright ( C ) 2009 Clozure Associates
Copyright ( C ) 1994 - 2001 Digitool , Inc
This file is part of Clozure CL .
;;;
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as ... | null | https://raw.githubusercontent.com/fukamachi/clozure-cl/4b0c69452386ae57b08984ed815d9b50b4bcc8a2/level-0/l0-io.lisp | lisp | Package : CCL ; -*-
file "LICENSE". The LLGPL consists of a preamble and the LGPL,
conflict, the preamble takes precedence.
Clozure CL is referenced in the preamble as the "LIBRARY."
The LLGPL is also available online at
Not really I/O, but ... | Copyright ( C ) 2009 Clozure Associates
Copyright ( C ) 1994 - 2001 Digitool , Inc
This file is part of Clozure CL .
Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
License , known as the LLGPL and distributed with Clozure CL as the
which is distributed with Clozure CL as ... |
b9d523864dde6e43eddf6872c8bb7c1d86ddcf10ae2bc61ebe6399e63e78a5ae | FranklinChen/hugs98-plus-Sep2006 | Maybe.hs | # OPTIONS_GHC -fno - implicit - prelude #
-----------------------------------------------------------------------------
-- |
-- Module : Data.Maybe
Copyright : ( c ) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
-- Stability : sta... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/base/Data/Maybe.hs | haskell | ---------------------------------------------------------------------------
|
Module : Data.Maybe
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : stable
Portability : portable
The Maybe type, and associated operations.
-------------------------------------... | # OPTIONS_GHC -fno - implicit - prelude #
Copyright : ( c ) The University of Glasgow 2001
module Data.Maybe
(
instance of : , Ord , Show , Read ,
Functor , Monad , MonadPlus
) where
#ifdef __GLASGOW_HASKELL__
import GHC.Base
#endif
#ifdef __NHC__
import Prelude
import Prelude (Maybe(..), maybe)... |
e348b674832f53f8d1100c8710b0adbd05c203f92ab230384137c9dd55cb3e9f | adaliu-gh/htdp | 9-159.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname 9-159) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ... | null | https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/8-13%20Arbitrarily%20Large%20Data/9-159.rkt | racket | about the language level of this file in a form that our tools can easily process.
- 0
- (add1 N)
interpretation represents the counting numbers
- '()
- (cons Posn List-Posn)
interpretation represents a list of Posns
(make-rstate Number List-Posns)
interpretation represents the riot-state including how many ba... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname 9-159) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(require 2htdp/image)
(require 2htdp/universe)
a N is one of :
... |
27ae6695b805050bfd14acc97abac48cde1d00ec777baa508f0b8ff10dc58b8a | facebook/infer | scopeLeakage.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/28e867254f6dc8c2a26d749575b472ca0ae27a0f/infer/src/checkers/scopeLeakage.ml | ocaml | A module for parsing a JSON configuration into a custom data type.
* A class name and the method names of that class that are known to "generate" a scope. That is,
return objects of a known scope.
* Lists of generators for the different types of scopes.
* Information defining each scope.
* Parses a JSON conf... |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
03815c99c2a13941c3a23b6ea9478171b868898a8f061b732b854c0cb8394b0e | philnguyen/soft-contract | undefined.rkt | #lang racket
(letrec ([x x]) 42)
| null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/issues/undefined.rkt | racket | #lang racket
(letrec ([x x]) 42)
| |
7f007b444c32741ad8bd1b6e38dd9e5cf98e54169915aedecd128d9fbaed7f22 | bgusach/exercises-htdp2e | ex-390-to-395.rkt | #lang htdp/isl+
(require test-engine/racket-tests)
(require 2htdp/abstraction)
= = = = = = = = = = = = = = = = = = = = Exercise 390 = = = = = = = = = = = = = = = = = = = =
(define-struct branch [left right])
A Tree of Symbols ( TOS ) is one of :
; - Symbol
; - (make-branch TOS TOS)
A Direction is one of :
;... | null | https://raw.githubusercontent.com/bgusach/exercises-htdp2e/c4fd33f28fb0427862a2777a1fde8bf6432a7690/4-intertwined-data/ex-390-to-395.rkt | racket | - Symbol
- (make-branch TOS TOS)
- 'left
- 'right
A Path is a [List-of Direction]
TOS Path -> [Either Direction Error]
=================== End of exercise ==================
[List-of Any] [List-of Any] -> [List-of Any]
=================== End of exercise ==================
TOS Path -> [Either Direction Error]... | #lang htdp/isl+
(require test-engine/racket-tests)
(require 2htdp/abstraction)
= = = = = = = = = = = = = = = = = = = = Exercise 390 = = = = = = = = = = = = = = = = = = = =
(define-struct branch [left right])
A Tree of Symbols ( TOS ) is one of :
A Direction is one of :
(check-expect (tree-pick 'a '()) 'a... |
1d7f757313cd2e395b3596bd63c8e3293e09ecceee787dacf87cd74c426ab2f7 | ralph-schleicher/rs-colors | black-body.lisp | --- Planck 's law .
Copyright ( C ) 2020
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;;
;; * Redistributions of source code must retain the above copyright
;; notice, this list of conditions and ... | null | https://raw.githubusercontent.com/ralph-schleicher/rs-colors/0604867895fab0ea9b8a6bb0ac4a08d452c53c59/black-body.lisp | lisp | Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary for... | --- Planck 's law .
Copyright ( C ) 2020
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT ,
INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING ,
CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRIC... |
f7d693bb8e03ec54b82707c3fa16d2268f554aa964e9968b11e931cfc9504919 | GillianPlatform/Gillian | JSIL_PostParser.ml | open Containers
open Gillian.Gil_syntax
open Jsil_syntax
let heap_asrt_name = "initialHeapPostWeak"
let pre_scope_prefix = "PreScope_"
let post_scope_prefix = "PostScope_"
let reserved_methods = Hashtbl.create Config.small_tbl_size
let reserved_properties = Hashtbl.create Config.small_tbl_size
let counter = ref 0
let ... | null | https://raw.githubusercontent.com/GillianPlatform/Gillian/eaa028aaed7414c216b04ee25e0332dbc3d3cf8b/Gillian-JS/lib/Compiler/JSIL_PostParser.ml | ocaml |
type t = {
name : string; (** Name of the predicate
* Number of parameters
* Actual parameters
* Ins
* Predicate definitions
* Is the predicate pure
* If the predicate has been previously normalised
let args = SS.diff args (SS.o... | open Containers
open Gillian.Gil_syntax
open Jsil_syntax
let heap_asrt_name = "initialHeapPostWeak"
let pre_scope_prefix = "PreScope_"
let post_scope_prefix = "PostScope_"
let reserved_methods = Hashtbl.create Config.small_tbl_size
let reserved_properties = Hashtbl.create Config.small_tbl_size
let counter = ref 0
let ... |
71826a93aae80cb7b575a52ee671bb1b9e20bedd07fc0a38fd92901fa85de5fd | SevereOverfl0w/vizns | core.clj | (ns io.dominic.vizns.core
(:require
[clojure.tools.cli :as cli]
[clojure.set :as set]
[clojure.string :as string]
[clojure.tools.deps.alpha :as tools.deps]
[clojure.tools.deps.alpha.reader :as tools.deps.reader]
[clojure.tools.deps.alpha.util.dir :as tools.deps.util.dir]
[clojure.java.io :... | null | https://raw.githubusercontent.com/SevereOverfl0w/vizns/69774e8c29e1c1c691f9922d5c5a6d764374ada3/src/io/dominic/vizns/core.clj | clojure | TODO: maybe check filetype in case of mismatch?
Needed for cylinder shape | (ns io.dominic.vizns.core
(:require
[clojure.tools.cli :as cli]
[clojure.set :as set]
[clojure.string :as string]
[clojure.tools.deps.alpha :as tools.deps]
[clojure.tools.deps.alpha.reader :as tools.deps.reader]
[clojure.tools.deps.alpha.util.dir :as tools.deps.util.dir]
[clojure.java.io :... |
c47445b8aa166db346705ffd4f61170c9e2091ad8c230b314c249bf37a9cbf2d | purescript/purescript | TestIde.hs | module TestIde where
import Prelude
import Control.Monad (unless)
import Language.PureScript.Ide.Test
import qualified PscIdeSpec
import Test.Hspec
spec :: Spec
spec =
beforeAll_ setup PscIdeSpec.spec
where
setup = do
deleteOutputFolder
s <- compileTestProj... | null | https://raw.githubusercontent.com/purescript/purescript/255b415577db47baeb4eb04f4bbf0610e59f25b3/tests/TestIde.hs | haskell | module TestIde where
import Prelude
import Control.Monad (unless)
import Language.PureScript.Ide.Test
import qualified PscIdeSpec
import Test.Hspec
spec :: Spec
spec =
beforeAll_ setup PscIdeSpec.spec
where
setup = do
deleteOutputFolder
s <- compileTestProj... | |
6c5b5e6809abab637665c207056d3deabff742876a8ce2c1fa4a2c8b09978c57 | lisp-mirror/clpm | clpm.lisp | Common Lisp Project Manager - CLPM .
;;;;
This software is part of CLPM . See README.org for more information . See
;;;; LICENSE for license information.
(uiop:define-package #:clpm/clpm
(:nicknames #:clpm)
(:use #:cl
#:clpm/bundle
#:clpm/client
#:clpm/clpi
#:clpm/config
... | null | https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/clpm/clpm.lisp | lisp |
LICENSE for license information.
From bundle
From client
From config
From context-queries
From exec
From install
From session
From sync
From update
From version | Common Lisp Project Manager - CLPM .
This software is part of CLPM . See README.org for more information . See
(uiop:define-package #:clpm/clpm
(:nicknames #:clpm)
(:use #:cl
#:clpm/bundle
#:clpm/client
#:clpm/clpi
#:clpm/config
#:clpm/context-diff
#:clpm/conte... |
d4326e075339de15aa664533b10cb004b591f634bb1583a1ba83165298930684 | adaliu-gh/htdp | 4-51.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname 4-51) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #... | null | https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/1-7%20Fixed-Size%20Data/4-51.rkt | racket | about the language level of this file in a form that our tools can easily process.
- "red"
- "green"
- "yellow"
possible states that a traffic light may assume
yields the next state given current state s
main
simulation of traffic lights | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname 4-51) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(require 2htdp/image)
(require 2htdp/universe)
A is one of the ... |
f11cad0c389be7cd4786a0a2662655c8e38207bec073746b43676047b45e550d | viercc/kitchen-sink-hs | Lattice.hs | module Lattice(
module Lattice.Classes,
module Lattice.Dual,
module Lattice.Ordered,
module Lattice.BitSet
) where
import Lattice.BitSet
import Lattice.Classes
import Lattice.Dual
import Lattice.Ordered
| null | https://raw.githubusercontent.com/viercc/kitchen-sink-hs/5038b17a39e4e6f19e6fb4779a7c8aaddf64d922/lattices/src/Lattice.hs | haskell | module Lattice(
module Lattice.Classes,
module Lattice.Dual,
module Lattice.Ordered,
module Lattice.BitSet
) where
import Lattice.BitSet
import Lattice.Classes
import Lattice.Dual
import Lattice.Ordered
| |
0898eaa166c6c62879b91540eddafc40b43552713e678e4e276d05e86c428480 | grin-compiler/ghc-grin | Main.hs | module Main (main) -- ida
where {
partain : import Fast2haskell ;
#include "../Fast2haskell.hs"
strict_show_i::Int -> [Char];
strict_show_i x=miraseq x (show x);
strict_show_d::Double -> [Char];
strict_show_d x=miraseq x (show x);
data
T_pos=F_POS Int Int;
f_sel_1_POS (F_POS a_int_1 a_int_2)=a... | null | https://raw.githubusercontent.com/grin-compiler/ghc-grin/ebc4dca2e1f5b3581d4b84726730564ce909d786/ghc-grin-benchmark/boquist-grin-bench/spectral/hartel/ida/Main.hs | haskell | ida | where {
partain : import Fast2haskell ;
#include "../Fast2haskell.hs"
strict_show_i::Int -> [Char];
strict_show_i x=miraseq x (show x);
strict_show_d::Double -> [Char];
strict_show_d x=miraseq x (show x);
data
T_pos=F_POS Int Int;
f_sel_1_POS (F_POS a_int_1 a_int_2)=a_int_1;
f_sel_2_POS (F... |
69105a424934534a2061028c10147697609cd2333ae5cffd244d5d4f8454bc2f | janestreet/vcaml | client.mli | open Core
open Async
type 'state t
val create : on_error:(Vcaml_error.t -> unit) -> [ `not_connected ] t
val connect
: [ `not_connected ] t
-> Async.Reader.t
-> Async.Writer.t
-> close_reader_and_writer_on_disconnect:bool
-> time_source:Time_source.t
-> [ `connected ] t Deferred.Or_error.t
module Priva... | null | https://raw.githubusercontent.com/janestreet/vcaml/7a53ff24276ddc3085a9b0b72b1053a6db6936cf/src/client.mli | ocaml | Guaranteed to be set. | open Core
open Async
type 'state t
val create : on_error:(Vcaml_error.t -> unit) -> [ `not_connected ] t
val connect
: [ `not_connected ] t
-> Async.Reader.t
-> Async.Writer.t
-> close_reader_and_writer_on_disconnect:bool
-> time_source:Time_source.t
-> [ `connected ] t Deferred.Or_error.t
module Priva... |
183e0f9e675e141f02438ce437c3f27c981512562ddab674c6b0075af564967d | clojure/clr.tools.namespace | find_test.clj | (ns clojure.tools.namespace.find-test
(:require [clojure.test :refer [deftest is]]
[clojure.tools.namespace.test-helpers :as help]
[clojure.tools.namespace.find :as find])
) ;;; (:import (java.io File))
(deftest t-find-clj-and-cljc-files
... | null | https://raw.githubusercontent.com/clojure/clr.tools.namespace/e2eb4253305e99d0d123c5266af6febcc49a59c5/test/clojure/tools/namespace/find_test.clj | clojure | (:import (java.io File)) | (ns clojure.tools.namespace.find-test
(:require [clojure.test :refer [deftest is]]
[clojure.tools.namespace.test-helpers :as help]
[clojure.tools.namespace.find :as find])
(deftest t-find-clj-and-cljc-files
"main.clj depends on one.cljc which depends on two.clj.
two.cljs also exists but s... |
f6913c8fc88033cac26b228a06b5be8f08114add08d3438609f494888bd1d510 | dongcarl/guix | herd.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2016 , 2017 , 2018 , 2019 < >
Copyright © 2017 , 2020 < >
;;;
;;; 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 F... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/services/herd.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 © 2016 , 2017 , 2018 , 2019 < >
Copyright © 2017 , 2020 < >
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 (gnu services herd)
#:use-module (srfi srfi... |
46b27b9dc21f6a0dc4bbccdd18dd3e1e4b9965aaa68813c479fe8795be8928b2 | ilitirit/manardb | package.lisp | (cl:defpackage #:manardb
(:export
#:mptr
#:mm-metaclass
#:mm-object
#:defmmclass
#:*mmap-base-pathname*
#:*mmap-may-allocate*
#:close-all-mmaps
#:open-all-mmaps
#:wipe-all-mmaps
#:print-all-mmaps
#:doclass
#:dosubclasses
#:retrieve-all-instances
#:count-all-instances
#:m... | null | https://raw.githubusercontent.com/ilitirit/manardb/6791f3569acd42b723ce82051cc8e2e3ee42a671/src/package.lisp | lisp | XXXX to delete when we have time for something better | (cl:defpackage #:manardb
(:export
#:mptr
#:mm-metaclass
#:mm-object
#:defmmclass
#:*mmap-base-pathname*
#:*mmap-may-allocate*
#:close-all-mmaps
#:open-all-mmaps
#:wipe-all-mmaps
#:print-all-mmaps
#:doclass
#:dosubclasses
#:retrieve-all-instances
#:count-all-instances
#:m... |
dfdbb0bd8249e4f013a354db50c1245bfeaa14b4e7931a505339b01e136d006b | Mercerenies/net-game | person.lisp | (in-package #:net-game)
(defclass person (identifiable named located loaded)
((short-name :accessor person-nickname
:initform ""
:initarg :short-name
:type string)
(gender :accessor person-gender
:initform nil
:initarg :gender)
(job :... | null | https://raw.githubusercontent.com/Mercerenies/net-game/da30ca36a7f468e6f9c062fd7bc5e4fed4ee95f9/lisp/person.lisp | lisp | TODO More user-friendly text here
which has not been completed
| (in-package #:net-game)
(defclass person (identifiable named located loaded)
((short-name :accessor person-nickname
:initform ""
:initarg :short-name
:type string)
(gender :accessor person-gender
:initform nil
:initarg :gender)
(job :... |
77e3dc9caabd6c8d8fed0f7137cbb6ca7f691cc104c5915c37c707d4de6edb22 | haskell/attoparsec | Lazy.hs | -- |
Module : Data . . Lazy
Copyright : 2007 - 2015
-- License : BSD3
--
-- Maintainer :
-- Stability : experimental
-- Portability : unknown
--
Simple , efficient combinator parsing for lazy ' ByteString '
strings , loosely based on the Parsec library .
--
This is essentially the ... | null | https://raw.githubusercontent.com/haskell/attoparsec/85510bdf2c0a42daaf2ab5ef126d5d94a648993a/Data/Attoparsec/Lazy.hs | haskell | |
License : BSD3
Maintainer :
Stability : experimental
Portability : unknown
module, only with a 'parse' function that can consume a lazy
more input to be fed in. Think of this as suitable for use with a
lazily read file, e.g. via 'L.readFile' or 'L.hGetContents'.
Behind the scenes, strict 'B.... | Module : Data . . Lazy
Copyright : 2007 - 2015
Simple , efficient combinator parsing for lazy ' ByteString '
strings , loosely based on the Parsec library .
This is essentially the same code as in the ' Data . Attoparsec '
' ByteString ' incrementally , and a ' Result ' type that does not al... |
e2022b1291bc94df54a53281ba67432da67de01ef361d4144c9059737a091ccd | njordhov/mclide | listener-count-patch.lisp | Clozure 1.7 improvements
Author :
;; Parts of the code Copyright Clozure.
;; LLGPL
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package :gui)
; decreasing *cocoa-listener-count* causes listener name conflicts when creating new listener after closing an... | null | https://raw.githubusercontent.com/njordhov/mclide/fab77f3b3c856ef211bbaf1158127669759f6fff/mclide/src/ccl-frontend/ccl-patches/listener-count-patch.lisp | lisp | Parts of the code Copyright Clozure.
LLGPL
decreasing *cocoa-listener-count* causes listener name conflicts when creating new listener after closing another.
Fix: Determine whether there are no listeners by checking for toplisteners instead of using *cocoa-listener-count* | Clozure 1.7 improvements
Author :
(in-package :gui)
(objc:defmethod (#/dealloc :void) ((self hemlock-listener-document))
(if (not (#/topListener hemlock-listener-document)) #+ignore (zerop (decf *cocoa-listener-count*))
(setq *next-listener-x-pos* nil
*next-listener-y-pos* nil))
(let* ((p (s... |
32d52b937ca642b8c4f5053509e0fccea40baa1eb1c7c9620a2f448e46595f30 | ashinn/chibi-scheme | fold.scm | ;; fold.scm -- list fold/reduce utilities
Copyright ( c ) 2009 - 2012 . All rights reserved .
;; BSD-style license:
(define (fold kons knil ls . lists)
(if (null? lists)
(let lp ((ls ls) (acc knil))
(if (pair? ls) (lp (cdr ls) (kons (car ls) acc)) acc))
(let lp ((lists (cons ls lists)) (ac... | null | https://raw.githubusercontent.com/ashinn/chibi-scheme/8b27ce97265e5028c61b2386a86a2c43c1cfba0d/lib/srfi/1/fold.scm | scheme | fold.scm -- list fold/reduce utilities
BSD-style license: | Copyright ( c ) 2009 - 2012 . All rights reserved .
(define (fold kons knil ls . lists)
(if (null? lists)
(let lp ((ls ls) (acc knil))
(if (pair? ls) (lp (cdr ls) (kons (car ls) acc)) acc))
(let lp ((lists (cons ls lists)) (acc knil))
(if (every pair? lists)
(lp (map cdr... |
b71fe09e2d6607c9d3eee8b3ad7cd319becb57d5f19df811dd9398fc1a4738b2 | ygrek/mldonkey | gnutellaServers.ml | Copyright 2001 , 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
... | null | https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/gnutella/gnutellaServers.ml | ocaml | ***********************************************************************
Constants
********************************... | Copyright 2001 , 2002 b8_bavard , b8_fee_carabine ,
This file is part of mldonkey .
mldonkey is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
... |
baa9c8dc2c014a3c84886d2fd981525d1c617a63aa4e6a50e007053cf66ddada | herbelin/coq-hh | univ.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/kernel/univ.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
Returns the formal universe that is... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Created in by for 4.8 [... |
c05d002cd9e9d78a8859fe09ec7f253bc5d7457111c3bea6be564c92f0b423c2 | gedge-platform/gedge-platform | jose_jwe_enc_aes.erl | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
%% vim: ts=4 sw=4 ft=erlang noet
%%%-------------------------------------------------------------------
@author < >
2014 - 2015 ,
%%% @doc
%%%
%%% @end
Created : 22 Jul 2015 by < >
%%%---------------------------... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/jose/src/jwe/jose_jwe_enc_aes.erl | erlang | vim: ts=4 sw=4 ft=erlang noet
-------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
jose_jwe callbacks
jose_jwe_enc callbacks
API
Types
====================================================================
jose_jwe callb... | -*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*-
@author < >
2014 - 2015 ,
Created : 22 Jul 2015 by < >
-module(jose_jwe_enc_aes).
-behaviour(jose_jwe).
-behaviour(jose_jwe_enc).
-export([from_map/1]).
-export([to_map/2]).
-export([algorithm/1]).
-export([bit... |
fb507673b06bbafb1d91c2018141f3f62805020beb1979fbad102452f81b40c0 | GaloisInc/ivory | TypeQQ.hs | {-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}
# LANGUAGE TemplateHaskell #
--
Ivory types .
--
Copyright ( C ) 2014 , Galois , Inc.
-- All rights reserved.
--
module Ivory.Language.Syntax.Concrete.QQ.TypeQQ where
import Prelude hiding (exp, init)
i... | null | https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory/src/Ivory/Language/Syntax/Concrete/QQ/TypeQQ.hs | haskell | # LANGUAGE CPP #
# LANGUAGE QuasiQuotes #
All rights reserved.
------------------------------------------------------------------------------
Haskell type synonyms
------------------------------------------------------------------------------
Data type to keep track of class constraints
SingI typ... | # LANGUAGE TemplateHaskell #
Ivory types .
Copyright ( C ) 2014 , Galois , Inc.
module Ivory.Language.Syntax.Concrete.QQ.TypeQQ where
import Prelude hiding (exp, init)
import Control.Monad
import Data.List (nub)
impo... |
a6e2577128656f96e77503ae6b722d9b97f90ba967213dd80495a0cd8dca8ea1 | quil-lang/qvm | suite.lisp | ;;;; tests/suite.lisp
;;;;
Author :
(in-package #:dqvm2-tests)
(defun run-dqvm2-tests (&key (headless nil))
"Run all QVM tests. If HEADLESS is T, disable interactive debugging and quit on completion."
Bug in Fiasco commit fe89c0e924c22c667cc11c6fc6e79419fc7c1a8b
(setf fiasco::*test-run-standa... | null | https://raw.githubusercontent.com/quil-lang/qvm/de95ead6e7df70a1f8e0212455a802bd0cef201c/dqvm/tests/suite.lisp | lisp | tests/suite.lisp
| Author :
(in-package #:dqvm2-tests)
(defun run-dqvm2-tests (&key (headless nil))
"Run all QVM tests. If HEADLESS is T, disable interactive debugging and quit on completion."
Bug in Fiasco commit fe89c0e924c22c667cc11c6fc6e79419fc7c1a8b
(setf fiasco::*test-run-standard-output* (make-broadcast-... |
12a2950e458eb2939f044869a4d439f0b0d83b4c204eccb6d9b09234cdffa5a1 | ucsd-progsys/liquidhaskell | T1289.hs | {-@ LIQUID "--reflection" @-}
{-@ LIQUID "--ple" @-}
module T1289 where
{-@ reflect intId @-}
intId :: Int -> Int
intId 0 = 0
intId x = x
thm1 :: Int -> ()
{-@ thm1 :: x:Int -> {intId x = x} @-}
thm1 x = if x == 0 then () else ()
{-@ measure charId @-}
charId :: Char -> Char
charId 'a' = 'a'
charId x = x
| null | https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/56f72d6d8d8106fda4e35645e5f0bcab7bc10eee/tests/ple/pos/T1289.hs | haskell | @ LIQUID "--reflection" @
@ LIQUID "--ple" @
@ reflect intId @
@ thm1 :: x:Int -> {intId x = x} @
@ measure charId @ |
module T1289 where
intId :: Int -> Int
intId 0 = 0
intId x = x
thm1 :: Int -> ()
thm1 x = if x == 0 then () else ()
charId :: Char -> Char
charId 'a' = 'a'
charId x = x
|
1e6f9de4577a19834fca19d5b0e17ec892db6c85583024b0830b73bc2067eef2 | stevebleazard/ocaml-jsonxt | json_internal.ml | type 'a constrained =
[< `Assoc of (string * 'a) list
| `Bool of bool
| `Float of float
| `Floatlit of string
| `Int of int
| `Intlit of string
| `List of 'a list
| `Null
| `String of string
| `Stringlit of string
| `Tuple of 'a list
| `Variant of string * 'a option ] as 'a
type 'a constrained_... | null | https://raw.githubusercontent.com/stevebleazard/ocaml-jsonxt/fe982b6087dd76ca003d8fbc19ae9a519f54b828/lib/json_internal.ml | ocaml | type 'a constrained =
[< `Assoc of (string * 'a) list
| `Bool of bool
| `Float of float
| `Floatlit of string
| `Int of int
| `Intlit of string
| `List of 'a list
| `Null
| `String of string
| `Stringlit of string
| `Tuple of 'a list
| `Variant of string * 'a option ] as 'a
type 'a constrained_... | |
78d55ff2e730d167e093d69bd629f93a7b9c4064d1f26b6f5e98d59bdcf6265c | rabbitmq/rabbitmq-management | rabbit_mgmt_wm_consumers.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_mgmt_wm_consumers).
-export([init/2,... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-management/543906f01ccd0344aff648f21bb6b5156b2a2ca2/src/rabbit_mgmt_wm_consumers.erl | erlang |
--------------------------------------------------------------------
none means `all` | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_mgmt_wm_consumers).
-export([init/2, to... |
b7dd11f27e3e6e6605e5b9b455b84b4b3d1532b18046e567a876a43ea6581ade | tfausak/monadoc-5 | Main.hs | import qualified Monadoc
import Monadoc.Prelude
main :: IO ()
main = Monadoc.monadoc
| null | https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/exe/Main.hs | haskell | import qualified Monadoc
import Monadoc.Prelude
main :: IO ()
main = Monadoc.monadoc
| |
76a538237476474bea3802d0a951e6c9fb7e3a992ceaaf8fa17a2b6ead25f594 | input-output-hk/cardano-wallet | Eras.hs |
-- |
Copyright : © 2020 - 2022 IOHK
-- License: Apache-2.0
--
Re - export ` EraValue ` library .
--
module Cardano.Wallet.Read.Eras
( -- * Eras.
KnownEras
, knownEraIndices
-- * Era bounded values.
, EraValue
, eraValueSerialize
, extractEraValue
-- * Era specific prisms.
, MkEraValue (..)
... | null | https://raw.githubusercontent.com/input-output-hk/cardano-wallet/d4b30de073f2b5eddb25bf12c2453abb42e8b352/lib/wallet/src/Cardano/Wallet/Read/Eras.hs | haskell | |
License: Apache-2.0
* Eras.
* Era bounded values.
* Era specific prisms.
* Era specific prism shortcuts.
* Specials.
* Era bounded functions.
* Composing era functions.
* Applying era functions.
* Conversion. |
Copyright : © 2020 - 2022 IOHK
Re - export ` EraValue ` library .
module Cardano.Wallet.Read.Eras
KnownEras
, knownEraIndices
, EraValue
, eraValueSerialize
, extractEraValue
, MkEraValue (..)
, byron
, shelley
, allegra
, mary
, alonzo
, babbage
, inject
, project
, sequenceEraVal... |
f9a4515f1845d90d1689d0a3e0c5a0d12d5aebb17a2fe025fb828d70f3916a6e | andrenth/release | util.ml | module Option = struct
let either g f = function
| None -> g ()
| Some x -> f x
let some = function
| None -> failwith "some: None value"
| Some x -> x
let default z = function
| None -> z
| Some x -> x
let may f = function
| None -> ()
| Some x -> f x
let maybe f = functio... | null | https://raw.githubusercontent.com/andrenth/release/c88b472d8b142f7f306299d0f51cfd8add4a1a58/src/util.ml | ocaml | module Option = struct
let either g f = function
| None -> g ()
| Some x -> f x
let some = function
| None -> failwith "some: None value"
| Some x -> x
let default z = function
| None -> z
| Some x -> x
let may f = function
| None -> ()
| Some x -> f x
let maybe f = functio... | |
84891cb81c59bf7e647e555c77dbb1c63ad423661994276bff83955ffea3db7e | bmeg/ophion | aleph.clj | (ns ophion.aleph
(:require
[clojure.string :as string]
[clojure.java.io :as io]
[manifold.stream :as stream]
[aleph.http :as http]
[cheshire.core :as json]
[taoensso.timbre :as log]
[ring.middleware.resource :as resource]
[ring.middleware.params :as params]
[ring.middleware.keyword-params :... | null | https://raw.githubusercontent.com/bmeg/ophion/d22333e8d2b33c6b9e6284ec8ef9fc2a6ce60c8f/src/ophion/aleph.clj | clojure | [graph search cache request]
(let [raw-query (json/parse-stream (InputStreamReader. (:body request)) keyword)
query (query/delabelize raw-query)
_ (log/info (mapv identity query))
;; result (query/evaluate {:graph graph :search search} query)
;; out (string/join (map output res... | (ns ophion.aleph
(:require
[clojure.string :as string]
[clojure.java.io :as io]
[manifold.stream :as stream]
[aleph.http :as http]
[cheshire.core :as json]
[taoensso.timbre :as log]
[ring.middleware.resource :as resource]
[ring.middleware.params :as params]
[ring.middleware.keyword-params :... |
cfa19bf39d5d5ccc114196bcd73e197ca38c2a022cb2872f549bb71d91b2344b | ff-notes/ff | Common.hs | module FF.Test.Common (diffCmd) where
diffCmd :: String -> String -> [String]
diffCmd ref new = ["colordiff", "-bu", ref, new]
| null | https://raw.githubusercontent.com/ff-notes/ff/7ca016602ee017d7df0b968b39250fb7b01b4091/ff-test/test/FF/Test/Common.hs | haskell | module FF.Test.Common (diffCmd) where
diffCmd :: String -> String -> [String]
diffCmd ref new = ["colordiff", "-bu", ref, new]
| |
75c1dd208bef1a447875efb3d310c8f0a7566a008143b5998046afe1fc2ae031 | jserot/caph | dot.ml | (************************************************************************************)
(* *)
(* CAPH *)
(* -bpclermont.fr ... | null | https://raw.githubusercontent.com/jserot/caph/2b3b241f0c32aa4fcaf60d4b8529956cca8aa6b1/compiler/dot.ml | ocaml | **********************************************************************************
CAPH
-bpclermont.fr
... |
Copyright 2011 - 2019 . All rights reserved .
This file is distributed under the terms of the Q Public License version 1.0 .
DOT formatted output
open Misc
open Printf
open Ssval
open Static
open Interm
open Arrays
type dot_config = {
m... |
a0894d1853a08e84f0d14790b6eac2dfd0df786e10f54ed6d21acc9613479d7a | mvoidex/hsdev | ModuleTwo.broken.hs | module ModuleTwo (
untypedFoo,
twice,
overloadedStrings,
useUntypedFoo
) where
import ModuleOne (untypedFoo)
import Data.String
broken :: IO ()
broken = do
s <-
-- | Apply function twice
twice :: (a -> a) -> a -> a
twice f = f . f
data MyString = MyString String
instance IsString MyString where
fromString ... | null | https://raw.githubusercontent.com/mvoidex/hsdev/016646080a6859e4d9b4a1935fc1d732e388db1a/tests/data/ModuleTwo.broken.hs | haskell | | Apply function twice | module ModuleTwo (
untypedFoo,
twice,
overloadedStrings,
useUntypedFoo
) where
import ModuleOne (untypedFoo)
import Data.String
broken :: IO ()
broken = do
s <-
twice :: (a -> a) -> a -> a
twice f = f . f
data MyString = MyString String
instance IsString MyString where
fromString = MyString
overloadedStri... |
bfac82909ffbfb30f6e0031779eea96100f5b593a2ac1aa98e1e5931a0b22c2a | joewilliams/erl_geo_dns | couchbeam_resource.erl | Copyright 2009 .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%%% you may not use this file except in compliance with the License.
%%% You may obtain a copy of the License at
%%%
%%% -2.0
%%%
%%% Unless required by applicable law or agreed to in writing, software
distributed under t... | null | https://raw.githubusercontent.com/joewilliams/erl_geo_dns/682c3925959db61ead99f13160ef8bd77486a871/apps/couchbeam/src/couchbeam_resource.erl | erlang | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permi... | Copyright 2009 .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
2009 .
-module(couchbeam_resource).
-author('Benoît Chesneau <>').
-include("couchbeam.hrl").
-export([get/5, head/5, delete/5, po... |
4b3bcd296784b4b0baba7b0fca59b1b4ca9ed1935ff7e45836c39ab257889e72 | irpap/Write-yourself-a-Scheme-in-48-hours | Test.hs | module Main where
import Data.Char
import Data.Complex
import SchemeParser
import Test.HUnit
main = runTestTT $ test tests
tests :: Test
tests = TestList $ map TestCase [
assertEqual
"Parsing a number"
"33"
(show $ readExpr "33")
,
assertEqual
"Pa... | null | https://raw.githubusercontent.com/irpap/Write-yourself-a-Scheme-in-48-hours/ea283dbed42e3a359de7d91f1343c7e14ec986bc/chapter03-evaluation-part-1/Test.hs | haskell | "Parsing a quasiquoted expr"
, | module Main where
import Data.Char
import Data.Complex
import SchemeParser
import Test.HUnit
main = runTestTT $ test tests
tests :: Test
tests = TestList $ map TestCase [
assertEqual
"Parsing a number"
"33"
(show $ readExpr "33")
,
assertEqual
"Pa... |
ff8cca387f246d77c9a66842cbf2e821e97e97c7de34eb0c70becc2d5d794093 | brendanhay/gogol | Delete.hs | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
{-# LANGUAGE St... | null | https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-runtimeconfig/gen/Gogol/RuntimeConfig/Operations/Delete.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
* Resource
** Constructing a Request
'RuntimeConfigOperationsDelete' request conforms to.
/See:/ 'newRuntimeConfigOperationsDelete' smart constructor.
| V1 error format.
| OAuth access token.
| The name of the operation re... | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE PatternSynonyms #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators... |
c941e9c3ef1b0ac1cf308bb6e97423c8ad353d61b15897ecca160a4d8946e0e4 | Opetushallitus/ataru | translation_util.cljc | (ns ataru.translations.translation-util
(:require [ataru.translations.texts :refer [translation-mapping]]
[clojure.walk :as walk]
#?@(:cljs [[goog.string :as gstring]
[goog.string.format]])))
(defn get-translations [lang]
(walk/prewalk (fn [x]
(cond-... | null | https://raw.githubusercontent.com/Opetushallitus/ataru/4ccb8fcd2afcc25550de563fb1bb408e72ddb1e9/src/cljc/ataru/translations/translation_util.cljc | clojure | (ns ataru.translations.translation-util
(:require [ataru.translations.texts :refer [translation-mapping]]
[clojure.walk :as walk]
#?@(:cljs [[goog.string :as gstring]
[goog.string.format]])))
(defn get-translations [lang]
(walk/prewalk (fn [x]
(cond-... | |
883f0626739622f2e41c0be77d7e30d280fad0ac79c1ef6a71bdcc7183da87da | cfereday/flat-chores-engine | project.clj | (defproject engine "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[com.cerner/clara-rules "0.19.0"]])
| null | https://raw.githubusercontent.com/cfereday/flat-chores-engine/82127bc1f354ee823725d79fed8d036792486b58/project.clj | clojure | (defproject engine "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[com.cerner/clara-rules "0.19.0"]])
| |
bed840754605878e1001456cb4de5eb299222cda132b38566eafcc41cd38109a | bitemyapp/bloodhound | Types.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
# LANGUAGE UndecidableInstances #
-- |
-- Module : Database.Bloodhound.Types
Copyright : ... | null | https://raw.githubusercontent.com/bitemyapp/bloodhound/4e25ce92c8f1e2e8337c9426b34fb676dc0b1c7c/src/Database/Bloodhound/Types.hs | haskell | # LANGUAGE OverloadedStrings #
|
Module : Database.Bloodhound.Types
License : BSD-style (see the file LICENSE)
Stability : provisional
Data types for describing actions and data structures performed to interact
will fall into are 'Query's and 'Filter's. 'Filter's are more like
traditional database constraints a... | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE UndecidableInstances #
Copyright : ( C ) 2014 , 2018
Maintainer : <
Portability : GHC
with Elasticsear... |
954a6a48738051cbb0c406ca4bb8cd0ec2420975a568c559413cdf6b61346ee4 | fffej/clojure-snippets | zeller.clj |
(def days
{0 'Saturday
1 'Sunday
2 'Monday
3 'Tuesday
4 'Wednesday
5 'Thursday
6 'Friday})
(def months
['January
'Febuary
'March
'April
'May
'June
'July
'August
'September
'October
'November
'Decem... | null | https://raw.githubusercontent.com/fffej/clojure-snippets/bf2e04502da88e4ecba8d4e4ffe9012f3984d451/zeller.clj | clojure |
(def days
{0 'Saturday
1 'Sunday
2 'Monday
3 'Tuesday
4 'Wednesday
5 'Thursday
6 'Friday})
(def months
['January
'Febuary
'March
'April
'May
'June
'July
'August
'September
'October
'November
'Decem... | |
8f9c2ae28139f5282efa612f75473c4ec73ccb370a4069215301b41a56013b8f | thelema/ocaml-community | jg_box.ml | (*************************************************************************)
(* *)
(* OCaml LablTk library *)
(* *)
,... | null | https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/browser/jg_box.ml | ocaml | ***********************************************************************
OCaml LablTk library
... | , Kyoto University RIMS
Copyright 1999 Institut National de Recherche en Informatique et
en Automatique and Kyoto University . All rights reserved .
This file is distributed under the terms of the GNU Library
$ Id$
open Tk
let add_scrollbar lb... |
a115daa83c2fa1bad11bf06006d5e39b1be8798faddbc850b0139c78ba4c93a4 | sionescu/iolib | backend-select.lisp | ;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; --- select(2) multiplexer implementation.
;;;
(in-package :iolib/multiplex)
(defconstant +select-priority+ 3)
(define-multiplexer select-multiplexer +select-priority+ (multiplexer)
((max-fd :initform 0
:accessor max-fd-of)
(read-fd-set :initform ... | null | https://raw.githubusercontent.com/sionescu/iolib/dac715c81db55704db623d8b2cfc399ebcf6175f/src/multiplex/backend-select.lisp | lisp | -*- Mode: Lisp; indent-tabs-mode: nil -*-
--- select(2) multiplexer implementation.
this means no fd <= end is set
if there are no fds set and timeout is NULL
select() blocks forever
FIXME: I don't know whether on all *nix systems select()
is closed(as the POSIX docs say) or if some other kinds of
errors are ... |
(in-package :iolib/multiplex)
(defconstant +select-priority+ 3)
(define-multiplexer select-multiplexer +select-priority+ (multiplexer)
((max-fd :initform 0
:accessor max-fd-of)
(read-fd-set :initform (allocate-fd-set)
:reader read-fd-set-of)
(write-fd-set :initform (allocate-fd-set... |
c0dd43f8cc5cdeae1635560d479f8015cd05b23ccf325c40b6dcd418fd208705 | justinethier/cyclone | cps-opt-memoize-pure-fncs.scm | ;;;; Cyclone Scheme
;;;;
;;;;
Copyright ( c ) 2014 - 2019 ,
;;;; All rights reserved.
;;;;
;;;; This file is part of the cps-optimizations module.
;;;;
(cond-expand
(program
(import (scheme base)
(scheme write)
(scheme cyclone ast)
(scheme cyclone primitives)
... | null | https://raw.githubusercontent.com/justinethier/cyclone/a1c2a8f282f37ce180a5921ae26a5deb04768269/scheme/cyclone/cps-opt-memoize-pure-fncs.scm | scheme | Cyclone Scheme
All rights reserved.
This file is part of the cps-optimizations module.
Predicate to determine if a function can be memoized
var - symbol - global name of the function
body - lambda ast - Function object
(trace:error `(DEBUG scan ,(ast:ast->pp-sexp exp)))
(write `(DEBUG scan ,var ,cont ,(ast:a... | Copyright ( c ) 2014 - 2019 ,
(cond-expand
(program
(import (scheme base)
(scheme write)
(scheme cyclone ast)
(scheme cyclone primitives)
(scheme cyclone transforms)
(scheme cyclone cps-optimizations)
(scheme cyclone util)
... |
ac343a7ad29cc90b92f6a535381762caa1c3eefed61e00b32fc40f0c6f8f49d1 | OpenC2-org/ocas | action_ad_SUITE.erl | %%%-------------------------------------------------------------------
Copyright ( c ) 2017 , sFractal Consulting , LLC
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.... | null | https://raw.githubusercontent.com/OpenC2-org/ocas/c15132d9f37b1e0e29884456a520557c25b22f38/test/action_ad_SUITE.erl | erlang | -------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or i... | Copyright ( c ) 2017 , sFractal Consulting , LLC
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@doc test a series of commands
-module(action_ad_SUITE).
-author("Duncan Sparrell").
-copyright("2017, sFractal Cons... |
9299c2cccfe318054155e907a415b3203ea3cc8e43642a5c7ac278607b0f2ae3 | vincenthz/hs-cryptohash | SHA1.hs | {-# LANGUAGE PackageImports #-}
-- |
Module : Crypto . Hash .
-- License : BSD-style
Maintainer : < >
-- Stability : experimental
-- Portability : unknown
--
A module containing bindings
--
module Crypto.Hash.SHA1
( Ctx(..)
-- * Incremental hashing Functions
: :
, update -- :... | null | https://raw.githubusercontent.com/vincenthz/hs-cryptohash/bc7993c104964a2a593265266730ebc78ef59774/Crypto/Hash/SHA1.hs | haskell | # LANGUAGE PackageImports #
|
License : BSD-style
Stability : experimental
Portability : unknown
* Incremental hashing Functions
:: Ctx -> ByteString -> Ctx
:: Ctx -> [ByteString] -> Ctx
* Single Pass hashing
:: ByteString -> ByteString
:: ByteString -> ByteString
| SHA1 Context
| init a context
| ... |
Module : Crypto . Hash .
Maintainer : < >
A module containing bindings
module Crypto.Hash.SHA1
( Ctx(..)
: :
: : Ctx - > ByteString
) where
import Prelude hiding (init)
import qualified Data.ByteString.Lazy as L
import Data.ByteString (ByteString)
import Crypto.Hash.Internal (digestT... |
1d42503379c384d898f5a595d8abd62c346d0fed26e8595d1dde6d3e88565d1b | nikhilc1527/haddr-lang | Parser.hs | module Parser where
import Data.Bool
import Data.List
import Data.Char
import Data.Foldable
import Data.Data
import Data.List.Split
import qualified Debug.Trace as Trace
import Data.Hashable
import Text.Printf
import qualified Data.HashMap as Map
import Control.Applicative
import Control.Monad
import qualified Contro... | null | https://raw.githubusercontent.com/nikhilc1527/haddr-lang/4a4401a7106a5a4c3b37a14c90bb4d6314f28ece/src/Parser.hs | haskell | Expected more input, but there is nothing
We didn't expect to find this element
Used in `Alternative` implementation of `empty`
k :: a -> Parser b
white space surround
monad_compose a b = do
a_ <- a
b_ <- b
return $ a_ . b_
monad_compose a b = (.) <$> a <*> b
expressionP = do
unaries <- prefixUnaryO... | module Parser where
import Data.Bool
import Data.List
import Data.Char
import Data.Foldable
import Data.Data
import Data.List.Split
import qualified Debug.Trace as Trace
import Data.Hashable
import Text.Printf
import qualified Data.HashMap as Map
import Control.Applicative
import Control.Monad
import qualified Contro... |
831f3861ed434043c07d9b45c1308dc7ebf5700719a25959ceeb61fbb5d56a32 | helium/helium-packet-router | hpr_app.erl | %%%-------------------------------------------------------------------
%% @doc helium_packet_router public API
%% @end
%%%-------------------------------------------------------------------
-module(hpr_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
lager:info("starti... | null | https://raw.githubusercontent.com/helium/helium-packet-router/fba042519bd003349352bc16a577f0df28164c17/src/hpr_app.erl | erlang | -------------------------------------------------------------------
@doc helium_packet_router public API
@end
------------------------------------------------------------------- |
-module(hpr_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
lager:info("starting app"),
case hpr_sup:start_link() of
{error, _} = Error ->
Error;
OK ->
hpr_cli_registry:register_cli(),
OK
end.
stop(_State) -... |
1a37c96f184b337933b9a0cf286e1d6baf77ac35041418a9210bc8177b65cbc1 | pallet/pallet-jclouds | jclouds_live_test.clj | (ns pallet.live-test.jclouds-live-test
(:use
clojure.test
[pallet.node :only [group-name]]
[pallet.compute.jclouds-test-utils :only [purge-compute-service]])
(:require
[pallet.live-test :as live-test]
[pallet.core :as core]
[pallet.common.logging.logutils :as logutils]
[pallet.compute :as compu... | null | https://raw.githubusercontent.com/pallet/pallet-jclouds/29f0af244da1b5ecb7e44d815343a3036a4ab006/test/pallet/live_test/jclouds_live_test.clj | clojure | (ns pallet.live-test.jclouds-live-test
(:use
clojure.test
[pallet.node :only [group-name]]
[pallet.compute.jclouds-test-utils :only [purge-compute-service]])
(:require
[pallet.live-test :as live-test]
[pallet.core :as core]
[pallet.common.logging.logutils :as logutils]
[pallet.compute :as compu... | |
98cfdd2af5efef1b2a2e7087ee0804a6bb3897658d6553a23cb4a5399287d40a | scarvalhojr/haskellbook | section24.11-5.hs |
import Control.Applicative ((<|>), (<*), (*>))
import Control.Monad (void)
import Text.Printf (printf)
import Text.Parser.Char (char, anyChar, newline, space, spaces, string)
import Text.Parser.Token (decimal)
import Text.Parser.Combinators (skipSome, skipMany, some, many, manyTi... | null | https://raw.githubusercontent.com/scarvalhojr/haskellbook/6016a5a78da3fc4a29f5ea68b239563895c448d5/chapter24/section24.11-5.hs | haskell | -
-
another comment \n\
should I try skippin bfast?\n\ |
import Control.Applicative ((<|>), (<*), (*>))
import Control.Monad (void)
import Text.Printf (printf)
import Text.Parser.Char (char, anyChar, newline, space, spaces, string)
import Text.Parser.Token (decimal)
import Text.Parser.Combinators (skipSome, skipMany, some, many, manyTi... |
51eb7bc440bb7dc7881168a41b159d2cde9bc76b4178b8f4b63aca0fa842ed69 | dazld/shadow-cljs-sass | shadow_cljs_sass.clj | (ns leiningen.new.shadow-cljs-sass
(:require [leiningen.new.templates :refer [renderer name-to-path ->files project-name multi-segment sanitize-ns year date]]
[leiningen.core.main :as main]))
(def render (renderer "shadow-cljs-sass"))
(defn shadow-cljs-sass
"FIXME: write documentation"
[name]
(let... | null | https://raw.githubusercontent.com/dazld/shadow-cljs-sass/43459bf36be595b0c173de786bba624a8ae6a0ce/src/leiningen/new/shadow_cljs_sass.clj | clojure | (ns leiningen.new.shadow-cljs-sass
(:require [leiningen.new.templates :refer [renderer name-to-path ->files project-name multi-segment sanitize-ns year date]]
[leiningen.core.main :as main]))
(def render (renderer "shadow-cljs-sass"))
(defn shadow-cljs-sass
"FIXME: write documentation"
[name]
(let... | |
828ac151735c98289849d4c74e1d6c7d1cb1d879a6669466d53ba373691c3d48 | aprell/compiler-potpourri | expect.ml | open Control_flow__Graphs
open Dominators
open Liveness
let () =
match Sys.argv with
| [| _; filename |] ->
let graph = graph_of_input filename in
print_endline "LIVE VARIABLES\n";
ignore (Liveness.compute graph ~dump:true);
print_endline "DOMINATORS\n";
ignore (Dominators.compute graph ~dump:t... | null | https://raw.githubusercontent.com/aprell/compiler-potpourri/a668b71f392abf1810a1f33f362a1d96bc5eebce/data_flow/analysis/test/expect.ml | ocaml | open Control_flow__Graphs
open Dominators
open Liveness
let () =
match Sys.argv with
| [| _; filename |] ->
let graph = graph_of_input filename in
print_endline "LIVE VARIABLES\n";
ignore (Liveness.compute graph ~dump:true);
print_endline "DOMINATORS\n";
ignore (Dominators.compute graph ~dump:t... | |
7dcc04f90893c5450cdb414f43de3602f07c1c509d6197d08ee95666e1970877 | iamaleksey/common_lib | common_lib_sup.erl | Copyright ( C ) 2009 ,
%%% All rights reserved.
%%%
%%% Redistribution and use in source and binary forms, with or without
%%% modification, are permitted provided that the following conditions are met:
%%%
%%% o Redistributions of source code must retain the above copyright notice,
%%% this list of conditions ... | null | https://raw.githubusercontent.com/iamaleksey/common_lib/250d965d5accaad8aa1e2c7bbf4ac691aa94ca93/src/common_lib_sup.erl | erlang | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
o Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
o Redistributions ... | Copyright ( C ) 2009 ,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS "
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY ,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.