_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 |
|---|---|---|---|---|---|---|---|---|
a96d92333178b88415846703b6d816f14ac09530ff919b96539a3408ceb59cf8 | bartavelle/hruby | roundtrip.hs | module Main where
import Control.Monad
import Data.Aeson
import Data.Aeson.Key (fromText)
import qualified Data.Text as T
import qualified Data.Vector as V
import Foreign.Ruby
import System.Exit (exitFailure)
import Test.QuickCheck
import Test.QuickCheck.Monadic
subvalue :: Gen Value
subvalue = frequency [(50, s), (2... | null | https://raw.githubusercontent.com/bartavelle/hruby/daf4f2529bce90a9b5ebd39459e3387e9d5754ee/test/roundtrip.hs | haskell | module Main where
import Control.Monad
import Data.Aeson
import Data.Aeson.Key (fromText)
import qualified Data.Text as T
import qualified Data.Vector as V
import Foreign.Ruby
import System.Exit (exitFailure)
import Test.QuickCheck
import Test.QuickCheck.Monadic
subvalue :: Gen Value
subvalue = frequency [(50, s), (2... | |
6168b49be0d57dc1ddcc374fb00f7d123e2c0936a6c36d3618088be62883bbe6 | BrunoBonacci/safely | test_utils.clj | (ns safely.test-utils
(:require [midje.sweet :refer [after before fact provided with-state-changes]]
[safely.core :refer [shutdown-pools]])
(:import clojure.lang.ExceptionInfo))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ... | null | https://raw.githubusercontent.com/BrunoBonacci/safely/8aadfcba9dbddf942228da90d3478c769e39a3ac/test/safely/test_utils.clj | clojure |
;;
---==| T E S T U T I L S |==---- ;;
;;
| (ns safely.test-utils
(:require [midje.sweet :refer [after before fact provided with-state-changes]]
[safely.core :refer [shutdown-pools]])
(:import clojure.lang.ExceptionInfo))
(def ^:dynamic *counter* nil)
(defn count-passes []
(swap! *counter* inc))
(defn boom []
(throw (ex-info "BOOOOM... |
121db7b0d756962f11625bcf0478238dec01d87bae86d696a940a748d0dc905e | fulcro-legacy/fulcro-datomic | template.clj | ;; Name YOUR namespace as follows: datahub.migrations.YYYYMMDDHHmm-description
;; This means your filename will be: src/datahub/migrations/YYYYMMDDHHmm_description (note the underscore)
(ns sample-migrations.migrations.template
(:require [fulcro.datomic.schema :as s])
)
;; THIS FILE WILL NEVER RUN. The migration s... | null | https://raw.githubusercontent.com/fulcro-legacy/fulcro-datomic/262fb629fc250a8675afacf7b16ac876d47cb597/specs/sample_migrations/migrations/template.clj | clojure | Name YOUR namespace as follows: datahub.migrations.YYYYMMDDHHmm-description
This means your filename will be: src/datahub/migrations/YYYYMMDDHHmm_description (note the underscore)
THIS FILE WILL NEVER RUN. The migration system ignores anything in *.template namespaces.
This is simply a sample of the kinds of things... | (ns sample-migrations.migrations.template
(:require [fulcro.datomic.schema :as s])
)
TODO : Make this support def instead of using defn
(defn transactions []
transaction 1 : transactions themselves are lists of maps ( or lists of lists ) . See Datomic docs .
[{
:db/index true,
:db.install/_attrib... |
89543e960871d95d9e728703a4f2f16b5c96a968767b50017089b9c358fc449f | CryptoKami/cryptokami-core | Listener.hs | {-# LANGUAGE Rank2Types #-}
-- | Protocol/versioning related communication helpers.
module Pos.Communication.Listener
( listenerConv
) where
import qualified Node as N
import System.Wlog (WithLogger)
import Universum
import qualified Network.Broadcast.OutboundQueue as OQ
import ... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/infra/Pos/Communication/Listener.hs | haskell | # LANGUAGE Rank2Types #
| Protocol/versioning related communication helpers. |
module Pos.Communication.Listener
( listenerConv
) where
import qualified Node as N
import System.Wlog (WithLogger)
import Universum
import qualified Network.Broadcast.OutboundQueue as OQ
import Pos.Binary.Class (Bi)
import Pos.Binary.Infra ()
import P... |
487e8fc9587a67847154d8c9562ea5a2c46327b71922a80fe152ff855505c287 | DavidAlphaFox/RabbitMQ | rabbit_ctl_usage.erl | %% Generated, do not edit!
-module(rabbit_ctl_usage).
-export([usage/0]).
usage() -> "Usage:
rabbitmqctl [-n <node>] [-q] <command> [<command options>]
Options:
-n node
-q
Default node is \"rabbit@server\", where server is the local host. On a host
named \"server.example.com\", the node name of the RabbitMQ... | null | https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_ctl_usage.erl | erlang | Generated, do not edit! | -module(rabbit_ctl_usage).
-export([usage/0]).
usage() -> "Usage:
rabbitmqctl [-n <node>] [-q] <command> [<command options>]
Options:
-n node
-q
Default node is \"rabbit@server\", where server is the local host. On a host
named \"server.example.com\", the node name of the RabbitMQ Erlang node will
usually ... |
6101a2214746eee0538041cefc5cfdd2d3d4db0823958ad4d935dfb2137e1a4e | TrustInSoft/tis-kernel | function_args.mli | (**************************************************************************)
(* *)
This file is part of .
(* *)
Copyright ( C ) 2017
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/value/legacy/function_args.mli | ocaml | ************************************************************************
... | This file is part of .
Copyright ( C ) 2017
is released under GPLv2
exception Actual_is_bottom
exception WrongFunctionType
* @raise [ WrongFunctionType ]
val check_arg_size: Cil_types.exp -> Cil_types.varinfo -> unit
* @raise [ WrongFunctionT... |
6f69cf2f6e9ab2d8571f051435fc8c58f80f5e8d707ddedf38189a9756dc5c9f | mzp/coq-ruby | typing.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/pretyping/typing.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
This module provides the typing... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
i $ I d : typing.mli 6113 2... |
ce6bd4ddeb425296085f67a74a3ca0e1dfa314a6fc66fb2e4fba4829f193f956 | fishcakez/sbroker | sbroker_codel_queue.erl | %%-------------------------------------------------------------------
%%
Copyright ( c ) 2015 , < >
%%
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 License at
%%
%% -2.0
... | null | https://raw.githubusercontent.com/fishcakez/sbroker/10f7e3970d0a296fbf08b1d1a94c88979a7deb5e/src/sbroker_codel_queue.erl | erlang | -------------------------------------------------------------------
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,
KIND, either express or implied. See the Lic... | Copyright ( c ) 2015 , < >
This file is provided to you under the Apache License ,
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
CoDel ( Controlling Queue Delay ) .
queue using CoDel when the minimum size is exceeded , and drops the ... |
de692fae1198f0f78e991ee93d9f684f8c7c8054a6d44d2a4ba9c58b78c117f8 | fyquah/hardcaml_zprize | core_config.ml | module type S = Core_config_intf.S
(* Change [ram_output_pipelining] and [ram_latency] to experiment with various
* pipelinling options.
*)
(** [ram_output_pipelining] dictates of additional pipelining in the datapath.
* from the ram output. This pipelining is _in addition_ to [ram_latency]
* above, and only af... | null | https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/hardcaml_ntt/src/core_config.ml | ocaml | Change [ram_output_pipelining] and [ram_latency] to experiment with various
* pipelinling options.
* [ram_output_pipelining] dictates of additional pipelining in the datapath.
* from the ram output. This pipelining is _in addition_ to [ram_latency]
* above, and only affects the datapath.
* [ram_latency] dicta... | module type S = Core_config_intf.S
let ram_output_pipelining = 1
let ram_latency = 1
let datapath_latency = ram_latency + ram_output_pipelining + Multiplier.latency
|
d54f55b20f5dcb26123e48bb1b4816a5033a8094e02082b6a70c6d1bc58f64fc | scicloj/wadogo | bands.clj | (ns wadogo.scale.bands
"Creates sequence of bands for given range and padding.
Bands are evenly distributed intervals with padding.
Each band is a map with following keys:
* rstart - interval start
* rend - interval end
* point - selected point (default: midpoint)
* value - domain value
Input parame... | null | https://raw.githubusercontent.com/scicloj/wadogo/a6b48a20309bc13dec3787fec66e90a0fdb5976f/src/wadogo/scale/bands.clj | clojure | (ns wadogo.scale.bands
"Creates sequence of bands for given range and padding.
Bands are evenly distributed intervals with padding.
Each band is a map with following keys:
* rstart - interval start
* rend - interval end
* point - selected point (default: midpoint)
* value - domain value
Input parame... | |
6d26155c0b16b2fa31cee90717797fa5148ffb21b8e7f6a63da5e75f98bf8732 | kaizhang/SciFlow | Remote.hs | # LANGUAGE TypeFamilies #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE LambdaCase #-}
module Control.Workflow.Coordinator.Remote
( Remote
, RemoteConfig(..)
, getDefaultRemoteConfig
) where
import Control.Monad.IO.Class (liftIO)
import ... | null | https://raw.githubusercontent.com/kaizhang/SciFlow/f38f1de35edb243c6e5a554963e8dae3fa820603/SciFlow-remote/src/Control/Workflow/Coordinator/Remote.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase #
^ Command to start the worker process
^ How to specify cpu number, default: "--ntasks-per-node=%d"
^ How to specify memory, default: "--mem=%dG"
^ additional drmaa parameters
^ Parameters of the executable
that runs on the workers
Kill idle worker periodi... | # LANGUAGE TypeFamilies #
# LANGUAGE RecordWildCards #
module Control.Workflow.Coordinator.Remote
( Remote
, RemoteConfig(..)
, getDefaultRemoteConfig
) where
import Control.Monad.IO.Class (liftIO)
import Control.Monad (replicateM)
import Network.HostName (getHostName)
i... |
40770e522fffe4771f5e61106656202fdb1dd38a5f43fea4b90a4157003d4c94 | stoychoX/File-System | Parser.hs | module Parser where
import Control.Applicative ( Alternative((<|>), empty) )
import Data.Char (isSpace)
newtype Parser a = Parser {runParser :: String -> Maybe (String, a)}
instance Functor Parser where
fmap f (Parser p) = Parser $ \input -> do
(input', x) <- p input
Just (input', f x)
instance... | null | https://raw.githubusercontent.com/stoychoX/File-System/ebeb06650fe32632539ef0cb9e983e9db7ae929f/Parser.hs | haskell | module Parser where
import Control.Applicative ( Alternative((<|>), empty) )
import Data.Char (isSpace)
newtype Parser a = Parser {runParser :: String -> Maybe (String, a)}
instance Functor Parser where
fmap f (Parser p) = Parser $ \input -> do
(input', x) <- p input
Just (input', f x)
instance... | |
517feb23c9a758e330531a7977ff91d0786febb86c847dfa22cd939c1f5ab3a4 | hemmi/coq2scala | search.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2/toplevel/search.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
General search, restricted to head ... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open Util
open Names
... |
5131232215e6fa7150e01c9d70a28edfffa1dc1ef8cdf1e9bd61331f2cc2f034 | binsec/binsec | infos.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2022
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/parser/infos.mli | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2022
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
fc41fd51673ced86f6e7f5fcdfb6b63375dbc2b0ca84ca588e97689098dbe91d | janestreet/shell | unix_extended.mli | (** Extensions to [Core_unix]. *)
open! Core
module Unix := Core_unix
* [ fork_exec prog args ~stdin ~stdout ~stderr ~setuid ~setgid ]
forks a new process that executes the program
in file [ prog ] , with arguments [ args ] . The pid of the new
process is returned immediately ; the new process execu... | null | https://raw.githubusercontent.com/janestreet/shell/5f05077606426c900892398e77c5781831faa540/unix_extended/src/unix_extended.mli | ocaml | * Extensions to [Core_unix].
* Network to host order long, like C.
* Host to network order long, like C.
* file system block size
* fragment size
* size of fs in frsize units
* # free blocks
* # free blocks for non-root
* # inodes
* # free inodes
* # free inodes for non-root
* file system ID
* mount flags
... | open! Core
module Unix := Core_unix
* [ fork_exec prog args ~stdin ~stdout ~stderr ~setuid ~setgid ]
forks a new process that executes the program
in file [ prog ] , with arguments [ args ] . The pid of the new
process is returned immediately ; the new process executes
concurrently with the cu... |
df012a882e83d523fa1d01569e10f2609c7faa1a5e29339b4e7b93da055fee3b | avieth/diplomacy | Season.hs | |
Module : Diplomacy . Season
Description : Definition of the three seasons of Diplomacy .
Copyright : ( c ) , 2015
Licence : :
Stability : experimental
Portability : non - portable ( GHC only )
Module : Diplomacy.Season
Description : Definition of the three seasons of Diplom... | null | https://raw.githubusercontent.com/avieth/diplomacy/b8868322e59264f8210962dc357c657b86add588/src/Diplomacy/Season.hs | haskell | |
Module : Diplomacy . Season
Description : Definition of the three seasons of Diplomacy .
Copyright : ( c ) , 2015
Licence : :
Stability : experimental
Portability : non - portable ( GHC only )
Module : Diplomacy.Season
Description : Definition of the three seasons of Diplom... | |
49568711164042891e599ab381d644c513744c7108af3ee7522df413bb68572a | polyfy/polylith | core.clj | (ns com.localdep.test-helper.core
(:require [com.localdep.test-helper-db.interface :as test-helper]))
| null | https://raw.githubusercontent.com/polyfy/polylith/febea3d8a9b30a60397594dda3cb0f25154b8d8d/examples/local-dep/components/test-helper/src/com/localdep/test_helper/core.clj | clojure | (ns com.localdep.test-helper.core
(:require [com.localdep.test-helper-db.interface :as test-helper]))
| |
40ccfa2acbeb3aa4ccee86132d63e6664514a9820ea22718c35ace4e52fa6c3b | rmculpepper/crypto | errors.rkt | #lang racket/base
(require crypto
crypto/libcrypto
rackunit)
;; SETUP
;; libcrypto is generally available
(crypto-factories libcrypto-factory)
;; ============================================================
Digests
(check-exn #rx"could not get implementation"
(lambda () (digest 'tiger... | null | https://raw.githubusercontent.com/rmculpepper/crypto/fec745e8af7e3f4d5eaf83407dde2817de4c2eb0/crypto-test/tests/errors.rkt | racket | SETUP
libcrypto is generally available
============================================================
============================================================
Ciphers
============================================================
============================================================ | #lang racket/base
(require crypto
crypto/libcrypto
rackunit)
(crypto-factories libcrypto-factory)
Digests
(check-exn #rx"could not get implementation"
(lambda () (digest 'tiger1 #"hello world")))
(check-exn #rx"bad key size\n given: 3 bytes"
(lambda () (digest 'sha256 #"h... |
ad4bbfe3942aec40bf9153e06eeaf884a85713e73773412e26cd501ab1b91926 | DavidAlphaFox/RabbitMQ | rabbit_framing_amqp_0_8.erl | Autogenerated code . Do not edit .
%%
The contents of this file are subject to the Mozilla Public License
Version 1.1 ( the " License " ) ; you may not use this file except in
%% compliance with the License. You may obtain a copy of the License
%% at /
%%
Software distributed under the License is distrib... | null | https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_framing_amqp_0_8.erl | erlang |
compliance with the License. You may obtain a copy of the License
at /
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and
limitations under the License.
Various types
longstr
signedint
decimal
byte
double
long
short
bool... | Autogenerated code . Do not edit .
The contents of this file are subject to the Mozilla Public License
Version 1.1 ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
The Original Code is RabbitMQ .
The Initial Developer of t... |
e36e6b86c6da4f73113d5afe83b40efbe021349c974c47b04c2293ac4d058eb9 | lopec/LoPEC | ecg.erl | %%%-------------------------------------------------------------------
@author < >
( C ) 2009 ,
%%% @doc
%%% This module handles start of electrocardiogram application.
%%% Currently it is not using any parameters.
%%% @end
Created : Oct 5 , 2009 by
%%%-----------------------------------------------------... | null | https://raw.githubusercontent.com/lopec/LoPEC/29a3989c48a60e5990615dea17bad9d24d770f7b/trunk/lib/ecg/src/ecg.erl | erlang | -------------------------------------------------------------------
@doc
This module handles start of electrocardiogram application.
Currently it is not using any parameters.
@end
-------------------------------------------------------------------
===================================================================... | @author < >
( C ) 2009 ,
Created : Oct 5 , 2009 by
-module(ecg).
-behaviour(application).
-export([start/2, stop/1]).
Returns : { ok , Pid } |
{ ok , Pid , State } |
start(_Type, _StartArgs) ->
chronicler:info("~w : Starting ECG Application~n", [?MODULE]),
Result = ecg_sup:s... |
747f62ad7393ff1cb9a55d8375cf927b8f96bad0bfb005a7a66cd34e6b953f60 | Drup/dowsing | Variable.ml | type t = Int.t
type var = t
let as_int v = v
let compare = CCInt.compare
let equal = CCInt.equal
module Map = CCMap.Make (CCInt)
module HMap = CCHashtbl.Make (CCInt)
module Set = CCSet.Make (CCInt)
module Namespace = struct
type t = Data | Query
let seed = function
| Data -> 1
| Query -> -1
let next... | null | https://raw.githubusercontent.com/Drup/dowsing/25f95c78c02deeee8bf9e203fb84fe87d723a76d/lib/common/Variable.ml | ocaml | type t = Int.t
type var = t
let as_int v = v
let compare = CCInt.compare
let equal = CCInt.equal
module Map = CCMap.Make (CCInt)
module HMap = CCHashtbl.Make (CCInt)
module Set = CCSet.Make (CCInt)
module Namespace = struct
type t = Data | Query
let seed = function
| Data -> 1
| Query -> -1
let next... | |
3064db406e4346d90cee3dc03468dc51d9fcb81aa595520b6008d55bff6345b1 | msakai/toysolver | Kronecker.hs | {-# OPTIONS_HADDOCK show-extensions #-}
{-# LANGUAGE BangPatterns #-}
-----------------------------------------------------------------------------
-- |
Module : ToySolver . Data . Polynomial . Factorization .
Copyright : ( c ) 2012 - 2013
-- License : BSD-style
--
-- Maintainer :
-- Stabili... | null | https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/Data/Polynomial/Factorization/Kronecker.hs | haskell | # OPTIONS_HADDOCK show-extensions #
# LANGUAGE BangPatterns #
---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : provisional
Portability : non-portable
References:
* <>
-------------------------------------------------------... | Module : ToySolver . Data . Polynomial . Factorization .
Copyright : ( c ) 2012 - 2013
Factoriation of integer - coefficient polynomial using 's method .
module ToySolver.Data.Polynomial.Factorization.Kronecker
( factor
) where
import Data.List
import Data.MultiSet (MultiSet)
import qualifie... |
03526190232aee66ef814c7c927e57b8a47bec2a335dfb6e8971cafa0b004ae7 | dm3/sicp | e1_21.clj | # # Exercise 1.21
(ns e1-21
(:use clojure.test))
;; Use the smallest-divisor procedure to find the smallest divisor of each of
the following numbers : 199 , 1999 , 19999 .
;; For it we'll need to implement the procedures described earlier in the
;; chapter.
(defn divides? [a b]
(= (rem b a) 0))
... | null | https://raw.githubusercontent.com/dm3/sicp/14f0361cbd0cce817d93e38dcc895f3e845515b1/src/main/clojure/e1_21.clj | clojure | Use the smallest-divisor procedure to find the smallest divisor of each of
For it we'll need to implement the procedures described earlier in the
chapter.
And the answer is...
| # # Exercise 1.21
(ns e1-21
(:use clojure.test))
the following numbers : 199 , 1999 , 19999 .
(defn divides? [a b]
(= (rem b a) 0))
(defn square [a]
(* a a))
(defn expmod [base exp m]
(cond (= exp 0) 1
(even? exp) (rem (square
(expmod base (/ exp 2) m)) ... |
9b2440c13fca0754f9106ace9d3ae5b32092dc1be5dc46c380e980f52052529d | poscat0x04/telegram-types | EditMessageMedia.hs | module Web.Telegram.Types.Internal.API.EditMessageMedia where
import Common
import Web.Telegram.Types.Internal.API.ChatId
import Web.Telegram.Types.Internal.InputMedia
data EditMessageMedia = EditMessageMedia
{ chatId :: Maybe ChatId,
messageId :: Maybe Int,
inlineMessageId :: Maybe Text,
media :: Input... | null | https://raw.githubusercontent.com/poscat0x04/telegram-types/3de0710640f5303638a83e409001b0342299aeb8/src/Web/Telegram/Types/Internal/API/EditMessageMedia.hs | haskell | module Web.Telegram.Types.Internal.API.EditMessageMedia where
import Common
import Web.Telegram.Types.Internal.API.ChatId
import Web.Telegram.Types.Internal.InputMedia
data EditMessageMedia = EditMessageMedia
{ chatId :: Maybe ChatId,
messageId :: Maybe Int,
inlineMessageId :: Maybe Text,
media :: Input... | |
c94a0ac220cc8d26f36f68d8b205d29fcd2057a41c6f3b3afad7c2d621b275ba | GoNZooo/gotyno-hs | hasGeneric.hs | {-# LANGUAGE StrictData #-}
# LANGUAGE TemplateHaskell #
module GotynoOutput.HasGeneric where
import Data.Aeson (FromJSON (..), ToJSON (..))
import qualified Data.Aeson as JSON
import GHC.Generics (Generic)
import qualified Gotyno.Helpers as Helpers
import Qtility
import qualified GotynoDeclarations.External as Exte... | null | https://raw.githubusercontent.com/GoNZooo/gotyno-hs/722f1856e9d55d5f43ccb0938c5933472f9eef07/test/reference-output/hasGeneric.hs | haskell | # LANGUAGE StrictData # | # LANGUAGE TemplateHaskell #
module GotynoOutput.HasGeneric where
import Data.Aeson (FromJSON (..), ToJSON (..))
import qualified Data.Aeson as JSON
import GHC.Generics (Generic)
import qualified Gotyno.Helpers as Helpers
import Qtility
import qualified GotynoDeclarations.External as External
import qualified Gotyno... |
e4bfde03c5fa2012390d197dc073897e68e5be0ab1a4e384a8c872567bf6243d | satos---jp/mincaml_self_hosting | print_char.ml | print_char 65;
print_char 10
| null | https://raw.githubusercontent.com/satos---jp/mincaml_self_hosting/5fdf8b5083437d7607a924142eea52d9b1de0439/test/print_char.ml | ocaml | print_char 65;
print_char 10
| |
a6e940d55557b662bcbe4e358a3207fc1c9c595a93cd90adc1a068eb4f0c0f82 | footprintanalytics/footprint-web | initialize.clj | (ns metabase.test.initialize
"Logic for initializing different components that need to be initialized when running tests."
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[metabase.config :as config]
[metabase.plugins.classloader :as classloader]
[m... | null | https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/test/initialize.clj | clojure | `:plugins` initialization is ok when loading test namespaces. Nothing else is tho (e.g. starting up the
initialize test drivers that are not shipped as part of the product
this is needed because if DRIVERS=all in the environment, then only the directories within modules are searched to
determine the set of availabl... | (ns metabase.test.initialize
"Logic for initializing different components that need to be initialized when running tests."
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[metabase.config :as config]
[metabase.plugins.classloader :as classloader]
[m... |
102ffe0b723d71e2cef2fc63592ff0f247389062300540d8fcb03b2c06d02e35 | boxp/spellcard | example-endpoint.clj | (ns {{name}}.app.my-webapp.endpoint
(:require [com.stuartsierra.component :as component]
[compojure.core :refer [defroutes context GET POST routes]]
[compojure.route :as route]
[ring.adapter.jetty :as server]
[ring.middleware.json :refer [wrap-json-params
... | null | https://raw.githubusercontent.com/boxp/spellcard/0ad124a276e3e7003967eb3ae9ffdf1b572e4a2a/resources/leiningen/new/spellcard/example-endpoint.clj | clojure | (ns {{name}}.app.my-webapp.endpoint
(:require [com.stuartsierra.component :as component]
[compojure.core :refer [defroutes context GET POST routes]]
[compojure.route :as route]
[ring.adapter.jetty :as server]
[ring.middleware.json :refer [wrap-json-params
... | |
a2712aed8ce96310854b873ab0509a1f7ad929a40331579213780b3d7295847c | matthewhammer/ceal | cabshelper.ml |
open Cabs
let nextident = ref 0
let getident () =
nextident := !nextident + 1;
!nextident
let currentLoc () =
let l, f, c = Errormsg.getPosition () in
{ lineno = l;
filename = f;
byteno = c;
ident = getident ();}
let cabslu = {lineno = -10;
filename = "cabs loc unknown";
... | null | https://raw.githubusercontent.com/matthewhammer/ceal/cc67ef1ad336649b2362c39faaccdd08ba59d728/cil/src/frontc/cabshelper.ml | ocaml | clexer puts comments here
********** HELPER FUNCTIONS ********* |
open Cabs
let nextident = ref 0
let getident () =
nextident := !nextident + 1;
!nextident
let currentLoc () =
let l, f, c = Errormsg.getPosition () in
{ lineno = l;
filename = f;
byteno = c;
ident = getident ();}
let cabslu = {lineno = -10;
filename = "cabs loc unknown";
... |
aa7e630ff4f3f4e669ea3dc0b913121a9ed7db38e44f42849315c938feeb5bea | basho/riak_function_contrib | bucket_reloader.erl | -module(bucket_reloader).
%% -------------------------------------------------------------------
%%
%%
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 License at
%%
%% -2.0
%%... | null | https://raw.githubusercontent.com/basho/riak_function_contrib/bad124ac39c72eb6ed85e6f30cfc779515e4e612/other/erlang/bucket_reloader.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 permission... | -module(bucket_reloader).
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
-export([reload/4,
reload/5]).
reload(FromSer... |
b41809e298c14c75420642cf79a02e8b91441b0acd8a39e5660ce8486ea5e8f6 | ivanperez-keera/haskanoid | Levels.hs | -- | Level definition
--
-- This module includes the definition of the levels.
--
-- Each level has:
--
-- - Logical properties (defined in 'blockDescS').
--
-- - Multimedia properties (a background and audio file).
--
-- Together they form 'levels'.
module Levels where
import Control.Arrow ((***), first)
import D... | null | https://raw.githubusercontent.com/ivanperez-keera/haskanoid/cb50205bd8e1ec92eae3b689c1e4f3f2c260367d/src/Levels.hs | haskell | | Level definition
This module includes the definition of the levels.
Each level has:
- Logical properties (defined in 'blockDescS').
- Multimedia properties (a background and audio file).
Together they form 'levels'.
* Levels
** Level specification
^ Block positions and block lives
^ Background imag... | module Levels where
import Control.Arrow ((***), first)
import Data.List (nub)
import Physics.TwoDimensions.Dimensions
import Constants
import Resources
data LevelSpec = LevelSpec
}
numLevels :: Int
numLevels = length levels
levels :: [LevelSpec]
LevelSpec { blockCfgs = blockDescS 0
... |
16197d6f6eaf7b36242e4ef730cff65f1e86df8690d776f1acd9f08e7630bbba | onedata/op-worker | sequencer_out_stream.erl | %%%-------------------------------------------------------------------
@author
( C ) 2015 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%-------------------------------------------------------------------
%%% @doc
%%% This module implements gen_server ... | null | https://raw.githubusercontent.com/onedata/op-worker/b09f05b6928121cec4d6b41ce8037fe056e6b4b3/src/modules/communication/sequencer/sequencer_out_stream.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
@doc
This module implements gen_server behaviour and is responsible for storing
outgoing stream messages and resending them on request. It is supervised by
sequencer stream ... | @author
( C ) 2015 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
-module(sequencer_out_stream).
-author("Krzysztof Trzepla").
-behaviour(gen_server).
-include("global_definitions.hrl").
-include("proto/oneclient/client_messages.hrl").
-include("proto/oneclient/... |
633be6dcf4f692b09957b5b5c2d4335d71f87ef8911fddf6a13cd3f7c80ff448 | quek/paiprolog | eliza.lisp | ;;; -*- Mode: Lisp; Syntax: Common-Lisp; -*-
;;; Code from Paradigms of Artificial Intelligence Programming
Copyright ( c ) 1991
File eliza.lisp : Advanced version of .
;;; Has more rules, and accepts input without parens.
(requires "eliza1")
;;; ==============================
(defun read-line-no-punct ()
... | null | https://raw.githubusercontent.com/quek/paiprolog/012d6bb255d8af7f1c8b1d061dcd8a474fb3b57a/eliza.lisp | lisp | -*- Mode: Lisp; Syntax: Common-Lisp; -*-
Code from Paradigms of Artificial Intelligence Programming
Has more rules, and accepts input without parens.
==============================
==============================
==============================
==============================
============================== | Copyright ( c ) 1991
File eliza.lisp : Advanced version of .
(requires "eliza1")
(defun read-line-no-punct ()
"Read an input line, ignoring punctuation."
(read-from-string
(concatenate 'string "(" (substitute-if #\space #'punctuation-p
(read-line))
... |
a0401d5f62aa37260c6f062b788ea36a0a990be8dd6cc2503ab296075c069d6c | pixlsus/registry.gimp.org_static | Low_Frequency_Even_2.x.scm | ;
; Even Low Frequency plugin for the GIMP (an image manipulation program)
Version : 1.1 ( 09.IX.2010 )
Author : ( )
;
This is version for GIMP 2.x
For use with GIMP 2.7 or you need to download script dedicated for this version .
; For newest versions or updates check:
;
; Changelog:
Version 1.1
; ... | null | https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/Low_Frequency_Even_2.x.scm | scheme |
Even Low Frequency plugin for the GIMP (an image manipulation program)
For newest versions or updates check:
Changelog:
- "tmp-layer error" fixed
- Initial release
License:
This program is free software; you can redistribute it and/or modify
either version 2 of the License , or
(at your option)... | Version : 1.1 ( 09.IX.2010 )
Author : ( )
This is version for GIMP 2.x
For use with GIMP 2.7 or you need to download script dedicated for this version .
Version 1.1
- Added GIMP 2.7 support ( you need to download it )
Version 1.0
it under the terms of the GNU General Public License as publis... |
b6dbff0cf90a7ab20fe416fd8155f30219b0ef76bea90356780fc83839bea787 | conreality/conreality | config.mli | (* This is free and unencumbered software released into the public domain. *)
(** Configuration. *)
module Devices : sig
#include "config/devices.mli"
end
module Network : sig
#include "config/network.mli"
end
type t = {
devices: Devices.t;
network: Network.t;
}
val create : unit -> t
val load_file : strin... | null | https://raw.githubusercontent.com/conreality/conreality/e03328ef1f0056b58e4ffe181a279a1dc776e094/src/consensus/config.mli | ocaml | This is free and unencumbered software released into the public domain.
* Configuration. |
module Devices : sig
#include "config/devices.mli"
end
module Network : sig
#include "config/network.mli"
end
type t = {
devices: Devices.t;
network: Network.t;
}
val create : unit -> t
val load_file : string -> t
|
229995a1d935b690f11f12e95612c1efcfd7a0e8a83712fd42276b7af83e560c | xapi-project/xen-api | xapi_guard_test.ml | open Xapi_guard
open Varstored_interface
open Alcotest_lwt
open Lwt.Syntax
open Xen_api_lwt_unix
module D = Debug.Make (struct let name = "xapi-guard-test" end)
let expected_session_id : [`session] Ref.t = Ref.make ()
let vm : [`VM] Ref.t = Ref.make ()
let vm_bad : [`VM] Ref.t = Ref.make ()
let nvram_contents = re... | null | https://raw.githubusercontent.com/xapi-project/xen-api/1fd731c3363232a49e6d1a3823473d4dab5765a6/ocaml/xapi-guard/test/xapi_guard_test.ml | ocaml | Create an internal server on 'path', the socket that varstored/swtpm would connect to
rpc simulates what varstored/swtpm would do
not strictly necessary to login/logout here - since we only get dummy sessions
xapi-guard filters API calls, and ignores VM / session refs, and replaces it
with the ref the daemon ... | open Xapi_guard
open Varstored_interface
open Alcotest_lwt
open Lwt.Syntax
open Xen_api_lwt_unix
module D = Debug.Make (struct let name = "xapi-guard-test" end)
let expected_session_id : [`session] Ref.t = Ref.make ()
let vm : [`VM] Ref.t = Ref.make ()
let vm_bad : [`VM] Ref.t = Ref.make ()
let nvram_contents = re... |
31967ddeab54e1d5200c326c4fe850c8f244a334aae539bd419844b00ae6224b | Rotaerk/vulkanTest | PhysicalDevice.hs | module Graphics.VulkanAux.PhysicalDevice where
import Prelude.Local
import Control.Monad.IO.Class
import Data.Bits
import Data.Function
import Graphics.Vulkan.Core_1_0
import Graphics.Vulkan.Ext.VK_KHR_surface
import Graphics.Vulkan.Marshal.Create.DataFrame
import Graphics.VulkanAux.Array
import Graphics.VulkanAux.Ar... | null | https://raw.githubusercontent.com/Rotaerk/vulkanTest/27891ac74e4b8eae5dffeb25118be0b4b9516bc7/sandbox/sandbox/src/Graphics/VulkanAux/PhysicalDevice.hs | haskell | module Graphics.VulkanAux.PhysicalDevice where
import Prelude.Local
import Control.Monad.IO.Class
import Data.Bits
import Data.Function
import Graphics.Vulkan.Core_1_0
import Graphics.Vulkan.Ext.VK_KHR_surface
import Graphics.Vulkan.Marshal.Create.DataFrame
import Graphics.VulkanAux.Array
import Graphics.VulkanAux.Ar... | |
d5166d875e354615e2f7d0160573eee89a901c09dcb95d9689e0b4cd62167e3f | hirokai/PaperServer | PaperListW2UI.hs | # LANGUAGE DoAndIfThenElse , TemplateHaskell #
--
-- Handler.PaperListW2UI
-- Returns JSON that is specific to w2ui library.
--
module Handler.PaperListW2UI where
import Import
import qualified Data.Text as T
import Safe
import Handler.Utils
import Model.PaperReader
import Model.PaperMongo
import Database.MongoDB... | null | https://raw.githubusercontent.com/hirokai/PaperServer/b577955af08660253d0cd11282cf141d1c174bc0/Handler/PaperListW2UI.hs | haskell |
Handler.PaperListW2UI
Returns JSON that is specific to w2ui library.
Returns all papers
This returns JSON for w2ui library.
FIXME: parse the arguments correctly.
liftIO $ print $ fst body
rreq <- parseJsonBody
Error _ -> Nothing
backup <- myparseJson
sendGridJson (mreq <|> backup)
This is adhoc... | # LANGUAGE DoAndIfThenElse , TemplateHaskell #
module Handler.PaperListW2UI where
import Import
import qualified Data.Text as T
import Safe
import Handler.Utils
import Model.PaperReader
import Model.PaperMongo
import Database.MongoDB ((=:))
import qualified Database.MongoDB as DB
import Data.Bson ((!?))
import q... |
9d0f056b42fedbe158d5b6c93c7958b2e6e42a0adda572a29059f258c01f7711 | jerrypnz/clj.tr069 | test_util.clj | (ns clj.tr069.test-util)
(defmacro with-private-fns [[ns fns] & tests]
"Refers private fns from ns and runs tests in context."
`(let ~(reduce #(conj %1 %2 `(ns-resolve '~ns '~%2)) [] fns)
~@tests)) | null | https://raw.githubusercontent.com/jerrypnz/clj.tr069/5f3361490b3c69d43842e68f74cd92b6b90cd7cd/test/clj/tr069/test_util.clj | clojure | (ns clj.tr069.test-util)
(defmacro with-private-fns [[ns fns] & tests]
"Refers private fns from ns and runs tests in context."
`(let ~(reduce #(conj %1 %2 `(ns-resolve '~ns '~%2)) [] fns)
~@tests)) | |
38c8afb32e32964a8788d3c90f96ede52e54c1a74770010f011020f4989a65db | oasis-open/openc2-lycan-beam | semantics_SUITE.erl | @author
( C ) 2018 , sFractal Consulting LLC
%%%
-module(semantics_SUITE).
-author("Duncan Sparrell").
-license("MIT").
-copyright("2018, Duncan Sparrell sFractal Consulting LLC").
%%%-------------------------------------------------------------------
Copyright ( c ) 2018 , , sFractal Consulting
MIT Licen... | null | https://raw.githubusercontent.com/oasis-open/openc2-lycan-beam/c8a580eb79a46cb3fa7db0d6576bfa23eb78c943/haga/erlang/haga/apps/haga/test/semantics_SUITE.erl | erlang |
-------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or
Software... | @author
( C ) 2018 , sFractal Consulting LLC
-module(semantics_SUITE).
-author("Duncan Sparrell").
-license("MIT").
-copyright("2018, Duncan Sparrell sFractal Consulting LLC").
Copyright ( c ) 2018 , , sFractal Consulting
MIT License
( the " Software " ) , to deal in the Software without restriction ,
... |
a852e12934db6864554ad526c1aa4d40efab74bcdbe3f3ea01cf308d1ee9cb47 | DavidAlphaFox/aiwiki | ctrl_topic.erl | -module(ctrl_topic).
-export([init/2]).
-export([content_types_accepted/2,
content_types_provided/2,
allow_missing_post/2,
resource_exists/2,
allowed_methods/2,
malformed_request/2,
forbidden/2,
options/2]).
-export([handle_action/2]).
init(Req, State) ->... | null | https://raw.githubusercontent.com/DavidAlphaFox/aiwiki/3a2a78668d4a708fda4af35430f25a69c4b91a7e/src/controller/ctrl_topic.erl | erlang | -module(ctrl_topic).
-export([init/2]).
-export([content_types_accepted/2,
content_types_provided/2,
allow_missing_post/2,
resource_exists/2,
allowed_methods/2,
malformed_request/2,
forbidden/2,
options/2]).
-export([handle_action/2]).
init(Req, State) ->... | |
5f36f6efa28e4e7184cf4a22225ac64ad8d8dcc1f9fe4115e61d1fbc256a9899 | tengstrand/lein-polylith | create_system_test.clj | (ns leiningen.polylith.cmd.create-system-test
(:require [clojure.test :refer :all]
[leiningen.polylith :as polylith]
[leiningen.polylith.cmd.diff]
[leiningen.polylith.cmd.test-helper :as helper]
[leiningen.polylith.file :as file]
[leiningen.polylith.version ... | null | https://raw.githubusercontent.com/tengstrand/lein-polylith/27bf508a7b4806e4d2dfac01787e99edf2c1c306/test/leiningen/polylith/cmd/create_system_test.clj | clojure | (ns leiningen.polylith.cmd.create-system-test
(:require [clojure.test :refer :all]
[leiningen.polylith :as polylith]
[leiningen.polylith.cmd.diff]
[leiningen.polylith.cmd.test-helper :as helper]
[leiningen.polylith.file :as file]
[leiningen.polylith.version ... | |
6daf898f561c305fedad5a7716a95e2f8849bc946fa38eb890f3cc39454eff6e | maximedenes/native-coq | haskell.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/plugins/extraction/haskell.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
s Production of Haskell syntax.
s T... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open Errors
open Uti... |
80a35b38a9d4e6aae92f542a457c0507fe7d95d818cfbead6f5039b9e16537dc | katychuang/getting-started-with-haskell | clay-custom.hs | -- clay-custom.hs
-- This is an example of adding custom values using the other type class or
-- fallback operator `-:` to explicitly specify values
-- -web-programming/news.html
{-# LANGUAGE OverloadedStrings #-}
import Clay
main :: IO ()
main = putCss $
body ?
do fontSize (other "11pt !important")
... | null | https://raw.githubusercontent.com/katychuang/getting-started-with-haskell/98cbead7a720a210043d027b1acb7bb73a8ef46b/tutorials/clay/clay-custom.hs | haskell | clay-custom.hs
This is an example of adding custom values using the other type class or
fallback operator `-:` to explicitly specify values
-web-programming/news.html
# LANGUAGE OverloadedStrings # |
import Clay
main :: IO ()
main = putCss $
body ?
do fontSize (other "11pt !important")
"border" -: "0"
|
c61c0b16568fa7e33514892582f5627ee1dffc7b7f0b5eb0e39b3add5b4b0d58 | rtrusso/scp | lambda1.scm | (define (foo x)
(foo x)
(foo x))
(display 1)
(newline)
| null | https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/lambda1.scm | scheme | (define (foo x)
(foo x)
(foo x))
(display 1)
(newline)
| |
d827b3f2ec25868837c0840318989095e267a3726350c5eb50d542caa608a0f5 | songyahui/AlgebraicEffect | fixpoint_infinite2.ml | effect Foo : (unit -> unit)
effect Goo : (unit -> unit)
let res f
(*@ requires emp, eff(f)= _^* -> Foo.Q(Foo ()) @*)
(*@ ensures (Foo.Goo)^w @*)
= match f () with
| _ -> ()
| effect Foo k -> continue k
(fun () -> perform Goo ())
| effect Goo k -> continue k
(fun () -> perform Foo ())
| null | https://raw.githubusercontent.com/songyahui/AlgebraicEffect/27688952b598a101a27523be796e8011d70b02de/src/programs.t/fixpoint_infinite2.ml | ocaml | @ requires emp, eff(f)= _^* -> Foo.Q(Foo ()) @
@ ensures (Foo.Goo)^w @ | effect Foo : (unit -> unit)
effect Goo : (unit -> unit)
let res f
= match f () with
| _ -> ()
| effect Foo k -> continue k
(fun () -> perform Goo ())
| effect Goo k -> continue k
(fun () -> perform Foo ())
|
a8928fb321f9527eee0824ea32b42c0be3173cd93deca6ba0b5bb6fb8b953290 | kfsm/pipe | process.erl | %% @doc
%% Example process to feature supervisor behavior
-module(process).
-behaviour(pipe).
-export([
start_link/0,
init/1,
free/2,
handle/3
]).
start_link() ->
pipe:start_link(?MODULE, [], []).
init(_) ->
error_logger:info_report([
{stage, self()}
]),
{ok, handle, undefined}.
fre... | null | https://raw.githubusercontent.com/kfsm/pipe/aa38648c477aacbc71af03d4651834eb386a39be/examples/supervisor/src/process.erl | erlang | @doc
Example process to feature supervisor behavior | -module(process).
-behaviour(pipe).
-export([
start_link/0,
init/1,
free/2,
handle/3
]).
start_link() ->
pipe:start_link(?MODULE, [], []).
init(_) ->
error_logger:info_report([
{stage, self()}
]),
{ok, handle, undefined}.
free(_, _) ->
ok.
handle(Msg, Pipe, State) ->
error_logg... |
b39f17b69d30eb95eb7d2a49c076fc64662acab187db97ea05aa92905eab3f9a | blakemcbride/LispEdit | LispEdit.lisp | Common Lisp Structure Editor
The editor code was taken from the structure editor in LISPF4 and is :
Copyright ( c ) 1984 Dr. , , , Dr. ,
, and
;; All rights reserved.
;; It was subsequently enhanced and converted to Common Lisp by:
Copyright ( c ) 2015 ( )
... | null | https://raw.githubusercontent.com/blakemcbride/LispEdit/27b3de86fc012f8b3e0146b0c283738d38d195de/LispEdit.lisp | lisp | All rights reserved.
It was subsequently enhanced and converted to Common Lisp by:
It is released under the license that accompanies this file.
(COMMON-LISP:DEFMACRO DEFMACRO (&REST ARGS)
(COMMON-LISP:DEFMACRO ,(CAR ARGS)
',(CAR ARGS))) | Common Lisp Structure Editor
The editor code was taken from the structure editor in LISPF4 and is :
Copyright ( c ) 1984 Dr. , , , Dr. ,
, and
Copyright ( c ) 2015 ( )
(CL:DEFPACKAGE "LISPEDIT"
(:USE "COMMON-LISP")
(:SHADOW "DEFMACRO"
"DEFUN"
"LOA... |
8b216632b7dc720e967805a1d0037c56814e5f6f191a1657d9a2cbc876babb08 | ciste/ciste | config_test.clj | (ns ciste.config-test
(:require [ciste.config :refer [get-host-address merge-config]]
[midje.sweet :refer [contains fact =>]]))
(fact "#'ciste.config/get-host-address"
(fact "should return a string"
(get-host-address) => string?))
(fact "#'ciste.config/merge-config"
(let [m1 {:key1 "value1"
... | null | https://raw.githubusercontent.com/ciste/ciste/fac15456f9f00867c0073b7e55e5e8b5cd4a902d/test/ciste/config_test.clj | clojure | (ns ciste.config-test
(:require [ciste.config :refer [get-host-address merge-config]]
[midje.sweet :refer [contains fact =>]]))
(fact "#'ciste.config/get-host-address"
(fact "should return a string"
(get-host-address) => string?))
(fact "#'ciste.config/merge-config"
(let [m1 {:key1 "value1"
... | |
93badfa91c93bce332bd8a73310c2aa0ec237524c1f18f3d8657bc877e6c3da3 | expipiplus1/vulkan | Name.hs | module Spec.Name
where
import Relude
newtype CName = CName { unCName :: Text }
deriving stock (Eq, Ord)
deriving newtype (Show, IsString, Hashable)
| null | https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/generate-new/src/Spec/Name.hs | haskell | module Spec.Name
where
import Relude
newtype CName = CName { unCName :: Text }
deriving stock (Eq, Ord)
deriving newtype (Show, IsString, Hashable)
| |
f963c553a87044104b42eb861fe8aad90619b96e4ae6ce102c0ca85f6f4f1a11 | dto/cypress | town.lisp | (in-package :cypress)
(defparameter *house-images* (image-set "house" 3))
(defthing house
:scale 1.4
:tags '(:solid :fixed)
:image (random-choose *house-images*))
(define (nothbehem scene)
:background-image "stone-road.png"
:cold 0)
(defparameter *ask-lucius-hint*
"Talk to Lucius for help on finding
his... | null | https://raw.githubusercontent.com/dto/cypress/c33c26f8bf470dbd74b14ed5afa2cbf25aea0ca6/town.lisp | lisp | (in-package :cypress)
(defparameter *house-images* (image-set "house" 3))
(defthing house
:scale 1.4
:tags '(:solid :fixed)
:image (random-choose *house-images*))
(define (nothbehem scene)
:background-image "stone-road.png"
:cold 0)
(defparameter *ask-lucius-hint*
"Talk to Lucius for help on finding
his... | |
ef89db8dbd2e0e3f2e30aacefdc2cdc9812cc45a2c4b76040ecd531f27d74702 | pokepay/aws-sdk-lisp | api.lisp | ;; DO NOT EDIT: File is generated by AWS-SDK/GENERATOR.
(common-lisp:defpackage #:aws-sdk/services/events/api
(:use)
(:nicknames #:aws/events)
(:import-from #:aws-sdk/generator/shape)
(:import-from #:aws-sdk/generator/operation)
(:import-from #:aws-sdk/api)
(:import-from #:aws-sdk/request)
(:import-from ... | null | https://raw.githubusercontent.com/pokepay/aws-sdk-lisp/ad9a8f9294a9799cef5f4d85e0cd34eca418be24/services/events/api.lisp | lisp | DO NOT EDIT: File is generated by AWS-SDK/GENERATOR. |
(common-lisp:defpackage #:aws-sdk/services/events/api
(:use)
(:nicknames #:aws/events)
(:import-from #:aws-sdk/generator/shape)
(:import-from #:aws-sdk/generator/operation)
(:import-from #:aws-sdk/api)
(:import-from #:aws-sdk/request)
(:import-from #:aws-sdk/error))
(common-lisp:in-package #:aws-sdk/serv... |
d2aba9ad3fbfd8f0757a7c756d76ada9af247698e162cdec0dfe4262befaf14e | c-cube/ocaml-containers | t_eq.ml | open CCEqual
module T = (val Containers_testlib.make ~__FILE__ ())
include T;;
q
Q.(
let p = small_list (pair small_int bool) in
pair p p)
(fun (l1, l2) -> (list (pair int bool)) l1 l2 = (l1 = l2))
| null | https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/tests/core/t_eq.ml | ocaml | open CCEqual
module T = (val Containers_testlib.make ~__FILE__ ())
include T;;
q
Q.(
let p = small_list (pair small_int bool) in
pair p p)
(fun (l1, l2) -> (list (pair int bool)) l1 l2 = (l1 = l2))
| |
41b5c996cd15187fb15cacf82622f949d082e65da3a12723bb322ecb720dacb9 | angavrilov/cl-gpu | unnest.lisp | ;;; -*- mode: Lisp; Syntax: Common-Lisp; -*-
;;;
Copyright ( c ) 2010 by .
;;;
;;; See LICENCE for details.
;;;
;;; This file defines a transformation that pulls
;;; forms mapped to C statements out of expressions.
;;;
(in-package :cl-gpu)
;;; Predicate that determines if a node is a statement
(def layered-funct... | null | https://raw.githubusercontent.com/angavrilov/cl-gpu/1523ec3c42db904815f7276a776d354ec30c6b7b/core/unnest.lisp | lisp | -*- mode: Lisp; Syntax: Common-Lisp; -*-
See LICENCE for details.
This file defines a transformation that pulls
forms mapped to C statements out of expressions.
Predicate that determines if a node is a statement
Body
Built-in functions:
Special forms:
blocks
override
if
control transfer
function ca... | Copyright ( c ) 2010 by .
(in-package :cl-gpu)
(def layered-function is-statement-call? (name type form)
(:method (name type form)
(declare (ignore name type form))
nil))
(def layered-function is-statement-assn? (name type form)
(:method (name type form)
(declare (ignore name type form))
nil... |
f3123bd92c8ea497f3428b8a272a1cee40a1409dc7062378332439766dd8d15f | geoffder/olm-ml | generate_ml_functions.ml | let () =
Cstubs.write_ml
Format.std_formatter
~prefix:Sys.argv.(1)
(module Olm_c_function_descriptions.Descriptions);
| null | https://raw.githubusercontent.com/geoffder/olm-ml/6ab791c5f4cacb54cf8939d78bd2a6820ec136b3/olm/c/generate_ml_functions.ml | ocaml | let () =
Cstubs.write_ml
Format.std_formatter
~prefix:Sys.argv.(1)
(module Olm_c_function_descriptions.Descriptions);
| |
cf3804fe0c1a3952d3304144b384fd479afcba90a04b8dda5343e93a50187a78 | kupl/FixML | comp.ml | open Lang
open Util
(*
******************************************************
Code for extract syntactic components from correct code
******************************************************
*)
let rec find_component : exp-> components -> components
= fun e comps->
match e with
| Const _ | TRUE | FALSE | String... | null | https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/engine/comp.ml | ocaml |
******************************************************
Code for extract syntactic components from correct code
******************************************************
| open Lang
open Util
let rec find_component : exp-> components -> components
= fun e comps->
match e with
| Const _ | TRUE | FALSE | String _ -> BatSet.add e comps
| ADD (e1,e2) ->
let comps = find_component e1 comps in
let comps = find_component e2 comps in
(BatSet.add (ADD (Hole (0),Hole (0))) comps... |
5ed04a52559cb58815d9976d03adaef2a4a1c1c49af6a6ea3bba470b34427152 | zotonic/zotonic | m_mailinglist.erl | @author < >
2009 - 2023
@doc Mailinglist model .
Copyright 2009 - 2023
%%
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 applic... | null | https://raw.githubusercontent.com/zotonic/zotonic/7555d4734a3658c0c1231b45290fd99f5c21d0c0/apps/zotonic_mod_mailinglist/src/models/m_mailinglist.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | @author < >
2009 - 2023
@doc Mailinglist model .
Copyright 2009 - 2023
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(m_mailinglist).
-author("Marc Worrell <").
-behaviour(zotonic_model).
-export(... |
ded596535f542e9d205156ba9d8385d919202915e23a5dfa85744cbf020ee66a | slagyr/gaeshi | help.clj | (ns gaeshi.kuzushi.commands.help
(:require
[joodo.kuzushi.commands.help :as help]))
(def arg-spec help/arg-spec)
(defn parse-args [& args] (apply help/parse-args args))
(defn execute
"Prints help message for commands: gaeshi help <command>"
[options] (help/execute options))
| null | https://raw.githubusercontent.com/slagyr/gaeshi/a5677ed1c8d9269d412f07a7ab33bbc40aa7011a/lein-gaeshi/src/gaeshi/kuzushi/commands/help.clj | clojure | (ns gaeshi.kuzushi.commands.help
(:require
[joodo.kuzushi.commands.help :as help]))
(def arg-spec help/arg-spec)
(defn parse-args [& args] (apply help/parse-args args))
(defn execute
"Prints help message for commands: gaeshi help <command>"
[options] (help/execute options))
| |
14d27863aba47f97438e5bb68f689f8c07fc1908aee94566c84e395c986534c0 | hkoktay/the-little-schemer | chapter03.scm | Chapter 3 : Cons the Magnificant
(load "test-check.scm")
;; rember: [atom] [lat] -> [lat]
;; Returns a list of atoms [lat] with atom 'a' removed.
;; This version of 'rember' is not correct. See tests.
;;
Page 34
(define rember
(lambda (a lat)
(cond
((null? lat) '())
(else
(cond
((eq? ... | null | https://raw.githubusercontent.com/hkoktay/the-little-schemer/007e25153a4721a0cd6007c83cc8ce1305f6cf2a/chapter03.scm | scheme | rember: [atom] [lat] -> [lat]
Returns a list of atoms [lat] with atom 'a' removed.
This version of 'rember' is not correct. See tests.
Test rember
rember: [atom] [lat] -> [lat]
rember: [atom] [lat] -> [lat]
firsts: [s-exp] -> [s-exp]
Examples:
(firsts '()) -> '()
(firsts '((a b) (c) (d)) -> (a c d)
(fir... | Chapter 3 : Cons the Magnificant
(load "test-check.scm")
Page 34
(define rember
(lambda (a lat)
(cond
((null? lat) '())
(else
(cond
((eq? (car lat) a) (cdr lat))
(else (rember a (cdr lat))))))))
(test "rember" (rember 'a '(a b c)) '(b c))
(test "rember" (rember 'a '(b a c)) '(... |
9011f72d6aa5b8e7c1f9a6174f5df7d8892c88140cfe96f6133e1b2b8ac5efeb | mzp/coq-ruby | evd.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/pretyping/evd.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
$Id: evd.ml 11865 2009-01-28 17:34:... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open Util
open Nam... |
b8c9e119c57a4519046f591cd460b28b4e9ce511ff002ac9255d22d2d07789ca | dyzsr/ocaml-selectml | invariant_params.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/middle_end/flambda/invariant_params.ml | ocaml | ************************************************************************
OCaml
... | , OCamlPro
and ,
Copyright 2014 - -2016 Jane Street Group LLC
the GNU Lesser General Public License version 2.1 , with the
[@@@ocaml.warning "+a-4-9-30-40-41-42-66"]
open! Int_replace_polymor... |
cdf07dff64044aa71867e4b6c3c1157a7082ba7e3d09443c0fc9723842c9dbb6 | janestreet/ecaml | load.mli | * Loading a file of Lisp code means bringing its contents into the Lisp environment in
the form of Lisp objects . Emacs finds and opens the file , reads the text , evaluates
each form , and then closes the file .
[ ( Info - goto - node " ( elisp)Loading " ) ]
the form of Lisp objects. Emacs fi... | null | https://raw.githubusercontent.com/janestreet/ecaml/7c16e5720ee1da04e0757cf185a074debf9088df/src/load.mli | ocaml | * [(describe-function 'load)]
[(Info-goto-node "(elisp)How Programs Do Loading")]
* default is [true]
* [(describe-variable 'load-path)]
[(Info-goto-node "(elisp)Library Search")] | * Loading a file of Lisp code means bringing its contents into the Lisp environment in
the form of Lisp objects . Emacs finds and opens the file , reads the text , evaluates
each form , and then closes the file .
[ ( Info - goto - node " ( elisp)Loading " ) ]
the form of Lisp objects. Emacs fi... |
d9900405b8326daba49b3c22cb6af66bc33cb696d8ebd62a799d09ff66e03a3a | poroh/ersip | ersip_status.erl | %%
Copyright ( c ) 2017 , 2018 Dmitry Poroh
%% All rights reserved.
Distributed under the terms of the MIT License . See the LICENSE file .
%%
%% Response status codes
%%
-module(ersip_status).
-export([response_type/1,
reason_phrase/1,
bad_request_reason/1,
unsupported_uri_scheme_reaso... | null | https://raw.githubusercontent.com/poroh/ersip/3548962b87a51c733680cd2e3cefd6a0ec1d3f42/src/message/ersip_status.erl | erlang |
All rights reserved.
Response status codes
===================================================================
Types
===================================================================
===================================================================
API
========================================================... | Copyright ( c ) 2017 , 2018 Dmitry Poroh
Distributed under the terms of the MIT License . See the LICENSE file .
-module(ersip_status).
-export([response_type/1,
reason_phrase/1,
bad_request_reason/1,
unsupported_uri_scheme_reason/1
]).
-export_type([response_type/0,
... |
8ed8fce101b8aa7981e995564e9f138ebc909f93a851ff96018ea839535539f7 | stepcut/plugins | Process.hs | # LANGUAGE CPP #
--
-- | A Posix.popen compatibility mapping.
--
-- If we use this, we should build -threaded
--
module System.Plugins.Process (exec, popen) where
import System.Exit
import System.IO
import System.Process
import Control.Concurrent (forkIO)
import qualified Control.Exception as E
--
slight wra... | null | https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/src/System/Plugins/Process.hs | haskell |
| A Posix.popen compatibility mapping.
If we use this, we should build -threaded
Ignoring exit status for now.
XXX there are still issues. Large amounts of output can cause what
seems to be a dead lock on the pipe write from runplugs, for example.
Posix.popen doesn't have this problem, so maybe we can repr... | # LANGUAGE CPP #
module System.Plugins.Process (exec, popen) where
import System.Exit
import System.IO
import System.Process
import Control.Concurrent (forkIO)
import qualified Control.Exception as E
slight wrapper over popen for calls that do n't care about stdin to the program
exec :: String -> [String] ->... |
eb140e3fe0a6b625770d676e56062d03568bbbe4828c40077bc8bf32246cf709 | acl2/acl2 | hide.lisp | C Library
;
Copyright ( C ) 2023 Kestrel Institute ( )
Copyright ( C ) 2023 Kestrel Technology LLC ( )
;
License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 .
;
Author : ( )
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(in-package "C")
(i... | null | https://raw.githubusercontent.com/acl2/acl2/44f76f208004466a9e6cdf3a07dac98b3799817d/books/kestrel/c/atc/symbolic-execution-rules/hide.lisp | lisp | C Library
Copyright ( C ) 2023 Kestrel Institute ( )
Copyright ( C ) 2023 Kestrel Technology LLC ( )
License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 .
Author : ( )
(in-package "C")
(include-book "std/util/defrule" :dir :system)
(include-book "xdoc/constructors" :dir :sy... | |
1165383dd07d5f67385ef8698824ba288de073ddc3740ce694066ce6f6c3627f | nathanmarz/cascalog | operations_test.clj | (ns cascalog.cascading.operations-test
(:use clojure.test
midje.sweet
cascalog.cascading.operations
cascalog.cascading.flow
cascalog.cascading.tap
cascalog.cascading.util)
(:require [cascalog.cascading.io :as io]
[cascalog.logic.fn :as serfn]
[cascalog... | null | https://raw.githubusercontent.com/nathanmarz/cascalog/deaad977aa98985f68f3d1cc3e081d345184c0c8/cascalog-core/test/cascalog/cascading/operations_test.clj | clojure | (ns cascalog.cascading.operations-test
(:use clojure.test
midje.sweet
cascalog.cascading.operations
cascalog.cascading.flow
cascalog.cascading.tap
cascalog.cascading.util)
(:require [cascalog.cascading.io :as io]
[cascalog.logic.fn :as serfn]
[cascalog... | |
ee0f3ddeb163399fb0a8a177b01a08e77170593d1b3cbfe22e242950bab088a5 | ghc/nofib | Main.hs | module Main (main) -- wave4main
where {
import Control.Monad (replicateM_);
import System.Environment (getArgs);
partain : import Fast2haskell ;
#include "../Fast2haskell.hs"
strict_show_i::Int -> [Char];
strict_show_i x=miraseq x (show x);
strict_show_d::Double -> [Char];
strict_show_d x=mirase... | null | https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/spectral/hartel/wave4main/Main.hs | haskell | wave4main | where {
import Control.Monad (replicateM_);
import System.Environment (getArgs);
partain : import Fast2haskell ;
#include "../Fast2haskell.hs"
strict_show_i::Int -> [Char];
strict_show_i x=miraseq x (show x);
strict_show_d::Double -> [Char];
strict_show_d x=miraseq x (show x);
f_benchmark_m... |
cd112acb6c903b4902fd0f2c1d506f1f7711441d6d2686ef8efd26e65127fee4 | omnyway-labs/amplitude | graphql.cljs | (ns amplitude.graphql
(:refer-clojure :exclude [get list find delete])
(:require
[clojure.string :as str]
["@aws-amplify/api"
:as api
:default API]
[camel-snake-kebab.core :as csk]
[amplitude.log :as log]
[amplitude.config :as config]
[amplitude.util :as u]
[amplitude.cache :as cache]
... | null | https://raw.githubusercontent.com/omnyway-labs/amplitude/770cb8c003f62fee491a41605324d4ed67abb9f9/src/amplitude/graphql.cljs | clojure | (ns amplitude.graphql
(:refer-clojure :exclude [get list find delete])
(:require
[clojure.string :as str]
["@aws-amplify/api"
:as api
:default API]
[camel-snake-kebab.core :as csk]
[amplitude.log :as log]
[amplitude.config :as config]
[amplitude.util :as u]
[amplitude.cache :as cache]
... | |
cefa8c051928c9db82466236306b7dea84395600db88d306b66e5d89f7f76f1a | conjure-cp/conjure | Occurrence.hs | # LANGUAGE QuasiQuotes #
module Conjure.Rules.Vertical.MSet.Occurrence where
import Conjure.Rules.Import
import Conjure.Rules.Definition
rule_Comprehension :: Rule
rule_Comprehension = "mset-comprehension{Occurrence}" `Rule` theRule where
theRule z (Comprehension body gensOrConds) = do
(gocBefore, (pat,... | null | https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Rules/Vertical/MSet/Occurrence.hs | haskell | # LANGUAGE QuasiQuotes #
module Conjure.Rules.Vertical.MSet.Occurrence where
import Conjure.Rules.Import
import Conjure.Rules.Definition
rule_Comprehension :: Rule
rule_Comprehension = "mset-comprehension{Occurrence}" `Rule` theRule where
theRule z (Comprehension body gensOrConds) = do
(gocBefore, (pat,... | |
d713c30ec4d6b24843091e1ea3bd4d2a0936ee0314f36a88ea96194eb837d1e0 | YoEight/eventstore | EventStore.hs | --------------------------------------------------------------------------------
-- |
-- Module : Database.EventStore
Copyright : ( C ) 2019
-- License : (see the file LICENSE)
--
Maintainer : < >
-- Stability : provisional
-- Portability : non-portable
--
------------------------------------------------------... | null | https://raw.githubusercontent.com/YoEight/eventstore/8ca0f72acfc85b97de0a1862d38ee6e9f2ae2e4c/Database/EventStore.hs | haskell | ------------------------------------------------------------------------------
|
Module : Database.EventStore
License : (see the file LICENSE)
Stability : provisional
Portability : non-portable
------------------------------------------------------------------------------
* Connection
* Cluster Connection
* E... | Copyright : ( C ) 2019
Maintainer : < >
module Database.EventStore
Connection
, ConnectionType(..)
, Credentials
, Settings(..)
, Retry
, atMost
, keepRetrying
, credentials
, defaultSettings
, defaultSSLSettings
, connect
, shutdown
, waitTillClosed
, ... |
a710740185e2217ada846b351dae8d964ca4048ffaca659d767b763b98ab634b | metrics-clojure/metrics-clojure | core.clj | (ns metrics.jvm.core
(:import (com.codahale.metrics MetricRegistry)
(com.codahale.metrics.jvm ThreadStatesGaugeSet GarbageCollectorMetricSet FileDescriptorRatioGauge
MemoryUsageGaugeSet JvmAttributeGaugeSet))
(:require [metrics.core :refer [add-metric default-registr... | null | https://raw.githubusercontent.com/metrics-clojure/metrics-clojure/a1dbacc748a1f8165f0094e2229c84f228efe29b/metrics-clojure-jvm/src/metrics/jvm/core.clj | clojure | (ns metrics.jvm.core
(:import (com.codahale.metrics MetricRegistry)
(com.codahale.metrics.jvm ThreadStatesGaugeSet GarbageCollectorMetricSet FileDescriptorRatioGauge
MemoryUsageGaugeSet JvmAttributeGaugeSet))
(:require [metrics.core :refer [add-metric default-registr... | |
71cc62aa8e5d79ec03a99e9340ab4dae45c8f298e42048e88ddb4bf9a9fbbbc9 | haskell/hackage-security | HttpMem.hs | | HttpLib bridge to the in - memory repository
module TestSuite.HttpMem (
httpMem
) where
-- stdlib
import Network.URI (URI)
import qualified Data.ByteString.Lazy as BS.L
-- hackage-security
import Hackage.Security.Client
import Hackage.Security.Client.Repository.HttpLib
import Hackage.Security.Util.Checked
i... | null | https://raw.githubusercontent.com/haskell/hackage-security/048844cb006eb880e256d7393928d6fd422ab6dd/hackage-security/tests/TestSuite/HttpMem.hs | haskell | stdlib
hackage-security
------------------------------------------------------------------------------
Individual methods
------------------------------------------------------------------------------
| Download a file
Since we don't (yet?) make any attempt to simulate a cache, we ignore
caching headers.
| Dow... | | HttpLib bridge to the in - memory repository
module TestSuite.HttpMem (
httpMem
) where
import Network.URI (URI)
import qualified Data.ByteString.Lazy as BS.L
import Hackage.Security.Client
import Hackage.Security.Client.Repository.HttpLib
import Hackage.Security.Util.Checked
import Hackage.Security.Util.Pa... |
ad02869dc9de95896fbef26f29e3e2fa5e39218d0b4a14e940dac413b114676d | LPCIC/matita | predefined_virtuals.mli | val load_predefined_virtuals : unit -> unit
val load_predefined_classes : unit -> unit
| null | https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/matita/predefined_virtuals.mli | ocaml | val load_predefined_virtuals : unit -> unit
val load_predefined_classes : unit -> unit
| |
2007f54edf3fa58dd24bbc9a1910f0013df1f68853e1a2c42a5cd1322da55ee5 | archaelus/erms | erms_app.erl | %%%-------------------------------------------------------------------
@copyright Catalyst IT Ltd ( )
%%%
%%% File : erms_app.erl
Author : nt < >
%%% Description : ERMS application module
%%%
Created : 26 Sep 2006 by nt < >
%%%-------------------------------------------------------------------
-module... | null | https://raw.githubusercontent.com/archaelus/erms/5dbe5e79516a16e461e7a2a345dd80fbf92ef6fa/src/erms_app.erl | erlang | -------------------------------------------------------------------
File : erms_app.erl
Description : ERMS application module
-------------------------------------------------------------------
Application callbacks
====================================================================
Application callbacks
====... | @copyright Catalyst IT Ltd ( )
Author : nt < >
Created : 26 Sep 2006 by nt < >
-module(erms_app).
-include_lib("yaws_api.hrl").
-include_lib("yaws.hrl").
-include_lib("logging.hrl").
-behaviour(application).
-export([start/2, stop/1, start_phase/3]).
Function : start(Type , ) - > { ok , Pid } |
... |
2a9f13ab164854b6e102e44024a7b5d73944a8a9ecf5fd3d919d10f519c3fbcf | oltarasenko/erlang-node-discovery | erlang_node_discovery_sup.erl | -module(erlang_node_discovery_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
WorkersSup = {
erlang_node_discovery_worker_sup, {erlang_node_discovery_worker_sup, start_link, []},
permane... | null | https://raw.githubusercontent.com/oltarasenko/erlang-node-discovery/39ee515ede301260cca2ad913213b83262b1139c/src/erlang_node_discovery_sup.erl | erlang | -module(erlang_node_discovery_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init([]) ->
WorkersSup = {
erlang_node_discovery_worker_sup, {erlang_node_discovery_worker_sup, start_link, []},
permane... | |
eec67036e98183ed042b29533eb9317348da4ee0e6c4923fd67b0fed1016a674 | bennn/dissertation | array-struct.rkt | #lang typed/racket/base
(require (for-syntax racket/base syntax/parse)
(only-in racket/fixnum fx+ fx*)
require-typed-check
"typed-data.rkt")
(require/typed/check "array-utils.rkt"
[unsafe-array-index->value-index (-> Indexes Indexes Integer)]
[check-array-shape-size (-> Symbol Indexes I... | null | https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/math-test/synth/d-u/array-struct.rkt | racket | -- array-for-each
-- array-struct
This box's contents get replaced when the array we're constructing is made strict, so that
the array stops referencing f. If we didn't do this, long chains of array computations would
keep hold of references to all the intermediate procs, which is a memory leak.
strict; that's ok... | #lang typed/racket/base
(require (for-syntax racket/base syntax/parse)
(only-in racket/fixnum fx+ fx*)
require-typed-check
"typed-data.rkt")
(require/typed/check "array-utils.rkt"
[unsafe-array-index->value-index (-> Indexes Indexes Integer)]
[check-array-shape-size (-> Symbol Indexes I... |
025e4053134e38cd563e113a3ab71dcef2fe0428fea195cc9c9d37edfeb2af6d | arvyy/racket-raylib-2d | texture.rkt | #lang racket
(require raylib-2d
raylib-2d/util
raylib-2d/colors
pkg/lib
racket/generator
ffi/unsafe)
(InitWindow 800 600 "Texture test")
(SetTargetFPS 30)
(define brickimage (let ([im (LoadImage (collection-file-path "test/resources/tileablebrick.png" "raylib-2d"))])
... | null | https://raw.githubusercontent.com/arvyy/racket-raylib-2d/2f0b05f37e6bd81cf4246116c7d32f2744dc53c0/test/texture.rkt | racket | #lang racket
(require raylib-2d
raylib-2d/util
raylib-2d/colors
pkg/lib
racket/generator
ffi/unsafe)
(InitWindow 800 600 "Texture test")
(SetTargetFPS 30)
(define brickimage (let ([im (LoadImage (collection-file-path "test/resources/tileablebrick.png" "raylib-2d"))])
... | |
8843cc3ca42bebd6880d6af8c8d49167ee2b89b51583bde58ea2851e21258bf2 | def-/ghc-datasize | DataSize.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE MagicHash #
# LANGUAGE UnboxedTuples #
|
Module : GHC.DataSize
Copyright : ( c )
License : 3 - Clause BSD - style
Maintainer :
Module : GHC.DataSize
Copyright : (c) Dennis Felsing
License : 3-Clause BSD-style
Ma... | null | https://raw.githubusercontent.com/def-/ghc-datasize/a1eadfbcc3fbc35ae389af65274b87a15c117622/src/GHC/DataSize.hs | haskell | # LANGUAGE BangPatterns #
/
evaluated yet and only the size of the initial closure is returned.
size in memory is calculated, so shared values are only counted once.
Call with
@
@
Call with
@
@
size.
A garbage collection is performed before the size is calculated, because
the garbag... | # LANGUAGE MagicHash #
# LANGUAGE UnboxedTuples #
|
Module : GHC.DataSize
Copyright : ( c )
License : 3 - Clause BSD - style
Maintainer :
Module : GHC.DataSize
Copyright : (c) Dennis Felsing
License : 3-Clause BSD-style
Maintainer :
-}
module GHC.Da... |
f0cebbc01149e8d0af43a04beb6c26876536fe2868e85d9325006b2f118358fd | spawngrid/htoad | mock.erl | -module(mock).
-export([new_dictionary/0]).
new_dictionary() ->
meck:new(ec_dictionary_proper),
meck:expect(ec_dictionary_proper, dictionary, fun() ->
proper_types:union([ec_dict])
end).
| null | https://raw.githubusercontent.com/spawngrid/htoad/f0c7dfbd911b29fb0c406b7c26606f553af11194/deps/erlware_commons/test/mock.erl | erlang | -module(mock).
-export([new_dictionary/0]).
new_dictionary() ->
meck:new(ec_dictionary_proper),
meck:expect(ec_dictionary_proper, dictionary, fun() ->
proper_types:union([ec_dict])
end).
| |
16b02819939ff56de5e15a914c54365dd680798efba1e4d9a9b9e20d3ab3ef79 | digikar99/extensible-compound-types | special-forms.lisp | (in-package :extensible-compound-types-cl.impl)
(defun special-variable-p (var &optional env)
(eq :special (nth-value 0 (variable-information var env))))
(defun extract-declarations (declarations &rest names)
"Returns two values:
- extracted declaration
- remaining declarations"
(let ((ignored-variables (loop :... | null | https://raw.githubusercontent.com/digikar99/extensible-compound-types/bf5dd8e20106052c1cbb64be51e9216e5e7b3f67/src/cl/special-forms.lisp | lisp | skip over NIL type specifiers by mistake
Try to avoid checks for type parameters,
since we must have already checked for them.
Passing AUGMENTED-ENV to PREPARE-EXTYPE-CHECKS to check for types of FORMs
Passing AUGMENTED-ENV to PREPARE-EXTYPE-CHECKS to check for types of FORMs
Passing ENV to PREPARE-EXTYPE-CHECKS ... | (in-package :extensible-compound-types-cl.impl)
(defun special-variable-p (var &optional env)
(eq :special (nth-value 0 (variable-information var env))))
(defun extract-declarations (declarations &rest names)
"Returns two values:
- extracted declaration
- remaining declarations"
(let ((ignored-variables (loop :... |
834dd4b109f80938a39cd2cecbb6dbeab025be7d02d393c23ba8a7da9df989cd | cloudant/fabric | fabric_db_create.erl | Copyright 2010 Cloudant
%
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% -2.0
%
% Unless required by applicable law or agreed to in writing, software
distributed under the Lice... | null | https://raw.githubusercontent.com/cloudant/fabric/217d0b00bc4301bd834e76d902edf9c052e18b87/src/fabric_db_create.erl | erlang |
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
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitation... | Copyright 2010 Cloudant
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
-module(fabric_db_create).
-export([go/2]).
-include("fabric.hrl").
-include_lib("mem3/include/mem3.hrl").
-include_lib("couch/in... |
929eae5d97fd2bc0fda97a2d338ef45d833c8ea9ddf37e28a64c502779d99363 | casperschipper/ocaml-cisp | cisp5.ml | open Cisp
open Midi
open Seq
let sr = ref 44100.0
let channel = 1
(* this maps midi input msg to an output msg (raw midi) *)
let midiInputTestFun input =
input
|> trigger (st c3)
|> withPitch (seq [60;61] |> hold ([hold (st 10) (st 1); hold (st 1) (st 2)] |> ofList |> transcat))
|> withDur (ch... | null | https://raw.githubusercontent.com/casperschipper/ocaml-cisp/571ffb8e508c5427d01e407ba5e91ff2a4604f40/examples/cisp_backup/syncopation/cisp5.ml | ocaml | this maps midi input msg to an output msg (raw midi) | open Cisp
open Midi
open Seq
let sr = ref 44100.0
let channel = 1
let midiInputTestFun input =
input
|> trigger (st c3)
|> withPitch (seq [60;61] |> hold ([hold (st 10) (st 1); hold (st 1) (st 2)] |> ofList |> transcat))
|> withDur (ch [|425|])
|> withChan (st 5)
|> withVelo (st 100)
|> ... |
ce74e2475daac0a6911b1a215a8ff3b67155297db3ca53ec34c95df6b3c23a34 | bmeurer/ocaml-arm | printf.mli | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
and , projet Cris... | null | https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/stdlib/printf.mli | ocaml | *********************************************************************
OCaml
... | and , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ Id$
val fprintf : out_channel -> ('a, out_c... |
a75625b5ada55196bed66f90c7235a1b68be0f68105ea0f0747fe7491b012f4f | janestreet/shell | shell__line_buffer.mli | (** String buffers that automatically get flushed at every line return. *)
type t
* [ create ~eol f ]
Create a new line buffer where f will be called once on every line .
Eol is the endline character ( it 's possible to use a to
process null separated strings )
Create a new line buffer where ... | null | https://raw.githubusercontent.com/janestreet/shell/d3e2163268e29d468a8eaa3c9ab74a1f95486fab/src/shell__line_buffer.mli | ocaml | * String buffers that automatically get flushed at every line return.
*
[flush b] Flushes any pending output to the callback function.
This causes unfinished newlines to be flushed out so adding
more characters after flushing might result in there looking as though
there are more lines than there really we... |
type t
* [ create ~eol f ]
Create a new line buffer where f will be called once on every line .
Eol is the endline character ( it 's possible to use a to
process null separated strings )
Create a new line buffer where f will be called once on every line.
Eol is the endline character (it's... |
1d8cadc0536fb1e26aa2b39985b38f6f4987d4da683bb7a8db7a7b40654a6ea9 | paoloo/blockchain | impl.clj | (ns blockchain.impl
(:require [blockchain.core :as core]
[blockchain.proof :as proof]
[blockchain.nodes :as nodes]
[blockchain.utils :as utils]))
(def node-identifier (utils/uuidv4))
(defn get-node-id
[]
node-identifier)
(defn output-json
[status-code information]
{:stat... | null | https://raw.githubusercontent.com/paoloo/blockchain/ad8e60629e0349de173fdf42a789f13bdcb61c75/src/blockchain/impl.clj | clojure | (ns blockchain.impl
(:require [blockchain.core :as core]
[blockchain.proof :as proof]
[blockchain.nodes :as nodes]
[blockchain.utils :as utils]))
(def node-identifier (utils/uuidv4))
(defn get-node-id
[]
node-identifier)
(defn output-json
[status-code information]
{:stat... | |
1951698a6ccd4adc7cbfde90ee316a6bdd657e77429de349732bdd05f9c9ac29 | binaryage/chromex | background.cljs | (ns chromex-sample.background
(:require [chromex-sample.background.core :as core]
[chromex.support :refer [runonce]]))
(runonce
(core/init!))
| null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/examples/_shared/src/background/chromex_sample/background.cljs | clojure | (ns chromex-sample.background
(:require [chromex-sample.background.core :as core]
[chromex.support :refer [runonce]]))
(runonce
(core/init!))
| |
c9777e2a9d4d7a3258ba31c71b8e66b60f680ea1e169bb95a848ec2b36ca9ed0 | SimulaVR/godot-haskell | JSON.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.JSON
(Godot.Core.JSON.parse, Godot.Core.JSON.print) ... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/JSON.hs | haskell | | Converts a @Variant@ var to JSON text and returns the result. Useful for serializing data to store or send over the network.
Use @indent@ parameter to pretty print the output.
__Example output:__
@
{"name":"my_dictionary","version":"1.0.0","entities":@{"name":"entity_0","value":"v... | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.JSON
(Godot.Core.JSON.parse, Godot.Core.JSON.print) ... |
ba2620348e2c2eb9b117caa3ffd654c82e1a713a1fa45ff0d28eabee7730b9c0 | craigl64/clim-ccl | attributes.lisp | -*- Mode : LISP ; Syntax : Common - lisp ; Package : XLIB ; Base : 10 ; Lowercase : Yes -*-
;;; Window Attributes
;;;
TEXAS INSTRUMENTS INCORPORATED
;;; P.O. BOX 2909
AUSTIN , TEXAS 78769
;;;
Copyright ( C ) 1987 Texas Instruments Incorporated .
;;;
;;; Permission is granted to any individual... | null | https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/xlib/attributes.lisp | lisp | Syntax : Common - lisp ; Package : XLIB ; Base : 10 ; Lowercase : Yes -*-
Window Attributes
P.O. BOX 2909
Permission is granted to any individual or institution to use, copy, modify,
and distribute this software, provided that this complete copyright and
permission notice is maintained, intact, in all cop... |
TEXAS INSTRUMENTS INCORPORATED
AUSTIN , TEXAS 78769
Copyright ( C ) 1987 Texas Instruments Incorporated .
Texas Instruments Incorporated provides this software " as is " without
The special variable * window - attributes * is an alist :
ATTRIBUTES is NIL or a reply - buffer containing ... |
0ef5eefc7bffd9c89f579243b62d946ba6dfee84c9243a3de357e3407552b735 | plumatic/grab-bag | core_test.clj | (ns classify.core-test
(:use clojure.test plumbing.core)
(:require
[plumbing.io :as io]
[flop.map :as map]
[classify.core :as classify]
[classify.algorithms.max-ent :as max-ent]))
(def io-roundtrip (comp io/from-data io/to-data))
(deftest train-read-write-test
(let [data [[[[:0 1.0] [:1 1.0]] :0] [[... | null | https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/classify/test/classify/core_test.clj | clojure | (ns classify.core-test
(:use clojure.test plumbing.core)
(:require
[plumbing.io :as io]
[flop.map :as map]
[classify.core :as classify]
[classify.algorithms.max-ent :as max-ent]))
(def io-roundtrip (comp io/from-data io/to-data))
(deftest train-read-write-test
(let [data [[[[:0 1.0] [:1 1.0]] :0] [[... | |
b2c54dec1fc931391839ee130ce365218350f8d0d86dc681fa1d5833ddd77757 | erlangonrails/devdb | xml_appender.erl | -module(xml_appender).
-behaviour(gen_event).
-include("../include/log4erl.hrl").
-include_lib("kernel/include/file.hrl").
-import(log4erl_utils, [to_list/1, to_atom/1, to_int/1]).
%% gen_event callbacks
-export([init/1, handle_event/2, handle_call/2,
handle_info/2, terminate/2, code_change/3]).
-d... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/contrib/log4erl/src/xml_appender.erl | erlang | gen_event callbacks
where Name is the name of the element or attribute
Format is the format of the value
======================================
gen_event callback functions
======================================
Check Rot >= 0
Start xml
======================================
internal callback functions... | -module(xml_appender).
-behaviour(gen_event).
-include("../include/log4erl.hrl").
-include_lib("kernel/include/file.hrl").
-import(log4erl_utils, [to_list/1, to_atom/1, to_int/1]).
-export([init/1, handle_event/2, handle_call/2,
handle_info/2, terminate/2, code_change/3]).
-define(DEFAULT_XMLSPEC, [... |
62399e4aa9b034a8bbc288ed0b08c361a1ae304432029438a1a2258ad7818d48 | clash-lang/clash-compiler | Extra.hs | |
Copyright : ( C ) 2017 , Google Inc.
License : BSD2 ( see the file LICENSE )
Maintainer : < >
Copyright : (C) 2017, Google Inc.
License : BSD2 (see the file LICENSE)
Maintainer : Christiaan Baaij <>
-}
# OPTIONS_GHC -fno - warn - orphans #
module Clash.Annotations.To... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/clash-lib/src/Clash/Annotations/TopEntity/Extra.hs | haskell | |
Copyright : ( C ) 2017 , Google Inc.
License : BSD2 ( see the file LICENSE )
Maintainer : < >
Copyright : (C) 2017, Google Inc.
License : BSD2 (see the file LICENSE)
Maintainer : Christiaan Baaij <>
-}
# OPTIONS_GHC -fno - warn - orphans #
module Clash.Annotations.To... | |
0ec0be6d45bc71ca260346ef54b759905b343a0d979c7e6c1cf4a0536c74fa88 | kumarshantanu/lein-localrepo | project.clj | (defproject lein-localrepo "0.5.4"
:description "Leiningen local repository plugin"
:url "-localrepo"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/tools.cli "0.3.5"]]
:eval-in-leiningen true)
| null | https://raw.githubusercontent.com/kumarshantanu/lein-localrepo/a165fcc896b5be1a16d1108b7286d0cdb3cf4101/project.clj | clojure | (defproject lein-localrepo "0.5.4"
:description "Leiningen local repository plugin"
:url "-localrepo"
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/tools.cli "0.3.5"]]
:eval-in-leiningen true)
| |
33b828cb07a99043b31e83b1c492138587078692817b5d8dede2c18465dec8a1 | zelark/AoC-2020 | day_22.clj | (ns zelark.aoc-2020.day-22
(:require [clojure.java.io :as io]
[clojure.string :as str]))
--- Day 22 : Crab Combat ---
;;
(def input (slurp (io/resource "input_22.txt")))
(defn queue [coll] (into clojure.lang.PersistentQueue/EMPTY coll))
(defn parse-deck [s]
(->> (str/split-lines s)
(rest)
... | null | https://raw.githubusercontent.com/zelark/AoC-2020/5417c3514889eb02efc23f6be7d69e29fdfa0376/src/zelark/aoc_2020/day_22.clj | clojure | (ns zelark.aoc-2020.day-22
(:require [clojure.java.io :as io]
[clojure.string :as str]))
--- Day 22 : Crab Combat ---
(def input (slurp (io/resource "input_22.txt")))
(defn queue [coll] (into clojure.lang.PersistentQueue/EMPTY coll))
(defn parse-deck [s]
(->> (str/split-lines s)
(rest)
... | |
082c49bdb2057d87b0b139c0d34491679eb361ee58d279eeafea1fba3a4c4fa1 | DavidGregory084/il2ssd | bans.clj | (ns uk.org.il2ssd.event.bans
(:require [uk.org.il2ssd.state :as state]
[uk.org.il2ssd.jfx.ui :as ui]
[uk.org.il2ssd.server :as server]))
(defn get-bans
[]
(ui/clear-bans-data @state/control-instances)
(server/get-bans))
(defn lift-ban
[]
(let [{:keys [bans-table
ban... | null | https://raw.githubusercontent.com/DavidGregory084/il2ssd/d6baa5ff38f79878cd1921eaa4c494f2f9322557/src/clojure/uk/org/il2ssd/event/bans.clj | clojure | (ns uk.org.il2ssd.event.bans
(:require [uk.org.il2ssd.state :as state]
[uk.org.il2ssd.jfx.ui :as ui]
[uk.org.il2ssd.server :as server]))
(defn get-bans
[]
(ui/clear-bans-data @state/control-instances)
(server/get-bans))
(defn lift-ban
[]
(let [{:keys [bans-table
ban... | |
d66e9fa35c11ca1f551f9b4155780a181e25363411902c968d4b52a8b65b4e21 | logicmoo/wam_common_lisp | cmuutil.lsp | ;;;; -*- Mode: Lisp; Syntax: Common-Lisp; indent-tabs-mode: nil; Package: SYSTEM -*-
;;;; vim: set filetype=lisp tabstop=8 shiftwidth=2 expandtab:
;;;;
;;; *********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon Universit... | null | https://raw.githubusercontent.com/logicmoo/wam_common_lisp/4396d9e26b050f68182d65c9a2d5a939557616dd/prolog/wam_cl/src/lsp/cmuutil.lsp | lisp | -*- Mode: Lisp; Syntax: Common-Lisp; indent-tabs-mode: nil; Package: SYSTEM -*-
vim: set filetype=lisp tabstop=8 shiftwidth=2 expandtab:
*********************************************************************
*********************************************************************
The Collect macro:
This functio... |
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
(in-package "SI")
#+ecl-min
(defmacro handler-bind (bindings &body body)
`(progn ,@body))
Collect - Normal - Expander -- Internal
collection macros . N - Value... |
960d256a77b07ea42468dc174bd72f474fcf8a3ffe830c59c7780892a58f37dd | ocaml-sf/learn-ocaml-corpus | int32_split16.ml | let pigeonhole_sort (bound : int) (kvs : (int * 'v) list) : 'v list =
(* Create an array of buckets, each of which is initially empty. *)
assert (0 <= bound);
let bucket : 'v list array = Array.make bound [] in
(* Place every value into an appropriate bucket, according to its key. *)
List.iter (fun (k, v) ->
... | null | https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/generic_sorting/wrong/int32_split16.ml | ocaml | Create an array of buckets, each of which is initially empty.
Place every value into an appropriate bucket, according to its key.
Reverse the list stored in every bucket, so as to have a stable sort.
Concatenate all buckets.
The input list is empty. Return an empty output list.
The input list is a singleton.... | let pigeonhole_sort (bound : int) (kvs : (int * 'v) list) : 'v list =
assert (0 <= bound);
let bucket : 'v list array = Array.make bound [] in
List.iter (fun (k, v) ->
assert (0 <= k && k < bound);
bucket.(k) <- v :: bucket.(k)
) kvs;
for k = 0 to bound - 1 do
bucket.(k) <- List.rev bucket.(k)
d... |
10a7b0bfae47ed0bef8ec172c3973c6c666277830ce02805260256eba8719837 | diagrams/diagrams-core | Trace.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeFamilies ... | null | https://raw.githubusercontent.com/diagrams/diagrams-core/91b915b0640e1575d0236f323ffcd13221064094/src/Diagrams/Core/Trace.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE UndecidableInstances #
---------------------------------------------------------------------------
|
Module : Diagrams.Core.Trace
License : BSD-style (see LICENSE)
Maintainer :
@diagrams-core@ defines the core library of primitives
forming th... | # LANGUAGE CPP #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeFamilies #
# OPTIONS_GHC -fno - warn - unuse... |
da4a2e1579cb56e8448fbdf5b2ae4fb0cc2094e02cac220e7211be7024e778a1 | kblake/erlang-chat-demo | element_checkbox.erl | Nitrogen Web Framework for Erlang
Copyright ( c ) 2008 - 2010
See MIT - LICENSE for licensing information .
-module (element_checkbox).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, checkbox).
render_element(Record) ->
ID = Record#checkbox.id,
Anchor = Record#checkb... | null | https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/src/elements/forms/element_checkbox.erl | erlang | Checkbox...
Label for Checkbox... | Nitrogen Web Framework for Erlang
Copyright ( c ) 2008 - 2010
See MIT - LICENSE for licensing information .
-module (element_checkbox).
-include_lib ("wf.hrl").
-compile(export_all).
reflect() -> record_info(fields, checkbox).
render_element(Record) ->
ID = Record#checkbox.id,
Anchor = Record#checkb... |
c79821794bc54da44335c67c04f93acca75ae335695e9d3cc3401eaa58e5fc69 | epiccastle/spire | test_authorized_keys.clj | (ns test-pod.test-authorized-keys
(:require [test-pod.conf :as conf]
[test-pod.utils :as utils]
[clojure.test :refer [is deftest]]
[babashka.pods :as pods]
[babashka.process :refer [process check]]
[clojure.string :as string]
[clojure.java.io :as... | null | https://raw.githubusercontent.com/epiccastle/spire/e58c6d8c748f57a56c180c0d254c18f1a08b64ff/test/test_pod/test_authorized_keys.clj | clojure | (ns test-pod.test-authorized-keys
(:require [test-pod.conf :as conf]
[test-pod.utils :as utils]
[clojure.test :refer [is deftest]]
[babashka.pods :as pods]
[babashka.process :refer [process check]]
[clojure.string :as string]
[clojure.java.io :as... | |
67b0d8f30a879bcb0a4b1cf9c81e2bdbfb3f9dedf9f2d5a98607bee41977ad2b | dgtized/shimmers | slashes.cljs | (ns shimmers.sketches.slashes
(:require
[shimmers.algorithm.line-clipping :as clip]
[shimmers.common.svg :as csvg :include-macros true]
[shimmers.common.ui.controls :as ctrl]
[shimmers.math.deterministic-random :as dr]
[shimmers.sketch :as sketch :include-macros true]
[shimmers.view.sketch :as view-... | null | https://raw.githubusercontent.com/dgtized/shimmers/bb56ac4782214ae26d3b6e42056cd4f45239a10b/src/shimmers/sketches/slashes.cljs | clojure | (ns shimmers.sketches.slashes
(:require
[shimmers.algorithm.line-clipping :as clip]
[shimmers.common.svg :as csvg :include-macros true]
[shimmers.common.ui.controls :as ctrl]
[shimmers.math.deterministic-random :as dr]
[shimmers.sketch :as sketch :include-macros true]
[shimmers.view.sketch :as view-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.