_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
561c5a120517afcc555b24d22d33f58389c653fefd22b874272e6840a05e7324
rems-project/lem
util.mli
(**************************************************************************) (* Lem *) (* *) , University of Cambridge , INRIA Paris -...
null
https://raw.githubusercontent.com/rems-project/lem/8942774c40ccb7328a9207056c265d4848a634fe/src/util.mli
ocaml
************************************************************************ Lem ...
, University of Cambridge , INRIA Paris - Rocquencourt , University of Cambridge , University of Cambridge , University of Cambridge ( while working on Lem ) ...
d8c233db1a715c40d755e1a3efc647b68d1e961dff2d98f1502f5997a1aed57f
malcolmreynolds/GSLL
chi-squared.lisp
Regression test CHI - SQUARED for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST CHI-SQUARED (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 13.043328884186328d0 11.427227829236712d0 16.55811815484942d0 7.128795406995407d0 5.120266499239882d0 10.464572605669142d0 5.81269298...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/tests/chi-squared.lisp
lisp
Regression test CHI - SQUARED for GSLL , automatically generated (in-package :gsl) (LISP-UNIT:DEFINE-TEST CHI-SQUARED (LISP-UNIT::ASSERT-NUMERICAL-EQUAL (LIST (LIST 13.043328884186328d0 11.427227829236712d0 16.55811815484942d0 7.128795406995407d0 5.120266499239882d0 10.464572605669142d0 5.81269298...
5106ec56d80d28eb88621f16f16e0ec5d6b306a2b01b820f582231af049b2fdc
stchang/macrotypes
lin5.rkt
#lang turnstile/base ;; same as lin4.rkt, except uses prop-specific keywords, eg #:fail-unless/scopes ;; (keep lin4 intact for comparison) - only # % lin - var updated uses new kws so far ;; - rest same as lin4 (extends "../ext-stlc.rkt" #:except define if begin let let* letrec λ #%app) (provide (for-syntax curren...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-example/turnstile/examples/linear/lin5.rkt
racket
same as lin4.rkt, except uses prop-specific keywords, eg #:fail-unless/scopes (keep lin4 intact for comparison) - rest same as lin4 TODO: should these be in turnstile/mode ? this parameter defines the linear-type? function. we defining new types that are linear, modify this parameter like so: (current-linear-...
#lang turnstile/base - only # % lin - var updated uses new kws so far (extends "../ext-stlc.rkt" #:except define if begin let let* letrec λ #%app) (provide (for-syntax current-linear-type? linear-type? unrestricted-type? linear-mode? ...
74a230bf37ca788a35ff92c61cb6564c0df1bea526030699872045007332d2d9
mbj/stratosphere
OrStatementProperty.hs
module Stratosphere.WAFv2.WebACL.OrStatementProperty ( module Exports, OrStatementProperty(..), mkOrStatementProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.WAFv2.WebACL.StatementProperty as...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/OrStatementProperty.hs
haskell
# SOURCE #
module Stratosphere.WAFv2.WebACL.OrStatementProperty ( module Exports, OrStatementProperty(..), mkOrStatementProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties data OrStatementProperty = ...
741b811f2966a1abadff8e0a5b279034c31c7d9746f90511cf11fe78ee2f553f
robrix/starlight
Window.hs
{-# LANGUAGE DeriveTraversable #-} # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module UI.Window ( Coords(..) , swap , poll , input , size , ratio , runSDL , runWindow , Window ) where import Contr...
null
https://raw.githubusercontent.com/robrix/starlight/ad80ab74dc2eedbb52a75ac8ce507661d32f488e/src/UI/Window.hs
haskell
# LANGUAGE DeriveTraversable # FIXME: can we embed the ratio into this? maybe at the type level?
# LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module UI.Window ( Coords(..) , swap , poll , input , size , ratio , runSDL , runWindow , Window ) where import Control.Carrier.Lift import Co...
9ab0d1112f0757ca7ae1248f28ef998b4608f4e67baa92bddb101bbf185b58ac
manuel-serrano/bigloo
garith.scm
;*=====================================================================*/ * ... /prgm / project / bigloo / / comptime / Expand / garith.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : F...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/0c4e210bdeccc36b880f6e2e52512f205e7bd6af/comptime/Expand/garith.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* ... /prgm / project / bigloo / / comptime / Expand / garith.scm * / * Author : * / * Creation : Fri Aug 26 09:16:36 1994 * / * Last change : Thu Nov 10 17:28:57 2022 ( serrano ) * / * Copyright...
9d4f2c5d44289877553fd07ea1a6a1ceb3edc78113814b69cbe6ced7e80a03e9
lingnand/VIMonad
DynamicHooks.hs
{-# LANGUAGE DeriveDataTypeable #-} ----------------------------------------------------------------------------- -- | -- Module : XMonad.Hooks.DynamicHooks Copyright : ( c ) 2008 License : BSD - style ( as xmonad ) -- Maintainer : -- Stability : unstable -- Portability : unportable -...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Hooks/DynamicHooks.hs
haskell
# LANGUAGE DeriveDataTypeable # --------------------------------------------------------------------------- | Module : XMonad.Hooks.DynamicHooks Stability : unstable Portability : unportable --------------------------------------------------------------------------- * Usage $usage $usage * Perman...
Copyright : ( c ) 2008 License : BSD - style ( as xmonad ) Maintainer : One - shot and permanent ManageHooks that can be updated at runtime . module XMonad.Hooks.DynamicHooks ( dynamicMasterHook ,addDynamicHook ,updateDynamicHook ,oneShotHook ) where import XMonad import qualified...
ddd123e45e86ccdfe1f5b243e2d288fea199e6e2f991d8d15a8a6feb6a39f394
static-analysis-engineering/codehawk
cHStringIndexTable.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/418c95f77e6ece464df2ade519f27d95aa0119d6/CodeHawk/CH/chutil/cHStringIndexTable.ml
ocaml
chutil string -> index index -> string
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Analyzer Infrastructure Utilities Author : ------------------------------------------------------------------------------ The MIT License...
767e3bbbe4ad9889dd6a3ab336d9a61d7b0552729f25ae17921399cdf7a91a0c
aligusnet/astro
GregorianCalendar.hs
| Module : Data . Astro . Time . GregorianCalendar Description : Gregorian Calendar Copyright : , 2016 Gregorian Calendar was introduced by Pope . He abolished the days 1582 - 10 - 05 to 1582 - 10 - 14 inclusive to bring back civil and tropical years back to line . Module: Data.Astro.Time.GregorianCal...
null
https://raw.githubusercontent.com/aligusnet/astro/a8c951885061ccef98299af053fdc1a1cc808f17/src/Data/Astro/Time/GregorianCalendar.hs
haskell
Before this date - to Julian Calendar | Check Gregorian calendar leap year | Get Easter date
| Module : Data . Astro . Time . GregorianCalendar Description : Gregorian Calendar Copyright : , 2016 Gregorian Calendar was introduced by Pope . He abolished the days 1582 - 10 - 05 to 1582 - 10 - 14 inclusive to bring back civil and tropical years back to line . Module: Data.Astro.Time.GregorianCal...
05fc172b1f0cd1e67ae34aa2c03885198245dbcc4f415a4fd0e9534471bce0d1
robert-strandh/CLIMatis
application.lisp
(cl:in-package #:clim3-application) (defvar clim3:*application*) (defclass clim3:application () ()) (defclass clim3:view () ()) (defgeneric clim3:current-view (application)) (defgeneric clim3:key-processor (application view input-context)) (defgeneric clim3:submit-keystroke (key-processor keystroke))
null
https://raw.githubusercontent.com/robert-strandh/CLIMatis/4949ddcc46d3f81596f956d12f64035e04589b29/Application/application.lisp
lisp
(cl:in-package #:clim3-application) (defvar clim3:*application*) (defclass clim3:application () ()) (defclass clim3:view () ()) (defgeneric clim3:current-view (application)) (defgeneric clim3:key-processor (application view input-context)) (defgeneric clim3:submit-keystroke (key-processor keystroke))
c53a8cb94e08e9b0899503c364b728a15a72f822575d99245a7256c1cbbe0aff
futurice/haskell-mega-repo
BookInformationPage.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} module Futurice.App.Library.Pages.BookInformationPage where import Data.List (partition) import Data.Maybe (isJust) import Futurice.IdMap (IdMap) import Futurice.Prelude import Prelude () import Servant import Futurice.App.Library.API i...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/library-app/src/Futurice/App/Library/Pages/BookInformationPage.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # module Futurice.App.Library.Pages.BookInformationPage where import Data.List (partition) import Data.Maybe (isJust) import Futurice.IdMap (IdMap) import Futurice.Prelude import Prelude () import Servant import Futurice.App.Library.API import Futurice.App.Library.Logic (...
bbd4c31870be56acf59030501543d17b31f53c16205448e896306ce1bd533a83
erlyaws/yaws
yaws_debug.erl
%%%---------------------------------------------------------------------- %%% File : yaws_debug.erl Author : < > %%% Purpose : Created : 7 Feb 2002 by < > %%%---------------------------------------------------------------------- -module(yaws_debug). -author(''). -include("../include/yaws.hrl"). -incl...
null
https://raw.githubusercontent.com/erlyaws/yaws/da198c828e9d95ca2137da7884cddadd73941d13/src/yaws_debug.erl
erlang
---------------------------------------------------------------------- File : yaws_debug.erl Purpose : ---------------------------------------------------------------------- debug dump %%%%%%%%%%%%%%%%%%%%%%% keep proc status last, to report on hangs for the others FIXME The 'top -b -n 1' invocation is actually...
Author : < > Created : 7 Feb 2002 by < > -module(yaws_debug). -author(''). -include("../include/yaws.hrl"). -include("../include/yaws_api.hrl"). -include("yaws_debug.hrl"). -export([typecheck/3, format_record/3, assert/4, format/2,format/3, derror/2, dinfo/2,...
077825664c8836614d54e04c7012b1d80e82efb5c3e33e47920c3b5e84cd7f32
matthiasn/systems-toolbox
re_frame.cljs
(ns example.re-frame (:require-macros [reagent.ratom :refer [reaction]]) (:require [reagent.core :as reagent] [example.ui-mouse-moves :as mm] [example.ui-histograms :as hist] [example.ui-info :as info] [example.utils :as u] [re-frame.core :refer [reg-sub]]...
null
https://raw.githubusercontent.com/matthiasn/systems-toolbox/6bcc44af449b4a5d4e9128cd0f2129b58619a5dc/examples/trailing-mouse-pointer/src/cljs/example/re_frame.cljs
clojure
Subscription Handlers
(ns example.re-frame (:require-macros [reagent.ratom :refer [reaction]]) (:require [reagent.core :as reagent] [example.ui-mouse-moves :as mm] [example.ui-histograms :as hist] [example.ui-info :as info] [example.utils :as u] [re-frame.core :refer [reg-sub]]...
1ff5d29192eb581d6fb38b4e784e7649c80bfb83dc36ee8a795330622892b166
moonlightdrive/ocaml-ec2
bundle.mli
* Copyright ( c ) 2014 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provinded that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/moonlightdrive/ocaml-ec2/06df35a4a29f1b51416013ddf126eeb43587dc11/ami/bundle.mli
ocaml
* Copyright ( c ) 2014 , < > * * Permission to use , copy , modify , and/or distribute this software for any * purpose with or without fee is hereby granted , provinded that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
cc9e8d9dad32f1e074aaae8c2cd221af035b139a111541afd34be1e3636f7181
csg-tokyo/typelevelLR
TestValid63.hs
import MultipleOf7 63 = 0b111111 main :: IO () main = print $ begin |> i |> i |> i |> i |> i |> i |> end
null
https://raw.githubusercontent.com/csg-tokyo/typelevelLR/ca5853890fac7fb819a026f0fd15d8b43f7c8470/examples/haskell/multiple-of-7/TestValid63.hs
haskell
import MultipleOf7 63 = 0b111111 main :: IO () main = print $ begin |> i |> i |> i |> i |> i |> i |> end
d634cdc1523e0d22d3e0184085bd2f2d2127bb8fab2414177d518a9cd0feb050
pfdietz/ansi-test
loop6.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Nov 10 21:13:04 2002 ;;;; Contains: Tests for LOOP-AS-HASH forms (defparameter *loop.6.alist* '((a . 1) (b . 2) (c . 3))) (defparameter *loop.6.alist.2* '(("a" . 1) ("b" . 2) ("c" . 3))) (defparameter *loop.6.alist.3* '(((a1 . a2) . 1) ((b1 . b2) . 2)...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/iteration/loop6.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for LOOP-AS-HASH forms (defparameter *loop.6.hash.4* (let ((table (make-hash-table :test #'equalp))) table)) being {each | the} {hash-value | hash-values | hash-key | hash-keys} {in | of } Test that explicit calls to macroexpand in subforms are done in the correct envir...
Author : Created : Sun Nov 10 21:13:04 2002 (defparameter *loop.6.alist* '((a . 1) (b . 2) (c . 3))) (defparameter *loop.6.alist.2* '(("a" . 1) ("b" . 2) ("c" . 3))) (defparameter *loop.6.alist.3* '(((a1 . a2) . 1) ((b1 . b2) . 2) ((c1 . c2) . 3))) (defparameter *loop.6.hash.1* (let ((table (ma...
2f83da9c44366b87976500626af2d860f8575ceaf713e786ae51060b8dc4de14
haskell-compat/base-compat
Batteries.hs
{-# LANGUAGE PackageImports #-} # OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # | Reexports " Foreign . Marshal . Alloc . Compat " -- from a globally unique namespace. module Foreign.Marshal.Alloc.Compat.Repl.Batteries ( module Foreign.Marshal.Alloc.Compat ) where import "this" Foreign....
null
https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat-batteries/src/Foreign/Marshal/Alloc/Compat/Repl/Batteries.hs
haskell
# LANGUAGE PackageImports # from a globally unique namespace.
# OPTIONS_GHC -fno - warn - dodgy - exports -fno - warn - unused - imports # | Reexports " Foreign . Marshal . Alloc . Compat " module Foreign.Marshal.Alloc.Compat.Repl.Batteries ( module Foreign.Marshal.Alloc.Compat ) where import "this" Foreign.Marshal.Alloc.Compat
f853ac9938a4b0263667c243df2eb84784cf82b9f14413913b0507bbad670df1
Holmusk/servant-docs-simple
custom.hs
-- stack runghc --package servant-docs-simple # LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} module Main where import Data....
null
https://raw.githubusercontent.com/Holmusk/servant-docs-simple/6f6d4e35cbce4d0dc0254a4799322ba5904f0b4b/examples/custom.hs
haskell
stack runghc --package servant-docs-simple # LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators # - Just to allow compilation
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Main where import Data.Proxy (Proxy (..)) import Data.Text (Text, pack) import Data.Typeable (Typeable, typeRep) import Servant.API ((:>)) imp...
0b61db911f15429207e59d96fbed9ce42017ed6700f61ccdc21ea2867136b8bc
haasn/hsbooru
Scraper.hs
-- | Heavy lifting logic for scraping posts and downloading images module HsBooru.Scraper ( download , scrapeSite , downloadImage , storeImages , processSite ) where import Prelude hiding (log) import Data.Acid (createCheckpoint) import qualified Data.ByteString.Lazy as LBS import qualified Da...
null
https://raw.githubusercontent.com/haasn/hsbooru/996880786d2cbccd6bef4c0b983c18989d5d5f01/src/HsBooru/Scraper.hs
haskell
| Heavy lifting logic for scraping posts and downloading images * Fetching and scraping | Run a scraper on a website and range of posts, returning a stream of Posts When a post doesn't have enough tags, treat it as a failure - i.e. we will try scraping it again implicitly When a post is white/blacklisted, treat i...
module HsBooru.Scraper ( download , scrapeSite , downloadImage , storeImages , processSite ) where import Prelude hiding (log) import Data.Acid (createCheckpoint) import qualified Data.ByteString.Lazy as LBS import qualified Data.IntervalSet as IS import qualified Data.Text as T import qualifi...
781c39611afabf76650b271884906dc29c513e4fade8e006e4e9566f5cf617d5
enterlab/rente
views.cljs
(ns rente.client.views (:require [rente.client.ws :as socket])) (defn main [data] [:div [:h1 (:title @data)] [:div "Hello world! This is reagent speaking!"] [:br] [:div "Look in your browser's developer console to see the web socket communication when clicking below buttons."] [:br] [:button {:on...
null
https://raw.githubusercontent.com/enterlab/rente/577e519e91f13d28f70a1e6cbc2c75f93afe1a79/src/rente/client/views.cljs
clojure
(ns rente.client.views (:require [rente.client.ws :as socket])) (defn main [data] [:div [:h1 (:title @data)] [:div "Hello world! This is reagent speaking!"] [:br] [:div "Look in your browser's developer console to see the web socket communication when clicking below buttons."] [:br] [:button {:on...
21862014299d1b8e6eb00eed7358abe379a7989af6f101927320a488325fcd05
windorg/app-old
Show.hs
module Web.View.Feed.Show where import Web.Helper.View import Web.View.Prelude import Web.ViewTypes data FeedView = FeedView { feedItems :: [FeedItemV], days :: Int } instance View FeedView where html FeedView{..} = [hsx| <nav> <ol class="breadcrumb"> <li...
null
https://raw.githubusercontent.com/windorg/app-old/ed9c5322c8ab8a0275bdcd479be12a3f230da8c9/Web/View/Feed/Show.hs
haskell
module Web.View.Feed.Show where import Web.Helper.View import Web.View.Prelude import Web.ViewTypes data FeedView = FeedView { feedItems :: [FeedItemV], days :: Int } instance View FeedView where html FeedView{..} = [hsx| <nav> <ol class="breadcrumb"> <li...
2e6759618184309b3a1a953d7743caea22060d92633320a65833b5b4ebedb626
kupl/LearnML
original.ml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec change ((v : string), (e : lambda)) : lambda = match e with | V v' -> V v' | P (v', e') -> change (v', e') | C (e1, e2) -> if V v = e1 then if V v = e2 then change (v, e1) else change (v, e2) else if V v...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/lambda/sub64/original.ml
ocaml
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda) and var = string let rec change ((v : string), (e : lambda)) : lambda = match e with | V v' -> V v' | P (v', e') -> change (v', e') | C (e1, e2) -> if V v = e1 then if V v = e2 then change (v, e1) else change (v, e2) else if V v...
1af7a14aa28f7f620a006ebb3f454a943ce63c0a6ca3b2fc530bb91fdaa806c7
ocaml-flambda/flambda-backend
slot_offsets.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/61abb3f595c93a7d411726aff04c1d1ce2d54e40/middle_end/flambda2/simplify_shared/slot_offsets.mli
ocaml
************************************************************************ OCaml ...
, OCamlPro the GNU Lesser General Public License version 2.1 , with the * { 2 Computing offsets } type t type used_slots = { function_slots_in_normal_projections : Function_slot.Set.t; all_function_slots : Function_slot.Set.t; value_slots_in...
a7a509c99e8a1ac1fceb2b4394a02f05e4686ca4520d2e184ca34bce74b71edd
eeng/shevek
share.cljs
(ns shevek.pages.designer.actions.share (:require [reagent.core :as r] [shevek.i18n :refer [t]] [shevek.components.popup :refer [tooltip]] [shevek.components.modal :refer [show-modal close-modal]] [shevek.components.notification :refer [notify]] [shevek.comp...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/cljs/shevek/pages/designer/actions/share.cljs
clojure
(ns shevek.pages.designer.actions.share (:require [reagent.core :as r] [shevek.i18n :refer [t]] [shevek.components.popup :refer [tooltip]] [shevek.components.modal :refer [show-modal close-modal]] [shevek.components.notification :refer [notify]] [shevek.comp...
cf30b0f61e00d69c4820df94ef0cee997e22a424af1e29ad7cb5b331bc73a3c6
nuvla/api-server
utils.clj
(ns sixsq.nuvla.server.resources.data.utils (:require [clojure.tools.logging :as log] [sixsq.nuvla.server.resources.common.crud :as crud] [sixsq.nuvla.server.resources.credential-template-infrastructure-service-exoscale :as exoscale] [sixsq.nuvla.server.resources.credential-template-infrastructure-ser...
null
https://raw.githubusercontent.com/nuvla/api-server/e4f0535e2e39e5042094fc20bfb811d2a9c75ad5/code/src/sixsq/nuvla/server/resources/data/utils.clj
clojure
otherwise true is returned. Mocked in unit FIXME: Find a better solution for dispatching on credential subtype. throw exception if not authorized Function separated to allow for mocking in unit tests.
(ns sixsq.nuvla.server.resources.data.utils (:require [clojure.tools.logging :as log] [sixsq.nuvla.server.resources.common.crud :as crud] [sixsq.nuvla.server.resources.credential-template-infrastructure-service-exoscale :as exoscale] [sixsq.nuvla.server.resources.credential-template-infrastructure-ser...
a49d22b7eb68a1d4c87e768b1a731b7a7983c4bdcb57ceca9fff80c9b62d10fb
mbutterick/beautiful-racket
stackerizer-test.rkt
#lang s-exp "stackerizer.rkt" (* 3 (+ 8 4))
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/stackerizer-demo/stackerizer-test.rkt
racket
#lang s-exp "stackerizer.rkt" (* 3 (+ 8 4))
a463f9ea21fdc8a7b7e2bf89b08690511a661d31481181854d453b8b79527f57
input-output-hk/cardano-addresses
HashSpec.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # module Command.Script.HashSpec ( spec ) where import Prelude import Cardano.Address.Script ( ErrValidateScript (..), prettyErrValidateScript ) import Data.String.Interpolate ( iii ) import Test.Hspec ( Spec, SpecWith, ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-addresses/27eed933b67064542879729cb8a34b8a4ae69ed2/command-line/test/Command/Script/HashSpec.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # module Command.Script.HashSpec ( spec ) where import Prelude import Cardano.Address.Script ( ErrValidateScript (..), prettyErrValidateScript ) import Data.String.Interpolate ( iii ) import Test.Hspec ( Spec, SpecWith, ...
03e304fcfe54d61b1cb152891521185ab99b246c0a48480e625c34083e3a04e2
aoh/led
documentation.scm
(define-library (led documentation) (import (owl toplevel) (led log) (led buffer)) (export help-buffer) (begin (define main-help "GLOBAL COMMANDS --------------------------------------------------------------- Ctrl-n - switch to [n]ext buffer Ctrl-p - switch to [p]revious...
null
https://raw.githubusercontent.com/aoh/led/5378197532afef4353134bcb1c8d360a8d1ded04/led/documentation.scm
scheme
(define-library (led documentation) (import (owl toplevel) (led log) (led buffer)) (export help-buffer) (begin (define main-help "GLOBAL COMMANDS --------------------------------------------------------------- Ctrl-n - switch to [n]ext buffer Ctrl-p - switch to [p]revious...
38392dd466b5404b954a4174433280fdbe8ff25c8e1969a86e12efa7ef34f0c7
artmsh/clj-aql
config.clj
(require '[circleci.test.report.junit :as junit]) {:test-results-dir "target/test-results" :reporters [circleci.test.report/clojure-test-reporter junit/reporter]}
null
https://raw.githubusercontent.com/artmsh/clj-aql/70c47a53253e4c903d4ea501dec46ed6c16a8a0e/dev-resources/circleci_test/config.clj
clojure
(require '[circleci.test.report.junit :as junit]) {:test-results-dir "target/test-results" :reporters [circleci.test.report/clojure-test-reporter junit/reporter]}
04c3d13a3d443c7a95d2e20f95b27d04370b4a5804e276bab7ce586b6aaec1d3
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PostTopupsTopupCancel.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the different functions to run the operation postTopupsTopupCancel module Strip...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/PostTopupsTopupCancel.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the different functions to run the operation postTopupsTopupCancel | > POST /v1/topups/{topup}/cancel \<p>Cancels a top-up. Only pending top-ups can be canceled.\<\/p> | The request body to send | Monadic computation whi...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Operations.PostTopupsTopupCancel where import qualified Control.Monad.Fail import qualified Control.Monad.Trans.Reader import qualified Data.Aeson import qualified Data.A...
69eeef0cd46700cbcb5cbbeec17464fe74180e12e60fdb72da00486299914868
mathematical-systems/clml
ztrsv.lisp
;;; Compiled by f2cl version: ( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:0...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/blas/ztrsv.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:03:25 rtoy Exp $ " " $ I d :...
dfb442bce1dbead123f2d92f49523127d09002710bdcd6fa94cfa22f6a7f3025
deadtrickster/cl-events
serial-executor.lisp
(in-package :cl-events) (defclass serial-executor () () (:documentation "Iterates over sink content and executes event handlers one after another")) (defmethod invoke-executor ((executor serial-executor) sink args) (invoke-executor 'serial-executor sink args)) (defmethod invoke-executor ((executor (eql 'serial...
null
https://raw.githubusercontent.com/deadtrickster/cl-events/2fdec2dbdef8ba2144139b27a7350d4cedc011a1/src/executors/serial-executor.lisp
lisp
(in-package :cl-events) (defclass serial-executor () () (:documentation "Iterates over sink content and executes event handlers one after another")) (defmethod invoke-executor ((executor serial-executor) sink args) (invoke-executor 'serial-executor sink args)) (defmethod invoke-executor ((executor (eql 'serial...
bf51623ed607936410939529bedab8e739523e7f7b7c4f4c304a3444fd84552e
mirage/irmin
s.ml
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin-http/s.ml
ocaml
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
a1dcb0a73e14394818ddcd262be053cbfd1615bb3ac9a0bf6cad151d438c5354
skynet-gh/skylobby
text_ext.clj
(ns skylobby.fx.text-ext (:require [cljfx.composite :as composite] [cljfx.fx.text :as fx.text]) (:import (org.fxmisc.richtext TextExt))) (set! *warn-on-reflection* true) (def props (merge fx.text/props (composite/props TextExt))) (def lifecycle (composite/describe TextExt :ctor [] ...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/0592644653bc4edf221c543d2ba0a9d316087c6e/src/clj/skylobby/fx/text_ext.clj
clojure
(ns skylobby.fx.text-ext (:require [cljfx.composite :as composite] [cljfx.fx.text :as fx.text]) (:import (org.fxmisc.richtext TextExt))) (set! *warn-on-reflection* true) (def props (merge fx.text/props (composite/props TextExt))) (def lifecycle (composite/describe TextExt :ctor [] ...
007c3333f744c6fab024ed982e0979d6c1f8451bd778eeb362a13484689e5964
Hans-Halverson/myte
type_check.ml
open Analyze_error open Basic_collections open Types type trait_ctx = | TraitDisallowedGeneral | TraitDisallowedAnonymousFunction | TraitImplicitParam of (TypeParam.t * Loc.t) list ref | TraitToBound let rec build_type ~cx ?(check_type_param_bounds = true) ?(trait_ctx = TraitDisallowedGeneral) ty = let open...
null
https://raw.githubusercontent.com/Hans-Halverson/myte/e7c0f8aa98080937d7071c93d0e7222779d1a33d/src/analyze/type_check.ml
ocaml
Check that bounds on type parameters are satisfied by type args, erroring if not Check if this is a builtin type Type parameters can be used directly and do not take type parameters of their own Substitute supplied type arguments for type parameters in body of type alias A trait as a raw identifier is an impli...
open Analyze_error open Basic_collections open Types type trait_ctx = | TraitDisallowedGeneral | TraitDisallowedAnonymousFunction | TraitImplicitParam of (TypeParam.t * Loc.t) list ref | TraitToBound let rec build_type ~cx ?(check_type_param_bounds = true) ?(trait_ctx = TraitDisallowedGeneral) ty = let open...
a4d65d52c6af0b32c93a3197d4b0e4dde45f27050de05524f8dcd6c5e4f974e0
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2016 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject topic-constructor...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/a9976a44f4cdc332bf4e0ed7d9fbbef1a4b74523/kafka-topic-constructor/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2016 , 2020 , 2021 -v10.html (defproject topic-constructor "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"] ...
1cd4efd884f52cbd3fe9f0e5a1286c3b2378af0bed9921d372672a8343221baa
ygmpkk/house
Time.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : OS.Time Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -----------------------------------------------------------...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/OS/Time.hs
haskell
#hide --------------------------------------------------------------------------- | Module : OS.Time License : BSD-style Maintainer : Stability : provisional Portability : portable ---------------------------------------------------------------------------
Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.OS.Time where type OSTime = Int osMaxTime :: OSTime osMaxTime = 2^31-1 foreign import ccall "cCCallSystem_121.h WinGetTickCount" osGetTime :: IO OSTime foreign import ccall "cCCallSystem_121.h WinGetBlinkTime" osGetBlinkInterval :: IO Int
5aa2686f00493ec55758ba6025b77bca3db1378e8624b93483cbac62d62f9cd0
someteam/acha
server.clj
(ns acha.server (:require [acha.git-parser :as git-parser] [acha.achievement :as achievement] [acha.dispatcher :as dispatcher] [acha.util :as util] [acha.db :as db] [acha.core] [clojure.tools.logging :as logging] [clojure.tools.cli :as tools.cli] [clojure.java.io :as io] [cloju...
null
https://raw.githubusercontent.com/someteam/acha/6b957f6cb6773f4fc184d094b40de79039bb58cc/src-clj/acha/server.clj
clojure
(ns acha.server (:require [acha.git-parser :as git-parser] [acha.achievement :as achievement] [acha.dispatcher :as dispatcher] [acha.util :as util] [acha.db :as db] [acha.core] [clojure.tools.logging :as logging] [clojure.tools.cli :as tools.cli] [clojure.java.io :as io] [cloju...
a82ddfddc520ec0a853c2f4cb4ae72196723dc1fb484af8b090271113a5f45ab
K1D77A/lisp-pay
btcpay.lisp
(in-package #:btcpay) ;;;webhooks /#tag/Webhooks (defapi stores-webhooks%all ("/api/v1/stores/:store-id/webhooks" get-request) ()) (defapi stores-webhooks%create ("/api/v1/stores/:store-id/webhooks" post-request) ()) (defapi stores-webhooks%get ("/api/v1/stores/:store-id/webhooks/:webhook-id" ge...
null
https://raw.githubusercontent.com/K1D77A/lisp-pay/3872700c7e886437f4ffacecf7adacd4e02ad6e1/src/btcpay/btcpay.lisp
lisp
webhooks /#tag/Webhooks api keys /#tag/API-Keys Apps /#tag/Apps authorization /#tag/Authorization invoices /#tag/Invoices lightning-internal lightning (store) /#tag/Lightning-(Store) misc /#tag/Miscelleneous notifications /#operation/Notifications_GetNotifications payment requests /#tag/Payment-Requests stores payout p...
(in-package #:btcpay) (defapi stores-webhooks%all ("/api/v1/stores/:store-id/webhooks" get-request) ()) (defapi stores-webhooks%create ("/api/v1/stores/:store-id/webhooks" post-request) ()) (defapi stores-webhooks%get ("/api/v1/stores/:store-id/webhooks/:webhook-id" get-request) ()) (defapi...
8cb86967e92b2862256bbfccfc2308faaab860f3ad8ba5b15063ffb9d3576f1c
purescript/purescript
State.hs
----------------------------------------------------------------------------- -- Module : Language . PureScript . Ide . State -- Description : Functions to access psc-ide's state Copyright : 2016 License : MIT ( ) -- Maintainer : < > -- Stability : experimental -- -- | -- Functions to ac...
null
https://raw.githubusercontent.com/purescript/purescript/b71cb532c7d8d97505376cb528080ca3046615fe/src/Language/PureScript/Ide/State.hs
haskell
--------------------------------------------------------------------------- Description : Functions to access psc-ide's state Stability : experimental | Functions to access psc-ide's state --------------------------------------------------------------------------- # LANGUAGE PackageImports # for tests and pa...
Module : Language . PureScript . Ide . State Copyright : 2016 License : MIT ( ) Maintainer : < > # LANGUAGE TypeApplications # module Language.PureScript.Ide.State ( getLoadedModulenames , getExternFiles , getFileState , resetIdeState , cacheRebuild , cachedRebuild , insert...
0a0ee9c1b63e67e3dfca25496c562fbdd0475db51c9b4212b0489608d18e03f8
spawngrid/htoad
ec_dict.erl
%%%------------------------------------------------------------------- @author < > 2011 Erlware , LLC . %%% @doc %%% This provides an implementation of the ec_dictionary type using erlang dicts as a base . The function documentation for %%% ec_dictionary applies here as well. %%% @end %%% @see ec_dictionar...
null
https://raw.githubusercontent.com/spawngrid/htoad/f0c7dfbd911b29fb0c406b7c26606f553af11194/deps/erlware_commons/src/ec_dict.erl
erlang
------------------------------------------------------------------- @doc This provides an implementation of the ec_dictionary type using ec_dictionary applies here as well. @end @see ec_dictionary @see dict ------------------------------------------------------------------- API ================================...
@author < > 2011 Erlware , LLC . erlang dicts as a base . The function documentation for -module(ec_dict). -behaviour(ec_dictionary). -export([new/0, has_key/2, get/2, get/3, add/3, remove/2, has_value/2, size/1, to_list/1, fr...
febeb38e65f273c443e4a1a648f3d909b34a848cbdd6de0ddec7ec1c577399e6
alex-hhh/ActivityLog2
ec-util.rkt
#lang racket/base SPDX - License - Identifier : GPL-3.0 - or - later ;; ec-util.rkt -- elevation correction utilities ;; ;; This file is part of ActivityLog2 -- -hhh/ActivityLog2 Copyright ( c ) 2022 < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU G...
null
https://raw.githubusercontent.com/alex-hhh/ActivityLog2/94676896984a4b610c3e188e0db0106b858406cb/rkt/models/ec-util.rkt
racket
ec-util.rkt -- elevation correction utilities This file is part of ActivityLog2 -- -hhh/ActivityLog2 This program is free software: you can redistribute it and/or modify it any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the implied warranty of MERCHA...
#lang racket/base SPDX - License - Identifier : GPL-3.0 - or - later Copyright ( c ) 2022 < > 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 ) You should have received a copy of the GNU General Public L...
64aae7741822d6df027d2d2bf48b63dfca0350ad1071b85e475a6871399bd022
mathematical-systems/clml
dlasv2.lisp
;;; Compiled by f2cl version: ( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:0...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/lapack/dlasv2.lisp
lisp
Compiled by f2cl version: Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " $ I d : f2cl1.l , v 1.209 2008/09/11 14:59:55 rtoy Exp $ " " $ I d : f2cl2.l , v 1.37 2008/02/22 22:19:33 " " $ I d : f2cl3.l , v 1.6 2008/02/22 22:19:33 rtoy Rel $ " " $ I d : f2cl4.l , v 1.7 2008/02/22 22:19:34 rtoy Rel $ " " $ I d : f2cl5.l , v 1.197 2008/09/11 15:03:25 rtoy Exp $ " " $ I d :...
3d6a7a88e70c1a49d4cc4f58cac67bc74f80320f63303619e9c00100346f5caf
imrehg/ypsilon
sdl.scm
#!nobacktrace (library (ypsilon sdl) (export AUDIO_S16 AUDIO_S16LSB AUDIO_S16MSB AUDIO_S16SYS AUDIO_S8 AUDIO_U16 AUDIO_U16LSB AUDIO_U16MSB AUDIO_U16SYS AUDIO_U8 CD_ERROR CD_PAUSED CD_PLAYING ...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/sdl.scm
scheme
#!nobacktrace (library (ypsilon sdl) (export AUDIO_S16 AUDIO_S16LSB AUDIO_S16MSB AUDIO_S16SYS AUDIO_S8 AUDIO_U16 AUDIO_U16LSB AUDIO_U16MSB AUDIO_U16SYS AUDIO_U8 CD_ERROR CD_PAUSED CD_PLAYING ...
4e806495ee6e53a48de2f2245eff16693a30dc003f8748633e8b190b5d457928
armedbear/abcl
do-external-symbols.lisp
;;; do-external-symbols.lisp ;;; Copyright ( C ) 2004 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later versi...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/src/org/armedbear/lisp/do-external-symbols.lisp
lisp
do-external-symbols.lisp This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
Copyright ( C ) 2004 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (in-pack...
02354629505f38e39daabc61fe90a3572a094ba0595d153d0e377ccb3cc931c3
seanomlor/programming-in-haskell
pairs.hs
pairs :: [a] -> [(a, a)] pairs xs = zip xs (tail xs)
null
https://raw.githubusercontent.com/seanomlor/programming-in-haskell/e05142e6709eeba2e95cf86f376a32c9e629df88/05-list-comprehensions/pairs.hs
haskell
pairs :: [a] -> [(a, a)] pairs xs = zip xs (tail xs)
9191bdd699d124cfa38da0dabca3f3a523da2f2f6db70df8cd4d5250db510d91
ml4tp/tcoq
fast_typeops.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/kernel/fast_typeops.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Term open Environ open D...
b50d2fef5e04bd37b6071f85db8b3d902cb1c65db977a460beb9e5a343498091
WormBase/wormbase_rest
transposon_family.clj
(ns rest-api.classes.transposon-family (:require [rest-api.classes.transposon-family.widgets.overview :as overview] [rest-api.classes.transposon-family.widgets.transposons :as transposons] [rest-api.classes.transposon-family.widgets.var-motifs :as var-motifs] [rest-api.classes.graphview.widget :as gra...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/transposon_family.clj
clojure
(ns rest-api.classes.transposon-family (:require [rest-api.classes.transposon-family.widgets.overview :as overview] [rest-api.classes.transposon-family.widgets.transposons :as transposons] [rest-api.classes.transposon-family.widgets.var-motifs :as var-motifs] [rest-api.classes.graphview.widget :as gra...
4dc81c749501e0bb5de06091cc004d792c63edb6a3298bc8b352504a933bd964
phylogeography/spread
icon.cljs
(ns ui.component.icon) (def icons {:dropdown "icons/icn_dropdown.svg" :run-new "icons/icn_run_analysis.svg" :completed "icons/icn_previous_analysis.svg" :kebab-menu "icons/icn_kebab_menu.svg" :delete "icons/icn_delete.svg" :user "icons/icn_use...
null
https://raw.githubusercontent.com/phylogeography/spread/56f3500e6d83e0ebd50041dc336ffa0697d7baf8/src/cljs/ui/component/icon.cljs
clojure
(ns ui.component.icon) (def icons {:dropdown "icons/icn_dropdown.svg" :run-new "icons/icn_run_analysis.svg" :completed "icons/icn_previous_analysis.svg" :kebab-menu "icons/icn_kebab_menu.svg" :delete "icons/icn_delete.svg" :user "icons/icn_use...
ced69795ad374eb9837d247b0c1b7c72b853ad1ebc7967415d29d94558aed486
oakes/Lightmod
cljs.clj
(require '[cljs.build.api :as api] '[leiningen.core.project :as p :refer [defproject]] '[leiningen.clean :refer [clean]]) (defn read-project-clj [] (p/ensure-dynamic-classloader) (-> "project.clj" load-file var-get)) (-> (read-project-clj) p/init-project clean) (println "Building paren-soup.js") (a...
null
https://raw.githubusercontent.com/oakes/Lightmod/141d1671d485326ef1f37b057c4116a2618dd948/cljs.clj
clojure
(require '[cljs.build.api :as api] '[leiningen.core.project :as p :refer [defproject]] '[leiningen.clean :refer [clean]]) (defn read-project-clj [] (p/ensure-dynamic-classloader) (-> "project.clj" load-file var-get)) (-> (read-project-clj) p/init-project clean) (println "Building paren-soup.js") (a...
397ac55e0547ee1be770cd7e6630f5cc1a59fd56926c73a1ee599e05f28d77b5
odis-labs/streaming
Source_tests.ml
open Streaming module T = Nanotest let () = let verbose = true in let to_list src = List.rev (Source.fold (fun xs x -> x :: xs) [] src) in let t = T.test T.int ~verbose in T.group "Source.empty" [ t "empty len" ~actual:(Source.len Source.empty) ~expected:0; ]; let t = T.test T.(list int) ~verbose in...
null
https://raw.githubusercontent.com/odis-labs/streaming/09eae35611be54008e79afd7d9adb68f7f0e063c/tests/Source_tests.ml
ocaml
open Streaming module T = Nanotest let () = let verbose = true in let to_list src = List.rev (Source.fold (fun xs x -> x :: xs) [] src) in let t = T.test T.int ~verbose in T.group "Source.empty" [ t "empty len" ~actual:(Source.len Source.empty) ~expected:0; ]; let t = T.test T.(list int) ~verbose in...
6e1b860dd0da24f63036261d5a2319e76c1a52a2ec55d5a4fc2ee174cf30b66c
nasa/Common-Metadata-Repository
permitted_concept_id_search.clj
(ns cmr.access-control.services.permitted-concept-id-search "Contains ACL search functions for permitted-concept-id searches" (:require [clj-time.core :as t] [cmr.common-app.services.search.group-query-conditions :as gc] [cmr.common-app.services.search.query-model :as common-qm] [cmr.elastic-utils.i...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/67820501151731b535b7087e11990ab1c2240042/access-control-app/src/cmr/access_control/services/permitted_concept_id_search.clj
clojure
less than the collection's stop date greater than the collection's start date The ACL start date is greater than the collection's stop date or there is no temporal specified at all. no temporal specified access value match through range if there is access value in the concept; or through matching undefined value...
(ns cmr.access-control.services.permitted-concept-id-search "Contains ACL search functions for permitted-concept-id searches" (:require [clj-time.core :as t] [cmr.common-app.services.search.group-query-conditions :as gc] [cmr.common-app.services.search.query-model :as common-qm] [cmr.elastic-utils.i...
97fe58ae59702f63dee2833152f1e7a3319036877ddb055db54baae2513a568c
McCLIM/McCLIM
packages.lisp
;;; -*- Mode: Lisp; Package: COMMON-LISP-USER -*- ( c ) copyright 2004 - 2006 by ( ) ( c ) copyright 2006 - 2008 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/7c890f1ac79f0c6f36866c47af89398e2f05b343/Libraries/ESA/packages.lisp
lisp
-*- Mode: Lisp; Package: COMMON-LISP-USER -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lic...
( c ) copyright 2004 - 2006 by ( ) ( c ) copyright 2006 - 2008 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received ...
781c17f5c228d2fe09f54f9b1d257bd423652098d10c9413e8cc0913406d4185
dorchard/computational-semantics
Main.hs
module Main where import InfEngine main :: IO () main = do putStrLn "Welcome to the Knowledge Base." chat
null
https://raw.githubusercontent.com/dorchard/computational-semantics/e11a80f86140451c9ce7b80a7c263d1482d8565f/Main.hs
haskell
module Main where import InfEngine main :: IO () main = do putStrLn "Welcome to the Knowledge Base." chat
b6b7562dc644aa73a39dd0eae661ba68522c1fd2058c81a72c98f0a96f47211f
dyzsr/ocaml-selectml
pr5997.ml
(* TEST * expect *) type (_, _) comp = | Eq : ('a, 'a) comp | Diff : ('a, 'b) comp ;; module U = struct type t = T end;; module M : sig type t = T val comp : (U.t, t) comp end = struct include U let comp = Eq end;; match M.comp with | Diff -> false;; [%%expect{| type (_, _) comp = Eq : ('a, 'a) comp ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-gadts/pr5997.ml
ocaml
TEST * expect
type (_, _) comp = | Eq : ('a, 'a) comp | Diff : ('a, 'b) comp ;; module U = struct type t = T end;; module M : sig type t = T val comp : (U.t, t) comp end = struct include U let comp = Eq end;; match M.comp with | Diff -> false;; [%%expect{| type (_, _) comp = Eq : ('a, 'a) comp | Diff : ('a, 'b) comp ...
597026f9569272017e1669dbfd997eb999ce6f5b98010675a908ec8759030991
andrejv/cl-simple-tk
treeview.lisp
;;; Copyright ( c ) 2015 < > ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a copy ;;; of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights ;;; to use, copy, modify, merge, publis...
null
https://raw.githubusercontent.com/andrejv/cl-simple-tk/0ef565fedde588caa62148c2551be1520a955567/src/treeview.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice...
Copyright ( c ) 2015 < > in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR ...
61abaabcfc21ff8c24fb8f0f76706497b473ada964aa6e52609f4220a1ff7b47
icicle-lang/icicle-ambiata
Data.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Icicle.Runtime.Serial.Psv.Data ( SerialPsvDataError(..) , renderSerialPsvDataError , encodeSnapshotOutput , encodeChordOutput ) where import qualified Anemone.Pretty as Anemone i...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/src/Icicle/Runtime/Serial/Psv/Data.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # module Icicle.Runtime.Serial.Psv.Data ( SerialPsvDataError(..) , renderSerialPsvDataError , encodeSnapshotOutput , encodeChordOutput ) where import qualified Anemone.Pretty as Anemone import qualified Data.Aeson as Aeson import Data.ByteStr...
82c2b7f20e4e97ae078f5d1e58bd6329c812ae8ceaabf826263c77e121bb0f59
keechma/keechma-pipelines
core.clj
(ns keechma.pipelines.core (:require [clojure.set :as set] [clojure.string :as str] [clojure.spec.alpha :as s] [clojure.core.specs.alpha])) (defn rescue? [val] (= "rescue!" (name val))) (defn finally? [val] (= "finally!" (name val))) (s/def ::pipeline-body (s/and list? ...
null
https://raw.githubusercontent.com/keechma/keechma-pipelines/274fc6a21fc34b25019f55e46c5819098f205313/src/keechma/pipelines/core.clj
clojure
TODO: Throw error if rescue! or finally! block is the in wrong position
(ns keechma.pipelines.core (:require [clojure.set :as set] [clojure.string :as str] [clojure.spec.alpha :as s] [clojure.core.specs.alpha])) (defn rescue? [val] (= "rescue!" (name val))) (defn finally? [val] (= "finally!" (name val))) (s/def ::pipeline-body (s/and list? ...
ce8bb6ed251b3982e5351123a181d176c47c814b761028829632b159ca19c4a0
lexi-lambda/litpub
db.rkt
#lang racket/base (require db/base db/postgresql net/url racket/match racket/string (prefix-in env: "environment.rkt")) (provide connection) (define db-url (string->url env:database-url)) (match-define (url _ username/password host port _ (list (path/param database _)) _ ...
null
https://raw.githubusercontent.com/lexi-lambda/litpub/2f326c1c0e0ee8cad0b8b3f7f7b4a49a02ac62b5/db.rkt
racket
#lang racket/base (require db/base db/postgresql net/url racket/match racket/string (prefix-in env: "environment.rkt")) (provide connection) (define db-url (string->url env:database-url)) (match-define (url _ username/password host port _ (list (path/param database _)) _ ...
090d284b1640c6314029a612d20298a8b63ba24370fd17de30c5c94450f64500
matt-noonan/gdp
Implicit.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE RoleAnnotations #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE TypeOperators #-} module Logic.Implicit ( Fact , known , note , on ) where import Logic.Proof import Theory.Named import Unsafe.Coerce | A...
null
https://raw.githubusercontent.com/matt-noonan/gdp/853abfd43ddac462bba53fc4cceac0f8dd2bf29c/src/Logic/Implicit.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE RoleAnnotations # # LANGUAGE TypeOperators # @Fact@s can be used to implicitly introduce or propagate proofs. However, there is @Fact@s are still passed around. In many cases they will be optimized away, but this is not guaranteed. | Add a proof to the imp...
# LANGUAGE ScopedTypeVariables # module Logic.Implicit ( Fact , known , note , on ) where import Logic.Proof import Theory.Named import Unsafe.Coerce | A @Fact p@ is an implicit proof of @p@ , propagated by 's constraint solver . a small run - time cost assoc...
89becd9f5adc90f22a255d65480f5cfe5af01ec5bba269fdf1acb9c175ccecc7
xsc/claro
conditional_test.clj
(ns claro.projection.conditional-test (:require [clojure.test.check [clojure-test :refer [defspec]] [generators :as gen] [properties :as prop]] [clojure.test :refer :all] [claro.test :as test] [claro.projection.generators :as g] [c...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/test/claro/projection/conditional_test.clj
clojure
(ns claro.projection.conditional-test (:require [clojure.test.check [clojure-test :refer [defspec]] [generators :as gen] [properties :as prop]] [clojure.test :refer :all] [claro.test :as test] [claro.projection.generators :as g] [c...
1d12384a712228371b5933fee19282d15952e3ce6a1dd2de33fcf61d263a2385
mk270/blizanci
blizanci_sup.erl
blizanci , a Gemini protocol server , by %% To the extent ( if any ) permissible by law , Copyright ( C ) 2020 %% %% This programme is free software; you may redistribute and/or modify it under the terms of the Apache Software Licence v2.0 . %% @hidden -module(blizanci_sup). -behaviour(supervisor). %% A...
null
https://raw.githubusercontent.com/mk270/blizanci/a1c43c2a0679d4eb1d5cb4fd52f12d363a680a64/apps/blizanci/src/blizanci_sup.erl
erlang
This programme is free software; you may redistribute and/or modify it under @hidden API Supervisor callbacks No children, but application requires a top-level supervisor.
blizanci , a Gemini protocol server , by To the extent ( if any ) permissible by law , Copyright ( C ) 2020 the terms of the Apache Software Licence v2.0 . -module(blizanci_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervis...
d702005e1acebe969433633e25fec5f497495b171dbf5406598c05e973a2e45c
tek/ribosome
Loop.hs
module Ribosome.Menu.Loop where import Conc (rescope) import Control.Monad.Extra (loopM) import qualified Data.Map.Strict as Map import Exon (exon) import qualified Log import qualified Streamly.Prelude as Stream import Streamly.Prelude (SerialT) import qualified Ribosome.Data.Mapping as Mapping import Ribosome.Data....
null
https://raw.githubusercontent.com/tek/ribosome/ca2e87d262adadc30c72941d3087fff7da97addb/packages/menu/lib/Ribosome/Menu/Loop.hs
haskell
module Ribosome.Menu.Loop where import Conc (rescope) import Control.Monad.Extra (loopM) import qualified Data.Map.Strict as Map import Exon (exon) import qualified Log import qualified Streamly.Prelude as Stream import Streamly.Prelude (SerialT) import qualified Ribosome.Data.Mapping as Mapping import Ribosome.Data....
d974acb9ac8b7a4e646e28e1069ec6a5e1306daeeb6be6502843012abcd23259
tommaisey/aeon
out.help.scm
;; (out bufferindex inputs) ;; Send signal to an audio or control buss, mix with existing signal. ;; The user is responsible for making sure that the number of channels ;; match and that there are no conflicts. (audition (out 0 (mul (sin-osc ar (mce2 330 331) 0) 0.1)))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/io/out.help.scm
scheme
(out bufferindex inputs) Send signal to an audio or control buss, mix with existing signal. The user is responsible for making sure that the number of channels match and that there are no conflicts.
(audition (out 0 (mul (sin-osc ar (mce2 330 331) 0) 0.1)))
f72c5a551a85d74b8a45ef684a68bf77abef3a06ac1d5437a20bf13c37265bb8
BranchTaken/Hemlock
test_hash_fold.ml
open! Basis.Rudiments open! Basis open Real let test () = let rec test_hash_fold reals = begin match reals with | [] -> () | x :: reals' -> begin File.Fmt.stdout |> Fmt.fmt "hash_fold " |> fmt ~alt:true ~radix:Radix.Hex x |> Fmt.fmt " -> " |> Hash.pp (Hash.t_of_sta...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/real/test_hash_fold.ml
ocaml
open! Basis.Rudiments open! Basis open Real let test () = let rec test_hash_fold reals = begin match reals with | [] -> () | x :: reals' -> begin File.Fmt.stdout |> Fmt.fmt "hash_fold " |> fmt ~alt:true ~radix:Radix.Hex x |> Fmt.fmt " -> " |> Hash.pp (Hash.t_of_sta...
3f0e94f9e711f01ae3a8f0d8e5ab986fd248cf9db4cbf23eac2b2c693630b5c4
clojure-interop/google-cloud-clients
GapicSpannerRpc.clj
(ns com.google.cloud.spanner.spi.v1.GapicSpannerRpc "Implementation of Cloud Spanner remote calls using Gapic libraries." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spanner.spi.v1 GapicSpannerRpc])) (defn ->gapic-spanner-rpc "Constructor. options - `com.google.cloud.spanner....
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.spanner/src/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.clj
clojure
(ns com.google.cloud.spanner.spi.v1.GapicSpannerRpc "Implementation of Cloud Spanner remote calls using Gapic libraries." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.spanner.spi.v1 GapicSpannerRpc])) (defn ->gapic-spanner-rpc "Constructor. options - `com.google.cloud.spanner....
f5add351f52884a3e4f80bc267f3663836565ac0ed99d4f79ca59f88a4d1cc1f
SquidDev/urn
basic.lisp
(define-native = "Determine if two variables are equal." :syntax "${1} == ${2}" :syntax-precedence 3 :pure) (define-native /= :syntax "${1} ~= ${2}" :syntax-precedence 3 :pure) (define-native < :syntax "${1} < ${2}" :syntax-precedence 3 :pure) (define-native <= :syntax "${1} <= ${2}" :syntax-precedence 3 :pu...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/lib/lua/basic.lisp
lisp
(define-native = "Determine if two variables are equal." :syntax "${1} == ${2}" :syntax-precedence 3 :pure) (define-native /= :syntax "${1} ~= ${2}" :syntax-precedence 3 :pure) (define-native < :syntax "${1} < ${2}" :syntax-precedence 3 :pure) (define-native <= :syntax "${1} <= ${2}" :syntax-precedence 3 :pu...
da0518046b1036503fc49f3c89526355af32b3e1f0ca7f3fba1f1a6cf6e47759
themetaschemer/malt
B-tensor-basics.rkt
#lang racket ;;—————————————————– ;; Lists ;;—————————————————– (define len length) (define ref list-ref) (define refr drop) (provide len ref refr) ;;—————————————————– ;; Representation of tensors as ;; nested vectors of numbers ;;—————————————————– (define tref vector-ref) (define tlen vector-length) (define tma...
null
https://raw.githubusercontent.com/themetaschemer/malt/c847313ba65bf999e2d2932db91a4448a700bdbb/nested-tensors/tensors/B-tensor-basics.rkt
racket
—————————————————– Lists —————————————————– —————————————————– Representation of tensors as nested vectors of numbers —————————————————–
#lang racket (define len length) (define ref list-ref) (define refr drop) (provide len ref refr) (define tref vector-ref) (define tlen vector-length) (define tmap vector-map) (define list->tensor list->vector) (define scalar? number?) (define tensor? (λ (t) (or (scalar? t) (vector? t)))) (define bui...
7c55ddbc6e235700ae2a37def098b5055946571d8ab6232511fba55788ee6fe5
cicakhq/potato
rabbitmq.lisp
(in-package :potato.common) (declaim #.*compile-decl*) (defvar *rabbitmq-server-name* "localhost") (defvar *rabbitmq-server-port* 5672) (defvar *rabbitmq-user* "guest") (defvar *rabbitmq-password* "guest") (defvar *rabbitmq-vhost* "/") (defvar *rabbitmq-multi-connection-instance* nil) (defparameter *unread-state-ex...
null
https://raw.githubusercontent.com/cicakhq/potato/88b6c92dbbc80a6c9552435604f7b1ae6f2a4026/src/common/rabbitmq.lisp
lisp
Connection is still working, return it to the pool ELSE: The connection isn't valid anymore. Attempt to close it. GCM message processor queue Image converter Email Message send seconds. If a message has not been processed before then, it's better to drop it than to have it being processed at some random point ...
(in-package :potato.common) (declaim #.*compile-decl*) (defvar *rabbitmq-server-name* "localhost") (defvar *rabbitmq-server-port* 5672) (defvar *rabbitmq-user* "guest") (defvar *rabbitmq-password* "guest") (defvar *rabbitmq-vhost* "/") (defvar *rabbitmq-multi-connection-instance* nil) (defparameter *unread-state-ex...
dc25aab2de33fe6a8573bdaca183d658342d108a1d6d9cd417aa1943aa59d719
ttyerlsol/rockse
rockse_sup.erl
-module(rockse_sup). -behaviour(supervisor). -export([start_link/0]). -export([add_table/1, put/3, get/2, delete/2]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). add_table(Table) -> {ok, Dir} = application:get_env(rockse, dir), {ok, Pid} = supervisor:start_child(?...
null
https://raw.githubusercontent.com/ttyerlsol/rockse/d3f800388ae87d82567b775d3a0d88ac61a71872/src/rockse_sup.erl
erlang
yes being evil creating atoms dynamically in my defense it is bounded by the number of tables you have.
-module(rockse_sup). -behaviour(supervisor). -export([start_link/0]). -export([add_table/1, put/3, get/2, delete/2]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). add_table(Table) -> {ok, Dir} = application:get_env(rockse, dir), {ok, Pid} = supervisor:start_child(?...
6d20a48cc8eb5fe560884c4adf4d3f655300f833b24715b5fa986215bdbef3b6
caml-pkcs11/opkcs11-tool
ssl.ml
IFDEF WITH_OCAML_SSL THEN (**************************************************************) * Portions of code are based on bindings with Openssl * * (* Original copyright from OCaml-ssl project *) Copyright ( C ) 2003 - 2005 This library is free software ; you can redistribute it and/or modify it under the...
null
https://raw.githubusercontent.com/caml-pkcs11/opkcs11-tool/73da2d7cc14e40ab9a567d880ddafd843d038b8d/ssl.ml
ocaml
************************************************************ Original copyright from OCaml-ssl project ************************************************************ ************************************************************ * Case where we use full OCaml X509 parsing **************** No need to init the openssl lib...
IFDEF WITH_OCAML_SSL THEN * Portions of code are based on bindings with Openssl * * Copyright ( C ) 2003 - 2005 This library 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 ; either versi...
c9859584975c58600a956b526dbeb1a6a2127c1725dc566b59ef8ab4fb2d6be7
rbkmoney/fistful-server
ff_cash.erl
-module(ff_cash). -type amount() :: integer(). -type cash() :: {amount(), ff_currency:id()}. -export_type([amount/0]). -export_type([cash/0]).
null
https://raw.githubusercontent.com/rbkmoney/fistful-server/60b964d0e07f911c841903bc61d8d9fb20a32658/apps/fistful/src/ff_cash.erl
erlang
-module(ff_cash). -type amount() :: integer(). -type cash() :: {amount(), ff_currency:id()}. -export_type([amount/0]). -export_type([cash/0]).
c8b8d0711fcfaedadb567d99e1e3b992a75f74e36b8a841ac01f7a63efa95604
aeternity/aeternity
aega_meta_tx_tests.erl
%%%------------------------------------------------------------------- ( C ) 2020 , Aeternity Anstalt %%%------------------------------------------------------------------- -module(aega_meta_tx_tests). -include_lib("eunit/include/eunit.hrl"). -include_lib("aecore/include/blocks.hrl"). -include_lib("aecontract/incl...
null
https://raw.githubusercontent.com/aeternity/aeternity/e8ffe6822bcd651e99798057511c8764f09a79b1/apps/aega/test/aega_meta_tx_tests.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- ------------------------------------------------------------------- ------------------------------------------------------------------- ------------------------------------------------...
( C ) 2020 , Aeternity Anstalt -module(aega_meta_tx_tests). -include_lib("eunit/include/eunit.hrl"). -include_lib("aecore/include/blocks.hrl"). -include_lib("aecontract/include/hard_forks.hrl"). -define(TEST_MODULE, aetx). -define(RECIPIENT_PUBKEY, <<"_________recipient_pubkey_______">>). -define(FORTUNA_ON(Test...
872761e597b6f4f150fb2ac98e03b3329613446a6c37e2fa2e944819c6117368
EligiusSantori/L2Apf
character_list.scm
l2j / gameserver / serverpackets / CharSelectInfo.java (module system racket/base (provide game-server-packet/character-list) (require racket/math "../../packet.scm" "../race.scm" ) (define (read-item s n) (let ((name (read-utf16 s))) (begin (read-bytes 4 s) ; must be object-id, but t...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/server/character_list.scm
scheme
must be object-id, but trash login session-id clan-id ? (read-bytes (+ 4 1) s)
l2j / gameserver / serverpackets / CharSelectInfo.java (module system racket/base (provide game-server-packet/character-list) (require racket/math "../../packet.scm" "../race.scm" ) (define (read-item s n) (let ((name (read-utf16 s))) (begin (list (cons 'character-id n) (c...
25b32f2cac6307b108ab8592a31bb61f0549111033603367328fd390816cfb30
batsh-dev-team/Dlist
dlist.mli
Copyright ( c ) 2013 , BYVoid < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of condit...
null
https://raw.githubusercontent.com/batsh-dev-team/Dlist/4f57f7cd0231d30b51673da7a64ed2cf52c14074/src/dlist.mli
ocaml
* Difference list: a list-like data structure with O(1) concatenation. Construction Basic functions * Reverse a Dlist. O(1) (lazy evaluation). Reduction * Iterate the Dlist. O(N).
Copyright ( c ) 2013 , BYVoid < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of source code must retain the above copyright notice , this list of condit...
7caa9e1726f5815a304fa52855c40d4a47fabbf7569c64ea02024c349eaa68a0
bchallenor/funslang
Main.hs
Standalone compiler . module Main(main, run) where import qualified Data.ByteString.Lazy.Char8 as ByteString import System.IO import System.Environment import System.Console.GetOpt import System.Exit import Representation import Dataflow import Compiler import Pretty import Library import CompileErro...
null
https://raw.githubusercontent.com/bchallenor/funslang/183db39db01aa509c9f8c7626ce17b67bf7531a2/compiler/Main.hs
haskell
Standalone compiler . module Main(main, run) where import qualified Data.ByteString.Lazy.Char8 as ByteString import System.IO import System.Environment import System.Console.GetOpt import System.Exit import Representation import Dataflow import Compiler import Pretty import Library import CompileErro...
4237867bb99b0257b2f72ffc27efc193daf2ce657aec6830f3e45c2d984e4df4
matsumonkie/izuna
Main.hs
module Main where import System.Environment import IzunaBuilder.Server (run) main :: IO () main = do [port] <- getArgs run $ read @Int port
null
https://raw.githubusercontent.com/matsumonkie/izuna/b21915617c4e3bb7d14d75814f72b8258689fb9b/izuna-builder/app/Main.hs
haskell
module Main where import System.Environment import IzunaBuilder.Server (run) main :: IO () main = do [port] <- getArgs run $ read @Int port
28d8412912873ddf05109828e1f9ed633f72c7237b5eb7a1b15da3143c13d91b
jgdavey/kevin
loader.clj
(ns kevin.loader "To use, download the movies, actors and actresses lists from a mirror on , and copy them (still zipped) to the data folder. You can then run `lein run -m kevin.loader`" (:gen-class) (:require [clojure.java.io :as io] [clojure.core.async :as async :refer [chan go >! <! close!]] ...
null
https://raw.githubusercontent.com/jgdavey/kevin/b4263c932b733c4e0b7729573cdc4550e69ddfa2/src/kevin/loader.clj
clojure
Not a TV series Not bad data Not a videogame Not TV movie or straight to video
(ns kevin.loader "To use, download the movies, actors and actresses lists from a mirror on , and copy them (still zipped) to the data folder. You can then run `lein run -m kevin.loader`" (:gen-class) (:require [clojure.java.io :as io] [clojure.core.async :as async :refer [chan go >! <! close!]] ...
717e5eb29ae18799ed80f8fc9383036eaeceb887a0c214be8ddbf4a64d4a1dc2
keigoi/linocaml
linocaml.ml
module Base = Base module S = S include Base module LinMonadMake(IO:S.IO) : S.LIN_MONAD with module IO = IO = struct module IO = IO type ('pre, 'post, 'a) monad = {__m:('pre -> ('post * 'a) IO.io)} let return a = {__m=(fun pre -> IO.return (pre, {data=a}))} let (>>=) m f = {__m=(fun pre...
null
https://raw.githubusercontent.com/keigoi/linocaml/6cbc4fc698c04a69a53239c86ab9475580dc3ce0/lib/linocaml.ml
ocaml
module Base = Base module S = S include Base module LinMonadMake(IO:S.IO) : S.LIN_MONAD with module IO = IO = struct module IO = IO type ('pre, 'post, 'a) monad = {__m:('pre -> ('post * 'a) IO.io)} let return a = {__m=(fun pre -> IO.return (pre, {data=a}))} let (>>=) m f = {__m=(fun pre...
aa5c0ac7adba1ed7a1c2eaee4d51b611911ad9d21b3dbba04f768a3c89e52cb7
thelema/ocaml-community
mixin3.ml
(* Full fledge version, using objects to structure code *) open StdLabels open MoreLabels (* Use maps for substitutions and sets for free variables *) module Subst = Map.Make(struct type t = string let compare = compare end) module Names = Set.Make(struct type t = string let compare = compare end) (* To build recur...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/testsuite/tests/typing-labels/mixin3.ml
ocaml
Full fledge version, using objects to structure code Use maps for substitutions and sets for free variables To build recursive objects The basic operations Variables are common to lambda and expr The lambda language: free variables, substitutions, and evaluation Operations specialized to lambda The expr ...
open StdLabels open MoreLabels module Subst = Map.Make(struct type t = string let compare = compare end) module Names = Set.Make(struct type t = string let compare = compare end) let lazy_fix make = let rec obj () = make (lazy (obj ()) : _ Lazy.t) in obj () let (!!) = Lazy.force class type ['a, 'b] ops = ...
072479b2758a921072959c2abb48da3db6d25ea84269f17ab9193fd445e577ae
gafiatulin/codewars
SumRecursively.hs
-- Get list sum recursively -- module SumRecursively where sumR :: [Int] -> Int sumR [] = 0 sumR (x: xs) = x + sumR xs
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/SumRecursively.hs
haskell
Get list sum recursively
module SumRecursively where sumR :: [Int] -> Int sumR [] = 0 sumR (x: xs) = x + sumR xs
8d0d0d1c7c98f57f526ec45565cb58b29d739558dea6f903f990a80fcc831f1c
mentat-collective/emmy
derivative.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.numerical.derivative "This namespace contains implementations of various approaches to [numerical differentiation](). Each of these methods uses [Richardson extrapolation]() to accelerate convergence, and roundoff error estimation to bail out of the computatio...
null
https://raw.githubusercontent.com/mentat-collective/emmy/535b237a8e3fd7067b9c0ade8b2a4b3419f9f132/src/emmy/numerical/derivative.cljc
clojure
## Numerical Computation of Derivatives This module builds up to an implementation of numerical derivatives. The convergence of successively tighter estimates of $f^{\prime}(x)$ using a few different methods. -997.pdf?sequence=2 We'll proceed by deriving the methods symbolically, and then implement them numer...
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.numerical.derivative "This namespace contains implementations of various approaches to [numerical differentiation](). Each of these methods uses [Richardson extrapolation]() to accelerate convergence, and roundoff error estimation to bail out of the computatio...
be2fcd42cf4c2e90f8ae09a886bfdc7668449186275f28fb04064d5511064635
ejconlon/blanks
Under.hs
{-# LANGUAGE DeriveAnyClass #-} -- | Internals. module Blanks.Internal.Under ( UnderScope (..) , underScopeShift ) where import Blanks.Internal.Abstract (Abstract, IsAbstractInfo (..), ShouldShift (..)) import Control.DeepSeq (NFData) import Data.Bifoldable (Bifoldable (..)) import Data.Bifunctor (Bifunctor (.....
null
https://raw.githubusercontent.com/ejconlon/blanks/ca0daa6f69d98a5bbf89d8d0d77e88e5a9da46a8/src/Blanks/Internal/Under.hs
haskell
# LANGUAGE DeriveAnyClass # | Internals.
module Blanks.Internal.Under ( UnderScope (..) , underScopeShift ) where import Blanks.Internal.Abstract (Abstract, IsAbstractInfo (..), ShouldShift (..)) import Control.DeepSeq (NFData) import Data.Bifoldable (Bifoldable (..)) import Data.Bifunctor (Bifunctor (..)) import Data.Bitraversable (Bitraversable (..)...
be8c2ca0c4b00d635a16d8dd05b02eec99c705597b4a4f93bdd873c59c9787a8
dybber/fcl
Monad.hs
module FCL.Compile.Value where import qualified Data.Map as Map import Control . Monad . Trans . Reader import Control . Monad . Trans . Except import Control . Monad . Trans . Class import Control . Monad import FCL.Core.SourceRegion import FCL.Core.Identifier import FCL.Core.Monotyped import FCL.Core.MonoLe...
null
https://raw.githubusercontent.com/dybber/fcl/e794a4b9d3ab6207fbe89fcddaafe97ae0d379dd/src/FCL/Compile/Monad.hs
haskell
| ArrayInConditional | FunctionInConditional | ProgramInConditional | InternalError String deriving Show (Except CompileError) a throwError = lift . throwE withUserDefined :: Identifier -> Value -> Compile a -> Compile a
module FCL.Compile.Value where import qualified Data.Map as Map import Control . Monad . Trans . Reader import Control . Monad . Trans . Except import Control . Monad . Trans . Class import Control . Monad import FCL.Core.SourceRegion import FCL.Core.Identifier import FCL.Core.Monotyped import FCL.Core.MonoLe...
7bc95b1bc7c3d34fb89442c6479000192a0ec7abf387080b0f9897398e87a61a
akiss/akiss
maude.mli
(****************************************************************************) (* Akiss *) Copyright ( C ) 2011 - 2014 Baelde , Ciobaca , Delaune , Kremer (* *) ...
null
https://raw.githubusercontent.com/akiss/akiss/5577c6bb31e463c18c1cb05430e344a2734c8407/src/maude.mli
ocaml
************************************************************************** Akiss This program is free software; you can redistribute it and/or modify (at your option) an...
Copyright ( C ) 2011 - 2014 Baelde , Ciobaca , Delaune , Kremer it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy of the GNU General Public License along with ...
1548f6524e59e69c15aeda8f07b6c52ceaae591aacce26c862d53850e7f694ef
plewto/Cadejo
overview.clj
(ns cadejo.instruments.cobalt.editor.overview (:require [cadejo.ui.instruments.subedit :as subedit]) (:require [cadejo.ui.util.color-utilities :as cu]) (:require [cadejo.ui.util.sgwr-factory :as sf]) (:require [cadejo.ui.util.lnf :as lnf]) (:require [cadejo.util.math :as math]) (:require [sgwr.tools.multist...
null
https://raw.githubusercontent.com/plewto/Cadejo/2a98610ce1f5fe01dce5f28d986a38c86677fd67/src/cadejo/instruments/cobalt/editor/overview.clj
clojure
ignore
(ns cadejo.instruments.cobalt.editor.overview (:require [cadejo.ui.instruments.subedit :as subedit]) (:require [cadejo.ui.util.color-utilities :as cu]) (:require [cadejo.ui.util.sgwr-factory :as sf]) (:require [cadejo.ui.util.lnf :as lnf]) (:require [cadejo.util.math :as math]) (:require [sgwr.tools.multist...
78ab3cc118e125ea775dc20dcabd8926c6801d7e4f26212e09ff4b6a4f0806dd
d-cent/objective8
invitations.clj
(ns objective8.integration.back-end.invitations (:require [peridot.core :as p] [midje.sweet :refer :all] [cheshire.core :as json] [objective8.config :as config] [objective8.utils :as utils] [objective8.integration.integration-helpers :as helpers] ...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/test/objective8/integration/back_end/invitations.clj
clojure
(ns objective8.integration.back-end.invitations (:require [peridot.core :as p] [midje.sweet :refer :all] [cheshire.core :as json] [objective8.config :as config] [objective8.utils :as utils] [objective8.integration.integration-helpers :as helpers] ...
a7ecdd0f8ea7bc9d11c3bd52c3fb748e08d850064d631f2c58d4a98940ab8560
tqtezos/minter-sdk
AllowlistedFee.hs
-- | Tests on the swaps contract. module Test.Swaps.AllowlistedFee where import Prelude hiding (swap) import Test.Tasty (TestTree, testGroup) import Lorentz.Value import Morley.Nettest import Morley.Nettest.Tasty (nettestScenarioCaps) import Lorentz.Contracts.Swaps.AllowlistedFee import Lorentz.Contracts.Swaps.Basi...
null
https://raw.githubusercontent.com/tqtezos/minter-sdk/6239f6ee8435977085c00c194224d4223386841a/packages/minter-contracts/test-hs/Test/Swaps/AllowlistedFee.hs
haskell
| Tests on the swaps contract. Check that storage updates work
module Test.Swaps.AllowlistedFee where import Prelude hiding (swap) import Test.Tasty (TestTree, testGroup) import Lorentz.Value import Morley.Nettest import Morley.Nettest.Tasty (nettestScenarioCaps) import Lorentz.Contracts.Swaps.AllowlistedFee import Lorentz.Contracts.Swaps.Basic hiding (SwapOffer, mkNOffers, mk...
8c4073f7bd3b22eb070bc890109b58ecb6e760393c63d7f336b509fea3a265a8
btmura/b1
MovingAverage.hs
module B1.Data.Technicals.MovingAverage ( MovingAverage(..) , getMovingAverage ) where import B1.Data.List import B1.Data.Price type MovingAverage = Float getMovingAverage :: Int -> [Price] -> [MovingAverage] getMovingAverage numDays prices = map average $ groupElements numDays $ map close prices average ::...
null
https://raw.githubusercontent.com/btmura/b1/9cf0514ba1e03e9f4da05be9231acde07b199864/src/B1/Data/Technicals/MovingAverage.hs
haskell
module B1.Data.Technicals.MovingAverage ( MovingAverage(..) , getMovingAverage ) where import B1.Data.List import B1.Data.Price type MovingAverage = Float getMovingAverage :: Int -> [Price] -> [MovingAverage] getMovingAverage numDays prices = map average $ groupElements numDays $ map close prices average ::...
a453961b12e203ffcd6248f0ae219df665dece6ad9135fef4e57ea14fe596b01
static-analysis-engineering/codehawk
jCHTransformUtils.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchsys/jCHTransformUtils.ml
ocaml
chutil jchlib jchpre jchsys Makes a new state with all the fields of oldState but with new_cmds found the last one in com.ibm.icu.impl.data.LocaleElements_fa found in com.ibm.icu.impl.data.LocaleElements_sr <clinit> found in fop found in fop Note: this function is not called anywhere Arrays are int...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
7e9b9fc9c45d7e287934327eb972c58e3d97eda82045de0219430241ceb9f8d2
andrewzhurov/brawl-haus
server.clj
(ns brawl-haus.server (:use org.httpkit.server) (:require [compojure.core :refer [GET defroutes]] [compojure.route :refer [resources]] [ring.util.response :refer [resource-response]] [ring.middleware.reload :refer [wrap-reload]] [clj-time.core :as t] [clj...
null
https://raw.githubusercontent.com/andrewzhurov/brawl-haus/7f560c3dcee7b242fda545d87c102471fdb21888/src/clj/brawl_haus/server.clj
clojure
get the channel
(ns brawl-haus.server (:use org.httpkit.server) (:require [compojure.core :refer [GET defroutes]] [compojure.route :refer [resources]] [ring.util.response :refer [resource-response]] [ring.middleware.reload :refer [wrap-reload]] [clj-time.core :as t] [clj...
c5d6f4597916f48929a927ec49fc47caaab1323e28f44cb87556ca2847019366
justinmeiners/srcweave
utils.lisp
Copyright ( c ) 2022 ; ; 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 , version 2 . ; ; This program is distributed in the hope that it will be useful, but ; WITHOUT ANY WARRANTY; with...
null
https://raw.githubusercontent.com/justinmeiners/srcweave/db5113a9af821ce41fd4d14963deda1857d1ee95/utils.lisp
lisp
This program is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. alo...
Copyright ( c ) 2022 it under the terms of the GNU General Public License as published by the Free Software Foundation , version 2 . You should have received a copy of the GNU General Public License (in-package :srcweave) (defun mapcar-indexed-helper (f list i result) (if (null list) result ...
eff5bb61846ad41efa77b2adcb616ede5c4ad0bdb20dd7f68d42d91c6bf83a9c
Chris00/ocaml-cairo
text_align_center.ml
-*- coding : utf-8 -*- Example by taken from / open Cairo let two_pi = 8. *. atan 1. let () = let cr = Cairo.create(Cairo.PDF.create "text_align_center.pdf" ~w:400. ~h:300.) in (* Take the cont from the command line if given: *) let font = try Sys.argv.(1) with _ -> "Sans" in let utf8 = "...
null
https://raw.githubusercontent.com/Chris00/ocaml-cairo/202674a8d0c533b689ceacdb523ca167611e1b4c/examples/text_align_center.ml
ocaml
Take the cont from the command line if given: Funny UTF8 symbols draw helping lines
-*- coding : utf-8 -*- Example by taken from / open Cairo let two_pi = 8. *. atan 1. let () = let cr = Cairo.create(Cairo.PDF.create "text_align_center.pdf" ~w:400. ~h:300.) in let font = try Sys.argv.(1) with _ -> "Sans" in let utf8 = "cairo" in select_font_face cr font; set_font_size...
3dff71a6ddd705a69e283db9a064ca8b9a7eee94f5e125031e0f06b64c822582
nvim-treesitter/nvim-treesitter
locals.scm
(grammar) @scope (definition) @definition (label_name) @definition.label (identifier) @reference
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/fe80f7c2bbd216f5a26fe28c91bb335ef9ad8ec2/queries/ungrammar/locals.scm
scheme
(grammar) @scope (definition) @definition (label_name) @definition.label (identifier) @reference
d7b7d7465827c62c539e3b1e74a9e0782d24008aae8f3eb4623be2a3cf53c1fe
chef/chef-server
setup_helper.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > @author < > %% Copyright 2013 - 2015 Chef , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file ...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/oc_chef_wm/itest/setup_helper.erl
erlang
ex: ts=4 sw=4 et Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Set bcrypt...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > @author < > Copyright 2013 - 2015 Chef , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed un...
9fc660be47118fca2486a4af1b12ddbc0ce286a302f2f957c92b86164125c35c
fetburner/Coq2SML
genarg.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/interp/genarg.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * All of [rlevel], [glevel] and [tle...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open Ter...
062144d4b7ee3c8ef61a25ea6894e95e331312c8f53c1af78e95bacd0afc95be
vehicle-lang/vehicle
InstanceBuiltins.hs
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-} {-# HLINT ignore "Avoid lambda using `infix`" #-} module Vehicle.Compile.Type.Subsystem.Standard.Constraint.InstanceBuiltins ( builtinInstances, findTypeClassOfCandidate, ) where import Data.Bifunctor (Bifunctor (..)) import Data.HashMap.Strict (HashMap) import Da...
null
https://raw.githubusercontent.com/vehicle-lang/vehicle/3a3548f9b48c3969212ccb51e954d4d4556ea815/vehicle/src/Vehicle/Compile/Type/Subsystem/Standard/Constraint/InstanceBuiltins.hs
haskell
# OPTIONS_GHC -Wno-unrecognised-pragmas # # HLINT ignore "Avoid lambda using `infix`" # ------------------------------------------------------------------------------ Manually declared here as we have no way of declaring them in the language itself. to duplicate the context for both the candidate and the candidate's...
module Vehicle.Compile.Type.Subsystem.Standard.Constraint.InstanceBuiltins ( builtinInstances, findTypeClassOfCandidate, ) where import Data.Bifunctor (Bifunctor (..)) import Data.HashMap.Strict (HashMap) import Data.HashMap.Strict qualified as HashMap import Vehicle.Compile.Prelude import Vehicle.Compile.Pri...
d8186117ff71edbc2760a44abf424cd81e12bca1676bdd2d0ad6e237c56520ff
dcSpark/plutus-voting-dapp
Onchain.hs
# LANGUAGE ImportQualifiedPost # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # module Onchain where import Data.List (partition) import Ledger (Address (..), Datum (..), DatumHash, PubKeyHash (..), ScriptContext (..), TxInInfo (..), TxInfo (..), TxOut (..), Value, scriptAddress, toValidatorHash, t...
null
https://raw.githubusercontent.com/dcSpark/plutus-voting-dapp/64bd55d27bd5bf4178814e594b1daf707df8259e/src/Onchain.hs
haskell
# LANGUAGE OverloadedStrings # UTILITY FUNCTIONS onchain # INLINEABLE valueOf # # INLINEABLE findExtractData # Vote script or first, filter the wallet that pays the fee validate all the votes have the same voted wallet and same payout validate the voted address is paid with the voted amount (pubKeyHashAddress (...
# LANGUAGE ImportQualifiedPost # # LANGUAGE NoImplicitPrelude # module Onchain where import Data.List (partition) import Ledger (Address (..), Datum (..), DatumHash, PubKeyHash (..), ScriptContext (..), TxInInfo (..), TxInfo (..), TxOut (..), Value, scriptAddress, toValidatorHash, txOutValue, validatorHash) import Le...
f54418f778c597ba61b507f561584effbaa892817c17586a7d3d9a86ce63d37f
kana-sama/sicp
2.35 - coubt-leaves by folding.scm
(define (count-leaves tree) (fold-right (lambda (node count) (if (list? node) (+ count (count-leaves node)) (inc count))) 0 tree)) (define x (list 1 (list 2 (list 3 4) 5) (list 6 7))) (print (count-leaves x))
null
https://raw.githubusercontent.com/kana-sama/sicp/fc637d4b057cfcae1bae3d72ebc08e1af52e619d/2/2.35%20-%20coubt-leaves%20by%20folding.scm
scheme
(define (count-leaves tree) (fold-right (lambda (node count) (if (list? node) (+ count (count-leaves node)) (inc count))) 0 tree)) (define x (list 1 (list 2 (list 3 4) 5) (list 6 7))) (print (count-leaves x))
6179e6f82d74e6343c9ce1764d3fd7f5aa37a8dbe133adf1bb4a2cf931af99ce
Lysxia/twentyseven
twentyseven.hs
{-# LANGUAGE NamedFieldPuns, RecordWildCards #-} import Rubik.Cube import Rubik.Misc import qualified Rubik.Solver.Optimal as Optimal import qualified Rubik.Solver.TwoPhase as TwoPhase import qualified Rubik.Tables.Internal as Option import Control.Exception import Control.Monad import Data.Time.Clock import Data.C...
null
https://raw.githubusercontent.com/Lysxia/twentyseven/bfcd3ddcf938bc6db933a364d331877b0fd1257e/exec-src/twentyseven.hs
haskell
# LANGUAGE NamedFieldPuns, RecordWildCards #
import Rubik.Cube import Rubik.Misc import qualified Rubik.Solver.Optimal as Optimal import qualified Rubik.Solver.TwoPhase as TwoPhase import qualified Rubik.Tables.Internal as Option import Control.Exception import Control.Monad import Data.Time.Clock import Data.Char import Data.Monoid import Numeric ( showFFlo...