_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
19583ca1de48864d76180d123f3db761dcf905aa39b71df50e85e7b4ab539150
2600hz-archive/whistle
ecallmgr_shout.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 , VoIP INC %%% @doc %%% Open a socket to receive a SHOUTCast stream; store the media data to the passed in FilePath . %%% @end Created : 4 May 2011 by < > %%%---------------------------------------------------...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/ecallmgr/src/ecallmgr_shout.erl
erlang
------------------------------------------------------------------- @doc Open a socket to receive a SHOUTCast stream; store the media data @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API =====...
@author < > ( C ) 2011 , VoIP INC to the passed in FilePath . Created : 4 May 2011 by < > -module(ecallmgr_shout). -export([start_link/2, get_recv_url/1, get_srv_url/1, get_path/1]). -export([init_recv/2, init_srv/2, init_auth/3]). -include("ecallmgr.hrl"). -include_lib("whistle/include/wh_media.hrl...
b55de4d5b1ecfc1e1c8d6731e81c3cc617330f48dd0fb22fbde94d9e5244ddc4
oxidizing/sihl
core_command.ml
let log_src = Logs.Src.create "sihl.core.command" module Logs = (val Logs.src_log log_src : Logs.LOG) exception Exception of string type t = { name : string ; usage : string option ; description : string ; dependencies : Core_lifecycle.lifecycle list [@opaque] ; fn : string list -> unit option Lwt.t [@opaq...
null
https://raw.githubusercontent.com/oxidizing/sihl/1870d7c9fba19a883a9ccc5f07e9f9f76bf22e35/sihl/src/core_command.ml
ocaml
let log_src = Logs.Src.create "sihl.core.command" module Logs = (val Logs.src_log log_src : Logs.LOG) exception Exception of string type t = { name : string ; usage : string option ; description : string ; dependencies : Core_lifecycle.lifecycle list [@opaque] ; fn : string list -> unit option Lwt.t [@opaq...
350bca728f3003075033ebbfafef7df08e048a983e0f0baae1b48f1eff6077a3
petitnau/algoml
test.ml
open Types open General open Frontend open Amlprinter open Int open OUnit2 let rec create_accs (s:state) (accnum:int) : state * address list = if accnum > 0 then let acc_x = Account.empty_user() in let addr_x = Account.get_address acc_x in let s' = s >$> acc_x in let s'', addresses = create_accs s' ...
null
https://raw.githubusercontent.com/petitnau/algoml/c0122c85004114ba634b4946549a78325ff844ee/src/tests/test.ml
ocaml
TEST SUITE 1 * * ?
open Types open General open Frontend open Amlprinter open Int open OUnit2 let rec create_accs (s:state) (accnum:int) : state * address list = if accnum > 0 then let acc_x = Account.empty_user() in let addr_x = Account.get_address acc_x in let s' = s >$> acc_x in let s'', addresses = create_accs s' ...
8e4dc21900f0a9330cec32e487582032ef195f7f1868d379ccd6c07972176f6f
input-output-hk/plutus-apps
PingPong.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE NoIm...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/8949ce26588166d9961205aa61edd66e4f83d4f5/plutus-use-cases/src/Plutus/Contracts/PingPong.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators # Transition the state machine instance t...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NamedFieldPuns # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - ignore - interface - pragmas # # OPTIONS_GHC -fplugin - opt PlutusTx . Plugin : debu...
7c543b3176698a3abde62a5d798dc8b4a26121305198fbe6994d30efbde43470
solomon-b/monoidal-functors
Specialized.hs
# LANGUAGE TupleSections # module Data.Bifunctor.Monoidal.Specialized where import Control.Category.Cartesian import Control.Category.Tensor () import Data.Bifunctor.Monoidal import Data.Functor.Contravariant import Data.Profunctor import Data.These import Data.Void import Prelude hiding ((&&), (||)) | Split the i...
null
https://raw.githubusercontent.com/solomon-b/monoidal-functors/9d956075b945d3e2c73666e2d447ea19a4b813f1/src/Data/Bifunctor/Monoidal/Specialized.hs
haskell
| Infix operator for 'mux'. | Infix operator for 'demux'. | Infix operator for 'fanout'. | Infix operator for 'fanin'. | Infix operator for 'switch'. | Infix operator for 'splice'.
# LANGUAGE TupleSections # module Data.Bifunctor.Monoidal.Specialized where import Control.Category.Cartesian import Control.Category.Tensor () import Data.Bifunctor.Monoidal import Data.Functor.Contravariant import Data.Profunctor import Data.These import Data.Void import Prelude hiding ((&&), (||)) | Split the i...
77a375e4040b43e91f4171caeae18aaef43473841e40ef2d21f124c4026173f8
pedestal/pedestal
definition.clj
Copyright 2013 Relevance , Inc. Copyright 2014 - 2022 Cognitect , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; which can be found in the file epl-v10.html at the root of this distribution. ; ; By using this software in any fashion, you are agreeing ...
null
https://raw.githubusercontent.com/pedestal/pedestal/53bfe70143a22cdfd2f0d183023334a199c9e9a2/route/src/io/pedestal/http/route/definition.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. T...
Copyright 2013 Relevance , Inc. Copyright 2014 - 2022 Cognitect , Inc. Eclipse Public License 1.0 ( ) (ns io.pedestal.http.route.definition) (def schemes #{:http :https}) (def allowed-keys #{:route-name :app-name :path :method :scheme :host :port :interceptors :path-re :path-parts :path-params :path-constrain...
0e7fee8dc17e1495ede0eb0aece7caffaade30af3d5bd3d99f1471d58052110f
janestreet/hardcaml_circuits
fast_fifo.ml
open! Base open Hardcaml open Signal module Make (M : Hardcaml.Interface.S) = struct module I = struct type 'a t = { clock : 'a ; clear : 'a ; wr_data : 'a M.t [@rtlprefix "wr_"] ; wr_enable : 'a ; rd_enable : 'a } [@@deriving sexp_of, hardcaml] end module O = struct ...
null
https://raw.githubusercontent.com/janestreet/hardcaml_circuits/a8b93bdbf62df185dc338aaf637962c02b231ad5/src/fast_fifo.ml
ocaml
open! Base open Hardcaml open Signal module Make (M : Hardcaml.Interface.S) = struct module I = struct type 'a t = { clock : 'a ; clear : 'a ; wr_data : 'a M.t [@rtlprefix "wr_"] ; wr_enable : 'a ; rd_enable : 'a } [@@deriving sexp_of, hardcaml] end module O = struct ...
d4c38c7d4f05cbd00036a2e192eb1c7115a757837dd8d1c200ba9d4018b4310c
lispbuilder/lispbuilder
tmap2d.lisp
(in-package #:rm-examples) (defvar *window* nil) ;(defvar *image* (rm::load-image (rm::create-path "doghead.jpg" *image-path*))) (defclass tmap-window (rm::sdl-window rm::aux-window) () (:default-initargs :width 400 :height 300 :name "window")) (defclass tmap-scene (rm::scene rm::aux-trackball rm::aux-sc...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-openrm/examples/tmap2d.lisp
lisp
(defvar *image* (rm::load-image (rm::create-path "doghead.jpg" *image-path*))) Attempt to clean up any stray windows
(in-package #:rm-examples) (defvar *window* nil) (defclass tmap-window (rm::sdl-window rm::aux-window) () (:default-initargs :width 400 :height 300 :name "window")) (defclass tmap-scene (rm::scene rm::aux-trackball rm::aux-scene)() (:default-initargs :name "scene" :dims :rm-renderpass-3D :opac...
0a8dac5fe8b08288a7aca7accd4d56d46d48340cfa437b2950bde51fb72d25a9
autolwe/autolwe
Syms.mli
(* * Symbols for variables and other objects *) (* ** Imports *) open Type open Abbrevs open Id (* ** Typed symbols * ----------------------------------------------------------------------- *) module TypedSym : sig type t = private { id : id; dom : ty; codom : ty; } val hash : t -> int val...
null
https://raw.githubusercontent.com/autolwe/autolwe/3452c3dae06fc8e9815d94133fdeb8f3b8315f32/src/Expr/Syms.mli
ocaml
* Symbols for variables and other objects ** Imports ** Typed symbols * ----------------------------------------------------------------------- ** Bilinear map symbols * ----------------------------------------------------------------------- ** Permutation symbols * -----------------------------------------...
open Type open Abbrevs open Id module TypedSym : sig type t = private { id : id; dom : ty; codom : ty; } val hash : t -> int val equal : t -> t -> bool val compare : t -> t -> int val mk : string -> ty -> ty -> t val pp : F.formatter -> t -> unit val pp_long : F.formatter -> t -> un...
1b2ef7bf1f4db256e680d3707ee901b117943f7d29ad54d101a0ccb2f7def601
igorhvr/bedlam
srfi-29.scm
; SRFI-29 implementation This is a non - portable implementation that relies on Java ; for detection of the locale, SISC for symbolic environments to store translations , and Java to store / retrieve bundles ; ( C ) 2002 ; ; Currently unfinished, need to implement working store and load bundle, ; but they aren...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-1.16.6/full-src/sisc/src/sisc/modules/srfi/srfi-29.scm
scheme
SRFI-29 implementation for detection of the locale, SISC for symbolic environments Currently unfinished, need to implement working store and load bundle, but they aren't required to be SRFI-29 compliant. An SRFI-28 and SRFI-29 compliant version of format. It requires SRFI-23 for error reporting.
This is a non - portable implementation that relies on Java to store translations , and Java to store / retrieve bundles ( C ) 2002 (define (format format-string . objects) (let ((buffer (open-output-string))) (let loop ((format-list (string->list format-string)) (objects objects) ...
0b1ac393ab5fd0f76c99e25cb1086bb3027a8aec15c9deb47df9647adde61c61
apinf/proxy42
p42_auth_key.erl
-module(p42_auth_key). -export([init/0, terminate/1]). -export([auth/3]). -export([handle_http/2]). -import(proxy42_authorisation, [is_authorised/2]). -import(p42_req_ctx, [get_api_id/1]). -import(p42_req, [get_header/2, get_qs_val/2]). -define(KEYSTAB, auth_key_developers). -define(PLUG, 'Elixir.Plug.Conn'). init(...
null
https://raw.githubusercontent.com/apinf/proxy42/01b483b711881391e8306bf64b83b4df9d0bc832/apps/proxy42_core/src/strategies/auth/p42_auth_key.erl
erlang
{sup, pid} is the supervision tree of plugin if it exists. {strategies, [{strategy_type, strategy_name, strategy_module}]} slug, string | binary tables, [{tablename, attributes}] TODO: add table to hold this stuff Allow configurable header name header/qs_val, Name, raw/bearer , keep/strip define default behavio...
-module(p42_auth_key). -export([init/0, terminate/1]). -export([auth/3]). -export([handle_http/2]). -import(proxy42_authorisation, [is_authorised/2]). -import(p42_req_ctx, [get_api_id/1]). -import(p42_req, [get_header/2, get_qs_val/2]). -define(KEYSTAB, auth_key_developers). -define(PLUG, 'Elixir.Plug.Conn'). init(...
0716686e68d97357378160b0aaed706cdf44e68597b955b1238cb1ebf5638e79
liqula/react-hs
Base.hs
module Base (Lens, Ref((:-:))) where import React.Flux (SomeStoreAction) -- Temporary and evil instance Eq (a -> b) where _ == _ = False data Ref a = a :-: ((a -> IO a) -> SomeStoreAction) deriving Eq infix 3 :-: type Lens s a = (a -> IO a) -> s -> IO s
null
https://raw.githubusercontent.com/liqula/react-hs/204c96ee3514b5ddec65378d37872266b05e8954/react-hs-examples/redux/src/Base.hs
haskell
Temporary and evil
module Base (Lens, Ref((:-:))) where import React.Flux (SomeStoreAction) instance Eq (a -> b) where _ == _ = False data Ref a = a :-: ((a -> IO a) -> SomeStoreAction) deriving Eq infix 3 :-: type Lens s a = (a -> IO a) -> s -> IO s
0069ffe758f7ad5e12b7a3a5609f649451d554c6a9fc72adbbd887385f57f71a
MastodonC/kixi.large
legacy.clj
;; this is just a copy of the docjure namespace (ns kixi.large.legacy (:import (java.io FileOutputStream FileInputStream InputStream OutputStream) (java.time LocalDate) (java.util Date Calendar) (org.apache.poi.xssf.usermodel XSSFWorkbook) (org.apache.poi.hssf.usermodel HSSFWorkbook) (org.apache.poi...
null
https://raw.githubusercontent.com/MastodonC/kixi.large/c593467394c7007b565fbd395afe00920c6d334d/src/kixi/large/legacy.clj
clojure
this is just a copy of the docjure namespace not used incomplete pairs should not be allowed call single arity version to create workbook iterate through pairs adding sheets and rows nil values are skipped incomplete pairs should not be allowed call single arity version to create workbook iterate through pairs...
(ns kixi.large.legacy (:import (java.io FileOutputStream FileInputStream InputStream OutputStream) (java.time LocalDate) (java.util Date Calendar) (org.apache.poi.xssf.usermodel XSSFWorkbook) (org.apache.poi.hssf.usermodel HSSFWorkbook) (org.apache.poi.ss.usermodel Workbook Sheet Cell Row CellType ...
db879a106c0180363a49b841a1a6327c110fab917ebd4fb0e72743e31ee6f695
haskell/cabal
Main.hs
module Main (module Demo) where import Demo (main)
null
https://raw.githubusercontent.com/haskell/cabal/00a2351789a460700a2567eb5ecc42cca0af913f/cabal-testsuite/PackageTests/CmmSources/demo/Main.hs
haskell
module Main (module Demo) where import Demo (main)
0448d1c7640ae430d9f983c392e95f26fa28ac22800e94ee79bc66a09d67d800
vlstill/hsExprTest
anno-1.ok.hs
f :: Integral a => a -> Bool f x = x > 0
null
https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/examples/anno-1.ok.hs
haskell
f :: Integral a => a -> Bool f x = x > 0
a6fdfdf80a7c68516643e204104b1fd44cc4757bae5476c1cc0d01648b2faa6b
GNOME/aisleriot
odessa.scm
; AisleRiot - odessa.scm Copyright ( C ) 1998 , 2003 < > < > ; ; 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 3 of the License , or ; (at your optio...
null
https://raw.githubusercontent.com/GNOME/aisleriot/5ab7f90d8a196f1fcfe5a552cef4a4c1a4b5ac39/games/odessa.scm
scheme
AisleRiot - odessa.scm This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( C ) 1998 , 2003 < > < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (use-modules (aisleriot interface) (aisleriot...
114c49b2516f8052982c5b99a13c5c255e84e429567ded47a4e4c344baaa34b5
cronburg/antlr-haskell
Grammar.hs
# LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , TemplateHaskell # , DataKinds, ScopedTypeVariables, OverloadedStrings, TypeSynonymInstances , FlexibleInsta...
null
https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/test/sexpression/Grammar.hs
haskell
# LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes , DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances , FlexibleInstances , UndecidableInstances , TemplateHaskell # , DataKinds, ScopedTypeVariables, OverloadedStrings, TypeSynonymInstances , FlexibleInsta...
11fe84e65dc467a9c4b09eb8315ac418dc250b4d2f8c8a62b1961e67b4c7c320
mysql-otp/mysql-otp
mysql_cache.erl
Minicache . Feel free to rename this module and include it in other projects . %%----------------------------------------------------------------------------- Copyright 2014 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the Licens...
null
https://raw.githubusercontent.com/mysql-otp/mysql-otp/552dce4a2512db9e4bfc45ab50de2e3b9a094ca0/src/mysql_cache.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...
Minicache . Feel free to rename this module and include it in other projects . Copyright 2014 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , using manual calls to . Most of the functions return a new < li > Emb...
ac260113f30143f8c1a685b0e176ad8f2aaf6189ef9b7364f51491e5befe77d7
c4-project/c4f
type.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fir/src/type.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
07034d44227c013452834742d4720d88ec5eafb98bd4b439d9aaa26ba42a1227
smuller/examdomizer
main.ml
* Examdomizer Copyright ( C ) 2021 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 3 of the License , or ( at your option ) any later version . ...
null
https://raw.githubusercontent.com/smuller/examdomizer/8e441d3265575f1a1898f8e775ef8315636e8a67/main.ml
ocaml
* Examdomizer Copyright ( C ) 2021 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 3 of the License , or ( at your option ) any later version . ...
0dcaa837224707a1b2f239ba6ca50fdf9925712b48b82f8fcb1484d0bf3d53cf
whily/yalo
bitmap.lisp
;;;; -*- Mode: Lisp -*- ;;;; Author: < > ;;;; Description: ;;;; Bitmap functions. ;;;; License: ;;;; GNU General Public License v2 ;;;; -2.0.html Copyright ( C ) 2015 (in-package :cc) (defparameter *bitmap-prologue* `(;;; Bounds check. (cmp rsi (rdi)) (jb .continue) (mo...
null
https://raw.githubusercontent.com/whily/yalo/be0ed108e7b4393ddcf506517b3bd3ddff4d20ce/cc/bitmap.lisp
lisp
-*- Mode: Lisp -*- Author: Description: Bitmap functions. License: GNU General Public License v2 -2.0.html Bounds check. Bitmap consists of a stream of bytes, representing a bit array. We assume the multiples of qwords are reserved to storet the bitmap. start-address: the starting address of t...
< > Copyright ( C ) 2015 (in-package :cc) (defparameter *bitmap-prologue* (cmp rsi (rdi)) (jb .continue) (mov rsi bitmap-overflow-message) ,@(call-function 'panic) .continue)) (defparameter *bitmap* `( The first qword stores the size ( in bits ) of the bitmap . Typ...
1b502025a5d3fd278fbe3c7462e9f60f2589b1291ac58edb44a6aa51631fdef8
HuwCampbell/grenade
OneHot.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE RankNTypes #-} module Grenade.Utils.OneHot ( oneHot , hotMap ...
null
https://raw.githubusercontent.com/HuwCampbell/grenade/5206c95c423d9755e620f41576470a281ba59c89/src/Grenade/Utils/OneHot.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE RankNTypes # | From an int which is hot, create a 1D Shape Rerurns Nothing if the hot number is larger than the length of the vector. | Create a one h...
# LANGUAGE GADTs # # LANGUAGE TypeFamilies # module Grenade.Utils.OneHot ( oneHot , hotMap , makeHot , unHot , sample ) where import qualified Control.Monad.Random as MR import Data.List ( group, sort ) import Data.Map ( Map ) import qualified Data.Map as...
3f6e15e5386ea3afb961485e82b18c1d212d56648d287717f663db8c15c6f28d
digital-dj-tools/dj-data-converter
core.cljc
#?(:clj (set! *warn-on-reflection* true)) (ns converter.universal.core (:require #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) [converter.universal.marker :as um] [converter.universal.tempo :as ut] [converter.spec :as spec] [converter.time :as time] [converter.url :as url] [sp...
null
https://raw.githubusercontent.com/digital-dj-tools/dj-data-converter/de1ae5cda60bc64ee3cca1a09b11e1808dd4738a/src/converter/universal/core.cljc
clojure
and spec tools doesn't give a way to override TODO map/remove-empty is not working for some reason, tests fail.. #(map/remove-empty % ::markers) TODO map/remove-empty is not working for some reason, tests fail.. #(map/remove-empty % ::markers ::tempos) we want a lazy seq for the collection (it can be large) but...
#?(:clj (set! *warn-on-reflection* true)) (ns converter.universal.core (:require #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) [converter.universal.marker :as um] [converter.universal.tempo :as ut] [converter.spec :as spec] [converter.time :as time] [converter.url :as url] [sp...
dfc23c4d811dc3a1faa491d3cc98e07a7504ccf46115eb4fd5e037ca644a291d
weblocks-framework/weblocks
page-template.lisp
(in-package :weblocks-test) (defwebapp some-name :js-backend :prototype :bundle-dependency-types nil :version-dependency-types nil :gzip-dependency-types nil) ;;; test with-page (deftest-html with-page-1 (with-test-webapp (:class-name 'some-name) (let ((weblocks::*page-dependencies* ...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/test/page-template.lisp
lisp
test with-page
(in-package :weblocks-test) (defwebapp some-name :js-backend :prototype :bundle-dependency-types nil :version-dependency-types nil :gzip-dependency-types nil) (deftest-html with-page-1 (with-test-webapp (:class-name 'some-name) (let ((weblocks::*page-dependencies* (mapcar (cur...
1ed97bb63a874c01ad16b79eb392c9600181a06a286f861c5f5c6a50089ce270
caisah/sicp-exercises-and-examples
ex_01.01.scm
;; Below is a sequence of expressions. What is the result printed by the interpreter ;; in response to each expression? Assume that the sequence is to be evaluated in the ;; order in which it is presented. 10 12 8 3 6 (define a 3) ; > (define b (+ a 1)) ...
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/1.1.6-conditional_expression_and_predicates/ex_01.01.scm
scheme
Below is a sequence of expressions. What is the result printed by the interpreter in response to each expression? Assume that the sequence is to be evaluated in the order in which it is presented. > > #f
10 12 8 3 6 19 (if (and (> b a) (< b (* a b))) b 4 (cond ((= a 4) 6) ((= b 4) (+ 6 7 a)) 16 6 (* (cond ((> a b) a) ((< a b) b) (else -1)) 16
ccc8f1a0ab6ab4436127f0d9ab296ce8d8e565ff8b6042ae6c18347558694785
d-cent/objective8
middleware.clj
(ns objective8.middleware (:require [clojure.string :as s] [clojure.tools.logging :as log] [cemerick.friend :as friend] [objective8.front-end.permissions :as permissions])) (defn- keywordize [m] (into {} (for [[k v] m] [(keyword k) v]))) (defn valid-credentials? [tokens-fn bear...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/src/objective8/middleware.clj
clojure
(ns objective8.middleware (:require [clojure.string :as s] [clojure.tools.logging :as log] [cemerick.friend :as friend] [objective8.front-end.permissions :as permissions])) (defn- keywordize [m] (into {} (for [[k v] m] [(keyword k) v]))) (defn valid-credentials? [tokens-fn bear...
fcc979370a1ff2453a9530b6d199bbf1610218c59f83ce50fb9b6165167d7671
scicloj/notespace
note.clj
(ns scicloj.notespace.v4.note (:require [scicloj.kindly.v1.api :as kindly] [scicloj.kindly.v1.kind :as kind])) (defonce current-id (atom 0)) (defn next-id [] (swap! current-id inc)) (defn ->new-note [note-data] (assoc note-data ::id (next-id))) (defn merge-as-new-note [note details] (-> note ...
null
https://raw.githubusercontent.com/scicloj/notespace/e8e583eb064412da32683bc8d18f97a43bdc9184/src/scicloj/notespace/v4/note.clj
clojure
TODO: make this work
(ns scicloj.notespace.v4.note (:require [scicloj.kindly.v1.api :as kindly] [scicloj.kindly.v1.kind :as kind])) (defonce current-id (atom 0)) (defn next-id [] (swap! current-id inc)) (defn ->new-note [note-data] (assoc note-data ::id (next-id))) (defn merge-as-new-note [note details] (-> note ...
aac7c3dc6087417dfbb47d9d8263887bfdc2ced25dd75bc1e54918b091d92bf1
sionescu/iolib
pkgdcl.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- Package definition. ;;; (in-package :iolib/common-lisp-user) (defpackage :iolib/streams (:nicknames :iolib.streams) (:use :iolib/base :cffi) (:export ;; Classes #:dual-channel-fd-mixin #:dual-channel-gray-stream ;; Conditions #:hangup ...
null
https://raw.githubusercontent.com/sionescu/iolib/dac715c81db55704db623d8b2cfc399ebcf6175f/src/streams/gray/pkgdcl.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- --- Package definition. Classes Conditions
(in-package :iolib/common-lisp-user) (defpackage :iolib/streams (:nicknames :iolib.streams) (:use :iolib/base :cffi) (:export #:dual-channel-fd-mixin #:dual-channel-gray-stream #:hangup #:no-characters-to-unread Accessors #:external-format-of #:fd-non-blocking #:fd-of #:read-buffer-s...
ac547f0dabc4a4dbaa04abaae2872df4eddd39d9fca7e8e35f39dec188cbd99c
McCLIM/McCLIM
delegating-buffer.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) copyright 2005 < > ;;; ;;; ---------------------------------------------------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/7c890f1ac79f0c6f36866c47af89398e2f05b343/Libraries/Drei/delegating-buffer.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- A buffer class that allows ...
( c ) copyright 2005 < > (in-package #:drei-buffer) (defclass delegating-buffer (buffer) ((%implementation :reader implementation :initform (error "A delegating buffer must have an implementation") :initarg :implementation)) (:documentation "Buffer class that delegates...
9a6757f5228a22574509bfd451e7bcdda66f652a5eb4b7f27f6e5952b5d9fb70
dgtized/shimmers
random_walk.cljs
(ns shimmers.sketches.random-walk (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.common.framerate :as framerate] [shimmers.common.particle-system :as particles] [shimmers.common.quil :as cq] [shimmers.math.color :as color] [shimmers.math.vector :as v] [shimm...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/sketches/random_walk.cljs
clojure
(ns shimmers.sketches.random-walk (:require [quil.core :as q :include-macros true] [quil.middleware :as m] [shimmers.common.framerate :as framerate] [shimmers.common.particle-system :as particles] [shimmers.common.quil :as cq] [shimmers.math.color :as color] [shimmers.math.vector :as v] [shimm...
7bd37e8589b6100e42d6cde934089c70cf49a90d68731d54e69e37bd3cd52f06
serokell/ariadne
HdWallet.hs
-- | HD wallets module Ariadne.Wallet.Cardano.Kernel.DB.HdWallet ( -- * Supporting types WalletName(..) , AccountName(..) , HdAccountIx(..) , HdAddressIx(..) , AssuranceLevel(..) , HasSpendingPassword(..) -- * HD wallet types proper , HdWallets(..) ...
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ariadne/cardano/src/Ariadne/Wallet/Cardano/Kernel/DB/HdWallet.hs
haskell
| HD wallets * Supporting types * HD wallet types proper ** Initialiser ** Lenses ** Composite lenses * Unknown identifiers * Zoom to parts of the HD wallet * Zoom variations that create on request * General-utility functions ------------------------------------------------------------------------------ Sup...
module Ariadne.Wallet.Cardano.Kernel.DB.HdWallet WalletName(..) , AccountName(..) , HdAccountIx(..) , HdAddressIx(..) , AssuranceLevel(..) , HasSpendingPassword(..) , HdWallets(..) , HdRootId(..) , HdAccountId(..) , HdAddressChain(..) , HdAd...
aa81e958ec10760a1b546dcdc602fb65983f5fdb00017477d02e0b45e06bcc5e
jellelicht/guix
derivations.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 , 2016 < > ;;; ;;; 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 ; ...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/tests/derivations.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 © 2012 , 2013 , 2014 , 2015 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (test-derivations) #:use-module (guix derivations) #:use-module (gu...
510ce989a2e07b88d0ec7792ed1597ff56ff91b390b8849363ff6dd196cb79d6
fukamachi/uncl
alias.lisp
(in-package :uncl) (defparameter aliases '((call funcall) (mlet macrolet) (sort! cl:sort) (mapcan! mapcan) (append! nconc) (revappend! nreconc) (butlast! nbutlast) (set-difference! nset-difference) (set-exclusive-or! nset-exclusive-or) (string-capitalize! nstring-capitalize) (...
null
https://raw.githubusercontent.com/fukamachi/uncl/27d8a8bb81613f7de5018f6d4d57504e580e985e/alias.lisp
lisp
functions
(in-package :uncl) (defparameter aliases '((call funcall) (mlet macrolet) (sort! cl:sort) (mapcan! mapcan) (append! nconc) (revappend! nreconc) (butlast! nbutlast) (set-difference! nset-difference) (set-exclusive-or! nset-exclusive-or) (string-capitalize! nstring-capitalize) (...
9a70252eff464306e7bbe7694d19b730c511ab107193bb0c9b9918365afdab9d
kepler16/gx.cljc
schema.cljc
(ns k16.gx.beta.schema (:require [malli.core :as m] [malli.error :as me] [malli.util :as mu])) (def ?SignalConfig [:map {:closed true} [:deps {:optional true} [:sequential keyword?]] [:from-states [:set keyword?]] [:to-state keyword?] [:order {:optional true} [:enum :reverse :natural]] [:de...
null
https://raw.githubusercontent.com/kepler16/gx.cljc/641ad7dc394232545a30352ec5071f2f785003cb/src/k16/gx/beta/schema.cljc
clojure
top level props
(ns k16.gx.beta.schema (:require [malli.core :as m] [malli.error :as me] [malli.util :as mu])) (def ?SignalConfig [:map {:closed true} [:deps {:optional true} [:sequential keyword?]] [:from-states [:set keyword?]] [:to-state keyword?] [:order {:optional true} [:enum :reverse :natural]] [:de...
234e15b6cbd13486d5ea518b7ca2703c751c2da980e54c63d796651ecdc9385b
nibbula/yew
sort-cmds.lisp
;;; ;;; sort-cmds.lisp - Commands for sort. ;;; (in-package :sort) (lish:defcommand sort ((numeric boolean :short-arg #\n :help "True to treat the line as starting with a number.") (reverse boolean :short-arg #\r :help "True to reverse the sort order.") (ignore-case boolean :short-arg #\i :help "T...
null
https://raw.githubusercontent.com/nibbula/yew/a62473dae637fb33a92aa75f260bf77b34cdbcfd/los/sort-cmds.lisp
lisp
sort-cmds.lisp - Commands for sort. End
(in-package :sort) (lish:defcommand sort ((numeric boolean :short-arg #\n :help "True to treat the line as starting with a number.") (reverse boolean :short-arg #\r :help "True to reverse the sort order.") (ignore-case boolean :short-arg #\i :help "True to ignore the case of strings.") (sequenc...
b5be826bdef9e82fdcb04142fdaf5ff3954a3f9a8ba8d25b552b777e902c1ae0
janegca/htdp2e
rocketGreen.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname rocketGreen) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "univer...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/00-prologue/rocketGreen.rkt
racket
about the language level of this file in a form that our tools can easily process. constants functions
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname rocketGreen) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t...
e84c07c9c76050f54f29ef90f7d9823c6b563904c5eec9c91d8e6c8dacb890b3
yetibot/yetibot
weather.clj
(ns yetibot.test.commands.weather (:require [midje.sweet :refer [facts fact =>]] [yetibot.commands.weather :refer :all] [yetibot.commands.weather.formatters :as fmt])) (def loc-nyc {:city_name "New York" :state_code "NY" :country_code "US" :temp 0 :app_temp 25 :weather {:icon nil :code nil ...
null
https://raw.githubusercontent.com/yetibot/yetibot/2fb5c1182b1a53ab0e433d6bab2775ebd43367de/test/yetibot/test/commands/weather.clj
clojure
(ns yetibot.test.commands.weather (:require [midje.sweet :refer [facts fact =>]] [yetibot.commands.weather :refer :all] [yetibot.commands.weather.formatters :as fmt])) (def loc-nyc {:city_name "New York" :state_code "NY" :country_code "US" :temp 0 :app_temp 25 :weather {:icon nil :code nil ...
81e811a65ec871beb32edfa8b5354785ad251081e55942ebbdad8bafaac2f8d2
locusmath/locus
rset.clj
(ns locus.ab.vector.rset (:require [locus.set.logic.core.set :refer :all] [locus.additive.ring.core.object :refer :all] [locus.additive.base.core.protocols :refer :all] [locus.additive.semiring.core.object :refer :all] [locus.algebra.group.term.signed-multiset :refer :a...
null
https://raw.githubusercontent.com/locusmath/locus/12061072ccfe6a28f87eb8bd4489397dcf4b93d8/src/clojure/locus/ab/vector/rset.clj
clojure
Modules of ringed sets Ringed sets are generalizes of sets, multisets, signed sets, real valued sets, etc to general rings. They are an important concept in our construction of free modules and related theories. Creators for rsets, which are general sets over rings Arithmetical operations on RSets which make them...
(ns locus.ab.vector.rset (:require [locus.set.logic.core.set :refer :all] [locus.additive.ring.core.object :refer :all] [locus.additive.base.core.protocols :refer :all] [locus.additive.semiring.core.object :refer :all] [locus.algebra.group.term.signed-multiset :refer :a...
0477081a0ff11297ba5af5f65109d4fbb75e13eabd75611ddd6663e44e925b64
david-christiansen/brush
lp.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) scribble/racket scribble/manual scribble/struct) (begin-for-syntax (define-splicing-syntax-class hide-opt (pattern (~seq #:hide) #:with hide? #t) (pattern (~seq) #:with hide? #f))) (define-syntax (define-cod...
null
https://raw.githubusercontent.com/david-christiansen/brush/91b83cda313f77f2068f0c02753c55c2563680d5/private/lp.rkt
racket
#lang racket/base (require (for-syntax racket/base syntax/parse) scribble/racket scribble/manual scribble/struct) (begin-for-syntax (define-splicing-syntax-class hide-opt (pattern (~seq #:hide) #:with hide? #t) (pattern (~seq) #:with hide? #f))) (define-syntax (define-cod...
5aaa576043158d2a541615ef3653115a4545755ad2a88a5d5cb18fb558ca0d62
Gandalf-/coreutils
Cmp.hs
# LANGUAGE LambdaCase # # OPTIONS_GHC -Wno - type - defaults # module Coreutils.Cmp where import Control.Monad import qualified Data.ByteString as B import Data.Char import Data . ByteString ( ByteString ) import Data.Word (Word8) import GHC.Int ...
null
https://raw.githubusercontent.com/Gandalf-/coreutils/d76bd5a2698e9dc8f548698cded1a873a196a4dc/Coreutils/Cmp.hs
haskell
-10/diffutils/cmp.c.auto.html Execute Runtime take the filename, acquire a handle and determine it's size Configuration Parsing default multiplier if there wasn't a suffix Options
# LANGUAGE LambdaCase # # OPTIONS_GHC -Wno - type - defaults # module Coreutils.Cmp where import Control.Monad import qualified Data.ByteString as B import Data.Char import Data . ByteString ( ByteString ) import Data.Word (Word8) import GHC.Int ...
8184bcb40707d978855c3014bd9395e8681c9fa40de1feacf8495806261c41d4
mfikes/coal-mine
problem_59.cljc
(ns coal-mine.problem-59 (:require [coal-mine.checks :refer [defcheck-59] :rename {defcheck-59 defcheck}] [clojure.test])) (defcheck solution-10141c0b (fn [& ops] (fn [& args] (loop [ops ops result []] (if (empty? ops) result (recur (rest ops) (conj result (ap...
null
https://raw.githubusercontent.com/mfikes/coal-mine/0961d085b37f4e59489a8cf6a2b8fef0a698d8fb/src/coal_mine/problem_59.cljc
clojure
(fn juxt4j [& fs] (fn [& data] to be improved. complexity: n * m apply each function to args apply each function to args. minimum to pass the tests and see the solutions (fn jux ([a b] (fn [& n] [ (apply a n) (apply b n)])) ([a b c] (fn [& n] [ (apply a n) (apply b n) (apply c n)]))) this one is nice! ...
(ns coal-mine.problem-59 (:require [coal-mine.checks :refer [defcheck-59] :rename {defcheck-59 defcheck}] [clojure.test])) (defcheck solution-10141c0b (fn [& ops] (fn [& args] (loop [ops ops result []] (if (empty? ops) result (recur (rest ops) (conj result (ap...
7cc70315b533a1d33380e89c462813d3b02baa8ae660222bfa515b498ac8580e
mmottl/aifad
algdt_pp.mli
AIFAD - Automated Induction of Functions over Author : email : WWW : Copyright ( C ) 2002 Austrian Research Institute for Artificial Intelligence Copyright ( C ) 2003- This library is free software ; you can redistribute it and/or modify it under the terms of t...
null
https://raw.githubusercontent.com/mmottl/aifad/b06786f5cd60992548405078a903ee3d962ea969/src/algdt_pp.mli
ocaml
* Pretty-printing functions for specifications and data * [pp_type_defs ppf type_defs] pretty-print [type_defs] using formatter [ppf]. * Type of constructor tags * [pp_data_el ppf data] pretty-print [data]. * [pp_data ppf data] pretty-print [data] terminated by '.' using formatter [ppf]. * [pp_sum_arg pp...
AIFAD - Automated Induction of Functions over Author : email : WWW : Copyright ( C ) 2002 Austrian Research Institute for Artificial Intelligence Copyright ( C ) 2003- This library is free software ; you can redistribute it and/or modify it under the terms of t...
b0aa7d328aa4fbaf800e4d3570b57462ec336cd1211540619c85de7fde2c7ec9
goldfirere/units
SI.hs
----------------------------------------------------------------------------- -- | -- Module : Data.Metrology.SI Copyright : ( C ) 2013 -- License : BSD-style (see LICENSE) Maintainer : ( ) -- Stability : experimental -- Portability : non-portable -- -- This module exports unit, type, a...
null
https://raw.githubusercontent.com/goldfirere/units/4941c3b4325783ad3c5b6486231f395279d8511e/units-defs/Data/Metrology/SI.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Metrology.SI License : BSD-style (see LICENSE) Stability : experimental Portability : non-portable This module exports unit, type, and prefix definitions according to the SI system of units. The definition...
Copyright : ( C ) 2013 Maintainer : ( ) module Data.Metrology.SI ( module Data.Metrology.SI.Mono, ) where import Data.Metrology.SI.Mono
733e0e5715171e3561d7e76d2e356c2bcaf2ba4f85fc77d7c84f3f186cbb26c2
inconvergent/cl-grph
config.lisp
(in-package :grph) ; ; from: -cookbook.sourceforge.net/os.html ; (defun vgetenv (name &optional default) # + CMU ( let ( ( x ( assoc name ext:*environment - list * : test # ' string= ) ) ) ; (if x (cdr x) default)) # -CMU ( or # + Allegro ( sys : name ) # + CLISP ( ext : name ) ...
null
https://raw.githubusercontent.com/inconvergent/cl-grph/57e65c928f90ca38d577bb9fb5d7755853fdb02d/src/config.lisp
lisp
; from: -cookbook.sourceforge.net/os.html (defun vgetenv (name &optional default) (if x (cdr x) default)) #+SBCL (sb-unix::posix-getenv name) default)) `(progn (defvar *dev* t) (defvar *opt* ',dev-vals) `(progn (defvar *dev* nil) (defvar *opt* '...
(in-package :grph) # + CMU ( let ( ( x ( assoc name ext:*environment - list * : test # ' string= ) ) ) # -CMU ( or # + Allegro ( sys : name ) # + CLISP ( ext : name ) # + ECL ( si : name ) # + LISPWORKS ( : environment - variable name ) ( - config ( dev - vals...
2c51fc1730bcef4473c0f04e0b8ec24697bbf14dc50cc8171d86c91573ad33ef
cark/cark.behavior-tree
tree.cljc
(ns cark.behavior-tree.tree "The tree map contains the static data of a behavior tree. That's the node themselves with their tick functions and parameters" (:refer-clojure :exclude [keys]) (:require [cark.behavior-tree.type :as type])) (def keys "The keys found in a node tree" #{::root-node-id ::current...
null
https://raw.githubusercontent.com/cark/cark.behavior-tree/4e229fcc2ed3af3c66e74d2c51dda6684927d254/src/main/cark/behavior_tree/tree.cljc
clojure
(ns cark.behavior-tree.tree "The tree map contains the static data of a behavior tree. That's the node themselves with their tick functions and parameters" (:refer-clojure :exclude [keys]) (:require [cark.behavior-tree.type :as type])) (def keys "The keys found in a node tree" #{::root-node-id ::current...
f93042bcaaa845ac65547304b19885753d2adfa68247879ca54b98ecbfc340b7
esl/ejabberd_tests
privacy_SUITE.erl
%%============================================================================== Copyright 2010 Erlang Solutions Ltd. %% 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 %% ...
null
https://raw.githubusercontent.com/esl/ejabberd_tests/913fb0a5a8c1ab753eb35c1e1b491e8572633b54/tests/privacy_SUITE.erl
erlang
============================================================================== you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
Copyright 2010 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(privacy_SUITE). -compile(export_all). -include_lib("exml/include/exml.hrl"). -include_lib("escalus/include/escalus.hrl"). -inclu...
19e6adc6073e8ef90cb3895123769534192da5233b7d3a82d70eca1fb8d78700
CarlosMChica/HaskellBook
Text.Fractions.hs
{-# LANGUAGE OverloadedStrings #-} module Text.Fractions where import Control.Applicative import Data.Attoparsec.Text (parseOnly) import Data.Ratio ((%)) import Data.String (IsString) import Text.Trifecta badFraction :: IsString s => s badFraction ...
null
https://raw.githubusercontent.com/CarlosMChica/HaskellBook/86f82cf36cd00003b1a1aebf264e4b5d606ddfad/chapter24/Text.Fractions.hs
haskell
# LANGUAGE OverloadedStrings #
module Text.Fractions where import Control.Applicative import Data.Attoparsec.Text (parseOnly) import Data.Ratio ((%)) import Data.String (IsString) import Text.Trifecta badFraction :: IsString s => s badFraction = "1/0" alsoBad :: IsString s => s...
ed89015c7ee2f19974f5f0a7ed433e4276590af05306701584ed3ce3e610f9c0
hammerlab/coclobas
storage.mli
open Internal_pervasives type t type key = string list type value = string module Error : sig type where = [ | `Update of key | `Read of key | `Parsing_json of string ] type common = [ | `Exn of where * exn | `Backend of where * string | `Of_json of where * string | `Get_json of wher...
null
https://raw.githubusercontent.com/hammerlab/coclobas/5341ea53fdb5bcea0dfac3e4bd94213b34a48bb9/src/lib/storage.mli
ocaml
open Internal_pervasives type t type key = string list type value = string module Error : sig type where = [ | `Update of key | `Read of key | `Parsing_json of string ] type common = [ | `Exn of where * exn | `Backend of where * string | `Of_json of where * string | `Get_json of wher...
45d207d55ec25d3549c92125d3a5fcd21e8f5d0698ac19f0f46616f4b0ddb5c6
webyrd/n-grams-for-synthesis
chibi-test.scm
(import (scheme base)) (import (srfi-143)) (import (chibi test)) (test-group "fixnum" (test-group "fixnum/arithmetic" (test #t (fixnum? 32767)) (test #f (fixnum? 1.1)) (test #t (fx=? 1 1 1)) (test #f (fx=? 1 2 2)) (test #f (fx=? 1 1 2)) (test #f (fx=? 1 2 3)) (test #t (fx<? 1 2 3)) (test #f (fx<? 1 1 ...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-143/srfi-143/chibi-test.scm
scheme
(import (scheme base)) (import (srfi-143)) (import (chibi test)) (test-group "fixnum" (test-group "fixnum/arithmetic" (test #t (fixnum? 32767)) (test #f (fixnum? 1.1)) (test #t (fx=? 1 1 1)) (test #f (fx=? 1 2 2)) (test #f (fx=? 1 1 2)) (test #f (fx=? 1 2 3)) (test #t (fx<? 1 2 3)) (test #f (fx<? 1 1 ...
b076af1b0fb6bead84077477f47250c40b929d637292bb206dbdb4f3634e83e9
inventi/seed
command_test.clj
(ns seed.core.command-test (:require [clojure.core.async :refer [go <!!]] [seed.core.util :refer [success error]] [seed.core.event-store :as es] [seed.core.aggregate :as aggregate] [seed.core.command :as command]) (:use [seed.core.command] [clojure.test])) (d...
null
https://raw.githubusercontent.com/inventi/seed/0a0088a587d6b147215694dcba585b6782eeec80/test/seed/core/command_test.clj
clojure
(ns seed.core.command-test (:require [clojure.core.async :refer [go <!!]] [seed.core.util :refer [success error]] [seed.core.event-store :as es] [seed.core.aggregate :as aggregate] [seed.core.command :as command]) (:use [seed.core.command] [clojure.test])) (d...
0b8ce5822d8154be47992c13f2357b6979f399024aad560cb4907a3ce439abfe
semilin/layoup
Soul.lisp
(MAKE-LAYOUT :NAME "Soul" :MATRIX (APPLY #'KEY-MATRIX '("qwldpkmuy;" "asrtgfneio" "zxcvjbh,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/Soul.lisp
lisp
(MAKE-LAYOUT :NAME "Soul" :MATRIX (APPLY #'KEY-MATRIX '("qwldpkmuy;" "asrtgfneio" "zxcvjbh,./")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
a7442b1502fd8a9dc7d8b44f4b716f8a529c0507af3bf51273eb4815080f6a4f
portkey-cloud/aws-clj-sdk
athena.clj
(ns portkey.aws.athena (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "athena", :region "ap-northeast-1"}, :ssl-common-name "athena.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "eu-west-1" {:credential-s...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/athena.clj
clojure
(ns portkey.aws.athena (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "athena", :region "ap-northeast-1"}, :ssl-common-name "athena.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "eu-west-1" {:credential-s...
144c4d053de847020933b8f29acae55571876efe0e7ddc84430b46370d6d0d83
ivanperez-keera/simple-affine-space
Vector3.hs
# OPTIONS_GHC -fno - warn - warnings - deprecations # # LANGUAGE ExistentialQuantification , MultiParamTypeClasses , FlexibleInstances , StandaloneDeriving # ----------------------------------------------------------------------------------------- -- | -- Module : Data.Vector3 Copyright : ( c ) and , Y...
null
https://raw.githubusercontent.com/ivanperez-keera/simple-affine-space/ba75d0b4a0898f8099cc354f2e014797e40c1ca3/src/Data/Vector3.hs
haskell
--------------------------------------------------------------------------------------- | Module : Data.Vector3 License : BSD-style (see the LICENSE file in the distribution) Maintainer : Stability : provisional 3D vector abstraction (R^3). -----------------------------------------------------...
# OPTIONS_GHC -fno - warn - warnings - deprecations # # LANGUAGE ExistentialQuantification , MultiParamTypeClasses , FlexibleInstances , StandaloneDeriving # Copyright : ( c ) and , Yale University , 2003 Portability : non - portable ( GHC extensions ) module Data.Vector3 ( Abstract , instance of Vect...
08e3492ed34e19be2fdb1e328dfa4b01cca3a4fe1e1168ff1251c59a119e2aff
Roam-Research/surreal
examples.cljs
(ns examples (:require [roam.surreal :as surr] [datascript.core :as d] [roam.surreal.datascript :as sd])) (defn roundtrip [v] (println "----------ROUNDTRIP----------") (println :initial-value v) (js/console.log :initial-value v) (let [jsonv (js/JSON.stringify v) parsev (js/JS...
null
https://raw.githubusercontent.com/Roam-Research/surreal/36e8b3ae3b74edef3eeefa8e943a53c01e36bc14/dev/examples.cljs
clojure
(ns examples (:require [roam.surreal :as surr] [datascript.core :as d] [roam.surreal.datascript :as sd])) (defn roundtrip [v] (println "----------ROUNDTRIP----------") (println :initial-value v) (js/console.log :initial-value v) (let [jsonv (js/JSON.stringify v) parsev (js/JS...
97b52705c16b9de028f851c05af84fc301a64e8785650cb0fc5b0053a743f730
ijvcms/chuanqi_dev
lottery_box_log_db.erl
%%%------------------------------------------------------------------- @author apple ( C ) 2015 , < COMPANY > %%% @doc %%% %%% @end Created : 30 . 十一月 2015 14:11 %%%------------------------------------------------------------------- -module(lottery_box_log_db). -include("common.hrl"). -include("cache.hrl"). %%...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/lottery/lottery_box_log_db.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API ==================================================================== API functions ====================================================================
@author apple ( C ) 2015 , < COMPANY > Created : 30 . 十一月 2015 14:11 -module(lottery_box_log_db). -include("common.hrl"). -include("cache.hrl"). -export([ select_row/1, insert/1, select_all/1, update/2, select_by_type/1, select_by_player/2 ]). select_row(Id) -> case db:select_row(lottery_box_log, reco...
c24c7da4b43f5f9e903ad7b742c294ee60a555cd2fd9e179b1f1098d6d019ea0
fractalide/fractalide
wallets-model.rkt
#lang racket (require fractalide/modules/rkt/rkt-fbp/agent) (define (list-remove-index lst idx) (define-values (heads tail) (split-at lst idx)) (append heads (cdr tail))) (define (list-replace-index lst idx elem) (build-list (length lst) (lambda (n) (if (= n idx) elem (list-ref lst n))))) (define in-ports ...
null
https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/cardano-wallet/wallets-model.rkt
racket
If you send a "choices", remember to always send a "select". choice% resets selection to 0 when the list gets updated.
#lang racket (require fractalide/modules/rkt/rkt-fbp/agent) (define (list-remove-index lst idx) (define-values (heads tail) (split-at lst idx)) (append heads (cdr tail))) (define (list-replace-index lst idx elem) (build-list (length lst) (lambda (n) (if (= n idx) elem (list-ref lst n))))) (define in-ports ...
2c71ce637f849989a9f60ae6425abeb48790dcfce710d3b21485ab3304a2e54e
BardurArantsson/cqrs
KVStore.hs
module Data.CQRS.KVStore ( KVStore(..) , KVStoreError(..) , transform ) where import Data.CQRS.Types.KVStore import Data.CQRS.Types.KVStoreError
null
https://raw.githubusercontent.com/BardurArantsson/cqrs/2491d83e2bcd68c883aaea33cdce6c5ea8c0cd1a/cqrs-core/src/Data/CQRS/KVStore.hs
haskell
module Data.CQRS.KVStore ( KVStore(..) , KVStoreError(..) , transform ) where import Data.CQRS.Types.KVStore import Data.CQRS.Types.KVStoreError
da3a11679efcd44053ccc073bb3daa550039c49459888b3ee77ae4faa8b00058
louispan/ghcjs-base-stub
Types.hs
module Data.JSString.Internal.Fusion.Types ( module Data.Text.Internal.Fusion.Types ) where import Data.Text.Internal.Fusion.Types
null
https://raw.githubusercontent.com/louispan/ghcjs-base-stub/8eaee240c9af1a2290f4572a87528f3ddb3e9f12/src/Data/JSString/Internal/Fusion/Types.hs
haskell
module Data.JSString.Internal.Fusion.Types ( module Data.Text.Internal.Fusion.Types ) where import Data.Text.Internal.Fusion.Types
2c718b93e8324538169b68b5c8abbfc1675cc75a6ca2c478f2e66a389d65a1d2
static-analysis-engineering/codehawk
bCHPELoadConfigurationStructure.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/c1b3158e0d73cda7cfc10d75f6173f4297991a82/CodeHawk/CHB/bchlibpe/bCHPELoadConfigurationStructure.ml
ocaml
chutil bchlib bchlibpe 20,4, CriticalSectionDefaultTimeout ------------------------------------- The default timeout value to use for this process's critical sections that are abandoned. -------------------------------------------------------------------------
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
9f911982007d64ac719ca036bfc8ca5d9c7192d2981a3e2414e974ddf5e7a2eb
fukamachi/lack
session.lisp
(in-package :cl-user) (defpackage lack.middleware.session (:use :cl) (:import-from :lack.session.store :fetch-session :store-session :remove-session) (:import-from :lack.session.state :expire-state :extract-sid :finali...
null
https://raw.githubusercontent.com/fukamachi/lack/1f155216aeea36291b325c519f041e469262a399/src/middleware/session.lisp
lisp
(in-package :cl-user) (defpackage lack.middleware.session (:use :cl) (:import-from :lack.session.store :fetch-session :store-session :remove-session) (:import-from :lack.session.state :expire-state :extract-sid :finali...
ea8f87de050281db67895602ba142563922409e2bf3166762154346f6df6aa6f
OCamlPro/ocamlexc
files.ml
(***********************************************************************) (* *) (* Ocamlexc *) (* *) , projet Cris...
null
https://raw.githubusercontent.com/OCamlPro/ocamlexc/a9ddcfff6f376f5dd6c5fcc3211b8f89e36f79fe/typing/files.ml
ocaml
********************************************************************* Ocamlexc ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . let current_comp_unit = ref "" ;; exception Not_ml_file of string ;; exception Not_cme_file of string ;; Build...
e68162358c8ffb723e2e1a1f61f02f938e0da31d317165ed1e0e67a7aa6eda2e
polyfy/polylith
leiningen.clj
(ns polylith.clj.core.common.leiningen (:require [polylith.clj.core.file.interface :as file])) (defn config-key "Find and return a key in a Leiningen config file." [config-path key] (let [content (first (file/read-file (str config-path "/project.clj"))) index (ffirst (filter #(= key (se...
null
https://raw.githubusercontent.com/polyfy/polylith/febea3d8a9b30a60397594dda3cb0f25154b8d8d/components/common/src/polylith/clj/core/common/leiningen.clj
clojure
(ns polylith.clj.core.common.leiningen (:require [polylith.clj.core.file.interface :as file])) (defn config-key "Find and return a key in a Leiningen config file." [config-path key] (let [content (first (file/read-file (str config-path "/project.clj"))) index (ffirst (filter #(= key (se...
9e7c7e54c063b6105f672f3f06f7270cfd3db2dcc69a1bfa21415696f53a9c36
provinciesincijfers/gebiedsniveaus
0 maak_provincie.sps
* Encoding: windows-1252. GET DATA /TYPE=XLS /FILE= 'C:\github\gebiedsniveaus\kerntabellen\kerntabel.xls' /SHEET=name 'toewijzingstabel_alles' /CELLRANGE=FULL /READNAMES=ON /DATATYPEMIN PERCENTAGE=95.0. EXECUTE. DATASET NAME kerntabel WINDOW=FRONT. DATASET DECLARE provincie. AGGREGATE /OUTFILE='provi...
null
https://raw.githubusercontent.com/provinciesincijfers/gebiedsniveaus/84bd86174f5e155aae431010acbb7949e0be9e80/scripts/0%20maak_provincie.sps
scheme
* Encoding: windows-1252. GET DATA /TYPE=XLS /FILE= 'C:\github\gebiedsniveaus\kerntabellen\kerntabel.xls' /SHEET=name 'toewijzingstabel_alles' /CELLRANGE=FULL /READNAMES=ON /DATATYPEMIN PERCENTAGE=95.0. EXECUTE. DATASET NAME kerntabel WINDOW=FRONT. DATASET DECLARE provincie. AGGREGATE /OUTFILE='provi...
60901b92fe553912609077d8b4f51b41d7b467d17980089ff1caf29e4a5eca86
clojure-interop/google-cloud-clients
GrpcInstanceAdminCallableFactory.clj
(ns com.google.cloud.spanner.admin.instance.v1.stub.GrpcInstanceAdminCallableFactory "gRPC callable factory implementation for Cloud Spanner Instance Admin API. This class is for advanced usage." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spanner.admin.instance.v1.stub GrpcInst...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.spanner/src/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminCallableFactory.clj
clojure
(ns com.google.cloud.spanner.admin.instance.v1.stub.GrpcInstanceAdminCallableFactory "gRPC callable factory implementation for Cloud Spanner Instance Admin API. This class is for advanced usage." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spanner.admin.instance.v1.stub GrpcInst...
0dce4c5c2b97bd6288fc21fbe08c9ec369b830251aa23064f2c89900c000afac
joshaber/clojurem
cljmc.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/joshaber/clojurem/cf60fc6a8ef0e9065a1219c33ca39176ee88c2de/bin/cljmc.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (require '[cljm.compiler :as compiler]) (defn transform-cl-args [args] (let [source (first args) opts-string (apply str (interpose " " (rest args))) options (when (> (count opts-string) 1) (try (read-string opts-string) ...
7cab613e2ab3fb2c96fa329f694ec0f3795b7617763e41380c380747aa76d31e
mpickering/apply-refact
ListRec2.hs
f z (x:xs) = f (z*x) xs ; f z [] = z
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/ListRec2.hs
haskell
f z (x:xs) = f (z*x) xs ; f z [] = z
9420e384fbf6af0f4d4fe6967fea0dec82a62187df372f0651bed5ad0b8d9f13
xapi-project/xen-api
sExpr.mli
* Copyright ( C ) 2006 - 2009 Citrix Systems 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 Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/5c9c44c6d40a9930f454722c9cd09c7079ec814e/ocaml/libs/sexpr/sExpr.mli
ocaml
* Copyright ( C ) 2006 - 2009 Citrix Systems 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 Foundation ; version 2.1 only . with the special * exception on linking describe...
fb1c2979a2a93018a844476524bd3b09388670c0474633e5baee1a14434f7675
haskell/cabal
IOData.hs
{-# LANGUAGE GADTs #-} # LANGUAGE TypeOperators # {-# LANGUAGE RankNTypes #-} | @since 2.2.0 module Distribution.Utils.IOData * ' IOData ' & ' IODataMode ' type IOData (..) , IODataMode (..) , KnownIODataMode (..) , withIOData , null , hPutContents ) where import qualified Data.ByteSt...
null
https://raw.githubusercontent.com/haskell/cabal/cff9b1a7c6188796873ffcb7ba9332dca718548f/Cabal/src/Distribution/Utils/IOData.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | Represents either textual or binary data passed via I/O functions which support binary/text mode ^ How Text gets encoded is usually locale-dependent. ^ Raw binary which gets read/written in binary mode. | 'IOData' Wrapper for 'System.IO.hGetContents' __Note__: This o...
# LANGUAGE TypeOperators # | @since 2.2.0 module Distribution.Utils.IOData * ' IOData ' & ' IODataMode ' type IOData (..) , IODataMode (..) , KnownIODataMode (..) , withIOData , null , hPutContents ) where import qualified Data.ByteString.Lazy as LBS import Distribution.Comp...
de98cca48be49fe222d1a50aaa8c6e65b092dbd8d4505e06e2b5eb5caaa8ef9a
japerk/elib
etest.erl
` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved via the world wide...
null
https://raw.githubusercontent.com/japerk/elib/40fc61f5503db3e823f61aada53d4f38d2405e7f/src/etest.erl
erlang
compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations ...
` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Initial Developer of the Original Code is . Portions created by are Copyright 2009 , Mr...
6072a03a7a4111a09461fd26c6331a2f627f9db38c2c2afcad38d4ae2918826a
ocaml-ppx/ocamlformat
monadic_binding.ml
let ( let* ) t f = fooooooo let ( and* ) t1 t2 = foooooo let map f t = let* a = t in pure (f a) let ( and+ ) t1 t2 = ( and* ) t1 t2 let ( and+ ) t1 t2 = ( and* ) t1 t2 x let ( and+ ) t1 t2 = ( and* ) t1 t2 x foooooooooooooooooo foooooooooooooooooooo foooooooooooooooooo foooooooooooooooooo let _ = ( let*...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/ac727b3d5f65f3e39eb7852d60b7ca0c4f424e90/test/passing/tests/monadic_binding.ml
ocaml
let ( let* ) t f = fooooooo let ( and* ) t1 t2 = foooooo let map f t = let* a = t in pure (f a) let ( and+ ) t1 t2 = ( and* ) t1 t2 let ( and+ ) t1 t2 = ( and* ) t1 t2 x let ( and+ ) t1 t2 = ( and* ) t1 t2 x foooooooooooooooooo foooooooooooooooooooo foooooooooooooooooo foooooooooooooooooo let _ = ( let*...
cfae97e241b53dd02bbd7d53b540b4998e9e1200bd024e3d87e765a8d606601f
OCamlPro/liquidity
liquidCheck.mli
(****************************************************************************) (* Liquidity *) (* *) Copyright ( C ) 2017 - 2020 OCamlPro SAS (* ...
null
https://raw.githubusercontent.com/OCamlPro/liquidity/3578de34cf751f54b9e4c001a95625d2041b2962/tools/liquidity/liquidCheck.mli
ocaml
************************************************************************** Liquidity ...
Copyright ( C ) 2017 - 2020 OCamlPro SAS it under the terms of the GNU General Public License as published by ...
1347ca49196604b4308b2aeba12f963f93c7a206210ab066ba2cd1f8b7adaa7d
gregr/ina
read.scm
;; TODO: numeric operations ;; expt make-rectangular make-polar exact->inexact inexact->exact exact? ;; TODO: match Racket's behavior, which does not treat # as a separator? ;; TODO: support #symbol and #symbol(...) reader extensions (define-syntax-rule (let/cps name params expr body ...) (let ((name (lambda param...
null
https://raw.githubusercontent.com/gregr/ina/c854de83c9ed9f5dbaa77405881777c572fbb39c/nscheme/include/read.scm
scheme
TODO: numeric operations expt make-rectangular make-polar exact->inexact inexact->exact exact? TODO: match Racket's behavior, which does not treat # as a separator? TODO: support #symbol and #symbol(...) reader extensions []`{}" #f))) TODO: here string: ...string... TODO: do not use string-ref TODO: support new...
(define-syntax-rule (let/cps name params expr body ...) (let ((name (lambda params body ...))) expr)) (define (mvector->string mv) (utf8->string (u8*->bytevector (vector->list (mvector->vector mv))))) (define (read-error? d) (and (procedure? d) (not (read-eof? d)))) (define (read-eof? d) (and (procedure? d) ...
1f725c4274fdf87399e6f363e34a069bc28409b1d25ae21e423a41c6323db245
adamdoupe/find_ear_rails
parse_annotation.ml
open Annotation open Parse_helper open OUnit let just_qvar t = QVar t, None let tvar t = Type_Var (QVar t) let id_rel t = TIdent_Relative t let tid t = Type_Ident (id_rel t) let add_annot_prefix str = let str = Utils.string_chomp str in let buf = Buffer.create 32 in Buffer.add_string buf "##%"; Stri...
null
https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/tests/parser/parse_annotation.ml
ocaml
not lexbuf.Lexing.lex_eof_reached;
open Annotation open Parse_helper open OUnit let just_qvar t = QVar t, None let tvar t = Type_Var (QVar t) let id_rel t = TIdent_Relative t let tid t = Type_Ident (id_rel t) let add_annot_prefix str = let str = Utils.string_chomp str in let buf = Buffer.create 32 in Buffer.add_string buf "##%"; Stri...
eb0b6742dc2255c84881d2929bcf37d5bb403fc35368e1eba282a8c327f86cfe
hanshuebner/cadr2
qf.lisp
-*- Mode : Lisp ; Package : CADR ; Base:8 -*- PHONEY LISP MACHINE MICROCODE -- CADR VERSION * * ( c ) Copyright 1980 Massachusetts Institute of Technology * * 2/4/79 MODIFIED FOR CHANGES TO MAP - STATUS - CODE IN PAGE MAP LISP MACHINE Q 'S ARE REPRESENTED AS MACLISP FIXNUMS , CONTAINING THE SAME FIELDS . EXCE...
null
https://raw.githubusercontent.com/hanshuebner/cadr2/2398a1303804d41c4cdcb2d3d8454cd4a48912b8/mit/lcadr/qf.lisp
lisp
Package : CADR ; Base:8 -*- LEVELS -2 MEANS IN PDL BUFFER. Inhibit some error messages DEFINE DEFMACRO , ` , LET , ETC . ALSO SEE FIXNUM DECLARATIONS BELOW WHEN THESE ARE CHANGED. THESE ARE NOW FUNCTIONS IN CC NOT DECLARED FIXNUM WHEN COMPILED MEMORY INTERFACE AND PAGING STUFF PHYSICAL MEMORY READ PHYSICAL MEMORY W...
PHONEY LISP MACHINE MICROCODE -- CADR VERSION * * ( c ) Copyright 1980 Massachusetts Institute of Technology * * 2/4/79 MODIFIED FOR CHANGES TO MAP - STATUS - CODE IN PAGE MAP LISP MACHINE Q 'S ARE REPRESENTED AS MACLISP FIXNUMS , CONTAINING THE SAME FIELDS . EXCEPT , -1 MEANS PAGE INACCESSIBLE , AND AT SOME (...
47c12a88446d13cfa29dbefdb611462b47c664d428b2854cb794e918fbd8c1a3
michalkonecny/aern2
Logistic.hs
# LANGUAGE Arrows , FlexibleContexts , TypeOperators , TypeFamilies , ConstraintKinds , ScopedTypeVariables # module BenchTasks.Logistic where import MixedTypesNumPrelude import qualified Prelude as P -- import Text.Printf import Control.Arrow taskDescription :: Integer -> String taskDescription n = "taskLogisti...
null
https://raw.githubusercontent.com/michalkonecny/aern2/ac9beb0ec333709b9d33317df5c9e8876d253db2/aern2-real/attic/bench/BenchTasks/Logistic.hs
haskell
import Text.Printf not dyadic
# LANGUAGE Arrows , FlexibleContexts , TypeOperators , TypeFamilies , ConstraintKinds , ScopedTypeVariables # module BenchTasks.Logistic where import MixedTypesNumPrelude import qualified Prelude as P import Control.Arrow taskDescription :: Integer -> String taskDescription n = "taskLogistic1: " ++ show n ++ " i...
0f823ce24667db794646e4d1d4eb32dc72171fbc68f84b944c1c68c6d7ff039f
thheller/shadow-experiments
html.clj
(ns shadow.experiments.grove.others.html (:refer-clojure :exclude (str)) (:require [shadow.experiments.grove.builder :as build] [shadow.experiments.grove.protocols :as p]) (:import [java.io Writer StringWriter] [clojure.lang IDeref] com.google.common.html.HtmlEscapers)) (set! *warn-...
null
https://raw.githubusercontent.com/thheller/shadow-experiments/a2170c2214778b6b9a9253166383396d64d395a4/src/test/shadow/experiments/grove/others/html.clj
clojure
<tag key="val" ...> static attributes can be emitted as is since it is unlikely we will XSS ourselves dynamic attrs must be escaped properly </tag> only text is passed through as is everything else must be escaped
(ns shadow.experiments.grove.others.html (:refer-clojure :exclude (str)) (:require [shadow.experiments.grove.builder :as build] [shadow.experiments.grove.protocols :as p]) (:import [java.io Writer StringWriter] [clojure.lang IDeref] com.google.common.html.HtmlEscapers)) (set! *warn-...
8701101d25c0d75affca99e5050f9a11246e534b77258c1c3b628d8782e2b7ed
shop-planner/shop3
adlSat-pure.lisp
(in-package :shop-user) ;; : STRIPS ( Version 1.0 ) ;; (eval-when (:compile-toplevel :load-toplevel :execute) (defclass pure-pddl-domain (pddl-domain pure-logic-domain-mixin) () ) ) (defdomain (adlSat :type pure-pddl-domain) ( (:requirements :equality :typing :conditional-effects :negative-pre...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/examples/satellite/strips/adlSat-pure.lisp
lisp
METHOD Main Method ;;; prepare-instrument = power_on + calibrated basic axioms avoid package problems in the repair code.
(in-package :shop-user) : STRIPS ( Version 1.0 ) (eval-when (:compile-toplevel :load-toplevel :execute) (defclass pure-pddl-domain (pddl-domain pure-logic-domain-mixin) () ) ) (defdomain (adlSat :type pure-pddl-domain) ( (:requirements :equality :typing :conditional-effects :negative-precondit...
f3b18d4813cc20fcfad9bfe2c0093cfba4348183375216bb6b3b8b5bb208ef7a
wilbowma/cur
ML-reflexivity.rkt
#lang cur (require "rackunit-ntac.rkt" cur/stdlib/nat cur/stdlib/bool (rename-in (except-in cur/stdlib/equality == refl) [ML-= ==] [ML-refl refl]) cur/stdlib/sugar cur/ntac/base cur/ntac/standard cur/ntac/ML-rewrite) ;; separate tests for reflexivity tactic ( but most examples from SF Ch 1 : Basics ) ...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-test/cur/tests/ntac/ML-reflexivity.rkt
racket
separate tests for reflexivity tactic mon \new tues
#lang cur (require "rackunit-ntac.rkt" cur/stdlib/nat cur/stdlib/bool (rename-in (except-in cur/stdlib/equality == refl) [ML-= ==] [ML-refl refl]) cur/stdlib/sugar cur/ntac/base cur/ntac/standard cur/ntac/ML-rewrite) ( but most examples from SF Ch 1 : Basics ) (data day : 0 (Type 0) (mon : day)...
6b3318e7c06e66864596884c8aeb37fd0148944c3b1070cac8222afda4fbfa9e
mightybyte/snaplet-postgresql-simple
PostgresqlSimple.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # | This module allows you to use the auth snaplet with your user database stored in a PostgreSQL database . When you run your application with this snaplet , a config file will ...
null
https://raw.githubusercontent.com/mightybyte/snaplet-postgresql-simple/f477f1e4dffecddde2c902f1b1ace8de9adab2c3/src/Snap/Snaplet/Auth/Backends/PostgresqlSimple.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # your own application state here your own application state here ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------------------...
# LANGUAGE CPP # # LANGUAGE RecordWildCards # | This module allows you to use the auth snaplet with your user database stored in a PostgreSQL database . When you run your application with this snaplet , a config file will be copied into the the @snaplets / postgresql - auth@ directory . Th...
a446a3ba0bbb5bf481abf9e329c2c9fd73920ded0c8d9539c9f09e95b140070d
puppetlabs/trapperkeeper-webserver-jetty9
jetty9_service_override_settings_test.clj
(ns puppetlabs.trapperkeeper.services.webserver.jetty9-service-override-settings-test (:require [clojure.test :refer :all] [puppetlabs.trapperkeeper.app :refer [get-service]] [puppetlabs.trapperkeeper.services :as tk-services] [puppetlabs.trapperkeeper.services.webserver.jetty9-ser...
null
https://raw.githubusercontent.com/puppetlabs/trapperkeeper-webserver-jetty9/955c17dff2756e95a5a2e3b67a53bf26fcd59747/test/clj/puppetlabs/trapperkeeper/services/webserver/jetty9_service_override_settings_test.clj
clojure
(ns puppetlabs.trapperkeeper.services.webserver.jetty9-service-override-settings-test (:require [clojure.test :refer :all] [puppetlabs.trapperkeeper.app :refer [get-service]] [puppetlabs.trapperkeeper.services :as tk-services] [puppetlabs.trapperkeeper.services.webserver.jetty9-ser...
09fde7dcc4a856c836fb1552d98ab6ffab20907eaa1ac2cabff165bffe6e1489
albertoruiz/easyVision
play5.hs
import Vision.GUI import Image.Processing import Data.Time(getCurrentTime, UTCTime) import Control.Concurrent(threadDelay) main = runT_ clock see see :: Show x => ITrans x x see = observe "time" (text (Point 0.9 0) . show) clock :: IO (IO (Maybe UTCTime)) clock = return (threadDelay 10000 >> Just `fmap` getCurrentT...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/tour/play5.hs
haskell
import Vision.GUI import Image.Processing import Data.Time(getCurrentTime, UTCTime) import Control.Concurrent(threadDelay) main = runT_ clock see see :: Show x => ITrans x x see = observe "time" (text (Point 0.9 0) . show) clock :: IO (IO (Maybe UTCTime)) clock = return (threadDelay 10000 >> Just `fmap` getCurrentT...
d3c3d417693c4556cd9a5bc1492f69ed8ea4eb10a6990919937dffa8a792bd6a
sorawee/fmt
common.rkt
#lang racket/base (provide (struct-out thing) (struct-out commentable) (struct-out visible) (struct-out node) (struct-out atom) (struct-out full-atom) (struct-out nl) (struct-out line-comment) (struct-out sexp-comment) (struct-out wrapper...
null
https://raw.githubusercontent.com/sorawee/fmt/34ed16eefcd4f261dd47789af54fe0a0052222e4/common.rkt
racket
strip-comment :: commentable? -> commentable?
#lang racket/base (provide (struct-out thing) (struct-out commentable) (struct-out visible) (struct-out node) (struct-out atom) (struct-out full-atom) (struct-out nl) (struct-out line-comment) (struct-out sexp-comment) (struct-out wrapper...
eb41464c1d3ae929bd68f2d2a8289019c34ba69768f61f18742fb69700d6db21
mindpool/gambit-termite
gen_event.scm
Erlang / OTP - like behavior for " event handlers " ;;; "Types" for the functions in a EVENT-HANDLER ;;; INIT : : arg - > state ;;; NOTIFY :: event state -> state ;;; CALL :: args state -> reply state ;;; TERMINATE :: reason state -> void (define-type event-handler id: 1d3007b8-c...
null
https://raw.githubusercontent.com/mindpool/gambit-termite/391b75253cc3a5abd77dfc29392a72b2eca0d09e/otp/gen_event.scm
scheme
"Types" for the functions in a EVENT-HANDLER NOTIFY :: event state -> state CALL :: args state -> reply state TERMINATE :: reason state -> void should check to avoid duplicates build a trivial event handler with no state, only invoking a callback on any event CALL TERMINATE
Erlang / OTP - like behavior for " event handlers " INIT : : arg - > state (define-type event-handler id: 1d3007b8-c5aa-4090-ab55-e352040a4498 read-only: init notify call terminate) (define *event-manager-timeout* 1) (define (event-manager) (let loop ((handlers '())) (recv ...
b4fd2a7b80941f7622313682cfd9f0be3461410aac2277a5e7f15fb8aa7021d7
samhh/tshm
TypeScript.hs
module TSHM.TypeScript where import Prelude data UnOp = UnOpReflection | UnOpKeys | UnOpReadonly deriving (Eq, Show) data BinOp = BinOpIntersection | BinOpUnion deriving (Eq, Show) data Mutant = Immut | Mut deriving (Eq, Show) data Partial = Required | Optional deriving (Eq, Sho...
null
https://raw.githubusercontent.com/samhh/tshm/1f25bb42df958a7bf8728bd1c6a4e77ccd8b0e73/lib/TSHM/TypeScript.hs
haskell
Represents the positive or negative nature of the readonly modifier in a mapped type. See: -types.html#mapping-modifiers Represents the positive or negative nature of the optionality modifier in a mapped type. See: -types.html#mapping-modifiers This is represented as a string because numbers are hard and tend to...
module TSHM.TypeScript where import Prelude data UnOp = UnOpReflection | UnOpKeys | UnOpReadonly deriving (Eq, Show) data BinOp = BinOpIntersection | BinOpUnion deriving (Eq, Show) data Mutant = Immut | Mut deriving (Eq, Show) data Partial = Required | Optional deriving (Eq, Sho...
f9ec69dd62a05a47793aaed8e18bbb8bff1cfec88a13795378ee92136c7e4ff2
stchang/ftree
oseq-tests.rkt
#lang racket (require rackunit) (require "../ftree/ftree.rkt") (require "../orderedseq/orderedseq.rkt") ;; test generics (check-true (oseq? (ft-consL 1 (mk-oseq <)))) builds min - queue by inserting elements lowest first , start ... size-1 (define (build-oseq< size f [start 0]) (let loop ([n size]) (if (= sta...
null
https://raw.githubusercontent.com/stchang/ftree/4f5f57c437446b83a01bb251659dc0cfdbd88167/tests/oseq-tests.rkt
racket
test generics sums the m front, ie left, deque elements sums the m rear, ie right, deque elements test insert ---------------------------------------- test partition ---------------------------------------- test delete ---------------------------------------- test top and bot ------------------------------------...
#lang racket (require rackunit) (require "../ftree/ftree.rkt") (require "../orderedseq/orderedseq.rkt") (check-true (oseq? (ft-consL 1 (mk-oseq <)))) builds min - queue by inserting elements lowest first , start ... size-1 (define (build-oseq< size f [start 0]) (let loop ([n size]) (if (= start n) (mk...
a90c68b5faa86b7d755d4c3213a8bac63f9e17e50deec70c3d561c6189f9a5ce
mpenet/tape
tape_test.clj
(ns qbits.tape-test (:require [clojure.test :refer :all] [qbits.tape.tailer :as tailer] [qbits.tape.async :as tape.async] [qbits.tape.appender :as appender] [qbits.tape.queue :as queue] [clojure.core.async :as async] [clojure.java.io :as io] ...
null
https://raw.githubusercontent.com/mpenet/tape/615293e2d9eeaac36b5024f9ca1efc80169ac75c/test/qbits/tape_test.clj
clojure
(ns qbits.tape-test (:require [clojure.test :refer :all] [qbits.tape.tailer :as tailer] [qbits.tape.async :as tape.async] [qbits.tape.appender :as appender] [qbits.tape.queue :as queue] [clojure.core.async :as async] [clojure.java.io :as io] ...
d2b565cb58d8b854eb1d9373d872268906c7e77e40612fd387f48e7a6a4bddb6
xmonad/xmonad
Delete.hs
# LANGUAGE ScopedTypeVariables # module Properties.Delete where import Test.QuickCheck import Instances import Utils import XMonad.StackSet hiding (filter) -- --------------------------------------------------------------------- -- 'delete' -- deleting the current item removes it. prop_delete x = case peek x of...
null
https://raw.githubusercontent.com/xmonad/xmonad/45a89130d96bfb4fe449e438e5436b73ca4ab4ed/tests/Properties/Delete.hs
haskell
--------------------------------------------------------------------- 'delete' deleting the current item removes it. delete is reversible with 'insert'. It is the identity, except for the 'master', which is reset on insert and delete. delete should be local delete should not affect focus unless the focused elem...
# LANGUAGE ScopedTypeVariables # module Properties.Delete where import Test.QuickCheck import Instances import Utils import XMonad.StackSet hiding (filter) prop_delete x = case peek x of Nothing -> True Just i -> not (member i (delete i x)) where _ = x :: T prop_delete_insert (x :: T) = ...
ac889d19ae098d0881c2f33531c4bac633b23f8d90ed34e9eae81bba621bfdd9
ndmitchell/catch
Haskell.hs
module Hill.Haskell(cmdsHaskell) where import Hill.Type import Hill.PrimOp import Hill.Show import Front.CmdLine import Data.List import Data.Char import General.General import Control.Exception import System import System.Directory cmdsHaskell = [Action "hill-haskell" outputHaskell ,Action "hill-ghc"...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/Hill/Haskell.hs
haskell
------------------------------------------------------------------- (return :: a -> IO a) x") :
module Hill.Haskell(cmdsHaskell) where import Hill.Type import Hill.PrimOp import Hill.Show import Front.CmdLine import Data.List import Data.Char import General.General import Control.Exception import System import System.Directory cmdsHaskell = [Action "hill-haskell" outputHaskell ,Action "hill-ghc"...
42cf2c1475a68e76f8aac2adbf7515a34a25a66a480092dda4e36ef26ce269e3
juspay/atlas
BusinessEvent.hs
| Copyright 2022 Juspay Technologies Pvt Ltd 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 dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Storage/Queries/BusinessEvent.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd 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 dis...
911dc64e1a847ce23fd4010c9dde3190b52d602bcbdfedd7b2c94553c45d4af1
ndmitchell/catch
Graph.hs
module Graph ( module Graph.Type, module Graph.Show, module Graph.Draw, module Graph.CaseCheck ) where import Graph.Type import Graph.Show import Graph.Draw import Graph.CaseCheck
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/Graph.hs
haskell
module Graph ( module Graph.Type, module Graph.Show, module Graph.Draw, module Graph.CaseCheck ) where import Graph.Type import Graph.Show import Graph.Draw import Graph.CaseCheck
b508151266227c1fb953af715b6b15c8dac4bccfa9599f6852970ee03659dec9
aliaksandr-s/prototyping-with-clojure
core.clj
(ns visitera.db.core (:require [datomic.api :as d] [io.rkn.conformity :as c] [mount.core :refer [defstate]] [visitera.config :refer [env]] [clojure.string :as str])) (defstate conn :start (do (-> env :database-url d/create-database) (-> env :database-url d/connect)) :stop (-> conn .release)) (def...
null
https://raw.githubusercontent.com/aliaksandr-s/prototyping-with-clojure/e1f90bf66c315de1dfa72624895637f1c609c42e/app/chapter-05/start/visitera/src/clj/visitera/db/core.clj
clojure
find Specifications using ':find ?a .' will return single scalar app domain functions (add-user conn {:email "" :password "somepass"}) (find-user (d/db conn) "") (concat-keyword :user/countries- :visited) (get-countries (d/db conn) "") (d/q '[:find (pull ?e [:user/email ...
(ns visitera.db.core (:require [datomic.api :as d] [io.rkn.conformity :as c] [mount.core :refer [defstate]] [visitera.config :refer [env]] [clojure.string :as str])) (defstate conn :start (do (-> env :database-url d/create-database) (-> env :database-url d/connect)) :stop (-> conn .release)) (def...
03cd8d2ed8bc195ba1fdb7ffebc0563306c8f2e7c666ffad622ffa498dd6260c
hackwaly/ocamlearlybird
adapter.ml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
null
https://raw.githubusercontent.com/hackwaly/ocamlearlybird/165174e3cc749ba416ec7ebfb4b521e5fac744db/src/adapter/adapter.ml
ocaml
* * Copyright ( C ) 2021 * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation , either version 3 of the * License , or ( at your option ) any later version . * * Th...
146185e1ef4833d05f71b010f1ea97fc7c4e566fe223ab934f11248ce67df8c0
theodormoroianu/SecondYearCourses
HaskellChurchMonad_20210415130400.hs
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} An instance to show as regular Booleans instance Show (CBool Bool) where show b = show $ cIf b True False The boolean constant true always chooses the first alternative cTrue ...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurchMonad_20210415130400.hs
haskell
The boolean negation switches the alternatives The boolean conjunction can be built as a conditional The boolean disjunction can be built as a conditional a pair is a way to compute something based on the values contained within the pair . An instance to show CPairs as regular pairs . builds a pair out of two va...
module HaskellChurchMonad where A boolean is any way to choose between two alternatives newtype CBool t = CBool {cIf :: t -> t -> t} An instance to show as regular Booleans instance Show (CBool Bool) where show b = show $ cIf b True False The boolean constant true always chooses the first alternative cTrue ...
637f389f9513ce7f7dd157779a13872b04ef13f9ccb0b083fd01642b2d254791
emqx/emqx
emqx_authz_schema.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. 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 o...
null
https://raw.githubusercontent.com/emqx/emqx/969cbecf91cd71f3f4a0d83f6fa4a9f45329645e/apps/emqx_authz/src/emqx_authz_schema.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 ...
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. 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(emqx_authz_schema). -include("emqx_authz.hrl"). -include_lib("hocon/include/hoconsc.hrl...
0e81a9742ef8b8d3afe588ae394bff4110467177e5e5ec7355839bbca025cf47
input-output-hk/plutus-apps
Address.hs
module Plutus.Script.Utils.V2.Address ( mkValidatorAddress , mkValidatorCardanoAddress , mkMintingPolicyCardanoAddress , mkStakeValidatorCardanoAddress ) where import Cardano.Api qualified as Script import Plutus.Script.Utils.V2.Scripts qualified as PV2 import Plutus.V2.Ledger.Api (Address (Addres...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/cd70d8acbde66c0f9a637d6b114cb6ca8bc4bb31/plutus-script-utils/src/Plutus/Script/Utils/V2/Address.hs
haskell
# INLINABLE mkValidatorAddress # | The address that should be used by a transaction output locked by the given | Cardano address of a 'PV1.Validator' script. | Cardano address of a 'PV1.MintingPolicy' script. | Cardano address of a 'PV1.MintingPolicy' script. | Convert a 'Script' to a 'cardano-api' address.
module Plutus.Script.Utils.V2.Address ( mkValidatorAddress , mkValidatorCardanoAddress , mkMintingPolicyCardanoAddress , mkStakeValidatorCardanoAddress ) where import Cardano.Api qualified as Script import Plutus.Script.Utils.V2.Scripts qualified as PV2 import Plutus.V2.Ledger.Api (Address (Addres...
a205e02271c75eb4d9c724fb3a44c9167171e82ad48360a3c57a94d149ab2899
jeffshrager/biobike
redisplay-listener.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: WEBLISTENER; -*- (in-package :weblistener) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Pe...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Weblisten/redisplay-listener.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: WEBLISTENER; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this softwar...
(in-package :weblistener) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subje...
61df70b2cc6d5420599bd4565639b2a1c8847ae24444588057f8d06aa81142db
ocurrent/ocurrent
log.ml
let src = Logs.Src.create "current_web" ~doc:"OCurrent web interface" include (val Logs.src_log src : Logs.LOG)
null
https://raw.githubusercontent.com/ocurrent/ocurrent/344af83279e9ba17f5f32d0a0351c228a6f42863/lib_web/log.ml
ocaml
let src = Logs.Src.create "current_web" ~doc:"OCurrent web interface" include (val Logs.src_log src : Logs.LOG)
bfe9a68a55bf8aeaaf3ad2ee154e9eaed59aa5c543748e35826eac01fb364519
patrickt/effects-benchmarks
HTTP.hs
# LANGUAGE DeriveAnyClass , DeriveFunctor , DeriveGeneric , DerivingStrategies , FlexibleInstances , GeneralizedNewtypeDeriving , KindSignatures , MultiParamTypeClasses , TypeOperators , UndecidableInstances # KindSignatures, MultiParamTypeClasses, TypeOperators, UndecidableInstances #-} mo...
null
https://raw.githubusercontent.com/patrickt/effects-benchmarks/3416436ae9a6de9f2fe9e7a3662c8af5a0be615d/instances/Fused/HTTP.hs
haskell
# LANGUAGE DeriveAnyClass , DeriveFunctor , DeriveGeneric , DerivingStrategies , FlexibleInstances , GeneralizedNewtypeDeriving , KindSignatures , MultiParamTypeClasses , TypeOperators , UndecidableInstances # KindSignatures, MultiParamTypeClasses, TypeOperators, UndecidableInstances #-} mo...
73aaa42e6141932bb8f44b302c52b4fafe6d56b9804296290bc39bdedf6149d1
vimus/libmpd-haskell
Mount.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Network . MPD.Commands . Mount Copyright : ( c ) Joachim Fasting 2014 License : MIT Maintainer : Stability : stable Portability : unportable Mounting remote storage . Module : Network.MPD.Commands.Mount Copyright : (c) Joachim...
null
https://raw.githubusercontent.com/vimus/libmpd-haskell/1ec02deba33ce2a16012d8f0954e648eb4b5c485/src/Network/MPD/Commands/Mount.hs
haskell
# LANGUAGE OverloadedStrings #
| Module : Network . MPD.Commands . Mount Copyright : ( c ) Joachim Fasting 2014 License : MIT Maintainer : Stability : stable Portability : unportable Mounting remote storage . Module : Network.MPD.Commands.Mount Copyright : (c) Joachim Fasting 2014 License : MIT Ma...
ce1adebc5ee7d94dc7e17abb7a98fe34bdde7113247ca476e12dc3452f9eb4ab
dyoo/whalesong
exn-3.rkt
#lang whalesong (with-handlers ([(lambda (exn) #f) (lambda (exn) +inf.0)]) (car 17))
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/more-tests/exn-3.rkt
racket
#lang whalesong (with-handlers ([(lambda (exn) #f) (lambda (exn) +inf.0)]) (car 17))