_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
0db2877c6fbdb76125d09244a2a9d56e7bad451cf5998c233df14efab7f592c8
swarmpit/swarmpit
form.cljs
(ns material.component.form (:refer-clojure :exclude [comp]) (:require [material.components :as cmp] [material.icon :as icon] [sablono.core :refer-macros [html]] [swarmpit.time :as time])) (defn item-main ([name value] (item-main name value true)) ([name value separator?]...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/material/component/form.cljs
clojure
(ns material.component.form (:refer-clojure :exclude [comp]) (:require [material.components :as cmp] [material.icon :as icon] [sablono.core :refer-macros [html]] [swarmpit.time :as time])) (defn item-main ([name value] (item-main name value true)) ([name value separator?]...
d965f93b21c6544b76b81353b2415319783c3a2a9cee2cbef3dd223d3112f9a2
RedPRL/algaeff
Algaeff.mli
(** Reusable effects-based components. *) (** {1 Reusable components} *) module State : module type of State module Reader : module type of Reader module Sequencer : module type of Sequencer module Mutex : module type of Mutex module UniqueID : module type of UniqueID module Unmonad : module type of Unmonad * {...
null
https://raw.githubusercontent.com/RedPRL/algaeff/0a9742860a98d2ad0297ffed4760670baf91d041/src/Algaeff.mli
ocaml
* Reusable effects-based components. * {1 Reusable components}
module State : module type of State module Reader : module type of Reader module Sequencer : module type of Sequencer module Mutex : module type of Mutex module UniqueID : module type of UniqueID module Unmonad : module type of Unmonad * { 1 Auxiliary tools } module Fun : module type of Fun
eaf4af69410f4caf0b61ce5bd1da64d5e14cfd5d51c9e5a455861361d0d6abae
owickstrom/komposition
DialogView.hs
# OPTIONS_GHC -fno - warn - orphans # {-# LANGUAGE OverloadedLabels #-} # LANGUAGE OverloadedLists # {-# LANGUAGE OverloadedStrings #-} module Komposition.UserInterface.GtkInterface.DialogView where import qualified Data.Vector as Vector import Komposition.Prelu...
null
https://raw.githubusercontent.com/owickstrom/komposition/64893d50941b90f44d77fea0dc6d30c061464cf3/src/Komposition/UserInterface/GtkInterface/DialogView.hs
haskell
# LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings #
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE OverloadedLists # module Komposition.UserInterface.GtkInterface.DialogView where import qualified Data.Vector as Vector import Komposition.Prelude hiding ...
aa2db843506d2a3993f999bbca0bfb054a226a4692f98510e7bb528a5494eb7a
mirage/capnp-rpc
main.ml
open Lwt.Infix open Capnp_rpc_lwt let () = Logs.set_level (Some Logs.Warning); Logs.set_reporter (Logs_fmt.reporter ()) let callback_fn msg = Fmt.pr "Callback got %S@." msg let run_client service = Capability.with_ref (Echo.Callback.local callback_fn) @@ fun callback -> Echo.heartbeat service "foo" callbac...
null
https://raw.githubusercontent.com/mirage/capnp-rpc/8a0b6dce373dc2e2d547d85e542962862773f74b/examples/v3/main.ml
ocaml
open Lwt.Infix open Capnp_rpc_lwt let () = Logs.set_level (Some Logs.Warning); Logs.set_reporter (Logs_fmt.reporter ()) let callback_fn msg = Fmt.pr "Callback got %S@." msg let run_client service = Capability.with_ref (Echo.Callback.local callback_fn) @@ fun callback -> Echo.heartbeat service "foo" callbac...
48412da8a334c9d1af31f827b94fd66d6b30e8427d8cf78672398125ed6334c7
sentenai/reinforce
QTable.hs
module Main where import Prelude import Reinforce.Agents import Reinforce.Agents.QTable import Reinforce.Algorithms.QLearning import Environments.Gym.ClassicControl.CartPoleV0 main :: IO () main = do x <- runDefaultEnvironment False $ runQTable defaultConfigs (Left 0.85) $ runLearner (Just 10) ...
null
https://raw.githubusercontent.com/sentenai/reinforce/03fdeea14c606f4fe2390863778c99ebe1f0a7ee/reinforce-zoo/examples/cartpole/QTable.hs
haskell
module Main where import Prelude import Reinforce.Agents import Reinforce.Agents.QTable import Reinforce.Algorithms.QLearning import Environments.Gym.ClassicControl.CartPoleV0 main :: IO () main = do x <- runDefaultEnvironment False $ runQTable defaultConfigs (Left 0.85) $ runLearner (Just 10) ...
72ee25f0afa345220093e9d44794b3dad05f263d7ebe70ba84fb42c9f5009c5b
travis/lein-deb
core.clj
(ns deb_test.core)
null
https://raw.githubusercontent.com/travis/lein-deb/8510d7d3103d50619d3ffd6220a7d4d46758a172/test_projects/sample/src/deb_test/core.clj
clojure
(ns deb_test.core)
d4f980b6ccc9e363b32818cba12bbb9a840925c27c33cd656eff83489955c34e
Kong/HARchiver
regex.ml
open Core.Std open Re_pcre let create str = regexp str let matches rex str = let thunk = fun () -> exec ~rex ~pos:0 str |> fun x -> get_substring x 0 in Result.try_with thunk |> Result.is_ok
null
https://raw.githubusercontent.com/Kong/HARchiver/eb0aca5c15d536ab2d7fba9d00ed1928466e1a54/src/regex.ml
ocaml
open Core.Std open Re_pcre let create str = regexp str let matches rex str = let thunk = fun () -> exec ~rex ~pos:0 str |> fun x -> get_substring x 0 in Result.try_with thunk |> Result.is_ok
72a9c0f4feb08fa86391a33b16dde6257385995519c9db5314abe8563e59c952
rixed/ramen
RamenTimeseries.ml
(* This program builds time series for the requested time range out of any * operation field. * * The operation event-time has to be known, though. *) open Batteries open RamenLog open RamenHelpersNoLog module C = RamenConf module VSI = RamenSync.Value.SourceInfo module O = RamenOperation module T = RamenTypes modu...
null
https://raw.githubusercontent.com/rixed/ramen/212544a570c8b4573613c8686e96ab717350df5f/src/RamenTimeseries.ml
ocaml
This program builds time series for the requested time range out of any * operation field. * * The operation event-time has to be known, though. Building time series with points at regular times Hopefully count will be small enough that sum can be tracked accurately [nt] is the number of time steps while [nc...
open Batteries open RamenLog open RamenHelpersNoLog module C = RamenConf module VSI = RamenSync.Value.SourceInfo module O = RamenOperation module T = RamenTypes module N = RamenName module Files = RamenFiles module Paths = RamenPaths type bucket = { mutable count : float ; mutable sum : float ; mutable min : fl...
56900ebe0c1ae1ae08102220f204ff333462b8aec80ae68cbc6c00141f1de24f
serras/munihac-2020-miso
Main.hs
# language NamedFieldPuns # {-# language OverloadedStrings #-} # language RecordWildCards # {-# language OverloadedLists #-} module Main where import Data.Foldable (asum) import Data.List (transpose, (!!)) import Data.Map () import Data.Maybe (isJust) import Miso import Miso.String (MisoString) main :: IO ...
null
https://raw.githubusercontent.com/serras/munihac-2020-miso/ab91ced84877a6b0b938d89eeaaaea29b25ffb15/exercise/web/Main.hs
haskell
# language OverloadedStrings # # language OverloadedLists # , statsView m , value_ player1Name , onChange undefined , select_ [ class_ "custom-select" , style_ [("margin-right", "15px")] ] (flip map ["A", "B"] $ \option -> option_ [ ] [ text option]) , value_ pla...
# language NamedFieldPuns # # language RecordWildCards # module Main where import Data.Foldable (asum) import Data.List (transpose, (!!)) import Data.Map () import Data.Maybe (isJust) import Miso import Miso.String (MisoString) main :: IO () main = startApp App { .. } where initialAction = None mod...
adc3e2854f1704a31c6887b647a26210a900cb90868f1506650a423937daa5ad
hsyl20/haskus-system
Mount.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DataKinds # # LANGUAGE TypeApplications # -- | Filesystem mount module Haskus.System.Linux.FileSystem.Mount ( MountFlag(..) , MountFlags , UnmountFlag(..) , UnmountFlags , sysMount , sysUnmount , mountSysFS , mountDevFS , mountProcFS , mountTmpFS...
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system/src/lib/Haskus/System/Linux/FileSystem/Mount.hs
haskell
# LANGUAGE DeriveAnyClass # | Filesystem mount ^ Force unmounting ^ Just detach from the tree ^ Don't follow symlink on unmount | Mount a file system | Type of the low-level Linux "mount" function | Mount SysFS at the given location | Mount DevFS at the given location | Mount ProcFS at the given location | Mo...
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Haskus.System.Linux.FileSystem.Mount ( MountFlag(..) , MountFlags , UnmountFlag(..) , UnmountFlags , sysMount , sysUnmount , mountSysFS , mountDevFS , mountProcFS , mountTmpFS ) where import Foreign.Ptr (Ptr,nullPtr) import H...
9ddbde36040fd39b1a1cbd1d169efbe0ea824d396ed4f8ca19664723c601fa6d
cachix/cachix
V2.hs
module Cachix.Types.DeployResponse.V2 where import Data.Aeson ( FromJSON, ToJSON, ) import Data.HashMap.Strict import Data.Swagger (ToSchema) import Data.UUID (UUID) import Protolude data Details = Details { id :: UUID, url :: Text } deriving stock (Show, Generic) deriving anyclass (FromJSON, ToJS...
null
https://raw.githubusercontent.com/cachix/cachix/0da6106c495474348a1a73a1a5fe16463eaa7fa5/cachix-api/src/Cachix/Types/DeployResponse/V2.hs
haskell
module Cachix.Types.DeployResponse.V2 where import Data.Aeson ( FromJSON, ToJSON, ) import Data.HashMap.Strict import Data.Swagger (ToSchema) import Data.UUID (UUID) import Protolude data Details = Details { id :: UUID, url :: Text } deriving stock (Show, Generic) deriving anyclass (FromJSON, ToJS...
e2ac2e2c89fc49829631b027dbe9a6156af3ebb5f16b3462c683f28c947f8586
ds-wizard/engine-backend
FileSM.hs
module Shared.Api.Resource.Common.FileSM where import Data.Swagger import Servant import Servant.Multipart import Servant.Swagger.Internal import Shared.Api.Resource.Common.FileDTO instance HasSwagger api => HasSwagger (MultipartForm Mem FileDTO :> api) where toSwagger _ = addParam param (toSwagger (Proxy :: Proxy...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/12717256cde8d20020e30cd55dc3ef00fef9362a/engine-shared/src/Shared/Api/Resource/Common/FileSM.hs
haskell
module Shared.Api.Resource.Common.FileSM where import Data.Swagger import Servant import Servant.Multipart import Servant.Swagger.Internal import Shared.Api.Resource.Common.FileDTO instance HasSwagger api => HasSwagger (MultipartForm Mem FileDTO :> api) where toSwagger _ = addParam param (toSwagger (Proxy :: Proxy...
341294eafbf61005584b5924826dd3bc3f4fcc1c44610d078a95366fd573ccca
patricoferris/opam-github-workflow
types.mli
type kv = Yaml.value [@@deriving yaml] (** A Yaml key-value store -- this is exposed in order to be flexible with things like environment variable names which cannot be dynamically decided by the user if bound to a record type *) type env = kv (** The type of environment variables *) type output = kv (** The ...
null
https://raw.githubusercontent.com/patricoferris/opam-github-workflow/6fe36af331853152da5a78b9bbc9a9ecd48b5160/lib/types.mli
ocaml
* A Yaml key-value store -- this is exposed in order to be flexible with things like environment variable names which cannot be dynamically decided by the user if bound to a record type * The type of environment variables * The type of outputs * The type of run statements * The type of defaults * The type ...
type kv = Yaml.value [@@deriving yaml] type env = kv type output = kv type run = { run_shell : string option; [@key "shell"] run_workdir : string option; [@key "working-directory"] } type defaults = { default_run : run [@key "run"] } type container = { image : string option; credentials : kv option; cont...
4886c3a8c49c3bb6a297dc8dcd0677e5eda8eccd2a6e822474b46cc59106bfb8
killme2008/ring.velocity
handler.clj
(ns demo.handler (:use compojure.core) (:use [ring.velocity.core :only [render template-resources]]) (:require [compojure.handler :as handler] [compojure.route :as route])) (defroutes app-routes (GET "/" [] (render "index.vm")) (POST "/hello" [name] (render "index.vm" :name name)) (template-res...
null
https://raw.githubusercontent.com/killme2008/ring.velocity/e24e662e7ba46aae1d2f2cb5dcb5ccd1fe23dc78/demo/src/demo/handler.clj
clojure
(ns demo.handler (:use compojure.core) (:use [ring.velocity.core :only [render template-resources]]) (:require [compojure.handler :as handler] [compojure.route :as route])) (defroutes app-routes (GET "/" [] (render "index.vm")) (POST "/hello" [name] (render "index.vm" :name name)) (template-res...
53f4ca7d17a2a3253e5c3b8214818a2b11e6a0cc7965db38e43c0fd701462340
erlang-ls/erlang_ls
els_code_lens_suggest_spec.erl
%%============================================================================== Code Lens : suggest_spec %%============================================================================== -module(els_code_lens_suggest_spec). -behaviour(els_code_lens). -export([ init/1, command/3, is_default/0, pois/1 ...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/2c17eaed759bdca2b42361b9085c808603a22aa5/apps/els_lsp/src/els_code_lens_suggest_spec.erl
erlang
============================================================================== ============================================================================== ============================================================================== Includes =========================================================================...
Code Lens : suggest_spec -module(els_code_lens_suggest_spec). -behaviour(els_code_lens). -export([ init/1, command/3, is_default/0, pois/1 ]). -include_lib("kernel/include/logger.hrl"). -type state() :: els_typer:info() | 'no_info'. -spec init(els_dt_document:item()) -> state(). init(#{uri := Uri}...
52e84ae78e2cacd17e26a98a259fff4f95219425838da2e988a7c62c05110923
lachenmayer/arrowsmith
Declaration.hs
# OPTIONS_GHC -Wall -fno - warn - unused - do - bind # module Parse.Declaration where import Control.Applicative ((<$>)) import Text.Parsec ( (<|>), (<?>), choice, digit, optionMaybe, string, try ) import qualified AST.Declaration as D import qualified Parse.Expression as Expr import Parse.Helpers import qualified Pa...
null
https://raw.githubusercontent.com/lachenmayer/arrowsmith/34b6bdeddddb2d8b9c6f41002e87ec65ce8a701a/elm-compiler/src/Parse/Declaration.hs
haskell
TYPE ANNOTATIONS and DEFINITIONS TYPE ALIAS and UNION TYPES PORT
# OPTIONS_GHC -Wall -fno - warn - unused - do - bind # module Parse.Declaration where import Control.Applicative ((<$>)) import Text.Parsec ( (<|>), (<?>), choice, digit, optionMaybe, string, try ) import qualified AST.Declaration as D import qualified Parse.Expression as Expr import Parse.Helpers import qualified Pa...
37a06c90365c079a7846173873d81162438f9143ecf1b46adbe97b995e12d231
shirok/Gauche
fields.scm
(define (check-bit-field-operations) (print-header "Checking bit field operations...") (check (bitvector-field-any? (bitvector 0 1 0 0) 0 4) => #t) (check (bitvector-field-any? (bitvector 0 0 0 0) 0 4) => #f) (check (bitvector-field-any? (bitvector 0 1 0 0) 1 3) => #t) (check (bitvector-field-any? (bitvector...
null
https://raw.githubusercontent.com/shirok/Gauche/ecaf82f72e2e946f62d99ed8febe0df8960d20c4/test/include/test/fields.scm
scheme
replace-same and replace rotate flip
(define (check-bit-field-operations) (print-header "Checking bit field operations...") (check (bitvector-field-any? (bitvector 0 1 0 0) 0 4) => #t) (check (bitvector-field-any? (bitvector 0 0 0 0) 0 4) => #f) (check (bitvector-field-any? (bitvector 0 1 0 0) 1 3) => #t) (check (bitvector-field-any? (bitvector...
c7b59218eb22730e2e4a630d32b365f7a35a7cb7963c5b9c4b86f34b9ee8e81a
CSCfi/rems
auth.cljs
(ns rems.auth.auth (:require [re-frame.core :as rf] [rems.atoms :as atoms] [rems.auth.fake :as fake] [rems.auth.oidc :as oidc] [rems.guide-util :refer [component-info example]] [rems.navbar :as nav] [rems.text :refer [text]])) (defn login-compon...
null
https://raw.githubusercontent.com/CSCfi/rems/ce5a8962d3a88016346e96bae4ae35059e7de75b/src/cljs/rems/auth/auth.cljs
clojure
(ns rems.auth.auth (:require [re-frame.core :as rf] [rems.atoms :as atoms] [rems.auth.fake :as fake] [rems.auth.oidc :as oidc] [rems.guide-util :refer [component-info example]] [rems.navbar :as nav] [rems.text :refer [text]])) (defn login-compon...
4c2d620e389ee9a76a12beb2b1321d37f3c191e58186121d0a9cf81c82e55e94
rvantonder/hack_parallel
marshal_tools.ml
* * Copyright ( c ) 2015 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the " hack " directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . ...
null
https://raw.githubusercontent.com/rvantonder/hack_parallel/c9d0714785adc100345835c1989f7c657e01f629/src/utils/marshal_tools.ml
ocaml
We want to marshal exceptions (or at least their message+stacktrace) over the wire. This type ensures that no one will attempt to pattern-match on the thing we marshal: 'Values of extensible variant types, for example exceptions (of extensible type exn), returned by the unmarhsaller should not be patt...
* * Copyright ( c ) 2015 , Facebook , Inc. * All rights reserved . * * This source code is licensed under the BSD - style license found in the * LICENSE file in the " hack " directory of this source tree . An additional grant * of patent rights can be found in the PATENTS file in the same directory . ...
de79c31c05a4065dabd0b40d232c5fbe120ac1b99fb60edbb08ff6f2dbefe7ff
tcsprojects/pgsolver
stratimprlocal.mli
open Paritygame;; val partially_solve : partial_solver val solve : global_solver val register: unit -> unit
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/solvers/stratimprlocal.mli
ocaml
open Paritygame;; val partially_solve : partial_solver val solve : global_solver val register: unit -> unit
dec816cffbb810da33c95a037badacd98542aa286f8a96bd01743e73a0b0b759
kbaird/consensus
candidate_test.erl
-module('candidate_test'). -author('Kevin C. Baird'). -include_lib("eunit/include/eunit.hrl"). candidate_setup() -> ok. candidate_teardown(_) -> ok. candidate_test_() -> {setup, fun candidate_setup/0, fun candidate_teardown/1, [ fun make_case/0, fun mak...
null
https://raw.githubusercontent.com/kbaird/consensus/d3387332009c36d44c9370331c61dd754e71d23d/test/candidate_test.erl
erlang
PRIVATE FUNCTIONS
-module('candidate_test'). -author('Kevin C. Baird'). -include_lib("eunit/include/eunit.hrl"). candidate_setup() -> ok. candidate_teardown(_) -> ok. candidate_test_() -> {setup, fun candidate_setup/0, fun candidate_teardown/1, [ fun make_case/0, fun mak...
1e18b58dce864fb24fb1fc44c533c1e06b9b0f1cb25f6cb7f92bf5977e81efac
CatalaLang/catala
operator.mli
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
null
https://raw.githubusercontent.com/CatalaLang/catala/87cb8f95b879f1a64cb3f52d84020960a0492a42/compiler/shared_ast/operator.mli
ocaml
* An identity function that allows translating an operator between different passes that don't change operator types * The type for typing overloads is different since the types of the operands are required in advance. @raise a detailed user error if no matching operator can be found * Polymorphic operat...
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
59f9b5d26444ccd067d2c29fd9a3114fe95096ea99d28f59ee1e294bcc18272e
ppaml-op3/insomnia
Types.hs
# LANGUAGE MultiParamTypeClasses , FlexibleInstances , FlexibleContexts , DeriveDataTypeable , DeriveGeneric # MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable, DeriveGeneric #-} module Insomnia.Types where import Control.Applicative import ...
null
https://raw.githubusercontent.com/ppaml-op3/insomnia/5fc6eb1d554e8853d2fc929a957c7edce9e8867d/src/Insomnia/Types.hs
haskell
# SOURCE # ^ the kind of types | KROW -- ^ the kind ROW of rows. users can't write it directly | A local type constructor name. These are similar to type variables, except they are substituted by global type paths instead of by arbitrary types. | A type path selects a type from a model named by field | ...
# LANGUAGE MultiParamTypeClasses , FlexibleInstances , FlexibleContexts , DeriveDataTypeable , DeriveGeneric # MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, DeriveDataTypeable, DeriveGeneric #-} module Insomnia.Types where import Control.Applicative import ...
022974248b1e574a0a0d55e995bed6e5119dfae2051768e188c7384d96f8fdce
binghe/fm-plugin-tools
packages.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- $ Header : /usr / local / cvsrep / regex - plugin / packages.lisp , v 1.8 2008/01/07 07:36:02 edi Exp $ Copyright ( c ) 2006 - 2008 , Dr. and Dr. . All rights reserved . ;;; Redistribution and use in source and binary f...
null
https://raw.githubusercontent.com/binghe/fm-plugin-tools/ddb970a38b9a6fb44e9fb49a3ef74a4d17ac8738/regex-plugin/packages.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - USER ; Base : 10 -*- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions a...
$ Header : /usr / local / cvsrep / regex - plugin / packages.lisp , v 1.8 2008/01/07 07:36:02 edi Exp $ Copyright ( c ) 2006 - 2008 , Dr. and Dr. . All rights reserved . OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLAR...
ee4cde2ead335cd63a1e9e087878cb13b33dfd58eea07da37f108ee84d24fe84
clojure-interop/aws-api
core.clj
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.securitytoken.core])
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.securitytoken/src/core.clj
clojure
(ns core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.amazonaws.services.securitytoken.core])
634be6a614ce1c24fa2e404c4a90194d4553cce7e73f6c0a9ac6d411b9765436
GaloisInc/llvm-verifier
Errors.hs
| Module : $ Header$ Description : Error path and error handling tests License : BSD3 Stability : provisional Point - of - contact : atomb Module : $Header$ Description : Error path and error handling tests License : BSD3 Stability : provis...
null
https://raw.githubusercontent.com/GaloisInc/llvm-verifier/d97ee6d2e731f48db833cc451326e737e1e39963/test/src/Tests/Errors.hs
haskell
TODO: the following times out, but it's not critical that we fix that soon, so let's ignore it for now.
| Module : $ Header$ Description : Error path and error handling tests License : BSD3 Stability : provisional Point - of - contact : atomb Module : $Header$ Description : Error path and error handling tests License : BSD3 Stability : provis...
d63ab28b894e5c9e195ababea63f0d1d9405e20f0cf598f6a0061502144919c4
reflex-frp/reflex-vty
CPU.hs
{-| Description: A CPU usage indicator -} module Example.CPU where import Control.Exception import Control.Monad.Fix import Control.Monad.IO.Class import Data.Ratio import Data.Time import Data.Word import qualified Data.Text as T import qualified Graphics.Vty as V import Text.Printf import Reflex import Reflex.Vty...
null
https://raw.githubusercontent.com/reflex-frp/reflex-vty/832956cf4c679a642509ebfe11160e5449558a74/src-bin/Example/CPU.hs
haskell
| Description: A CPU usage indicator | Each constructor represents a cpu statistic column as presented in @/proc/stat@ | Read @/proc/stat@ Make readFile strict | user + nice + system + irq + softirq + steal | idle + iowait | Draws the cpu usage percent as a live-updating bar graph. The output should look like:...
module Example.CPU where import Control.Exception import Control.Monad.Fix import Control.Monad.IO.Class import Data.Ratio import Data.Time import Data.Word import qualified Data.Text as T import qualified Graphics.Vty as V import Text.Printf import Reflex import Reflex.Vty data CpuStat = CpuStat_User | CpuSta...
bfaf8342bc899d07391286ecff43fdab320ea016f6e1b4b3f95aa608a666801e
kudu-dynamics/blaze
Solver.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # module Blaze.Types.Pil.Solver ( module Exports , module Blaze.Types.Pil.Solver ) where import Blaze.Prelude hiding (Symbol) import Data.SBV.Internals (SolverContext (..), modelAssocs) import Data.SBV.Dynamic (SVal, CV) import quali...
null
https://raw.githubusercontent.com/kudu-dynamics/blaze/5fa75c97074783b9beb07e97e415571aaf503aeb/src/Blaze/Types/Pil/Solver.hs
haskell
# LANGUAGE RankNTypes # TODO: it would be nice if the ExceptT wrapped `SymbolicT IO` (which is only `SymbolicT IO`) No Eq instance for SBV.Solver
# LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # module Blaze.Types.Pil.Solver ( module Exports , module Blaze.Types.Pil.Solver ) where import Blaze.Prelude hiding (Symbol) import Data.SBV.Internals (SolverContext (..), modelAssocs) import Data.SBV.Dynamic (SVal, CV) import qualified Data.SBV.Trans as SBV i...
4fa9584fc1d8c2f413a6e441ce2ba3598999dbeb3a37563e4e23ff3c783c8798
openvstorage/alba
lwt_extra2.ml
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open Lwt.Infix let ignore_errors ?(logging=false) f = Lwt.catch f ...
null
https://raw.githubusercontent.com/openvstorage/alba/459bd459335138d6b282d332fcff53a1b4300c29/ocaml/src/tools/lwt_extra2.ml
ocaml
don't log if benign this statement flushes the log output stream (aka stdout) TODO: obviously it doesn't work in all cases
Copyright ( C ) iNuron - This file is part of Open vStorage . For license information , see < LICENSE.txt > Copyright (C) iNuron - This file is part of Open vStorage. For license information, see <LICENSE.txt> *) open! Prelude open Lwt.Infix let ignore_errors ?(logging=false) f = Lwt.catch f ...
077149fb5d23694cad8a1564f74bca03777fcdefa0da315bf36a6b5ac39173d7
witheve/eve-experiments
db.clj
(ns server.db (:require [server.edb :as edb] [server.exec :as exec])) ;; this should have annotations so that it actually captures the correct number of bits ( 96 ) (defrecord uuid [time batch machine]) (defrecord station [ip port]) (def machine-id (ref 113)) ;; xxx - ignoro batcho (defn genoid [] ...
null
https://raw.githubusercontent.com/witheve/eve-experiments/8a1cdb353b3e728bc768b315e5b9a9f9dc785ae1/server/src/server/db.clj
clojure
this should have annotations so that it actually xxx - ignoro batcho up my symbols @FIXME: This relies on exec/open flushing synchronously to determine if the implication currently exists plumb bag in here
(ns server.db (:require [server.edb :as edb] [server.exec :as exec])) captures the correct number of bits ( 96 ) (defrecord uuid [time batch machine]) (defrecord station [ip port]) (def machine-id (ref 113)) (defn genoid [] (uuid. (edb/now) 0 @machine-id)) (defn wrapoid [time batch machine] (uuid...
64ad2269311d5b7ef0ac7d2f97fc938c4d3081168ec271d443200bc46b01aed9
caribou/caribou-core
auth.clj
(ns caribou.auth) (import org.mindrot.jbcrypt.BCrypt) (import [java.security MessageDigest]) (defn hash-bcrypt "hash a password to store it in a password field" [pass] (. BCrypt hashpw pass (. BCrypt gensalt 13))) (defn check-bcrypt "check a raw password against a hash from the password field" [pass hash] ...
null
https://raw.githubusercontent.com/caribou/caribou-core/6ebd9db4e14cddb1d6b4e152e771e016fa9c55f6/src/caribou/auth.clj
clojure
(ns caribou.auth) (import org.mindrot.jbcrypt.BCrypt) (import [java.security MessageDigest]) (defn hash-bcrypt "hash a password to store it in a password field" [pass] (. BCrypt hashpw pass (. BCrypt gensalt 13))) (defn check-bcrypt "check a raw password against a hash from the password field" [pass hash] ...
56ad8325efb610a9aca100a582ee8b1682c19cc107d22bc799d721670b8bf27e
tochicool/bitcoin-dca
Coinbase.hs
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LAN...
null
https://raw.githubusercontent.com/tochicool/bitcoin-dca/642016f54595194127fcbd24ff11e0d7b358b011/src/BitcoinDCA/Exchange/Coinbase.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Bitcoi...
ed0591b859a5a9974de276c5436a3b7e3f93ac021436a717b665b15761ff85e1
mirage/alcotest
unicode_testname.ml
let () = Alcotest.run "Suite name containing file separators / and non-ASCII characters 🔥" [ ( "🔥", [ Alcotest.test_case "Non ASCII unicode character" `Quick (fun () -> ()); ] ); ( "🔥a-b", [ Alcotest.test_case "Non ASCII and ASCII characters" `Quick (...
null
https://raw.githubusercontent.com/mirage/alcotest/bb3492901dea03c72b4de6b5660852a020283921/test/e2e/alcotest/passing/unicode_testname.ml
ocaml
let () = Alcotest.run "Suite name containing file separators / and non-ASCII characters 🔥" [ ( "🔥", [ Alcotest.test_case "Non ASCII unicode character" `Quick (fun () -> ()); ] ); ( "🔥a-b", [ Alcotest.test_case "Non ASCII and ASCII characters" `Quick (...
187b001237ad43ed030ba1974bd8d4964e4277c26ed79eba3fa16e0231519e5d
haskell-hvr/cryptohash-sha1
FFI.hs
# LANGUAGE CApiFFI # # LANGUAGE Unsafe # -- Ugly hack to workaround {-# OPTIONS_GHC -O0 -fdo-lambda-eta-expansion -fcase-merge -fstrictness -fno-omit-interface-pragmas -fno-ignore-interface-pragmas #-} {-# OPTIONS_GHC -optc-Wall -optc-...
null
https://raw.githubusercontent.com/haskell-hvr/cryptohash-sha1/e857b23933ce724af9ec2d60d0432f3fd234c899/src/Crypto/Hash/SHA1/FFI.hs
haskell
Ugly hack to workaround # OPTIONS_GHC -O0 -fdo-lambda-eta-expansion -fcase-merge -fstrictness -fno-omit-interface-pragmas -fno-ignore-interface-pragmas # # OPTIONS_GHC -optc-Wall -optc-O3 # | Module : Crypto.Hash.SHA1.FFI License ...
# LANGUAGE CApiFFI # # LANGUAGE Unsafe # module Crypto.Hash.SHA1.FFI where import Data.ByteString (ByteString) import Data.Word import Foreign.C.Types import Foreign.Ptr The context data is exactly 92 bytes long , however * a 64 - element ' Word8 ' buffer holding part...
ec4021ee6e9cc35190678f82556244ad47001a3997b1ef263b1c01552e4e7663
softlab-ntua/bencherl
rm_chord.erl
2008 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software di...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/scalaris/src/rm_chord.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2008 - 2011 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @version $ I d : rm_chord.erl 2639 2012 - 01 - 03 15:00:45Z $ -module(rm_chord). -author(''). -vsn('$Id: rm_chord....
404cde9f125ae1e033d1fb3c788a49a2d4d2b857522ef9960fc40083e76d06ae
garrigue/labltk
shell.ml
(*************************************************************************) (* *) (* OCaml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/garrigue/labltk/441705df2d88de01bc6aa28c31cc45e40751ee20/browser/shell.ml
ocaml
*********************************************************************** OCaml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ Id$ open StdLabels module Unix = ...
0888fafd7e49ac473e2d44bff948f83766440f68572e7aae72afbcdd21966f6d
dongcarl/guix
lxde.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 > Copyright © 2016 < > Copyright © 2017 Nikita < > Copyright © 2017 < > Copyright © 2017 < > Copyright © 2018–2021 < > Copyright © 2018 ison < > Copyright © 2018 , 2019 < > Copyright © 2018 < > Copyrigh...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/lxde.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 > Copyright © 2016 < > Copyright © 2017 Nikita < > Copyright © 2017 < > Copyright © 2017 < > Copyright © 2018–2021 < > Copyright © 2018 ison < > Copyright © 2018 , 2019 < > Copyright © 2018 < > Copyright © 2019 Meiyo < > under the terms of the GNU Gener...
8a0cecc443da7f909a2392306563ee8ce3916680a27a00c73e2d5acf1c067557
metabase/metabase
moderation.clj
(ns metabase.moderation (:require [medley.core :as m] [metabase.models.interface :as mi] [metabase.util :as u] [schema.core :as s] [toucan.db :as db] [toucan2.core :as t2])) (def moderated-item-types "Schema enum of the acceptable values for the `moderated_item_type` column" (s/enum "card" "das...
null
https://raw.githubusercontent.com/metabase/metabase/ff2c972dcb11f9355e314cffcc8e10b0e58f53bf/src/metabase/moderation.clj
clojure
no need to do work on empty items. Also, can have nil here due to text cards. I think this is a bug in toucan. To dont have to have cards. but the hydration will pass the nil card id into here. NOTE: it is important that each item that comes into this comes out. The nested hydration is positional, not by an id so e...
(ns metabase.moderation (:require [medley.core :as m] [metabase.models.interface :as mi] [metabase.util :as u] [schema.core :as s] [toucan.db :as db] [toucan2.core :as t2])) (def moderated-item-types "Schema enum of the acceptable values for the `moderated_item_type` column" (s/enum "card" "das...
28939fd9700f734ce8b10ddee3d0aeef70420f76924ece673070d19859697afe
rotty/ocelotl
uri.scm
#!r6rs uri.scm --- Wrapper for the URI library test suite Copyright ( C ) 2011 < > Author : < > ;; This program is free software, you can redistribute it and/or modify it under the terms of the new - style BSD license . You should have received a copy of the BSD license along with this ;; program. I...
null
https://raw.githubusercontent.com/rotty/ocelotl/0c6aadaef99444b180574f18f1935d9507e20978/tests/uri.scm
scheme
This program is free software, you can redistribute it and/or program. If not, see <>. Commentary: Code:
#!r6rs uri.scm --- Wrapper for the URI library test suite Copyright ( C ) 2011 < > Author : < > modify it under the terms of the new - style BSD license . You should have received a copy of the BSD license along with this (import (rnrs) (spells include) (wak trc-testing) (...
05a978fd102ee748173402b555c0904ec5edff7957979a0bd92a7b417633a5a1
fragnix/fragnix
LocalSlice.hs
# LANGUAGE OverloadedStrings , StandaloneDeriving , DeriveGeneric , GeneralizedNewtypeDeriving # module Fragnix.LocalSlice ( LocalSlice(..) , LocalSliceID(..) , LocalUse(..) , LocalReference(..) , LocalInstance(..) , LocalInstanceID ) where import Fragnix.Slice ( SliceID, OriginalModule, Language, Fr...
null
https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/src/Fragnix/LocalSlice.hs
haskell
| A local ID before slices have been hashed. | A Slice with a local ID that may use slices with local IDs as well as global slices with slice IDs. | A local use may refer to local slices and global slices. TODO: Reorganize in order to avoid partial record labels.
# LANGUAGE OverloadedStrings , StandaloneDeriving , DeriveGeneric , GeneralizedNewtypeDeriving # module Fragnix.LocalSlice ( LocalSlice(..) , LocalSliceID(..) , LocalUse(..) , LocalReference(..) , LocalInstance(..) , LocalInstanceID ) where import Fragnix.Slice ( SliceID, OriginalModule, Language, Fr...
cde8c27278d27af16ba2c3a914e712e52457b03a98699268eb9d658c9434730c
herd/herdtools7
X86Arch_litmus.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/6d781eb91debffdf56998171862a18e40908c3c5/litmus/X86Arch_litmus.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
e00d04c9e6b4b7cde5d1f3d8073256d3f54b9cc7548be2ab89d95979c1211579
tezos/tezos-mirror
client_keys.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/123f067d73d29774537076eab28ffe44e2be6a3b/tezt/tests/client_keys.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
6ba5b623bd3507f9b5128b9c128fc4ee9ad98a97cc962485ddad838f5f13a852
mbj/stratosphere
ModelInputProperty.hs
module Stratosphere.SageMaker.ModelPackage.ModelInputProperty ( ModelInputProperty(..), mkModelInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ModelIn...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/ModelPackage/ModelInputProperty.hs
haskell
module Stratosphere.SageMaker.ModelPackage.ModelInputProperty ( ModelInputProperty(..), mkModelInputProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ModelIn...
f6754302c728931eed7e04b82bf1b9d67479f869cc625642f111c57bb4cc0586
active-group/reacl
project.clj
(defproject reacl "2.2.10" :description "ClojureScript wrappers for programming with React" :url "-group/reacl" :license {:name "Eclipse Public License" :url "-v10.html"} :jvm-opts ^:replace ["-Xmx512m" "-server"] :dependencies [[org.clojure/clojure "1.9.0" :scope "provided"] [o...
null
https://raw.githubusercontent.com/active-group/reacl/ee0cc720e038dcd7822d0251b0aba9e0995dd177/project.clj
clojure
open :9500/figwheel-extra-main/auto-testing for the tests. open :9500/figwheel-extra-main/todo and others for the examples google-chrome-stable seems to be broken at the moment: -main/issues/159 we start chrome headless in karma in travis.yml "figtest-dom-travis" ["trampoline" "with-profile" "+dev,+test-dom" "run...
(defproject reacl "2.2.10" :description "ClojureScript wrappers for programming with React" :url "-group/reacl" :license {:name "Eclipse Public License" :url "-v10.html"} :jvm-opts ^:replace ["-Xmx512m" "-server"] :dependencies [[org.clojure/clojure "1.9.0" :scope "provided"] [o...
aa5ba65035864a99ff82a7bab73f829ada9437ed664c5570afe1de2c1dadaef6
marineschimel/ilqr_vae
covariance.ml
open Base open Owl include Covariance_typ module Covariance = struct module P = Owl_parameters.Make (Covariance_P) open Covariance_P let init ?(no_triangle = false) ?(pin_diag = false) ?(sigma2 = 1.) (set : Owl_parameters.setter) n = let d = Mat.create 1 n Maths.(sqrt sigma...
null
https://raw.githubusercontent.com/marineschimel/ilqr_vae/8bdda2bfcf0729f965b2ab9e5aab5042a240c64d/lib/covariance.ml
ocaml
open Base open Owl include Covariance_typ module Covariance = struct module P = Owl_parameters.Make (Covariance_P) open Covariance_P let init ?(no_triangle = false) ?(pin_diag = false) ?(sigma2 = 1.) (set : Owl_parameters.setter) n = let d = Mat.create 1 n Maths.(sqrt sigma...
ab7a747c8db422a4203ef8c9b9616761599f8dad95968aea4a2c707af820b2c9
mbutterick/aoc-racket
input.rkt
#lang reader "lang.rkt" 420604416-480421096 172102328-195230700 613677102-639635955 1689844284-1724152701 3358865073-3365629764 1333423844-1344930397 2519115700-2535290065 698684483-723211151 979757052-1003200781 4165068842-4190472815 2020267004-2045214369 2979897715-3004836346 2110213890-2115506975 2970017340-29734616...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2016/day20/input.rkt
racket
#lang reader "lang.rkt" 420604416-480421096 172102328-195230700 613677102-639635955 1689844284-1724152701 3358865073-3365629764 1333423844-1344930397 2519115700-2535290065 698684483-723211151 979757052-1003200781 4165068842-4190472815 2020267004-2045214369 2979897715-3004836346 2110213890-2115506975 2970017340-29734616...
f2411703d1313a58564e5837e2661b1548ea37cae7d36c97993f87a2a9abc202
bufferswap/ViralityEngine
closure.lisp
(in-package #:vutils) The following is an implementation of " Pandoric Macros " , documented by in " Let Over Lambda " . Some minor improvements and style changes are ;;; applied to the reference version. (defun plet/get (args) `(case symbol ,@(mapcar (lambda (x) `(,(car x) ,(car x))) ...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vutils/src/closure.lisp
lisp
applied to the reference version.
(in-package #:vutils) The following is an implementation of " Pandoric Macros " , documented by in " Let Over Lambda " . Some minor improvements and style changes are (defun plet/get (args) `(case symbol ,@(mapcar (lambda (x) `(,(car x) ,(car x))) args) (t (error "Unknown p...
f96d4c2b42fe4f1937e1d065c2e3194fecc3c434d0907e9b8458b07bf26ebb72
lilactown/react-repl
project.clj
(defproject town.lilac/react-repl "0.0.1" :description "Tools for interacting with a React app from a ClojureScript REPL" :url "-repl" :license {:name "Apache2 License" :url "-2.0"} :source-paths ["src"] :dependencies [[cljs-bean "1.5.0"]] :deploy-repositories [["snapshots" {:sign-releases false...
null
https://raw.githubusercontent.com/lilactown/react-repl/30425f2a5d1dd3f6a8d91231e4875c6e75c0b761/project.clj
clojure
(defproject town.lilac/react-repl "0.0.1" :description "Tools for interacting with a React app from a ClojureScript REPL" :url "-repl" :license {:name "Apache2 License" :url "-2.0"} :source-paths ["src"] :dependencies [[cljs-bean "1.5.0"]] :deploy-repositories [["snapshots" {:sign-releases false...
d0db13d0d91052c73dba3111fad89eb04393181e13b967a61abd2bb2e6b35890
pingles/bandit
bayes_test.clj
(ns bandit.algo.bayes-test (:use [expectations] [bandit.algo.bayes]) (:require [bandit.arms :as arms])) (let [a (arms/arm :arm1)] (given a (expect :pulls 0 :value 0)) (given (estimate-value (arms/pulled a)) (expect :pulls 1 :value 0 :...
null
https://raw.githubusercontent.com/pingles/bandit/795666f3938e28f389691094bb1e07e4202290f6/bandit-core/test/bandit/algo/bayes_test.clj
clojure
(ns bandit.algo.bayes-test (:use [expectations] [bandit.algo.bayes]) (:require [bandit.arms :as arms])) (let [a (arms/arm :arm1)] (given a (expect :pulls 0 :value 0)) (given (estimate-value (arms/pulled a)) (expect :pulls 1 :value 0 :...
0cc8330d1c2c93dfc3f686dcc246a6296e6391128ed7b5586de2bc65eda3e6b3
returntocorp/semgrep
Conf.mli
(* Runtime configuration options defining a regexp dialect. *) type t = { Match all characters with ' . ' , including LF which otherwise is excluded . Same as PCRE_DOTALL . excluded. Same as PCRE_DOTALL. *) pcre_dotall : bool; (* If enabled, '^' and '$' will match only that the beginning and at th...
null
https://raw.githubusercontent.com/returntocorp/semgrep/00f1e67bbb80f00e29db3381288fc00398b6868a/languages/regexp/Conf.mli
ocaml
Runtime configuration options defining a regexp dialect. If enabled, '^' and '$' will match only that the beginning and at the end of the input, respectively. Same as PCRE_MULTILINE. Support comments in the form of '(?# ... )' Ignore whitespace in character classes. Ignore any '#' character and what fo...
type t = { Match all characters with ' . ' , including LF which otherwise is excluded . Same as PCRE_DOTALL . excluded. Same as PCRE_DOTALL. *) pcre_dotall : bool; pcre_multiline : bool; If enabled , some sets of characters like ' \w ' or ' [: alnum :] ' are extended with non - ascii unicode...
6ad177580e3d4c274491558264643a998159655568b9f7c29ab0201f1f0e0760
digikar99/numericals
internals.lisp
(in-package :sbcl-numericals.internals) ;;; See ;;; for a tutorial on what this macro is up to. ;;; We want to abstract just "the right amount" - we don't want to ;;; abstract too much to introduce layers and layers of complexity; ;;; but enough to avert code repetition. (defmacro define-binary-vectorized-op (name b...
null
https://raw.githubusercontent.com/digikar99/numericals/4f82b74e32b054f65110ee62ba080603c92ac103/sbcl-numericals/src/internals.lisp
lisp
See for a tutorial on what this macro is up to. We want to abstract just "the right amount" - we don't want to abstract too much to introduce layers and layers of complexity; but enough to avert code repetition. what should be the cost?
(in-package :sbcl-numericals.internals) (defmacro define-binary-vectorized-op (name base-op element-type mode (dest &rest args) &body assembly-instructions) (with-gensyms (vop-name loop-var loop-final-var...
a19d53c113f99f3fe8bf101b4b6abb8463e641b1fbc34e02caf663bdea5d6634
rabbitmq/rabbitmq-federation
rabbit_federation_app.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_federation_app). -behaviour(appli...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-federation/960b8214487ae2495cd39afbbd3a2c4d9ea37985/src/rabbit_federation_app.erl
erlang
All of our actual server processes are supervised by rabbit_federation_sup, which is started by a rabbit_boot_step (since it needs to start up before queue / exchange recovery, so it can't be part of our application). However, we still need an application behaviour since we need to will have started and we can...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_federation_app). -behaviour(application...
89f579d33e239dedb916ab55b95c73f408fbcda0213b2e552cc3d6a947410d78
htm-community/clortex
viz_test.clj
(ns clortex.viz-test (:use midje.sweet) (:require [quil.core :as q] [clortex.viz.core :as v])) (q/defsketch example :title "Clortex Vizualisation" :setup v/setup :draw v/draw :size [1600 800] :key-typed v/key-press)
null
https://raw.githubusercontent.com/htm-community/clortex/69003a352140510f47c6b8e18ad6a98a7b5a3bba/test/clortex/viz_test.clj
clojure
(ns clortex.viz-test (:use midje.sweet) (:require [quil.core :as q] [clortex.viz.core :as v])) (q/defsketch example :title "Clortex Vizualisation" :setup v/setup :draw v/draw :size [1600 800] :key-typed v/key-press)
c9bd8577c24999e73bad555b051e5f555263ceae43a8b01997d84322358b42c2
8c6794b6/guile-tjit
x-mazefun.scm
Mazefun from racket benchmark . (define iota (lambda (n) (iota-iter n '()))) (define iota-iter (lambda (n lst) (if (= n 0) lst (iota-iter (- n 1) (cons n lst))))) (define foldr (lambda (f base lst) (define foldr-aux (lambda (lst) (if (null? lst) base ...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/x-mazefun.scm
scheme
Manipulation de matrices. n and m must be odd
Mazefun from racket benchmark . (define iota (lambda (n) (iota-iter n '()))) (define iota-iter (lambda (n lst) (if (= n 0) lst (iota-iter (- n 1) (cons n lst))))) (define foldr (lambda (f base lst) (define foldr-aux (lambda (lst) (if (null? lst) base ...
ec93360edd36b2812292437055c0d5cd6ca3e181c57ab71fab5c41376bf8f956
qfpl/applied-fp-course
Conf.hs
{-# LANGUAGE OverloadedStrings #-} module Level04.Conf ( Conf (..) , firstAppConfig ) where -- We'll do more with this later, but we can easily stub it to keep things -- rolling and come back to refactor it later. data Conf = Conf { dbFilePath :: FilePath } -- A simple default that we could just inlin...
null
https://raw.githubusercontent.com/qfpl/applied-fp-course/d5a94a9dcee677bc95a5184c2ed13329c9f07559/src/Level04/Conf.hs
haskell
# LANGUAGE OverloadedStrings # We'll do more with this later, but we can easily stub it to keep things rolling and come back to refactor it later. A simple default that we could just inline this right where we need it. But types are so cheap that we can easily prepare ourselves for "doing the right thing".
module Level04.Conf ( Conf (..) , firstAppConfig ) where data Conf = Conf { dbFilePath :: FilePath } firstAppConfig :: Conf firstAppConfig = Conf "app_db.db"
500401333b7071733a276bebdcfecd9b880704a06430a119fe2faa160b968815
achirkin/vulkan
VK_AMD_rasterization_order.hs
# OPTIONS_HADDOCK not - home # {-# LANGUAGE DataKinds #-} {-# LANGUAGE MagicHash #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE Strict #-} {-# LANGUAGE ViewPatterns #-} module Graphics.Vulkan.Ext.VK_AMD_rasterization_order (AHardwareBuffer(), ANativeWindow(), CAMetalLayer(), VkBool32(..), ...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_AMD_rasterization_order.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE Strict # # LANGUAGE ViewPatterns # > #include "vk_platform.h"
# OPTIONS_HADDOCK not - home # # LANGUAGE PatternSynonyms # module Graphics.Vulkan.Ext.VK_AMD_rasterization_order (AHardwareBuffer(), ANativeWindow(), CAMetalLayer(), VkBool32(..), VkDeviceAddress(..), VkDeviceSize(..), VkFlags(..), VkSampleMask(..), VkCullModeBitmask(..), VkCullModeFlagBits(), ...
ddf6f2cf2e70990014aeff540841ff03fd97170661798f035b97bee40aa4d2d3
haskell-numerics/hmatrix
error.hs
import Numeric.GSL import Numeric.GSL.Special import Numeric.LinearAlgebra import Prelude hiding (catch) import Control.Exception test x = catch (print x) (\e -> putStrLn $ "captured ["++ show (e :: SomeException) ++"]") main = do setErrorHandlerOff test $ log_e (-1) test $ 5 + (fst.exp_e)...
null
https://raw.githubusercontent.com/haskell-numerics/hmatrix/2694f776c7b5034d239acb5d984c489417739225/examples/error.hs
haskell
import Numeric.GSL import Numeric.GSL.Special import Numeric.LinearAlgebra import Prelude hiding (catch) import Control.Exception test x = catch (print x) (\e -> putStrLn $ "captured ["++ show (e :: SomeException) ++"]") main = do setErrorHandlerOff test $ log_e (-1) test $ 5 + (fst.exp_e)...
6f27d8e30fe66da3d0c7575acc597114599e5fe4618a806272e35c7b7fcace16
bluelisp/hemlock
package.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (defpackage "SPELL" (:use "COMMON-LISP") (:export #:spell-try-word #:spell-root-word #:spell-collect-close-words #:correct-spelling #:+max-entry-length+ #:spell-read-dictionary #:spell-add-entry #:spell-root-flags #:spell-re...
null
https://raw.githubusercontent.com/bluelisp/hemlock/47e16ba731a0cf4ffd7fb2110e17c764ae757170/unused/spell/package.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*-
(defpackage "SPELL" (:use "COMMON-LISP") (:export #:spell-try-word #:spell-root-word #:spell-collect-close-words #:correct-spelling #:+max-entry-length+ #:spell-read-dictionary #:spell-add-entry #:spell-root-flags #:spell-remove-entry))
0e99130385e6fa6f1ec6abee8c43e566fde404cebf63635fcb37b9ec831c5875
rabbitmq/rabbitmq-management-agent
rabbit_mgmt_db_handler.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mgmt_db_handler). -include_lib("r...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-management-agent/d5951e181fb78dcd4c6a9d90762d0fe0a832e1a8/src/rabbit_mgmt_db_handler.erl
erlang
Make sure our database is hooked in *before* listening on the network or recovering queues (i.e. so there can't be any events fired before it starts). ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -----------...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_db_handler). -include_lib("rabbit_...
4e085d50329062d3c829d133b4e0e4200ad37339f70f7c402b8b114b3d4d3496
adacapo21/plutusPioneerProgram
TestStateMachine.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE NumericUnderscores #-} # LANGUAGE OverloadedStrings # {-# LANGUAGE Scope...
null
https://raw.githubusercontent.com/adacapo21/plutusPioneerProgram/fc9a7b8ea8eb0fe913ce0c246e026ffd27b37f9c/week07/src/Week07/TestStateMachine.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE NumericUnderscores # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Week07.TestStateMachine where import Control.Monad hiding (fmap) import Control.Monad.Freer.Extras ...
cbdc0915e8100ce378519a4f335f6ec3a8ad0c932a9d9d7b7aca9d47c2ccacbb
berkeley-cs164-2022/class-compiler-f22
util.ml
let gensym : string -> string = let counter = ref 0 in fun s -> let symbol = Printf.sprintf "%s__%d" s !counter in counter := !counter + 1 ; symbol module ST = Map.Make (struct type t = string let compare = compare end) module Symtab = struct include ST let of_list l = l |> List.to_seq |> o...
null
https://raw.githubusercontent.com/berkeley-cs164-2022/class-compiler-f22/89b4e7c0aa186d49406f5130f6c1e587e8c4d6bc/lib/util.ml
ocaml
let gensym : string -> string = let counter = ref 0 in fun s -> let symbol = Printf.sprintf "%s__%d" s !counter in counter := !counter + 1 ; symbol module ST = Map.Make (struct type t = string let compare = compare end) module Symtab = struct include ST let of_list l = l |> List.to_seq |> o...
c547ec9af495294bb72167d01bef6f5e29f08b3b77556c2b45a2055ff5795081
plexus/chestnut
ui.cljs
(ns {{project-ns}}.components.ui (:require [com.stuartsierra.component :as component] [{{project-ns}}.core :refer [render]])) (defrecord UIComponent [] component/Lifecycle (start [component] (render) component) (stop [component] component)) (defn new-ui-component [] (map->UIComponent...
null
https://raw.githubusercontent.com/plexus/chestnut/684b668141586ed5ef4389f94a4dc7f4fde13112/src/leiningen/new/chestnut/src/cljs/chestnut/components/ui.cljs
clojure
(ns {{project-ns}}.components.ui (:require [com.stuartsierra.component :as component] [{{project-ns}}.core :refer [render]])) (defrecord UIComponent [] component/Lifecycle (start [component] (render) component) (stop [component] component)) (defn new-ui-component [] (map->UIComponent...
7edc188d7fa6083de608fc0db44b6d848aa9962b942f84b5095e80166ac12457
Clozure/ccl-tests
case.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Oct 18 19:56:44 2002 ;;;; Contains: Tests of CASE (in-package :cl-test) (deftest case.1 (case 'a) nil) (deftest case.2 (case 10 (10 'a)) a) (deftest case.3 (case (copy-seq "abc") ("abc" 'a)) nil) (deftest case.4 (case 'z ((a b c) 1) ((d e)...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/case.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of CASE Show that the key expression is evaluated only once. No implicit tagbody Test that explicit calls to macroexpand in subforms are done in the correct environment (deftest case.error.1 (signals-error (case) program-error) t)
Author : Created : Fri Oct 18 19:56:44 2002 (in-package :cl-test) (deftest case.1 (case 'a) nil) (deftest case.2 (case 10 (10 'a)) a) (deftest case.3 (case (copy-seq "abc") ("abc" 'a)) nil) (deftest case.4 (case 'z ((a b c) 1) ((d e) 2) ((f z g) 3) (t 4)) 3) (deftest case.5 ...
a675bd146d226c0df8517e5463bbe403810cfcc531beaa78198c34d2561bc32d
eglaysher/rldev
expr.ml
Rlc : expression transformations Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any ...
null
https://raw.githubusercontent.com/eglaysher/rldev/e59103b165e1c20bd940942405b2eee767933c96/src/rlc/expr.ml
ocaml
Order of evaluation of functions within an expression, and arguments within a function call, is undefined; it will normally be left-to-right, but this is NOT guaranteed. Operator utilities Utility traversals Either a user function or an undefined symbol. TODO: ultimately we want to implement user functio...
Rlc : expression transformations Copyright ( C ) 2006 Haeleth This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any ...
6c7c6e383f8be3e7834874a8bdb0187d24358097e4ba39806141f3e38f53f35b
robrix/sequoia
Implicative.hs
{-# LANGUAGE ConstraintKinds #-} module Sequoia.Calculus.Implicative * rules ImplicativeIntro , funLSub , subLFun -- * Re-exports , module Sequoia.Calculus.Function , module Sequoia.Calculus.Subtraction ) where import Prelude hiding (init) import Sequoia.Calculus.Context import Sequoia.Calculus.Core import Sequ...
null
https://raw.githubusercontent.com/robrix/sequoia/e4fae1100fa977a656f2fc654762f23d4448ad76/src/Sequoia/Calculus/Implicative.hs
haskell
# LANGUAGE ConstraintKinds # * Re-exports ----------------------------------------------- -----------------------------------------------
module Sequoia.Calculus.Implicative * rules ImplicativeIntro , funLSub , subLFun , module Sequoia.Calculus.Function , module Sequoia.Calculus.Subtraction ) where import Prelude hiding (init) import Sequoia.Calculus.Context import Sequoia.Calculus.Core import Sequoia.Calculus.Function import Sequoia.Calculus.Struc...
a5b4fea2ef3f098e71e1456f048c59ed28dae2841da4c1f2451f6fb120873725
cuplv/dai
daig.mli
open Dai.Import open Domain open Frontend open Syntax module type Sig = sig type absstate * names are opaque from outside a DAIG , except for comparison , hashing , and sexp utilities ( for use in hashsets / maps ) module Name : sig type t [@@deriving compare, hash, sexp_of] val pp : t pp end module...
null
https://raw.githubusercontent.com/cuplv/dai/b2bdb518ad6e7893b96aa2dd60b42b2ae6dd14ad/src/analysis/daig.mli
ocaml
* apply the specified [Tree_diff.edit] to the input [daig]; [cfg_edit] and [fn] are passed as additional information needed for certain types of edit * dirty all dependencies of some name (including that name itself) * true iff an abstract state is available at the given location * GET functions attempt to compute t...
open Dai.Import open Domain open Frontend open Syntax module type Sig = sig type absstate * names are opaque from outside a DAIG , except for comparison , hashing , and sexp utilities ( for use in hashsets / maps ) module Name : sig type t [@@deriving compare, hash, sexp_of] val pp : t pp end module...
5c557383af2741d6d9c760ca7d0764241f2f28b92946f2bd291e3e3fdb4d56cc
mzp/coq-ide-for-ios
ideutils.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/ide/ideutils.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * val read_stdout : unit -> st...
29b00cc457a6307654b4394cf3152523d8a3fba9a0907dbf9a664de385c990f9
clojuredus/clojure-coding-dojo
specs.clj
(ns tiny-maze.specs (:require [clojure.spec.alpha :as s] [clojure.spec.test.alpha :as stest])) ;; From our gilded-rose kata, just for orientation and base functions ;; (s/def ::item-name string?) ;; (s/def ::sell-in integer?) ;; (s/def ::quality integer?) ;; (s/def ::item (s/keys :req-un [::item-name :...
null
https://raw.githubusercontent.com/clojuredus/clojure-coding-dojo/21a60a3a4be825544b9a07eb7cd9c9c83a112b01/tiny-maze/src/tiny_maze/specs.clj
clojure
From our gilded-rose kata, just for orientation and base functions (s/def ::item-name string?) (s/def ::sell-in integer?) (s/def ::quality integer?) (s/def ::item (s/keys :req-un [::item-name ::sell-in ::quality])) (s/fdef gilded-rose.core/item :args (s/cat :name string? :sell-in integer? :quality intege...
(ns tiny-maze.specs (:require [clojure.spec.alpha :as s] [clojure.spec.test.alpha :as stest])) : ret : : item ) ( stest / abbrev - result ( first ( stest / check ` gilded-rose.core/item ) ) )
8d5a1b3eb13870b5cd27fb24122944e4b8db31d5600ea036be0f24da0c4acc69
tnelson/Forge
forge_ex.rkt
#lang forge sig Node {edges: set Node} pred isUndirectedTree { (Node->Node) in *(edges + ~edges) edges in ~edges not (some iden & edges) all n1, n2: Node | (n1 in n2.edges implies n1 not in n2.^(edges - (n2->n1))) } -- Now defined in forge_ex_test.rkt --udt: run isUndirectedTree for 7 Node
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/amalgam/tests/forge_ex.rkt
racket
#lang forge sig Node {edges: set Node} pred isUndirectedTree { (Node->Node) in *(edges + ~edges) edges in ~edges not (some iden & edges) all n1, n2: Node | (n1 in n2.edges implies n1 not in n2.^(edges - (n2->n1))) } -- Now defined in forge_ex_test.rkt --udt: run isUndirectedTree for 7 Node
df133e7cb39d036987a793b0c8af273a25479032167652aa5437362d0f546715
lisp/de.setf.resource
wilbur-mediator.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.resource.implementation ; -*- (in-package :de.setf.resource.implementation) (:documentation "This file defines tests for the wilbur interface for the `de.setf.resource` Common Lisp library." (copyright "Copyright 2010 [james and...
null
https://raw.githubusercontent.com/lisp/de.setf.resource/27bf6dfb3b3ca99cfd5a6feaa5839d99bfb4d29e/test/wilbur-mediator.lisp
lisp
Syntax : ansi - common - lisp ; Base : 10 ; Package : de.setf.resource.implementation ; -*- without even the (test:execute-test :resource.wilbur-mediator.**) ensure the triple is not there then add/delete it and test existence ensure the triple is not there then add/delete it and test existence
(in-package :de.setf.resource.implementation) (:documentation "This file defines tests for the wilbur interface for the `de.setf.resource` Common Lisp library." (copyright "Copyright 2010 [james anderson](mailto:) All Rights Reserved" "'de.setf.resource' is free software: you can redistribute it and/or mod...
bc565fad32e2c0b2097e90e77d0a45d402a6248ea4dbb14573a7aa82159643fa
metrics-clojure/metrics-clojure
core.clj
(ns metrics.health.core (:require [clojure.set :as set] [metrics.core :refer [default-registry metric-name]] [metrics.utils :refer [desugared-title]]) (:import clojure.lang.IFn [com.codahale.metrics MetricRegistry Gauge] [com.codahale.metrics.health HealthCheck HealthCh...
null
https://raw.githubusercontent.com/metrics-clojure/metrics-clojure/a1dbacc748a1f8165f0094e2229c84f228efe29b/metrics-clojure-health/src/metrics/health/core.clj
clojure
any other result, (including an exception), will REVIEW: Should this automatically remove a previous check of Define a healthcheck titled \"default.default.foo\" into var foo Define a healthcheck titled \"a.b.c\" into var c
(ns metrics.health.core (:require [clojure.set :as set] [metrics.core :refer [default-registry metric-name]] [metrics.utils :refer [desugared-title]]) (:import clojure.lang.IFn [com.codahale.metrics MetricRegistry Gauge] [com.codahale.metrics.health HealthCheck HealthCh...
5669d0317c5d66719f3df5ec80475a8a4fef0eab9e0bbedf7bb68e18efead4e5
cac-t-u-s/om-sharp
collections.lisp
;============================================================================ ; om#: visual programming language for computer-assisted music composition ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see...
null
https://raw.githubusercontent.com/cac-t-u-s/om-sharp/80f9537368471d0e6e4accdc9fff01ed277b879e/src/visual-language/tools/collections.lisp
lisp
============================================================================ om#: visual programming language for computer-assisted music composition ============================================================================ This program is free software. For information on usage and redistribution, see the "...
File author : (in-package :om) (defclass* collection (named-object) ((obj-type :accessor obj-type :initform nil) (obj-list :initarg :obj-list :accessor obj-list :initform nil)) (:documentation "Container holding a set of several objects of the same type. Displays/enable editing the list of objects in a s...
eecd4e318848636fa671b83092c070ba9e3cbfb6bf39888116b0f039dc6662b1
sangkilc/ofuzz
comblib.ml
(* ofuzz - ocaml fuzzing platform *) * combinatorial apis @author < sangkil.cha\@gmail.com > @since 2014 - 03 - 19 @author Sang Kil Cha <sangkil.cha\@gmail.com> @since 2014-03-19 *) Copyright ( c ) 2014 , All rights reserved . Redistribution and use in source and binary for...
null
https://raw.githubusercontent.com/sangkilc/ofuzz/ba53cc90cc06512eb90459a7159772d75ebe954f/src/comblib.ml
ocaml
ofuzz - ocaml fuzzing platform
* combinatorial apis @author < sangkil.cha\@gmail.com > @since 2014 - 03 - 19 @author Sang Kil Cha <sangkil.cha\@gmail.com> @since 2014-03-19 *) Copyright ( c ) 2014 , All rights reserved . Redistribution and use in source and binary forms , with or without modification ,...
3cb2e6c04d576f6960975894b3663a43ea52d98e1da9652bcfc43dc521a846bf
ocaml-sf/learn-ocaml-corpus
cnf_exception.ml
(* ------------------------------------------------------------------------------ *) (* Building formulae. *) let var x = FVar x let falsity = FConst false let truth = FConst true let const sense = if sense then truth else falsity (* [FConst sense] would work too, but would allocate memory *) let neg ...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/sat/wrong/cnf_exception.ml
ocaml
------------------------------------------------------------------------------ Building formulae. [FConst sense] would work too, but would allocate memory ------------------------------------------------------------------------------ Evaluating formulae. We assume [n < Sys.word_size - 1]. -----------------...
let var x = FVar x let falsity = FConst false let truth = FConst true let const sense = if sense then truth else falsity let neg f = match f with | FConst sense -> const (not sense) | FNeg f -> f | _ -> FNeg f let conn sense f1 f2 = match f1, f2 with | FConst sense', f | f...
019b430c921f64d150164159b9bf5f79d354281ab68e0362cbc0d6d761079e43
andorp/bead
Page.hs
{-# LANGUAGE OverloadedStrings #-} module Bead.View.Content.NewTestScript.Page ( newTestScript , modifyTestScript ) where import Control.Arrow ((***)) import Data.String (fromString) import Data.String.Utils (replace) import Text.Blaze.Html5 as H hiding (map) import qu...
null
https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Bead/View/Content/NewTestScript/Page.hs
haskell
# LANGUAGE OverloadedStrings # * Content Handlers ^ Create a new test script Helper
module Bead.View.Content.NewTestScript.Page ( newTestScript , modifyTestScript ) where import Control.Arrow ((***)) import Data.String (fromString) import Data.String.Utils (replace) import Text.Blaze.Html5 as H hiding (map) import qualified Bead.Controller.Pages as Pa...
9b54e7e638e042e1451e8869ef93a1c89dd5b0418fc4da1769e92bb98e77578f
silky/quipper
PDF.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== -- ----------------------------------------------...
null
https://raw.githubusercontent.com/silky/quipper/1ef6d031984923d8b7ded1c14f05db0995791633/Programs/Tools/PDF.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== ---------------------------------------------------------------------- | This tool reads a circuit from standard input and converts it...
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the module Main where import Quipper import QuipperLib.QuipperASCIIParser | Main function : read from ' stdin ' and write to ' stdout ' . main :: IO () main = do (ins,circuit) <- parse_from_stdin print_generic PDF circuit ins
c916732f29c7e3bf42995b547477082263daaa8916f769da072e53beff0e0ab4
YoshikuniJujo/markdown2svg
SVG.hs
# LANGUAGE QuasiQuotes # module Image.SVG (isSVG, svgSize) where import Control.Applicative import Text.Papillon import Data.Char doctype0 :: DocType doctype0 = DocType "svg" "-//W3C//DTD SVG 1.1//EN" "" xmlns0 :: String xmlns0 = "" isSVG :: String -> Bool isSVG svg = case getSVGHeader svg of Just (_, d, SVG s) -...
null
https://raw.githubusercontent.com/YoshikuniJujo/markdown2svg/a4a53d2f669c124684e8beee5c1c271d9699f952/src/Image/SVG.hs
haskell
{ (h, d, s) }
# LANGUAGE QuasiQuotes # module Image.SVG (isSVG, svgSize) where import Control.Applicative import Text.Papillon import Data.Char doctype0 :: DocType doctype0 = DocType "svg" "-//W3C//DTD SVG 1.1//EN" "" xmlns0 :: String xmlns0 = "" isSVG :: String -> Bool isSVG svg = case getSVGHeader svg of Just (_, d, SVG s) -...
d9612e2a78dfca410685d7fbe6e49c948b866a836b509c2a27443d8d16f24c74
standardsemiconductor/lion
Spi.hs
| Module : Spi Description : Lion SoC SPI peripheral Copyright : ( c ) , 2021 License : BSD-3 - Clause Maintainer : Register Map | 31 ------- 24 | 23 ------------------------------ 16 | 15 --------- 0 | | SysBus Status | SysBus Read / Write OR SysBus Received | SysBus Command | ...
null
https://raw.githubusercontent.com/standardsemiconductor/lion/dc7bf7e6f86c752eac4cdbb75748dd18a161d777/lion-soc/src/Spi.hs
haskell
----- 24 | 23 ------------------------------ 16 | 15 --------- 0 | ----- 24 | 23 ------------------------------ 16 | 15 --------- 0 | output sysbus signals when ack received, set instr to Nothing indicating done handle memory requests command busy, ignore command idle, execute command read received read status...
| Module : Spi Description : Lion SoC SPI peripheral Copyright : ( c ) , 2021 License : BSD-3 - Clause Maintainer : Register Map | SysBus Status | SysBus Read / Write OR SysBus Received | SysBus Command | SysBus Status 0 = Empty , otherwise Busy SysBus Read / Write 0 = Read , 1 =...
c1e73cb52d4e16d34ccd8f1e33a86f731c311d2748f37dcd46e51bad71b26f0f
jellelicht/guix
r.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/build-system/r.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix build-system r) #:use-module (guix store) #:use-module (guix utils) #:use-module (guix ...
847145ff8b4d6a60cb5585a3cc5ce6459a3195ca9431dbb94bd9fd98fdc99f1a
2600hz-archive/whistle
ts_cdr.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2010 - 2011 , VoIP INC %%% @doc Receive a callmgr CDR and augment it with Trunkstore - specific fields , %%% storing it in the database. If the CDR is already stored ( from another Trunkstore app ) , the save_doc/2 %%% ...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/whistle_apps/apps/trunkstore/src/ts_cdr.erl
erlang
------------------------------------------------------------------- @doc storing it in the database. should cause the process to crash, not storing it again. @end ------------------------------------------------------------------- Matched by IP neither matched matched by hostname
@author < > ( C ) 2010 - 2011 , VoIP INC Receive a callmgr CDR and augment it with Trunkstore - specific fields , If the CDR is already stored ( from another Trunkstore app ) , the save_doc/2 Created : 24 Nov 2010 by < > -module(ts_cdr). -export([start_link/0, store_cdr/3, fetch_cdr/2, store/1]). -in...
7a969e39ebaa45265382673097c1914926aea9d6c026f6923403cb9ef19228cd
rjohnsondev/haskellshop
Categories.hs
# LANGUAGE OverloadedStrings , ScopedTypeVariables # module Admin.Categories where import Admin.Feedback import Application import Control.Applicative import FormUtil import Snap.Core import Snap.Snaplet import Snap.Snaplet.Heist import qualified Data.Map as M import qualified Data.Text.Encoding as DTE import qualifi...
null
https://raw.githubusercontent.com/rjohnsondev/haskellshop/645f9e40b9843fc987d37a0ee58460929ef50aae/src/Admin/Categories.hs
haskell
# LANGUAGE OverloadedStrings , ScopedTypeVariables # module Admin.Categories where import Admin.Feedback import Application import Control.Applicative import FormUtil import Snap.Core import Snap.Snaplet import Snap.Snaplet.Heist import qualified Data.Map as M import qualified Data.Text.Encoding as DTE import qualifi...
2c6ad2c3729ed935caa05bbaed4de93759533417015deb8530988fb220d332a3
kyleburton/clj-xpath
core.clj
(ns clj-xpath.test.core (:use [clojure.test] [clj-xpath.core :as xp :only [$x $x:tag $x:text $x:attrs $x:attrs* $x:node $x:tag? $x:text? $x:tag+ $x:text+ xp:compile tag xml->doc *xpath-compiler* *namespace-aware* nscontext xmlnsmap-from-root-node with-namespace-context abs-path]])) (def xml-fixtures...
null
https://raw.githubusercontent.com/kyleburton/clj-xpath/24f7067e418e08eec9d412c5abb9f4983fa21f10/test/clj_xpath/test/core.clj
clojure
*clojure-version* should not throw </foo>"))) </foo>"
(ns clj-xpath.test.core (:use [clojure.test] [clj-xpath.core :as xp :only [$x $x:tag $x:text $x:attrs $x:attrs* $x:node $x:tag? $x:text? $x:tag+ $x:text+ xp:compile tag xml->doc *xpath-compiler* *namespace-aware* nscontext xmlnsmap-from-root-node with-namespace-context abs-path]])) (def xml-fixtures...
825dcd17e5504f11e85096ddcc862af1bf39a12984d2fc5e5ecf4891ba254974
spawnfest/eep49ers
ssl_api_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2019 - 2019 . All Rights Reserved . %% 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 applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/test/ssl_api_SUITE.erl
erlang
%CopyrightBegin% 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 lan...
Copyright Ericsson AB 2019 - 2019 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ssl_api_SUITE). -behaviour(ct_suite). -include_lib("common_test/include/ct.hrl"). -include_lib("ssl/src/ss...
59383dcdca1f90c9637733213af2d7b0aed70b18cc61ea8959df1c3423a5351f
jafingerhut/clojure-benchmarks
knucleotide.clj-17.clj
The Computer Language Benchmarks Game ;; / contributed by (ns knucleotide (:gen-class)) (set! *warn-on-reflection* true) (definterface IByteString (calculateHash [buf offset]) (incCount []) (^int hashCode []) (^int getCount []) (^boolean equals [obj2]) (^String toString []) ) (deftype B...
null
https://raw.githubusercontent.com/jafingerhut/clojure-benchmarks/474a8a4823727dd371f1baa9809517f9e0b508d4/knucleotide/knucleotide.clj-17.clj
clojure
/ else parallelism as specified by the parameter num-threads. Uses my-lazy-map instead of map from core.clj, since that version of map can use unwanted additional parallelism for chunked collections, like ranges. Return true when the line l is a FASTA description line Return true when the line l is a FASTA d...
The Computer Language Benchmarks Game contributed by (ns knucleotide (:gen-class)) (set! *warn-on-reflection* true) (definterface IByteString (calculateHash [buf offset]) (incCount []) (^int hashCode []) (^int getCount []) (^boolean equals [obj2]) (^String toString []) ) (deftype ByteStri...
809e51fb4c1c91b9227b95b8d91b18f023309eeeac671b6e853c664199ee8746
damballa/parkour
mapred.clj
(ns parkour.io.dseq.mapred {:private true} (:require [clojure.core.protocols :as ccp] [clojure.core.reducers :as r] [parkour (conf :as conf) (wrapper :as w)] [parkour.util :refer [doto-let returning]] [parkour.mapreduce (source :as src)] [parkour.util :ref...
null
https://raw.githubusercontent.com/damballa/parkour/2b3c5e1987e18b4c4284dfd4fcdaba267a4d7fbc/src/clojure/parkour/io/dseq/mapred.clj
clojure
(ns parkour.io.dseq.mapred {:private true} (:require [clojure.core.protocols :as ccp] [clojure.core.reducers :as r] [parkour (conf :as conf) (wrapper :as w)] [parkour.util :refer [doto-let returning]] [parkour.mapreduce (source :as src)] [parkour.util :ref...
a0ff4d06ba1dfedac53c58e05e57b471f4a6ebffb32a00b7f5a60fce2240d0fa
huangjs/cl
ans96.lisp
Simple inefficient answer to Qual 96 programming question ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The parser ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ( PARSE input - words ) = > sorted list of scored target concepts ;;; ;;; Example: ;;; > ( PARSE ' ( RAKE...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cs325/www.cs.northwestern.edu/%7Eriesbeck/quals/ans96.lisp
lisp
The parser Example: of target concepts that had index sets that intersected with concepts referred to by the input. How well those index sets intersect with the input concepts is reflected in the score. From input words to concepts (GET-INPUT-CONCEPTS words) => list of concepts Returns the concepts r...
Simple inefficient answer to Qual 96 programming question ( PARSE input - words ) = > sorted list of scored target concepts > ( PARSE ' ( RAKE THE GARDEN ) ) ( ( 30 M - RAKE - GARDEN ) ( 5 M - REMOVE - WEEDS - FROM - GARDEN ) ( 5 M - WATER - GARDEN ) ) PARSE takes an input text ( list of words ) and re...
a20ac6fe742bf3b0232412c76d8171cf78f8d2ea4f40468d7402e6b50ca3b153
8c6794b6/guile-tjit
punify.scm
;;; punify --- Display Scheme code w/o unnecessary comments / whitespace Copyright ( C ) 2001 , 2006 Free Software Foundation , Inc. ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundatio...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/scripts/punify.scm
scheme
punify --- Display Scheme code w/o unnecessary comments / whitespace This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 3 , or (at your option) any later version. This program is distributed in the hope that it will be ...
Copyright ( C ) 2001 , 2006 Free Software Foundation , Inc. You should have received a copy of the GNU Lesser General Public not , write to the Free Software Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA Author : Usage : punify FILE1 ... 89 384 ./punify ...
1d2922bc995418aafb8240d91d4d307952d8b0b495bc087493b1779674e50126
GaloisInc/HaNS
Ethernet.hs
# LANGUAGE RecordWildCards # module Hans.Ethernet ( module Exports, module Hans.Ethernet ) where import Hans.Device.Types import Hans.Ethernet.Types as Exports import Hans.Serialize (runPutPacket) import Control.Concurrent.BoundedChan (tryWriteChan) import Control.Monad (unless) import ...
null
https://raw.githubusercontent.com/GaloisInc/HaNS/2af19397dbb4f828192f896b223ed2b77dd9a055/src/Hans/Ethernet.hs
haskell
| Send a message out via a device. if the packet is too big for the device, throw it away
# LANGUAGE RecordWildCards # module Hans.Ethernet ( module Exports, module Hans.Ethernet ) where import Hans.Device.Types import Hans.Ethernet.Types as Exports import Hans.Serialize (runPutPacket) import Control.Concurrent.BoundedChan (tryWriteChan) import Control.Monad (unless) import ...
66aefcfe496b1ac6e2b12c273567c367c2fd002689bc983141122db51b5e9c93
chetmurthy/poly-protobuf
test17_ml.ml
module T = Test17_types module Pb = Test17_pb module Pp = Test17_pp let decode_ref_data () = T.({ m1 = { i1 = 1; i2 = 2; }; m2 = 1; m3 = 1; o = M4 4; }) let mode = Test_util.parse_args () let () = match mode with | Test_util.Decode -> Test_util.decode "test17.c2ml.data" Pb.decode_m Pp.pp...
null
https://raw.githubusercontent.com/chetmurthy/poly-protobuf/1f80774af6472fa30ee2fb10d0ef91905a13a144/tests/testdata/integration-tests/test17_ml.ml
ocaml
module T = Test17_types module Pb = Test17_pb module Pp = Test17_pp let decode_ref_data () = T.({ m1 = { i1 = 1; i2 = 2; }; m2 = 1; m3 = 1; o = M4 4; }) let mode = Test_util.parse_args () let () = match mode with | Test_util.Decode -> Test_util.decode "test17.c2ml.data" Pb.decode_m Pp.pp...
f055c8b14ad91fc35148924a7b99e08a24ac555119cd25f7de707aefaf53c9b2
tlaplus/tlapm
method_old.ml
* method_old.ml --- abstraction of methods : old version to keep fingerprints compatibility * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * method_old.ml --- abstraction of methods : old version to keep fingerprints compatibility * * * Copyright (C) 2008-2010 INRIA and Microsof...
null
https://raw.githubusercontent.com/tlaplus/tlapm/b82e2fd049c5bc1b14508ae16890666c6928975f/src/method_old.ml
ocaml
| Fail
* method_old.ml --- abstraction of methods : old version to keep fingerprints compatibility * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * method_old.ml --- abstraction of methods : old version to keep fingerprints compatibility * * * Copyright (C) 2008-2010 INRIA and Microsof...
50f616a44dd3f61f53c2d05628e08db3713f958ba57e1aa92c1eda40389fbcde
silviucpp/erlcass
load_test.erl
-module(load_test). -include("erlcass.hrl"). -export([ profile/2, profile/3, prepare_load_test_table/0 ]). -define(KEYSPACE, <<"load_test_erlcass">>). -define(QUERY, {<<"SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11, col12, col13, col14 FROM test_table WHERE col1 =?">>, ?CASS_...
null
https://raw.githubusercontent.com/silviucpp/erlcass/4a18c9bcb89b70ce7284c610def12c646284c2e1/benchmarks/load_test.erl
erlang
success results io:format("Result:~p ~n", [Result]), failed results
-module(load_test). -include("erlcass.hrl"). -export([ profile/2, profile/3, prepare_load_test_table/0 ]). -define(KEYSPACE, <<"load_test_erlcass">>). -define(QUERY, {<<"SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11, col12, col13, col14 FROM test_table WHERE col1 =?">>, ?CASS_...
0e21ab4c075bab37e23b00814fe4f79f9f65b551f4f819bff6591163a64d3727
movio/spaceapps-streamgazer
webservice.clj
(ns crawler.webservice (:require [clojure.data.csv :as csv] [clj-http.client :as http] [clojure.java.io :as io])) (def station-search-url "") (def result-search-url "") (defn read-csv-as-map [input] (let [data (csv/read-csv input) column-names (first data) data (rest data)]...
null
https://raw.githubusercontent.com/movio/spaceapps-streamgazer/4a19a054c2198aceaadbebca85ea37712f96d855/crawler/src/crawler/webservice.clj
clojure
(println (dissoc resp :body))
(ns crawler.webservice (:require [clojure.data.csv :as csv] [clj-http.client :as http] [clojure.java.io :as io])) (def station-search-url "") (def result-search-url "") (defn read-csv-as-map [input] (let [data (csv/read-csv input) column-names (first data) data (rest data)]...
5f790d21a4e82385e17ccd002826cd093f590b317c29f00c6ebd23ab807abc6d
erlangonrails/devdb
yaws_jsonrpc.erl
Copyright ( C ) 2003 < > . %% All rights reserved. %% Copyright ( C ) 2006 < > < > %% All rights reserved. %% %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions %% are met: %% 1 . Redistrib...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/contrib/yaws/src/yaws_jsonrpc.erl
erlang
All rights reserved. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. copyright notice, this list of conditions and the foll...
Copyright ( C ) 2003 < > . Copyright ( C ) 2006 < > < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS '' AND ANY EXPRESS DIRECT , INDIRECT , INCI...
2ee5499d755fcf578ba309c8a80b7979fb2adb48b02a19eb3fc4177a19080eb0
chicken-mobile/chicken-sdl2-android-builder
general.scm
;; chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 ;; Copyright © 2013 , 2015 - 2016 . ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions ;; are met: ;; ;; - Redistributions...
null
https://raw.githubusercontent.com/chicken-mobile/chicken-sdl2-android-builder/90ef1f0ff667737736f1932e204d29ae615a00c4/eggs/sdl2/lib/sdl2-internals/enums/general.scm
scheme
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributio...
chicken - sdl2 : CHICKEN Scheme bindings to Simple DirectMedia Layer 2 Copyright © 2013 , 2015 - 2016 . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT N...
00db9e3279b4963ddce9e5914ab97d36ec4436518af6f57f0557cae43fb15042
nedap/speced.def
pre_post.cljc
(ns unit.nedap.speced.def.defn.pre-post "This ns duplicates `unit.nedap.speced.def.defn`, but adding a 'manual' :pre/:post map to each example defn. That way the tests can remain comprehensible." (:require #?(:clj [clojure.spec.alpha :as spec] :cljs [cljs.spec.alpha :as spec]) #?(:clj [clojure.test :refer ...
null
https://raw.githubusercontent.com/nedap/speced.def/55053e53e749f77753294f3ee8d4639470840f8c/test/unit/nedap/speced/def/defn/pre_post.cljc
clojure
(ns unit.nedap.speced.def.defn.pre-post "This ns duplicates `unit.nedap.speced.def.defn`, but adding a 'manual' :pre/:post map to each example defn. That way the tests can remain comprehensible." (:require #?(:clj [clojure.spec.alpha :as spec] :cljs [cljs.spec.alpha :as spec]) #?(:clj [clojure.test :refer ...
6dfab05f076145cedbc015b541407c713ac981bcf70a86bc5e65b56c3bd8fa04
KULeuven-CS/CPL
2.9.rkt
#lang eopl (require rackunit) (define empty-env (lambda () '())) (define extend-env (lambda(var val env) (cons (cons var val) env))) Exercise 2.9 (define has-binding? (lambda (env search-var) (if (empty-env? env) #f (if (equal? (caar env) search-var) #t (has-...
null
https://raw.githubusercontent.com/KULeuven-CS/CPL/0c62cca832edc43218ac63c4e8233e3c3f05d20a/chapter2/2.9.rkt
racket
#lang eopl (require rackunit) (define empty-env (lambda () '())) (define extend-env (lambda(var val env) (cons (cons var val) env))) Exercise 2.9 (define has-binding? (lambda (env search-var) (if (empty-env? env) #f (if (equal? (caar env) search-var) #t (has-...
471de7563087f7945b57dd688954f6be2c5ec20ad8797edd95b0b335a35c60f2
dnsimple/erldns-metrics
erldns_metrics_app.erl
%% Copyright (c) DNSimple Corporation %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCL...
null
https://raw.githubusercontent.com/dnsimple/erldns-metrics/5985cbc76f2dd3a2c3608f3d36a930cf59bd5d92/src/erldns_metrics_app.erl
erlang
Copyright (c) DNSimple Corporation Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF ME...
THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN @doc The erldns OTP application . -module(erldns_metrics_app). -behavior(application). -e...
2013a6d2bbb027e90654ab9efc5f46eed68d543030ff8cbecf19574d930ec56a
evolutics/haskell-formatter
Output.hs
predecessor = predecessor -- |comment before successor :: a successor = successor
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/testsuite/resources/source/comments/depends_on_displacement/single_annotation/single_line/before/Output.hs
haskell
|comment before
predecessor = predecessor successor :: a successor = successor
2a995cc859b465fd37ef70b5b8d76a4b55616b4626b89c940a323e5b5db04641
Vaguery/klapaucius
to_tagspace_test.clj
(ns push.instructions.standard.to_tagspace_test (:require [push.interpreter.core :as i] [push.type.core :as t]) (:use midje.sweet) (:use [push.util.test-helpers]) (:use [push.instructions.aspects]) (:use [push.type.definitions.tagspace]) (:use push.type.item.tagspace) (:use push.instructions.a...
null
https://raw.githubusercontent.com/Vaguery/klapaucius/17b55eb76feaa520a85d4df93597cccffe6bdba4/test/push/instructions/standard/to_tagspace_test.clj
clojure
(ns push.instructions.standard.to_tagspace_test (:require [push.interpreter.core :as i] [push.type.core :as t]) (:use midje.sweet) (:use [push.util.test-helpers]) (:use [push.instructions.aspects]) (:use [push.type.definitions.tagspace]) (:use push.type.item.tagspace) (:use push.instructions.a...
144ebfcd1e5bf5fbe79bd884f0aefe1958c45e784b6ea509f6d909a79eb2994e
gorillalabs/sparkling
transform.clj
(ns sparkling.ml.transform (:import [org.apache.spark.ml.feature StandardScaler])) (defn standard-scaler "Scales the input-col to have a range between 0 and 1" [{:keys [input-col output-col] :as m}] {:pre [(every? m [:input-col :output-col])]} (doto (StandardScaler.) (.setInputCol input-col) (.setOutp...
null
https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/src/clojure/sparkling/ml/transform.clj
clojure
(ns sparkling.ml.transform (:import [org.apache.spark.ml.feature StandardScaler])) (defn standard-scaler "Scales the input-col to have a range between 0 and 1" [{:keys [input-col output-col] :as m}] {:pre [(every? m [:input-col :output-col])]} (doto (StandardScaler.) (.setInputCol input-col) (.setOutp...