_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 |
|---|---|---|---|---|---|---|---|---|
db7664205f26b4800dcc60194a3de4cc28d30c92758cc47b867cb9ef6b55196a | basho/riak_test | job_enable_common.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2016 Basho Technologies , Inc.
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the Li... | null | https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/job_enable_common.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 ) 2016 Basho Technologies , Inc.
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(job_enable_common).
-e... |
50b1fa29081fd3e896bc147c86bae95aa5156cef29ae6016afd3c7c80338c9fa | fossas/fossa-cli | PackagesConfig.hs | # LANGUAGE RecordWildCards #
module Strategy.NuGet.PackagesConfig (
discover,
findProjects,
getDeps,
mkProject,
buildGraph,
PackagesConfig (..),
NuGetDependency (..),
) where
import App.Fossa.Analyze.Types (AnalyzeProject (analyzeProject'), analyzeProject)
import Control.Effect.Diagnostics (Diagnostics,... | null | https://raw.githubusercontent.com/fossas/fossa-cli/187f19afec2133466d1998c89fc7f1c77107c2b0/src/Strategy/NuGet/PackagesConfig.hs | haskell | # LANGUAGE RecordWildCards #
module Strategy.NuGet.PackagesConfig (
discover,
findProjects,
getDeps,
mkProject,
buildGraph,
PackagesConfig (..),
NuGetDependency (..),
) where
import App.Fossa.Analyze.Types (AnalyzeProject (analyzeProject'), analyzeProject)
import Control.Effect.Diagnostics (Diagnostics,... | |
df67900d8b1a56ce2688823a346db52087c7ded7de1df145ac4c67ef6e10fd2d | iu-parfunc/haskell_dsl_tour | Fusion.hs | {-# LANGUAGE GADTs #-}
-- | Fusion transformation
--
module Fusion where
import AST
import Substitution
| Implement operator fusion by rewriting the AST .
--
fuseAcc :: OpenAcc aenv a -> OpenAcc aenv a
fuseAcc acc =
case acc of
Use xs -> Use xs
Avar ix -> Avar ix
Generate sh... | null | https://raw.githubusercontent.com/iu-parfunc/haskell_dsl_tour/f75a7e492a1e5d219a77fb128f70441d54a706eb/middle_end/GADT_transforms/src/Fusion.hs | haskell | # LANGUAGE GADTs #
| Fusion transformation
|
module Fusion where
import AST
import Substitution
| Implement operator fusion by rewriting the AST .
fuseAcc :: OpenAcc aenv a -> OpenAcc aenv a
fuseAcc acc =
case acc of
Use xs -> Use xs
Avar ix -> Avar ix
Generate sh f -> Generate sh f
Alet bnd body -> Ale... |
af442cc2f54b21d90648ad3e937897ac370475e0fadf8a3bffd6c96bd1168823 | BinaryAnalysisPlatform/bap | bap_value.ml | open Bap_core_theory
open Core_kernel[@@warning "-D"]
open Regular.Std
open Format
module type S = sig
type t [@@deriving bin_io, compare, sexp]
val pp : Format.formatter -> t -> unit
end
module Uid = Type_equal.Id.Uid
module Typeid = String
type void
type literal = (void,void,void) format
type uid = Uid.t
type ... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_types/bap_value.ml | ocaml | open Bap_core_theory
open Core_kernel[@@warning "-D"]
open Regular.Std
open Format
module type S = sig
type t [@@deriving bin_io, compare, sexp]
val pp : Format.formatter -> t -> unit
end
module Uid = Type_equal.Id.Uid
module Typeid = String
type void
type literal = (void,void,void) format
type uid = Uid.t
type ... | |
6f1f5f0053496772fd081cf1390b8309a3c14ab16429915710dedf4879bdf7b4 | mejgun/haskell-tdlib | PremiumStatePaymentOption.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Data.PremiumStatePaymentOption where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified TD.Data.PremiumPaymentOption as PremiumPaymentOption
import qualified Utils as U
-- |
| Describes an option for buying or upgrading Telegra... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/b088f5062023fa201a68ebda128ab2fc489329ab/src/TD/Data/PremiumStatePaymentOption.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
| Identifier of the last in-store transaction for the currently used option
| Information about the payment option |
module TD.Data.PremiumStatePaymentOption where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified TD.Data.PremiumPaymentOption as PremiumPaymentOption
import qualified Utils as U
| Describes an option for buying or upgrading Telegram Premium for self
PremiumStatePaymentOptio... |
c6864f6b2dadec50364ada2425d76f51e9d60072d2c7d50aa9112e6d08eafbb7 | MarcosPividori/push-notify | Gcm.hs | -- GSoC 2013 - Communicating with mobile devices.
-- | This library defines an API for communicating with Android powered devices, sending Push Notifications through Google Cloud Messaging (HTTP connection).
module Network.PushNotify.Gcm
(
-- * GCM Service
sendGCM
-- * GCM Settings
, GCMHttpConf... | null | https://raw.githubusercontent.com/MarcosPividori/push-notify/4c023c3fd731178d1d114774993a5e337225baa1/push-notify/Network/PushNotify/Gcm.hs | haskell | GSoC 2013 - Communicating with mobile devices.
| This library defines an API for communicating with Android powered devices, sending Push Notifications through Google Cloud Messaging (HTTP connection).
* GCM Service
* GCM Settings
* GCM Messages
* GCM Result |
module Network.PushNotify.Gcm
(
sendGCM
, GCMHttpConfig(..)
, RegId
, GCMmessage(..)
, GCMresult(..)
) where
import Network.PushNotify.Gcm.Types
import Network.PushNotify.Gcm.Send
|
1fc4dabb6c011f93851f6ccc2581a9feea86905de545df8a3f3d5684d4ab145b | aniketpant/fraskell | filtering.hs |
Use the functions mentioned in this section ( you will need two of them ) to
compute the number of lower - case letters in a string . For instance , on “ aBCde ”
it should return 3 .
Use the functions mentioned in this section (you will need two of them) to
compute the number of lower-case letters in a string. ... | null | https://raw.githubusercontent.com/aniketpant/fraskell/e1c0f9a11bada28907980f08eff86106d67bf4f5/basics/filtering.hs | haskell |
Use the functions mentioned in this section ( you will need two of them ) to
compute the number of lower - case letters in a string . For instance , on “ aBCde ”
it should return 3 .
Use the functions mentioned in this section (you will need two of them) to
compute the number of lower-case letters in a string. ... | |
019b719a9408c552cef910c0c74f6702e1f87a1e91b6d616b69107a645f8f83e | ralsei/graphite | col-test.rkt | #lang racket
(require data-frame graphite plot/utils)
(define df (make-data-frame))
(df-add-series! df (make-series "trt" #:data (vector "a" "b" "c")))
(df-add-series! df (make-series "outcome" #:data (vector 2.3 1.9 3.2)))
(graph #:data df
#:mapping (aes #:x "trt" #:y "outcome")
(col))
| null | https://raw.githubusercontent.com/ralsei/graphite/9b3de31156543dd135e6286132a88a48af2b8298/graphite-examples/col-test.rkt | racket | #lang racket
(require data-frame graphite plot/utils)
(define df (make-data-frame))
(df-add-series! df (make-series "trt" #:data (vector "a" "b" "c")))
(df-add-series! df (make-series "outcome" #:data (vector 2.3 1.9 3.2)))
(graph #:data df
#:mapping (aes #:x "trt" #:y "outcome")
(col))
| |
3376ebf620ddf4340f8a06ef5733e87338f486a2edc38d46a0c4c04005247e18 | xtdb/xtdb | console.clj | (ns xtdb.metrics.console
(:require [xtdb.metrics :as metrics]
[clojure.string :as string]
[xtdb.system :as sys])
(:import (com.codahale.metrics MetricRegistry ConsoleReporter ScheduledReporter)
(java.util Locale)
(java.util.concurrent TimeUnit)
(java.time Dur... | null | https://raw.githubusercontent.com/xtdb/xtdb/e2f51ed99fc2716faa8ad254c0b18166c937b134/modules/metrics/src/xtdb/metrics/console.clj | clojure | (ns xtdb.metrics.console
(:require [xtdb.metrics :as metrics]
[clojure.string :as string]
[xtdb.system :as sys])
(:import (com.codahale.metrics MetricRegistry ConsoleReporter ScheduledReporter)
(java.util Locale)
(java.util.concurrent TimeUnit)
(java.time Dur... | |
db50ddc053ac3f74bd3071a2629017386b37bd71225a34d403faf2171fd6d6e4 | weblocks-framework/weblocks | template-utils.lisp | (in-package :cm)
(defparameter *template-temporary-validation-errors* nil)
(defparameter *template-temporary-intermediate-values* nil)
(defparameter *out-of-band-template-vars* nil)
;============ utils
(defmacro string+ (&rest args)
`(concatenate 'string ,@args))
(defun fill-template-widget (name &key (language "i... | null | https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/contrib/nunb/templates-crufty/template-utils.lisp | lisp | ============ utils
(if (symbolp (car i))
(intern (symbol-name (car i)) keyword-package)
(intern (string-upcase (car i)) keyword-package))
was to be used in conjunction with (clos->string (car i))
in the original alist->plist above (in place of string-upcase (car i)) | (in-package :cm)
(defparameter *template-temporary-validation-errors* nil)
(defparameter *template-temporary-intermediate-values* nil)
(defparameter *out-of-band-template-vars* nil)
(defmacro string+ (&rest args)
`(concatenate 'string ,@args))
(defun fill-template-widget (name &key (language "it") assoc assoc2)
... |
d661633b47d38e4d0f75a96eb263ba8659e627cb68237b4589b0d1b952cdfcb7 | digitallyinduced/ihp | ParamSpec.hs | |
Module : Test . Controller . ParamSpec
Copyright : ( c ) digitally induced GmbH , 2020
Module: Test.Controller.ParamSpec
Copyright: (c) digitally induced GmbH, 2020
-}
module Test.Controller.ParamSpec where
import IHP.Prelude
import IHP.HaskellSupport
import Test.Hspec
import IHP.Controller.Param
import IHP.Co... | null | https://raw.githubusercontent.com/digitallyinduced/ihp/3cd00517ff3f6e97e1ca0d68a4ce61d61c66d4aa/Test/Controller/ParamSpec.hs | haskell | -1024 is smaller than minimal Double exponent of -1021 | |
Module : Test . Controller . ParamSpec
Copyright : ( c ) digitally induced GmbH , 2020
Module: Test.Controller.ParamSpec
Copyright: (c) digitally induced GmbH, 2020
-}
module Test.Controller.ParamSpec where
import IHP.Prelude
import IHP.HaskellSupport
import Test.Hspec
import IHP.Controller.Param
import IHP.Co... |
bf7ad48e4e54d6830b8e1d72e42ec1bc00624911754fe2912bccdf5af71a15bb | obsidiansystems/directory-contents | Zipper.hs | {-# Language LambdaCase #-}
|
Description :
Cursor - based navigation and modification of .
This module should be imported qualified due to the very short names it exports .
Description:
Cursor-based navigation and modification of 'DirTree's.
This module should be imported qualified due to the very sho... | null | https://raw.githubusercontent.com/obsidiansystems/directory-contents/579fc07d336da72a367871f0b45ab9107683327e/src/System/Directory/Contents/Zipper.hs | haskell | # Language LambdaCase #
* Zipper
| A zipper for a 'DirTree'. As you navigate the tree, this keeps track of where
you are (which node is "focused" under your cursor) and how to reach parent, child,
and sibling nodes.
^ Siblings
| Construct a zipper out of a 'DirTree'. Use 'focused' or 'unzipped' to get back
a 'Di... | |
Description :
Cursor - based navigation and modification of .
This module should be imported qualified due to the very short names it exports .
Description:
Cursor-based navigation and modification of 'DirTree's.
This module should be imported qualified due to the very short names it exports.
-}
modu... |
4d960a71b8046c3e8bd14eef178147f183438b3b38593debe77278cc65daf3cf | ocsigen/lwt | test_mcast.ml | This file is part of Lwt , released under the MIT license . See LICENSE.md for
details , or visit .
details, or visit . *)
open Lwt.Infix
open Test
let debug = false
let hello = Bytes.unsafe_of_string "Hello, World!"
let mcast_addr =
let last_group = ref 0 in
fun () ->
incr last_group;
Printf... | null | https://raw.githubusercontent.com/ocsigen/lwt/aa9d18a550da444e1a889867dad52a32f162b262/test/unix/test_mcast.ml | ocaml | This file is part of Lwt , released under the MIT license . See LICENSE.md for
details , or visit .
details, or visit . *)
open Lwt.Infix
open Test
let debug = false
let hello = Bytes.unsafe_of_string "Hello, World!"
let mcast_addr =
let last_group = ref 0 in
fun () ->
incr last_group;
Printf... | |
5d84a2f828c13b52bb38f7f236b62331c28f1002255cad7543ddffad76593278 | grin-compiler/ghc-wpc-sample-programs | Conversion.hs | # LANGUAGE NondecreasingIndentation #
module Agda.TypeChecking.Conversion where
import Control.Arrow (first, second)
import Control.Monad
import Control.Monad.Fail (MonadFail)
import Data.Function
import qualified Data.List as List
import Data.List.NonEmpty (NonEmpty(..))
import qualified Data.List.NonEmpty as NonEm... | null | https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/TypeChecking/Conversion.hs | haskell | # SOURCE #
| Try whether a computation runs without errors or new constraints
(may create new metas, though).
Restores state upon failure.
| Try whether a computation runs without errors or new constraints
(may create new metas, though).
Return 'Just' the result upon success.
Return 'Nothing' and resto... | # LANGUAGE NondecreasingIndentation #
module Agda.TypeChecking.Conversion where
import Control.Arrow (first, second)
import Control.Monad
import Control.Monad.Fail (MonadFail)
import Data.Function
import qualified Data.List as List
import Data.List.NonEmpty (NonEmpty(..))
import qualified Data.List.NonEmpty as NonEm... |
9bcc6b78018e4acbce47ae9f7849df3478b283a05ef1b4bd1bb8e2691bee3389 | martijnbastiaan/doctest-parallel | Fixity.hs | module Fixity where
foo :: Int
foo = 23 + 42
| null | https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/extract/regression/Fixity.hs | haskell | module Fixity where
foo :: Int
foo = 23 + 42
| |
63f733a98f4d379a0728f33fd9211b6035e51f2af0b84400b6482d7886706e9f | TyOverby/mono | to_incr_dom.ml | open! Core
open! Async_kernel
open! Import
open Incr.Let_syntax
include To_incr_dom_intf
module State = struct
type t = { mutable last_lifecycle : Bonsai.Private.Lifecycle.Collection.t }
let create () = { last_lifecycle = Bonsai.Private.Lifecycle.Collection.empty }
end
module Action = struct
type ('dynamic_act... | null | https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-bonsai/web/to_incr_dom.ml | ocaml | open! Core
open! Async_kernel
open! Import
open Incr.Let_syntax
include To_incr_dom_intf
module State = struct
type t = { mutable last_lifecycle : Bonsai.Private.Lifecycle.Collection.t }
let create () = { last_lifecycle = Bonsai.Private.Lifecycle.Collection.empty }
end
module Action = struct
type ('dynamic_act... | |
475a8af4b3e49d91e5e78e36758c3da5ef2cc262d79d1b323651109daeca1407 | scrintal/heroicons-reagent | minus_circle.cljs | (ns com.scrintal.heroicons.outline.minus-circle)
(defn render []
[:svg {:xmlns ""
:fill "none"
:viewBox "0 0 24 24"
:strokeWidth "1.5"
:stroke "currentColor"
:aria-hidden "true"}
[:path {:strokeLinecap "round"
:strokeLinejoin "round"
... | null | https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/minus_circle.cljs | clojure | (ns com.scrintal.heroicons.outline.minus-circle)
(defn render []
[:svg {:xmlns ""
:fill "none"
:viewBox "0 0 24 24"
:strokeWidth "1.5"
:stroke "currentColor"
:aria-hidden "true"}
[:path {:strokeLinecap "round"
:strokeLinejoin "round"
... | |
5abb40a340a08de12171523a137c5755c4fca3dfbb060ba079e598ecdf7c8b57 | PacktWorkshops/The-Clojure-Workshop | monitored.clj | (ns packt-clj.monitored)
(defn wrap-fn-body [fn-name tx-fn b]
(let [arg-list (first b)
fn-body (rest b)]
(when-not (first (filter #(= % 'client-id) arg-list))
(throw (ex-info "Missing client-id argument" {})))
`(~arg-list
(let [start-time# (System/nanoTime)]
(try
(let [r... | null | https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter11/Exercise11.04/monitored.clj | clojure | (ns packt-clj.monitored)
(defn wrap-fn-body [fn-name tx-fn b]
(let [arg-list (first b)
fn-body (rest b)]
(when-not (first (filter #(= % 'client-id) arg-list))
(throw (ex-info "Missing client-id argument" {})))
`(~arg-list
(let [start-time# (System/nanoTime)]
(try
(let [r... | |
b071ca097f49b2286d6148942c188b69ea679ea624744488cd16f55eaf2c7142 | kawu/concraft-pl | Polish.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
module NLP.Concraft.Polish
(
-- * Model
C.Concraft
, C.saveModel
, C.loadModel
-- * Tagging
, tag
, marginals
-- * Analysis
, macaPar
-- * Training
, TrainConf (..)
, train
-- * Pruning
, C.prune
-- -- * Analysis
-- , anaSent
-- , reAnaPar
) where... | null | https://raw.githubusercontent.com/kawu/concraft-pl/1fca1d1e51da751a8ae566395b0ebbfe7ce69bab/src/NLP/Concraft/Polish.hs | haskell | # LANGUAGE OverloadedStrings #
* Model
* Tagging
* Analysis
* Training
* Pruning
-- * Analysis
, anaSent
, reAnaPar
-----------------------------------------------
Default configuration
-----------------------------------------------
| Default configuration for the guessing observation schema.
| Default conf... | # LANGUAGE RecordWildCards #
module NLP.Concraft.Polish
(
C.Concraft
, C.saveModel
, C.loadModel
, tag
, marginals
, macaPar
, TrainConf (..)
, train
, C.prune
) where
import Prelude hiding (Word)
import Control.Applicative ((<$>))
import qualified Data.Text.Lazy as L
import qualified Dat... |
fa86e3a5f9654418e1afa1a7e4189d2d00c7332ba6097a7085270c47ac0dcbf4 | futurice/haskell-mega-repo | Haxl.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
module Google.Haxl where
import Control.Concurrent.ParallelIO.Local (parallel_, withPool)
import Futurice.Prelude
import Google
import Haxl.Core
import Prelude ()
newtype Goog... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/haxl-fxtra/src/Google/Haxl.hs | haskell | ^ Credentials to Google API
^ HTTP Manager | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
module Google.Haxl where
import Control.Concurrent.ParallelIO.Local (parallel_, withPool)
import Futurice.Prelude
import Google
import Haxl.Core
import Prelude ()
newtype Goog... |
81ab3633bd1ad68c1af2d449ba603d253e7808e09ebdb4c6f40c0187a5081d5c | originrose/cortex | traverse_test.clj | (ns cortex.nn.traverse-test
(:require [clojure.test :refer :all]
[clojure.data :as data]
[clojure.core.matrix :as m]
[cortex.graph :as graph]
[cortex.loss.core :as loss]
[cortex.nn.traverse :as traverse]
[cortex.nn.layers :as layers]
... | null | https://raw.githubusercontent.com/originrose/cortex/94b1430538e6187f3dfd1697c36ff2c62b475901/test/clj/cortex/nn/traverse_test.clj | clojure | Using set below to make the output order independent. Loss terms are added so the definition
of the loss function is independent of order.
Note that loss functions on non-trainable 'parameters' do not survive however
loss functions on non-trainable 'layers' do because they change the input gradients
for previous layer... | (ns cortex.nn.traverse-test
(:require [clojure.test :refer :all]
[clojure.data :as data]
[clojure.core.matrix :as m]
[cortex.graph :as graph]
[cortex.loss.core :as loss]
[cortex.nn.traverse :as traverse]
[cortex.nn.layers :as layers]
... |
c4668fb58742a4c097b59a5a5c87593f0e327d94c8a7d8d439956feb6bc08198 | aristidb/aws | S3.hs | module Aws.S3
(
module Aws.S3.Commands
, module Aws.S3.Core
)
where
import Aws.S3.Commands
import Aws.S3.Core
| null | https://raw.githubusercontent.com/aristidb/aws/a99113ed7768f9758346052c0d8939b66c6efa87/Aws/S3.hs | haskell | module Aws.S3
(
module Aws.S3.Commands
, module Aws.S3.Core
)
where
import Aws.S3.Commands
import Aws.S3.Core
| |
19495b29700e0b885200f5f35df20ee48089a0a4b063e97f775e475b2d9c4f99 | montyly/gueb | ir.ml | open Absenvgenerique
open Program_piqi
module type IR = functor (Absenv_v : AbsEnvGenerique) ->
sig
type ir_stmt
val print_stmt : ir_stmt -> string
val print_type : ir_stmt -> string
val parse_func_protobuf : Program_piqi.function_-> Gueb_type.basic_block list * Gueb_type.edge list * int * int * (ir... | null | https://raw.githubusercontent.com/montyly/gueb/45f496a5a1e8e908e562928762ece304c2408c3a/src/ir.ml | ocaml | bbs,connection_unfilter,eip, number_unloop,nodes,call_retn) | open Absenvgenerique
open Program_piqi
module type IR = functor (Absenv_v : AbsEnvGenerique) ->
sig
type ir_stmt
val print_stmt : ir_stmt -> string
val print_type : ir_stmt -> string
val parse_func_protobuf : Program_piqi.function_-> Gueb_type.basic_block list * Gueb_type.edge list * int * int * (ir... |
32f4484df1f54daa2578027d41485b09c340f3874a097ffa3da2338204c90797 | esl/MongooseIM | mongoose_graphql_user_subscription.erl | -module(mongoose_graphql_user_subscription).
-behaviour(mongoose_graphql).
-export([execute/4]).
-ignore_xref([execute/4]).
-include("../mongoose_graphql_types.hrl").
execute(_Ctx, _Obj, <<"stanza">>, _Args) ->
{ok, stanza}.
| null | https://raw.githubusercontent.com/esl/MongooseIM/7c7419889d3babba1a842903fe515c8f61752e7d/src/graphql/user/mongoose_graphql_user_subscription.erl | erlang | -module(mongoose_graphql_user_subscription).
-behaviour(mongoose_graphql).
-export([execute/4]).
-ignore_xref([execute/4]).
-include("../mongoose_graphql_types.hrl").
execute(_Ctx, _Obj, <<"stanza">>, _Args) ->
{ok, stanza}.
| |
0edb87325cbebc0772f665918d8ec3720ff2a5eb70291fb469811351c01276e5 | ditto/ditto | Syntax.hs | module Ditto.Syntax where
import Data.List
import Data.Maybe
import Data.ByteString.Char8 (ByteString, pack, unpack)
import qualified Data.Map as Map
----------------------------------------------------------------------
snoc :: [a] -> a -> [a]
snoc xs x = xs ++ [x]
reject :: (a -> Bool) -> [a] -> [a]
reject p = fil... | null | https://raw.githubusercontent.com/ditto/ditto/f0d35271950216308f3f9bbcf701b176ece5ccd9/src/Ditto/Syntax.hs | haskell | --------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------------------------------
--------------------------------------------... | module Ditto.Syntax where
import Data.List
import Data.Maybe
import Data.ByteString.Char8 (ByteString, pack, unpack)
import qualified Data.Map as Map
snoc :: [a] -> a -> [a]
snoc xs x = xs ++ [x]
reject :: (a -> Bool) -> [a] -> [a]
reject p = filter (not . p)
data Verbosity = Normal | Verbose
deriving (Show, Rea... |
8fa2dfc56c30f7c5adbfd018c6838763033593af223651b3c53f29225fe19b65 | GaloisInc/daedalus | Free.hs | # LANGUAGE RankNTypes , GADTs , BlockArguments , NamedFieldPuns #
-- -----------------------------------------------------------------------------
-- Bound, free, and free in a function position variables
--
module Daedalus.Type.Free where
import Control.Monad.State
import Data.Set (Set)
import qualified Data.Set a... | null | https://raw.githubusercontent.com/GaloisInc/daedalus/9749914338687cf7be73a3f550ed2d356edffc4d/src/Daedalus/Type/Free.hs | haskell | -----------------------------------------------------------------------------
Bound, free, and free in a function position variables
-- | Oorder a bunch of declarations topologically
TCName because we need the context
XXX: Why are we doing this complicated traverals thing here??
Get the *top level* calls | # LANGUAGE RankNTypes , GADTs , BlockArguments , NamedFieldPuns #
module Daedalus.Type.Free where
import Control.Monad.State
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Graph.SCC(stronglyConnComp)
import qualified Data.List.NonEmpty as NE
import Data.Parameterized.Some
import Daedalus.Rec(s... |
74b48dfe518cc1ce12e699234150df7a2566d578924287f50b128a6b3d328343 | quoll/asami | block_file.clj | (ns ^{:doc "A mapped file implementation of the Block abstraction"
:author "Paula Gearon"}
asami.durable.block.file.block-file
(:require [clojure.java.io :as io]
[asami.durable.common :refer [Transaction Closeable Forceable rewind! commit! close]]
[asami.durable.block.block-api :refer ... | null | https://raw.githubusercontent.com/quoll/asami/e2d3b9354ecc2da2f5ba9d139e0ad0e8a95262c0/src/asami/durable/block/file/block_file.clj | clojure | (set! *warn-on-reflection* true)
Each mapping is called a region, and will contain multiple blocks.
Blocks are expected to evenly divide into a region, though slack
space at the end of a region is permissible. The slack space will
be (mod region-size block-size).
- nr-blocks is the total number of blocks in a fil... | (ns ^{:doc "A mapped file implementation of the Block abstraction"
:author "Paula Gearon"}
asami.durable.block.file.block-file
(:require [clojure.java.io :as io]
[asami.durable.common :refer [Transaction Closeable Forceable rewind! commit! close]]
[asami.durable.block.block-api :refer ... |
feffdde29b63e13372b63d3863fc6a5edd12e35fc9a42f63782e9aa3dd0d82a3 | lpeterse/haskell-ssh | Name.hs | module Network.SSH.Name where
import qualified Data.ByteString as BS
import Data.String
newtype Name = Name BS.ByteString
deriving (Eq, Ord, Show, IsString)
class HasName a where
name :: a -> Name
instance HasName Name where
name = id
instance HasName () where
name = const (Name "()... | null | https://raw.githubusercontent.com/lpeterse/haskell-ssh/d1a614b6bf30c4932ee5a66efcae6e71680b4819/src/hssh-internal/Network/SSH/Name.hs | haskell | module Network.SSH.Name where
import qualified Data.ByteString as BS
import Data.String
newtype Name = Name BS.ByteString
deriving (Eq, Ord, Show, IsString)
class HasName a where
name :: a -> Name
instance HasName Name where
name = id
instance HasName () where
name = const (Name "()... | |
89865f3efa0bd45b968650de8b548a999a8de962b39741afdfc4bb87e6a1c2fa | clj-kondo/clj-kondo | a_test.clj | (ns simple-test
(:require [clojure.test :refer [deftest is]]))
(deftest foo
(is (= 1 1)))
| null | https://raw.githubusercontent.com/clj-kondo/clj-kondo/35207f8b92f5a813483505b21af856bce4623c43/corpus/simple_test/a_test.clj | clojure | (ns simple-test
(:require [clojure.test :refer [deftest is]]))
(deftest foo
(is (= 1 1)))
| |
701983c245f9594f3174e747318b8d037a4cd9b615fb93028cba14cd496669c0 | ghcjs/jsaddle-dom | SpeechSynthesisEvent.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SpeechSynthesisEvent
(getCharIndex, getElapsedTime, getName, SpeechSynthesisEvent(..),
gTypeSpeechSynthesis... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SpeechSynthesisEvent.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.SpeechSynthesisEvent
(getCharIndex, getElapsedTime, getName, SpeechSynthesisEvent(..),
gTypeSpeechSynthesisEvent)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), May... |
5c1dd7370646e40b9bc3ed783b17585f2ec0c8e47ada4f34d10128984d536511 | chaoxu/mgccl-haskell | aspc.hs | import Math.Combinatorics.Exact.Binomial
main :: IO ()
main = do c <- getLine
print $ (\[x,y]->binsum x y) (map read (words c) ::[Integer])
where binsum n m = foldl1 (\x y -> (x+y) `rem` 1000000) [n `choose` k|k<-[m..n]]
| null | https://raw.githubusercontent.com/chaoxu/mgccl-haskell/bb03e39ae43f410bd2a673ac2b438929ab8ef7a1/rosalind/aspc.hs | haskell | import Math.Combinatorics.Exact.Binomial
main :: IO ()
main = do c <- getLine
print $ (\[x,y]->binsum x y) (map read (words c) ::[Integer])
where binsum n m = foldl1 (\x y -> (x+y) `rem` 1000000) [n `choose` k|k<-[m..n]]
| |
65e926208695a8af1c355c2f73ef03b7fb3c42dd002c4a2786ed1919082b03d8 | flipstone/haskell-for-beginners | 1_making_change.hs | -- Implement a program to make change. Your
-- program should accept a list of numbers
on stdin . The first number indicates the
-- amount of money to change, the rest
-- indicate the denominations of coin to
-- make change into.
--
-- The program should print out a list of
-- coins in the denominations given that to... | null | https://raw.githubusercontent.com/flipstone/haskell-for-beginners/e586a1f3ef08f21d5181171fe7a7b27057391f0b/answers/chapter_10/1_making_change.hs | haskell | Implement a program to make change. Your
program should accept a list of numbers
amount of money to change, the rest
indicate the denominations of coin to
make change into.
The program should print out a list of
coins in the denominations given that totals
up to the amount of money being changed.
If there is ... | on stdin . The first number indicates the
import Data.List (sort, foldl', intercalate)
main = interact makeChange
data Coin = Coin Int deriving (Show, Eq, Ord)
data Unchanged = Unchanged Int deriving Show
data Change = Change Unchanged [Coin] deriving Show
readInt :: String -> Int
readInt = read
makeChange :: Str... |
05873d6e6167d854552b254d9310d54dd8bc5e09344b93368a994a1cadc03bda | metaocaml/ber-metaocaml | pr8769.ml | TEST
modules = " nocrypto.mli fortuna.ml rng.ml "
* setup - ocamlc.byte - build - env
* * ocamlc.byte
module = " nocrypto.mli "
* * ocamlc.byte
flags = " -for - pack Nocrypto "
module = " fortuna.ml "
* * ocamlc.byte
flags = " -for - pack Nocrypto "
module = " rng.ml "
* * ocamlc.byte
program... | null | https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/regression/pr8769/pr8769.ml | ocaml | TEST
modules = " nocrypto.mli fortuna.ml rng.ml "
* setup - ocamlc.byte - build - env
* * ocamlc.byte
module = " nocrypto.mli "
* * ocamlc.byte
flags = " -for - pack Nocrypto "
module = " fortuna.ml "
* * ocamlc.byte
flags = " -for - pack Nocrypto "
module = " rng.ml "
* * ocamlc.byte
program... | |
7f4dcbb92f69776fe446710c52c9ff85851b5c0b223a060906679708272e3f85 | sneeuwballen/zipperposition | Proof.ml |
This file is free software , part of Zipperposition . See file " license " for more details .
(** {1 Manipulate proofs} *)
module Loc = ParseLocation
module T = TypedSTerm
module F = T.Form
module UA = UntypedAST
module Fmt = CCFormat
type term = TypedSTerm.t
type form = TypedSTerm.t
type inst_subst = (term, term... | null | https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/core/Proof.ml | ocaml | * {1 Manipulate proofs}
* trivial, or trivial within theories
* definition
* following from the def of ID
a statement in a file
unique ID of the class
* existential type for result of an inference
* A proof step, without the conclusion
unique ID
distance to goal
additional info
* Proof Step with its con... |
This file is free software , part of Zipperposition . See file " license " for more details .
module Loc = ParseLocation
module T = TypedSTerm
module F = T.Form
module UA = UntypedAST
module Fmt = CCFormat
type term = TypedSTerm.t
type form = TypedSTerm.t
type inst_subst = (term, term) Var.Subst.t
type 'a sequenc... |
5b17b91414905183770c173263c706019f8056c5e2e998fc070df8f46a0564e4 | clojure-interop/java-jdk | SpinnerUI.clj | (ns javax.swing.plaf.SpinnerUI
"Pluggable look and feel interface for JSpinner"
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf SpinnerUI]))
(defn ->spinner-ui
"Constructor."
(^SpinnerUI []
(new SpinnerUI )))
| null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/SpinnerUI.clj | clojure | (ns javax.swing.plaf.SpinnerUI
"Pluggable look and feel interface for JSpinner"
(:refer-clojure :only [require comment defn ->])
(:import [javax.swing.plaf SpinnerUI]))
(defn ->spinner-ui
"Constructor."
(^SpinnerUI []
(new SpinnerUI )))
| |
764325a00b8b477c8817dfbc07a60ab70e9b62c8ee6ac05b5550d3256504bd00 | mejgun/haskell-tdlib | GetSavedOrderInfo.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.GetSavedOrderInfo where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
Returns saved order information . Returns a 404 error if there is no saved order information
data GetSavedOrderInfo = GetSavedOrde... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/GetSavedOrderInfo.hs | haskell | # LANGUAGE OverloadedStrings #
|
| |
module TD.Query.GetSavedOrderInfo where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
Returns saved order information . Returns a 404 error if there is no saved order information
data GetSavedOrderInfo = GetSavedOrderInfo
{
}
deriving (Eq)
instance Show ... |
d61cb891ffa653c7aecec95060c710093af0bb5390ade84c7d7b7998eb8dacbb | lispcord/lispcord | package.lisp |
(defpackage :lispcord.constants
(:use #:cl #:lispcord.util)
(:export #:+os+
#:+lib+
#:+base-url+
#:+api-suffix+
#:+gw-rate-limit+
#:+gw-rate-limit-connection+
#:+gw-rate-limit-game-status+))
(defpackage :lispcord.ratelimits
(:use #:cl #:lispcord.... | null | https://raw.githubusercontent.com/lispcord/lispcord/448190cc503a0d7e59bdc0ffddb2e9dba0a706af/src/package.lisp | lisp |
(defpackage :lispcord.constants
(:use #:cl #:lispcord.util)
(:export #:+os+
#:+lib+
#:+base-url+
#:+api-suffix+
#:+gw-rate-limit+
#:+gw-rate-limit-connection+
#:+gw-rate-limit-game-status+))
(defpackage :lispcord.ratelimits
(:use #:cl #:lispcord.... | |
4dedeebcfecd3b6350890d4e5d02cd074631f637dd1679773cedd3f2a7980289 | coingaming/lnd-client | Chainnotifier.hs | This file was auto - generated from chainrpc / chainnotifier.proto by the proto - lens - protoc program .
# LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHash , NoImpli... | null | https://raw.githubusercontent.com/coingaming/lnd-client/98974c514cd82253dbd6111bafbbb2bbff6bffe2/src/Proto/Chainrpc/Chainnotifier.hs | haskell | # OPTIONS_GHC -Wno-unused-imports#
# OPTIONS_GHC -Wno-duplicate-exports#
| Fields :
| This file was auto - generated from chainrpc / chainnotifier.proto by the proto - lens - protoc program .
# LANGUAGE ScopedTypeVariables , DataKinds , TypeFamilies , UndecidableInstances , GeneralizedNewtypeDeriving , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , PatternSynonyms , MagicHash , NoImpli... |
c9732b4017b8abcdddf11e773c3dd20cba13b37f6124dbf266a771c1eb8c3424 | runtimeverification/haskell-backend | Registry.hs | |
Copyright : ( c ) Runtime Verification , 2018 - 2021
License : BSD-3 - Clause
Copyright : (c) Runtime Verification, 2018-2021
License : BSD-3-Clause
-}
module Kore.Equation.Registry (
extractEquations,
partitionEquations,
PartitionedEquations (..),
) where
import Control.Error (
... | null | https://raw.githubusercontent.com/runtimeverification/haskell-backend/5b558293cce9d8c5813560a645380863b12b1990/kore/src/Kore/Equation/Registry.hs | haskell | | Create a mapping from symbol identifiers to their defining axioms.
extraction of their axioms. | |
Copyright : ( c ) Runtime Verification , 2018 - 2021
License : BSD-3 - Clause
Copyright : (c) Runtime Verification, 2018-2021
License : BSD-3-Clause
-}
module Kore.Equation.Registry (
extractEquations,
partitionEquations,
PartitionedEquations (..),
) where
import Control.Error (
... |
311d66e06d213ffbc9e475dab9a26090fb10c5ca1569a51a42ff6c73688d0aa6 | DKurilo/hackerrank | solution.hs | # LANGUAGE OverloadedStrings , UnicodeSyntax #
module Main where
import Prelude.Unicode
import Control.Monad
import qualified Data.ByteString.Char8 as BSC
import Data.Array
import Debug.Trace
import System.IO
data Point = P (Array Int Int) (Array Int Int) -- left right
buildM ∷ Int → [Int] → Array Int Point
buildM ... | null | https://raw.githubusercontent.com/DKurilo/hackerrank/37063170567b397b25a2b7123bc9c1299d34814a/stocks-prediction/solution.hs | haskell | left right | # LANGUAGE OverloadedStrings , UnicodeSyntax #
module Main where
import Prelude.Unicode
import Control.Monad
import qualified Data.ByteString.Char8 as BSC
import Data.Array
import Debug.Trace
import System.IO
buildM ∷ Int → [Int] → Array Int Point
buildM n as = listArray (0, (n-1)) $ buildA as []
buildA ∷ [Int] → ... |
66ae785e1c524318973f534046ab9aa0e0343ef2d5d6cff9247d1b3723fc100d | aws-beam/aws-erlang | aws_wellarchitected.erl | %% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
See -beam/aws-codegen for more details .
%% @doc Well-Architected Tool
%%
%% This is the Well-Architected Tool API Reference.
%%
%% The WA Tool API provides programmatic access to the Well-Architected Tool
in the Amazon Web Services Management Console . For information... | null | https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_wellarchitected.erl | erlang | WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
@doc Well-Architected Tool
This is the Well-Architected Tool API Reference.
The WA Tool API provides programmatic access to the Well-Architected Tool
Well-Architected Tool, see the Well-Architected Tool User Guide.
=======================================================... | See -beam/aws-codegen for more details .
in the Amazon Web Services Management Console . For information about the
-module(aws_wellarchitected).
-export([associate_lenses/3,
associate_lenses/4,
create_lens_share/3,
create_lens_share/4,
create_lens_version/3,
create_len... |
3669e862dcee4fbda9773897d6660b73b7a3e6ca94e2ec959e7e047e6f4d719b | ConsumerDataStandardsAustralia/validation-prototype | Main.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Web.ConsumerData.Au.LambdaBank.Main where
{--
- Config parsing and stuff will happen here eventually. Pretty boring for now.
--}
import Web.ConsumerData.Au.Api.Types
import Text.URI (Authority (..))
import Text.URI.QQ ... | null | https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-lambdabank/src/Web/ConsumerData/Au/LambdaBank/Main.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE QuasiQuotes #
-
- Config parsing and stuff will happen here eventually. Pretty boring for now.
- | module Web.ConsumerData.Au.LambdaBank.Main where
import Web.ConsumerData.Au.Api.Types
import Text.URI (Authority (..))
import Text.URI.QQ (host, scheme)
import Web.ConsumerData.Au.LambdaBank.Server
fakeQualifier :: Int -> LinkQualifier
fakeQualifier port = LinkQualifier
[scheme|http|... |
bb481165023b182006b15200abcf07d2d6a8abeb628266ac98b35bf9d4f70f3a | GillianPlatform/Gillian | WProg.mli | type t = {
context : WFun.t list;
predicates : WPred.t list;
lemmas : WLemma.t list;
}
val get_context : t -> WFun.t list
val get_by_id :
?fname:string option ->
t ->
int option ->
[> `None
| `Return of WExpr.t
| `WExpr of WExpr.t
| `WFun of WFun.t
| `WLAssert of WLAssert.t
| `WLCmd of WLCmd.t... | null | https://raw.githubusercontent.com/GillianPlatform/Gillian/42d0e2aae9fa6b0992a5bc300525cc8d360c3c96/wisl/lib/syntax/WProg.mli | ocaml | type t = {
context : WFun.t list;
predicates : WPred.t list;
lemmas : WLemma.t list;
}
val get_context : t -> WFun.t list
val get_by_id :
?fname:string option ->
t ->
int option ->
[> `None
| `Return of WExpr.t
| `WExpr of WExpr.t
| `WFun of WFun.t
| `WLAssert of WLAssert.t
| `WLCmd of WLCmd.t... | |
da8c9c6ffc59148b2ebdcdca6af5cdfe26f5086476fb7cbdb8814a9b190b7a96 | cmeiklejohn/riak_pg | riak_pg.erl | %% -------------------------------------------------------------------
%%
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 with the License . You may obtain
%% a copy of the ... | null | https://raw.githubusercontent.com/cmeiklejohn/riak_pg/32d46bc1909144cea93b8b98a652a00f6520ffdb/src/riak_pg.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 ) 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
@author < >
2013 .
... |
5e678384a976175b925e49b6919ed592f780fac0c4788c806cdef7a70beed914 | openmusic-project/OMChroma | add-4.lisp | ;******************************************************************
; CLASS ADD-4
;******************************************************************
(in-package :om)
; LISP-DEFINED CLASSES SHOULD RESIDE IN THE LIBRARY'S PACKAGE AND
; NOT IN THE USER PACKAGE, WHICH CONTAINS ALL THE CLASSES
; GRAPHICALLY DE... | null | https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/om6/cs-events/csound/classes/Basic/add-4.lisp | lisp | ******************************************************************
CLASS ADD-4
******************************************************************
LISP-DEFINED CLASSES SHOULD RESIDE IN THE LIBRARY'S PACKAGE AND
NOT IN THE USER PACKAGE, WHICH CONTAINS ALL THE CLASSES
GRAPHICALLY DEFINED
INHERIT FROM CS-EV... |
(in-package :om)
(defclass! add-4
(
THE METHOD BELOW TRANSFORMS THEM INTO GLOBAL SLOTS ( " SHOW " UNCHEKED )
( source-code :initform
(load-buffer-textfile
(get-orc-source (get-orc "add-4"))
'textfile "append")
:allocation :class
... |
45f5b902cabbd3887cf93e4f794150464dc638567512d244ebfdfb057a7c4592 | tsloughter/kuberl | kuberl_v2beta2_metric_identifier.erl | -module(kuberl_v2beta2_metric_identifier).
-export([encode/1]).
-export_type([kuberl_v2beta2_metric_identifier/0]).
-type kuberl_v2beta2_metric_identifier() ::
#{ 'name' := binary(),
'selector' => kuberl_v1_label_selector:kuberl_v1_label_selector()
}.
encode(#{ 'name' := Name,
'selector' :... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v2beta2_metric_identifier.erl | erlang | -module(kuberl_v2beta2_metric_identifier).
-export([encode/1]).
-export_type([kuberl_v2beta2_metric_identifier/0]).
-type kuberl_v2beta2_metric_identifier() ::
#{ 'name' := binary(),
'selector' => kuberl_v1_label_selector:kuberl_v1_label_selector()
}.
encode(#{ 'name' := Name,
'selector' :... | |
c261937a6a1bb28fdf4ab9dc2c501fd552a35cff413ae2ccc821818946f88a30 | gcv/appengine-magic | mail.clj | (ns test.appengine-magic.services.mail
(:use clojure.test)
(:require [appengine-magic.services.mail :as mail]
[appengine-magic.testing :as ae-testing]))
(use-fixtures :each (ae-testing/local-services :all))
(deftest basics
(let [msg (mail/make-message :to ""
:from ""... | null | https://raw.githubusercontent.com/gcv/appengine-magic/facc9fe4945b3becd772d6b053844e572dcc1c73/test/test/appengine_magic/services/mail.clj | clojure | (ns test.appengine-magic.services.mail
(:use clojure.test)
(:require [appengine-magic.services.mail :as mail]
[appengine-magic.testing :as ae-testing]))
(use-fixtures :each (ae-testing/local-services :all))
(deftest basics
(let [msg (mail/make-message :to ""
:from ""... | |
4c9be7fdc9fd718e9d925e13d924f4eb8aef362db439924d29c12d1338475fb5 | alsonkemp/turbinado | HTML.hs | module Turbinado.View.HTML where
import Control.Monad
import Turbinado.View.Monad
import qualified Text.XHtml.Strict as X
type VHtml = View X.Html
class VHTML a where
toVHtml :: a -> VHtml
toVHtmlFromList :: [a] -> VHtml
toVHtmlFromList xs = do xs' <- mapM toVHtml xs
return $ X.concat... | null | https://raw.githubusercontent.com/alsonkemp/turbinado/da2ba7c3443ddf6a51d1ec5b05cb45a85efc0809/Turbinado/View/HTML.hs | haskell |
* Html primitives and basic combinators
| Put something inside an HTML element.
^ Parent
^ Child
| Create a piece of HTML which is the concatenation
| An empty piece of HTML.
| Constructs an element with a custom name.
^ Element name
^ Element contents
| Constructs an element with a custom name, and
wit... | module Turbinado.View.HTML where
import Control.Monad
import Turbinado.View.Monad
import qualified Text.XHtml.Strict as X
type VHtml = View X.Html
class VHTML a where
toVHtml :: a -> VHtml
toVHtmlFromList :: [a] -> VHtml
toVHtmlFromList xs = do xs' <- mapM toVHtml xs
return $ X.concat... |
fa5d4a5c0aae54fcfd9d14d8fe080598b2d32fb24556db5791118a2b02bf2067 | Mallku2/lua-redex-model | phrases_constructors_tests.rkt | #lang racket
(require redex
"phrases_constructors.rkt"
rackunit
rackunit/text-ui)
(define-test-suite phrases-constructors-test-suite
; statements
(check-equal? (concrete-grammar-s (skip))
(term \;))
(check-equal? (concrete-grammar-s (break))
(term break))
... | null | https://raw.githubusercontent.com/Mallku2/lua-redex-model/13a1b8cacbdc72a1b5cb1a1f140f21cc974d71c3/Desugar/phrases_constructors_tests.rkt | racket | statements
))
else break end)))
end)))
end)))
expressions
end))) | #lang racket
(require redex
"phrases_constructors.rkt"
rackunit
rackunit/text-ui)
(define-test-suite phrases-constructors-test-suite
(check-equal? (concrete-grammar-s (skip))
(check-equal? (concrete-grammar-s (break))
(term break))
(check-equal? (concrete-grammar-s (re... |
da7f878f66b31b1c0b7ba214ef9c8662af08e70d6e28aebcc50b437ce4de142f | abridgewater/nq-clim | manageable-frame-mixin.lisp | ;;;
nq - clim / frame / manageable - frame - mixin
;;;
;;; Application-frame side support for frame management.
;;;
(cl:defpackage :nq-clim/frame/manageable-frame-mixin
(:use :cl
:nq-clim/frame/application-frame
:nq-clim/frame/manageable-frame-functions)
(:export
"MANAGEABLE-FRAME-MIXIN"))
(cl... | null | https://raw.githubusercontent.com/abridgewater/nq-clim/11d339fd0ac77b6d624fc5537b170294a191a3de/frame/manageable-frame-mixin.lisp | lisp |
Application-frame side support for frame management.
| nq - clim / frame / manageable - frame - mixin
(cl:defpackage :nq-clim/frame/manageable-frame-mixin
(:use :cl
:nq-clim/frame/application-frame
:nq-clim/frame/manageable-frame-functions)
(:export
"MANAGEABLE-FRAME-MIXIN"))
(cl:in-package :nq-clim/frame/manageable-frame-mixin)
(defclass managea... |
e2e884ae6a67358ff0d750c44a2a72d9f1c02f78ca4dbbe217af023d7a28c14a | modular-macros/ocaml-macros | w50.ml | module A : sig end = struct
module L = List
module X1 = struct end
module Y1 = X1
end
| null | https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/warnings/w50.ml | ocaml | module A : sig end = struct
module L = List
module X1 = struct end
module Y1 = X1
end
| |
f3bb83bd7adae4764e5b0b183c332ee3bc002870be250112af9e65207b475c55 | riverford/compound | one_to_many.cljc | (ns compound.secondary-indexes.one-to-many
(:require [compound.custom-key :as cu]
[compound.secondary-indexes :as csi]
[clojure.spec.alpha :as s]))
(s/def ::key ::csi/key)
(s/def ::custom-key ::csi/custom-key)
(s/def ::id any?)
(defmethod csi/spec :compound/one-to-many
[_]
(s/keys :req-u... | null | https://raw.githubusercontent.com/riverford/compound/cab3f3cbdca041b70fdc9c02f474c0b7c8226d73/src/compound/secondary_indexes/one_to_many.cljc | clojure | (ns compound.secondary-indexes.one-to-many
(:require [compound.custom-key :as cu]
[compound.secondary-indexes :as csi]
[clojure.spec.alpha :as s]))
(s/def ::key ::csi/key)
(s/def ::custom-key ::csi/custom-key)
(s/def ::id any?)
(defmethod csi/spec :compound/one-to-many
[_]
(s/keys :req-u... | |
8af9023485d70be660c32de138094060e6da1336c541d5e3800efcfe8fe7b782 | TrustInSoft/tis-interpreter | gui_types.ml | Modified by TrustInSoft
(**************************************************************************)
(* *)
This file is part of Frama - C.
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/value/gui_files/gui_types.ml | ocaml | ************************************************************************
alternatives)
... | Modified by TrustInSoft
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Softwa... |
a3edd627bfea8e122aaf2ed1354e4147ef6cbe89eb8c53dc9e6c94c737e06f99 | stumpwm/stumpwm-contrib | package.lisp | package.lisp
(defpackage #:mpd
(:use #:cl :stumpwm))
| null | https://raw.githubusercontent.com/stumpwm/stumpwm-contrib/a7dc1c663d04e6c73a4772c8a6ad56a34381096a/minor-mode/mpd/package.lisp | lisp | package.lisp
(defpackage #:mpd
(:use #:cl :stumpwm))
| |
96d018e99de50878a4c1f2754a3ace8d53376335c21f5aeb41045f2f58bfc0f6 | basho/riak_kv | riak_kv_pb_counter.erl | %% -------------------------------------------------------------------
%%
%% riak_kv_pb_counter: Expose counters over Protocol Buffers
%%
Copyright ( c ) 2013 Basho Technologies , Inc. All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use ... | null | https://raw.githubusercontent.com/basho/riak_kv/aeef1591704d32230b773d952a2f1543cbfa1889/src/riak_kv_pb_counter.erl | erlang | -------------------------------------------------------------------
riak_kv_pb_counter: Expose counters over Protocol Buffers
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. Se... | Copyright ( c ) 2013 Basho Technologies , Inc. 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
@doc ... |
52ecad0972d378da811263029494a9009f1b6ddefeec74bd932d2853681bdb91 | GaloisInc/ivory | Type.hs | # LANGUAGE DeriveFunctor #
# LANGUAGE TemplateHaskell #
module Ivory.Language.Syntax.Type where
import Language.Haskell.TH.Lift (deriveLiftMany)
-- Types -----------------------------------------------------------------------
data Type
= TyVoid -- ^ Unit type
| TyInt IntSize -- ^ Signed ints
... | null | https://raw.githubusercontent.com/GaloisInc/ivory/53a0795b4fbeb0b7da0f6cdaccdde18849a78cd6/ivory/src/Ivory/Language/Syntax/Type.hs | haskell | Types -----------------------------------------------------------------------
^ Unit type
^ Signed ints
^ Unsigned ints
^ Indices with an upper bound
^ Characters
^ Floats
^ Doubles
^ Procedures
^ References
^ Constant References
^ Pointers
^ Arrays
^ Structures
^ C Arrays
^ Opaque type---not implementa... | # LANGUAGE DeriveFunctor #
# LANGUAGE TemplateHaskell #
module Ivory.Language.Syntax.Type where
import Language.Haskell.TH.Lift (deriveLiftMany)
data Type
^ Booleans
^
deriving (Show, Eq, Ord)
data IntSize
= Int8
| Int16
| Int32
| Int64
deriving (Show,Eq,Ord)
data WordSize
= Word8
| Word... |
ca1d98e9630738f1069a3edf374fdfda23f1b6bc44e38411f683fc49683f0c53 | ocaml/odoc | b.mli | * Module B depends on A and Lib .
type t = Lib.A.t
| null | https://raw.githubusercontent.com/ocaml/odoc/ed60dca7bdc7670953433ba60f63faf008d20a71/test/integration/depends.t/b.mli | ocaml | * Module B depends on A and Lib .
type t = Lib.A.t
| |
267b0ef216b1ced1bd6acfb5f5299756a64eb44d4cfaf77e3b46cc09fed5b68c | stephenpascoe/hs-arrow | UInt8DataType.hs |
|
Copyright : , and
License : LGPL-2.1
Maintainer : ( )
/No description available in the introspection data./
Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte
License : LGPL-2.1
Maintainer : Iñaki García Etxebarria ()
/No description available in the introspection... | null | https://raw.githubusercontent.com/stephenpascoe/hs-arrow/86c7c452a8626b1d69a3cffd277078d455823271/gi-arrow/GI/Arrow/Objects/UInt8DataType.hs | haskell | * Exported types
* Methods
# SOURCE #
# SOURCE #
# SOURCE #
# SOURCE #
| Memory-managed wrapper type.
# OVERLAPPABLE #
method UInt8DataType::new
method type : Constructor
Lengths : []
returnType : Just (TInterface (Name {namespace = "Arrow", name = "UInt8DataType"}))
throws : False
Skip return : False
|
/No d... |
|
Copyright : , and
License : LGPL-2.1
Maintainer : ( )
/No description available in the introspection data./
Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte
License : LGPL-2.1
Maintainer : Iñaki García Etxebarria ()
/No description available in the introspection... |
ccfc2a0d005923d688a46e6db9d7ee93fff41441f2d50165a22a35e3483751a4 | headwinds/reagent-reframe-material-ui | state.cljs | (ns devtools.formatters.state)
; - state management --------------------------------------------------------------------------------------------------------
;
; we have to maintain some state:
; a) to prevent infinite recursion in some pathological cases (-devtools/issues/2)
; b) to keep track of printed objects to vi... | null | https://raw.githubusercontent.com/headwinds/reagent-reframe-material-ui/8a6fba82a026cfedca38491becac85751be9a9d4/resources/public/js/out/devtools/formatters/state.cljs | clojure | - state management --------------------------------------------------------------------------------------------------------
we have to maintain some state:
a) to prevent infinite recursion in some pathological cases (-devtools/issues/2)
b) to keep track of printed objects to visually signal circular data structure... | (ns devtools.formatters.state)
in depth - first traversal order . See alt - printer - impl where we re - bind * current - config * for each traversal level .
by DevTools UI ( when user clicks a disclosure triangle ) .
(def ^:dynamic *current-state* nil)
(defn valid-current-state? []
(some? *current-state*))
(... |
35488525d9336ba55fe12444106a112c29744dad1348f1867f9aaed49d53efb5 | aws-beam/aws-erlang | aws_mwaa.erl | %% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
See -beam/aws-codegen for more details .
@doc Amazon Managed Workflows for Apache Airflow
%%
This section contains the Amazon Managed Workflows for Apache Airflow
%% (MWAA) API reference documentation.
%%
For more information , see What Is Amazon MWAA ? .
%%
%% End... | null | https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_mwaa.erl | erlang | WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
(MWAA) API reference documentation.
Endpoints
<ul> <li> `api.airflow.{region}.amazonaws.com' - This endpoint is used
for environment management.
<ul> <li> CreateEnvironment
</li> <li> DeleteEnvironment
</li> <li> GetEnvironment
</li> <li> ListEnvironments
</... | See -beam/aws-codegen for more details .
@doc Amazon Managed Workflows for Apache Airflow
This section contains the Amazon Managed Workflows for Apache Airflow
For more information , see What Is Amazon MWAA ? .
< /li > < li > TagResource
< /li > < li > UntagResource
< ul > < li > CreateCliToken
< /li >... |
15f20d022cab9a181c651a823b0f8b37f49778f44bd9400f9eb0b2365ab19d98 | melhadad/fuf | icon3.lisp | ;;; -*- Mode:Lisp; Syntax:Common-Lisp; Package:FUG5 -*-
;;; ------------------------------------------------------------
;;; File : ICON3.LISP
Description : Simple inputs to test
Author :
Created : 27 - Nov-88
;;; Modified : 09-Nov-90
;;; Language : Common Lisp
Package : FUG5
;;;... | null | https://raw.githubusercontent.com/melhadad/fuf/57bd0e31afc6aaa03b85f45f4c7195af701508b8/examples/icon3.lisp | lisp | -*- Mode:Lisp; Syntax:Common-Lisp; Package:FUG5 -*-
------------------------------------------------------------
File : ICON3.LISP
Modified : 09-Nov-90
Language : Common Lisp
------------------------------------------------------------ | Description : Simple inputs to test
Author :
Created : 27 - Nov-88
Package : FUG5
(in-package "FUG5")
(defun isetup-con3 ()
(clear-tests)
(def-test a1
"John takes a book from Mary but John is honest."
((cat discourse-segment)
(subordinate
((directive
((th ~(Joh... |
74bd3b80630ffbf6b83ab59b5c2a48c0660f3fd3d0ef6cfb958697d26275c6ce | frodwith/cl-urbit | convert.lisp | (defpackage #:urbit/tests/convert
(:use #:cl #:fiveam #:named-readtables #:urbit/tests
#:urbit/nock/cord #:urbit/hoon/tape
#:urbit/hoon/syntax #:urbit/nock/equality))
(in-package #:urbit/tests/convert)
(in-readtable hoon)
(def-suite convert-tests
:description "test conversions between lis... | null | https://raw.githubusercontent.com/frodwith/cl-urbit/65af924ee58c4c974056f369158bbc1401308fea/t/convert.lisp | lisp | nulls aren't preserved by cords | (defpackage #:urbit/tests/convert
(:use #:cl #:fiveam #:named-readtables #:urbit/tests
#:urbit/nock/cord #:urbit/hoon/tape
#:urbit/hoon/syntax #:urbit/nock/equality))
(in-package #:urbit/tests/convert)
(in-readtable hoon)
(def-suite convert-tests
:description "test conversions between lis... |
dd7bb44d0f86b332592199d72373a43929c36fbcb6c44d6187e9e87d0c217471 | oden-lang/oden | Type.hs | | A representation of a subset of the Go Programming Language type system ,
based on . Types not needed in are excluded .
module Oden.Go.Type where
import Oden.Go.Identifier
data StructField = StructField Identifier Type
deriving (Show, Eq)
data Returns = Returns [Type]
deriving (... | null | https://raw.githubusercontent.com/oden-lang/oden/10c99b59c8b77c4db51ade9a4d8f9573db7f4d14/src/Oden/Go/Type.hs | haskell | Temporary solution for the Importer. | | A representation of a subset of the Go Programming Language type system ,
based on . Types not needed in are excluded .
module Oden.Go.Type where
import Oden.Go.Identifier
data StructField = StructField Identifier Type
deriving (Show, Eq)
data Returns = Returns [Type]
deriving (... |
86cf0596f20dde98db86656736ce4edadff816681ef25583fb42d9c151d83001 | chrovis/cljam | sequence.clj | (ns cljam.io.sequence
"Functions to read and write formats representing sequences such as FASTA and
TwoBit."
(:refer-clojure :exclude [indexed?])
(:require [cljam.io.fasta.core :as fa-core]
[cljam.io.fasta.writer :as fa-writer]
[cljam.io.protocols :as protocols]
[cljam.io.two... | null | https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/src/cljam/io/sequence.clj | clojure | Reading
-------
Writing
------- | (ns cljam.io.sequence
"Functions to read and write formats representing sequences such as FASTA and
TwoBit."
(:refer-clojure :exclude [indexed?])
(:require [cljam.io.fasta.core :as fa-core]
[cljam.io.fasta.writer :as fa-writer]
[cljam.io.protocols :as protocols]
[cljam.io.two... |
9fdd8fbb202122a3efc6e3771c8e7889514596427f9290ffeae40bccdfd6c789 | ocurrent/ocaml-ci | router.mli | val create :
github:Controller.Backend.t option ->
gitlab:Controller.Backend.t option ->
Dream.handler
| null | https://raw.githubusercontent.com/ocurrent/ocaml-ci/ce2e992f069687023b8170728683520de4badbd5/web-ui/router.mli | ocaml | val create :
github:Controller.Backend.t option ->
gitlab:Controller.Backend.t option ->
Dream.handler
| |
d854506db61737d1c61b8d39663f7e01b9ab2912084b9aa33f82918c427c4966 | AngelitoJ/Hydra-DHCP | pool.erl | Hydra DHCP Server project
( C ) 2014
-module(pool).
-export([new/0, new/1, get_next/1, remove_pid/2]).
%% make a new pool of Pids
new() -> new([]).
new([]) -> empty;
new(Pids) when is_list(Pids) -> {[],Pids}.
POOL : get next Pid in round - robin fashion or noth... | null | https://raw.githubusercontent.com/AngelitoJ/Hydra-DHCP/b1d38d791926d5a7ab940b567c00c780e1bb43af/src/utils/pool.erl | erlang | make a new pool of Pids
Recycle the used list and try again | Hydra DHCP Server project
( C ) 2014
-module(pool).
-export([new/0, new/1, get_next/1, remove_pid/2]).
new() -> new([]).
new([]) -> empty;
new(Pids) when is_list(Pids) -> {[],Pids}.
POOL : get next Pid in round - robin fashion or nothing if no available Pids
ge... |
09a4144ee978203d7482c3abc1f60608fdec82768027c57263a5c794fcb16222 | IagoAbal/eba | gcc.ml | open Batteries
let rec filter_cpp_args = function
| []
-> []
| (a::args)
when String.(starts_with a "-D"
|| starts_with a "-U"
|| starts_with a "-I")
-> a :: filter_cpp_args args
| ("-include" as a1)::a2::args
-> a1 :: a2 :: filter_cpp_args args
| __skip::args
-> filter_cpp_args args
le... | null | https://raw.githubusercontent.com/IagoAbal/eba/81ab71efff1ea407a7b5a98f7e8fd8a9d8d60815/src/gcc.ml | ocaml | should use Fpath.of_string
should check for failure
should check for failure | open Batteries
let rec filter_cpp_args = function
| []
-> []
| (a::args)
when String.(starts_with a "-D"
|| starts_with a "-U"
|| starts_with a "-I")
-> a :: filter_cpp_args args
| ("-include" as a1)::a2::args
-> a1 :: a2 :: filter_cpp_args args
| __skip::args
-> filter_cpp_args args
le... |
62003c7152a144c6c1d8ee471235ab200df1a59a1c0621b56757d8d04991ad9a | marigold-dev/deku | network_protocol.mli | open Deku_crypto
open Deku_concepts
exception Invalid_handshake
exception Invalid_message_size
module Connection : sig
type connection
type t = connection
val owner : connection -> Key.t
val read : connection -> Network_message.t
val write : connection -> Network_message.t -> unit
end
module Client : sig
... | null | https://raw.githubusercontent.com/marigold-dev/deku/21ec2bf05ce688c5b6012be16545175e75403f06/deku-p/src/core/network/network_protocol.mli | ocaml | open Deku_crypto
open Deku_concepts
exception Invalid_handshake
exception Invalid_message_size
module Connection : sig
type connection
type t = connection
val owner : connection -> Key.t
val read : connection -> Network_message.t
val write : connection -> Network_message.t -> unit
end
module Client : sig
... | |
531cc1bd04c61d2b0b6f8c515f312a01d9b304825064ce4e1c1291ea14ed3bd7 | marcoheisig/sealable-metaobjects | domain.lisp | (in-package #:sealable-metaobjects)
(defclass domain ()
((%specializers
:initform (required-argument :specializers)
:initarg :specializers
:reader domain-specializers)
(%arity
:initform (required-argument :arity)
:initarg :arity
:reader domain-arity)))
(defmethod print-object ((domain dom... | null | https://raw.githubusercontent.com/marcoheisig/sealable-metaobjects/e09ec97252e0844528f61abdc0c7ee256875f8ee/code/domain.lisp | lisp | (in-package #:sealable-metaobjects)
(defclass domain ()
((%specializers
:initform (required-argument :specializers)
:initarg :specializers
:reader domain-specializers)
(%arity
:initform (required-argument :arity)
:initarg :arity
:reader domain-arity)))
(defmethod print-object ((domain dom... | |
a37e62f1056db7ae650b66d0146ff8291679a27db91e36b661b0293ecbccd1f8 | kyleburton/sandbox | numbers.clj | (ns scratchpad.numbers)
(comment
(loop [arg 9
ii 0
max 99]
(cond
(> ii max)
:done
:otherwise
(do
(printf "%s * %s = %s\n" arg ii (* arg ii))
(if (= 657 (* arg ii))
(printf "LAUNCHING MISSILE TO RUSSIA!!!\n"))
(recur arg (inc ii) max)... | null | https://raw.githubusercontent.com/kyleburton/sandbox/cccbcc9a97026336691063a0a7eb59293a35c31a/examples/clojure/cider-scratchpad/src/scratchpad/numbers.clj | clojure | (ns scratchpad.numbers)
(comment
(loop [arg 9
ii 0
max 99]
(cond
(> ii max)
:done
:otherwise
(do
(printf "%s * %s = %s\n" arg ii (* arg ii))
(if (= 657 (* arg ii))
(printf "LAUNCHING MISSILE TO RUSSIA!!!\n"))
(recur arg (inc ii) max)... | |
793ed7c559a0beb0c4649b44bbc5ec64652954d6bcef08dbc5369f0f740fa4c3 | tonyrog/can | can_tp.erl | @author < >
( C ) 2020 ,
%%% @doc
%%% Implement simple ISO-TP client
%%% @end
Created : 9 Jun 2020 by < >
-module(can_tp).
-export([read/2]).
-include("../include/can.hrl").
-define(SINGLE, 0).
-define(FIRST, 1).
-define(NEXT, 2).
-define(FLOW, 3).
-define(CONTINUE, 0).
-define(WAIT, 1... | null | https://raw.githubusercontent.com/tonyrog/can/003e23c1a067657b010199a6b86c7cc49046b0b0/src/can_tp.erl | erlang | @doc
Implement simple ISO-TP client
@end
fixme check match ID and ID1!!! depend on broadcast | @author < >
( C ) 2020 ,
Created : 9 Jun 2020 by < >
-module(can_tp).
-export([read/2]).
-include("../include/can.hrl").
-define(SINGLE, 0).
-define(FIRST, 1).
-define(NEXT, 2).
-define(FLOW, 3).
-define(CONTINUE, 0).
-define(WAIT, 1).
-define(ABORT, 2).
receive
Frame = #can_fram... |
4e227cb8bebe5cd8621e33d11c1645df9af9a3b3d56a0c6cf6cfe2750c4efa67 | michaelklishin/neocons | labels.clj | Copyright ( c ) 2011 - 2015 , , and The ClojureWerkz
Team
;;
;; The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 ( -1.0.php )
;; which can be found in the file epl-v10.html at the root of this distribution.
;; By using this software in any fashion, you are agreei... | null | https://raw.githubusercontent.com/michaelklishin/neocons/30f30e95686a01f7a34082600bc1221877c2acbd/src/clojure/clojurewerkz/neocons/rest/labels.clj | clojure |
The use and distribution terms for this software are covered by the
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software. | Copyright ( c ) 2011 - 2015 , , and The ClojureWerkz
Team
Eclipse Public License 1.0 ( -1.0.php )
(ns clojurewerkz.neocons.rest.labels
"Operations on labels (Neo4J 2.0+)"
(:require [clj-http.client :as http]
[cheshire.core :as json]
... |
3f34b9ff871d8b18f5f1e9ebcdaa5159760b9e9c9234e539b24243f05ed042b0 | erlangonrails/devdb | mathlib.erl | 2007 - 2010 fuer Informationstechnik Berlin
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, ... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/src/mathlib.erl | erlang | you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language gov... | 2007 - 2010 fuer Informationstechnik Berlin
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
@author < >
@version $ I d : mathlib.erl 906 2010 - 07 - 23 14:09:20Z schuett $
-module(mathlib).
-author('').
-... |
feb5e12341e9b64f515de351acb0c75fa57eb836493c8f0074867d5f894267c4 | podenv/podenv | TH.hs | {-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ImportQualifiedPost #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE RecordWildCards #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE NoIm... | null | https://raw.githubusercontent.com/podenv/podenv/6964a88e264e060ed8307443a4dbfa13ddf6ff85/src/Podenv/Dhall/TH.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes #
makeLenses does not produce those
| Embed static dhall code
See: -1.40.0/docs/Dhall-TH.html | # LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE ImportQualifiedPost #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -Wno - missing - signatures #
# OPTIONS_GHC -fno - warn - missing... |
55792bbddea0486ad78565a8aa01f8832187d58037b2a750ca68fd6250d970b3 | ekmett/category-extras | CoKleisli.hs | # OPTIONS_GHC -cpp #
-------------------------------------------------------------------------------------------
-- |
-- Module : Control.Arrow.CoKleisli
Copyright : 2008
-- License : BSD3
--
Maintainer : < >
-- Stability : experimental
-- Portability : portable
--
----------------------------------------... | null | https://raw.githubusercontent.com/ekmett/category-extras/f0f3ca38a3dfcb49d39aa2bb5b31b719f2a5b1ae/Control/Arrow/CoKleisli.hs | haskell | -----------------------------------------------------------------------------------------
|
Module : Control.Arrow.CoKleisli
License : BSD3
Stability : experimental
Portability : portable
----------------------------------------------------------------------------------------- | # OPTIONS_GHC -cpp #
Copyright : 2008
Maintainer : < >
module Control.Arrow.CoKleisli
( CoKleisli(..)
) where
import Prelude hiding (id,(.))
import Control.Category
import Control.Comonad
import Control.Arrow
newtype CoKleisli w a b = CoKleisli { runCoKleisli :: w a -> b }
instance Functor (CoKleis... |
8637f41fd41b2bd9f3b46b36f34dadc031e49d773dc977ea484b937b09a24bf0 | camfort/camfort | InferSpec.hs | module Camfort.Specification.Units.Analysis.InferSpec (spec) where
import System.FilePath ((</>))
import Control.Lens
import Test.Hspec hiding (Spec)
import qualified Test.Hspec as Test
import Language.Fortran.Util.ModFile (ModFile, emptyModFiles)
import Camfort.Analysis hiding (describe)
import Camfort.... | null | https://raw.githubusercontent.com/camfort/camfort/3421e85f6fbbcaa6503a266b3fae029a09d2ff24/tests/Camfort/Specification/Units/Analysis/InferSpec.hs | haskell | | Assert that the report of performing units inference on a file is as expected.
| Assert that the report of performing units inference on a file is as expected (with mod files). | module Camfort.Specification.Units.Analysis.InferSpec (spec) where
import System.FilePath ((</>))
import Control.Lens
import Test.Hspec hiding (Spec)
import qualified Test.Hspec as Test
import Language.Fortran.Util.ModFile (ModFile, emptyModFiles)
import Camfort.Analysis hiding (describe)
import Camfort.... |
838c75ceb019edf862ad68bfcbc6b6f5af350fb74ae390261a115afb83353f10 | pink-gorilla/demo-goldly | time.clj | (ns time
(:require
[taoensso.timbre :as log :refer [tracef debug debugf info infof warn error errorf]]
[modular.date :refer [now-str]]
[clojure.core.async :as async :refer [<! <!! >! >!! put! chan go go-loop]]
[modular.ws.core :refer [send! send-all! send-response connected-uids]]))
(defn start-time-pus... | null | https://raw.githubusercontent.com/pink-gorilla/demo-goldly/3266bfe422ced382647c02ffd61831915980d43e/src/time.clj | clojure | (ns time
(:require
[taoensso.timbre :as log :refer [tracef debug debugf info infof warn error errorf]]
[modular.date :refer [now-str]]
[clojure.core.async :as async :refer [<! <!! >! >!! put! chan go go-loop]]
[modular.ws.core :refer [send! send-all! send-response connected-uids]]))
(defn start-time-pus... | |
123b90556365d3ac443f8528421c7cd22c441b92823935c3938c4168a058dccd | racketscript/racketscript | if-body-wcm.rkt | #lang racket
(define (extract-current-continuation-marks key)
(continuation-mark-set->list
(current-continuation-marks)
key))
(define (main)
(with-continuation-mark 'key 'mark-main
(if (add1 0)
(with-continuation-mark 'key 'mark-if
(extract-current-continuation-marks 'key))
#f)))
... | null | https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/wcm/if-body-wcm.rkt | racket | #lang racket
(define (extract-current-continuation-marks key)
(continuation-mark-set->list
(current-continuation-marks)
key))
(define (main)
(with-continuation-mark 'key 'mark-main
(if (add1 0)
(with-continuation-mark 'key 'mark-if
(extract-current-continuation-marks 'key))
#f)))
... | |
400e7f2747f0c9b3fd05ea103503aeba62b874ba8216adc2f61119de3e530ade | manuel-serrano/bigloo | rgc.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / recette / rgc.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/recette/rgc.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*=====================================================================*/
*---------------------------... | * serrano / prgm / project / bigloo / recette / rgc.scm * /
* Author : * /
* Creation : Thu Sep 8 11:03:03 1994 * /
* Last change : We d Apr 18 18:55:04 2012 ( serrano ) * /
* tes... |
d67f3381b1af0a1c525259140a5404d5492d93f317acfb29488e704efc67f599 | guicho271828/alien | relaxation.lisp |
(in-package :alien)
(deftype relaxer ()
"a class of functions that returns a relaxed version of an operator."
`(function (op) op))
(ftype* relaxed-sg (simple-array op) relaxer &optional t (values sg (simple-array op)))
(defun relaxed-sg (ops relaxer &optional (simplify t))
"Relaxes a SG using a relaxer functi... | null | https://raw.githubusercontent.com/guicho271828/alien/6987d034426b8928adf67f498dc6cb06fd7f923e/search/relaxation.lisp | lisp | these definitions should come before solve-common,
otherwise with-parsed-information5 does not know it should be treated as a special variable
these functions are not used. |
(in-package :alien)
(deftype relaxer ()
"a class of functions that returns a relaxed version of an operator."
`(function (op) op))
(ftype* relaxed-sg (simple-array op) relaxer &optional t (values sg (simple-array op)))
(defun relaxed-sg (ops relaxer &optional (simplify t))
"Relaxes a SG using a relaxer functi... |
377a065fd25ef40814e6723c85ad42c5e523cdb9423464e62ac3b08e3754aff6 | rabbitmq/rabbit-stress | rabbit_http_stress.erl | -module(rabbit_http_stress).
-export([main/1]).
-define(OPTIONS, [
{host, $H, "url", {string, "localhost"}, "HTTP host to connect to."},
{port, $P, "port", {integer, 15672}, "Port to connect to."},
{total_requests, $r, "total_requests", {integer, 1000}, "Total number of requests for each target"},
{pa... | null | https://raw.githubusercontent.com/rabbitmq/rabbit-stress/9655c700c62b6271f9d226924d983c14b95ed0c2/src/rabbit_http_stress.erl | erlang | -module(rabbit_http_stress).
-export([main/1]).
-define(OPTIONS, [
{host, $H, "url", {string, "localhost"}, "HTTP host to connect to."},
{port, $P, "port", {integer, 15672}, "Port to connect to."},
{total_requests, $r, "total_requests", {integer, 1000}, "Total number of requests for each target"},
{pa... | |
f38b5fef86bf8cb00873a4405e41babbdbe9a37bf9dead234674afaa3f9dd06f | fluree/db | event_bus.cljc | (ns fluree.db.event-bus
(:require #?(:clj [clojure.core.async :as async]
:cljs [cljs.core.async :as async])
[fluree.db.util.core :as util]))
#?(:clj (set! *warn-on-reflection* true))
;; handles a pub/sub mechanism for pushing out different events to external query peers or internal liste... | null | https://raw.githubusercontent.com/fluree/db/da8a0f5cf1dc0919d03b1c1e81e89354942d10ae/src/fluree/db/event_bus.cljc | clojure | handles a pub/sub mechanism for pushing out different events to external query peers or internal listeners
all events keyed by network + db | (ns fluree.db.event-bus
(:require #?(:clj [clojure.core.async :as async]
:cljs [cljs.core.async :as async])
[fluree.db.util.core :as util]))
#?(:clj (set! *warn-on-reflection* true))
(def sub-state (atom {}))
(defn reset-sub
[]
(reset! sub-state {}))
(defn publish
"'subject' curr... |
ccbcc09ba23740fcce5b3425ef5e75dd84d64f048c0f8f912bc349d4ed1ff00b | 15Galan/asignatura-204 | PriorityQueueDemo.hs | -------------------------------------------------------------------------------
-- Simple client module using a Priority Queue
--
Data Structures . en Informática . UMA .
, 2012
-------------------------------------------------------------------------------
module Demos.PriorityQueue.PriorityQueueDemo where
im... | null | https://raw.githubusercontent.com/15Galan/asignatura-204/894f33ff8e0f52a75d8f9ff15155c656f1a8f771/Pr%C3%A1cticas/Demos/PriorityQueue/PriorityQueueDemo.hs | haskell | -----------------------------------------------------------------------------
Simple client module using a Priority Queue
----------------------------------------------------------------------------- | Data Structures . en Informática . UMA .
, 2012
module Demos.PriorityQueue.PriorityQueueDemo where
import DataStructures.PriorityQueue.MaxiphobicHeapPriorityQueue
import . Heap . WBLHPriorityQueue
import . PriorityQueue . LinearPriorityQueue
import DataStructures.PriorityQueue.PriorityQueueAxioms(priorityQue... |
f5a3aee7c2b83797c39836843ac46c1ccdf8ad60e4000137cb2f923a54d99923 | input-output-hk/ouroboros-network | NoHardForks.hs | module Ouroboros.Consensus.HardFork.Combinator.Abstract.NoHardForks (
NoHardForks (..)
, noHardForksEpochInfo
) where
import Data.Functor.Identity (runIdentity)
import Cardano.Slotting.EpochInfo
import Ouroboros.Consensus.Config
import Ouroboros.Consensus.HardFork.Hist... | null | https://raw.githubusercontent.com/input-output-hk/ouroboros-network/0a3a61ae80244dde943843fd39ef17cd85260980/ouroboros-consensus/src/Ouroboros/Consensus/HardFork/Combinator/Abstract/NoHardForks.hs | haskell | ------------------------------------------------------------------------------
Blocks that don't /have/ any transitions
------------------------------------------------------------------------------
| Extract 'EraParams' from the top-level config
| Construct partial ledger config from full ledger config
See also... | module Ouroboros.Consensus.HardFork.Combinator.Abstract.NoHardForks (
NoHardForks (..)
, noHardForksEpochInfo
) where
import Data.Functor.Identity (runIdentity)
import Cardano.Slotting.EpochInfo
import Ouroboros.Consensus.Config
import Ouroboros.Consensus.HardFork.Hist... |
0a573f2742c783bd963977c017274dc3b19541ffea17e33e474c74ea4e65c567 | input-output-hk/project-icarus-importer | Types.hs | -- | Delegation-related local types.
module Pos.Delegation.Types
( DlgPayload (..)
, DlgUndo (..)
, DlgMemPool
, ProxySKBlockInfo
, module Pos.Core.Delegation
, isRevokePsk
, DlgBlock
, DlgBlund
) where
import Universum
import qualified Data.T... | null | https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/delegation/src/Pos/Delegation/Types.hs | haskell | | Delegation-related local types.
| Undo for the delegation component.
have a unique issuer.
^ Set of stakeholders that posted in epoch i. This field
should be present only for genesis block of epoch i+1.
| Map from issuer public keys to related heavy certs.
| Heavyweight PSK with real leader public key (because... |
module Pos.Delegation.Types
( DlgPayload (..)
, DlgUndo (..)
, DlgMemPool
, ProxySKBlockInfo
, module Pos.Core.Delegation
, isRevokePsk
, DlgBlock
, DlgBlund
) where
import Universum
import qualified Data.Text.Buildable as Buildable
import ... |
b15499c1008cb5fbeeb05f99398416eb78e3a97495265836818c9e20611ee7b6 | CatalaLang/catala | print.ml | This file is part of the Catala compiler , a specification language for tax
and social benefits computation rules . Copyright ( C ) 2020 , contributor :
< >
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
use this file except in compliance with the License . ... | null | https://raw.githubusercontent.com/CatalaLang/catala/5bd140ae5fb2a997a578b9cd67a932c4a8733526/compiler/shared_ast/print.ml | ocaml | This file is part of the Catala compiler , a specification language for tax
and social benefits computation rules . Copyright ( C ) 2020 , contributor :
< >
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
use this file except in compliance with the License . ... | |
f83d98feda41860c37f0c11d58131a7909db23d68b1447eef54d75a3332b730f | yallop/ocaml-pb | test_messages.ml | open Pb
module Enum =
struct
module E = (val enum "Enum")
let one = E.constant "one" 1_l
let two = E.constant "two" 2_l
end
module Small =
struct
module S = (val message "Small")
let s = S.optional string "small_s" 100
let i = S.optional int64 "small_i" 200
end
module TwoString =
struct
module T = (va... | null | https://raw.githubusercontent.com/yallop/ocaml-pb/b6cbb5c57ef6dc00ccf67af00634a14b451af742/pb/test/test_messages.ml | ocaml | open Pb
module Enum =
struct
module E = (val enum "Enum")
let one = E.constant "one" 1_l
let two = E.constant "two" 2_l
end
module Small =
struct
module S = (val message "Small")
let s = S.optional string "small_s" 100
let i = S.optional int64 "small_i" 200
end
module TwoString =
struct
module T = (va... | |
20a516cffab75e57886a5eabfac75e2ab5c1cccb0d83661acf55d155932ecb97 | PapenfussLab/bioshake | Picard.hs | # LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeOperators #-}
module Bioshake.Picard where
import Bioshake
import Bioshake.Internal.Picard
import Bioshake.TH
import ... | null | https://raw.githubusercontent.com/PapenfussLab/bioshake/afeb7219b171e242b6e9bb9e99e2f80c0a099aff/Bioshake/Picard.hs | haskell | # LANGUAGE TemplateHaskell #
# LANGUAGE TypeOperators #
$markDups De-duplicate using picard tools | # LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
module Bioshake.Picard where
import Bioshake
import Bioshake.Internal.Picard
import Bioshake.TH
import Development.Shake
import Development.Shake.FilePath
$(make... |
ea740743d8cf8022b228517b4d8d5bbaa000ac63ff5dd327a906cfd8d5a10c1d | ghc/testsuite | tcfail067.hs | # LANGUAGE DatatypeContexts #
module ShouldFail where
infixr 1 `rangeOf`
data Ord a => SubRange a = SubRange (a, a) a
type IntSubRange = SubRange Int
subRangeValue :: SubRange a -> a
subRangeValue (SubRange (lower, upper) value) = value
subRange :: SubRange a -> (a, a)
subRange (SubRange r value) = r
newRange :... | null | https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/tcfail067.hs | haskell | partain: | # LANGUAGE DatatypeContexts #
module ShouldFail where
infixr 1 `rangeOf`
data Ord a => SubRange a = SubRange (a, a) a
type IntSubRange = SubRange Int
subRangeValue :: SubRange a -> a
subRangeValue (SubRange (lower, upper) value) = value
subRange :: SubRange a -> (a, a)
subRange (SubRange r value) = r
newRange :... |
dece9f49d4cabc465097b4f548ab6ae7c45b6cd5e36f32797c971e71c7660d5b | racket/typed-racket | info.rkt | #lang info
(define collection 'use-pkg-name)
(define deps '("redex-lib"
"sandbox-lib"
("base" #:version "6.2.900.16")
("typed-racket-lib" #:version "1.10")
"typed-racket-more"
"2d"
"typed-racket-compatibility"
"rac... | null | https://raw.githubusercontent.com/racket/typed-racket/6ae375e58dd482c72be26d408e0d74de28611a59/typed-racket-test/info.rkt | racket | Collection info
No need to compile the actual integration tests, just the harness.
FIXME: should be improved by stamourv | #lang info
(define collection 'use-pkg-name)
(define deps '("redex-lib"
"sandbox-lib"
("base" #:version "6.2.900.16")
("typed-racket-lib" #:version "1.10")
"typed-racket-more"
"2d"
"typed-racket-compatibility"
"rac... |
45c79303b88cee428cd287cab5c9ff6b2a5745422e701291082ce5f686ec03ee | yitzchak/common-lisp-jupyter | installer.lisp | (in-package #:jupyter/common-lisp)
(defclass cl-installer (jupyter:installer)
((load-system :accessor installer-load-system
:initarg :load-system
:type (or null string)))
(:default-initargs
:class 'kernel
:language +language+
:debugger t
:resources
(mapcar #'asdf... | null | https://raw.githubusercontent.com/yitzchak/common-lisp-jupyter/abe87bc5857236f4add3d00bd4a54f80b6582795/src/cl-jupyter/installer.lisp | lisp | (in-package #:jupyter/common-lisp)
(defclass cl-installer (jupyter:installer)
((load-system :accessor installer-load-system
:initarg :load-system
:type (or null string)))
(:default-initargs
:class 'kernel
:language +language+
:debugger t
:resources
(mapcar #'asdf... | |
a3afb011fb359cb4cb23876411371ad92bfcc3b16d7d14d816e7203eff9b0d9f | BardurArantsson/cqrs | Repository.hs | module Data.CQRS.Repository
( -- * Repository
Repository
, newRepository
-- * Settings
, Settings
, setSnapshotFrequency
, setClock
, defaultSettings
) where
import Data.CQRS.Internal.Repository
| null | https://raw.githubusercontent.com/BardurArantsson/cqrs/2491d83e2bcd68c883aaea33cdce6c5ea8c0cd1a/cqrs-core/src/Data/CQRS/Repository.hs | haskell | * Repository
* Settings | module Data.CQRS.Repository
Repository
, newRepository
, Settings
, setSnapshotFrequency
, setClock
, defaultSettings
) where
import Data.CQRS.Internal.Repository
|
e377e41622ab68d0670440d553e76722d6215951d76274e776f4d53dbeebaf80 | babashka/babashka | zip_test.cljc | (ns rewrite-clj.zip-test
"This test namespace originated from rewrite-cljs."
(:require [clojure.string :as string]
[clojure.test :refer [deftest testing is are]]
[rewrite-clj.node :as n]
[rewrite-clj.zip :as z]))
(deftest of-string-simple-sexpr
(let [sexpr "(+ 1 2)"]
(is (... | null | https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/test-resources/lib_tests/rewrite_clj/zip_test.cljc | clojure | if you update this test, please also review/update:
rewrite-clj.parser-test.t-rowcolumn-metadata-from-clojure-tools-reader
12345678901234
changes and also nsmap context are applied when moving up to nsmap
changes and also nsmap context are applied when moving up to nsmap
changes and also nsmap context are applie... | (ns rewrite-clj.zip-test
"This test namespace originated from rewrite-cljs."
(:require [clojure.string :as string]
[clojure.test :refer [deftest testing is are]]
[rewrite-clj.node :as n]
[rewrite-clj.zip :as z]))
(deftest of-string-simple-sexpr
(let [sexpr "(+ 1 2)"]
(is (... |
f77c2e80a599b3fe0f5bdec0d509da4639a8a0d7775925462618ab0d6915d16a | nokijp/pietc | SyntaxTestHelper.hs | module SyntaxTestHelper
( rl, rr, dl, dr, ll, lr, ul, ur
) where
import Language.Piet.Syntax
rl :: DPCC
rl = DPCC DPRight CCLeft
rr :: DPCC
rr = DPCC DPRight CCRight
dl :: DPCC
dl = DPCC DPDown CCLeft
dr :: DPCC
dr = DPCC DPDown CCRight
ll :: DPCC
ll = DPCC DPLeft CCLeft
lr :: DPCC
lr = DPCC DPLeft CCRight
... | null | https://raw.githubusercontent.com/nokijp/pietc/da6699c286a7b428b01211c8e467ce4ec1f7967e/test/SyntaxTestHelper.hs | haskell | module SyntaxTestHelper
( rl, rr, dl, dr, ll, lr, ul, ur
) where
import Language.Piet.Syntax
rl :: DPCC
rl = DPCC DPRight CCLeft
rr :: DPCC
rr = DPCC DPRight CCRight
dl :: DPCC
dl = DPCC DPDown CCLeft
dr :: DPCC
dr = DPCC DPDown CCRight
ll :: DPCC
ll = DPCC DPLeft CCLeft
lr :: DPCC
lr = DPCC DPLeft CCRight
... | |
4a1ebd689165361850d6047aaab638026dea8133e626687be6808f259b5d4007 | Nike-Inc/bartlett | Configuration.hs | |
Module : Configuration
Description : Configuration management for Bartlett
Copyright : ( c ) Nike , Inc. , 2016 - present
License : :
Stability : stable
Configuration management for .
Module : Configuration
Description : Configuration management for Bartlett
Copyright : (... | null | https://raw.githubusercontent.com/Nike-Inc/bartlett/b8874ae5b1c3867672956936c3f90a6237404b85/src/Bartlett/Configuration.hs | haskell | * Configuration Management
* Convenience Accessors
| Default config file location
| Attempt to retrieve the default configuration.
Returns an empty configuration if it could not load the default.
| Retrieve the username for the given profile.
| Get the value determining whether the user's password should be s... | |
Module : Configuration
Description : Configuration management for Bartlett
Copyright : ( c ) Nike , Inc. , 2016 - present
License : :
Stability : stable
Configuration management for .
Module : Configuration
Description : Configuration management for Bartlett
Copyright : (... |
8ad49fe2e88fc87439db6b5ee41aeb57a7757c136b6c608c4f3cefa5bbf9bc48 | huangjs/cl | dmap.lisp | ;;; ----------------------------------------------------------------
DMAP - Lite
;;; ----------------------------------------------------------------
;;;
Everything you wanted in a Direct Memory Access Parser and less .
;;;
;;; Change log
;;; ----------
;;; 06/07/2006: changed monitors to support local with-monito... | null | https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cs325/www.cs.northwestern.edu/academics/courses/325/programs/dmap.lisp | lisp | ----------------------------------------------------------------
----------------------------------------------------------------
Change log
----------
06/07/2006: changed monitors to support local with-monitors macro,
06/06/2006: changed monitors to use tag ids, because equality not
PACKAGES
--------
-----... | DMAP - Lite
Everything you wanted in a Direct Memory Access Parser and less .
merged remove - monitor and remove - all - monitors functionality [ CKR ]
guaranteed for functions [ CKR ]
06/06/2006 : Updated packaging code to standard CL2 [ CKR ]
11/16/1998 Added : ADD argument to call to find - insta... |
3df31521870406543f1ccb58720fdfca7de509ca284fee4083176513675fc691 | vaibhavsagar/duffer | Spec.hs | # LANGUAGE TypeApplications #
# LANGUAGE ScopedTypeVariables #
import Control.Monad (zipWithM_)
import Data.Aeson (encode, decode, ToJSON, FromJSON)
import Data.ByteString (hGetContents)
import Data.ByteString.UTF8 (lines, toString)
import Data.Coerce (Coercible, coerce)
import Data.... | null | https://raw.githubusercontent.com/vaibhavsagar/duffer/bad9c6c6cf09f717e22d3d65f95564236896d610/duffer-json/test/Spec.hs | haskell | # LANGUAGE TypeApplications #
# LANGUAGE ScopedTypeVariables #
import Control.Monad (zipWithM_)
import Data.Aeson (encode, decode, ToJSON, FromJSON)
import Data.ByteString (hGetContents)
import Data.ByteString.UTF8 (lines, toString)
import Data.Coerce (Coercible, coerce)
import Data.... | |
3e8b91424e5028000a6ffcd3dec1fa2b7ea9feab72a0d9c0887c9bdcafbeb35a | ZHaskell/zoovisitor | Utils.hs | module ZooKeeper.Recipe.Utils
( -- * Types
SequenceNumWithGUID(..)
, mkSequenceNumWithGUID
, extractSeqNum
, ZkRecipeException (..)
* operations
, createSeqEphemeralZNode
) where
import Control.Exception
import qualified Data.List as L
import Z.Data.CBytes (CByt... | null | https://raw.githubusercontent.com/ZHaskell/zoovisitor/53053dbf358899906565a05dc2477fd1679b8aa9/src/ZooKeeper/Recipe/Utils.hs | haskell | * Types
------------------------------------------------------------------------------
exceptions so we only care about the sequence number part when we comparing
------------------------------------------------------------------------------
| Creates a sequential and ephemeral znode with specified prefix
[this](#s... | module ZooKeeper.Recipe.Utils
SequenceNumWithGUID(..)
, mkSequenceNumWithGUID
, extractSeqNum
, ZkRecipeException (..)
* operations
, createSeqEphemeralZNode
) where
import Control.Exception
import qualified Data.List as L
import Z.Data.CBytes (CBytes)
import qual... |
bb435afeef7f1073cae36c506601ea69e68510357722b09ab44432654cdaf20a | brainsickcc/bscc | HelpAndVersion.hs | Copyright © 2012
-- 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 , or
-- (at your option) any later version.
--
-- This program is distributed in th... | null | https://raw.githubusercontent.com/brainsickcc/bscc/f47a83f5c77d0ef483e957032715ac4007fcb44d/test/Test/Bscc/HelpAndVersion.hs | haskell | This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General ... | Copyright © 2012
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU Affero General Public License
module Test.Bscc.HelpAndVersion (helpAndVersionTests) where
import Bscc.H... |
4c27f33bd1e05c7013e3b3436d98438ea1f076fcf922878ae7fc93aa150d8287 | higherkindness/mu-haskell | ExampleServer.hs | # language DataKinds #
{-# language OverloadedStrings #-}
{-# language TypeFamilies #-}
module Main where
import Mu.Adapter.ProtoBuf
import Mu.GRpc.Server
import Mu.Rpc.Examples
import Mu.Schema
type instance AnnotatedSchema ProtoBufAnnotation QuickstartSchema
=... | null | https://raw.githubusercontent.com/higherkindness/mu-haskell/e41ba786f556cfac962e0f183b36bf9ae81d69e4/grpc/server/exe/ExampleServer.hs | haskell | # language OverloadedStrings #
# language TypeFamilies # | # language DataKinds #
module Main where
import Mu.Adapter.ProtoBuf
import Mu.GRpc.Server
import Mu.Rpc.Examples
import Mu.Schema
type instance AnnotatedSchema ProtoBufAnnotation QuickstartSchema
= '[ 'AnnField "HelloRequest" "name" ('ProtoBufId 1 '[])
, 'AnnFie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.